]> git.saurik.com Git - wxWidgets.git/blame - configure
Check for vsnprintf while using namespace std if its not found when not.
[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"
1e6eb025 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_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 COND_PLATFORM_MAC_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_OPENGL_1 COND_USE_PLUGINS_0 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_XRC_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_0 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_EXTRALIBS WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS GCC_PRAGMA_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL CPPUNIT_CONFIG LIBOBJS LTLIBOBJS'
a848cd7e
SC
317ac_subst_files=''
318
319# Initialize some variables set by options.
320ac_init_help=
321ac_init_version=false
322# The variables have the same names as the options, with
323# dashes changed to underlines.
324cache_file=/dev/null
325exec_prefix=NONE
326no_create=
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
335verbose=
336x_includes=NONE
337x_libraries=NONE
338
339# Installation directory options.
340# These are left unexpanded so users can "make install exec_prefix=/foo"
341# and all the variables that are supposed to be based on exec_prefix
342# by default will actually change.
343# Use braces instead of parens because sh, perl, etc. also accept them.
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
347datadir='${prefix}/share'
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
351libdir='${exec_prefix}/lib'
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
354infodir='${prefix}/info'
355mandir='${prefix}/man'
356
357ac_prev=
358for ac_option
359do
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
363 ac_prev=
364 continue
365 fi
366
367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
371 case $ac_option in
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 bindir=$ac_optarg ;;
377
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build_alias ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build_alias=$ac_optarg ;;
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
392
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 ac_prev=datadir ;;
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
397 datadir=$ac_optarg ;;
398
399 -disable-* | --disable-*)
400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401 # Reject names that are not valid shell variable names.
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
407
408 -enable-* | --enable-*)
409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "enable_$ac_feature='$ac_optarg'" ;;
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
428 exec_prefix=$ac_optarg ;;
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
440
441 -host | --host | --hos | --ho)
442 ac_prev=host_alias ;;
443 -host=* | --host=* | --hos=* | --ho=*)
444 host_alias=$ac_optarg ;;
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
451 includedir=$ac_optarg ;;
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456 infodir=$ac_optarg ;;
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 libdir=$ac_optarg ;;
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
468 libexecdir=$ac_optarg ;;
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477 localstatedir=$ac_optarg ;;
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 mandir=$ac_optarg ;;
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c | -n)
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503 oldincludedir=$ac_optarg ;;
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 prefix=$ac_optarg ;;
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515 program_prefix=$ac_optarg ;;
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522 program_suffix=$ac_optarg ;;
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
539 program_transform_name=$ac_optarg ;;
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
549 sbindir=$ac_optarg ;;
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
560 sharedstatedir=$ac_optarg ;;
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
565 site=$ac_optarg ;;
566
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 srcdir=$ac_optarg ;;
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577 sysconfdir=$ac_optarg ;;
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
580 ac_prev=target_alias ;;
581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582 target_alias=$ac_optarg ;;
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
589
590 -with-* | --with-*)
591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
596 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_$ac_package='$ac_optarg'" ;;
602
603 -without-* | --without-*)
604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605 # Reject names that are not valid shell variable names.
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621 x_includes=$ac_optarg ;;
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628 x_libraries=$ac_optarg ;;
629
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
633 ;;
634
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
643 export $ac_envvar ;;
644
645 *)
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
660fi
661
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
664do
665 eval ac_val=$`echo $ac_var`
666 case $ac_val in
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671done
672
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
ac1cb8d3 675 localstatedir libdir includedir oldincludedir infodir mandir
a848cd7e
SC
676do
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
682 esac
683done
684
685# There might be people who depend on the old broken behavior: `$host'
686# used to hold the argument of --host etc.
687# FIXME: To remove some day.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701fi
702
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
707
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
719echo X"$0" |
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
725 srcdir=$ac_confdir
726 if test ! -r $srcdir/$ac_unique_file; then
727 srcdir=..
728 fi
729else
730 ac_srcdir_defaulted=no
731fi
732if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
736 else
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
739 fi
740fi
741(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
777ac_env_CXX_set=${CXX+set}
778ac_env_CXX_value=$CXX
779ac_cv_env_CXX_set=${CXX+set}
780ac_cv_env_CXX_value=$CXX
781ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782ac_env_CXXFLAGS_value=$CXXFLAGS
783ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785ac_env_CXXCPP_set=${CXXCPP+set}
786ac_env_CXXCPP_value=$CXXCPP
787ac_cv_env_CXXCPP_set=${CXXCPP+set}
788ac_cv_env_CXXCPP_value=$CXXCPP
789
790#
791# Report the --help message.
792#
793if test "$ac_init_help" = "long"; then
794 # Omit some internal or obsolete options to make the list less imposing.
795 # This message is too long to be a string in the A/UX 3.1 sh.
796 cat <<_ACEOF
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)
eaff0f0d 907 --enable-backtrace use wxStackWalker class for getting backtraces
a848cd7e
SC
908 --enable-cmdline use wxCmdLineParser class
909 --enable-datetime use wxDateTime class
910 --enable-dialupman use dialup network classes
911 --enable-dynlib use wxLibrary class for DLL loading
912 --enable-dynamicloader use (new) wxDynamicLibrary class
913 --enable-exceptions build exception-safe library
914 --enable-ffile use wxFFile class
915 --enable-file use wxFile class
916 --enable-filesystem use virtual file systems classes
917 --enable-fontmap use font encodings conversion classes
918 --enable-fs_inet use virtual HTTP/FTP filesystems
919 --enable-fs_zip use virtual ZIP filesystems
920 --enable-geometry use geometry class
921 --enable-log use logging system
922 --enable-longlong use wxLongLong class
923 --enable-mimetype use wxMimeTypesManager
924 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
925 --enable-snglinst use wxSingleInstanceChecker class
926 --enable-streams use wxStream etc classes
927 --enable-std_iostreams use standard C++ stream classes
928 --enable-stopwatch use wxStopWatch class
929 --enable-sysoptions use wxSystemOptions
930 --enable-textbuf use wxTextBuffer class
931 --enable-textfile use wxTextFile class
932 --enable-timer use wxTimer class
933 --enable-unicode compile wxString with Unicode support
934 --enable-sound use wxSound class
3b57de8b 935 --enable-mediactrl use wxMediaCtrl class
77ffb593 936 --enable-wxprintfv use wxWidgets implementation of vprintf()
a848cd7e 937 --enable-zipstream use wxZipInputStream
a848cd7e
SC
938 --enable-url use wxURL class
939 --enable-protocol use wxProtocol class
940 --enable-protocol-http HTTP support in wxProtocol
941 --enable-protocol-ftp FTP support in wxProtocol
942 --enable-protocol-file FILE support in wxProtocol
943 --enable-threads use threads
944 --enable-docview use document view architecture
945 --enable-help use help subsystem
946 --enable-mshtmlhelp use MS HTML Help (win32)
947 --enable-html use wxHTML sub-library
948 --enable-htmlhelp use wxHTML-based help
9a8f0513 949 --enable-xrc use XRC resources sub-library
a848cd7e
SC
950 --enable-constraints use layout-constraints system
951 --enable-printarch use printing architecture
952 --enable-mdi use multiple document interface architecture
8a7b1113 953 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
954 --enable-loggui use standard GUI logger
955 --enable-logwin use wxLogWindow
956 --enable-logdialog use wxLogDialog
646b6ec1 957 --enable-webkit use wxWebKitCtrl (Mac)
a848cd7e
SC
958 --enable-postscript use wxPostscriptDC device context (default for gtk+)
959 --enable-prologio not available; see contrib
960 --enable-resources not available; see contrib
961 --enable-clipboard use wxClipboard class
962 --enable-dnd use Drag'n'Drop classes
963 --enable-metafile use win32 metafiles
964 --enable-controls use all usual controls
965 --enable-accel use accelerators
966 --enable-button use wxButton class
967 --enable-bmpbutton use wxBitmapButton class
968 --enable-calendar use wxCalendarCtrl class
969 --enable-caret use wxCaret class
970 --enable-checkbox use wxCheckBox class
971 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
972 --enable-choice use wxChoice class
92bbdbcd 973 --enable-choicebook use wxChoicebook class
a848cd7e
SC
974 --enable-combobox use wxComboBox class
975 --enable-display use wxDisplay class
976 --enable-gauge use wxGauge class
977 --enable-grid use wxGrid class
978 --enable-imaglist use wxImageList class
979 --enable-listbook use wxListbook class
980 --enable-listbox use wxListBox class
981 --enable-listctrl use wxListCtrl class
982 --enable-notebook use wxNotebook class
983 --enable-radiobox use wxRadioBox class
984 --enable-radiobtn use wxRadioButton class
985 --enable-sash use wxSashWindow class
986 --enable-scrollbar use wxScrollBar class and scrollable windows
987 --enable-slider use wxSlider class
988 --enable-spinbtn use wxSpinButton class
989 --enable-spinctrl use wxSpinCtrl class
990 --enable-splitter use wxSplitterWindow class
991 --enable-statbmp use wxStaticBitmap class
992 --enable-statbox use wxStaticBox class
993 --enable-statline use wxStaticLine class
994 --enable-stattext use wxStaticText class
995 --enable-statusbar use wxStatusBar class
996 --enable-tabdialog use wxTabControl class
997 --enable-textctrl use wxTextCtrl class
998 --enable-togglebtn use wxToggleButton class
999 --enable-toolbar use wxToolBar class
1000 --enable-tbarnative use native wxToolBar class
1001 --enable-tbarsmpl use wxToolBarSimple class
1002 --enable-treectrl use wxTreeCtrl class
1003 --enable-tipwindow use wxTipWindow class
1004 --enable-popupwin use wxPopUpWindow class
1005 --enable-commondlg use all common dialogs
1006 --enable-choicedlg use wxChoiceDialog
1007 --enable-coldlg use wxColourDialog
1008 --enable-filedlg use wxFileDialog
1009 --enable-finddlg use wxFindReplaceDialog
1010 --enable-fontdlg use wxFontDialog
1011 --enable-dirdlg use wxDirDialog
1012 --enable-msgdlg use wxMessageDialog
1013 --enable-numberdlg use wxNumberEntryDialog
1014 --enable-splash use wxSplashScreen
1015 --enable-textdlg use wxTextDialog
1016 --enable-tipdlg use startup tips
1017 --enable-progressdlg use wxProgressDialog
1018 --enable-wizarddlg use wxWizard
1019 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1020 --enable-miniframe use wxMiniFrame class
1021 --enable-tooltips use wxToolTip class
1022 --enable-splines use spline drawing code
1023 --enable-validators use wxValidator and derived classes
1024 --enable-busyinfo use wxBusyInfo
1025 --enable-joystick use wxJoystick (Linux only)
1026 --enable-metafiles use wxMetaFile (Windows only)
1027 --enable-dragimage use wxDragImage
1028 --enable-accessibility enable accessibility support
1029 --enable-palette use wxPalette class
1030 --enable-image use wxImage class
1031 --enable-gif use gif images (GIF file format)
1032 --enable-pcx use pcx images (PCX file format)
1033 --enable-iff use iff images (IFF file format)
1034 --enable-pnm use pnm images (PNM file format)
1035 --enable-xpm use xpm images (XPM file format)
1036 --enable-icocur use Windows ICO and CUR formats
77ffb593 1037 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1038 --enable-vendor=VENDOR vendor name (win32 DLL only)
1039 --disable-largefile omit support for large files
1040 --disable-gtktest do not try to compile and run a test GTK+ program
1041 --disable-gtktest Do not try to compile and run a test GTK program
1042 --disable-sdltest Do not try to compile and run a test SDL program
1043 --enable-omf use OMF object format (OS/2)
ebee3cd0
VS
1044 --disable-precomp-headers
1045 don't use precompiled headers even if compiler can
a848cd7e
SC
1046
1047Optional Packages:
1048 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1049 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1050 --with-gtk use GTK+
1051 --with-motif use Motif/Lesstif
1052 --with-mac use Mac OS X
1053 --with-cocoa use Cocoa
1054 --with-wine use Wine
1055 --with-msw use MS-Windows
1056 --with-pm use OS/2 Presentation Manager
1057 --with-mgl use SciTech MGL
1058 --with-microwin use MicroWindows
1059 --with-x11 use X11
1060 --with-libpng use libpng (PNG image format)
1061 --with-libjpeg use libjpeg (JPEG file format)
1062 --with-libtiff use libtiff (TIFF file format)
1063 --with-libxpm use libxpm (XPM file format)
1064 --with-libmspack use libmspack (CHM help files loading)
1065 --with-sdl use SDL for audio on Unix
d51253e8 1066 --with-gnomeprint use GNOME print for printing under Unix
a848cd7e
SC
1067 --with-opengl use OpenGL (or Mesa)
1068 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1069 --with-regex enable support for wxRegEx class
1070 --with-zlib use zlib for LZW compression
1071 --with-odbc use the IODBC and wxODBC classes
1072 --with-expat enable XML support using expat parser
ceec2216 1073 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1074 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1075 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1076 --with-x use the X Window System
1077 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1078 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1079 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1080 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1081 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1082
1083Some influential environment variables:
dcc1b6ad
VS
1084 CC C compiler command
1085 CFLAGS C compiler flags
1086 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1087 nonstandard directory <lib dir>
1088 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1089 headers in a nonstandard directory <include dir>
1090 CPP C preprocessor
1091 CXX C++ compiler command
1092 CXXFLAGS C++ compiler flags
1093 CXXCPP C++ preprocessor
a848cd7e
SC
1094
1095Use these variables to override the choices made by `configure' or to help
1096it to find libraries and programs with nonstandard names/locations.
1097
77ffb593 1098Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1099_ACEOF
1100fi
1101
1102if test "$ac_init_help" = "recursive"; then
1103 # If there are subdirs, report their specific --help.
1104 ac_popdir=`pwd`
1105 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1106 test -d $ac_dir || continue
1107 ac_builddir=.
1108
1109if test "$ac_dir" != .; then
1110 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1111 # A "../" for each directory in $ac_dir_suffix.
1112 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1113else
1114 ac_dir_suffix= ac_top_builddir=
1115fi
1116
1117case $srcdir in
1118 .) # No --srcdir option. We are building in place.
1119 ac_srcdir=.
1120 if test -z "$ac_top_builddir"; then
1121 ac_top_srcdir=.
1122 else
1123 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1124 fi ;;
1125 [\\/]* | ?:[\\/]* ) # Absolute path.
1126 ac_srcdir=$srcdir$ac_dir_suffix;
1127 ac_top_srcdir=$srcdir ;;
1128 *) # Relative path.
1129 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1130 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1131esac
ac1cb8d3
VS
1132
1133# Do not use `cd foo && pwd` to compute absolute paths, because
1134# the directories may not exist.
1135case `pwd` in
1136.) ac_abs_builddir="$ac_dir";;
1137*)
1138 case "$ac_dir" in
1139 .) ac_abs_builddir=`pwd`;;
1140 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1141 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1142 esac;;
1143esac
1144case $ac_abs_builddir in
1145.) ac_abs_top_builddir=${ac_top_builddir}.;;
1146*)
1147 case ${ac_top_builddir}. in
1148 .) ac_abs_top_builddir=$ac_abs_builddir;;
1149 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1150 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1151 esac;;
1152esac
1153case $ac_abs_builddir in
1154.) ac_abs_srcdir=$ac_srcdir;;
1155*)
1156 case $ac_srcdir in
1157 .) ac_abs_srcdir=$ac_abs_builddir;;
1158 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1159 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1160 esac;;
1161esac
1162case $ac_abs_builddir in
1163.) ac_abs_top_srcdir=$ac_top_srcdir;;
1164*)
1165 case $ac_top_srcdir in
1166 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1167 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1168 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1169 esac;;
1170esac
a848cd7e
SC
1171
1172 cd $ac_dir
1173 # Check for guested configure; otherwise get Cygnus style configure.
1174 if test -f $ac_srcdir/configure.gnu; then
1175 echo
1176 $SHELL $ac_srcdir/configure.gnu --help=recursive
1177 elif test -f $ac_srcdir/configure; then
1178 echo
1179 $SHELL $ac_srcdir/configure --help=recursive
1180 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1181 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1182 echo
1183 $ac_configure --help
1184 else
1185 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1186 fi
da4486fb 1187 cd "$ac_popdir"
a848cd7e
SC
1188 done
1189fi
1190
1191test -n "$ac_init_help" && exit 0
1192if $ac_init_version; then
1193 cat <<\_ACEOF
7714864e 1194wxWidgets configure 2.5.3
ac1cb8d3 1195generated by GNU Autoconf 2.59
a848cd7e 1196
ac1cb8d3 1197Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1198This configure script is free software; the Free Software Foundation
1199gives unlimited permission to copy, distribute and modify it.
1200_ACEOF
1201 exit 0
1202fi
1203exec 5>config.log
1204cat >&5 <<_ACEOF
1205This file contains any messages produced by compilers while
1206running configure, to aid debugging if configure makes a mistake.
1207
7714864e 1208It was created by wxWidgets $as_me 2.5.3, which was
ac1cb8d3 1209generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1210
1211 $ $0 $@
1212
1213_ACEOF
1214{
1215cat <<_ASUNAME
1216## --------- ##
1217## Platform. ##
1218## --------- ##
1219
1220hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1221uname -m = `(uname -m) 2>/dev/null || echo unknown`
1222uname -r = `(uname -r) 2>/dev/null || echo unknown`
1223uname -s = `(uname -s) 2>/dev/null || echo unknown`
1224uname -v = `(uname -v) 2>/dev/null || echo unknown`
1225
1226/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1227/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1228
1229/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1230/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1231/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1232hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1233/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1234/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1235/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1236
1237_ASUNAME
1238
1239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1240for as_dir in $PATH
1241do
1242 IFS=$as_save_IFS
1243 test -z "$as_dir" && as_dir=.
1244 echo "PATH: $as_dir"
1245done
1246
1247} >&5
1248
1249cat >&5 <<_ACEOF
1250
1251
1252## ----------- ##
1253## Core tests. ##
1254## ----------- ##
1255
1256_ACEOF
1257
1258
1259# Keep a trace of the command line.
1260# Strip out --no-create and --no-recursion so they do not pile up.
1261# Strip out --silent because we don't want to record it for future runs.
1262# Also quote any args containing shell meta-characters.
1263# Make two passes to allow for proper duplicate-argument suppression.
1264ac_configure_args=
1265ac_configure_args0=
1266ac_configure_args1=
1267ac_sep=
1268ac_must_keep_next=false
1269for ac_pass in 1 2
1270do
1271 for ac_arg
1272 do
1273 case $ac_arg in
1274 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1275 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1276 | -silent | --silent | --silen | --sile | --sil)
1277 continue ;;
1278 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1279 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1280 esac
1281 case $ac_pass in
1282 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1283 2)
1284 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1285 if test $ac_must_keep_next = true; then
ac1cb8d3 1286 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1287 else
ac1cb8d3
VS
1288 case $ac_arg in
1289 *=* | --config-cache | -C | -disable-* | --disable-* \
1290 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1291 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1292 | -with-* | --with-* | -without-* | --without-* | --x)
1293 case "$ac_configure_args0 " in
1294 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1295 esac
1296 ;;
1297 -* ) ac_must_keep_next=true ;;
1298 esac
a848cd7e
SC
1299 fi
1300 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1301 # Get rid of the leading space.
1302 ac_sep=" "
1303 ;;
1304 esac
1305 done
1306done
1307$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1308$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1309
1310# When interrupted or exit'd, cleanup temporary files, and complete
1311# config.log. We remove comments because anyway the quotes in there
1312# would cause problems or look ugly.
1313# WARNING: Be sure not to use single quotes in there, as some shells,
1314# such as our DU 5.0 friend, will then `close' the trap.
1315trap 'exit_status=$?
1316 # Save into config.log some information that might help in debugging.
1317 {
1318 echo
1319
1320 cat <<\_ASBOX
1321## ---------------- ##
1322## Cache variables. ##
1323## ---------------- ##
1324_ASBOX
1325 echo
1326 # The following way of writing the cache mishandles newlines in values,
1327{
1328 (set) 2>&1 |
1329 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1330 *ac_space=\ *)
1331 sed -n \
ac1cb8d3
VS
1332 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1333 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1334 ;;
1335 *)
1336 sed -n \
ac1cb8d3 1337 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1338 ;;
1339 esac;
1340}
1341 echo
1342
1343 cat <<\_ASBOX
1344## ----------------- ##
1345## Output variables. ##
1346## ----------------- ##
1347_ASBOX
1348 echo
1349 for ac_var in $ac_subst_vars
1350 do
1351 eval ac_val=$`echo $ac_var`
1352 echo "$ac_var='"'"'$ac_val'"'"'"
1353 done | sort
1354 echo
1355
1356 if test -n "$ac_subst_files"; then
1357 cat <<\_ASBOX
1358## ------------- ##
1359## Output files. ##
1360## ------------- ##
1361_ASBOX
1362 echo
1363 for ac_var in $ac_subst_files
1364 do
1365 eval ac_val=$`echo $ac_var`
ac1cb8d3 1366 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1367 done | sort
1368 echo
1369 fi
1370
1371 if test -s confdefs.h; then
1372 cat <<\_ASBOX
1373## ----------- ##
1374## confdefs.h. ##
1375## ----------- ##
1376_ASBOX
1377 echo
1378 sed "/^$/d" confdefs.h | sort
1379 echo
1380 fi
1381 test "$ac_signal" != 0 &&
1382 echo "$as_me: caught signal $ac_signal"
1383 echo "$as_me: exit $exit_status"
1384 } >&5
ac1cb8d3 1385 rm -f core *.core &&
a848cd7e
SC
1386 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1387 exit $exit_status
1388 ' 0
1389for ac_signal in 1 2 13 15; do
1390 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1391done
1392ac_signal=0
1393
1394# confdefs.h avoids OS command line length limits that DEFS can exceed.
1395rm -rf conftest* confdefs.h
1396# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1397echo >confdefs.h
1398
1399# Predefined preprocessor variables.
1400
1401cat >>confdefs.h <<_ACEOF
1402#define PACKAGE_NAME "$PACKAGE_NAME"
1403_ACEOF
1404
1405
1406cat >>confdefs.h <<_ACEOF
1407#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1408_ACEOF
1409
1410
1411cat >>confdefs.h <<_ACEOF
1412#define PACKAGE_VERSION "$PACKAGE_VERSION"
1413_ACEOF
1414
1415
1416cat >>confdefs.h <<_ACEOF
1417#define PACKAGE_STRING "$PACKAGE_STRING"
1418_ACEOF
1419
1420
1421cat >>confdefs.h <<_ACEOF
1422#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1423_ACEOF
1424
1425
1426# Let the site file select an alternate cache file if it wants to.
1427# Prefer explicitly selected file to automatically selected ones.
1428if test -z "$CONFIG_SITE"; then
1429 if test "x$prefix" != xNONE; then
1430 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1431 else
1432 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1433 fi
1434fi
1435for ac_site_file in $CONFIG_SITE; do
1436 if test -r "$ac_site_file"; then
1437 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1438echo "$as_me: loading site script $ac_site_file" >&6;}
1439 sed 's/^/| /' "$ac_site_file" >&5
1440 . "$ac_site_file"
1441 fi
1442done
1443
1444if test -r "$cache_file"; then
1445 # Some versions of bash will fail to source /dev/null (special
1446 # files actually), so we avoid doing that.
1447 if test -f "$cache_file"; then
1448 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1449echo "$as_me: loading cache $cache_file" >&6;}
1450 case $cache_file in
1451 [\\/]* | ?:[\\/]* ) . $cache_file;;
1452 *) . ./$cache_file;;
1453 esac
1454 fi
1455else
1456 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1457echo "$as_me: creating cache $cache_file" >&6;}
1458 >$cache_file
1459fi
1460
1461# Check that the precious variables saved in the cache have kept the same
1462# value.
1463ac_cache_corrupted=false
1464for ac_var in `(set) 2>&1 |
ac1cb8d3 1465 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1466 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1467 eval ac_new_set=\$ac_env_${ac_var}_set
1468 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1469 eval ac_new_val="\$ac_env_${ac_var}_value"
1470 case $ac_old_set,$ac_new_set in
1471 set,)
1472 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1473echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1474 ac_cache_corrupted=: ;;
1475 ,set)
1476 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1477echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1478 ac_cache_corrupted=: ;;
1479 ,);;
1480 *)
1481 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1482 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1483echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1484 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1485echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1486 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1487echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1488 ac_cache_corrupted=:
a848cd7e
SC
1489 fi;;
1490 esac
1491 # Pass precious variables to config.status.
1492 if test "$ac_new_set" = set; then
1493 case $ac_new_val in
1494 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1495 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1496 *) ac_arg=$ac_var=$ac_new_val ;;
1497 esac
1498 case " $ac_configure_args " in
1499 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1500 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1501 esac
1502 fi
1503done
1504if $ac_cache_corrupted; then
1505 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1506echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1507 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1508echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1509 { (exit 1); exit 1; }; }
1510fi
1511
1512ac_ext=c
1513ac_cpp='$CPP $CPPFLAGS'
1514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1516ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1546
1547ac_aux_dir=
1548for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1549 if test -f $ac_dir/install-sh; then
1550 ac_aux_dir=$ac_dir
1551 ac_install_sh="$ac_aux_dir/install-sh -c"
1552 break
1553 elif test -f $ac_dir/install.sh; then
1554 ac_aux_dir=$ac_dir
1555 ac_install_sh="$ac_aux_dir/install.sh -c"
1556 break
1557 elif test -f $ac_dir/shtool; then
1558 ac_aux_dir=$ac_dir
1559 ac_install_sh="$ac_aux_dir/shtool install -c"
1560 break
1561 fi
1562done
1563if test -z "$ac_aux_dir"; then
1564 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1565echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1566 { (exit 1); exit 1; }; }
1567fi
1568ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1569ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1570ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1571
1572# Make sure we can run config.sub.
1573$ac_config_sub sun4 >/dev/null 2>&1 ||
1574 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1575echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1576 { (exit 1); exit 1; }; }
1577
1578echo "$as_me:$LINENO: checking build system type" >&5
1579echo $ECHO_N "checking build system type... $ECHO_C" >&6
1580if test "${ac_cv_build+set}" = set; then
1581 echo $ECHO_N "(cached) $ECHO_C" >&6
1582else
1583 ac_cv_build_alias=$build_alias
1584test -z "$ac_cv_build_alias" &&
1585 ac_cv_build_alias=`$ac_config_guess`
1586test -z "$ac_cv_build_alias" &&
1587 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1588echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1589 { (exit 1); exit 1; }; }
1590ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1591 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1592echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1593 { (exit 1); exit 1; }; }
1594
1595fi
1596echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1597echo "${ECHO_T}$ac_cv_build" >&6
1598build=$ac_cv_build
1599build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1600build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1601build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1602
1603
1604echo "$as_me:$LINENO: checking host system type" >&5
1605echo $ECHO_N "checking host system type... $ECHO_C" >&6
1606if test "${ac_cv_host+set}" = set; then
1607 echo $ECHO_N "(cached) $ECHO_C" >&6
1608else
1609 ac_cv_host_alias=$host_alias
1610test -z "$ac_cv_host_alias" &&
1611 ac_cv_host_alias=$ac_cv_build_alias
1612ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1613 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1614echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1615 { (exit 1); exit 1; }; }
1616
1617fi
1618echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1619echo "${ECHO_T}$ac_cv_host" >&6
1620host=$ac_cv_host
1621host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1622host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1623host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1624
1625
1626echo "$as_me:$LINENO: checking target system type" >&5
1627echo $ECHO_N "checking target system type... $ECHO_C" >&6
1628if test "${ac_cv_target+set}" = set; then
1629 echo $ECHO_N "(cached) $ECHO_C" >&6
1630else
1631 ac_cv_target_alias=$target_alias
1632test "x$ac_cv_target_alias" = "x" &&
1633 ac_cv_target_alias=$ac_cv_host_alias
1634ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1635 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1636echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1637 { (exit 1); exit 1; }; }
1638
1639fi
1640echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1641echo "${ECHO_T}$ac_cv_target" >&6
1642target=$ac_cv_target
1643target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1644target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1645target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1646
1647
1648# The aliases save the names the user supplied, while $host etc.
1649# will get canonicalized.
1650test -n "$target_alias" &&
1651 test "$program_prefix$program_suffix$program_transform_name" = \
1652 NONENONEs,x,x, &&
1653 program_prefix=${target_alias}-
1654
1655
1656
ceec2216
RL
1657wx_major_version_number=2
1658wx_minor_version_number=5
7714864e 1659wx_release_number=3
0210f373 1660wx_subrelease_number=3
a848cd7e 1661
ceec2216
RL
1662WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1663WX_VERSION=$WX_RELEASE.$wx_release_number
1664WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1665
ceec2216 1666WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1667
e653e181 1668WX_CURRENT=3
a848cd7e 1669WX_REVISION=0
0210f373 1670WX_AGE=3
a848cd7e
SC
1671
1672
1673
1674USE_UNIX=1
1675USE_OS2=0
1676USE_WIN32=0
1677USE_DOS=0
1678USE_BEOS=0
1679USE_MAC=0
1680
1681USE_AIX=
1682USE_BSD= USE_DARWIN= USE_FREEBSD=
1683USE_GNU= USE_HPUX=
1684USE_LINUX=
1685USE_NETBSD=
1686USE_OPENBSD=
1687USE_OSF= USE_SGI=
1688USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1689USE_ULTRIX=
1690USE_UNIXWARE=
1691
1692USE_ALPHA=
1693
1694NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1695
1696ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1697
1698DEFAULT_wxUSE_COCOA=0
1699DEFAULT_wxUSE_GTK=0
1700DEFAULT_wxUSE_MAC=0
1701DEFAULT_wxUSE_MGL=0
1702DEFAULT_wxUSE_MICROWIN=0
1703DEFAULT_wxUSE_MOTIF=0
1704DEFAULT_wxUSE_MSW=0
1705DEFAULT_wxUSE_PM=0
1706DEFAULT_wxUSE_X11=0
1707
1708DEFAULT_DEFAULT_wxUSE_COCOA=0
1709DEFAULT_DEFAULT_wxUSE_GTK=0
1710DEFAULT_DEFAULT_wxUSE_MAC=0
1711DEFAULT_DEFAULT_wxUSE_MGL=0
1712DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1713DEFAULT_DEFAULT_wxUSE_MOTIF=0
1714DEFAULT_DEFAULT_wxUSE_MSW=0
1715DEFAULT_DEFAULT_wxUSE_PM=0
1716DEFAULT_DEFAULT_wxUSE_X11=0
1717
1718PROGRAM_EXT=
1719SO_SUFFIX=so
1720SAMPLES_RPATH_FLAG=
1721SAMPLES_RPATH_POSTLINK=
1722
1723case "${host}" in
1724 *-hp-hpux* )
1725 USE_HPUX=1
1726 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1727 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1728 SO_SUFFIX=sl
1729 cat >>confdefs.h <<\_ACEOF
1730#define __HPUX__ 1
1731_ACEOF
1732
1733 ;;
1734 *-*-linux* )
1735 USE_LINUX=1
1736 cat >>confdefs.h <<\_ACEOF
1737#define __LINUX__ 1
1738_ACEOF
1739
1740 TMP=`uname -m`
1741 if test "x$TMP" = "xalpha"; then
1742 USE_ALPHA=1
1743 cat >>confdefs.h <<\_ACEOF
1744#define __ALPHA__ 1
1745_ACEOF
1746
1747 fi
1748 DEFAULT_DEFAULT_wxUSE_GTK=1
1749 ;;
1750 *-*-gnu* | *-*-k*bsd*-gnu )
1751 USE_GNU=1
1752 TMP=`uname -m`
1753 if test "x$TMP" = "xalpha"; then
1754 USE_ALPHA=1
1755 cat >>confdefs.h <<\_ACEOF
1756#define __ALPHA__ 1
1757_ACEOF
1758
1759 fi
1760 DEFAULT_DEFAULT_wxUSE_GTK=1
1761 ;;
1762 *-*-irix5* | *-*-irix6* )
1763 USE_SGI=1
1764 USE_SVR4=1
1765 cat >>confdefs.h <<\_ACEOF
1766#define __SGI__ 1
1767_ACEOF
1768
1769 cat >>confdefs.h <<\_ACEOF
1770#define __SVR4__ 1
1771_ACEOF
1772
1773 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1774 ;;
1775 *-*-solaris2* )
1776 USE_SUN=1
1777 USE_SOLARIS=1
1778 USE_SVR4=1
1779 cat >>confdefs.h <<\_ACEOF
1780#define __SUN__ 1
1781_ACEOF
1782
1783 cat >>confdefs.h <<\_ACEOF
1784#define __SOLARIS__ 1
1785_ACEOF
1786
1787 cat >>confdefs.h <<\_ACEOF
1788#define __SVR4__ 1
1789_ACEOF
1790
1791 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1792 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1793 ;;
1794 *-*-sunos4* )
1795 USE_SUN=1
1796 USE_SUNOS=1
1797 USE_BSD=1
1798 cat >>confdefs.h <<\_ACEOF
1799#define __SUN__ 1
1800_ACEOF
1801
1802 cat >>confdefs.h <<\_ACEOF
1803#define __SUNOS__ 1
1804_ACEOF
1805
1806 cat >>confdefs.h <<\_ACEOF
1807#define __BSD__ 1
1808_ACEOF
1809
1810 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1811 ;;
1812 *-*-freebsd*)
1813 USE_BSD=1
1814 USE_FREEBSD=1
1815 cat >>confdefs.h <<\_ACEOF
1816#define __FREEBSD__ 1
1817_ACEOF
1818
1819 cat >>confdefs.h <<\_ACEOF
1820#define __BSD__ 1
1821_ACEOF
1822
1823 DEFAULT_DEFAULT_wxUSE_GTK=1
1824 ;;
1825 *-*-openbsd*)
1826 USE_BSD=1
1827 USE_OPENBSD=1
1828 cat >>confdefs.h <<\_ACEOF
1829#define __OPENBSD__ 1
1830_ACEOF
1831
1832 cat >>confdefs.h <<\_ACEOF
1833#define __BSD__ 1
1834_ACEOF
1835
1836 DEFAULT_DEFAULT_wxUSE_GTK=1
1837 ;;
1838 *-*-netbsd*)
1839 USE_BSD=1
1840 USE_NETBSD=1
1841 cat >>confdefs.h <<\_ACEOF
1842#define __NETBSD__ 1
1843_ACEOF
1844
1845 cat >>confdefs.h <<\_ACEOF
1846#define __BSD__ 1
1847_ACEOF
1848
1849 DEFAULT_DEFAULT_wxUSE_GTK=1
1850 ;;
1851 *-*-osf* )
1852 USE_ALPHA=1
1853 USE_OSF=1
1854 cat >>confdefs.h <<\_ACEOF
1855#define __ALPHA__ 1
1856_ACEOF
1857
1858 cat >>confdefs.h <<\_ACEOF
1859#define __OSF__ 1
1860_ACEOF
1861
1862 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1863 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1864 ;;
1865 *-*-dgux5* )
1866 USE_ALPHA=1
1867 USE_SVR4=1
1868 cat >>confdefs.h <<\_ACEOF
1869#define __ALPHA__ 1
1870_ACEOF
1871
1872 cat >>confdefs.h <<\_ACEOF
1873#define __SVR4__ 1
1874_ACEOF
1875
1876 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1877 ;;
1878 *-*-sysv5* )
1879 USE_SYSV=1
1880 USE_SVR4=1
1881 cat >>confdefs.h <<\_ACEOF
1882#define __SYSV__ 1
1883_ACEOF
1884
1885 cat >>confdefs.h <<\_ACEOF
1886#define __SVR4__ 1
1887_ACEOF
1888
1889 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1890 ;;
1891 *-*-aix* )
1892 USE_AIX=1
1893 USE_SYSV=1
1894 USE_SVR4=1
1895 SO_SUFFIX=a
1896 cat >>confdefs.h <<\_ACEOF
1897#define __AIX__ 1
1898_ACEOF
1899
1900 cat >>confdefs.h <<\_ACEOF
1901#define __SYSV__ 1
1902_ACEOF
1903
1904 cat >>confdefs.h <<\_ACEOF
1905#define __SVR4__ 1
1906_ACEOF
1907
1908 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1909 ;;
1910
1911 *-*-*UnixWare*)
1912 USE_SYSV=1
1913 USE_SVR4=1
1914 USE_UNIXWARE=1
1915 cat >>confdefs.h <<\_ACEOF
1916#define __UNIXWARE__ 1
1917_ACEOF
1918
1919 ;;
1920
1921 *-*-cygwin* | *-*-mingw32* )
1922 SO_SUFFIX=dll
1923 PROGRAM_EXT=".exe"
1924 RESCOMP=windres
1925 DEFAULT_DEFAULT_wxUSE_MSW=1
1926 ;;
1927
1928 *-pc-msdosdjgpp )
1929 USE_UNIX=0
1930 USE_DOS=1
1931 cat >>confdefs.h <<\_ACEOF
1932#define __DOS__ 1
1933_ACEOF
1934
1935 PROGRAM_EXT=".exe"
1936 DEFAULT_DEFAULT_wxUSE_MGL=1
1937 LIBS="$LIBS -lstdc++"
1938 ;;
1939
1940 *-pc-os2_emx | *-pc-os2-emx )
1941 cat >>confdefs.h <<\_ACEOF
1942#define __EMX__ 1
1943_ACEOF
1944
1945 USE_OS2=1
1946 cat >>confdefs.h <<\_ACEOF
1947#define __OS2__ 1
1948_ACEOF
1949
1950 PROGRAM_EXT=".exe"
1951 DEFAULT_DEFAULT_wxUSE_PM=1
1952 CXX=gcc
1953 LDFLAGS="$LDFLAGS -Zcrtdll"
1954 ac_executable_extensions=".exe"
1955 export ac_executable_extensions
1956 ac_save_IFS="$IFS"
1957 IFS='\\'
1958 ac_TEMP_PATH=
1959 for ac_dir in $PATH; do
1960 IFS=$ac_save_IFS
1961 if test -z "$ac_TEMP_PATH"; then
1962 ac_TEMP_PATH="$ac_dir"
1963 else
1964 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1965 fi
1966 done
1967 export PATH="$ac_TEMP_PATH"
1968 unset ac_TEMP_PATH
1969 ;;
1970
1971 powerpc-*-darwin* )
1972 USE_BSD=1
1973 USE_DARWIN=1
1974 SO_SUFFIX=dylib
1975 cat >>confdefs.h <<\_ACEOF
1976#define __BSD__ 1
1977_ACEOF
1978
1979 cat >>confdefs.h <<\_ACEOF
1980#define __DARWIN__ 1
1981_ACEOF
1982
1983 cat >>confdefs.h <<\_ACEOF
1984#define __POWERPC__ 1
1985_ACEOF
1986
1987 cat >>confdefs.h <<\_ACEOF
1988#define TARGET_CARBON 1
1989_ACEOF
1990
1991 DEFAULT_DEFAULT_wxUSE_MAC=1
1992 ;;
1e9e8aba
DE
1993 powerpc-apple-macos* )
1994 USE_UNIX=0
1995 ac_cv_c_bigendian=yes
1996 SO_SUFFIX=shlib
1997 DEFAULT_DEFAULT_wxUSE_MAC=1
1998 ;;
a848cd7e
SC
1999
2000 *-*-beos* )
2001 USE_BEOS=1
2002 cat >>confdefs.h <<\_ACEOF
2003#define __BEOS__ 1
2004_ACEOF
2005
2006 ;;
2007
2008 *)
2009 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2010echo "$as_me: error: unknown system type ${host}." >&2;}
2011 { (exit 1); exit 1; }; }
2012esac
2013
2014
2015
2016
2017 wx_arg_cache_file="configarg.cache"
2018 echo "loading argument cache $wx_arg_cache_file"
2019 rm -f ${wx_arg_cache_file}.tmp
2020 touch ${wx_arg_cache_file}.tmp
2021 touch ${wx_arg_cache_file}
2022
2023
2024DEBUG_CONFIGURE=0
2025if test $DEBUG_CONFIGURE = 1; then
2026 DEFAULT_wxUSE_UNIVERSAL=no
2027 DEFAULT_wxUSE_STL=no
2028
2029 DEFAULT_wxUSE_NANOX=no
2030
2031 DEFAULT_wxUSE_THREADS=yes
2032
2033 DEFAULT_wxUSE_SHARED=yes
2034 DEFAULT_wxUSE_OPTIMISE=no
2035 DEFAULT_wxUSE_PROFILE=no
2036 DEFAULT_wxUSE_NO_DEPS=no
2037 DEFAULT_wxUSE_NO_RTTI=no
2038 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2039 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2040 DEFAULT_wxUSE_PERMISSIVE=no
2041 DEFAULT_wxUSE_DEBUG_FLAG=yes
2042 DEFAULT_wxUSE_DEBUG_INFO=yes
2043 DEFAULT_wxUSE_DEBUG_GDB=yes
2044 DEFAULT_wxUSE_MEM_TRACING=no
2045 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2046 DEFAULT_wxUSE_DMALLOC=no
2047 DEFAULT_wxUSE_APPLE_IEEE=no
2048
2049 DEFAULT_wxUSE_EXCEPTIONS=no
2050 DEFAULT_wxUSE_LOG=yes
2051 DEFAULT_wxUSE_LOGWINDOW=no
2052 DEFAULT_wxUSE_LOGGUI=no
2053 DEFAULT_wxUSE_LOGDIALOG=no
2054
2055 DEFAULT_wxUSE_GUI=yes
2056 DEFAULT_wxUSE_CONTROLS=no
2057
2058 DEFAULT_wxUSE_REGEX=no
2059 DEFAULT_wxUSE_XML=no
2060 DEFAULT_wxUSE_EXPAT=no
2061 DEFAULT_wxUSE_ZLIB=no
2062 DEFAULT_wxUSE_LIBPNG=no
2063 DEFAULT_wxUSE_LIBJPEG=no
2064 DEFAULT_wxUSE_LIBTIFF=no
2065 DEFAULT_wxUSE_LIBXPM=no
2066 DEFAULT_wxUSE_LIBMSPACK=no
2067 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2068 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2069 DEFAULT_wxUSE_ODBC=no
2070 DEFAULT_wxUSE_OPENGL=no
2071
2072 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2073 DEFAULT_wxUSE_STACKWALKER=no
a848cd7e
SC
2074 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2075 DEFAULT_wxUSE_STD_IOSTREAM=no
2076 DEFAULT_wxUSE_CMDLINE_PARSER=no
2077 DEFAULT_wxUSE_DATETIME=no
2078 DEFAULT_wxUSE_TIMER=no
2079 DEFAULT_wxUSE_STOPWATCH=no
2080 DEFAULT_wxUSE_FILE=no
2081 DEFAULT_wxUSE_FFILE=no
2082 DEFAULT_wxUSE_TEXTBUFFER=no
2083 DEFAULT_wxUSE_TEXTFILE=no
2084 DEFAULT_wxUSE_SOUND=no
3b57de8b
RL
2085 DEFAULT_wxUSE_MEDIACTRL=no
2086 DEFAULT_wxUSE_DIRECTSHOW=no
a848cd7e
SC
2087 DEFAULT_wxUSE_INTL=no
2088 DEFAULT_wxUSE_CONFIG=no
2089 DEFAULT_wxUSE_FONTMAP=no
2090 DEFAULT_wxUSE_STREAMS=no
2091 DEFAULT_wxUSE_SOCKETS=no
2092 DEFAULT_wxUSE_OLE=no
2093 DEFAULT_wxUSE_DATAOBJ=no
2094 DEFAULT_wxUSE_DIALUP_MANAGER=no
2095 DEFAULT_wxUSE_JOYSTICK=no
2096 DEFAULT_wxUSE_DYNLIB_CLASS=no
2097 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2098 DEFAULT_wxUSE_LONGLONG=no
2099 DEFAULT_wxUSE_GEOMETRY=no
2100
2101 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2102 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2103 DEFAULT_wxUSE_POSTSCRIPT=no
2104
2105 DEFAULT_wxUSE_CLIPBOARD=no
2106 DEFAULT_wxUSE_TOOLTIPS=no
2107 DEFAULT_wxUSE_DRAG_AND_DROP=no
2108 DEFAULT_wxUSE_DRAGIMAGE=no
2109 DEFAULT_wxUSE_SPLINES=no
2110
8a7b1113 2111 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2112 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2113 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2114 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2115
2116 DEFAULT_wxUSE_RESOURCES=no
2117 DEFAULT_wxUSE_CONSTRAINTS=no
2118 DEFAULT_wxUSE_IPC=no
2119 DEFAULT_wxUSE_HELP=no
2120 DEFAULT_wxUSE_MS_HTML_HELP=no
2121 DEFAULT_wxUSE_WXHTML_HELP=no
2122 DEFAULT_wxUSE_TREELAYOUT=no
2123 DEFAULT_wxUSE_METAFILE=no
2124 DEFAULT_wxUSE_MIMETYPE=no
2125 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2126 DEFAULT_wxUSE_PROTOCOL=no
2127 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2128 DEFAULT_wxUSE_PROTOCOL_FTP=no
2129 DEFAULT_wxUSE_PROTOCOL_FILE=no
2130 DEFAULT_wxUSE_URL=no
2131
2132 DEFAULT_wxUSE_COMMONDLGS=no
2133 DEFAULT_wxUSE_CHOICEDLG=no
2134 DEFAULT_wxUSE_COLOURDLG=no
2135 DEFAULT_wxUSE_DIRDLG=no
2136 DEFAULT_wxUSE_FILEDLG=no
2137 DEFAULT_wxUSE_FINDREPLDLG=no
2138 DEFAULT_wxUSE_FONTDLG=no
2139 DEFAULT_wxUSE_MSGDLG=no
2140 DEFAULT_wxUSE_NUMBERDLG=no
2141 DEFAULT_wxUSE_TEXTDLG=no
2142 DEFAULT_wxUSE_SPLASH=no
2143 DEFAULT_wxUSE_STARTUP_TIPS=no
2144 DEFAULT_wxUSE_PROGRESSDLG=no
2145 DEFAULT_wxUSE_WIZARDDLG=no
2146
2147 DEFAULT_wxUSE_MENUS=no
2148 DEFAULT_wxUSE_MINIFRAME=no
2149 DEFAULT_wxUSE_HTML=no
9a8f0513 2150 DEFAULT_wxUSE_XRC=no
646b6ec1 2151 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2152 DEFAULT_wxUSE_FILESYSTEM=no
2153 DEFAULT_wxUSE_FS_INET=no
2154 DEFAULT_wxUSE_FS_ZIP=no
2155 DEFAULT_wxUSE_BUSYINFO=no
2156 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2157 DEFAULT_wxUSE_VALIDATORS=no
2158
2159 DEFAULT_wxUSE_ACCEL=no
2160 DEFAULT_wxUSE_BUTTON=no
2161 DEFAULT_wxUSE_BMPBUTTON=no
2162 DEFAULT_wxUSE_CALCTRL=no
2163 DEFAULT_wxUSE_CARET=no
2164 DEFAULT_wxUSE_CHECKBOX=no
2165 DEFAULT_wxUSE_CHECKLST=no
2166 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2167 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e
SC
2168 DEFAULT_wxUSE_COMBOBOX=no
2169 DEFAULT_wxUSE_DISPLAY=no
2170 DEFAULT_wxUSE_GAUGE=no
2171 DEFAULT_wxUSE_GRID=no
2172 DEFAULT_wxUSE_IMAGLIST=no
2173 DEFAULT_wxUSE_LISTBOOK=no
2174 DEFAULT_wxUSE_LISTBOX=no
2175 DEFAULT_wxUSE_LISTCTRL=no
2176 DEFAULT_wxUSE_NOTEBOOK=no
2177 DEFAULT_wxUSE_RADIOBOX=no
2178 DEFAULT_wxUSE_RADIOBTN=no
2179 DEFAULT_wxUSE_SASH=no
2180 DEFAULT_wxUSE_SCROLLBAR=no
2181 DEFAULT_wxUSE_SLIDER=no
2182 DEFAULT_wxUSE_SPINBTN=no
2183 DEFAULT_wxUSE_SPINCTRL=no
2184 DEFAULT_wxUSE_SPLITTER=no
2185 DEFAULT_wxUSE_STATBMP=no
2186 DEFAULT_wxUSE_STATBOX=no
2187 DEFAULT_wxUSE_STATLINE=no
2188 DEFAULT_wxUSE_STATTEXT=no
2189 DEFAULT_wxUSE_STATUSBAR=yes
2190 DEFAULT_wxUSE_TABDIALOG=no
2191 DEFAULT_wxUSE_TEXTCTRL=no
2192 DEFAULT_wxUSE_TOGGLEBTN=no
2193 DEFAULT_wxUSE_TOOLBAR=no
2194 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2195 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2196 DEFAULT_wxUSE_TREECTRL=no
2197 DEFAULT_wxUSE_POPUPWIN=no
2198 DEFAULT_wxUSE_TIPWINDOW=no
2199
2200 DEFAULT_wxUSE_UNICODE=no
2201 DEFAULT_wxUSE_UNICODE_MSLU=no
2202 DEFAULT_wxUSE_WCSRTOMBS=no
2203
2204 DEFAULT_wxUSE_PALETTE=no
2205 DEFAULT_wxUSE_IMAGE=no
2206 DEFAULT_wxUSE_GIF=no
2207 DEFAULT_wxUSE_PCX=no
2208 DEFAULT_wxUSE_PNM=no
2209 DEFAULT_wxUSE_IFF=no
2210 DEFAULT_wxUSE_XPM=no
2211 DEFAULT_wxUSE_ICO_CUR=no
2212 DEFAULT_wxUSE_ACCESSIBILITY=no
2213
2214 DEFAULT_wxUSE_MONOLITHIC=no
2215 DEFAULT_wxUSE_PLUGINS=no
2216 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2217else
2218 DEFAULT_wxUSE_UNIVERSAL=no
2219 DEFAULT_wxUSE_STL=no
2220
2221 DEFAULT_wxUSE_NANOX=no
2222
2223 DEFAULT_wxUSE_THREADS=yes
2224
2225 DEFAULT_wxUSE_SHARED=yes
2226 DEFAULT_wxUSE_OPTIMISE=yes
2227 DEFAULT_wxUSE_PROFILE=no
2228 DEFAULT_wxUSE_NO_DEPS=no
2229 DEFAULT_wxUSE_NO_RTTI=no
2230 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2231 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2232 DEFAULT_wxUSE_PERMISSIVE=no
2233 DEFAULT_wxUSE_DEBUG_FLAG=no
2234 DEFAULT_wxUSE_DEBUG_INFO=no
2235 DEFAULT_wxUSE_DEBUG_GDB=no
2236 DEFAULT_wxUSE_MEM_TRACING=no
2237 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2238 DEFAULT_wxUSE_DMALLOC=no
2239 DEFAULT_wxUSE_APPLE_IEEE=yes
2240
2241 DEFAULT_wxUSE_EXCEPTIONS=yes
2242 DEFAULT_wxUSE_LOG=yes
2243 DEFAULT_wxUSE_LOGWINDOW=yes
2244 DEFAULT_wxUSE_LOGGUI=yes
2245 DEFAULT_wxUSE_LOGDIALOG=yes
2246
2247 DEFAULT_wxUSE_GUI=yes
2248
2249 DEFAULT_wxUSE_REGEX=yes
2250 DEFAULT_wxUSE_XML=yes
2251 DEFAULT_wxUSE_EXPAT=yes
2252 DEFAULT_wxUSE_ZLIB=yes
2253 DEFAULT_wxUSE_LIBPNG=yes
2254 DEFAULT_wxUSE_LIBJPEG=yes
2255 DEFAULT_wxUSE_LIBTIFF=yes
2256 DEFAULT_wxUSE_LIBXPM=yes
2257 DEFAULT_wxUSE_LIBMSPACK=yes
2258 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2259 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2260 DEFAULT_wxUSE_ODBC=no
2261 DEFAULT_wxUSE_OPENGL=no
2262
2263 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2264 DEFAULT_wxUSE_STACKWALKER=yes
a848cd7e
SC
2265 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2266 DEFAULT_wxUSE_STD_IOSTREAM=no
2267 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2268 DEFAULT_wxUSE_DATETIME=yes
2269 DEFAULT_wxUSE_TIMER=yes
2270 DEFAULT_wxUSE_STOPWATCH=yes
2271 DEFAULT_wxUSE_FILE=yes
2272 DEFAULT_wxUSE_FFILE=yes
2273 DEFAULT_wxUSE_TEXTBUFFER=yes
2274 DEFAULT_wxUSE_TEXTFILE=yes
2275 DEFAULT_wxUSE_SOUND=yes
3b57de8b
RL
2276 DEFAULT_wxUSE_MEDIACTRL=no
2277 DEFAULT_wxUSE_DIRECTSHOW=no
a848cd7e
SC
2278 DEFAULT_wxUSE_INTL=yes
2279 DEFAULT_wxUSE_CONFIG=yes
2280 DEFAULT_wxUSE_FONTMAP=yes
2281 DEFAULT_wxUSE_STREAMS=yes
2282 DEFAULT_wxUSE_SOCKETS=yes
2283 DEFAULT_wxUSE_OLE=yes
2284 DEFAULT_wxUSE_DATAOBJ=yes
2285 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2286 DEFAULT_wxUSE_JOYSTICK=yes
2287 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2288 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2289 DEFAULT_wxUSE_LONGLONG=yes
2290 DEFAULT_wxUSE_GEOMETRY=yes
2291
2292 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2293 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2294 DEFAULT_wxUSE_POSTSCRIPT=yes
2295
2296 DEFAULT_wxUSE_CLIPBOARD=yes
2297 DEFAULT_wxUSE_TOOLTIPS=yes
2298 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2299 DEFAULT_wxUSE_DRAGIMAGE=yes
2300 DEFAULT_wxUSE_SPLINES=yes
2301
8a7b1113 2302 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2303 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2304 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2305 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2306
2307 DEFAULT_wxUSE_RESOURCES=no
2308 DEFAULT_wxUSE_CONSTRAINTS=yes
2309 DEFAULT_wxUSE_IPC=yes
2310 DEFAULT_wxUSE_HELP=yes
2311 DEFAULT_wxUSE_MS_HTML_HELP=yes
2312 DEFAULT_wxUSE_WXHTML_HELP=yes
2313 DEFAULT_wxUSE_TREELAYOUT=yes
2314 DEFAULT_wxUSE_METAFILE=yes
2315 DEFAULT_wxUSE_MIMETYPE=yes
2316 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2317 DEFAULT_wxUSE_PROTOCOL=yes
2318 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2319 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2320 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2321 DEFAULT_wxUSE_URL=yes
2322
2323 DEFAULT_wxUSE_COMMONDLGS=yes
2324 DEFAULT_wxUSE_CHOICEDLG=yes
2325 DEFAULT_wxUSE_COLOURDLG=yes
2326 DEFAULT_wxUSE_DIRDLG=yes
2327 DEFAULT_wxUSE_FILEDLG=yes
2328 DEFAULT_wxUSE_FINDREPLDLG=yes
2329 DEFAULT_wxUSE_FONTDLG=yes
2330 DEFAULT_wxUSE_MSGDLG=yes
2331 DEFAULT_wxUSE_NUMBERDLG=yes
2332 DEFAULT_wxUSE_TEXTDLG=yes
2333 DEFAULT_wxUSE_SPLASH=yes
2334 DEFAULT_wxUSE_STARTUP_TIPS=yes
2335 DEFAULT_wxUSE_PROGRESSDLG=yes
2336 DEFAULT_wxUSE_WIZARDDLG=yes
2337
2338 DEFAULT_wxUSE_MENUS=yes
2339 DEFAULT_wxUSE_MINIFRAME=yes
2340 DEFAULT_wxUSE_HTML=yes
9a8f0513 2341 DEFAULT_wxUSE_XRC=yes
646b6ec1 2342 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2343 DEFAULT_wxUSE_FILESYSTEM=yes
2344 DEFAULT_wxUSE_FS_INET=yes
2345 DEFAULT_wxUSE_FS_ZIP=yes
2346 DEFAULT_wxUSE_BUSYINFO=yes
2347 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2348 DEFAULT_wxUSE_VALIDATORS=yes
2349
2350 DEFAULT_wxUSE_ACCEL=yes
2351 DEFAULT_wxUSE_BUTTON=yes
2352 DEFAULT_wxUSE_BMPBUTTON=yes
2353 DEFAULT_wxUSE_CALCTRL=yes
2354 DEFAULT_wxUSE_CARET=yes
2355 DEFAULT_wxUSE_CHECKBOX=yes
2356 DEFAULT_wxUSE_CHECKLST=yes
2357 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2358 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e
SC
2359 DEFAULT_wxUSE_COMBOBOX=yes
2360 DEFAULT_wxUSE_DISPLAY=yes
2361 DEFAULT_wxUSE_GAUGE=yes
2362 DEFAULT_wxUSE_GRID=yes
2363 DEFAULT_wxUSE_IMAGLIST=yes
2364 DEFAULT_wxUSE_LISTBOOK=yes
2365 DEFAULT_wxUSE_LISTBOX=yes
2366 DEFAULT_wxUSE_LISTCTRL=yes
2367 DEFAULT_wxUSE_NOTEBOOK=yes
2368 DEFAULT_wxUSE_RADIOBOX=yes
2369 DEFAULT_wxUSE_RADIOBTN=yes
2370 DEFAULT_wxUSE_SASH=yes
2371 DEFAULT_wxUSE_SCROLLBAR=yes
2372 DEFAULT_wxUSE_SLIDER=yes
2373 DEFAULT_wxUSE_SPINBTN=yes
2374 DEFAULT_wxUSE_SPINCTRL=yes
2375 DEFAULT_wxUSE_SPLITTER=yes
2376 DEFAULT_wxUSE_STATBMP=yes
2377 DEFAULT_wxUSE_STATBOX=yes
2378 DEFAULT_wxUSE_STATLINE=yes
2379 DEFAULT_wxUSE_STATTEXT=yes
2380 DEFAULT_wxUSE_STATUSBAR=yes
2381 DEFAULT_wxUSE_TABDIALOG=no
2382 DEFAULT_wxUSE_TEXTCTRL=yes
2383 DEFAULT_wxUSE_TOGGLEBTN=yes
2384 DEFAULT_wxUSE_TOOLBAR=yes
2385 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2386 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2387 DEFAULT_wxUSE_TREECTRL=yes
2388 DEFAULT_wxUSE_POPUPWIN=yes
2389 DEFAULT_wxUSE_TIPWINDOW=yes
2390
2391 DEFAULT_wxUSE_UNICODE=no
2392 DEFAULT_wxUSE_UNICODE_MSLU=yes
2393 DEFAULT_wxUSE_WCSRTOMBS=no
2394
2395 DEFAULT_wxUSE_PALETTE=yes
2396 DEFAULT_wxUSE_IMAGE=yes
2397 DEFAULT_wxUSE_GIF=yes
2398 DEFAULT_wxUSE_PCX=yes
2399 DEFAULT_wxUSE_IFF=no
2400 DEFAULT_wxUSE_PNM=yes
2401 DEFAULT_wxUSE_XPM=yes
2402 DEFAULT_wxUSE_ICO_CUR=yes
2403 DEFAULT_wxUSE_ACCESSIBILITY=no
2404
2405 DEFAULT_wxUSE_MONOLITHIC=no
2406 DEFAULT_wxUSE_PLUGINS=no
2407 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e
VS
2408
2409 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2410fi
2411
2412
2413
2414for toolkit in `echo $ALL_TOOLKITS`; do
2415 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2416 if test "x$LINE" != "x" ; then
2417 has_toolkit_in_cache=1
2418 eval "DEFAULT_$LINE"
2419 eval "CACHE_$toolkit=1"
2420 fi
2421done
2422
2423
2424
2425 enablestring=
2426 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2427echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2428 no_cache=0
2429 # Check whether --enable-gui or --disable-gui was given.
2430if test "${enable_gui+set}" = set; then
2431 enableval="$enable_gui"
2432
2433 if test "$enableval" = yes; then
2434 ac_cv_use_gui='wxUSE_GUI=yes'
2435 else
2436 ac_cv_use_gui='wxUSE_GUI=no'
2437 fi
2438
2439else
2440
2441 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2442 if test "x$LINE" != x ; then
2443 eval "DEFAULT_$LINE"
2444 else
2445 no_cache=1
2446 fi
2447
2448 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2449
2450fi;
2451
2452 eval "$ac_cv_use_gui"
2453 if test "$no_cache" != 1; then
2454 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2455 fi
2456
2457 if test "$wxUSE_GUI" = yes; then
2458 echo "$as_me:$LINENO: result: yes" >&5
2459echo "${ECHO_T}yes" >&6
2460 else
2461 echo "$as_me:$LINENO: result: no" >&5
2462echo "${ECHO_T}no" >&6
2463 fi
2464
2465
2466 enablestring=
2467 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2468echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2469 no_cache=0
2470 # Check whether --enable-monolithic or --disable-monolithic was given.
2471if test "${enable_monolithic+set}" = set; then
2472 enableval="$enable_monolithic"
2473
2474 if test "$enableval" = yes; then
2475 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2476 else
2477 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2478 fi
2479
2480else
2481
2482 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2483 if test "x$LINE" != x ; then
2484 eval "DEFAULT_$LINE"
2485 else
2486 no_cache=1
2487 fi
2488
2489 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2490
2491fi;
2492
2493 eval "$ac_cv_use_monolithic"
2494 if test "$no_cache" != 1; then
2495 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2496 fi
2497
2498 if test "$wxUSE_MONOLITHIC" = yes; then
2499 echo "$as_me:$LINENO: result: yes" >&5
2500echo "${ECHO_T}yes" >&6
2501 else
2502 echo "$as_me:$LINENO: result: no" >&5
2503echo "${ECHO_T}no" >&6
2504 fi
2505
2506
2507 enablestring=
2508 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2509echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2510 no_cache=0
2511 # Check whether --enable-plugins or --disable-plugins was given.
2512if test "${enable_plugins+set}" = set; then
2513 enableval="$enable_plugins"
2514
2515 if test "$enableval" = yes; then
2516 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2517 else
2518 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2519 fi
2520
2521else
2522
2523 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2524 if test "x$LINE" != x ; then
2525 eval "DEFAULT_$LINE"
2526 else
2527 no_cache=1
2528 fi
2529
2530 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2531
2532fi;
2533
2534 eval "$ac_cv_use_plugins"
2535 if test "$no_cache" != 1; then
2536 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2537 fi
2538
2539 if test "$wxUSE_PLUGINS" = yes; then
2540 echo "$as_me:$LINENO: result: yes" >&5
2541echo "${ECHO_T}yes" >&6
2542 else
2543 echo "$as_me:$LINENO: result: no" >&5
2544echo "${ECHO_T}no" >&6
2545 fi
2546
2547
2548if test "$wxUSE_GUI" = "yes"; then
2549
2550
2551 enablestring=
2552 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2553echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2554 no_cache=0
2555 # Check whether --enable-universal or --disable-universal was given.
2556if test "${enable_universal+set}" = set; then
2557 enableval="$enable_universal"
2558
2559 if test "$enableval" = yes; then
2560 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2561 else
2562 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2563 fi
2564
2565else
2566
2567 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2568 if test "x$LINE" != x ; then
2569 eval "DEFAULT_$LINE"
2570 else
2571 no_cache=1
2572 fi
2573
2574 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2575
2576fi;
2577
2578 eval "$ac_cv_use_universal"
2579 if test "$no_cache" != 1; then
2580 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2581 fi
2582
2583 if test "$wxUSE_UNIVERSAL" = yes; then
2584 echo "$as_me:$LINENO: result: yes" >&5
2585echo "${ECHO_T}yes" >&6
2586 else
2587 echo "$as_me:$LINENO: result: no" >&5
2588echo "${ECHO_T}no" >&6
2589 fi
2590
2591
2592# Check whether --with-gtk or --without-gtk was given.
2593if test "${with_gtk+set}" = set; then
2594 withval="$with_gtk"
2595 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2596fi;
2597
2598# Check whether --with-motif or --without-motif was given.
2599if test "${with_motif+set}" = set; then
2600 withval="$with_motif"
2601 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2602fi;
2603
2604# Check whether --with-mac or --without-mac was given.
2605if test "${with_mac+set}" = set; then
2606 withval="$with_mac"
c228d3a4 2607 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2608fi;
2609
2610# Check whether --with-cocoa or --without-cocoa was given.
2611if test "${with_cocoa+set}" = set; then
2612 withval="$with_cocoa"
c228d3a4 2613 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2614fi;
2615
2616# Check whether --with-wine or --without-wine was given.
2617if test "${with_wine+set}" = set; then
2618 withval="$with_wine"
2619 wxUSE_WINE="$withval" CACHE_WINE=1
2620fi;
2621
2622# Check whether --with-msw or --without-msw was given.
2623if test "${with_msw+set}" = set; then
2624 withval="$with_msw"
2625 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2626fi;
2627
2628# Check whether --with-pm or --without-pm was given.
2629if test "${with_pm+set}" = set; then
2630 withval="$with_pm"
2631 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2632fi;
2633
2634# Check whether --with-mgl or --without-mgl was given.
2635if test "${with_mgl+set}" = set; then
2636 withval="$with_mgl"
2637 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2638fi;
2639
2640# Check whether --with-microwin or --without-microwin was given.
2641if test "${with_microwin+set}" = set; then
2642 withval="$with_microwin"
2643 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2644fi;
2645
2646# Check whether --with-x11 or --without-x11 was given.
2647if test "${with_x11+set}" = set; then
2648 withval="$with_x11"
2649 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2650fi;
2651
2652 enablestring=
2653 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2654echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2655 no_cache=0
2656 # Check whether --enable-nanox or --disable-nanox was given.
2657if test "${enable_nanox+set}" = set; then
2658 enableval="$enable_nanox"
2659
2660 if test "$enableval" = yes; then
2661 ac_cv_use_nanox='wxUSE_NANOX=yes'
2662 else
2663 ac_cv_use_nanox='wxUSE_NANOX=no'
2664 fi
2665
2666else
2667
2668 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2669 if test "x$LINE" != x ; then
2670 eval "DEFAULT_$LINE"
2671 else
2672 no_cache=1
2673 fi
2674
2675 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2676
2677fi;
2678
2679 eval "$ac_cv_use_nanox"
2680 if test "$no_cache" != 1; then
2681 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2682 fi
2683
2684 if test "$wxUSE_NANOX" = yes; then
2685 echo "$as_me:$LINENO: result: yes" >&5
2686echo "${ECHO_T}yes" >&6
2687 else
2688 echo "$as_me:$LINENO: result: no" >&5
2689echo "${ECHO_T}no" >&6
2690 fi
2691
2692
2693
2694 enablestring=
2695 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2696echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
2697 no_cache=0
2698 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2699if test "${enable_gtk2+set}" = set; then
2700 enableval="$enable_gtk2"
2701
2702 if test "$enableval" = yes; then
2703 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2704 else
2705 ac_cv_use_gtk2='wxUSE_GTK2=no'
2706 fi
2707
2708else
2709
2710 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2711 if test "x$LINE" != x ; then
2712 eval "DEFAULT_$LINE"
2713 else
2714 no_cache=1
2715 fi
2716
2717 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2718
2719fi;
2720
2721 eval "$ac_cv_use_gtk2"
2722 if test "$no_cache" != 1; then
2723 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2724 fi
2725
2726 if test "$wxUSE_GTK2" = yes; then
2727 echo "$as_me:$LINENO: result: yes" >&5
2728echo "${ECHO_T}yes" >&6
2729 else
2730 echo "$as_me:$LINENO: result: no" >&5
2731echo "${ECHO_T}no" >&6
2732 fi
2733
2734
2735 enablestring=
2736 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2737echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2738 no_cache=0
2739 # Check whether --enable-gpe or --disable-gpe was given.
2740if test "${enable_gpe+set}" = set; then
2741 enableval="$enable_gpe"
2742
2743 if test "$enableval" = yes; then
2744 ac_cv_use_gpe='wxUSE_GPE=yes'
2745 else
2746 ac_cv_use_gpe='wxUSE_GPE=no'
2747 fi
2748
2749else
2750
2751 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2752 if test "x$LINE" != x ; then
2753 eval "DEFAULT_$LINE"
2754 else
2755 no_cache=1
2756 fi
2757
2758 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2759
2760fi;
2761
2762 eval "$ac_cv_use_gpe"
2763 if test "$no_cache" != 1; then
2764 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2765 fi
2766
2767 if test "$wxUSE_GPE" = yes; then
2768 echo "$as_me:$LINENO: result: yes" >&5
2769echo "${ECHO_T}yes" >&6
2770 else
2771 echo "$as_me:$LINENO: result: no" >&5
2772echo "${ECHO_T}no" >&6
2773 fi
2774
2775
2776
2777 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2778echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2779 no_cache=0
2780
2781# Check whether --with-libpng or --without-libpng was given.
2782if test "${with_libpng+set}" = set; then
2783 withval="$with_libpng"
2784
2785 if test "$withval" = yes; then
2786 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2787 elif test "$withval" = no; then
2788 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2789 elif test "$withval" = sys; then
2790 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2791 elif test "$withval" = builtin; then
2792 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2793 else
2794 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2795echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2796 { (exit 1); exit 1; }; }
2797 fi
2798
2799else
2800
2801 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2802 if test "x$LINE" != x ; then
2803 eval "DEFAULT_$LINE"
2804 else
2805 no_cache=1
2806 fi
2807
2808 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2809
2810fi;
2811
2812 eval "$ac_cv_use_libpng"
2813 if test "$no_cache" != 1; then
2814 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2815 fi
2816
2817 if test "$wxUSE_LIBPNG" = yes; then
2818 echo "$as_me:$LINENO: result: yes" >&5
2819echo "${ECHO_T}yes" >&6
2820 elif test "$wxUSE_LIBPNG" = no; then
2821 echo "$as_me:$LINENO: result: no" >&5
2822echo "${ECHO_T}no" >&6
2823 elif test "$wxUSE_LIBPNG" = sys; then
2824 echo "$as_me:$LINENO: result: system version" >&5
2825echo "${ECHO_T}system version" >&6
2826 elif test "$wxUSE_LIBPNG" = builtin; then
2827 echo "$as_me:$LINENO: result: builtin version" >&5
2828echo "${ECHO_T}builtin version" >&6
2829 else
2830 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2831echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2832 { (exit 1); exit 1; }; }
2833 fi
2834
2835
2836 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2837echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2838 no_cache=0
2839
2840# Check whether --with-libjpeg or --without-libjpeg was given.
2841if test "${with_libjpeg+set}" = set; then
2842 withval="$with_libjpeg"
2843
2844 if test "$withval" = yes; then
2845 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2846 elif test "$withval" = no; then
2847 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2848 elif test "$withval" = sys; then
2849 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2850 elif test "$withval" = builtin; then
2851 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2852 else
2853 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2854echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2855 { (exit 1); exit 1; }; }
2856 fi
2857
2858else
2859
2860 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2861 if test "x$LINE" != x ; then
2862 eval "DEFAULT_$LINE"
2863 else
2864 no_cache=1
2865 fi
2866
2867 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2868
2869fi;
2870
2871 eval "$ac_cv_use_libjpeg"
2872 if test "$no_cache" != 1; then
2873 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2874 fi
2875
2876 if test "$wxUSE_LIBJPEG" = yes; then
2877 echo "$as_me:$LINENO: result: yes" >&5
2878echo "${ECHO_T}yes" >&6
2879 elif test "$wxUSE_LIBJPEG" = no; then
2880 echo "$as_me:$LINENO: result: no" >&5
2881echo "${ECHO_T}no" >&6
2882 elif test "$wxUSE_LIBJPEG" = sys; then
2883 echo "$as_me:$LINENO: result: system version" >&5
2884echo "${ECHO_T}system version" >&6
2885 elif test "$wxUSE_LIBJPEG" = builtin; then
2886 echo "$as_me:$LINENO: result: builtin version" >&5
2887echo "${ECHO_T}builtin version" >&6
2888 else
2889 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2890echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2891 { (exit 1); exit 1; }; }
2892 fi
2893
2894
2895 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2896echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2897 no_cache=0
2898
2899# Check whether --with-libtiff or --without-libtiff was given.
2900if test "${with_libtiff+set}" = set; then
2901 withval="$with_libtiff"
2902
2903 if test "$withval" = yes; then
2904 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2905 elif test "$withval" = no; then
2906 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2907 elif test "$withval" = sys; then
2908 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2909 elif test "$withval" = builtin; then
2910 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2911 else
2912 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2913echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2914 { (exit 1); exit 1; }; }
2915 fi
2916
2917else
2918
2919 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2920 if test "x$LINE" != x ; then
2921 eval "DEFAULT_$LINE"
2922 else
2923 no_cache=1
2924 fi
2925
2926 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2927
2928fi;
2929
2930 eval "$ac_cv_use_libtiff"
2931 if test "$no_cache" != 1; then
2932 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2933 fi
2934
2935 if test "$wxUSE_LIBTIFF" = yes; then
2936 echo "$as_me:$LINENO: result: yes" >&5
2937echo "${ECHO_T}yes" >&6
2938 elif test "$wxUSE_LIBTIFF" = no; then
2939 echo "$as_me:$LINENO: result: no" >&5
2940echo "${ECHO_T}no" >&6
2941 elif test "$wxUSE_LIBTIFF" = sys; then
2942 echo "$as_me:$LINENO: result: system version" >&5
2943echo "${ECHO_T}system version" >&6
2944 elif test "$wxUSE_LIBTIFF" = builtin; then
2945 echo "$as_me:$LINENO: result: builtin version" >&5
2946echo "${ECHO_T}builtin version" >&6
2947 else
2948 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2949echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2950 { (exit 1); exit 1; }; }
2951 fi
2952
2953
2954 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2955echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2956 no_cache=0
2957
2958# Check whether --with-libxpm or --without-libxpm was given.
2959if test "${with_libxpm+set}" = set; then
2960 withval="$with_libxpm"
2961
2962 if test "$withval" = yes; then
2963 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2964 elif test "$withval" = no; then
2965 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2966 elif test "$withval" = sys; then
2967 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2968 elif test "$withval" = builtin; then
2969 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2970 else
2971 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2972echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2973 { (exit 1); exit 1; }; }
2974 fi
2975
2976else
2977
2978 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2979 if test "x$LINE" != x ; then
2980 eval "DEFAULT_$LINE"
2981 else
2982 no_cache=1
2983 fi
2984
2985 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2986
2987fi;
2988
2989 eval "$ac_cv_use_libxpm"
2990 if test "$no_cache" != 1; then
2991 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2992 fi
2993
2994 if test "$wxUSE_LIBXPM" = yes; then
2995 echo "$as_me:$LINENO: result: yes" >&5
2996echo "${ECHO_T}yes" >&6
2997 elif test "$wxUSE_LIBXPM" = no; then
2998 echo "$as_me:$LINENO: result: no" >&5
2999echo "${ECHO_T}no" >&6
3000 elif test "$wxUSE_LIBXPM" = sys; then
3001 echo "$as_me:$LINENO: result: system version" >&5
3002echo "${ECHO_T}system version" >&6
3003 elif test "$wxUSE_LIBXPM" = builtin; then
3004 echo "$as_me:$LINENO: result: builtin version" >&5
3005echo "${ECHO_T}builtin version" >&6
3006 else
3007 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3008echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3009 { (exit 1); exit 1; }; }
3010 fi
3011
3012
3013 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
3014echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
3015 no_cache=0
3016
3017# Check whether --with-libmspack or --without-libmspack was given.
3018if test "${with_libmspack+set}" = set; then
3019 withval="$with_libmspack"
3020
3021 if test "$withval" = yes; then
3022 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3023 else
3024 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3025 fi
3026
3027else
3028
3029 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3030 if test "x$LINE" != x ; then
3031 eval "DEFAULT_$LINE"
3032 else
3033 no_cache=1
3034 fi
3035
3036 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3037
3038fi;
3039
3040 eval "$ac_cv_use_libmspack"
3041 if test "$no_cache" != 1; then
3042 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3043 fi
3044
3045 if test "$wxUSE_LIBMSPACK" = yes; then
3046 echo "$as_me:$LINENO: result: yes" >&5
3047echo "${ECHO_T}yes" >&6
3048 else
3049 echo "$as_me:$LINENO: result: no" >&5
3050echo "${ECHO_T}no" >&6
3051 fi
3052
3053
3054 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3055echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3056 no_cache=0
3057
3058# Check whether --with-sdl or --without-sdl was given.
3059if test "${with_sdl+set}" = set; then
3060 withval="$with_sdl"
3061
3062 if test "$withval" = yes; then
3063 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3064 else
3065 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3066 fi
3067
3068else
3069
3070 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3071 if test "x$LINE" != x ; then
3072 eval "DEFAULT_$LINE"
3073 else
3074 no_cache=1
3075 fi
3076
3077 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3078
3079fi;
3080
3081 eval "$ac_cv_use_sdl"
3082 if test "$no_cache" != 1; then
3083 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3084 fi
3085
3086 if test "$wxUSE_LIBSDL" = yes; then
3087 echo "$as_me:$LINENO: result: yes" >&5
3088echo "${ECHO_T}yes" >&6
3089 else
3090 echo "$as_me:$LINENO: result: no" >&5
3091echo "${ECHO_T}no" >&6
3092 fi
3093
3094
d1c38808
VZ
3095 echo "$as_me:$LINENO: checking for --with-gnomeprint" >&5
3096echo $ECHO_N "checking for --with-gnomeprint... $ECHO_C" >&6
3097 no_cache=0
3098
3099# Check whether --with-gnomeprint or --without-gnomeprint was given.
3100if test "${with_gnomeprint+set}" = set; then
3101 withval="$with_gnomeprint"
3102
3103 if test "$withval" = yes; then
3104 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3105 else
3106 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3107 fi
3108
3109else
3110
3111 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3112 if test "x$LINE" != x ; then
3113 eval "DEFAULT_$LINE"
3114 else
3115 no_cache=1
3116 fi
3117
3118 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3119
3120fi;
3121
3122 eval "$ac_cv_use_gnomeprint"
3123 if test "$no_cache" != 1; then
3124 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3125 fi
3126
3127 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3128 echo "$as_me:$LINENO: result: yes" >&5
3129echo "${ECHO_T}yes" >&6
3130 else
3131 echo "$as_me:$LINENO: result: no" >&5
3132echo "${ECHO_T}no" >&6
3133 fi
3134
3135
a848cd7e
SC
3136 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3137echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3138 no_cache=0
3139
3140# Check whether --with-opengl or --without-opengl was given.
3141if test "${with_opengl+set}" = set; then
3142 withval="$with_opengl"
3143
3144 if test "$withval" = yes; then
3145 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3146 else
3147 ac_cv_use_opengl='wxUSE_OPENGL=no'
3148 fi
3149
3150else
3151
3152 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3153 if test "x$LINE" != x ; then
3154 eval "DEFAULT_$LINE"
3155 else
3156 no_cache=1
3157 fi
3158
3159 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3160
3161fi;
3162
3163 eval "$ac_cv_use_opengl"
3164 if test "$no_cache" != 1; then
3165 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3166 fi
3167
3168 if test "$wxUSE_OPENGL" = yes; then
3169 echo "$as_me:$LINENO: result: yes" >&5
3170echo "${ECHO_T}yes" >&6
3171 else
3172 echo "$as_me:$LINENO: result: no" >&5
3173echo "${ECHO_T}no" >&6
3174 fi
3175
3176
3177fi
3178
3179
3180 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3181echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3182 no_cache=0
3183
3184# Check whether --with-dmalloc or --without-dmalloc was given.
3185if test "${with_dmalloc+set}" = set; then
3186 withval="$with_dmalloc"
3187
3188 if test "$withval" = yes; then
3189 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3190 else
3191 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3192 fi
3193
3194else
3195
3196 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3197 if test "x$LINE" != x ; then
3198 eval "DEFAULT_$LINE"
3199 else
3200 no_cache=1
3201 fi
3202
3203 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3204
3205fi;
3206
3207 eval "$ac_cv_use_dmalloc"
3208 if test "$no_cache" != 1; then
3209 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3210 fi
3211
3212 if test "$wxUSE_DMALLOC" = yes; then
3213 echo "$as_me:$LINENO: result: yes" >&5
3214echo "${ECHO_T}yes" >&6
3215 else
3216 echo "$as_me:$LINENO: result: no" >&5
3217echo "${ECHO_T}no" >&6
3218 fi
3219
3220
3221 echo "$as_me:$LINENO: checking for --with-regex" >&5
3222echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3223 no_cache=0
3224
3225# Check whether --with-regex or --without-regex was given.
3226if test "${with_regex+set}" = set; then
3227 withval="$with_regex"
3228
3229 if test "$withval" = yes; then
3230 ac_cv_use_regex='wxUSE_REGEX=yes'
3231 elif test "$withval" = no; then
3232 ac_cv_use_regex='wxUSE_REGEX=no'
3233 elif test "$withval" = sys; then
3234 ac_cv_use_regex='wxUSE_REGEX=sys'
3235 elif test "$withval" = builtin; then
3236 ac_cv_use_regex='wxUSE_REGEX=builtin'
3237 else
3238 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3239echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3240 { (exit 1); exit 1; }; }
3241 fi
3242
3243else
3244
3245 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3246 if test "x$LINE" != x ; then
3247 eval "DEFAULT_$LINE"
3248 else
3249 no_cache=1
3250 fi
3251
3252 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3253
3254fi;
3255
3256 eval "$ac_cv_use_regex"
3257 if test "$no_cache" != 1; then
3258 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3259 fi
3260
3261 if test "$wxUSE_REGEX" = yes; then
3262 echo "$as_me:$LINENO: result: yes" >&5
3263echo "${ECHO_T}yes" >&6
3264 elif test "$wxUSE_REGEX" = no; then
3265 echo "$as_me:$LINENO: result: no" >&5
3266echo "${ECHO_T}no" >&6
3267 elif test "$wxUSE_REGEX" = sys; then
3268 echo "$as_me:$LINENO: result: system version" >&5
3269echo "${ECHO_T}system version" >&6
3270 elif test "$wxUSE_REGEX" = builtin; then
3271 echo "$as_me:$LINENO: result: builtin version" >&5
3272echo "${ECHO_T}builtin version" >&6
3273 else
3274 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3275echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3276 { (exit 1); exit 1; }; }
3277 fi
3278
3279
3280 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3281echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3282 no_cache=0
3283
3284# Check whether --with-zlib or --without-zlib was given.
3285if test "${with_zlib+set}" = set; then
3286 withval="$with_zlib"
3287
3288 if test "$withval" = yes; then
3289 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3290 elif test "$withval" = no; then
3291 ac_cv_use_zlib='wxUSE_ZLIB=no'
3292 elif test "$withval" = sys; then
3293 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3294 elif test "$withval" = builtin; then
3295 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3296 else
3297 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3298echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3299 { (exit 1); exit 1; }; }
3300 fi
3301
3302else
3303
3304 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3305 if test "x$LINE" != x ; then
3306 eval "DEFAULT_$LINE"
3307 else
3308 no_cache=1
3309 fi
3310
3311 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3312
3313fi;
3314
3315 eval "$ac_cv_use_zlib"
3316 if test "$no_cache" != 1; then
3317 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3318 fi
3319
3320 if test "$wxUSE_ZLIB" = yes; then
3321 echo "$as_me:$LINENO: result: yes" >&5
3322echo "${ECHO_T}yes" >&6
3323 elif test "$wxUSE_ZLIB" = no; then
3324 echo "$as_me:$LINENO: result: no" >&5
3325echo "${ECHO_T}no" >&6
3326 elif test "$wxUSE_ZLIB" = sys; then
3327 echo "$as_me:$LINENO: result: system version" >&5
3328echo "${ECHO_T}system version" >&6
3329 elif test "$wxUSE_ZLIB" = builtin; then
3330 echo "$as_me:$LINENO: result: builtin version" >&5
3331echo "${ECHO_T}builtin version" >&6
3332 else
3333 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3334echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3335 { (exit 1); exit 1; }; }
3336 fi
3337
3338
3339 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3340echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3341 no_cache=0
3342
3343# Check whether --with-odbc or --without-odbc was given.
3344if test "${with_odbc+set}" = set; then
3345 withval="$with_odbc"
3346
3347 if test "$withval" = yes; then
3348 ac_cv_use_odbc='wxUSE_ODBC=yes'
3349 elif test "$withval" = no; then
3350 ac_cv_use_odbc='wxUSE_ODBC=no'
3351 elif test "$withval" = sys; then
3352 ac_cv_use_odbc='wxUSE_ODBC=sys'
3353 elif test "$withval" = builtin; then
3354 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3355 else
3356 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3357echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3358 { (exit 1); exit 1; }; }
3359 fi
3360
3361else
3362
3363 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3364 if test "x$LINE" != x ; then
3365 eval "DEFAULT_$LINE"
3366 else
3367 no_cache=1
3368 fi
3369
3370 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3371
3372fi;
3373
3374 eval "$ac_cv_use_odbc"
3375 if test "$no_cache" != 1; then
3376 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3377 fi
3378
3379 if test "$wxUSE_ODBC" = yes; then
3380 echo "$as_me:$LINENO: result: yes" >&5
3381echo "${ECHO_T}yes" >&6
3382 elif test "$wxUSE_ODBC" = no; then
3383 echo "$as_me:$LINENO: result: no" >&5
3384echo "${ECHO_T}no" >&6
3385 elif test "$wxUSE_ODBC" = sys; then
3386 echo "$as_me:$LINENO: result: system version" >&5
3387echo "${ECHO_T}system version" >&6
3388 elif test "$wxUSE_ODBC" = builtin; then
3389 echo "$as_me:$LINENO: result: builtin version" >&5
3390echo "${ECHO_T}builtin version" >&6
3391 else
3392 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3393echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3394 { (exit 1); exit 1; }; }
3395 fi
3396
3397
3398 echo "$as_me:$LINENO: checking for --with-expat" >&5
3399echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3400 no_cache=0
3401
3402# Check whether --with-expat or --without-expat was given.
3403if test "${with_expat+set}" = set; then
3404 withval="$with_expat"
3405
3406 if test "$withval" = yes; then
3407 ac_cv_use_expat='wxUSE_EXPAT=yes'
3408 elif test "$withval" = no; then
3409 ac_cv_use_expat='wxUSE_EXPAT=no'
3410 elif test "$withval" = sys; then
3411 ac_cv_use_expat='wxUSE_EXPAT=sys'
3412 elif test "$withval" = builtin; then
3413 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3414 else
3415 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3416echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3417 { (exit 1); exit 1; }; }
3418 fi
3419
3420else
3421
3422 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3423 if test "x$LINE" != x ; then
3424 eval "DEFAULT_$LINE"
3425 else
3426 no_cache=1
3427 fi
3428
3429 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3430
3431fi;
3432
3433 eval "$ac_cv_use_expat"
3434 if test "$no_cache" != 1; then
3435 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3436 fi
3437
3438 if test "$wxUSE_EXPAT" = yes; then
3439 echo "$as_me:$LINENO: result: yes" >&5
3440echo "${ECHO_T}yes" >&6
3441 elif test "$wxUSE_EXPAT" = no; then
3442 echo "$as_me:$LINENO: result: no" >&5
3443echo "${ECHO_T}no" >&6
3444 elif test "$wxUSE_EXPAT" = sys; then
3445 echo "$as_me:$LINENO: result: system version" >&5
3446echo "${ECHO_T}system version" >&6
3447 elif test "$wxUSE_EXPAT" = builtin; then
3448 echo "$as_me:$LINENO: result: builtin version" >&5
3449echo "${ECHO_T}builtin version" >&6
3450 else
3451 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3452echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3453 { (exit 1); exit 1; }; }
3454 fi
3455
3456
3457
3458
3459 enablestring=
3460 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3461echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3462 no_cache=0
3463 # Check whether --enable-shared or --disable-shared was given.
3464if test "${enable_shared+set}" = set; then
3465 enableval="$enable_shared"
3466
3467 if test "$enableval" = yes; then
3468 ac_cv_use_shared='wxUSE_SHARED=yes'
3469 else
3470 ac_cv_use_shared='wxUSE_SHARED=no'
3471 fi
3472
3473else
3474
3475 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3476 if test "x$LINE" != x ; then
3477 eval "DEFAULT_$LINE"
3478 else
3479 no_cache=1
3480 fi
3481
3482 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3483
3484fi;
3485
3486 eval "$ac_cv_use_shared"
3487 if test "$no_cache" != 1; then
3488 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3489 fi
3490
3491 if test "$wxUSE_SHARED" = yes; then
3492 echo "$as_me:$LINENO: result: yes" >&5
3493echo "${ECHO_T}yes" >&6
3494 else
3495 echo "$as_me:$LINENO: result: no" >&5
3496echo "${ECHO_T}no" >&6
3497 fi
3498
3499
3500 enablestring=
3501 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3502echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3503 no_cache=0
3504 # Check whether --enable-optimise or --disable-optimise was given.
3505if test "${enable_optimise+set}" = set; then
3506 enableval="$enable_optimise"
3507
3508 if test "$enableval" = yes; then
3509 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3510 else
3511 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3512 fi
3513
3514else
3515
3516 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3517 if test "x$LINE" != x ; then
3518 eval "DEFAULT_$LINE"
3519 else
3520 no_cache=1
3521 fi
3522
3523 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3524
3525fi;
3526
3527 eval "$ac_cv_use_optimise"
3528 if test "$no_cache" != 1; then
3529 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3530 fi
3531
3532 if test "$wxUSE_OPTIMISE" = yes; then
3533 echo "$as_me:$LINENO: result: yes" >&5
3534echo "${ECHO_T}yes" >&6
3535 else
3536 echo "$as_me:$LINENO: result: no" >&5
3537echo "${ECHO_T}no" >&6
3538 fi
3539
3540
3541 enablestring=
3542 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3543echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3544 no_cache=0
3545 # Check whether --enable-debug or --disable-debug was given.
3546if test "${enable_debug+set}" = set; then
3547 enableval="$enable_debug"
3548
3549 if test "$enableval" = yes; then
3550 ac_cv_use_debug='wxUSE_DEBUG=yes'
3551 else
3552 ac_cv_use_debug='wxUSE_DEBUG=no'
3553 fi
3554
3555else
3556
3557 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3558 if test "x$LINE" != x ; then
3559 eval "DEFAULT_$LINE"
3560 else
3561 no_cache=1
3562 fi
3563
3564 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3565
3566fi;
3567
3568 eval "$ac_cv_use_debug"
3569 if test "$no_cache" != 1; then
3570 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3571 fi
3572
3573 if test "$wxUSE_DEBUG" = yes; then
3574 echo "$as_me:$LINENO: result: yes" >&5
3575echo "${ECHO_T}yes" >&6
3576 else
3577 echo "$as_me:$LINENO: result: no" >&5
3578echo "${ECHO_T}no" >&6
3579 fi
3580
3581
3582 enablestring=
3583 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3584echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3585 no_cache=0
3586 # Check whether --enable-stl or --disable-stl was given.
3587if test "${enable_stl+set}" = set; then
3588 enableval="$enable_stl"
3589
3590 if test "$enableval" = yes; then
3591 ac_cv_use_stl='wxUSE_STL=yes'
3592 else
3593 ac_cv_use_stl='wxUSE_STL=no'
3594 fi
3595
3596else
3597
3598 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3599 if test "x$LINE" != x ; then
3600 eval "DEFAULT_$LINE"
3601 else
3602 no_cache=1
3603 fi
3604
3605 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3606
3607fi;
3608
3609 eval "$ac_cv_use_stl"
3610 if test "$no_cache" != 1; then
3611 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3612 fi
3613
3614 if test "$wxUSE_STL" = yes; then
3615 echo "$as_me:$LINENO: result: yes" >&5
3616echo "${ECHO_T}yes" >&6
3617 else
3618 echo "$as_me:$LINENO: result: no" >&5
3619echo "${ECHO_T}no" >&6
3620 fi
3621
3622if test "$USE_OS2" = "1"; then
3623
3624 enablestring=
3625 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3626echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3627 no_cache=0
3628 # Check whether --enable-omf or --disable-omf was given.
3629if test "${enable_omf+set}" = set; then
3630 enableval="$enable_omf"
3631
3632 if test "$enableval" = yes; then
3633 ac_cv_use_omf='wxUSE_OMF=yes'
3634 else
3635 ac_cv_use_omf='wxUSE_OMF=no'
3636 fi
3637
3638else
3639
3640 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3641 if test "x$LINE" != x ; then
3642 eval "DEFAULT_$LINE"
3643 else
3644 no_cache=1
3645 fi
3646
3647 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3648
3649fi;
3650
3651 eval "$ac_cv_use_omf"
3652 if test "$no_cache" != 1; then
3653 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3654 fi
3655
3656 if test "$wxUSE_OMF" = yes; then
3657 echo "$as_me:$LINENO: result: yes" >&5
3658echo "${ECHO_T}yes" >&6
3659 else
3660 echo "$as_me:$LINENO: result: no" >&5
3661echo "${ECHO_T}no" >&6
3662 fi
3663
3664fi
3665
3666if test "$wxUSE_DEBUG" = "yes"; then
3667 DEFAULT_wxUSE_DEBUG_FLAG=yes
3668 DEFAULT_wxUSE_DEBUG_INFO=yes
3669 BUILD=debug
3670elif test "$wxUSE_DEBUG" = "no"; then
3671 DEFAULT_wxUSE_DEBUG_FLAG=no
3672 DEFAULT_wxUSE_DEBUG_INFO=no
3673 BUILD=release
3674fi
3675
3676
3677 enablestring=
3678 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3679echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3680 no_cache=0
3681 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3682if test "${enable_debug_flag+set}" = set; then
3683 enableval="$enable_debug_flag"
3684
3685 if test "$enableval" = yes; then
3686 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3687 else
3688 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3689 fi
3690
3691else
3692
3693 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3694 if test "x$LINE" != x ; then
3695 eval "DEFAULT_$LINE"
3696 else
3697 no_cache=1
3698 fi
3699
3700 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3701
3702fi;
3703
3704 eval "$ac_cv_use_debug_flag"
3705 if test "$no_cache" != 1; then
3706 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3707 fi
3708
3709 if test "$wxUSE_DEBUG_FLAG" = yes; then
3710 echo "$as_me:$LINENO: result: yes" >&5
3711echo "${ECHO_T}yes" >&6
3712 else
3713 echo "$as_me:$LINENO: result: no" >&5
3714echo "${ECHO_T}no" >&6
3715 fi
3716
3717
3718 enablestring=
3719 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3720echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3721 no_cache=0
3722 # Check whether --enable-debug_info or --disable-debug_info was given.
3723if test "${enable_debug_info+set}" = set; then
3724 enableval="$enable_debug_info"
3725
3726 if test "$enableval" = yes; then
3727 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3728 else
3729 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3730 fi
3731
3732else
3733
3734 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3735 if test "x$LINE" != x ; then
3736 eval "DEFAULT_$LINE"
3737 else
3738 no_cache=1
3739 fi
3740
3741 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3742
3743fi;
3744
3745 eval "$ac_cv_use_debug_info"
3746 if test "$no_cache" != 1; then
3747 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3748 fi
3749
3750 if test "$wxUSE_DEBUG_INFO" = yes; then
3751 echo "$as_me:$LINENO: result: yes" >&5
3752echo "${ECHO_T}yes" >&6
3753 else
3754 echo "$as_me:$LINENO: result: no" >&5
3755echo "${ECHO_T}no" >&6
3756 fi
3757
3758
3759 enablestring=
3760 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3761echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3762 no_cache=0
3763 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3764if test "${enable_debug_gdb+set}" = set; then
3765 enableval="$enable_debug_gdb"
3766
3767 if test "$enableval" = yes; then
3768 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3769 else
3770 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3771 fi
3772
3773else
3774
3775 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3776 if test "x$LINE" != x ; then
3777 eval "DEFAULT_$LINE"
3778 else
3779 no_cache=1
3780 fi
3781
3782 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3783
3784fi;
3785
3786 eval "$ac_cv_use_debug_gdb"
3787 if test "$no_cache" != 1; then
3788 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3789 fi
3790
3791 if test "$wxUSE_DEBUG_GDB" = yes; then
3792 echo "$as_me:$LINENO: result: yes" >&5
3793echo "${ECHO_T}yes" >&6
3794 else
3795 echo "$as_me:$LINENO: result: no" >&5
3796echo "${ECHO_T}no" >&6
3797 fi
3798
3799
3800 enablestring=
3801 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3802echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3803 no_cache=0
3804 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3805if test "${enable_debug_cntxt+set}" = set; then
3806 enableval="$enable_debug_cntxt"
3807
3808 if test "$enableval" = yes; then
3809 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3810 else
3811 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3812 fi
3813
3814else
3815
3816 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3817 if test "x$LINE" != x ; then
3818 eval "DEFAULT_$LINE"
3819 else
3820 no_cache=1
3821 fi
3822
3823 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3824
3825fi;
3826
3827 eval "$ac_cv_use_debug_cntxt"
3828 if test "$no_cache" != 1; then
3829 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3830 fi
3831
3832 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3833 echo "$as_me:$LINENO: result: yes" >&5
3834echo "${ECHO_T}yes" >&6
3835 else
3836 echo "$as_me:$LINENO: result: no" >&5
3837echo "${ECHO_T}no" >&6
3838 fi
3839
3840
3841 enablestring=
3842 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3843echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3844 no_cache=0
3845 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3846if test "${enable_mem_tracing+set}" = set; then
3847 enableval="$enable_mem_tracing"
3848
3849 if test "$enableval" = yes; then
3850 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3851 else
3852 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3853 fi
3854
3855else
3856
3857 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3858 if test "x$LINE" != x ; then
3859 eval "DEFAULT_$LINE"
3860 else
3861 no_cache=1
3862 fi
3863
3864 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3865
3866fi;
3867
3868 eval "$ac_cv_use_mem_tracing"
3869 if test "$no_cache" != 1; then
3870 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3871 fi
3872
3873 if test "$wxUSE_MEM_TRACING" = yes; then
3874 echo "$as_me:$LINENO: result: yes" >&5
3875echo "${ECHO_T}yes" >&6
3876 else
3877 echo "$as_me:$LINENO: result: no" >&5
3878echo "${ECHO_T}no" >&6
3879 fi
3880
3881
3882 enablestring=
3883 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3884echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3885 no_cache=0
3886 # Check whether --enable-profile or --disable-profile was given.
3887if test "${enable_profile+set}" = set; then
3888 enableval="$enable_profile"
3889
3890 if test "$enableval" = yes; then
3891 ac_cv_use_profile='wxUSE_PROFILE=yes'
3892 else
3893 ac_cv_use_profile='wxUSE_PROFILE=no'
3894 fi
3895
3896else
3897
3898 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3899 if test "x$LINE" != x ; then
3900 eval "DEFAULT_$LINE"
3901 else
3902 no_cache=1
3903 fi
3904
3905 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3906
3907fi;
3908
3909 eval "$ac_cv_use_profile"
3910 if test "$no_cache" != 1; then
3911 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3912 fi
3913
3914 if test "$wxUSE_PROFILE" = yes; then
3915 echo "$as_me:$LINENO: result: yes" >&5
3916echo "${ECHO_T}yes" >&6
3917 else
3918 echo "$as_me:$LINENO: result: no" >&5
3919echo "${ECHO_T}no" >&6
3920 fi
3921
3922
3923 enablestring=
3924 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3925echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3926 no_cache=0
3927 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3928if test "${enable_no_rtti+set}" = set; then
3929 enableval="$enable_no_rtti"
3930
3931 if test "$enableval" = yes; then
3932 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3933 else
3934 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3935 fi
3936
3937else
3938
3939 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3940 if test "x$LINE" != x ; then
3941 eval "DEFAULT_$LINE"
3942 else
3943 no_cache=1
3944 fi
3945
3946 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3947
3948fi;
3949
3950 eval "$ac_cv_use_no_rtti"
3951 if test "$no_cache" != 1; then
3952 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3953 fi
3954
3955 if test "$wxUSE_NO_RTTI" = yes; then
3956 echo "$as_me:$LINENO: result: yes" >&5
3957echo "${ECHO_T}yes" >&6
3958 else
3959 echo "$as_me:$LINENO: result: no" >&5
3960echo "${ECHO_T}no" >&6
3961 fi
3962
3963
3964 enablestring=
3965 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3966echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3967 no_cache=0
3968 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3969if test "${enable_no_exceptions+set}" = set; then
3970 enableval="$enable_no_exceptions"
3971
3972 if test "$enableval" = yes; then
3973 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3974 else
3975 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3976 fi
3977
3978else
3979
3980 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3981 if test "x$LINE" != x ; then
3982 eval "DEFAULT_$LINE"
3983 else
3984 no_cache=1
3985 fi
3986
3987 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3988
3989fi;
3990
3991 eval "$ac_cv_use_no_exceptions"
3992 if test "$no_cache" != 1; then
3993 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3994 fi
3995
3996 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3997 echo "$as_me:$LINENO: result: yes" >&5
3998echo "${ECHO_T}yes" >&6
3999 else
4000 echo "$as_me:$LINENO: result: no" >&5
4001echo "${ECHO_T}no" >&6
4002 fi
4003
4004
4005 enablestring=
4006 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4007echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4008 no_cache=0
4009 # Check whether --enable-permissive or --disable-permissive was given.
4010if test "${enable_permissive+set}" = set; then
4011 enableval="$enable_permissive"
4012
4013 if test "$enableval" = yes; then
4014 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4015 else
4016 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4017 fi
4018
4019else
4020
4021 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4022 if test "x$LINE" != x ; then
4023 eval "DEFAULT_$LINE"
4024 else
4025 no_cache=1
4026 fi
4027
4028 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4029
4030fi;
4031
4032 eval "$ac_cv_use_permissive"
4033 if test "$no_cache" != 1; then
4034 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4035 fi
4036
4037 if test "$wxUSE_PERMISSIVE" = yes; then
4038 echo "$as_me:$LINENO: result: yes" >&5
4039echo "${ECHO_T}yes" >&6
4040 else
4041 echo "$as_me:$LINENO: result: no" >&5
4042echo "${ECHO_T}no" >&6
4043 fi
4044
4045
4046 enablestring=
4047 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4048echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4049 no_cache=0
4050 # Check whether --enable-no_deps or --disable-no_deps was given.
4051if test "${enable_no_deps+set}" = set; then
4052 enableval="$enable_no_deps"
4053
4054 if test "$enableval" = yes; then
4055 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4056 else
4057 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4058 fi
4059
4060else
4061
4062 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4063 if test "x$LINE" != x ; then
4064 eval "DEFAULT_$LINE"
4065 else
4066 no_cache=1
4067 fi
4068
4069 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4070
4071fi;
4072
4073 eval "$ac_cv_use_no_deps"
4074 if test "$no_cache" != 1; then
4075 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4076 fi
4077
4078 if test "$wxUSE_NO_DEPS" = yes; then
4079 echo "$as_me:$LINENO: result: yes" >&5
4080echo "${ECHO_T}yes" >&6
4081 else
4082 echo "$as_me:$LINENO: result: no" >&5
4083echo "${ECHO_T}no" >&6
4084 fi
4085
4086
4087
4088 enablestring=
4089 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4090echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4091 no_cache=0
4092 # Check whether --enable-compat22 or --disable-compat22 was given.
4093if test "${enable_compat22+set}" = set; then
4094 enableval="$enable_compat22"
4095
4096 if test "$enableval" = yes; then
4097 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4098 else
4099 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4100 fi
4101
4102else
4103
4104 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4105 if test "x$LINE" != x ; then
4106 eval "DEFAULT_$LINE"
4107 else
4108 no_cache=1
4109 fi
4110
4111 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4112
4113fi;
4114
4115 eval "$ac_cv_use_compat22"
4116 if test "$no_cache" != 1; then
4117 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4118 fi
4119
4120 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4121 echo "$as_me:$LINENO: result: yes" >&5
4122echo "${ECHO_T}yes" >&6
4123 else
4124 echo "$as_me:$LINENO: result: no" >&5
4125echo "${ECHO_T}no" >&6
4126 fi
4127
4128
4129 enablestring=disable
4130 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4131echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4132 no_cache=0
4133 # Check whether --enable-compat24 or --disable-compat24 was given.
4134if test "${enable_compat24+set}" = set; then
4135 enableval="$enable_compat24"
4136
4137 if test "$enableval" = yes; then
4138 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4139 else
4140 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4141 fi
4142
4143else
4144
4145 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4146 if test "x$LINE" != x ; then
4147 eval "DEFAULT_$LINE"
4148 else
4149 no_cache=1
4150 fi
4151
4152 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4153
4154fi;
4155
4156 eval "$ac_cv_use_compat24"
4157 if test "$no_cache" != 1; then
4158 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4159 fi
4160
4161 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4162 echo "$as_me:$LINENO: result: yes" >&5
4163echo "${ECHO_T}yes" >&6
4164 else
4165 echo "$as_me:$LINENO: result: no" >&5
4166echo "${ECHO_T}no" >&6
4167 fi
4168
4169
ffa0583f
RL
4170
4171 enablestring=
4172 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4173echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4174 no_cache=0
4175 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4176if test "${enable_rpath+set}" = set; then
4177 enableval="$enable_rpath"
ffa0583f
RL
4178
4179 if test "$enableval" = yes; then
4180 ac_cv_use_rpath='wxUSE_RPATH=yes'
4181 else
4182 ac_cv_use_rpath='wxUSE_RPATH=no'
4183 fi
4184
4185else
4186
4187 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4188 if test "x$LINE" != x ; then
4189 eval "DEFAULT_$LINE"
4190 else
4191 no_cache=1
4192 fi
4193
4194 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4195
a848cd7e
SC
4196fi;
4197
ffa0583f
RL
4198 eval "$ac_cv_use_rpath"
4199 if test "$no_cache" != 1; then
4200 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4201 fi
4202
4203 if test "$wxUSE_RPATH" = yes; then
4204 echo "$as_me:$LINENO: result: yes" >&5
4205echo "${ECHO_T}yes" >&6
4206 else
4207 echo "$as_me:$LINENO: result: no" >&5
4208echo "${ECHO_T}no" >&6
4209 fi
4210
a848cd7e
SC
4211
4212
4213
4214
4215 enablestring=
4216 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4217echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4218 no_cache=0
4219 # Check whether --enable-intl or --disable-intl was given.
4220if test "${enable_intl+set}" = set; then
4221 enableval="$enable_intl"
4222
4223 if test "$enableval" = yes; then
4224 ac_cv_use_intl='wxUSE_INTL=yes'
4225 else
4226 ac_cv_use_intl='wxUSE_INTL=no'
4227 fi
4228
4229else
4230
4231 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4232 if test "x$LINE" != x ; then
4233 eval "DEFAULT_$LINE"
4234 else
4235 no_cache=1
4236 fi
4237
4238 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4239
4240fi;
4241
4242 eval "$ac_cv_use_intl"
4243 if test "$no_cache" != 1; then
4244 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4245 fi
4246
4247 if test "$wxUSE_INTL" = yes; then
4248 echo "$as_me:$LINENO: result: yes" >&5
4249echo "${ECHO_T}yes" >&6
4250 else
4251 echo "$as_me:$LINENO: result: no" >&5
4252echo "${ECHO_T}no" >&6
4253 fi
4254
4255
4256 enablestring=
4257 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4258echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4259 no_cache=0
4260 # Check whether --enable-config or --disable-config was given.
4261if test "${enable_config+set}" = set; then
4262 enableval="$enable_config"
4263
4264 if test "$enableval" = yes; then
4265 ac_cv_use_config='wxUSE_CONFIG=yes'
4266 else
4267 ac_cv_use_config='wxUSE_CONFIG=no'
4268 fi
4269
4270else
4271
4272 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4273 if test "x$LINE" != x ; then
4274 eval "DEFAULT_$LINE"
4275 else
4276 no_cache=1
4277 fi
4278
4279 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4280
4281fi;
4282
4283 eval "$ac_cv_use_config"
4284 if test "$no_cache" != 1; then
4285 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4286 fi
4287
4288 if test "$wxUSE_CONFIG" = yes; then
4289 echo "$as_me:$LINENO: result: yes" >&5
4290echo "${ECHO_T}yes" >&6
4291 else
4292 echo "$as_me:$LINENO: result: no" >&5
4293echo "${ECHO_T}no" >&6
4294 fi
4295
4296
4297
4298 enablestring=
4299 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4300echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4301 no_cache=0
4302 # Check whether --enable-protocols or --disable-protocols was given.
4303if test "${enable_protocols+set}" = set; then
4304 enableval="$enable_protocols"
4305
4306 if test "$enableval" = yes; then
4307 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4308 else
4309 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4310 fi
4311
4312else
4313
4314 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4315 if test "x$LINE" != x ; then
4316 eval "DEFAULT_$LINE"
4317 else
4318 no_cache=1
4319 fi
4320
4321 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4322
4323fi;
4324
4325 eval "$ac_cv_use_protocols"
4326 if test "$no_cache" != 1; then
4327 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4328 fi
4329
4330 if test "$wxUSE_PROTOCOL" = yes; then
4331 echo "$as_me:$LINENO: result: yes" >&5
4332echo "${ECHO_T}yes" >&6
4333 else
4334 echo "$as_me:$LINENO: result: no" >&5
4335echo "${ECHO_T}no" >&6
4336 fi
4337
4338
4339 enablestring=
4340 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4341echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4342 no_cache=0
4343 # Check whether --enable-ftp or --disable-ftp was given.
4344if test "${enable_ftp+set}" = set; then
4345 enableval="$enable_ftp"
4346
4347 if test "$enableval" = yes; then
4348 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4349 else
4350 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4351 fi
4352
4353else
4354
4355 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4356 if test "x$LINE" != x ; then
4357 eval "DEFAULT_$LINE"
4358 else
4359 no_cache=1
4360 fi
4361
4362 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4363
4364fi;
4365
4366 eval "$ac_cv_use_ftp"
4367 if test "$no_cache" != 1; then
4368 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4369 fi
4370
4371 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4372 echo "$as_me:$LINENO: result: yes" >&5
4373echo "${ECHO_T}yes" >&6
4374 else
4375 echo "$as_me:$LINENO: result: no" >&5
4376echo "${ECHO_T}no" >&6
4377 fi
4378
4379
4380 enablestring=
4381 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4382echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4383 no_cache=0
4384 # Check whether --enable-http or --disable-http was given.
4385if test "${enable_http+set}" = set; then
4386 enableval="$enable_http"
4387
4388 if test "$enableval" = yes; then
4389 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4390 else
4391 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4392 fi
4393
4394else
4395
4396 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4397 if test "x$LINE" != x ; then
4398 eval "DEFAULT_$LINE"
4399 else
4400 no_cache=1
4401 fi
4402
4403 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4404
4405fi;
4406
4407 eval "$ac_cv_use_http"
4408 if test "$no_cache" != 1; then
4409 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4410 fi
4411
4412 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4413 echo "$as_me:$LINENO: result: yes" >&5
4414echo "${ECHO_T}yes" >&6
4415 else
4416 echo "$as_me:$LINENO: result: no" >&5
4417echo "${ECHO_T}no" >&6
4418 fi
4419
4420
4421 enablestring=
4422 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4423echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4424 no_cache=0
4425 # Check whether --enable-fileproto or --disable-fileproto was given.
4426if test "${enable_fileproto+set}" = set; then
4427 enableval="$enable_fileproto"
4428
4429 if test "$enableval" = yes; then
4430 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4431 else
4432 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4433 fi
4434
4435else
4436
4437 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4438 if test "x$LINE" != x ; then
4439 eval "DEFAULT_$LINE"
4440 else
4441 no_cache=1
4442 fi
4443
4444 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4445
4446fi;
4447
4448 eval "$ac_cv_use_fileproto"
4449 if test "$no_cache" != 1; then
4450 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4451 fi
4452
4453 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4454 echo "$as_me:$LINENO: result: yes" >&5
4455echo "${ECHO_T}yes" >&6
4456 else
4457 echo "$as_me:$LINENO: result: no" >&5
4458echo "${ECHO_T}no" >&6
4459 fi
4460
4461
4462 enablestring=
4463 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4464echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4465 no_cache=0
4466 # Check whether --enable-sockets or --disable-sockets was given.
4467if test "${enable_sockets+set}" = set; then
4468 enableval="$enable_sockets"
4469
4470 if test "$enableval" = yes; then
4471 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4472 else
4473 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4474 fi
4475
4476else
4477
4478 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4479 if test "x$LINE" != x ; then
4480 eval "DEFAULT_$LINE"
4481 else
4482 no_cache=1
4483 fi
4484
4485 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4486
4487fi;
4488
4489 eval "$ac_cv_use_sockets"
4490 if test "$no_cache" != 1; then
4491 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4492 fi
4493
4494 if test "$wxUSE_SOCKETS" = yes; then
4495 echo "$as_me:$LINENO: result: yes" >&5
4496echo "${ECHO_T}yes" >&6
4497 else
4498 echo "$as_me:$LINENO: result: no" >&5
4499echo "${ECHO_T}no" >&6
4500 fi
4501
4502
4503 enablestring=
4504 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4505echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4506 no_cache=0
4507 # Check whether --enable-ole or --disable-ole was given.
4508if test "${enable_ole+set}" = set; then
4509 enableval="$enable_ole"
4510
4511 if test "$enableval" = yes; then
4512 ac_cv_use_ole='wxUSE_OLE=yes'
4513 else
4514 ac_cv_use_ole='wxUSE_OLE=no'
4515 fi
4516
4517else
4518
4519 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4520 if test "x$LINE" != x ; then
4521 eval "DEFAULT_$LINE"
4522 else
4523 no_cache=1
4524 fi
4525
4526 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4527
4528fi;
4529
4530 eval "$ac_cv_use_ole"
4531 if test "$no_cache" != 1; then
4532 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4533 fi
4534
4535 if test "$wxUSE_OLE" = yes; then
4536 echo "$as_me:$LINENO: result: yes" >&5
4537echo "${ECHO_T}yes" >&6
4538 else
4539 echo "$as_me:$LINENO: result: no" >&5
4540echo "${ECHO_T}no" >&6
4541 fi
4542
4543
4544 enablestring=
4545 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4546echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4547 no_cache=0
4548 # Check whether --enable-dataobj or --disable-dataobj was given.
4549if test "${enable_dataobj+set}" = set; then
4550 enableval="$enable_dataobj"
4551
4552 if test "$enableval" = yes; then
4553 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4554 else
4555 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4556 fi
4557
4558else
4559
4560 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4561 if test "x$LINE" != x ; then
4562 eval "DEFAULT_$LINE"
4563 else
4564 no_cache=1
4565 fi
4566
4567 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4568
4569fi;
4570
4571 eval "$ac_cv_use_dataobj"
4572 if test "$no_cache" != 1; then
4573 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4574 fi
4575
4576 if test "$wxUSE_DATAOBJ" = yes; then
4577 echo "$as_me:$LINENO: result: yes" >&5
4578echo "${ECHO_T}yes" >&6
4579 else
4580 echo "$as_me:$LINENO: result: no" >&5
4581echo "${ECHO_T}no" >&6
4582 fi
4583
4584
4585
4586 enablestring=
4587 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4588echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4589 no_cache=0
4590 # Check whether --enable-ipc or --disable-ipc was given.
4591if test "${enable_ipc+set}" = set; then
4592 enableval="$enable_ipc"
4593
4594 if test "$enableval" = yes; then
4595 ac_cv_use_ipc='wxUSE_IPC=yes'
4596 else
4597 ac_cv_use_ipc='wxUSE_IPC=no'
4598 fi
4599
4600else
4601
4602 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4603 if test "x$LINE" != x ; then
4604 eval "DEFAULT_$LINE"
4605 else
4606 no_cache=1
4607 fi
4608
4609 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4610
4611fi;
4612
4613 eval "$ac_cv_use_ipc"
4614 if test "$no_cache" != 1; then
4615 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4616 fi
4617
4618 if test "$wxUSE_IPC" = yes; then
4619 echo "$as_me:$LINENO: result: yes" >&5
4620echo "${ECHO_T}yes" >&6
4621 else
4622 echo "$as_me:$LINENO: result: no" >&5
4623echo "${ECHO_T}no" >&6
4624 fi
4625
4626
4627
4628 enablestring=
4629 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4630echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4631 no_cache=0
4632 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4633if test "${enable_apple_ieee+set}" = set; then
4634 enableval="$enable_apple_ieee"
4635
4636 if test "$enableval" = yes; then
4637 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4638 else
4639 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4640 fi
4641
4642else
4643
4644 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4645 if test "x$LINE" != x ; then
4646 eval "DEFAULT_$LINE"
4647 else
4648 no_cache=1
4649 fi
4650
4651 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4652
4653fi;
4654
4655 eval "$ac_cv_use_apple_ieee"
4656 if test "$no_cache" != 1; then
4657 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4658 fi
4659
4660 if test "$wxUSE_APPLE_IEEE" = yes; then
4661 echo "$as_me:$LINENO: result: yes" >&5
4662echo "${ECHO_T}yes" >&6
4663 else
4664 echo "$as_me:$LINENO: result: no" >&5
4665echo "${ECHO_T}no" >&6
4666 fi
4667
4668
4669 enablestring=
4670 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4671echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
4672 no_cache=0
4673 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4674if test "${enable_catch_segvs+set}" = set; then
4675 enableval="$enable_catch_segvs"
4676
4677 if test "$enableval" = yes; then
4678 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4679 else
4680 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4681 fi
4682
4683else
4684
4685 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4686 if test "x$LINE" != x ; then
4687 eval "DEFAULT_$LINE"
4688 else
4689 no_cache=1
4690 fi
4691
4692 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4693
4694fi;
4695
4696 eval "$ac_cv_use_catch_segvs"
4697 if test "$no_cache" != 1; then
4698 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4699 fi
4700
4701 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4702 echo "$as_me:$LINENO: result: yes" >&5
4703echo "${ECHO_T}yes" >&6
4704 else
4705 echo "$as_me:$LINENO: result: no" >&5
4706echo "${ECHO_T}no" >&6
4707 fi
4708
4709
eaff0f0d
VZ
4710 enablestring=
4711 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4712echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
4713 no_cache=0
4714 # Check whether --enable-backtrace or --disable-backtrace was given.
4715if test "${enable_backtrace+set}" = set; then
4716 enableval="$enable_backtrace"
4717
4718 if test "$enableval" = yes; then
4719 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
4720 else
4721 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
4722 fi
4723
4724else
4725
4726 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
4727 if test "x$LINE" != x ; then
4728 eval "DEFAULT_$LINE"
4729 else
4730 no_cache=1
4731 fi
4732
4733 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
4734
4735fi;
4736
4737 eval "$ac_cv_use_backtrace"
4738 if test "$no_cache" != 1; then
4739 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
4740 fi
4741
4742 if test "$wxUSE_STACKWALKER" = yes; then
4743 echo "$as_me:$LINENO: result: yes" >&5
4744echo "${ECHO_T}yes" >&6
4745 else
4746 echo "$as_me:$LINENO: result: no" >&5
4747echo "${ECHO_T}no" >&6
4748 fi
4749
4750
a848cd7e
SC
4751 enablestring=
4752 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4753echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4754 no_cache=0
4755 # Check whether --enable-cmdline or --disable-cmdline was given.
4756if test "${enable_cmdline+set}" = set; then
4757 enableval="$enable_cmdline"
4758
4759 if test "$enableval" = yes; then
4760 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4761 else
4762 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4763 fi
4764
4765else
4766
4767 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4768 if test "x$LINE" != x ; then
4769 eval "DEFAULT_$LINE"
4770 else
4771 no_cache=1
4772 fi
4773
4774 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4775
4776fi;
4777
4778 eval "$ac_cv_use_cmdline"
4779 if test "$no_cache" != 1; then
4780 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4781 fi
4782
4783 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4784 echo "$as_me:$LINENO: result: yes" >&5
4785echo "${ECHO_T}yes" >&6
4786 else
4787 echo "$as_me:$LINENO: result: no" >&5
4788echo "${ECHO_T}no" >&6
4789 fi
4790
4791
4792 enablestring=
4793 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4794echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4795 no_cache=0
4796 # Check whether --enable-datetime or --disable-datetime was given.
4797if test "${enable_datetime+set}" = set; then
4798 enableval="$enable_datetime"
4799
4800 if test "$enableval" = yes; then
4801 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4802 else
4803 ac_cv_use_datetime='wxUSE_DATETIME=no'
4804 fi
4805
4806else
4807
4808 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4809 if test "x$LINE" != x ; then
4810 eval "DEFAULT_$LINE"
4811 else
4812 no_cache=1
4813 fi
4814
4815 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4816
4817fi;
4818
4819 eval "$ac_cv_use_datetime"
4820 if test "$no_cache" != 1; then
4821 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4822 fi
4823
4824 if test "$wxUSE_DATETIME" = yes; then
4825 echo "$as_me:$LINENO: result: yes" >&5
4826echo "${ECHO_T}yes" >&6
4827 else
4828 echo "$as_me:$LINENO: result: no" >&5
4829echo "${ECHO_T}no" >&6
4830 fi
4831
4832
4833 enablestring=
4834 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4835echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4836 no_cache=0
4837 # Check whether --enable-dialupman or --disable-dialupman was given.
4838if test "${enable_dialupman+set}" = set; then
4839 enableval="$enable_dialupman"
4840
4841 if test "$enableval" = yes; then
4842 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4843 else
4844 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4845 fi
4846
4847else
4848
4849 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4850 if test "x$LINE" != x ; then
4851 eval "DEFAULT_$LINE"
4852 else
4853 no_cache=1
4854 fi
4855
4856 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4857
4858fi;
4859
4860 eval "$ac_cv_use_dialupman"
4861 if test "$no_cache" != 1; then
4862 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4863 fi
4864
4865 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4866 echo "$as_me:$LINENO: result: yes" >&5
4867echo "${ECHO_T}yes" >&6
4868 else
4869 echo "$as_me:$LINENO: result: no" >&5
4870echo "${ECHO_T}no" >&6
4871 fi
4872
4873
4874 enablestring=
4875 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4876echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4877 no_cache=0
4878 # Check whether --enable-dynlib or --disable-dynlib was given.
4879if test "${enable_dynlib+set}" = set; then
4880 enableval="$enable_dynlib"
4881
4882 if test "$enableval" = yes; then
4883 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4884 else
4885 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4886 fi
4887
4888else
4889
4890 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4891 if test "x$LINE" != x ; then
4892 eval "DEFAULT_$LINE"
4893 else
4894 no_cache=1
4895 fi
4896
4897 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4898
4899fi;
4900
4901 eval "$ac_cv_use_dynlib"
4902 if test "$no_cache" != 1; then
4903 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4904 fi
4905
4906 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4907 echo "$as_me:$LINENO: result: yes" >&5
4908echo "${ECHO_T}yes" >&6
4909 else
4910 echo "$as_me:$LINENO: result: no" >&5
4911echo "${ECHO_T}no" >&6
4912 fi
4913
4914
4915 enablestring=
4916 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4917echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4918 no_cache=0
4919 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4920if test "${enable_dynamicloader+set}" = set; then
4921 enableval="$enable_dynamicloader"
4922
4923 if test "$enableval" = yes; then
4924 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4925 else
4926 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4927 fi
4928
4929else
4930
4931 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4932 if test "x$LINE" != x ; then
4933 eval "DEFAULT_$LINE"
4934 else
4935 no_cache=1
4936 fi
4937
4938 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
4939
4940fi;
4941
4942 eval "$ac_cv_use_dynamicloader"
4943 if test "$no_cache" != 1; then
4944 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4945 fi
4946
4947 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
4948 echo "$as_me:$LINENO: result: yes" >&5
4949echo "${ECHO_T}yes" >&6
4950 else
4951 echo "$as_me:$LINENO: result: no" >&5
4952echo "${ECHO_T}no" >&6
4953 fi
4954
4955
4956 enablestring=
4957 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
4958echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
4959 no_cache=0
4960 # Check whether --enable-exceptions or --disable-exceptions was given.
4961if test "${enable_exceptions+set}" = set; then
4962 enableval="$enable_exceptions"
4963
4964 if test "$enableval" = yes; then
4965 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
4966 else
4967 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
4968 fi
4969
4970else
4971
4972 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
4973 if test "x$LINE" != x ; then
4974 eval "DEFAULT_$LINE"
4975 else
4976 no_cache=1
4977 fi
4978
4979 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
4980
4981fi;
4982
4983 eval "$ac_cv_use_exceptions"
4984 if test "$no_cache" != 1; then
4985 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
4986 fi
4987
4988 if test "$wxUSE_EXCEPTIONS" = yes; then
4989 echo "$as_me:$LINENO: result: yes" >&5
4990echo "${ECHO_T}yes" >&6
4991 else
4992 echo "$as_me:$LINENO: result: no" >&5
4993echo "${ECHO_T}no" >&6
4994 fi
4995
4996
4997 enablestring=
4998 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4999echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5000 no_cache=0
5001 # Check whether --enable-ffile or --disable-ffile was given.
5002if test "${enable_ffile+set}" = set; then
5003 enableval="$enable_ffile"
5004
5005 if test "$enableval" = yes; then
5006 ac_cv_use_ffile='wxUSE_FFILE=yes'
5007 else
5008 ac_cv_use_ffile='wxUSE_FFILE=no'
5009 fi
5010
5011else
5012
5013 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5014 if test "x$LINE" != x ; then
5015 eval "DEFAULT_$LINE"
5016 else
5017 no_cache=1
5018 fi
5019
5020 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5021
5022fi;
5023
5024 eval "$ac_cv_use_ffile"
5025 if test "$no_cache" != 1; then
5026 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5027 fi
5028
5029 if test "$wxUSE_FFILE" = yes; then
5030 echo "$as_me:$LINENO: result: yes" >&5
5031echo "${ECHO_T}yes" >&6
5032 else
5033 echo "$as_me:$LINENO: result: no" >&5
5034echo "${ECHO_T}no" >&6
5035 fi
5036
5037
5038 enablestring=
5039 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5040echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5041 no_cache=0
5042 # Check whether --enable-file or --disable-file was given.
5043if test "${enable_file+set}" = set; then
5044 enableval="$enable_file"
5045
5046 if test "$enableval" = yes; then
5047 ac_cv_use_file='wxUSE_FILE=yes'
5048 else
5049 ac_cv_use_file='wxUSE_FILE=no'
5050 fi
5051
5052else
5053
5054 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5055 if test "x$LINE" != x ; then
5056 eval "DEFAULT_$LINE"
5057 else
5058 no_cache=1
5059 fi
5060
5061 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5062
5063fi;
5064
5065 eval "$ac_cv_use_file"
5066 if test "$no_cache" != 1; then
5067 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5068 fi
5069
5070 if test "$wxUSE_FILE" = yes; then
5071 echo "$as_me:$LINENO: result: yes" >&5
5072echo "${ECHO_T}yes" >&6
5073 else
5074 echo "$as_me:$LINENO: result: no" >&5
5075echo "${ECHO_T}no" >&6
5076 fi
5077
5078
5079 enablestring=
5080 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5081echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5082 no_cache=0
5083 # Check whether --enable-filesystem or --disable-filesystem was given.
5084if test "${enable_filesystem+set}" = set; then
5085 enableval="$enable_filesystem"
5086
5087 if test "$enableval" = yes; then
5088 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5089 else
5090 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5091 fi
5092
5093else
5094
5095 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5096 if test "x$LINE" != x ; then
5097 eval "DEFAULT_$LINE"
5098 else
5099 no_cache=1
5100 fi
5101
5102 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5103
5104fi;
5105
5106 eval "$ac_cv_use_filesystem"
5107 if test "$no_cache" != 1; then
5108 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5109 fi
5110
5111 if test "$wxUSE_FILESYSTEM" = yes; then
5112 echo "$as_me:$LINENO: result: yes" >&5
5113echo "${ECHO_T}yes" >&6
5114 else
5115 echo "$as_me:$LINENO: result: no" >&5
5116echo "${ECHO_T}no" >&6
5117 fi
5118
5119
5120 enablestring=
5121 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5122echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5123 no_cache=0
5124 # Check whether --enable-fontmap or --disable-fontmap was given.
5125if test "${enable_fontmap+set}" = set; then
5126 enableval="$enable_fontmap"
5127
5128 if test "$enableval" = yes; then
5129 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5130 else
5131 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5132 fi
5133
5134else
5135
5136 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5137 if test "x$LINE" != x ; then
5138 eval "DEFAULT_$LINE"
5139 else
5140 no_cache=1
5141 fi
5142
5143 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5144
5145fi;
5146
5147 eval "$ac_cv_use_fontmap"
5148 if test "$no_cache" != 1; then
5149 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5150 fi
5151
5152 if test "$wxUSE_FONTMAP" = yes; then
5153 echo "$as_me:$LINENO: result: yes" >&5
5154echo "${ECHO_T}yes" >&6
5155 else
5156 echo "$as_me:$LINENO: result: no" >&5
5157echo "${ECHO_T}no" >&6
5158 fi
5159
5160
5161 enablestring=
5162 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5163echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5164 no_cache=0
5165 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5166if test "${enable_fs_inet+set}" = set; then
5167 enableval="$enable_fs_inet"
5168
5169 if test "$enableval" = yes; then
5170 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5171 else
5172 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5173 fi
5174
5175else
5176
5177 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5178 if test "x$LINE" != x ; then
5179 eval "DEFAULT_$LINE"
5180 else
5181 no_cache=1
5182 fi
5183
5184 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5185
5186fi;
5187
5188 eval "$ac_cv_use_fs_inet"
5189 if test "$no_cache" != 1; then
5190 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5191 fi
5192
5193 if test "$wxUSE_FS_INET" = yes; then
5194 echo "$as_me:$LINENO: result: yes" >&5
5195echo "${ECHO_T}yes" >&6
5196 else
5197 echo "$as_me:$LINENO: result: no" >&5
5198echo "${ECHO_T}no" >&6
5199 fi
5200
5201
5202 enablestring=
5203 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5204echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5205 no_cache=0
5206 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5207if test "${enable_fs_zip+set}" = set; then
5208 enableval="$enable_fs_zip"
5209
5210 if test "$enableval" = yes; then
5211 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5212 else
5213 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5214 fi
5215
5216else
5217
5218 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5219 if test "x$LINE" != x ; then
5220 eval "DEFAULT_$LINE"
5221 else
5222 no_cache=1
5223 fi
5224
5225 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5226
5227fi;
5228
5229 eval "$ac_cv_use_fs_zip"
5230 if test "$no_cache" != 1; then
5231 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5232 fi
5233
5234 if test "$wxUSE_FS_ZIP" = yes; then
5235 echo "$as_me:$LINENO: result: yes" >&5
5236echo "${ECHO_T}yes" >&6
5237 else
5238 echo "$as_me:$LINENO: result: no" >&5
5239echo "${ECHO_T}no" >&6
5240 fi
5241
5242
5243 enablestring=
5244 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5245echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5246 no_cache=0
5247 # Check whether --enable-geometry or --disable-geometry was given.
5248if test "${enable_geometry+set}" = set; then
5249 enableval="$enable_geometry"
5250
5251 if test "$enableval" = yes; then
5252 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5253 else
5254 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5255 fi
5256
5257else
5258
5259 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5260 if test "x$LINE" != x ; then
5261 eval "DEFAULT_$LINE"
5262 else
5263 no_cache=1
5264 fi
5265
5266 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5267
5268fi;
5269
5270 eval "$ac_cv_use_geometry"
5271 if test "$no_cache" != 1; then
5272 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5273 fi
5274
5275 if test "$wxUSE_GEOMETRY" = yes; then
5276 echo "$as_me:$LINENO: result: yes" >&5
5277echo "${ECHO_T}yes" >&6
5278 else
5279 echo "$as_me:$LINENO: result: no" >&5
5280echo "${ECHO_T}no" >&6
5281 fi
5282
5283
5284 enablestring=
5285 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5286echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5287 no_cache=0
5288 # Check whether --enable-log or --disable-log was given.
5289if test "${enable_log+set}" = set; then
5290 enableval="$enable_log"
5291
5292 if test "$enableval" = yes; then
5293 ac_cv_use_log='wxUSE_LOG=yes'
5294 else
5295 ac_cv_use_log='wxUSE_LOG=no'
5296 fi
5297
5298else
5299
5300 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5301 if test "x$LINE" != x ; then
5302 eval "DEFAULT_$LINE"
5303 else
5304 no_cache=1
5305 fi
5306
5307 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5308
5309fi;
5310
5311 eval "$ac_cv_use_log"
5312 if test "$no_cache" != 1; then
5313 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5314 fi
5315
5316 if test "$wxUSE_LOG" = yes; then
5317 echo "$as_me:$LINENO: result: yes" >&5
5318echo "${ECHO_T}yes" >&6
5319 else
5320 echo "$as_me:$LINENO: result: no" >&5
5321echo "${ECHO_T}no" >&6
5322 fi
5323
5324
5325 enablestring=
5326 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5327echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5328 no_cache=0
5329 # Check whether --enable-longlong or --disable-longlong was given.
5330if test "${enable_longlong+set}" = set; then
5331 enableval="$enable_longlong"
5332
5333 if test "$enableval" = yes; then
5334 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5335 else
5336 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5337 fi
5338
5339else
5340
5341 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5342 if test "x$LINE" != x ; then
5343 eval "DEFAULT_$LINE"
5344 else
5345 no_cache=1
5346 fi
5347
5348 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5349
5350fi;
5351
5352 eval "$ac_cv_use_longlong"
5353 if test "$no_cache" != 1; then
5354 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5355 fi
5356
5357 if test "$wxUSE_LONGLONG" = yes; then
5358 echo "$as_me:$LINENO: result: yes" >&5
5359echo "${ECHO_T}yes" >&6
5360 else
5361 echo "$as_me:$LINENO: result: no" >&5
5362echo "${ECHO_T}no" >&6
5363 fi
5364
5365
5366 enablestring=
5367 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5368echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5369 no_cache=0
5370 # Check whether --enable-mimetype or --disable-mimetype was given.
5371if test "${enable_mimetype+set}" = set; then
5372 enableval="$enable_mimetype"
5373
5374 if test "$enableval" = yes; then
5375 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5376 else
5377 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5378 fi
5379
5380else
5381
5382 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5383 if test "x$LINE" != x ; then
5384 eval "DEFAULT_$LINE"
5385 else
5386 no_cache=1
5387 fi
5388
5389 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5390
5391fi;
5392
5393 eval "$ac_cv_use_mimetype"
5394 if test "$no_cache" != 1; then
5395 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5396 fi
5397
5398 if test "$wxUSE_MIMETYPE" = yes; then
5399 echo "$as_me:$LINENO: result: yes" >&5
5400echo "${ECHO_T}yes" >&6
5401 else
5402 echo "$as_me:$LINENO: result: no" >&5
5403echo "${ECHO_T}no" >&6
5404 fi
5405
5406
5407 enablestring=
5408 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5409echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5410 no_cache=0
5411 # Check whether --enable-mslu or --disable-mslu was given.
5412if test "${enable_mslu+set}" = set; then
5413 enableval="$enable_mslu"
5414
5415 if test "$enableval" = yes; then
5416 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5417 else
5418 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5419 fi
5420
5421else
5422
5423 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5424 if test "x$LINE" != x ; then
5425 eval "DEFAULT_$LINE"
5426 else
5427 no_cache=1
5428 fi
5429
5430 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5431
5432fi;
5433
5434 eval "$ac_cv_use_mslu"
5435 if test "$no_cache" != 1; then
5436 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5437 fi
5438
5439 if test "$wxUSE_UNICODE_MSLU" = yes; then
5440 echo "$as_me:$LINENO: result: yes" >&5
5441echo "${ECHO_T}yes" >&6
5442 else
5443 echo "$as_me:$LINENO: result: no" >&5
5444echo "${ECHO_T}no" >&6
5445 fi
5446
5447
5448 enablestring=
5449 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5450echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5451 no_cache=0
5452 # Check whether --enable-snglinst or --disable-snglinst was given.
5453if test "${enable_snglinst+set}" = set; then
5454 enableval="$enable_snglinst"
5455
5456 if test "$enableval" = yes; then
5457 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5458 else
5459 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5460 fi
5461
5462else
5463
5464 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5465 if test "x$LINE" != x ; then
5466 eval "DEFAULT_$LINE"
5467 else
5468 no_cache=1
5469 fi
5470
5471 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5472
5473fi;
5474
5475 eval "$ac_cv_use_snglinst"
5476 if test "$no_cache" != 1; then
5477 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5478 fi
5479
5480 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5481 echo "$as_me:$LINENO: result: yes" >&5
5482echo "${ECHO_T}yes" >&6
5483 else
5484 echo "$as_me:$LINENO: result: no" >&5
5485echo "${ECHO_T}no" >&6
5486 fi
5487
5488
5489 enablestring=
5490 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5491echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5492 no_cache=0
5493 # Check whether --enable-streams or --disable-streams was given.
5494if test "${enable_streams+set}" = set; then
5495 enableval="$enable_streams"
5496
5497 if test "$enableval" = yes; then
5498 ac_cv_use_streams='wxUSE_STREAMS=yes'
5499 else
5500 ac_cv_use_streams='wxUSE_STREAMS=no'
5501 fi
5502
5503else
5504
5505 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5506 if test "x$LINE" != x ; then
5507 eval "DEFAULT_$LINE"
5508 else
5509 no_cache=1
5510 fi
5511
5512 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5513
5514fi;
5515
5516 eval "$ac_cv_use_streams"
5517 if test "$no_cache" != 1; then
5518 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5519 fi
5520
5521 if test "$wxUSE_STREAMS" = yes; then
5522 echo "$as_me:$LINENO: result: yes" >&5
5523echo "${ECHO_T}yes" >&6
5524 else
5525 echo "$as_me:$LINENO: result: no" >&5
5526echo "${ECHO_T}no" >&6
5527 fi
5528
5529
5530 enablestring=
5531 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5532echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5533 no_cache=0
5534 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5535if test "${enable_std_iostreams+set}" = set; then
5536 enableval="$enable_std_iostreams"
5537
5538 if test "$enableval" = yes; then
5539 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5540 else
5541 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5542 fi
5543
5544else
5545
5546 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5547 if test "x$LINE" != x ; then
5548 eval "DEFAULT_$LINE"
5549 else
5550 no_cache=1
5551 fi
5552
5553 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5554
5555fi;
5556
5557 eval "$ac_cv_use_std_iostreams"
5558 if test "$no_cache" != 1; then
5559 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5560 fi
5561
5562 if test "$wxUSE_STD_IOSTREAM" = yes; then
5563 echo "$as_me:$LINENO: result: yes" >&5
5564echo "${ECHO_T}yes" >&6
5565 else
5566 echo "$as_me:$LINENO: result: no" >&5
5567echo "${ECHO_T}no" >&6
5568 fi
5569
5570
5571 enablestring=
5572 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5573echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5574 no_cache=0
5575 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5576if test "${enable_stopwatch+set}" = set; then
5577 enableval="$enable_stopwatch"
5578
5579 if test "$enableval" = yes; then
5580 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5581 else
5582 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5583 fi
5584
5585else
5586
5587 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5588 if test "x$LINE" != x ; then
5589 eval "DEFAULT_$LINE"
5590 else
5591 no_cache=1
5592 fi
5593
5594 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5595
5596fi;
5597
5598 eval "$ac_cv_use_stopwatch"
5599 if test "$no_cache" != 1; then
5600 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5601 fi
5602
5603 if test "$wxUSE_STOPWATCH" = yes; then
5604 echo "$as_me:$LINENO: result: yes" >&5
5605echo "${ECHO_T}yes" >&6
5606 else
5607 echo "$as_me:$LINENO: result: no" >&5
5608echo "${ECHO_T}no" >&6
5609 fi
5610
5611
5612 enablestring=
5613 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5614echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5615 no_cache=0
5616 # Check whether --enable-system_options or --disable-system_options was given.
5617if test "${enable_system_options+set}" = set; then
5618 enableval="$enable_system_options"
5619
5620 if test "$enableval" = yes; then
5621 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5622 else
5623 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5624 fi
5625
5626else
5627
5628 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5629 if test "x$LINE" != x ; then
5630 eval "DEFAULT_$LINE"
5631 else
5632 no_cache=1
5633 fi
5634
5635 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5636
5637fi;
5638
5639 eval "$ac_cv_use_system_options"
5640 if test "$no_cache" != 1; then
5641 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5642 fi
5643
5644 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5645 echo "$as_me:$LINENO: result: yes" >&5
5646echo "${ECHO_T}yes" >&6
5647 else
5648 echo "$as_me:$LINENO: result: no" >&5
5649echo "${ECHO_T}no" >&6
5650 fi
5651
5652
5653 enablestring=
5654 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5655echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5656 no_cache=0
5657 # Check whether --enable-textbuf or --disable-textbuf was given.
5658if test "${enable_textbuf+set}" = set; then
5659 enableval="$enable_textbuf"
5660
5661 if test "$enableval" = yes; then
5662 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5663 else
5664 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5665 fi
5666
5667else
5668
5669 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5670 if test "x$LINE" != x ; then
5671 eval "DEFAULT_$LINE"
5672 else
5673 no_cache=1
5674 fi
5675
5676 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5677
5678fi;
5679
5680 eval "$ac_cv_use_textbuf"
5681 if test "$no_cache" != 1; then
5682 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5683 fi
5684
5685 if test "$wxUSE_TEXTBUFFER" = yes; then
5686 echo "$as_me:$LINENO: result: yes" >&5
5687echo "${ECHO_T}yes" >&6
5688 else
5689 echo "$as_me:$LINENO: result: no" >&5
5690echo "${ECHO_T}no" >&6
5691 fi
5692
5693
5694 enablestring=
5695 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5696echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5697 no_cache=0
5698 # Check whether --enable-textfile or --disable-textfile was given.
5699if test "${enable_textfile+set}" = set; then
5700 enableval="$enable_textfile"
5701
5702 if test "$enableval" = yes; then
5703 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5704 else
5705 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5706 fi
5707
5708else
5709
5710 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5711 if test "x$LINE" != x ; then
5712 eval "DEFAULT_$LINE"
5713 else
5714 no_cache=1
5715 fi
5716
5717 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5718
5719fi;
5720
5721 eval "$ac_cv_use_textfile"
5722 if test "$no_cache" != 1; then
5723 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5724 fi
5725
5726 if test "$wxUSE_TEXTFILE" = yes; then
5727 echo "$as_me:$LINENO: result: yes" >&5
5728echo "${ECHO_T}yes" >&6
5729 else
5730 echo "$as_me:$LINENO: result: no" >&5
5731echo "${ECHO_T}no" >&6
5732 fi
5733
5734
5735 enablestring=
5736 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5737echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5738 no_cache=0
5739 # Check whether --enable-timer or --disable-timer was given.
5740if test "${enable_timer+set}" = set; then
5741 enableval="$enable_timer"
5742
5743 if test "$enableval" = yes; then
5744 ac_cv_use_timer='wxUSE_TIMER=yes'
5745 else
5746 ac_cv_use_timer='wxUSE_TIMER=no'
5747 fi
5748
5749else
5750
5751 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5752 if test "x$LINE" != x ; then
5753 eval "DEFAULT_$LINE"
5754 else
5755 no_cache=1
5756 fi
5757
5758 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5759
5760fi;
5761
5762 eval "$ac_cv_use_timer"
5763 if test "$no_cache" != 1; then
5764 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5765 fi
5766
5767 if test "$wxUSE_TIMER" = yes; then
5768 echo "$as_me:$LINENO: result: yes" >&5
5769echo "${ECHO_T}yes" >&6
5770 else
5771 echo "$as_me:$LINENO: result: no" >&5
5772echo "${ECHO_T}no" >&6
5773 fi
5774
5775
5776 enablestring=
5777 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5778echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5779 no_cache=0
5780 # Check whether --enable-unicode or --disable-unicode was given.
5781if test "${enable_unicode+set}" = set; then
5782 enableval="$enable_unicode"
5783
5784 if test "$enableval" = yes; then
5785 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5786 else
5787 ac_cv_use_unicode='wxUSE_UNICODE=no'
5788 fi
5789
5790else
5791
5792 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5793 if test "x$LINE" != x ; then
5794 eval "DEFAULT_$LINE"
5795 else
5796 no_cache=1
5797 fi
5798
5799 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5800
5801fi;
5802
5803 eval "$ac_cv_use_unicode"
5804 if test "$no_cache" != 1; then
5805 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5806 fi
5807
5808 if test "$wxUSE_UNICODE" = yes; then
5809 echo "$as_me:$LINENO: result: yes" >&5
5810echo "${ECHO_T}yes" >&6
5811 else
5812 echo "$as_me:$LINENO: result: no" >&5
5813echo "${ECHO_T}no" >&6
5814 fi
5815
5816
5817 enablestring=
5818 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5819echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5820 no_cache=0
5821 # Check whether --enable-sound or --disable-sound was given.
5822if test "${enable_sound+set}" = set; then
5823 enableval="$enable_sound"
5824
5825 if test "$enableval" = yes; then
5826 ac_cv_use_sound='wxUSE_SOUND=yes'
5827 else
5828 ac_cv_use_sound='wxUSE_SOUND=no'
5829 fi
5830
5831else
5832
5833 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5834 if test "x$LINE" != x ; then
5835 eval "DEFAULT_$LINE"
5836 else
5837 no_cache=1
5838 fi
5839
5840 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5841
5842fi;
5843
5844 eval "$ac_cv_use_sound"
5845 if test "$no_cache" != 1; then
5846 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5847 fi
5848
5849 if test "$wxUSE_SOUND" = yes; then
5850 echo "$as_me:$LINENO: result: yes" >&5
5851echo "${ECHO_T}yes" >&6
5852 else
5853 echo "$as_me:$LINENO: result: no" >&5
5854echo "${ECHO_T}no" >&6
5855 fi
5856
5857
3b57de8b
RL
5858 enablestring=
5859 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
5860echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
5861 no_cache=0
5862 # Check whether --enable-mediactrl or --disable-mediactrl was given.
5863if test "${enable_mediactrl+set}" = set; then
5864 enableval="$enable_mediactrl"
5865
5866 if test "$enableval" = yes; then
5867 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
5868 else
5869 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
5870 fi
5871
5872else
5873
5874 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
5875 if test "x$LINE" != x ; then
5876 eval "DEFAULT_$LINE"
5877 else
5878 no_cache=1
5879 fi
5880
5881 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
5882
5883fi;
5884
5885 eval "$ac_cv_use_mediactrl"
5886 if test "$no_cache" != 1; then
5887 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
5888 fi
5889
5890 if test "$wxUSE_MEDIACTRL" = yes; then
5891 echo "$as_me:$LINENO: result: yes" >&5
5892echo "${ECHO_T}yes" >&6
5893 else
5894 echo "$as_me:$LINENO: result: no" >&5
5895echo "${ECHO_T}no" >&6
5896 fi
5897
5898
a848cd7e
SC
5899 enablestring=
5900 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5901echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
5902 no_cache=0
5903 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5904if test "${enable_wxprintfv+set}" = set; then
5905 enableval="$enable_wxprintfv"
5906
5907 if test "$enableval" = yes; then
5908 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5909 else
5910 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5911 fi
5912
5913else
5914
5915 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5916 if test "x$LINE" != x ; then
5917 eval "DEFAULT_$LINE"
5918 else
5919 no_cache=1
5920 fi
5921
5922 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
5923
5924fi;
5925
5926 eval "$ac_cv_use_wxprintfv"
5927 if test "$no_cache" != 1; then
5928 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5929 fi
5930
5931 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
5932 echo "$as_me:$LINENO: result: yes" >&5
5933echo "${ECHO_T}yes" >&6
5934 else
5935 echo "$as_me:$LINENO: result: no" >&5
5936echo "${ECHO_T}no" >&6
5937 fi
5938
5939
5940 enablestring=
5941 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5942echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
5943 no_cache=0
5944 # Check whether --enable-zipstream or --disable-zipstream was given.
5945if test "${enable_zipstream+set}" = set; then
5946 enableval="$enable_zipstream"
5947
5948 if test "$enableval" = yes; then
5949 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5950 else
5951 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5952 fi
5953
5954else
5955
5956 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
5957 if test "x$LINE" != x ; then
5958 eval "DEFAULT_$LINE"
5959 else
5960 no_cache=1
5961 fi
5962
5963 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
5964
5965fi;
5966
5967 eval "$ac_cv_use_zipstream"
5968 if test "$no_cache" != 1; then
5969 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
5970 fi
5971
5972 if test "$wxUSE_ZIPSTREAM" = yes; then
5973 echo "$as_me:$LINENO: result: yes" >&5
5974echo "${ECHO_T}yes" >&6
5975 else
5976 echo "$as_me:$LINENO: result: no" >&5
5977echo "${ECHO_T}no" >&6
5978 fi
5979
5980
a848cd7e
SC
5981
5982 enablestring=
5983 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5984echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
5985 no_cache=0
5986 # Check whether --enable-url or --disable-url was given.
5987if test "${enable_url+set}" = set; then
5988 enableval="$enable_url"
5989
5990 if test "$enableval" = yes; then
5991 ac_cv_use_url='wxUSE_URL=yes'
5992 else
5993 ac_cv_use_url='wxUSE_URL=no'
5994 fi
5995
5996else
5997
5998 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5999 if test "x$LINE" != x ; then
6000 eval "DEFAULT_$LINE"
6001 else
6002 no_cache=1
6003 fi
6004
6005 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6006
6007fi;
6008
6009 eval "$ac_cv_use_url"
6010 if test "$no_cache" != 1; then
6011 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6012 fi
6013
6014 if test "$wxUSE_URL" = yes; then
6015 echo "$as_me:$LINENO: result: yes" >&5
6016echo "${ECHO_T}yes" >&6
6017 else
6018 echo "$as_me:$LINENO: result: no" >&5
6019echo "${ECHO_T}no" >&6
6020 fi
6021
6022
6023 enablestring=
6024 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6025echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6026 no_cache=0
6027 # Check whether --enable-protocol or --disable-protocol was given.
6028if test "${enable_protocol+set}" = set; then
6029 enableval="$enable_protocol"
6030
6031 if test "$enableval" = yes; then
6032 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6033 else
6034 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6035 fi
6036
6037else
6038
6039 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6040 if test "x$LINE" != x ; then
6041 eval "DEFAULT_$LINE"
6042 else
6043 no_cache=1
6044 fi
6045
6046 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6047
6048fi;
6049
6050 eval "$ac_cv_use_protocol"
6051 if test "$no_cache" != 1; then
6052 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6053 fi
6054
6055 if test "$wxUSE_PROTOCOL" = yes; then
6056 echo "$as_me:$LINENO: result: yes" >&5
6057echo "${ECHO_T}yes" >&6
6058 else
6059 echo "$as_me:$LINENO: result: no" >&5
6060echo "${ECHO_T}no" >&6
6061 fi
6062
6063
6064 enablestring=
6065 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6066echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6067 no_cache=0
6068 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6069if test "${enable_protocol_http+set}" = set; then
6070 enableval="$enable_protocol_http"
6071
6072 if test "$enableval" = yes; then
6073 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6074 else
6075 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6076 fi
6077
6078else
6079
6080 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6081 if test "x$LINE" != x ; then
6082 eval "DEFAULT_$LINE"
6083 else
6084 no_cache=1
6085 fi
6086
6087 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6088
6089fi;
6090
6091 eval "$ac_cv_use_protocol_http"
6092 if test "$no_cache" != 1; then
6093 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6094 fi
6095
6096 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6097 echo "$as_me:$LINENO: result: yes" >&5
6098echo "${ECHO_T}yes" >&6
6099 else
6100 echo "$as_me:$LINENO: result: no" >&5
6101echo "${ECHO_T}no" >&6
6102 fi
6103
6104
6105 enablestring=
6106 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6107echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6108 no_cache=0
6109 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6110if test "${enable_protocol_ftp+set}" = set; then
6111 enableval="$enable_protocol_ftp"
6112
6113 if test "$enableval" = yes; then
6114 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6115 else
6116 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6117 fi
6118
6119else
6120
6121 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6122 if test "x$LINE" != x ; then
6123 eval "DEFAULT_$LINE"
6124 else
6125 no_cache=1
6126 fi
6127
6128 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6129
6130fi;
6131
6132 eval "$ac_cv_use_protocol_ftp"
6133 if test "$no_cache" != 1; then
6134 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6135 fi
6136
6137 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6138 echo "$as_me:$LINENO: result: yes" >&5
6139echo "${ECHO_T}yes" >&6
6140 else
6141 echo "$as_me:$LINENO: result: no" >&5
6142echo "${ECHO_T}no" >&6
6143 fi
6144
6145
6146 enablestring=
6147 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6148echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6149 no_cache=0
6150 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6151if test "${enable_protocol_file+set}" = set; then
6152 enableval="$enable_protocol_file"
6153
6154 if test "$enableval" = yes; then
6155 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6156 else
6157 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6158 fi
6159
6160else
6161
6162 LINE=`grep "wxUSE_PROTOCOL_FILE" ${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_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6170
6171fi;
6172
6173 eval "$ac_cv_use_protocol_file"
6174 if test "$no_cache" != 1; then
6175 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6176 fi
6177
6178 if test "$wxUSE_PROTOCOL_FILE" = 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
6187
6188
6189
6190 enablestring=
6191 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6192echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6193 no_cache=0
6194 # Check whether --enable-threads or --disable-threads was given.
6195if test "${enable_threads+set}" = set; then
6196 enableval="$enable_threads"
6197
6198 if test "$enableval" = yes; then
6199 ac_cv_use_threads='wxUSE_THREADS=yes'
6200 else
6201 ac_cv_use_threads='wxUSE_THREADS=no'
6202 fi
6203
6204else
6205
6206 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6207 if test "x$LINE" != x ; then
6208 eval "DEFAULT_$LINE"
6209 else
6210 no_cache=1
6211 fi
6212
6213 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6214
6215fi;
6216
6217 eval "$ac_cv_use_threads"
6218 if test "$no_cache" != 1; then
6219 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6220 fi
6221
6222 if test "$wxUSE_THREADS" = yes; then
6223 echo "$as_me:$LINENO: result: yes" >&5
6224echo "${ECHO_T}yes" >&6
6225 else
6226 echo "$as_me:$LINENO: result: no" >&5
6227echo "${ECHO_T}no" >&6
6228 fi
6229
6230
6231if test "$wxUSE_GUI" = "yes"; then
6232
6233
6234
6235 enablestring=
6236 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6237echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6238 no_cache=0
6239 # Check whether --enable-docview or --disable-docview was given.
6240if test "${enable_docview+set}" = set; then
6241 enableval="$enable_docview"
6242
6243 if test "$enableval" = yes; then
6244 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6245 else
6246 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6247 fi
6248
6249else
6250
6251 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6252 if test "x$LINE" != x ; then
6253 eval "DEFAULT_$LINE"
6254 else
6255 no_cache=1
6256 fi
6257
6258 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6259
6260fi;
6261
6262 eval "$ac_cv_use_docview"
6263 if test "$no_cache" != 1; then
6264 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6265 fi
6266
6267 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6268 echo "$as_me:$LINENO: result: yes" >&5
6269echo "${ECHO_T}yes" >&6
6270 else
6271 echo "$as_me:$LINENO: result: no" >&5
6272echo "${ECHO_T}no" >&6
6273 fi
6274
6275
6276 enablestring=
6277 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6278echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6279 no_cache=0
6280 # Check whether --enable-help or --disable-help was given.
6281if test "${enable_help+set}" = set; then
6282 enableval="$enable_help"
6283
6284 if test "$enableval" = yes; then
6285 ac_cv_use_help='wxUSE_HELP=yes'
6286 else
6287 ac_cv_use_help='wxUSE_HELP=no'
6288 fi
6289
6290else
6291
6292 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6293 if test "x$LINE" != x ; then
6294 eval "DEFAULT_$LINE"
6295 else
6296 no_cache=1
6297 fi
6298
6299 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6300
6301fi;
6302
6303 eval "$ac_cv_use_help"
6304 if test "$no_cache" != 1; then
6305 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6306 fi
6307
6308 if test "$wxUSE_HELP" = yes; then
6309 echo "$as_me:$LINENO: result: yes" >&5
6310echo "${ECHO_T}yes" >&6
6311 else
6312 echo "$as_me:$LINENO: result: no" >&5
6313echo "${ECHO_T}no" >&6
6314 fi
6315
6316
6317 enablestring=
6318 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6319echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6320 no_cache=0
6321 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6322if test "${enable_mshtmlhelp+set}" = set; then
6323 enableval="$enable_mshtmlhelp"
6324
6325 if test "$enableval" = yes; then
6326 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6327 else
6328 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6329 fi
6330
6331else
6332
6333 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6334 if test "x$LINE" != x ; then
6335 eval "DEFAULT_$LINE"
6336 else
6337 no_cache=1
6338 fi
6339
6340 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6341
6342fi;
6343
6344 eval "$ac_cv_use_mshtmlhelp"
6345 if test "$no_cache" != 1; then
6346 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6347 fi
6348
6349 if test "$wxUSE_MS_HTML_HELP" = yes; then
6350 echo "$as_me:$LINENO: result: yes" >&5
6351echo "${ECHO_T}yes" >&6
6352 else
6353 echo "$as_me:$LINENO: result: no" >&5
6354echo "${ECHO_T}no" >&6
6355 fi
6356
6357
6358 enablestring=
6359 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6360echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6361 no_cache=0
6362 # Check whether --enable-html or --disable-html was given.
6363if test "${enable_html+set}" = set; then
6364 enableval="$enable_html"
6365
6366 if test "$enableval" = yes; then
6367 ac_cv_use_html='wxUSE_HTML=yes'
6368 else
6369 ac_cv_use_html='wxUSE_HTML=no'
6370 fi
6371
6372else
6373
6374 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6375 if test "x$LINE" != x ; then
6376 eval "DEFAULT_$LINE"
6377 else
6378 no_cache=1
6379 fi
6380
6381 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6382
6383fi;
6384
6385 eval "$ac_cv_use_html"
6386 if test "$no_cache" != 1; then
6387 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6388 fi
6389
6390 if test "$wxUSE_HTML" = yes; then
6391 echo "$as_me:$LINENO: result: yes" >&5
6392echo "${ECHO_T}yes" >&6
6393 else
6394 echo "$as_me:$LINENO: result: no" >&5
6395echo "${ECHO_T}no" >&6
6396 fi
6397
6398
6399 enablestring=
6400 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6401echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6402 no_cache=0
6403 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6404if test "${enable_htmlhelp+set}" = set; then
6405 enableval="$enable_htmlhelp"
6406
6407 if test "$enableval" = yes; then
6408 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6409 else
6410 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6411 fi
6412
6413else
6414
6415 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6416 if test "x$LINE" != x ; then
6417 eval "DEFAULT_$LINE"
6418 else
6419 no_cache=1
6420 fi
6421
6422 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6423
6424fi;
6425
6426 eval "$ac_cv_use_htmlhelp"
6427 if test "$no_cache" != 1; then
6428 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6429 fi
6430
6431 if test "$wxUSE_WXHTML_HELP" = yes; then
6432 echo "$as_me:$LINENO: result: yes" >&5
6433echo "${ECHO_T}yes" >&6
6434 else
6435 echo "$as_me:$LINENO: result: no" >&5
6436echo "${ECHO_T}no" >&6
6437 fi
6438
6439
9a8f0513
VS
6440 enablestring=
6441 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6442echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6443 no_cache=0
6444 # Check whether --enable-xrc or --disable-xrc was given.
6445if test "${enable_xrc+set}" = set; then
6446 enableval="$enable_xrc"
6447
6448 if test "$enableval" = yes; then
6449 ac_cv_use_xrc='wxUSE_XRC=yes'
6450 else
6451 ac_cv_use_xrc='wxUSE_XRC=no'
6452 fi
6453
6454else
6455
6456 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6457 if test "x$LINE" != x ; then
6458 eval "DEFAULT_$LINE"
6459 else
6460 no_cache=1
6461 fi
6462
6463 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6464
6465fi;
6466
6467 eval "$ac_cv_use_xrc"
6468 if test "$no_cache" != 1; then
6469 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6470 fi
6471
6472 if test "$wxUSE_XRC" = yes; then
6473 echo "$as_me:$LINENO: result: yes" >&5
6474echo "${ECHO_T}yes" >&6
6475 else
6476 echo "$as_me:$LINENO: result: no" >&5
6477echo "${ECHO_T}no" >&6
6478 fi
6479
6480
a848cd7e
SC
6481 enablestring=
6482 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6483echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6484 no_cache=0
6485 # Check whether --enable-constraints or --disable-constraints was given.
6486if test "${enable_constraints+set}" = set; then
6487 enableval="$enable_constraints"
6488
6489 if test "$enableval" = yes; then
6490 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6491 else
6492 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6493 fi
6494
6495else
6496
6497 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6498 if test "x$LINE" != x ; then
6499 eval "DEFAULT_$LINE"
6500 else
6501 no_cache=1
6502 fi
6503
6504 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6505
6506fi;
6507
6508 eval "$ac_cv_use_constraints"
6509 if test "$no_cache" != 1; then
6510 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6511 fi
6512
6513 if test "$wxUSE_CONSTRAINTS" = yes; then
6514 echo "$as_me:$LINENO: result: yes" >&5
6515echo "${ECHO_T}yes" >&6
6516 else
6517 echo "$as_me:$LINENO: result: no" >&5
6518echo "${ECHO_T}no" >&6
6519 fi
6520
6521
6522 enablestring=
6523 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6524echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6525 no_cache=0
6526 # Check whether --enable-printarch or --disable-printarch was given.
6527if test "${enable_printarch+set}" = set; then
6528 enableval="$enable_printarch"
6529
6530 if test "$enableval" = yes; then
6531 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6532 else
6533 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6534 fi
6535
6536else
6537
6538 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6539 if test "x$LINE" != x ; then
6540 eval "DEFAULT_$LINE"
6541 else
6542 no_cache=1
6543 fi
6544
6545 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6546
6547fi;
6548
6549 eval "$ac_cv_use_printarch"
6550 if test "$no_cache" != 1; then
6551 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6552 fi
6553
6554 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6555 echo "$as_me:$LINENO: result: yes" >&5
6556echo "${ECHO_T}yes" >&6
6557 else
6558 echo "$as_me:$LINENO: result: no" >&5
6559echo "${ECHO_T}no" >&6
6560 fi
6561
6562
6563 enablestring=
6564 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6565echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6566 no_cache=0
6567 # Check whether --enable-mdi or --disable-mdi was given.
6568if test "${enable_mdi+set}" = set; then
6569 enableval="$enable_mdi"
6570
6571 if test "$enableval" = yes; then
8a7b1113 6572 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6573 else
8a7b1113 6574 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6575 fi
6576
6577else
6578
8a7b1113 6579 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6580 if test "x$LINE" != x ; then
6581 eval "DEFAULT_$LINE"
6582 else
6583 no_cache=1
6584 fi
6585
8a7b1113 6586 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6587
6588fi;
6589
6590 eval "$ac_cv_use_mdi"
6591 if test "$no_cache" != 1; then
6592 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6593 fi
6594
8a7b1113
VZ
6595 if test "$wxUSE_MDI" = yes; then
6596 echo "$as_me:$LINENO: result: yes" >&5
6597echo "${ECHO_T}yes" >&6
6598 else
6599 echo "$as_me:$LINENO: result: no" >&5
6600echo "${ECHO_T}no" >&6
6601 fi
6602
6603
6604 enablestring=
6605 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6606echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6607 no_cache=0
6608 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6609if test "${enable_mdidoc+set}" = set; then
6610 enableval="$enable_mdidoc"
6611
6612 if test "$enableval" = yes; then
6613 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6614 else
6615 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6616 fi
6617
6618else
6619
6620 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6621 if test "x$LINE" != x ; then
6622 eval "DEFAULT_$LINE"
6623 else
6624 no_cache=1
6625 fi
6626
6627 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6628
6629fi;
6630
6631 eval "$ac_cv_use_mdidoc"
6632 if test "$no_cache" != 1; then
6633 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6634 fi
6635
a848cd7e
SC
6636 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6637 echo "$as_me:$LINENO: result: yes" >&5
6638echo "${ECHO_T}yes" >&6
6639 else
6640 echo "$as_me:$LINENO: result: no" >&5
6641echo "${ECHO_T}no" >&6
6642 fi
6643
6644
6645 enablestring=
6646 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6647echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6648 no_cache=0
6649 # Check whether --enable-loggui or --disable-loggui was given.
6650if test "${enable_loggui+set}" = set; then
6651 enableval="$enable_loggui"
6652
6653 if test "$enableval" = yes; then
6654 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6655 else
6656 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6657 fi
6658
6659else
6660
6661 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6662 if test "x$LINE" != x ; then
6663 eval "DEFAULT_$LINE"
6664 else
6665 no_cache=1
6666 fi
6667
6668 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6669
6670fi;
6671
6672 eval "$ac_cv_use_loggui"
6673 if test "$no_cache" != 1; then
6674 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6675 fi
6676
6677 if test "$wxUSE_LOGGUI" = yes; then
6678 echo "$as_me:$LINENO: result: yes" >&5
6679echo "${ECHO_T}yes" >&6
6680 else
6681 echo "$as_me:$LINENO: result: no" >&5
6682echo "${ECHO_T}no" >&6
6683 fi
6684
6685
6686 enablestring=
6687 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6688echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6689 no_cache=0
6690 # Check whether --enable-logwin or --disable-logwin was given.
6691if test "${enable_logwin+set}" = set; then
6692 enableval="$enable_logwin"
6693
6694 if test "$enableval" = yes; then
6695 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6696 else
6697 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6698 fi
6699
6700else
6701
6702 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6703 if test "x$LINE" != x ; then
6704 eval "DEFAULT_$LINE"
6705 else
6706 no_cache=1
6707 fi
6708
6709 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6710
6711fi;
6712
6713 eval "$ac_cv_use_logwin"
6714 if test "$no_cache" != 1; then
6715 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6716 fi
6717
6718 if test "$wxUSE_LOGWINDOW" = yes; then
6719 echo "$as_me:$LINENO: result: yes" >&5
6720echo "${ECHO_T}yes" >&6
6721 else
6722 echo "$as_me:$LINENO: result: no" >&5
6723echo "${ECHO_T}no" >&6
6724 fi
6725
6726
6727 enablestring=
6728 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6729echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6730 no_cache=0
6731 # Check whether --enable-logdialog or --disable-logdialog was given.
6732if test "${enable_logdialog+set}" = set; then
6733 enableval="$enable_logdialog"
6734
6735 if test "$enableval" = yes; then
6736 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6737 else
6738 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6739 fi
6740
6741else
6742
6743 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6744 if test "x$LINE" != x ; then
6745 eval "DEFAULT_$LINE"
6746 else
6747 no_cache=1
6748 fi
6749
6750 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6751
6752fi;
6753
6754 eval "$ac_cv_use_logdialog"
6755 if test "$no_cache" != 1; then
6756 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6757 fi
6758
6759 if test "$wxUSE_LOGDIALOG" = yes; then
6760 echo "$as_me:$LINENO: result: yes" >&5
6761echo "${ECHO_T}yes" >&6
6762 else
6763 echo "$as_me:$LINENO: result: no" >&5
6764echo "${ECHO_T}no" >&6
6765 fi
6766
6767
646b6ec1
VS
6768 enablestring=
6769 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6770echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6771 no_cache=0
6772 # Check whether --enable-webkit or --disable-webkit was given.
6773if test "${enable_webkit+set}" = set; then
6774 enableval="$enable_webkit"
6775
6776 if test "$enableval" = yes; then
6777 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6778 else
6779 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6780 fi
6781
6782else
6783
6784 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6785 if test "x$LINE" != x ; then
6786 eval "DEFAULT_$LINE"
6787 else
6788 no_cache=1
6789 fi
6790
6791 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6792
6793fi;
6794
6795 eval "$ac_cv_use_webkit"
6796 if test "$no_cache" != 1; then
6797 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6798 fi
6799
6800 if test "$wxUSE_WEBKIT" = yes; then
6801 echo "$as_me:$LINENO: result: yes" >&5
6802echo "${ECHO_T}yes" >&6
6803 else
6804 echo "$as_me:$LINENO: result: no" >&5
6805echo "${ECHO_T}no" >&6
6806 fi
6807
6808
a848cd7e
SC
6809
6810 enablestring=
6811 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6812echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6813 no_cache=0
6814 # Check whether --enable-postscript or --disable-postscript was given.
6815if test "${enable_postscript+set}" = set; then
6816 enableval="$enable_postscript"
6817
6818 if test "$enableval" = yes; then
6819 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6820 else
6821 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6822 fi
6823
6824else
6825
6826 LINE=`grep "wxUSE_POSTSCRIPT" ${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_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6834
6835fi;
6836
6837 eval "$ac_cv_use_postscript"
6838 if test "$no_cache" != 1; then
6839 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6840 fi
6841
6842 if test "$wxUSE_POSTSCRIPT" = 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
6852
6853
6854 enablestring=
6855 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6856echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
6857 no_cache=0
6858 # Check whether --enable-prologio or --disable-prologio was given.
6859if test "${enable_prologio+set}" = set; then
6860 enableval="$enable_prologio"
6861
6862 if test "$enableval" = yes; then
6863 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
6864 else
6865 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
6866 fi
6867
6868else
6869
6870 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
6871 if test "x$LINE" != x ; then
6872 eval "DEFAULT_$LINE"
6873 else
6874 no_cache=1
6875 fi
6876
6877 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
6878
6879fi;
6880
6881 eval "$ac_cv_use_prologio"
6882 if test "$no_cache" != 1; then
6883 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
6884 fi
6885
6886 if test "$wxUSE_PROLOGIO" = yes; then
6887 echo "$as_me:$LINENO: result: yes" >&5
6888echo "${ECHO_T}yes" >&6
6889 else
6890 echo "$as_me:$LINENO: result: no" >&5
6891echo "${ECHO_T}no" >&6
6892 fi
6893
6894
6895 enablestring=
6896 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6897echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
6898 no_cache=0
6899 # Check whether --enable-resources or --disable-resources was given.
6900if test "${enable_resources+set}" = set; then
6901 enableval="$enable_resources"
6902
6903 if test "$enableval" = yes; then
6904 ac_cv_use_resources='wxUSE_RESOURCES=yes'
6905 else
6906 ac_cv_use_resources='wxUSE_RESOURCES=no'
6907 fi
6908
6909else
6910
6911 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
6912 if test "x$LINE" != x ; then
6913 eval "DEFAULT_$LINE"
6914 else
6915 no_cache=1
6916 fi
6917
6918 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
6919
6920fi;
6921
6922 eval "$ac_cv_use_resources"
6923 if test "$no_cache" != 1; then
6924 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
6925 fi
6926
6927 if test "$wxUSE_RESOURCES" = yes; then
6928 echo "$as_me:$LINENO: result: yes" >&5
6929echo "${ECHO_T}yes" >&6
6930 else
6931 echo "$as_me:$LINENO: result: no" >&5
6932echo "${ECHO_T}no" >&6
6933 fi
6934
6935
6936
6937
6938 enablestring=
6939 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6940echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
6941 no_cache=0
6942 # Check whether --enable-clipboard or --disable-clipboard was given.
6943if test "${enable_clipboard+set}" = set; then
6944 enableval="$enable_clipboard"
6945
6946 if test "$enableval" = yes; then
6947 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6948 else
6949 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6950 fi
6951
6952else
6953
6954 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6955 if test "x$LINE" != x ; then
6956 eval "DEFAULT_$LINE"
6957 else
6958 no_cache=1
6959 fi
6960
6961 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
6962
6963fi;
6964
6965 eval "$ac_cv_use_clipboard"
6966 if test "$no_cache" != 1; then
6967 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6968 fi
6969
6970 if test "$wxUSE_CLIPBOARD" = yes; then
6971 echo "$as_me:$LINENO: result: yes" >&5
6972echo "${ECHO_T}yes" >&6
6973 else
6974 echo "$as_me:$LINENO: result: no" >&5
6975echo "${ECHO_T}no" >&6
6976 fi
6977
6978
6979 enablestring=
6980 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6981echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
6982 no_cache=0
6983 # Check whether --enable-dnd or --disable-dnd was given.
6984if test "${enable_dnd+set}" = set; then
6985 enableval="$enable_dnd"
6986
6987 if test "$enableval" = yes; then
6988 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6989 else
6990 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6991 fi
6992
6993else
6994
6995 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6996 if test "x$LINE" != x ; then
6997 eval "DEFAULT_$LINE"
6998 else
6999 no_cache=1
7000 fi
7001
7002 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7003
7004fi;
7005
7006 eval "$ac_cv_use_dnd"
7007 if test "$no_cache" != 1; then
7008 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7009 fi
7010
7011 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7012 echo "$as_me:$LINENO: result: yes" >&5
7013echo "${ECHO_T}yes" >&6
7014 else
7015 echo "$as_me:$LINENO: result: no" >&5
7016echo "${ECHO_T}no" >&6
7017 fi
7018
7019
7020 enablestring=
7021 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7022echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7023 no_cache=0
7024 # Check whether --enable-metafile or --disable-metafile was given.
7025if test "${enable_metafile+set}" = set; then
7026 enableval="$enable_metafile"
7027
7028 if test "$enableval" = yes; then
7029 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7030 else
7031 ac_cv_use_metafile='wxUSE_METAFILE=no'
7032 fi
7033
7034else
7035
7036 LINE=`grep "wxUSE_METAFILE" ${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_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7044
7045fi;
7046
7047 eval "$ac_cv_use_metafile"
7048 if test "$no_cache" != 1; then
7049 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7050 fi
7051
7052 if test "$wxUSE_METAFILE" = 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
7061
7062
7063
7064 enablestring=
7065 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7066echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7067 no_cache=0
7068 # Check whether --enable-controls or --disable-controls was given.
7069if test "${enable_controls+set}" = set; then
7070 enableval="$enable_controls"
7071
7072 if test "$enableval" = yes; then
7073 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7074 else
7075 ac_cv_use_controls='wxUSE_CONTROLS=no'
7076 fi
7077
7078else
7079
7080 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7081 if test "x$LINE" != x ; then
7082 eval "DEFAULT_$LINE"
7083 else
7084 no_cache=1
7085 fi
7086
7087 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7088
7089fi;
7090
7091 eval "$ac_cv_use_controls"
7092 if test "$no_cache" != 1; then
7093 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7094 fi
7095
7096 if test "$wxUSE_CONTROLS" = yes; then
7097 echo "$as_me:$LINENO: result: yes" >&5
7098echo "${ECHO_T}yes" >&6
7099 else
7100 echo "$as_me:$LINENO: result: no" >&5
7101echo "${ECHO_T}no" >&6
7102 fi
7103
7104
7105if test "$wxUSE_CONTROLS" = "yes"; then
7106 DEFAULT_wxUSE_ACCEL=yes
7107 DEFAULT_wxUSE_BMPBUTTON=yes
7108 DEFAULT_wxUSE_BUTTON=yes
7109 DEFAULT_wxUSE_CALCTRL=no
7110 DEFAULT_wxUSE_CARET=yes
7111 DEFAULT_wxUSE_COMBOBOX=yes
7112 DEFAULT_wxUSE_CHECKBOX=yes
7113 DEFAULT_wxUSE_CHECKLISTBOX=yes
7114 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7115 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e
SC
7116 DEFAULT_wxUSE_GAUGE=yes
7117 DEFAULT_wxUSE_GRID=yes
7118 DEFAULT_wxUSE_IMAGLIST=yes
7119 DEFAULT_wxUSE_LISTBOOK=yes
7120 DEFAULT_wxUSE_LISTBOX=yes
7121 DEFAULT_wxUSE_LISTCTRL=yes
7122 DEFAULT_wxUSE_NOTEBOOK=yes
7123 DEFAULT_wxUSE_RADIOBOX=yes
7124 DEFAULT_wxUSE_RADIOBTN=yes
7125 DEFAULT_wxUSE_SASH=yes
7126 DEFAULT_wxUSE_SCROLLBAR=yes
7127 DEFAULT_wxUSE_SLIDER=yes
7128 DEFAULT_wxUSE_SPINBTN=yes
7129 DEFAULT_wxUSE_SPINCTRL=yes
7130 DEFAULT_wxUSE_SPLITTER=yes
7131 DEFAULT_wxUSE_STATBMP=yes
7132 DEFAULT_wxUSE_STATBOX=yes
7133 DEFAULT_wxUSE_STATLINE=yes
7134 DEFAULT_wxUSE_STATUSBAR=yes
7135 DEFAULT_wxUSE_TAB_DIALOG=yes
7136 DEFAULT_wxUSE_TOGGLEBTN=yes
7137 DEFAULT_wxUSE_TOOLBAR=yes
7138 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7139 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7140 DEFAULT_wxUSE_TOOLTIPS=yes
7141 DEFAULT_wxUSE_TREECTRL=yes
7142 DEFAULT_wxUSE_POPUPWIN=yes
7143 DEFAULT_wxUSE_TIPWINDOW=yes
7144elif test "$wxUSE_CONTROLS" = "no"; then
7145 DEFAULT_wxUSE_ACCEL=no
7146 DEFAULT_wxUSE_BMPBUTTON=no
7147 DEFAULT_wxUSE_BUTTON=no
7148 DEFAULT_wxUSE_CALCTRL=no
7149 DEFAULT_wxUSE_CARET=no
7150 DEFAULT_wxUSE_COMBOBOX=no
7151 DEFAULT_wxUSE_CHECKBOX=no
7152 DEFAULT_wxUSE_CHECKLISTBOX=no
7153 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7154 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e
SC
7155 DEFAULT_wxUSE_GAUGE=no
7156 DEFAULT_wxUSE_GRID=no
7157 DEFAULT_wxUSE_IMAGLIST=no
7158 DEFAULT_wxUSE_LISTBOOK=no
7159 DEFAULT_wxUSE_LISTBOX=no
7160 DEFAULT_wxUSE_LISTCTRL=no
7161 DEFAULT_wxUSE_NOTEBOOK=no
7162 DEFAULT_wxUSE_RADIOBOX=no
7163 DEFAULT_wxUSE_RADIOBTN=no
7164 DEFAULT_wxUSE_SASH=no
7165 DEFAULT_wxUSE_SCROLLBAR=no
7166 DEFAULT_wxUSE_SLIDER=no
7167 DEFAULT_wxUSE_SPINBTN=no
7168 DEFAULT_wxUSE_SPINCTRL=no
7169 DEFAULT_wxUSE_SPLITTER=no
7170 DEFAULT_wxUSE_STATBMP=no
7171 DEFAULT_wxUSE_STATBOX=no
7172 DEFAULT_wxUSE_STATLINE=no
7173 DEFAULT_wxUSE_STATUSBAR=no
7174 DEFAULT_wxUSE_TAB_DIALOG=no
7175 DEFAULT_wxUSE_TOGGLEBTN=no
7176 DEFAULT_wxUSE_TOOLBAR=no
7177 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7178 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7179 DEFAULT_wxUSE_TOOLTIPS=no
7180 DEFAULT_wxUSE_TREECTRL=no
7181 DEFAULT_wxUSE_POPUPWIN=no
7182 DEFAULT_wxUSE_TIPWINDOW=no
7183fi
7184
a848cd7e
SC
7185
7186 enablestring=
7187 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7188echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7189 no_cache=0
7190 # Check whether --enable-accel or --disable-accel was given.
7191if test "${enable_accel+set}" = set; then
7192 enableval="$enable_accel"
7193
7194 if test "$enableval" = yes; then
7195 ac_cv_use_accel='wxUSE_ACCEL=yes'
7196 else
7197 ac_cv_use_accel='wxUSE_ACCEL=no'
7198 fi
7199
7200else
7201
7202 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7203 if test "x$LINE" != x ; then
7204 eval "DEFAULT_$LINE"
7205 else
7206 no_cache=1
7207 fi
7208
7209 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7210
7211fi;
7212
7213 eval "$ac_cv_use_accel"
7214 if test "$no_cache" != 1; then
7215 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7216 fi
7217
7218 if test "$wxUSE_ACCEL" = yes; then
7219 echo "$as_me:$LINENO: result: yes" >&5
7220echo "${ECHO_T}yes" >&6
7221 else
7222 echo "$as_me:$LINENO: result: no" >&5
7223echo "${ECHO_T}no" >&6
7224 fi
7225
7226
7227 enablestring=
7228 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7229echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7230 no_cache=0
7231 # Check whether --enable-button or --disable-button was given.
7232if test "${enable_button+set}" = set; then
7233 enableval="$enable_button"
7234
7235 if test "$enableval" = yes; then
7236 ac_cv_use_button='wxUSE_BUTTON=yes'
7237 else
7238 ac_cv_use_button='wxUSE_BUTTON=no'
7239 fi
7240
7241else
7242
7243 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7244 if test "x$LINE" != x ; then
7245 eval "DEFAULT_$LINE"
7246 else
7247 no_cache=1
7248 fi
7249
7250 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7251
7252fi;
7253
7254 eval "$ac_cv_use_button"
7255 if test "$no_cache" != 1; then
7256 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7257 fi
7258
7259 if test "$wxUSE_BUTTON" = yes; then
7260 echo "$as_me:$LINENO: result: yes" >&5
7261echo "${ECHO_T}yes" >&6
7262 else
7263 echo "$as_me:$LINENO: result: no" >&5
7264echo "${ECHO_T}no" >&6
7265 fi
7266
7267
7268 enablestring=
7269 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7270echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7271 no_cache=0
7272 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7273if test "${enable_bmpbutton+set}" = set; then
7274 enableval="$enable_bmpbutton"
7275
7276 if test "$enableval" = yes; then
7277 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7278 else
7279 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7280 fi
7281
7282else
7283
7284 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7285 if test "x$LINE" != x ; then
7286 eval "DEFAULT_$LINE"
7287 else
7288 no_cache=1
7289 fi
7290
7291 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7292
7293fi;
7294
7295 eval "$ac_cv_use_bmpbutton"
7296 if test "$no_cache" != 1; then
7297 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7298 fi
7299
7300 if test "$wxUSE_BMPBUTTON" = yes; then
7301 echo "$as_me:$LINENO: result: yes" >&5
7302echo "${ECHO_T}yes" >&6
7303 else
7304 echo "$as_me:$LINENO: result: no" >&5
7305echo "${ECHO_T}no" >&6
7306 fi
7307
7308
7309 enablestring=
7310 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7311echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7312 no_cache=0
7313 # Check whether --enable-calendar or --disable-calendar was given.
7314if test "${enable_calendar+set}" = set; then
7315 enableval="$enable_calendar"
7316
7317 if test "$enableval" = yes; then
7318 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7319 else
7320 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7321 fi
7322
7323else
7324
7325 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7326 if test "x$LINE" != x ; then
7327 eval "DEFAULT_$LINE"
7328 else
7329 no_cache=1
7330 fi
7331
7332 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7333
7334fi;
7335
7336 eval "$ac_cv_use_calendar"
7337 if test "$no_cache" != 1; then
7338 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7339 fi
7340
7341 if test "$wxUSE_CALCTRL" = yes; then
7342 echo "$as_me:$LINENO: result: yes" >&5
7343echo "${ECHO_T}yes" >&6
7344 else
7345 echo "$as_me:$LINENO: result: no" >&5
7346echo "${ECHO_T}no" >&6
7347 fi
7348
7349
7350 enablestring=
7351 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7352echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7353 no_cache=0
7354 # Check whether --enable-caret or --disable-caret was given.
7355if test "${enable_caret+set}" = set; then
7356 enableval="$enable_caret"
7357
7358 if test "$enableval" = yes; then
7359 ac_cv_use_caret='wxUSE_CARET=yes'
7360 else
7361 ac_cv_use_caret='wxUSE_CARET=no'
7362 fi
7363
7364else
7365
7366 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7367 if test "x$LINE" != x ; then
7368 eval "DEFAULT_$LINE"
7369 else
7370 no_cache=1
7371 fi
7372
7373 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7374
7375fi;
7376
7377 eval "$ac_cv_use_caret"
7378 if test "$no_cache" != 1; then
7379 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7380 fi
7381
7382 if test "$wxUSE_CARET" = yes; then
7383 echo "$as_me:$LINENO: result: yes" >&5
7384echo "${ECHO_T}yes" >&6
7385 else
7386 echo "$as_me:$LINENO: result: no" >&5
7387echo "${ECHO_T}no" >&6
7388 fi
7389
7390
7391 enablestring=
7392 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7393echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7394 no_cache=0
7395 # Check whether --enable-checkbox or --disable-checkbox was given.
7396if test "${enable_checkbox+set}" = set; then
7397 enableval="$enable_checkbox"
7398
7399 if test "$enableval" = yes; then
7400 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7401 else
7402 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7403 fi
7404
7405else
7406
7407 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7408 if test "x$LINE" != x ; then
7409 eval "DEFAULT_$LINE"
7410 else
7411 no_cache=1
7412 fi
7413
7414 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7415
7416fi;
7417
7418 eval "$ac_cv_use_checkbox"
7419 if test "$no_cache" != 1; then
7420 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7421 fi
7422
7423 if test "$wxUSE_CHECKBOX" = yes; then
7424 echo "$as_me:$LINENO: result: yes" >&5
7425echo "${ECHO_T}yes" >&6
7426 else
7427 echo "$as_me:$LINENO: result: no" >&5
7428echo "${ECHO_T}no" >&6
7429 fi
7430
7431
7432 enablestring=
7433 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7434echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7435 no_cache=0
7436 # Check whether --enable-checklst or --disable-checklst was given.
7437if test "${enable_checklst+set}" = set; then
7438 enableval="$enable_checklst"
7439
7440 if test "$enableval" = yes; then
7441 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7442 else
7443 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7444 fi
7445
7446else
7447
7448 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7449 if test "x$LINE" != x ; then
7450 eval "DEFAULT_$LINE"
7451 else
7452 no_cache=1
7453 fi
7454
7455 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7456
7457fi;
7458
7459 eval "$ac_cv_use_checklst"
7460 if test "$no_cache" != 1; then
7461 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7462 fi
7463
7464 if test "$wxUSE_CHECKLST" = yes; then
7465 echo "$as_me:$LINENO: result: yes" >&5
7466echo "${ECHO_T}yes" >&6
7467 else
7468 echo "$as_me:$LINENO: result: no" >&5
7469echo "${ECHO_T}no" >&6
7470 fi
7471
7472
7473 enablestring=
7474 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7475echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7476 no_cache=0
7477 # Check whether --enable-choice or --disable-choice was given.
7478if test "${enable_choice+set}" = set; then
7479 enableval="$enable_choice"
7480
7481 if test "$enableval" = yes; then
7482 ac_cv_use_choice='wxUSE_CHOICE=yes'
7483 else
7484 ac_cv_use_choice='wxUSE_CHOICE=no'
7485 fi
7486
7487else
7488
7489 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7490 if test "x$LINE" != x ; then
7491 eval "DEFAULT_$LINE"
7492 else
7493 no_cache=1
7494 fi
7495
7496 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7497
7498fi;
7499
7500 eval "$ac_cv_use_choice"
7501 if test "$no_cache" != 1; then
7502 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7503 fi
7504
7505 if test "$wxUSE_CHOICE" = yes; then
7506 echo "$as_me:$LINENO: result: yes" >&5
7507echo "${ECHO_T}yes" >&6
7508 else
7509 echo "$as_me:$LINENO: result: no" >&5
7510echo "${ECHO_T}no" >&6
7511 fi
7512
7513
92bbdbcd
WS
7514 enablestring=
7515 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7516echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7517 no_cache=0
7518 # Check whether --enable-choicebook or --disable-choicebook was given.
7519if test "${enable_choicebook+set}" = set; then
7520 enableval="$enable_choicebook"
7521
7522 if test "$enableval" = yes; then
7523 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7524 else
7525 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7526 fi
7527
7528else
7529
7530 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7531 if test "x$LINE" != x ; then
7532 eval "DEFAULT_$LINE"
7533 else
7534 no_cache=1
7535 fi
7536
7537 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7538
7539fi;
7540
7541 eval "$ac_cv_use_choicebook"
7542 if test "$no_cache" != 1; then
7543 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7544 fi
7545
7546 if test "$wxUSE_CHOICEBOOK" = yes; then
7547 echo "$as_me:$LINENO: result: yes" >&5
7548echo "${ECHO_T}yes" >&6
7549 else
7550 echo "$as_me:$LINENO: result: no" >&5
7551echo "${ECHO_T}no" >&6
7552 fi
7553
7554
a848cd7e
SC
7555 enablestring=
7556 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7557echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7558 no_cache=0
7559 # Check whether --enable-combobox or --disable-combobox was given.
7560if test "${enable_combobox+set}" = set; then
7561 enableval="$enable_combobox"
7562
7563 if test "$enableval" = yes; then
7564 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7565 else
7566 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7567 fi
7568
7569else
7570
7571 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7572 if test "x$LINE" != x ; then
7573 eval "DEFAULT_$LINE"
7574 else
7575 no_cache=1
7576 fi
7577
7578 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7579
7580fi;
7581
7582 eval "$ac_cv_use_combobox"
7583 if test "$no_cache" != 1; then
7584 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7585 fi
7586
7587 if test "$wxUSE_COMBOBOX" = yes; then
7588 echo "$as_me:$LINENO: result: yes" >&5
7589echo "${ECHO_T}yes" >&6
7590 else
7591 echo "$as_me:$LINENO: result: no" >&5
7592echo "${ECHO_T}no" >&6
7593 fi
7594
7595
7596 enablestring=
7597 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7598echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7599 no_cache=0
7600 # Check whether --enable-display or --disable-display was given.
7601if test "${enable_display+set}" = set; then
7602 enableval="$enable_display"
7603
7604 if test "$enableval" = yes; then
7605 ac_cv_use_display='wxUSE_DISPLAY=yes'
7606 else
7607 ac_cv_use_display='wxUSE_DISPLAY=no'
7608 fi
7609
7610else
7611
7612 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7613 if test "x$LINE" != x ; then
7614 eval "DEFAULT_$LINE"
7615 else
7616 no_cache=1
7617 fi
7618
7619 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7620
7621fi;
7622
7623 eval "$ac_cv_use_display"
7624 if test "$no_cache" != 1; then
7625 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7626 fi
7627
7628 if test "$wxUSE_DISPLAY" = yes; then
7629 echo "$as_me:$LINENO: result: yes" >&5
7630echo "${ECHO_T}yes" >&6
7631 else
7632 echo "$as_me:$LINENO: result: no" >&5
7633echo "${ECHO_T}no" >&6
7634 fi
7635
7636
7637 enablestring=
7638 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7639echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7640 no_cache=0
7641 # Check whether --enable-gauge or --disable-gauge was given.
7642if test "${enable_gauge+set}" = set; then
7643 enableval="$enable_gauge"
7644
7645 if test "$enableval" = yes; then
7646 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7647 else
7648 ac_cv_use_gauge='wxUSE_GAUGE=no'
7649 fi
7650
7651else
7652
7653 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7654 if test "x$LINE" != x ; then
7655 eval "DEFAULT_$LINE"
7656 else
7657 no_cache=1
7658 fi
7659
7660 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7661
7662fi;
7663
7664 eval "$ac_cv_use_gauge"
7665 if test "$no_cache" != 1; then
7666 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7667 fi
7668
7669 if test "$wxUSE_GAUGE" = yes; then
7670 echo "$as_me:$LINENO: result: yes" >&5
7671echo "${ECHO_T}yes" >&6
7672 else
7673 echo "$as_me:$LINENO: result: no" >&5
7674echo "${ECHO_T}no" >&6
7675 fi
7676
7677
7678 enablestring=
7679 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7680echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7681 no_cache=0
7682 # Check whether --enable-grid or --disable-grid was given.
7683if test "${enable_grid+set}" = set; then
7684 enableval="$enable_grid"
7685
7686 if test "$enableval" = yes; then
7687 ac_cv_use_grid='wxUSE_GRID=yes'
7688 else
7689 ac_cv_use_grid='wxUSE_GRID=no'
7690 fi
7691
7692else
7693
7694 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7695 if test "x$LINE" != x ; then
7696 eval "DEFAULT_$LINE"
7697 else
7698 no_cache=1
7699 fi
7700
7701 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7702
7703fi;
7704
7705 eval "$ac_cv_use_grid"
7706 if test "$no_cache" != 1; then
7707 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7708 fi
7709
7710 if test "$wxUSE_GRID" = yes; then
7711 echo "$as_me:$LINENO: result: yes" >&5
7712echo "${ECHO_T}yes" >&6
7713 else
7714 echo "$as_me:$LINENO: result: no" >&5
7715echo "${ECHO_T}no" >&6
7716 fi
7717
7718
7719 enablestring=
7720 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7721echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7722 no_cache=0
7723 # Check whether --enable-imaglist or --disable-imaglist was given.
7724if test "${enable_imaglist+set}" = set; then
7725 enableval="$enable_imaglist"
7726
7727 if test "$enableval" = yes; then
7728 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7729 else
7730 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7731 fi
7732
7733else
7734
7735 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7736 if test "x$LINE" != x ; then
7737 eval "DEFAULT_$LINE"
7738 else
7739 no_cache=1
7740 fi
7741
7742 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7743
7744fi;
7745
7746 eval "$ac_cv_use_imaglist"
7747 if test "$no_cache" != 1; then
7748 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7749 fi
7750
7751 if test "$wxUSE_IMAGLIST" = yes; then
7752 echo "$as_me:$LINENO: result: yes" >&5
7753echo "${ECHO_T}yes" >&6
7754 else
7755 echo "$as_me:$LINENO: result: no" >&5
7756echo "${ECHO_T}no" >&6
7757 fi
7758
7759
7760 enablestring=
7761 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7762echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7763 no_cache=0
7764 # Check whether --enable-listbook or --disable-listbook was given.
7765if test "${enable_listbook+set}" = set; then
7766 enableval="$enable_listbook"
7767
7768 if test "$enableval" = yes; then
7769 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7770 else
7771 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7772 fi
7773
7774else
7775
7776 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7777 if test "x$LINE" != x ; then
7778 eval "DEFAULT_$LINE"
7779 else
7780 no_cache=1
7781 fi
7782
7783 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7784
7785fi;
7786
7787 eval "$ac_cv_use_listbook"
7788 if test "$no_cache" != 1; then
7789 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7790 fi
7791
7792 if test "$wxUSE_LISTBOOK" = yes; then
7793 echo "$as_me:$LINENO: result: yes" >&5
7794echo "${ECHO_T}yes" >&6
7795 else
7796 echo "$as_me:$LINENO: result: no" >&5
7797echo "${ECHO_T}no" >&6
7798 fi
7799
7800
7801 enablestring=
7802 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7803echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7804 no_cache=0
7805 # Check whether --enable-listbox or --disable-listbox was given.
7806if test "${enable_listbox+set}" = set; then
7807 enableval="$enable_listbox"
7808
7809 if test "$enableval" = yes; then
7810 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7811 else
7812 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7813 fi
7814
7815else
7816
7817 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7818 if test "x$LINE" != x ; then
7819 eval "DEFAULT_$LINE"
7820 else
7821 no_cache=1
7822 fi
7823
7824 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
7825
7826fi;
7827
7828 eval "$ac_cv_use_listbox"
7829 if test "$no_cache" != 1; then
7830 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7831 fi
7832
7833 if test "$wxUSE_LISTBOX" = yes; then
7834 echo "$as_me:$LINENO: result: yes" >&5
7835echo "${ECHO_T}yes" >&6
7836 else
7837 echo "$as_me:$LINENO: result: no" >&5
7838echo "${ECHO_T}no" >&6
7839 fi
7840
7841
7842 enablestring=
7843 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7844echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
7845 no_cache=0
7846 # Check whether --enable-listctrl or --disable-listctrl was given.
7847if test "${enable_listctrl+set}" = set; then
7848 enableval="$enable_listctrl"
7849
7850 if test "$enableval" = yes; then
7851 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7852 else
7853 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7854 fi
7855
7856else
7857
7858 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7859 if test "x$LINE" != x ; then
7860 eval "DEFAULT_$LINE"
7861 else
7862 no_cache=1
7863 fi
7864
7865 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
7866
7867fi;
7868
7869 eval "$ac_cv_use_listctrl"
7870 if test "$no_cache" != 1; then
7871 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7872 fi
7873
7874 if test "$wxUSE_LISTCTRL" = yes; then
7875 echo "$as_me:$LINENO: result: yes" >&5
7876echo "${ECHO_T}yes" >&6
7877 else
7878 echo "$as_me:$LINENO: result: no" >&5
7879echo "${ECHO_T}no" >&6
7880 fi
7881
7882
7883 enablestring=
7884 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7885echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
7886 no_cache=0
7887 # Check whether --enable-notebook or --disable-notebook was given.
7888if test "${enable_notebook+set}" = set; then
7889 enableval="$enable_notebook"
7890
7891 if test "$enableval" = yes; then
7892 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7893 else
7894 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7895 fi
7896
7897else
7898
7899 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7900 if test "x$LINE" != x ; then
7901 eval "DEFAULT_$LINE"
7902 else
7903 no_cache=1
7904 fi
7905
7906 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
7907
7908fi;
7909
7910 eval "$ac_cv_use_notebook"
7911 if test "$no_cache" != 1; then
7912 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7913 fi
7914
7915 if test "$wxUSE_NOTEBOOK" = yes; then
7916 echo "$as_me:$LINENO: result: yes" >&5
7917echo "${ECHO_T}yes" >&6
7918 else
7919 echo "$as_me:$LINENO: result: no" >&5
7920echo "${ECHO_T}no" >&6
7921 fi
7922
7923
7924 enablestring=
7925 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7926echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
7927 no_cache=0
7928 # Check whether --enable-radiobox or --disable-radiobox was given.
7929if test "${enable_radiobox+set}" = set; then
7930 enableval="$enable_radiobox"
7931
7932 if test "$enableval" = yes; then
7933 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7934 else
7935 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7936 fi
7937
7938else
7939
7940 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7941 if test "x$LINE" != x ; then
7942 eval "DEFAULT_$LINE"
7943 else
7944 no_cache=1
7945 fi
7946
7947 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
7948
7949fi;
7950
7951 eval "$ac_cv_use_radiobox"
7952 if test "$no_cache" != 1; then
7953 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7954 fi
7955
7956 if test "$wxUSE_RADIOBOX" = yes; then
7957 echo "$as_me:$LINENO: result: yes" >&5
7958echo "${ECHO_T}yes" >&6
7959 else
7960 echo "$as_me:$LINENO: result: no" >&5
7961echo "${ECHO_T}no" >&6
7962 fi
7963
7964
7965 enablestring=
7966 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7967echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
7968 no_cache=0
7969 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7970if test "${enable_radiobtn+set}" = set; then
7971 enableval="$enable_radiobtn"
7972
7973 if test "$enableval" = yes; then
7974 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7975 else
7976 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7977 fi
7978
7979else
7980
7981 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7982 if test "x$LINE" != x ; then
7983 eval "DEFAULT_$LINE"
7984 else
7985 no_cache=1
7986 fi
7987
7988 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
7989
7990fi;
7991
7992 eval "$ac_cv_use_radiobtn"
7993 if test "$no_cache" != 1; then
7994 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7995 fi
7996
7997 if test "$wxUSE_RADIOBTN" = yes; then
7998 echo "$as_me:$LINENO: result: yes" >&5
7999echo "${ECHO_T}yes" >&6
8000 else
8001 echo "$as_me:$LINENO: result: no" >&5
8002echo "${ECHO_T}no" >&6
8003 fi
8004
8005
8006 enablestring=
8007 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8008echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8009 no_cache=0
8010 # Check whether --enable-sash or --disable-sash was given.
8011if test "${enable_sash+set}" = set; then
8012 enableval="$enable_sash"
8013
8014 if test "$enableval" = yes; then
8015 ac_cv_use_sash='wxUSE_SASH=yes'
8016 else
8017 ac_cv_use_sash='wxUSE_SASH=no'
8018 fi
8019
8020else
8021
8022 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8023 if test "x$LINE" != x ; then
8024 eval "DEFAULT_$LINE"
8025 else
8026 no_cache=1
8027 fi
8028
8029 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8030
8031fi;
8032
8033 eval "$ac_cv_use_sash"
8034 if test "$no_cache" != 1; then
8035 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8036 fi
8037
8038 if test "$wxUSE_SASH" = yes; then
8039 echo "$as_me:$LINENO: result: yes" >&5
8040echo "${ECHO_T}yes" >&6
8041 else
8042 echo "$as_me:$LINENO: result: no" >&5
8043echo "${ECHO_T}no" >&6
8044 fi
8045
8046
8047 enablestring=
8048 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8049echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8050 no_cache=0
8051 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8052if test "${enable_scrollbar+set}" = set; then
8053 enableval="$enable_scrollbar"
8054
8055 if test "$enableval" = yes; then
8056 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8057 else
8058 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8059 fi
8060
8061else
8062
8063 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8064 if test "x$LINE" != x ; then
8065 eval "DEFAULT_$LINE"
8066 else
8067 no_cache=1
8068 fi
8069
8070 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8071
8072fi;
8073
8074 eval "$ac_cv_use_scrollbar"
8075 if test "$no_cache" != 1; then
8076 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8077 fi
8078
8079 if test "$wxUSE_SCROLLBAR" = yes; then
8080 echo "$as_me:$LINENO: result: yes" >&5
8081echo "${ECHO_T}yes" >&6
8082 else
8083 echo "$as_me:$LINENO: result: no" >&5
8084echo "${ECHO_T}no" >&6
8085 fi
8086
8087
8088 enablestring=
8089 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8090echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8091 no_cache=0
8092 # Check whether --enable-slider or --disable-slider was given.
8093if test "${enable_slider+set}" = set; then
8094 enableval="$enable_slider"
8095
8096 if test "$enableval" = yes; then
8097 ac_cv_use_slider='wxUSE_SLIDER=yes'
8098 else
8099 ac_cv_use_slider='wxUSE_SLIDER=no'
8100 fi
8101
8102else
8103
8104 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8105 if test "x$LINE" != x ; then
8106 eval "DEFAULT_$LINE"
8107 else
8108 no_cache=1
8109 fi
8110
8111 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8112
8113fi;
8114
8115 eval "$ac_cv_use_slider"
8116 if test "$no_cache" != 1; then
8117 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8118 fi
8119
8120 if test "$wxUSE_SLIDER" = yes; then
8121 echo "$as_me:$LINENO: result: yes" >&5
8122echo "${ECHO_T}yes" >&6
8123 else
8124 echo "$as_me:$LINENO: result: no" >&5
8125echo "${ECHO_T}no" >&6
8126 fi
8127
8128
8129 enablestring=
8130 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8131echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8132 no_cache=0
8133 # Check whether --enable-spinbtn or --disable-spinbtn was given.
8134if test "${enable_spinbtn+set}" = set; then
8135 enableval="$enable_spinbtn"
8136
8137 if test "$enableval" = yes; then
8138 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8139 else
8140 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8141 fi
8142
8143else
8144
8145 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8146 if test "x$LINE" != x ; then
8147 eval "DEFAULT_$LINE"
8148 else
8149 no_cache=1
8150 fi
8151
8152 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8153
8154fi;
8155
8156 eval "$ac_cv_use_spinbtn"
8157 if test "$no_cache" != 1; then
8158 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8159 fi
8160
8161 if test "$wxUSE_SPINBTN" = yes; then
8162 echo "$as_me:$LINENO: result: yes" >&5
8163echo "${ECHO_T}yes" >&6
8164 else
8165 echo "$as_me:$LINENO: result: no" >&5
8166echo "${ECHO_T}no" >&6
8167 fi
8168
8169
8170 enablestring=
8171 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8172echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8173 no_cache=0
8174 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8175if test "${enable_spinctrl+set}" = set; then
8176 enableval="$enable_spinctrl"
8177
8178 if test "$enableval" = yes; then
8179 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8180 else
8181 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8182 fi
8183
8184else
8185
8186 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8187 if test "x$LINE" != x ; then
8188 eval "DEFAULT_$LINE"
8189 else
8190 no_cache=1
8191 fi
8192
8193 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8194
8195fi;
8196
8197 eval "$ac_cv_use_spinctrl"
8198 if test "$no_cache" != 1; then
8199 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8200 fi
8201
8202 if test "$wxUSE_SPINCTRL" = yes; then
8203 echo "$as_me:$LINENO: result: yes" >&5
8204echo "${ECHO_T}yes" >&6
8205 else
8206 echo "$as_me:$LINENO: result: no" >&5
8207echo "${ECHO_T}no" >&6
8208 fi
8209
8210
8211 enablestring=
8212 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8213echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8214 no_cache=0
8215 # Check whether --enable-splitter or --disable-splitter was given.
8216if test "${enable_splitter+set}" = set; then
8217 enableval="$enable_splitter"
8218
8219 if test "$enableval" = yes; then
8220 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8221 else
8222 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8223 fi
8224
8225else
8226
8227 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8228 if test "x$LINE" != x ; then
8229 eval "DEFAULT_$LINE"
8230 else
8231 no_cache=1
8232 fi
8233
8234 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8235
8236fi;
8237
8238 eval "$ac_cv_use_splitter"
8239 if test "$no_cache" != 1; then
8240 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8241 fi
8242
8243 if test "$wxUSE_SPLITTER" = yes; then
8244 echo "$as_me:$LINENO: result: yes" >&5
8245echo "${ECHO_T}yes" >&6
8246 else
8247 echo "$as_me:$LINENO: result: no" >&5
8248echo "${ECHO_T}no" >&6
8249 fi
8250
8251
8252 enablestring=
8253 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8254echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8255 no_cache=0
8256 # Check whether --enable-statbmp or --disable-statbmp was given.
8257if test "${enable_statbmp+set}" = set; then
8258 enableval="$enable_statbmp"
8259
8260 if test "$enableval" = yes; then
8261 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8262 else
8263 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8264 fi
8265
8266else
8267
8268 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8269 if test "x$LINE" != x ; then
8270 eval "DEFAULT_$LINE"
8271 else
8272 no_cache=1
8273 fi
8274
8275 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8276
8277fi;
8278
8279 eval "$ac_cv_use_statbmp"
8280 if test "$no_cache" != 1; then
8281 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8282 fi
8283
8284 if test "$wxUSE_STATBMP" = yes; then
8285 echo "$as_me:$LINENO: result: yes" >&5
8286echo "${ECHO_T}yes" >&6
8287 else
8288 echo "$as_me:$LINENO: result: no" >&5
8289echo "${ECHO_T}no" >&6
8290 fi
8291
8292
8293 enablestring=
8294 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8295echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8296 no_cache=0
8297 # Check whether --enable-statbox or --disable-statbox was given.
8298if test "${enable_statbox+set}" = set; then
8299 enableval="$enable_statbox"
8300
8301 if test "$enableval" = yes; then
8302 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8303 else
8304 ac_cv_use_statbox='wxUSE_STATBOX=no'
8305 fi
8306
8307else
8308
8309 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8310 if test "x$LINE" != x ; then
8311 eval "DEFAULT_$LINE"
8312 else
8313 no_cache=1
8314 fi
8315
8316 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8317
8318fi;
8319
8320 eval "$ac_cv_use_statbox"
8321 if test "$no_cache" != 1; then
8322 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8323 fi
8324
8325 if test "$wxUSE_STATBOX" = yes; then
8326 echo "$as_me:$LINENO: result: yes" >&5
8327echo "${ECHO_T}yes" >&6
8328 else
8329 echo "$as_me:$LINENO: result: no" >&5
8330echo "${ECHO_T}no" >&6
8331 fi
8332
8333
8334 enablestring=
8335 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8336echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8337 no_cache=0
8338 # Check whether --enable-statline or --disable-statline was given.
8339if test "${enable_statline+set}" = set; then
8340 enableval="$enable_statline"
8341
8342 if test "$enableval" = yes; then
8343 ac_cv_use_statline='wxUSE_STATLINE=yes'
8344 else
8345 ac_cv_use_statline='wxUSE_STATLINE=no'
8346 fi
8347
8348else
8349
8350 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8351 if test "x$LINE" != x ; then
8352 eval "DEFAULT_$LINE"
8353 else
8354 no_cache=1
8355 fi
8356
8357 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8358
8359fi;
8360
8361 eval "$ac_cv_use_statline"
8362 if test "$no_cache" != 1; then
8363 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8364 fi
8365
8366 if test "$wxUSE_STATLINE" = yes; then
8367 echo "$as_me:$LINENO: result: yes" >&5
8368echo "${ECHO_T}yes" >&6
8369 else
8370 echo "$as_me:$LINENO: result: no" >&5
8371echo "${ECHO_T}no" >&6
8372 fi
8373
8374
8375 enablestring=
8376 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8377echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8378 no_cache=0
8379 # Check whether --enable-stattext or --disable-stattext was given.
8380if test "${enable_stattext+set}" = set; then
8381 enableval="$enable_stattext"
8382
8383 if test "$enableval" = yes; then
8384 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8385 else
8386 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8387 fi
8388
8389else
8390
8391 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8392 if test "x$LINE" != x ; then
8393 eval "DEFAULT_$LINE"
8394 else
8395 no_cache=1
8396 fi
8397
8398 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8399
8400fi;
8401
8402 eval "$ac_cv_use_stattext"
8403 if test "$no_cache" != 1; then
8404 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8405 fi
8406
8407 if test "$wxUSE_STATTEXT" = yes; then
8408 echo "$as_me:$LINENO: result: yes" >&5
8409echo "${ECHO_T}yes" >&6
8410 else
8411 echo "$as_me:$LINENO: result: no" >&5
8412echo "${ECHO_T}no" >&6
8413 fi
8414
8415
8416 enablestring=
8417 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8418echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8419 no_cache=0
8420 # Check whether --enable-statusbar or --disable-statusbar was given.
8421if test "${enable_statusbar+set}" = set; then
8422 enableval="$enable_statusbar"
8423
8424 if test "$enableval" = yes; then
8425 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8426 else
8427 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8428 fi
8429
8430else
8431
8432 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8433 if test "x$LINE" != x ; then
8434 eval "DEFAULT_$LINE"
8435 else
8436 no_cache=1
8437 fi
8438
8439 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8440
8441fi;
8442
8443 eval "$ac_cv_use_statusbar"
8444 if test "$no_cache" != 1; then
8445 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8446 fi
8447
8448 if test "$wxUSE_STATUSBAR" = yes; then
8449 echo "$as_me:$LINENO: result: yes" >&5
8450echo "${ECHO_T}yes" >&6
8451 else
8452 echo "$as_me:$LINENO: result: no" >&5
8453echo "${ECHO_T}no" >&6
8454 fi
8455
8456
8457 enablestring=
8458 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8459echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8460 no_cache=0
8461 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8462if test "${enable_tabdialog+set}" = set; then
8463 enableval="$enable_tabdialog"
8464
8465 if test "$enableval" = yes; then
8466 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8467 else
8468 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8469 fi
8470
8471else
8472
8473 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8474 if test "x$LINE" != x ; then
8475 eval "DEFAULT_$LINE"
8476 else
8477 no_cache=1
8478 fi
8479
8480 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8481
8482fi;
8483
8484 eval "$ac_cv_use_tabdialog"
8485 if test "$no_cache" != 1; then
8486 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8487 fi
8488
8489 if test "$wxUSE_TABDIALOG" = yes; then
8490 echo "$as_me:$LINENO: result: yes" >&5
8491echo "${ECHO_T}yes" >&6
8492 else
8493 echo "$as_me:$LINENO: result: no" >&5
8494echo "${ECHO_T}no" >&6
8495 fi
8496
8497
8498 enablestring=
8499 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8500echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8501 no_cache=0
8502 # Check whether --enable-textctrl or --disable-textctrl was given.
8503if test "${enable_textctrl+set}" = set; then
8504 enableval="$enable_textctrl"
8505
8506 if test "$enableval" = yes; then
8507 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8508 else
8509 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8510 fi
8511
8512else
8513
8514 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8515 if test "x$LINE" != x ; then
8516 eval "DEFAULT_$LINE"
8517 else
8518 no_cache=1
8519 fi
8520
8521 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8522
8523fi;
8524
8525 eval "$ac_cv_use_textctrl"
8526 if test "$no_cache" != 1; then
8527 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8528 fi
8529
8530 if test "$wxUSE_TEXTCTRL" = yes; then
8531 echo "$as_me:$LINENO: result: yes" >&5
8532echo "${ECHO_T}yes" >&6
8533 else
8534 echo "$as_me:$LINENO: result: no" >&5
8535echo "${ECHO_T}no" >&6
8536 fi
8537
8538
8539 enablestring=
8540 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8541echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8542 no_cache=0
8543 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8544if test "${enable_togglebtn+set}" = set; then
8545 enableval="$enable_togglebtn"
8546
8547 if test "$enableval" = yes; then
8548 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8549 else
8550 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8551 fi
8552
8553else
8554
8555 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8556 if test "x$LINE" != x ; then
8557 eval "DEFAULT_$LINE"
8558 else
8559 no_cache=1
8560 fi
8561
8562 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8563
8564fi;
8565
8566 eval "$ac_cv_use_togglebtn"
8567 if test "$no_cache" != 1; then
8568 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8569 fi
8570
8571 if test "$wxUSE_TOGGLEBTN" = yes; then
8572 echo "$as_me:$LINENO: result: yes" >&5
8573echo "${ECHO_T}yes" >&6
8574 else
8575 echo "$as_me:$LINENO: result: no" >&5
8576echo "${ECHO_T}no" >&6
8577 fi
8578
8579
8580 enablestring=
8581 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8582echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8583 no_cache=0
8584 # Check whether --enable-toolbar or --disable-toolbar was given.
8585if test "${enable_toolbar+set}" = set; then
8586 enableval="$enable_toolbar"
8587
8588 if test "$enableval" = yes; then
8589 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8590 else
8591 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8592 fi
8593
8594else
8595
8596 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8597 if test "x$LINE" != x ; then
8598 eval "DEFAULT_$LINE"
8599 else
8600 no_cache=1
8601 fi
8602
8603 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8604
8605fi;
8606
8607 eval "$ac_cv_use_toolbar"
8608 if test "$no_cache" != 1; then
8609 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8610 fi
8611
8612 if test "$wxUSE_TOOLBAR" = yes; then
8613 echo "$as_me:$LINENO: result: yes" >&5
8614echo "${ECHO_T}yes" >&6
8615 else
8616 echo "$as_me:$LINENO: result: no" >&5
8617echo "${ECHO_T}no" >&6
8618 fi
8619
8620
8621 enablestring=
8622 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8623echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8624 no_cache=0
8625 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8626if test "${enable_tbarnative+set}" = set; then
8627 enableval="$enable_tbarnative"
8628
8629 if test "$enableval" = yes; then
8630 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8631 else
8632 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8633 fi
8634
8635else
8636
8637 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8638 if test "x$LINE" != x ; then
8639 eval "DEFAULT_$LINE"
8640 else
8641 no_cache=1
8642 fi
8643
8644 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8645
8646fi;
8647
8648 eval "$ac_cv_use_tbarnative"
8649 if test "$no_cache" != 1; then
8650 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8651 fi
8652
8653 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8654 echo "$as_me:$LINENO: result: yes" >&5
8655echo "${ECHO_T}yes" >&6
8656 else
8657 echo "$as_me:$LINENO: result: no" >&5
8658echo "${ECHO_T}no" >&6
8659 fi
8660
8661
8662 enablestring=
8663 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8664echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8665 no_cache=0
8666 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8667if test "${enable_tbarsmpl+set}" = set; then
8668 enableval="$enable_tbarsmpl"
8669
8670 if test "$enableval" = yes; then
8671 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8672 else
8673 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8674 fi
8675
8676else
8677
8678 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8679 if test "x$LINE" != x ; then
8680 eval "DEFAULT_$LINE"
8681 else
8682 no_cache=1
8683 fi
8684
8685 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8686
8687fi;
8688
8689 eval "$ac_cv_use_tbarsmpl"
8690 if test "$no_cache" != 1; then
8691 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8692 fi
8693
8694 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8695 echo "$as_me:$LINENO: result: yes" >&5
8696echo "${ECHO_T}yes" >&6
8697 else
8698 echo "$as_me:$LINENO: result: no" >&5
8699echo "${ECHO_T}no" >&6
8700 fi
8701
8702
8703 enablestring=
8704 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8705echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8706 no_cache=0
8707 # Check whether --enable-treectrl or --disable-treectrl was given.
8708if test "${enable_treectrl+set}" = set; then
8709 enableval="$enable_treectrl"
8710
8711 if test "$enableval" = yes; then
8712 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8713 else
8714 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8715 fi
8716
8717else
8718
8719 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8720 if test "x$LINE" != x ; then
8721 eval "DEFAULT_$LINE"
8722 else
8723 no_cache=1
8724 fi
8725
8726 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8727
8728fi;
8729
8730 eval "$ac_cv_use_treectrl"
8731 if test "$no_cache" != 1; then
8732 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8733 fi
8734
8735 if test "$wxUSE_TREECTRL" = yes; then
8736 echo "$as_me:$LINENO: result: yes" >&5
8737echo "${ECHO_T}yes" >&6
8738 else
8739 echo "$as_me:$LINENO: result: no" >&5
8740echo "${ECHO_T}no" >&6
8741 fi
8742
8743
8744 enablestring=
8745 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8746echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8747 no_cache=0
8748 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8749if test "${enable_tipwindow+set}" = set; then
8750 enableval="$enable_tipwindow"
8751
8752 if test "$enableval" = yes; then
8753 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8754 else
8755 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8756 fi
8757
8758else
8759
8760 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8761 if test "x$LINE" != x ; then
8762 eval "DEFAULT_$LINE"
8763 else
8764 no_cache=1
8765 fi
8766
8767 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8768
8769fi;
8770
8771 eval "$ac_cv_use_tipwindow"
8772 if test "$no_cache" != 1; then
8773 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8774 fi
8775
8776 if test "$wxUSE_TIPWINDOW" = yes; then
8777 echo "$as_me:$LINENO: result: yes" >&5
8778echo "${ECHO_T}yes" >&6
8779 else
8780 echo "$as_me:$LINENO: result: no" >&5
8781echo "${ECHO_T}no" >&6
8782 fi
8783
8784
8785 enablestring=
8786 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8787echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8788 no_cache=0
8789 # Check whether --enable-popupwin or --disable-popupwin was given.
8790if test "${enable_popupwin+set}" = set; then
8791 enableval="$enable_popupwin"
8792
8793 if test "$enableval" = yes; then
8794 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8795 else
8796 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8797 fi
8798
8799else
8800
8801 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8802 if test "x$LINE" != x ; then
8803 eval "DEFAULT_$LINE"
8804 else
8805 no_cache=1
8806 fi
8807
8808 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
8809
8810fi;
8811
8812 eval "$ac_cv_use_popupwin"
8813 if test "$no_cache" != 1; then
8814 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8815 fi
8816
8817 if test "$wxUSE_POPUPWIN" = yes; then
8818 echo "$as_me:$LINENO: result: yes" >&5
8819echo "${ECHO_T}yes" >&6
8820 else
8821 echo "$as_me:$LINENO: result: no" >&5
8822echo "${ECHO_T}no" >&6
8823 fi
8824
8825
8826
8827
8828 enablestring=
8829 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8830echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
8831 no_cache=0
8832 # Check whether --enable-commondlg or --disable-commondlg was given.
8833if test "${enable_commondlg+set}" = set; then
8834 enableval="$enable_commondlg"
8835
8836 if test "$enableval" = yes; then
8837 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8838 else
8839 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8840 fi
8841
8842else
8843
8844 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8845 if test "x$LINE" != x ; then
8846 eval "DEFAULT_$LINE"
8847 else
8848 no_cache=1
8849 fi
8850
8851 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
8852
8853fi;
8854
8855 eval "$ac_cv_use_commondlg"
8856 if test "$no_cache" != 1; then
8857 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8858 fi
8859
8860 if test "$wxUSE_COMMONDLGS" = yes; then
8861 echo "$as_me:$LINENO: result: yes" >&5
8862echo "${ECHO_T}yes" >&6
8863 else
8864 echo "$as_me:$LINENO: result: no" >&5
8865echo "${ECHO_T}no" >&6
8866 fi
8867
8868
8869 enablestring=
8870 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8871echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
8872 no_cache=0
8873 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8874if test "${enable_choicedlg+set}" = set; then
8875 enableval="$enable_choicedlg"
8876
8877 if test "$enableval" = yes; then
8878 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8879 else
8880 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8881 fi
8882
8883else
8884
8885 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8886 if test "x$LINE" != x ; then
8887 eval "DEFAULT_$LINE"
8888 else
8889 no_cache=1
8890 fi
8891
8892 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
8893
8894fi;
8895
8896 eval "$ac_cv_use_choicedlg"
8897 if test "$no_cache" != 1; then
8898 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8899 fi
8900
8901 if test "$wxUSE_CHOICEDLG" = yes; then
8902 echo "$as_me:$LINENO: result: yes" >&5
8903echo "${ECHO_T}yes" >&6
8904 else
8905 echo "$as_me:$LINENO: result: no" >&5
8906echo "${ECHO_T}no" >&6
8907 fi
8908
8909
8910 enablestring=
8911 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8912echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
8913 no_cache=0
8914 # Check whether --enable-coldlg or --disable-coldlg was given.
8915if test "${enable_coldlg+set}" = set; then
8916 enableval="$enable_coldlg"
8917
8918 if test "$enableval" = yes; then
8919 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8920 else
8921 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8922 fi
8923
8924else
8925
8926 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8927 if test "x$LINE" != x ; then
8928 eval "DEFAULT_$LINE"
8929 else
8930 no_cache=1
8931 fi
8932
8933 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
8934
8935fi;
8936
8937 eval "$ac_cv_use_coldlg"
8938 if test "$no_cache" != 1; then
8939 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8940 fi
8941
8942 if test "$wxUSE_COLOURDLG" = yes; then
8943 echo "$as_me:$LINENO: result: yes" >&5
8944echo "${ECHO_T}yes" >&6
8945 else
8946 echo "$as_me:$LINENO: result: no" >&5
8947echo "${ECHO_T}no" >&6
8948 fi
8949
8950
8951 enablestring=
8952 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8953echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
8954 no_cache=0
8955 # Check whether --enable-filedlg or --disable-filedlg was given.
8956if test "${enable_filedlg+set}" = set; then
8957 enableval="$enable_filedlg"
8958
8959 if test "$enableval" = yes; then
8960 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8961 else
8962 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8963 fi
8964
8965else
8966
8967 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8968 if test "x$LINE" != x ; then
8969 eval "DEFAULT_$LINE"
8970 else
8971 no_cache=1
8972 fi
8973
8974 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
8975
8976fi;
8977
8978 eval "$ac_cv_use_filedlg"
8979 if test "$no_cache" != 1; then
8980 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8981 fi
8982
8983 if test "$wxUSE_FILEDLG" = yes; then
8984 echo "$as_me:$LINENO: result: yes" >&5
8985echo "${ECHO_T}yes" >&6
8986 else
8987 echo "$as_me:$LINENO: result: no" >&5
8988echo "${ECHO_T}no" >&6
8989 fi
8990
8991
8992 enablestring=
8993 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8994echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8995 no_cache=0
8996 # Check whether --enable-finddlg or --disable-finddlg was given.
8997if test "${enable_finddlg+set}" = set; then
8998 enableval="$enable_finddlg"
8999
9000 if test "$enableval" = yes; then
9001 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9002 else
9003 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9004 fi
9005
9006else
9007
9008 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9009 if test "x$LINE" != x ; then
9010 eval "DEFAULT_$LINE"
9011 else
9012 no_cache=1
9013 fi
9014
9015 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9016
9017fi;
9018
9019 eval "$ac_cv_use_finddlg"
9020 if test "$no_cache" != 1; then
9021 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9022 fi
9023
9024 if test "$wxUSE_FINDREPLDLG" = yes; then
9025 echo "$as_me:$LINENO: result: yes" >&5
9026echo "${ECHO_T}yes" >&6
9027 else
9028 echo "$as_me:$LINENO: result: no" >&5
9029echo "${ECHO_T}no" >&6
9030 fi
9031
9032
9033 enablestring=
9034 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
9035echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
9036 no_cache=0
9037 # Check whether --enable-fontdlg or --disable-fontdlg was given.
9038if test "${enable_fontdlg+set}" = set; then
9039 enableval="$enable_fontdlg"
9040
9041 if test "$enableval" = yes; then
9042 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
9043 else
9044 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9045 fi
9046
9047else
9048
9049 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9050 if test "x$LINE" != x ; then
9051 eval "DEFAULT_$LINE"
9052 else
9053 no_cache=1
9054 fi
9055
9056 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9057
9058fi;
9059
9060 eval "$ac_cv_use_fontdlg"
9061 if test "$no_cache" != 1; then
9062 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9063 fi
9064
9065 if test "$wxUSE_FONTDLG" = yes; then
9066 echo "$as_me:$LINENO: result: yes" >&5
9067echo "${ECHO_T}yes" >&6
9068 else
9069 echo "$as_me:$LINENO: result: no" >&5
9070echo "${ECHO_T}no" >&6
9071 fi
9072
9073
9074 enablestring=
9075 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9076echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9077 no_cache=0
9078 # Check whether --enable-dirdlg or --disable-dirdlg was given.
9079if test "${enable_dirdlg+set}" = set; then
9080 enableval="$enable_dirdlg"
9081
9082 if test "$enableval" = yes; then
9083 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9084 else
9085 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9086 fi
9087
9088else
9089
9090 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9091 if test "x$LINE" != x ; then
9092 eval "DEFAULT_$LINE"
9093 else
9094 no_cache=1
9095 fi
9096
9097 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9098
9099fi;
9100
9101 eval "$ac_cv_use_dirdlg"
9102 if test "$no_cache" != 1; then
9103 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9104 fi
9105
9106 if test "$wxUSE_DIRDLG" = yes; then
9107 echo "$as_me:$LINENO: result: yes" >&5
9108echo "${ECHO_T}yes" >&6
9109 else
9110 echo "$as_me:$LINENO: result: no" >&5
9111echo "${ECHO_T}no" >&6
9112 fi
9113
9114
9115 enablestring=
9116 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9117echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9118 no_cache=0
9119 # Check whether --enable-msgdlg or --disable-msgdlg was given.
9120if test "${enable_msgdlg+set}" = set; then
9121 enableval="$enable_msgdlg"
9122
9123 if test "$enableval" = yes; then
9124 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9125 else
9126 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9127 fi
9128
9129else
9130
9131 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9132 if test "x$LINE" != x ; then
9133 eval "DEFAULT_$LINE"
9134 else
9135 no_cache=1
9136 fi
9137
9138 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9139
9140fi;
9141
9142 eval "$ac_cv_use_msgdlg"
9143 if test "$no_cache" != 1; then
9144 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9145 fi
9146
9147 if test "$wxUSE_MSGDLG" = yes; then
9148 echo "$as_me:$LINENO: result: yes" >&5
9149echo "${ECHO_T}yes" >&6
9150 else
9151 echo "$as_me:$LINENO: result: no" >&5
9152echo "${ECHO_T}no" >&6
9153 fi
9154
9155
9156 enablestring=
9157 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9158echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9159 no_cache=0
9160 # Check whether --enable-numberdlg or --disable-numberdlg was given.
9161if test "${enable_numberdlg+set}" = set; then
9162 enableval="$enable_numberdlg"
9163
9164 if test "$enableval" = yes; then
9165 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9166 else
9167 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9168 fi
9169
9170else
9171
9172 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9173 if test "x$LINE" != x ; then
9174 eval "DEFAULT_$LINE"
9175 else
9176 no_cache=1
9177 fi
9178
9179 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9180
9181fi;
9182
9183 eval "$ac_cv_use_numberdlg"
9184 if test "$no_cache" != 1; then
9185 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9186 fi
9187
9188 if test "$wxUSE_NUMBERDLG" = yes; then
9189 echo "$as_me:$LINENO: result: yes" >&5
9190echo "${ECHO_T}yes" >&6
9191 else
9192 echo "$as_me:$LINENO: result: no" >&5
9193echo "${ECHO_T}no" >&6
9194 fi
9195
9196
9197 enablestring=
9198 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9199echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9200 no_cache=0
9201 # Check whether --enable-splash or --disable-splash was given.
9202if test "${enable_splash+set}" = set; then
9203 enableval="$enable_splash"
9204
9205 if test "$enableval" = yes; then
9206 ac_cv_use_splash='wxUSE_SPLASH=yes'
9207 else
9208 ac_cv_use_splash='wxUSE_SPLASH=no'
9209 fi
9210
9211else
9212
9213 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9214 if test "x$LINE" != x ; then
9215 eval "DEFAULT_$LINE"
9216 else
9217 no_cache=1
9218 fi
9219
9220 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9221
9222fi;
9223
9224 eval "$ac_cv_use_splash"
9225 if test "$no_cache" != 1; then
9226 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9227 fi
9228
9229 if test "$wxUSE_SPLASH" = yes; then
9230 echo "$as_me:$LINENO: result: yes" >&5
9231echo "${ECHO_T}yes" >&6
9232 else
9233 echo "$as_me:$LINENO: result: no" >&5
9234echo "${ECHO_T}no" >&6
9235 fi
9236
9237
9238 enablestring=
9239 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9240echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9241 no_cache=0
9242 # Check whether --enable-textdlg or --disable-textdlg was given.
9243if test "${enable_textdlg+set}" = set; then
9244 enableval="$enable_textdlg"
9245
9246 if test "$enableval" = yes; then
9247 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9248 else
9249 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9250 fi
9251
9252else
9253
9254 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9255 if test "x$LINE" != x ; then
9256 eval "DEFAULT_$LINE"
9257 else
9258 no_cache=1
9259 fi
9260
9261 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9262
9263fi;
9264
9265 eval "$ac_cv_use_textdlg"
9266 if test "$no_cache" != 1; then
9267 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9268 fi
9269
9270 if test "$wxUSE_TEXTDLG" = yes; then
9271 echo "$as_me:$LINENO: result: yes" >&5
9272echo "${ECHO_T}yes" >&6
9273 else
9274 echo "$as_me:$LINENO: result: no" >&5
9275echo "${ECHO_T}no" >&6
9276 fi
9277
9278
9279 enablestring=
9280 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9281echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9282 no_cache=0
9283 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9284if test "${enable_tipdlg+set}" = set; then
9285 enableval="$enable_tipdlg"
9286
9287 if test "$enableval" = yes; then
9288 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9289 else
9290 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9291 fi
9292
9293else
9294
9295 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9296 if test "x$LINE" != x ; then
9297 eval "DEFAULT_$LINE"
9298 else
9299 no_cache=1
9300 fi
9301
9302 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9303
9304fi;
9305
9306 eval "$ac_cv_use_tipdlg"
9307 if test "$no_cache" != 1; then
9308 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9309 fi
9310
9311 if test "$wxUSE_STARTUP_TIPS" = yes; then
9312 echo "$as_me:$LINENO: result: yes" >&5
9313echo "${ECHO_T}yes" >&6
9314 else
9315 echo "$as_me:$LINENO: result: no" >&5
9316echo "${ECHO_T}no" >&6
9317 fi
9318
9319
9320 enablestring=
9321 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9322echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9323 no_cache=0
9324 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9325if test "${enable_progressdlg+set}" = set; then
9326 enableval="$enable_progressdlg"
9327
9328 if test "$enableval" = yes; then
9329 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9330 else
9331 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9332 fi
9333
9334else
9335
9336 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9337 if test "x$LINE" != x ; then
9338 eval "DEFAULT_$LINE"
9339 else
9340 no_cache=1
9341 fi
9342
9343 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9344
9345fi;
9346
9347 eval "$ac_cv_use_progressdlg"
9348 if test "$no_cache" != 1; then
9349 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9350 fi
9351
9352 if test "$wxUSE_PROGRESSDLG" = yes; then
9353 echo "$as_me:$LINENO: result: yes" >&5
9354echo "${ECHO_T}yes" >&6
9355 else
9356 echo "$as_me:$LINENO: result: no" >&5
9357echo "${ECHO_T}no" >&6
9358 fi
9359
9360
9361 enablestring=
9362 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9363echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9364 no_cache=0
9365 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9366if test "${enable_wizarddlg+set}" = set; then
9367 enableval="$enable_wizarddlg"
9368
9369 if test "$enableval" = yes; then
9370 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9371 else
9372 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9373 fi
9374
9375else
9376
9377 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9378 if test "x$LINE" != x ; then
9379 eval "DEFAULT_$LINE"
9380 else
9381 no_cache=1
9382 fi
9383
9384 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9385
9386fi;
9387
9388 eval "$ac_cv_use_wizarddlg"
9389 if test "$no_cache" != 1; then
9390 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9391 fi
9392
9393 if test "$wxUSE_WIZARDDLG" = yes; then
9394 echo "$as_me:$LINENO: result: yes" >&5
9395echo "${ECHO_T}yes" >&6
9396 else
9397 echo "$as_me:$LINENO: result: no" >&5
9398echo "${ECHO_T}no" >&6
9399 fi
9400
9401
9402
9403
9404 enablestring=
9405 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9406echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9407 no_cache=0
9408 # Check whether --enable-menus or --disable-menus was given.
9409if test "${enable_menus+set}" = set; then
9410 enableval="$enable_menus"
9411
9412 if test "$enableval" = yes; then
9413 ac_cv_use_menus='wxUSE_MENUS=yes'
9414 else
9415 ac_cv_use_menus='wxUSE_MENUS=no'
9416 fi
9417
9418else
9419
9420 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9421 if test "x$LINE" != x ; then
9422 eval "DEFAULT_$LINE"
9423 else
9424 no_cache=1
9425 fi
9426
9427 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9428
9429fi;
9430
9431 eval "$ac_cv_use_menus"
9432 if test "$no_cache" != 1; then
9433 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9434 fi
9435
9436 if test "$wxUSE_MENUS" = yes; then
9437 echo "$as_me:$LINENO: result: yes" >&5
9438echo "${ECHO_T}yes" >&6
9439 else
9440 echo "$as_me:$LINENO: result: no" >&5
9441echo "${ECHO_T}no" >&6
9442 fi
9443
9444
9445 enablestring=
9446 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9447echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9448 no_cache=0
9449 # Check whether --enable-miniframe or --disable-miniframe was given.
9450if test "${enable_miniframe+set}" = set; then
9451 enableval="$enable_miniframe"
9452
9453 if test "$enableval" = yes; then
9454 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9455 else
9456 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9457 fi
9458
9459else
9460
9461 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9462 if test "x$LINE" != x ; then
9463 eval "DEFAULT_$LINE"
9464 else
9465 no_cache=1
9466 fi
9467
9468 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9469
9470fi;
9471
9472 eval "$ac_cv_use_miniframe"
9473 if test "$no_cache" != 1; then
9474 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9475 fi
9476
9477 if test "$wxUSE_MINIFRAME" = yes; then
9478 echo "$as_me:$LINENO: result: yes" >&5
9479echo "${ECHO_T}yes" >&6
9480 else
9481 echo "$as_me:$LINENO: result: no" >&5
9482echo "${ECHO_T}no" >&6
9483 fi
9484
9485
9486 enablestring=
9487 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9488echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9489 no_cache=0
9490 # Check whether --enable-tooltips or --disable-tooltips was given.
9491if test "${enable_tooltips+set}" = set; then
9492 enableval="$enable_tooltips"
9493
9494 if test "$enableval" = yes; then
9495 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9496 else
9497 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9498 fi
9499
9500else
9501
9502 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9503 if test "x$LINE" != x ; then
9504 eval "DEFAULT_$LINE"
9505 else
9506 no_cache=1
9507 fi
9508
9509 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9510
9511fi;
9512
9513 eval "$ac_cv_use_tooltips"
9514 if test "$no_cache" != 1; then
9515 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9516 fi
9517
9518 if test "$wxUSE_TOOLTIPS" = yes; then
9519 echo "$as_me:$LINENO: result: yes" >&5
9520echo "${ECHO_T}yes" >&6
9521 else
9522 echo "$as_me:$LINENO: result: no" >&5
9523echo "${ECHO_T}no" >&6
9524 fi
9525
9526
9527 enablestring=
9528 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9529echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9530 no_cache=0
9531 # Check whether --enable-splines or --disable-splines was given.
9532if test "${enable_splines+set}" = set; then
9533 enableval="$enable_splines"
9534
9535 if test "$enableval" = yes; then
9536 ac_cv_use_splines='wxUSE_SPLINES=yes'
9537 else
9538 ac_cv_use_splines='wxUSE_SPLINES=no'
9539 fi
9540
9541else
9542
9543 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9544 if test "x$LINE" != x ; then
9545 eval "DEFAULT_$LINE"
9546 else
9547 no_cache=1
9548 fi
9549
9550 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9551
9552fi;
9553
9554 eval "$ac_cv_use_splines"
9555 if test "$no_cache" != 1; then
9556 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9557 fi
9558
9559 if test "$wxUSE_SPLINES" = yes; then
9560 echo "$as_me:$LINENO: result: yes" >&5
9561echo "${ECHO_T}yes" >&6
9562 else
9563 echo "$as_me:$LINENO: result: no" >&5
9564echo "${ECHO_T}no" >&6
9565 fi
9566
9567
9568 enablestring=
9569 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9570echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9571 no_cache=0
9572 # Check whether --enable-validators or --disable-validators was given.
9573if test "${enable_validators+set}" = set; then
9574 enableval="$enable_validators"
9575
9576 if test "$enableval" = yes; then
9577 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9578 else
9579 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9580 fi
9581
9582else
9583
9584 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9585 if test "x$LINE" != x ; then
9586 eval "DEFAULT_$LINE"
9587 else
9588 no_cache=1
9589 fi
9590
9591 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9592
9593fi;
9594
9595 eval "$ac_cv_use_validators"
9596 if test "$no_cache" != 1; then
9597 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9598 fi
9599
9600 if test "$wxUSE_VALIDATORS" = yes; then
9601 echo "$as_me:$LINENO: result: yes" >&5
9602echo "${ECHO_T}yes" >&6
9603 else
9604 echo "$as_me:$LINENO: result: no" >&5
9605echo "${ECHO_T}no" >&6
9606 fi
9607
9608
9609 enablestring=
9610 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9611echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9612 no_cache=0
9613 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9614if test "${enable_busyinfo+set}" = set; then
9615 enableval="$enable_busyinfo"
9616
9617 if test "$enableval" = yes; then
9618 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9619 else
9620 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9621 fi
9622
9623else
9624
9625 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9626 if test "x$LINE" != x ; then
9627 eval "DEFAULT_$LINE"
9628 else
9629 no_cache=1
9630 fi
9631
9632 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9633
9634fi;
9635
9636 eval "$ac_cv_use_busyinfo"
9637 if test "$no_cache" != 1; then
9638 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9639 fi
9640
9641 if test "$wxUSE_BUSYINFO" = yes; then
9642 echo "$as_me:$LINENO: result: yes" >&5
9643echo "${ECHO_T}yes" >&6
9644 else
9645 echo "$as_me:$LINENO: result: no" >&5
9646echo "${ECHO_T}no" >&6
9647 fi
9648
9649
9650 enablestring=
9651 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9652echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9653 no_cache=0
9654 # Check whether --enable-joystick or --disable-joystick was given.
9655if test "${enable_joystick+set}" = set; then
9656 enableval="$enable_joystick"
9657
9658 if test "$enableval" = yes; then
9659 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9660 else
9661 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9662 fi
9663
9664else
9665
9666 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9667 if test "x$LINE" != x ; then
9668 eval "DEFAULT_$LINE"
9669 else
9670 no_cache=1
9671 fi
9672
9673 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9674
9675fi;
9676
9677 eval "$ac_cv_use_joystick"
9678 if test "$no_cache" != 1; then
9679 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9680 fi
9681
9682 if test "$wxUSE_JOYSTICK" = yes; then
9683 echo "$as_me:$LINENO: result: yes" >&5
9684echo "${ECHO_T}yes" >&6
9685 else
9686 echo "$as_me:$LINENO: result: no" >&5
9687echo "${ECHO_T}no" >&6
9688 fi
9689
9690
9691 enablestring=
9692 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9693echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9694 no_cache=0
9695 # Check whether --enable-metafile or --disable-metafile was given.
9696if test "${enable_metafile+set}" = set; then
9697 enableval="$enable_metafile"
9698
9699 if test "$enableval" = yes; then
9700 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9701 else
9702 ac_cv_use_metafile='wxUSE_METAFILE=no'
9703 fi
9704
9705else
9706
9707 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9708 if test "x$LINE" != x ; then
9709 eval "DEFAULT_$LINE"
9710 else
9711 no_cache=1
9712 fi
9713
9714 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9715
9716fi;
9717
9718 eval "$ac_cv_use_metafile"
9719 if test "$no_cache" != 1; then
9720 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9721 fi
9722
9723 if test "$wxUSE_METAFILE" = yes; then
9724 echo "$as_me:$LINENO: result: yes" >&5
9725echo "${ECHO_T}yes" >&6
9726 else
9727 echo "$as_me:$LINENO: result: no" >&5
9728echo "${ECHO_T}no" >&6
9729 fi
9730
9731
9732 enablestring=
9733 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9734echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9735 no_cache=0
9736 # Check whether --enable-dragimage or --disable-dragimage was given.
9737if test "${enable_dragimage+set}" = set; then
9738 enableval="$enable_dragimage"
9739
9740 if test "$enableval" = yes; then
9741 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9742 else
9743 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9744 fi
9745
9746else
9747
9748 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9749 if test "x$LINE" != x ; then
9750 eval "DEFAULT_$LINE"
9751 else
9752 no_cache=1
9753 fi
9754
9755 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9756
9757fi;
9758
9759 eval "$ac_cv_use_dragimage"
9760 if test "$no_cache" != 1; then
9761 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9762 fi
9763
9764 if test "$wxUSE_DRAGIMAGE" = yes; then
9765 echo "$as_me:$LINENO: result: yes" >&5
9766echo "${ECHO_T}yes" >&6
9767 else
9768 echo "$as_me:$LINENO: result: no" >&5
9769echo "${ECHO_T}no" >&6
9770 fi
9771
9772
9773 enablestring=
9774 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9775echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
9776 no_cache=0
9777 # Check whether --enable-accessibility or --disable-accessibility was given.
9778if test "${enable_accessibility+set}" = set; then
9779 enableval="$enable_accessibility"
9780
9781 if test "$enableval" = yes; then
9782 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9783 else
9784 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9785 fi
9786
9787else
9788
9789 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9790 if test "x$LINE" != x ; then
9791 eval "DEFAULT_$LINE"
9792 else
9793 no_cache=1
9794 fi
9795
9796 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
9797
9798fi;
9799
9800 eval "$ac_cv_use_accessibility"
9801 if test "$no_cache" != 1; then
9802 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9803 fi
9804
9805 if test "$wxUSE_ACCESSIBILITY" = yes; then
9806 echo "$as_me:$LINENO: result: yes" >&5
9807echo "${ECHO_T}yes" >&6
9808 else
9809 echo "$as_me:$LINENO: result: no" >&5
9810echo "${ECHO_T}no" >&6
9811 fi
9812
9813
9814
9815
9816 enablestring=
9817 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9818echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
9819 no_cache=0
9820 # Check whether --enable-palette or --disable-palette was given.
9821if test "${enable_palette+set}" = set; then
9822 enableval="$enable_palette"
9823
9824 if test "$enableval" = yes; then
9825 ac_cv_use_palette='wxUSE_PALETTE=yes'
9826 else
9827 ac_cv_use_palette='wxUSE_PALETTE=no'
9828 fi
9829
9830else
9831
9832 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9833 if test "x$LINE" != x ; then
9834 eval "DEFAULT_$LINE"
9835 else
9836 no_cache=1
9837 fi
9838
9839 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
9840
9841fi;
9842
9843 eval "$ac_cv_use_palette"
9844 if test "$no_cache" != 1; then
9845 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9846 fi
9847
9848 if test "$wxUSE_PALETTE" = yes; then
9849 echo "$as_me:$LINENO: result: yes" >&5
9850echo "${ECHO_T}yes" >&6
9851 else
9852 echo "$as_me:$LINENO: result: no" >&5
9853echo "${ECHO_T}no" >&6
9854 fi
9855
9856
9857 enablestring=
9858 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9859echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
9860 no_cache=0
9861 # Check whether --enable-image or --disable-image was given.
9862if test "${enable_image+set}" = set; then
9863 enableval="$enable_image"
9864
9865 if test "$enableval" = yes; then
9866 ac_cv_use_image='wxUSE_IMAGE=yes'
9867 else
9868 ac_cv_use_image='wxUSE_IMAGE=no'
9869 fi
9870
9871else
9872
9873 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9874 if test "x$LINE" != x ; then
9875 eval "DEFAULT_$LINE"
9876 else
9877 no_cache=1
9878 fi
9879
9880 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
9881
9882fi;
9883
9884 eval "$ac_cv_use_image"
9885 if test "$no_cache" != 1; then
9886 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9887 fi
9888
9889 if test "$wxUSE_IMAGE" = yes; then
9890 echo "$as_me:$LINENO: result: yes" >&5
9891echo "${ECHO_T}yes" >&6
9892 else
9893 echo "$as_me:$LINENO: result: no" >&5
9894echo "${ECHO_T}no" >&6
9895 fi
9896
9897
9898 enablestring=
9899 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9900echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
9901 no_cache=0
9902 # Check whether --enable-gif or --disable-gif was given.
9903if test "${enable_gif+set}" = set; then
9904 enableval="$enable_gif"
9905
9906 if test "$enableval" = yes; then
9907 ac_cv_use_gif='wxUSE_GIF=yes'
9908 else
9909 ac_cv_use_gif='wxUSE_GIF=no'
9910 fi
9911
9912else
9913
9914 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9915 if test "x$LINE" != x ; then
9916 eval "DEFAULT_$LINE"
9917 else
9918 no_cache=1
9919 fi
9920
9921 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
9922
9923fi;
9924
9925 eval "$ac_cv_use_gif"
9926 if test "$no_cache" != 1; then
9927 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9928 fi
9929
9930 if test "$wxUSE_GIF" = yes; then
9931 echo "$as_me:$LINENO: result: yes" >&5
9932echo "${ECHO_T}yes" >&6
9933 else
9934 echo "$as_me:$LINENO: result: no" >&5
9935echo "${ECHO_T}no" >&6
9936 fi
9937
9938
9939 enablestring=
9940 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9941echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
9942 no_cache=0
9943 # Check whether --enable-pcx or --disable-pcx was given.
9944if test "${enable_pcx+set}" = set; then
9945 enableval="$enable_pcx"
9946
9947 if test "$enableval" = yes; then
9948 ac_cv_use_pcx='wxUSE_PCX=yes'
9949 else
9950 ac_cv_use_pcx='wxUSE_PCX=no'
9951 fi
9952
9953else
9954
9955 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9956 if test "x$LINE" != x ; then
9957 eval "DEFAULT_$LINE"
9958 else
9959 no_cache=1
9960 fi
9961
9962 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
9963
9964fi;
9965
9966 eval "$ac_cv_use_pcx"
9967 if test "$no_cache" != 1; then
9968 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9969 fi
9970
9971 if test "$wxUSE_PCX" = yes; then
9972 echo "$as_me:$LINENO: result: yes" >&5
9973echo "${ECHO_T}yes" >&6
9974 else
9975 echo "$as_me:$LINENO: result: no" >&5
9976echo "${ECHO_T}no" >&6
9977 fi
9978
9979
9980 enablestring=
9981 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9982echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
9983 no_cache=0
9984 # Check whether --enable-iff or --disable-iff was given.
9985if test "${enable_iff+set}" = set; then
9986 enableval="$enable_iff"
9987
9988 if test "$enableval" = yes; then
9989 ac_cv_use_iff='wxUSE_IFF=yes'
9990 else
9991 ac_cv_use_iff='wxUSE_IFF=no'
9992 fi
9993
9994else
9995
9996 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9997 if test "x$LINE" != x ; then
9998 eval "DEFAULT_$LINE"
9999 else
10000 no_cache=1
10001 fi
10002
10003 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
10004
10005fi;
10006
10007 eval "$ac_cv_use_iff"
10008 if test "$no_cache" != 1; then
10009 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
10010 fi
10011
10012 if test "$wxUSE_IFF" = yes; then
10013 echo "$as_me:$LINENO: result: yes" >&5
10014echo "${ECHO_T}yes" >&6
10015 else
10016 echo "$as_me:$LINENO: result: no" >&5
10017echo "${ECHO_T}no" >&6
10018 fi
10019
10020
10021 enablestring=
10022 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
10023echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10024 no_cache=0
10025 # Check whether --enable-pnm or --disable-pnm was given.
10026if test "${enable_pnm+set}" = set; then
10027 enableval="$enable_pnm"
10028
10029 if test "$enableval" = yes; then
10030 ac_cv_use_pnm='wxUSE_PNM=yes'
10031 else
10032 ac_cv_use_pnm='wxUSE_PNM=no'
10033 fi
10034
10035else
10036
10037 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
10038 if test "x$LINE" != x ; then
10039 eval "DEFAULT_$LINE"
10040 else
10041 no_cache=1
10042 fi
10043
10044 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10045
10046fi;
10047
10048 eval "$ac_cv_use_pnm"
10049 if test "$no_cache" != 1; then
10050 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10051 fi
10052
10053 if test "$wxUSE_PNM" = yes; then
10054 echo "$as_me:$LINENO: result: yes" >&5
10055echo "${ECHO_T}yes" >&6
10056 else
10057 echo "$as_me:$LINENO: result: no" >&5
10058echo "${ECHO_T}no" >&6
10059 fi
10060
10061
10062 enablestring=
10063 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10064echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10065 no_cache=0
10066 # Check whether --enable-xpm or --disable-xpm was given.
10067if test "${enable_xpm+set}" = set; then
10068 enableval="$enable_xpm"
10069
10070 if test "$enableval" = yes; then
10071 ac_cv_use_xpm='wxUSE_XPM=yes'
10072 else
10073 ac_cv_use_xpm='wxUSE_XPM=no'
10074 fi
10075
10076else
10077
10078 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10079 if test "x$LINE" != x ; then
10080 eval "DEFAULT_$LINE"
10081 else
10082 no_cache=1
10083 fi
10084
10085 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10086
10087fi;
10088
10089 eval "$ac_cv_use_xpm"
10090 if test "$no_cache" != 1; then
10091 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10092 fi
10093
10094 if test "$wxUSE_XPM" = yes; then
10095 echo "$as_me:$LINENO: result: yes" >&5
10096echo "${ECHO_T}yes" >&6
10097 else
10098 echo "$as_me:$LINENO: result: no" >&5
10099echo "${ECHO_T}no" >&6
10100 fi
10101
10102
10103 enablestring=
10104 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10105echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10106 no_cache=0
10107 # Check whether --enable-ico_cur or --disable-ico_cur was given.
10108if test "${enable_ico_cur+set}" = set; then
10109 enableval="$enable_ico_cur"
10110
10111 if test "$enableval" = yes; then
10112 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10113 else
10114 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10115 fi
10116
10117else
10118
10119 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10120 if test "x$LINE" != x ; then
10121 eval "DEFAULT_$LINE"
10122 else
10123 no_cache=1
10124 fi
10125
10126 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10127
10128fi;
10129
10130 eval "$ac_cv_use_ico_cur"
10131 if test "$no_cache" != 1; then
10132 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10133 fi
10134
10135 if test "$wxUSE_ICO_CUR" = yes; then
10136 echo "$as_me:$LINENO: result: yes" >&5
10137echo "${ECHO_T}yes" >&6
10138 else
10139 echo "$as_me:$LINENO: result: no" >&5
10140echo "${ECHO_T}no" >&6
10141 fi
10142
10143
10144fi
10145
10146
10147
ceec2216
RL
10148# Check whether --with-flavour or --without-flavour was given.
10149if test "${with_flavour+set}" = set; then
10150 withval="$with_flavour"
10151 WX_FLAVOUR="$withval"
10152fi;
10153
10154
10155
a848cd7e
SC
10156 enablestring=
10157 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10158echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10159 no_cache=0
10160 # Check whether --enable-official_build or --disable-official_build was given.
10161if test "${enable_official_build+set}" = set; then
10162 enableval="$enable_official_build"
10163
10164 if test "$enableval" = yes; then
10165 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10166 else
10167 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10168 fi
10169
10170else
10171
10172 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10173 if test "x$LINE" != x ; then
10174 eval "DEFAULT_$LINE"
10175 else
10176 no_cache=1
10177 fi
10178
10179 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10180
10181fi;
10182
10183 eval "$ac_cv_use_official_build"
10184 if test "$no_cache" != 1; then
10185 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10186 fi
10187
10188 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10189 echo "$as_me:$LINENO: result: yes" >&5
10190echo "${ECHO_T}yes" >&6
10191 else
10192 echo "$as_me:$LINENO: result: no" >&5
10193echo "${ECHO_T}no" >&6
10194 fi
10195
10196# Check whether --enable-vendor or --disable-vendor was given.
10197if test "${enable_vendor+set}" = set; then
10198 enableval="$enable_vendor"
10199 VENDOR="$enableval"
10200fi;
10201if test "x$VENDOR" = "x"; then
10202 VENDOR="custom"
10203fi
10204
a848cd7e
SC
10205
10206
10207
10208 echo "saving argument cache $wx_arg_cache_file"
10209 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10210
10211
10212
10213echo "$as_me:$LINENO: checking for toolkit" >&5
10214echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10215
10216# In Wine, we need to default to MSW, not GTK or MOTIF
10217if test "$wxUSE_WINE" = "yes"; then
10218 DEFAULT_DEFAULT_wxUSE_GTK=0
10219 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10220 DEFAULT_DEFAULT_wxUSE_MSW=1
10221 wxUSE_SHARED=no
10222fi
10223
10224if test "$wxUSE_GUI" = "yes"; then
10225
10226 if test "$USE_BEOS" = 1; then
10227 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10228echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10229 { (exit 1); exit 1; }; }
10230 fi
10231
10232 if test "$TOOLKIT_GIVEN" = 1; then
10233 for toolkit in `echo $ALL_TOOLKITS`; do
10234 var=wxUSE_$toolkit
10235 eval "value=\$${var}"
10236 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
10237 done
10238 else
10239 for toolkit in `echo $ALL_TOOLKITS`; do
10240 if test "$has_toolkit_in_cache" != 1; then
10241 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10242 else
10243 var=DEFAULT_wxUSE_$toolkit
10244 fi
10245 eval "wxUSE_$toolkit=\$${var}"
10246 done
10247 fi
10248
10249 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10250 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10251 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10252
10253 case "${host}" in
10254 *-pc-os2_emx | *-pc-os2-emx )
10255 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10256 esac
10257
10258 case "$NUM_TOOLKITS" in
10259 1)
10260 ;;
10261 0)
10262 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10263echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10264 { (exit 1); exit 1; }; }
10265 ;;
10266 *)
10267 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10268echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10269 { (exit 1); exit 1; }; }
10270 esac
10271
10272 for toolkit in `echo $ALL_TOOLKITS`; do
10273 var=wxUSE_$toolkit
10274 eval "value=\$${var}"
10275 if test "x$value" != x; then
10276 cache_var=CACHE_$toolkit
10277 eval "cache=\$${cache_var}"
10278 if test "$cache" = 1; then
10279 echo "$var=$value" >> ${wx_arg_cache_file}
10280 fi
10281 if test "$value" = 1; then
10282 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10283 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10284echo "${ECHO_T}$toolkit_echo" >&6
10285 fi
10286 fi
10287 done
10288else
10289 if test "x$host_alias" != "x"; then
10290 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10291echo "${ECHO_T}base ($host_alias hosted) only" >&6
10292 else
10293 echo "$as_me:$LINENO: result: base only" >&5
10294echo "${ECHO_T}base only" >&6
10295 fi
10296fi
10297
10298wants_win32=0
10299doesnt_want_win32=0
10300case "${host}" in
10301 *-*-cygwin*)
10302 if test "$wxUSE_MSW" = 1 ; then
10303 wants_win32=1
10304 else
10305 doesnt_want_win32=1
10306 fi
10307 ;;
10308 *-*-mingw*)
10309 wants_win32=1
10310 ;;
10311esac
10312
10313if test "$wxUSE_WINE" = "yes"; then
10314 wants_win32=1
10315 CC=winegcc
10316 CXX=wineg++
10317 RESCOMP=wrc
10318 LDFLAGS_GUI="-mwindows"
10319fi
10320
10321if test "$wants_win32" = 1 ; then
10322 USE_UNIX=0
10323 USE_WIN32=1
10324 cat >>confdefs.h <<\_ACEOF
10325#define __WIN32__ 1
10326_ACEOF
10327
10328 cat >>confdefs.h <<\_ACEOF
10329#define __WIN95__ 1
10330_ACEOF
10331
10332 cat >>confdefs.h <<\_ACEOF
10333#define __WINDOWS__ 1
10334_ACEOF
10335
10336 cat >>confdefs.h <<\_ACEOF
10337#define __GNUWIN32__ 1
10338_ACEOF
10339
10340 cat >>confdefs.h <<\_ACEOF
10341#define STRICT 1
10342_ACEOF
10343
10344 cat >>confdefs.h <<\_ACEOF
10345#define WINVER 0x0400
10346_ACEOF
10347
10348fi
10349if test "$doesnt_want_win32" = 1 ; then
10350 USE_UNIX=1
10351 USE_WIN32=0
10352fi
10353
10354if test "$USE_UNIX" = 1 ; then
10355 wxUSE_UNIX=yes
10356 cat >>confdefs.h <<\_ACEOF
10357#define __UNIX__ 1
10358_ACEOF
10359
10360fi
10361
10362
10363cat >confcache <<\_ACEOF
10364# This file is a shell script that caches the results of configure
10365# tests run on this system so they can be shared between configure
10366# scripts and configure runs, see configure's option --config-cache.
10367# It is not useful on other systems. If it contains results you don't
10368# want to keep, you may remove or edit it.
10369#
10370# config.status only pays attention to the cache file if you give it
10371# the --recheck option to rerun configure.
10372#
10373# `ac_cv_env_foo' variables (set or unset) will be overridden when
10374# loading this file, other *unset* `ac_cv_foo' will be assigned the
10375# following values.
10376
10377_ACEOF
10378
10379# The following way of writing the cache mishandles newlines in values,
10380# but we know of no workaround that is simple, portable, and efficient.
10381# So, don't put newlines in cache variables' values.
10382# Ultrix sh set writes to stderr and can't be redirected directly,
10383# and sets the high bit in the cache file unless we assign to the vars.
10384{
10385 (set) 2>&1 |
10386 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10387 *ac_space=\ *)
10388 # `set' does not quote correctly, so add quotes (double-quote
10389 # substitution turns \\\\ into \\, and sed turns \\ into \).
10390 sed -n \
ac1cb8d3
VS
10391 "s/'/'\\\\''/g;
10392 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10393 ;;
10394 *)
10395 # `set' quotes correctly as required by POSIX, so do not add quotes.
10396 sed -n \
ac1cb8d3 10397 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10398 ;;
10399 esac;
10400} |
10401 sed '
10402 t clear
10403 : clear
10404 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10405 t end
10406 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10407 : end' >>confcache
10408if diff $cache_file confcache >/dev/null 2>&1; then :; else
10409 if test -w $cache_file; then
10410 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10411 cat confcache >$cache_file
10412 else
10413 echo "not updating unwritable cache $cache_file"
10414 fi
10415fi
10416rm -f confcache
10417
10418if test "$build" != "$host" ; then
1e9e8aba 10419 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX" = 1; then
a848cd7e
SC
10420 CC=$host_alias-gcc
10421 CXX=$host_alias-c++
10422 AR=$host_alias-ar
10423 RANLIB=$host_alias-ranlib
10424 DLLTOOL=$host_alias-dlltool
10425 RESCOMP=$host_alias-windres
a848cd7e 10426 STRIP=$host_alias-strip
1e9e8aba
DE
10427 elif test "x$CC" '!=' "x"; then
10428 echo "You set CC, I assume you know what you are doing."
a848cd7e
SC
10429 else
10430 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10431echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10432 { (exit 1); exit 1; }; }
10433 fi
10434fi
10435
10436CFLAGS=${CFLAGS:=}
10437ac_ext=c
10438ac_cpp='$CPP $CPPFLAGS'
10439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10441ac_compiler_gnu=$ac_cv_c_compiler_gnu
10442if test -n "$ac_tool_prefix"; then
10443 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10444set dummy ${ac_tool_prefix}gcc; ac_word=$2
10445echo "$as_me:$LINENO: checking for $ac_word" >&5
10446echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10447if test "${ac_cv_prog_CC+set}" = set; then
10448 echo $ECHO_N "(cached) $ECHO_C" >&6
10449else
10450 if test -n "$CC"; then
10451 ac_cv_prog_CC="$CC" # Let the user override the test.
10452else
10453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10454for as_dir in $PATH
10455do
10456 IFS=$as_save_IFS
10457 test -z "$as_dir" && as_dir=.
10458 for ac_exec_ext in '' $ac_executable_extensions; do
10459 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10460 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10462 break 2
10463 fi
10464done
10465done
10466
10467fi
10468fi
10469CC=$ac_cv_prog_CC
10470if test -n "$CC"; then
10471 echo "$as_me:$LINENO: result: $CC" >&5
10472echo "${ECHO_T}$CC" >&6
10473else
10474 echo "$as_me:$LINENO: result: no" >&5
10475echo "${ECHO_T}no" >&6
10476fi
10477
10478fi
10479if test -z "$ac_cv_prog_CC"; then
10480 ac_ct_CC=$CC
10481 # Extract the first word of "gcc", so it can be a program name with args.
10482set dummy gcc; ac_word=$2
10483echo "$as_me:$LINENO: checking for $ac_word" >&5
10484echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10485if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10486 echo $ECHO_N "(cached) $ECHO_C" >&6
10487else
10488 if test -n "$ac_ct_CC"; then
10489 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10490else
10491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10492for as_dir in $PATH
10493do
10494 IFS=$as_save_IFS
10495 test -z "$as_dir" && as_dir=.
10496 for ac_exec_ext in '' $ac_executable_extensions; do
10497 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10498 ac_cv_prog_ac_ct_CC="gcc"
10499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10500 break 2
10501 fi
10502done
10503done
10504
10505fi
10506fi
10507ac_ct_CC=$ac_cv_prog_ac_ct_CC
10508if test -n "$ac_ct_CC"; then
10509 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10510echo "${ECHO_T}$ac_ct_CC" >&6
10511else
10512 echo "$as_me:$LINENO: result: no" >&5
10513echo "${ECHO_T}no" >&6
10514fi
10515
10516 CC=$ac_ct_CC
10517else
10518 CC="$ac_cv_prog_CC"
10519fi
10520
10521if test -z "$CC"; then
10522 if test -n "$ac_tool_prefix"; then
10523 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10524set dummy ${ac_tool_prefix}cc; ac_word=$2
10525echo "$as_me:$LINENO: checking for $ac_word" >&5
10526echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10527if test "${ac_cv_prog_CC+set}" = set; then
10528 echo $ECHO_N "(cached) $ECHO_C" >&6
10529else
10530 if test -n "$CC"; then
10531 ac_cv_prog_CC="$CC" # Let the user override the test.
10532else
10533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10534for as_dir in $PATH
10535do
10536 IFS=$as_save_IFS
10537 test -z "$as_dir" && as_dir=.
10538 for ac_exec_ext in '' $ac_executable_extensions; do
10539 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10540 ac_cv_prog_CC="${ac_tool_prefix}cc"
10541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10542 break 2
10543 fi
10544done
10545done
10546
10547fi
10548fi
10549CC=$ac_cv_prog_CC
10550if test -n "$CC"; then
10551 echo "$as_me:$LINENO: result: $CC" >&5
10552echo "${ECHO_T}$CC" >&6
10553else
10554 echo "$as_me:$LINENO: result: no" >&5
10555echo "${ECHO_T}no" >&6
10556fi
10557
10558fi
10559if test -z "$ac_cv_prog_CC"; then
10560 ac_ct_CC=$CC
10561 # Extract the first word of "cc", so it can be a program name with args.
10562set dummy cc; ac_word=$2
10563echo "$as_me:$LINENO: checking for $ac_word" >&5
10564echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10565if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10566 echo $ECHO_N "(cached) $ECHO_C" >&6
10567else
10568 if test -n "$ac_ct_CC"; then
10569 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10570else
10571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10572for as_dir in $PATH
10573do
10574 IFS=$as_save_IFS
10575 test -z "$as_dir" && as_dir=.
10576 for ac_exec_ext in '' $ac_executable_extensions; do
10577 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10578 ac_cv_prog_ac_ct_CC="cc"
10579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10580 break 2
10581 fi
10582done
10583done
10584
10585fi
10586fi
10587ac_ct_CC=$ac_cv_prog_ac_ct_CC
10588if test -n "$ac_ct_CC"; then
10589 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10590echo "${ECHO_T}$ac_ct_CC" >&6
10591else
10592 echo "$as_me:$LINENO: result: no" >&5
10593echo "${ECHO_T}no" >&6
10594fi
10595
10596 CC=$ac_ct_CC
10597else
10598 CC="$ac_cv_prog_CC"
10599fi
10600
10601fi
10602if test -z "$CC"; then
10603 # Extract the first word of "cc", so it can be a program name with args.
10604set dummy cc; ac_word=$2
10605echo "$as_me:$LINENO: checking for $ac_word" >&5
10606echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10607if test "${ac_cv_prog_CC+set}" = set; then
10608 echo $ECHO_N "(cached) $ECHO_C" >&6
10609else
10610 if test -n "$CC"; then
10611 ac_cv_prog_CC="$CC" # Let the user override the test.
10612else
10613 ac_prog_rejected=no
10614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10615for as_dir in $PATH
10616do
10617 IFS=$as_save_IFS
10618 test -z "$as_dir" && as_dir=.
10619 for ac_exec_ext in '' $ac_executable_extensions; do
10620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10621 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10622 ac_prog_rejected=yes
10623 continue
10624 fi
10625 ac_cv_prog_CC="cc"
10626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10627 break 2
10628 fi
10629done
10630done
10631
10632if test $ac_prog_rejected = yes; then
10633 # We found a bogon in the path, so make sure we never use it.
10634 set dummy $ac_cv_prog_CC
10635 shift
10636 if test $# != 0; then
10637 # We chose a different compiler from the bogus one.
10638 # However, it has the same basename, so the bogon will be chosen
10639 # first if we set CC to just the basename; use the full file name.
10640 shift
10641 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10642 fi
10643fi
10644fi
10645fi
10646CC=$ac_cv_prog_CC
10647if test -n "$CC"; then
10648 echo "$as_me:$LINENO: result: $CC" >&5
10649echo "${ECHO_T}$CC" >&6
10650else
10651 echo "$as_me:$LINENO: result: no" >&5
10652echo "${ECHO_T}no" >&6
10653fi
10654
10655fi
10656if test -z "$CC"; then
10657 if test -n "$ac_tool_prefix"; then
10658 for ac_prog in cl
10659 do
10660 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10661set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10662echo "$as_me:$LINENO: checking for $ac_word" >&5
10663echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10664if test "${ac_cv_prog_CC+set}" = set; then
10665 echo $ECHO_N "(cached) $ECHO_C" >&6
10666else
10667 if test -n "$CC"; then
10668 ac_cv_prog_CC="$CC" # Let the user override the test.
10669else
10670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10671for as_dir in $PATH
10672do
10673 IFS=$as_save_IFS
10674 test -z "$as_dir" && as_dir=.
10675 for ac_exec_ext in '' $ac_executable_extensions; do
10676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10677 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10679 break 2
10680 fi
10681done
10682done
10683
10684fi
10685fi
10686CC=$ac_cv_prog_CC
10687if test -n "$CC"; then
10688 echo "$as_me:$LINENO: result: $CC" >&5
10689echo "${ECHO_T}$CC" >&6
10690else
10691 echo "$as_me:$LINENO: result: no" >&5
10692echo "${ECHO_T}no" >&6
10693fi
10694
10695 test -n "$CC" && break
10696 done
10697fi
10698if test -z "$CC"; then
10699 ac_ct_CC=$CC
10700 for ac_prog in cl
10701do
10702 # Extract the first word of "$ac_prog", so it can be a program name with args.
10703set dummy $ac_prog; ac_word=$2
10704echo "$as_me:$LINENO: checking for $ac_word" >&5
10705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10706if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10707 echo $ECHO_N "(cached) $ECHO_C" >&6
10708else
10709 if test -n "$ac_ct_CC"; then
10710 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10711else
10712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10713for as_dir in $PATH
10714do
10715 IFS=$as_save_IFS
10716 test -z "$as_dir" && as_dir=.
10717 for ac_exec_ext in '' $ac_executable_extensions; do
10718 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10719 ac_cv_prog_ac_ct_CC="$ac_prog"
10720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10721 break 2
10722 fi
10723done
10724done
10725
10726fi
10727fi
10728ac_ct_CC=$ac_cv_prog_ac_ct_CC
10729if test -n "$ac_ct_CC"; then
10730 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10731echo "${ECHO_T}$ac_ct_CC" >&6
10732else
10733 echo "$as_me:$LINENO: result: no" >&5
10734echo "${ECHO_T}no" >&6
10735fi
10736
10737 test -n "$ac_ct_CC" && break
10738done
10739
10740 CC=$ac_ct_CC
10741fi
10742
10743fi
10744
10745
10746test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10747See \`config.log' for more details." >&5
10748echo "$as_me: error: no acceptable C compiler found in \$PATH
10749See \`config.log' for more details." >&2;}
10750 { (exit 1); exit 1; }; }
10751
10752# Provide some information about the compiler.
10753echo "$as_me:$LINENO:" \
10754 "checking for C compiler version" >&5
10755ac_compiler=`set X $ac_compile; echo $2`
10756{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10757 (eval $ac_compiler --version </dev/null >&5) 2>&5
10758 ac_status=$?
10759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760 (exit $ac_status); }
10761{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10762 (eval $ac_compiler -v </dev/null >&5) 2>&5
10763 ac_status=$?
10764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10765 (exit $ac_status); }
10766{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10767 (eval $ac_compiler -V </dev/null >&5) 2>&5
10768 ac_status=$?
10769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770 (exit $ac_status); }
10771
10772cat >conftest.$ac_ext <<_ACEOF
10773/* confdefs.h. */
10774_ACEOF
10775cat confdefs.h >>conftest.$ac_ext
10776cat >>conftest.$ac_ext <<_ACEOF
10777/* end confdefs.h. */
10778
10779int
10780main ()
10781{
10782
10783 ;
10784 return 0;
10785}
10786_ACEOF
10787ac_clean_files_save=$ac_clean_files
10788ac_clean_files="$ac_clean_files a.out a.exe b.out"
10789# Try to create an executable without -o first, disregard a.out.
10790# It will help us diagnose broken compilers, and finding out an intuition
10791# of exeext.
ac1cb8d3
VS
10792echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
10793echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
10794ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10795if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10796 (eval $ac_link_default) 2>&5
10797 ac_status=$?
10798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799 (exit $ac_status); }; then
10800 # Find the output, starting from the most likely. This scheme is
10801# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10802# resort.
10803
10804# Be careful to initialize this variable, since it used to be cached.
10805# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10806ac_cv_exeext=
10807# b.out is created by i960 compilers.
10808for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10809do
10810 test -f "$ac_file" || continue
10811 case $ac_file in
10812 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 10813 ;;
a848cd7e 10814 conftest.$ac_ext )
ac1cb8d3
VS
10815 # This is the source file.
10816 ;;
a848cd7e 10817 [ab].out )
ac1cb8d3
VS
10818 # We found the default executable, but exeext='' is most
10819 # certainly right.
10820 break;;
a848cd7e 10821 *.* )
ac1cb8d3
VS
10822 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10823 # FIXME: I believe we export ac_cv_exeext for Libtool,
10824 # but it would be cool to find out if it's true. Does anybody
10825 # maintain Libtool? --akim.
10826 export ac_cv_exeext
10827 break;;
a848cd7e 10828 * )
ac1cb8d3 10829 break;;
a848cd7e
SC
10830 esac
10831done
10832else
10833 echo "$as_me: failed program was:" >&5
10834sed 's/^/| /' conftest.$ac_ext >&5
10835
10836{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10837See \`config.log' for more details." >&5
10838echo "$as_me: error: C compiler cannot create executables
10839See \`config.log' for more details." >&2;}
10840 { (exit 77); exit 77; }; }
10841fi
10842
10843ac_exeext=$ac_cv_exeext
10844echo "$as_me:$LINENO: result: $ac_file" >&5
10845echo "${ECHO_T}$ac_file" >&6
10846
10847# Check the compiler produces executables we can run. If not, either
10848# the compiler is broken, or we cross compile.
10849echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10850echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10851# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10852# If not cross compiling, check that we can run a simple program.
10853if test "$cross_compiling" != yes; then
10854 if { ac_try='./$ac_file'
10855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10856 (eval $ac_try) 2>&5
10857 ac_status=$?
10858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859 (exit $ac_status); }; }; then
10860 cross_compiling=no
10861 else
10862 if test "$cross_compiling" = maybe; then
10863 cross_compiling=yes
10864 else
10865 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10866If you meant to cross compile, use \`--host'.
10867See \`config.log' for more details." >&5
10868echo "$as_me: error: cannot run C compiled programs.
10869If you meant to cross compile, use \`--host'.
10870See \`config.log' for more details." >&2;}
10871 { (exit 1); exit 1; }; }
10872 fi
10873 fi
10874fi
10875echo "$as_me:$LINENO: result: yes" >&5
10876echo "${ECHO_T}yes" >&6
10877
10878rm -f a.out a.exe conftest$ac_cv_exeext b.out
10879ac_clean_files=$ac_clean_files_save
10880# Check the compiler produces executables we can run. If not, either
10881# the compiler is broken, or we cross compile.
10882echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10883echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10884echo "$as_me:$LINENO: result: $cross_compiling" >&5
10885echo "${ECHO_T}$cross_compiling" >&6
10886
10887echo "$as_me:$LINENO: checking for suffix of executables" >&5
10888echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10889if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10890 (eval $ac_link) 2>&5
10891 ac_status=$?
10892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893 (exit $ac_status); }; then
10894 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10895# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10896# work properly (i.e., refer to `conftest.exe'), while it won't with
10897# `rm'.
10898for ac_file in conftest.exe conftest conftest.*; do
10899 test -f "$ac_file" || continue
10900 case $ac_file in
10901 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10902 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
10903 export ac_cv_exeext
10904 break;;
a848cd7e
SC
10905 * ) break;;
10906 esac
10907done
10908else
10909 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10910See \`config.log' for more details." >&5
10911echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10912See \`config.log' for more details." >&2;}
10913 { (exit 1); exit 1; }; }
10914fi
10915
10916rm -f conftest$ac_cv_exeext
10917echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10918echo "${ECHO_T}$ac_cv_exeext" >&6
10919
10920rm -f conftest.$ac_ext
10921EXEEXT=$ac_cv_exeext
10922ac_exeext=$EXEEXT
10923echo "$as_me:$LINENO: checking for suffix of object files" >&5
10924echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10925if test "${ac_cv_objext+set}" = set; then
10926 echo $ECHO_N "(cached) $ECHO_C" >&6
10927else
10928 cat >conftest.$ac_ext <<_ACEOF
10929/* confdefs.h. */
10930_ACEOF
10931cat confdefs.h >>conftest.$ac_ext
10932cat >>conftest.$ac_ext <<_ACEOF
10933/* end confdefs.h. */
10934
10935int
10936main ()
10937{
10938
10939 ;
10940 return 0;
10941}
10942_ACEOF
10943rm -f conftest.o conftest.obj
10944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10945 (eval $ac_compile) 2>&5
10946 ac_status=$?
10947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948 (exit $ac_status); }; then
10949 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10950 case $ac_file in
10951 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10952 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10953 break;;
10954 esac
10955done
10956else
10957 echo "$as_me: failed program was:" >&5
10958sed 's/^/| /' conftest.$ac_ext >&5
10959
10960{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10961See \`config.log' for more details." >&5
10962echo "$as_me: error: cannot compute suffix of object files: cannot compile
10963See \`config.log' for more details." >&2;}
10964 { (exit 1); exit 1; }; }
10965fi
10966
10967rm -f conftest.$ac_cv_objext conftest.$ac_ext
10968fi
10969echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10970echo "${ECHO_T}$ac_cv_objext" >&6
10971OBJEXT=$ac_cv_objext
10972ac_objext=$OBJEXT
10973echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10974echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10975if test "${ac_cv_c_compiler_gnu+set}" = set; then
10976 echo $ECHO_N "(cached) $ECHO_C" >&6
10977else
10978 cat >conftest.$ac_ext <<_ACEOF
10979/* confdefs.h. */
10980_ACEOF
10981cat confdefs.h >>conftest.$ac_ext
10982cat >>conftest.$ac_ext <<_ACEOF
10983/* end confdefs.h. */
10984
10985int
10986main ()
10987{
10988#ifndef __GNUC__
10989 choke me
10990#endif
10991
10992 ;
10993 return 0;
10994}
10995_ACEOF
10996rm -f conftest.$ac_objext
10997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 10998 (eval $ac_compile) 2>conftest.er1
a848cd7e 10999 ac_status=$?
ac1cb8d3
VS
11000 grep -v '^ *+' conftest.er1 >conftest.err
11001 rm -f conftest.er1
11002 cat conftest.err >&5
a848cd7e
SC
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); } &&
da4486fb 11005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11007 (eval $ac_try) 2>&5
11008 ac_status=$?
11009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010 (exit $ac_status); }; } &&
11011 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11013 (eval $ac_try) 2>&5
11014 ac_status=$?
11015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016 (exit $ac_status); }; }; then
11017 ac_compiler_gnu=yes
11018else
11019 echo "$as_me: failed program was:" >&5
11020sed 's/^/| /' conftest.$ac_ext >&5
11021
11022ac_compiler_gnu=no
11023fi
ac1cb8d3 11024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11025ac_cv_c_compiler_gnu=$ac_compiler_gnu
11026
11027fi
11028echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11029echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11030GCC=`test $ac_compiler_gnu = yes && echo yes`
11031ac_test_CFLAGS=${CFLAGS+set}
11032ac_save_CFLAGS=$CFLAGS
11033CFLAGS="-g"
11034echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11035echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11036if test "${ac_cv_prog_cc_g+set}" = set; then
11037 echo $ECHO_N "(cached) $ECHO_C" >&6
11038else
11039 cat >conftest.$ac_ext <<_ACEOF
11040/* confdefs.h. */
11041_ACEOF
11042cat confdefs.h >>conftest.$ac_ext
11043cat >>conftest.$ac_ext <<_ACEOF
11044/* end confdefs.h. */
11045
11046int
11047main ()
11048{
11049
11050 ;
11051 return 0;
11052}
11053_ACEOF
11054rm -f conftest.$ac_objext
11055if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11056 (eval $ac_compile) 2>conftest.er1
a848cd7e 11057 ac_status=$?
ac1cb8d3
VS
11058 grep -v '^ *+' conftest.er1 >conftest.err
11059 rm -f conftest.er1
11060 cat conftest.err >&5
a848cd7e
SC
11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); } &&
da4486fb 11063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11065 (eval $ac_try) 2>&5
11066 ac_status=$?
11067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068 (exit $ac_status); }; } &&
11069 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11071 (eval $ac_try) 2>&5
11072 ac_status=$?
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); }; }; then
11075 ac_cv_prog_cc_g=yes
11076else
11077 echo "$as_me: failed program was:" >&5
11078sed 's/^/| /' conftest.$ac_ext >&5
11079
11080ac_cv_prog_cc_g=no
11081fi
ac1cb8d3 11082rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11083fi
11084echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11085echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11086if test "$ac_test_CFLAGS" = set; then
11087 CFLAGS=$ac_save_CFLAGS
11088elif test $ac_cv_prog_cc_g = yes; then
11089 if test "$GCC" = yes; then
11090 CFLAGS="-g -O2"
11091 else
11092 CFLAGS="-g"
11093 fi
11094else
11095 if test "$GCC" = yes; then
11096 CFLAGS="-O2"
11097 else
11098 CFLAGS=
11099 fi
11100fi
11101echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11102echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11103if test "${ac_cv_prog_cc_stdc+set}" = set; then
11104 echo $ECHO_N "(cached) $ECHO_C" >&6
11105else
11106 ac_cv_prog_cc_stdc=no
11107ac_save_CC=$CC
11108cat >conftest.$ac_ext <<_ACEOF
11109/* confdefs.h. */
11110_ACEOF
11111cat confdefs.h >>conftest.$ac_ext
11112cat >>conftest.$ac_ext <<_ACEOF
11113/* end confdefs.h. */
11114#include <stdarg.h>
11115#include <stdio.h>
11116#include <sys/types.h>
11117#include <sys/stat.h>
11118/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11119struct buf { int x; };
11120FILE * (*rcsopen) (struct buf *, struct stat *, int);
11121static char *e (p, i)
11122 char **p;
11123 int i;
11124{
11125 return p[i];
11126}
11127static char *f (char * (*g) (char **, int), char **p, ...)
11128{
11129 char *s;
11130 va_list v;
11131 va_start (v,p);
11132 s = g (p, va_arg (v,int));
11133 va_end (v);
11134 return s;
11135}
ac1cb8d3
VS
11136
11137/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11138 function prototypes and stuff, but not '\xHH' hex character constants.
11139 These don't provoke an error unfortunately, instead are silently treated
11140 as 'x'. The following induces an error, until -std1 is added to get
11141 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11142 array size at least. It's necessary to write '\x00'==0 to get something
11143 that's true only with -std1. */
11144int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11145
a848cd7e
SC
11146int test (int i, double x);
11147struct s1 {int (*f) (int a);};
11148struct s2 {int (*f) (double a);};
11149int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11150int argc;
11151char **argv;
11152int
11153main ()
11154{
11155return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11156 ;
11157 return 0;
11158}
11159_ACEOF
11160# Don't try gcc -ansi; that turns off useful extensions and
11161# breaks some systems' header files.
11162# AIX -qlanglvl=ansi
11163# Ultrix and OSF/1 -std1
11164# HP-UX 10.20 and later -Ae
11165# HP-UX older versions -Aa -D_HPUX_SOURCE
11166# SVR4 -Xc -D__EXTENSIONS__
11167for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11168do
11169 CC="$ac_save_CC $ac_arg"
11170 rm -f conftest.$ac_objext
11171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11172 (eval $ac_compile) 2>conftest.er1
a848cd7e 11173 ac_status=$?
ac1cb8d3
VS
11174 grep -v '^ *+' conftest.er1 >conftest.err
11175 rm -f conftest.er1
11176 cat conftest.err >&5
a848cd7e
SC
11177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178 (exit $ac_status); } &&
da4486fb 11179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11181 (eval $ac_try) 2>&5
11182 ac_status=$?
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 (exit $ac_status); }; } &&
11185 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11187 (eval $ac_try) 2>&5
11188 ac_status=$?
11189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190 (exit $ac_status); }; }; then
11191 ac_cv_prog_cc_stdc=$ac_arg
11192break
11193else
11194 echo "$as_me: failed program was:" >&5
11195sed 's/^/| /' conftest.$ac_ext >&5
11196
11197fi
ac1cb8d3 11198rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11199done
11200rm -f conftest.$ac_ext conftest.$ac_objext
11201CC=$ac_save_CC
11202
11203fi
11204
11205case "x$ac_cv_prog_cc_stdc" in
11206 x|xno)
11207 echo "$as_me:$LINENO: result: none needed" >&5
11208echo "${ECHO_T}none needed" >&6 ;;
11209 *)
11210 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11211echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11212 CC="$CC $ac_cv_prog_cc_stdc" ;;
11213esac
11214
11215# Some people use a C++ compiler to compile C. Since we use `exit',
11216# in C++ we need to declare it. In case someone uses the same compiler
11217# for both compiling C and C++ we need to have the C++ compiler decide
11218# the declaration of exit, since it's the most demanding environment.
11219cat >conftest.$ac_ext <<_ACEOF
11220#ifndef __cplusplus
11221 choke me
11222#endif
11223_ACEOF
11224rm -f conftest.$ac_objext
11225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11226 (eval $ac_compile) 2>conftest.er1
a848cd7e 11227 ac_status=$?
ac1cb8d3
VS
11228 grep -v '^ *+' conftest.er1 >conftest.err
11229 rm -f conftest.er1
11230 cat conftest.err >&5
a848cd7e
SC
11231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232 (exit $ac_status); } &&
da4486fb 11233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11235 (eval $ac_try) 2>&5
11236 ac_status=$?
11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238 (exit $ac_status); }; } &&
11239 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
11245 for ac_declaration in \
ac1cb8d3 11246 '' \
a848cd7e
SC
11247 'extern "C" void std::exit (int) throw (); using std::exit;' \
11248 'extern "C" void std::exit (int); using std::exit;' \
11249 'extern "C" void exit (int) throw ();' \
11250 'extern "C" void exit (int);' \
11251 'void exit (int);'
11252do
11253 cat >conftest.$ac_ext <<_ACEOF
11254/* confdefs.h. */
11255_ACEOF
11256cat confdefs.h >>conftest.$ac_ext
11257cat >>conftest.$ac_ext <<_ACEOF
11258/* end confdefs.h. */
de59c161 11259$ac_declaration
ac1cb8d3 11260#include <stdlib.h>
a848cd7e
SC
11261int
11262main ()
11263{
11264exit (42);
11265 ;
11266 return 0;
11267}
11268_ACEOF
11269rm -f conftest.$ac_objext
11270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11271 (eval $ac_compile) 2>conftest.er1
a848cd7e 11272 ac_status=$?
ac1cb8d3
VS
11273 grep -v '^ *+' conftest.er1 >conftest.err
11274 rm -f conftest.er1
11275 cat conftest.err >&5
a848cd7e
SC
11276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277 (exit $ac_status); } &&
da4486fb 11278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11280 (eval $ac_try) 2>&5
11281 ac_status=$?
11282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283 (exit $ac_status); }; } &&
11284 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11286 (eval $ac_try) 2>&5
11287 ac_status=$?
11288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289 (exit $ac_status); }; }; then
11290 :
11291else
11292 echo "$as_me: failed program was:" >&5
11293sed 's/^/| /' conftest.$ac_ext >&5
11294
11295continue
11296fi
ac1cb8d3 11297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11298 cat >conftest.$ac_ext <<_ACEOF
11299/* confdefs.h. */
11300_ACEOF
11301cat confdefs.h >>conftest.$ac_ext
11302cat >>conftest.$ac_ext <<_ACEOF
11303/* end confdefs.h. */
11304$ac_declaration
11305int
11306main ()
11307{
11308exit (42);
11309 ;
11310 return 0;
11311}
11312_ACEOF
11313rm -f conftest.$ac_objext
11314if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11315 (eval $ac_compile) 2>conftest.er1
a848cd7e 11316 ac_status=$?
ac1cb8d3
VS
11317 grep -v '^ *+' conftest.er1 >conftest.err
11318 rm -f conftest.er1
11319 cat conftest.err >&5
a848cd7e
SC
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); } &&
da4486fb 11322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11324 (eval $ac_try) 2>&5
11325 ac_status=$?
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); }; } &&
11328 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11330 (eval $ac_try) 2>&5
11331 ac_status=$?
11332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333 (exit $ac_status); }; }; then
11334 break
11335else
11336 echo "$as_me: failed program was:" >&5
11337sed 's/^/| /' conftest.$ac_ext >&5
11338
11339fi
ac1cb8d3 11340rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11341done
11342rm -f conftest*
11343if test -n "$ac_declaration"; then
11344 echo '#ifdef __cplusplus' >>confdefs.h
11345 echo $ac_declaration >>confdefs.h
11346 echo '#endif' >>confdefs.h
11347fi
11348
11349else
11350 echo "$as_me: failed program was:" >&5
11351sed 's/^/| /' conftest.$ac_ext >&5
11352
11353fi
ac1cb8d3 11354rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11355ac_ext=c
11356ac_cpp='$CPP $CPPFLAGS'
11357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11359ac_compiler_gnu=$ac_cv_c_compiler_gnu
11360
11361
11362
11363ac_ext=c
11364ac_cpp='$CPP $CPPFLAGS'
11365ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11366ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11367ac_compiler_gnu=$ac_cv_c_compiler_gnu
11368echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11369echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11370# On Suns, sometimes $CPP names a directory.
11371if test -n "$CPP" && test -d "$CPP"; then
11372 CPP=
11373fi
11374if test -z "$CPP"; then
11375 if test "${ac_cv_prog_CPP+set}" = set; then
11376 echo $ECHO_N "(cached) $ECHO_C" >&6
11377else
11378 # Double quotes because CPP needs to be expanded
11379 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11380 do
11381 ac_preproc_ok=false
11382for ac_c_preproc_warn_flag in '' yes
11383do
11384 # Use a header file that comes with gcc, so configuring glibc
11385 # with a fresh cross-compiler works.
11386 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11387 # <limits.h> exists even on freestanding compilers.
11388 # On the NeXT, cc -E runs the code through the compiler's parser,
11389 # not just through cpp. "Syntax error" is here to catch this case.
11390 cat >conftest.$ac_ext <<_ACEOF
11391/* confdefs.h. */
11392_ACEOF
11393cat confdefs.h >>conftest.$ac_ext
11394cat >>conftest.$ac_ext <<_ACEOF
11395/* end confdefs.h. */
11396#ifdef __STDC__
11397# include <limits.h>
11398#else
11399# include <assert.h>
11400#endif
ac1cb8d3 11401 Syntax error
a848cd7e
SC
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 :
11422else
11423 echo "$as_me: failed program was:" >&5
11424sed 's/^/| /' conftest.$ac_ext >&5
11425
11426 # Broken: fails on valid input.
11427continue
11428fi
11429rm -f conftest.err conftest.$ac_ext
11430
11431 # OK, works on sane cases. Now check whether non-existent headers
11432 # can be detected and how.
11433 cat >conftest.$ac_ext <<_ACEOF
11434/* confdefs.h. */
11435_ACEOF
11436cat confdefs.h >>conftest.$ac_ext
11437cat >>conftest.$ac_ext <<_ACEOF
11438/* end confdefs.h. */
11439#include <ac_nonexistent.h>
11440_ACEOF
11441if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11442 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11443 ac_status=$?
11444 grep -v '^ *+' conftest.er1 >conftest.err
11445 rm -f conftest.er1
11446 cat conftest.err >&5
11447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448 (exit $ac_status); } >/dev/null; then
11449 if test -s conftest.err; then
11450 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11451 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11452 else
11453 ac_cpp_err=
11454 fi
11455else
11456 ac_cpp_err=yes
11457fi
11458if test -z "$ac_cpp_err"; then
11459 # Broken: success on invalid input.
11460continue
11461else
11462 echo "$as_me: failed program was:" >&5
11463sed 's/^/| /' conftest.$ac_ext >&5
11464
11465 # Passes both tests.
11466ac_preproc_ok=:
11467break
11468fi
11469rm -f conftest.err conftest.$ac_ext
11470
11471done
11472# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11473rm -f conftest.err conftest.$ac_ext
11474if $ac_preproc_ok; then
11475 break
11476fi
11477
11478 done
11479 ac_cv_prog_CPP=$CPP
11480
11481fi
11482 CPP=$ac_cv_prog_CPP
11483else
11484 ac_cv_prog_CPP=$CPP
11485fi
11486echo "$as_me:$LINENO: result: $CPP" >&5
11487echo "${ECHO_T}$CPP" >&6
11488ac_preproc_ok=false
11489for ac_c_preproc_warn_flag in '' yes
11490do
11491 # Use a header file that comes with gcc, so configuring glibc
11492 # with a fresh cross-compiler works.
11493 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11494 # <limits.h> exists even on freestanding compilers.
11495 # On the NeXT, cc -E runs the code through the compiler's parser,
11496 # not just through cpp. "Syntax error" is here to catch this case.
11497 cat >conftest.$ac_ext <<_ACEOF
11498/* confdefs.h. */
11499_ACEOF
11500cat confdefs.h >>conftest.$ac_ext
11501cat >>conftest.$ac_ext <<_ACEOF
11502/* end confdefs.h. */
11503#ifdef __STDC__
11504# include <limits.h>
11505#else
11506# include <assert.h>
11507#endif
ac1cb8d3 11508 Syntax error
a848cd7e
SC
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 :
11529else
11530 echo "$as_me: failed program was:" >&5
11531sed 's/^/| /' conftest.$ac_ext >&5
11532
11533 # Broken: fails on valid input.
11534continue
11535fi
11536rm -f conftest.err conftest.$ac_ext
11537
11538 # OK, works on sane cases. Now check whether non-existent headers
11539 # can be detected and how.
11540 cat >conftest.$ac_ext <<_ACEOF
11541/* confdefs.h. */
11542_ACEOF
11543cat confdefs.h >>conftest.$ac_ext
11544cat >>conftest.$ac_ext <<_ACEOF
11545/* end confdefs.h. */
11546#include <ac_nonexistent.h>
11547_ACEOF
11548if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11549 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11550 ac_status=$?
11551 grep -v '^ *+' conftest.er1 >conftest.err
11552 rm -f conftest.er1
11553 cat conftest.err >&5
11554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555 (exit $ac_status); } >/dev/null; then
11556 if test -s conftest.err; then
11557 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11558 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11559 else
11560 ac_cpp_err=
11561 fi
11562else
11563 ac_cpp_err=yes
11564fi
11565if test -z "$ac_cpp_err"; then
11566 # Broken: success on invalid input.
11567continue
11568else
11569 echo "$as_me: failed program was:" >&5
11570sed 's/^/| /' conftest.$ac_ext >&5
11571
11572 # Passes both tests.
11573ac_preproc_ok=:
11574break
11575fi
11576rm -f conftest.err conftest.$ac_ext
11577
11578done
11579# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11580rm -f conftest.err conftest.$ac_ext
11581if $ac_preproc_ok; then
11582 :
11583else
11584 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11585See \`config.log' for more details." >&5
11586echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11587See \`config.log' for more details." >&2;}
11588 { (exit 1); exit 1; }; }
11589fi
11590
11591ac_ext=c
11592ac_cpp='$CPP $CPPFLAGS'
11593ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11594ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11595ac_compiler_gnu=$ac_cv_c_compiler_gnu
11596
11597
11598echo "$as_me:$LINENO: checking for egrep" >&5
11599echo $ECHO_N "checking for egrep... $ECHO_C" >&6
11600if test "${ac_cv_prog_egrep+set}" = set; then
11601 echo $ECHO_N "(cached) $ECHO_C" >&6
11602else
11603 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
11604 then ac_cv_prog_egrep='grep -E'
11605 else ac_cv_prog_egrep='egrep'
11606 fi
11607fi
11608echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
11609echo "${ECHO_T}$ac_cv_prog_egrep" >&6
11610 EGREP=$ac_cv_prog_egrep
11611
11612
11613if test $ac_cv_c_compiler_gnu = yes; then
11614 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11615echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11616if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11617 echo $ECHO_N "(cached) $ECHO_C" >&6
11618else
11619 ac_pattern="Autoconf.*'x'"
11620 cat >conftest.$ac_ext <<_ACEOF
11621/* confdefs.h. */
11622_ACEOF
11623cat confdefs.h >>conftest.$ac_ext
11624cat >>conftest.$ac_ext <<_ACEOF
11625/* end confdefs.h. */
11626#include <sgtty.h>
11627Autoconf TIOCGETP
11628_ACEOF
11629if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11630 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11631 ac_cv_prog_gcc_traditional=yes
11632else
11633 ac_cv_prog_gcc_traditional=no
11634fi
11635rm -f conftest*
11636
11637
11638 if test $ac_cv_prog_gcc_traditional = no; then
11639 cat >conftest.$ac_ext <<_ACEOF
11640/* confdefs.h. */
11641_ACEOF
11642cat confdefs.h >>conftest.$ac_ext
11643cat >>conftest.$ac_ext <<_ACEOF
11644/* end confdefs.h. */
11645#include <termio.h>
11646Autoconf TCGETA
11647_ACEOF
11648if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11649 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11650 ac_cv_prog_gcc_traditional=yes
11651fi
11652rm -f conftest*
11653
11654 fi
11655fi
11656echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11657echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
11658 if test $ac_cv_prog_gcc_traditional = yes; then
11659 CC="$CC -traditional"
11660 fi
11661fi
11662
11663
11664
11665
11666ac_ext=cc
11667ac_cpp='$CXXCPP $CPPFLAGS'
11668ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11669ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11670ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11671
11672
11673CXXFLAGS=${CXXFLAGS:=}
11674ac_ext=cc
11675ac_cpp='$CXXCPP $CPPFLAGS'
11676ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11677ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11678ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11679if test -n "$ac_tool_prefix"; then
11680 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11681 do
11682 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11683set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11684echo "$as_me:$LINENO: checking for $ac_word" >&5
11685echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11686if test "${ac_cv_prog_CXX+set}" = set; then
11687 echo $ECHO_N "(cached) $ECHO_C" >&6
11688else
11689 if test -n "$CXX"; then
11690 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11691else
11692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11693for as_dir in $PATH
11694do
11695 IFS=$as_save_IFS
11696 test -z "$as_dir" && as_dir=.
11697 for ac_exec_ext in '' $ac_executable_extensions; do
11698 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11699 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11701 break 2
11702 fi
11703done
11704done
11705
11706fi
11707fi
11708CXX=$ac_cv_prog_CXX
11709if test -n "$CXX"; then
11710 echo "$as_me:$LINENO: result: $CXX" >&5
11711echo "${ECHO_T}$CXX" >&6
11712else
11713 echo "$as_me:$LINENO: result: no" >&5
11714echo "${ECHO_T}no" >&6
11715fi
11716
11717 test -n "$CXX" && break
11718 done
11719fi
11720if test -z "$CXX"; then
11721 ac_ct_CXX=$CXX
11722 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11723do
11724 # Extract the first word of "$ac_prog", so it can be a program name with args.
11725set dummy $ac_prog; ac_word=$2
11726echo "$as_me:$LINENO: checking for $ac_word" >&5
11727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11728if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11729 echo $ECHO_N "(cached) $ECHO_C" >&6
11730else
11731 if test -n "$ac_ct_CXX"; then
11732 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11733else
11734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11735for as_dir in $PATH
11736do
11737 IFS=$as_save_IFS
11738 test -z "$as_dir" && as_dir=.
11739 for ac_exec_ext in '' $ac_executable_extensions; do
11740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11741 ac_cv_prog_ac_ct_CXX="$ac_prog"
11742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11743 break 2
11744 fi
11745done
11746done
11747
11748fi
11749fi
11750ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11751if test -n "$ac_ct_CXX"; then
11752 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11753echo "${ECHO_T}$ac_ct_CXX" >&6
11754else
11755 echo "$as_me:$LINENO: result: no" >&5
11756echo "${ECHO_T}no" >&6
11757fi
11758
11759 test -n "$ac_ct_CXX" && break
11760done
11761test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11762
11763 CXX=$ac_ct_CXX
11764fi
11765
11766
11767# Provide some information about the compiler.
11768echo "$as_me:$LINENO:" \
11769 "checking for C++ compiler version" >&5
11770ac_compiler=`set X $ac_compile; echo $2`
11771{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11772 (eval $ac_compiler --version </dev/null >&5) 2>&5
11773 ac_status=$?
11774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775 (exit $ac_status); }
11776{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11777 (eval $ac_compiler -v </dev/null >&5) 2>&5
11778 ac_status=$?
11779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780 (exit $ac_status); }
11781{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11782 (eval $ac_compiler -V </dev/null >&5) 2>&5
11783 ac_status=$?
11784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785 (exit $ac_status); }
11786
11787echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11788echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11789if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11790 echo $ECHO_N "(cached) $ECHO_C" >&6
11791else
11792 cat >conftest.$ac_ext <<_ACEOF
11793/* confdefs.h. */
11794_ACEOF
11795cat confdefs.h >>conftest.$ac_ext
11796cat >>conftest.$ac_ext <<_ACEOF
11797/* end confdefs.h. */
11798
11799int
11800main ()
11801{
11802#ifndef __GNUC__
11803 choke me
11804#endif
11805
11806 ;
11807 return 0;
11808}
11809_ACEOF
11810rm -f conftest.$ac_objext
11811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11812 (eval $ac_compile) 2>conftest.er1
a848cd7e 11813 ac_status=$?
ac1cb8d3
VS
11814 grep -v '^ *+' conftest.er1 >conftest.err
11815 rm -f conftest.er1
11816 cat conftest.err >&5
a848cd7e
SC
11817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818 (exit $ac_status); } &&
da4486fb 11819 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11821 (eval $ac_try) 2>&5
11822 ac_status=$?
11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 (exit $ac_status); }; } &&
11825 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11827 (eval $ac_try) 2>&5
11828 ac_status=$?
11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); }; }; then
11831 ac_compiler_gnu=yes
11832else
11833 echo "$as_me: failed program was:" >&5
11834sed 's/^/| /' conftest.$ac_ext >&5
11835
11836ac_compiler_gnu=no
11837fi
ac1cb8d3 11838rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11839ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11840
11841fi
11842echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11843echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11844GXX=`test $ac_compiler_gnu = yes && echo yes`
11845ac_test_CXXFLAGS=${CXXFLAGS+set}
11846ac_save_CXXFLAGS=$CXXFLAGS
11847CXXFLAGS="-g"
11848echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11849echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11850if test "${ac_cv_prog_cxx_g+set}" = set; then
11851 echo $ECHO_N "(cached) $ECHO_C" >&6
11852else
11853 cat >conftest.$ac_ext <<_ACEOF
11854/* confdefs.h. */
11855_ACEOF
11856cat confdefs.h >>conftest.$ac_ext
11857cat >>conftest.$ac_ext <<_ACEOF
11858/* end confdefs.h. */
11859
11860int
11861main ()
11862{
11863
11864 ;
11865 return 0;
11866}
11867_ACEOF
11868rm -f conftest.$ac_objext
11869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11870 (eval $ac_compile) 2>conftest.er1
a848cd7e 11871 ac_status=$?
ac1cb8d3
VS
11872 grep -v '^ *+' conftest.er1 >conftest.err
11873 rm -f conftest.er1
11874 cat conftest.err >&5
a848cd7e
SC
11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876 (exit $ac_status); } &&
da4486fb 11877 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11879 (eval $ac_try) 2>&5
11880 ac_status=$?
11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882 (exit $ac_status); }; } &&
11883 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11885 (eval $ac_try) 2>&5
11886 ac_status=$?
11887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888 (exit $ac_status); }; }; then
11889 ac_cv_prog_cxx_g=yes
11890else
11891 echo "$as_me: failed program was:" >&5
11892sed 's/^/| /' conftest.$ac_ext >&5
11893
11894ac_cv_prog_cxx_g=no
11895fi
ac1cb8d3 11896rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11897fi
11898echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11899echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
11900if test "$ac_test_CXXFLAGS" = set; then
11901 CXXFLAGS=$ac_save_CXXFLAGS
11902elif test $ac_cv_prog_cxx_g = yes; then
11903 if test "$GXX" = yes; then
11904 CXXFLAGS="-g -O2"
11905 else
11906 CXXFLAGS="-g"
11907 fi
11908else
11909 if test "$GXX" = yes; then
11910 CXXFLAGS="-O2"
11911 else
11912 CXXFLAGS=
11913 fi
11914fi
11915for ac_declaration in \
ac1cb8d3 11916 '' \
a848cd7e
SC
11917 'extern "C" void std::exit (int) throw (); using std::exit;' \
11918 'extern "C" void std::exit (int); using std::exit;' \
11919 'extern "C" void exit (int) throw ();' \
11920 'extern "C" void exit (int);' \
11921 'void exit (int);'
11922do
11923 cat >conftest.$ac_ext <<_ACEOF
11924/* confdefs.h. */
11925_ACEOF
11926cat confdefs.h >>conftest.$ac_ext
11927cat >>conftest.$ac_ext <<_ACEOF
11928/* end confdefs.h. */
de59c161 11929$ac_declaration
ac1cb8d3 11930#include <stdlib.h>
a848cd7e
SC
11931int
11932main ()
11933{
11934exit (42);
11935 ;
11936 return 0;
11937}
11938_ACEOF
11939rm -f conftest.$ac_objext
11940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11941 (eval $ac_compile) 2>conftest.er1
a848cd7e 11942 ac_status=$?
ac1cb8d3
VS
11943 grep -v '^ *+' conftest.er1 >conftest.err
11944 rm -f conftest.er1
11945 cat conftest.err >&5
a848cd7e
SC
11946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947 (exit $ac_status); } &&
da4486fb 11948 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11950 (eval $ac_try) 2>&5
11951 ac_status=$?
11952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953 (exit $ac_status); }; } &&
11954 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11956 (eval $ac_try) 2>&5
11957 ac_status=$?
11958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959 (exit $ac_status); }; }; then
11960 :
11961else
11962 echo "$as_me: failed program was:" >&5
11963sed 's/^/| /' conftest.$ac_ext >&5
11964
11965continue
11966fi
ac1cb8d3 11967rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11968 cat >conftest.$ac_ext <<_ACEOF
11969/* confdefs.h. */
11970_ACEOF
11971cat confdefs.h >>conftest.$ac_ext
11972cat >>conftest.$ac_ext <<_ACEOF
11973/* end confdefs.h. */
11974$ac_declaration
11975int
11976main ()
11977{
11978exit (42);
11979 ;
11980 return 0;
11981}
11982_ACEOF
11983rm -f conftest.$ac_objext
11984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11985 (eval $ac_compile) 2>conftest.er1
a848cd7e 11986 ac_status=$?
ac1cb8d3
VS
11987 grep -v '^ *+' conftest.er1 >conftest.err
11988 rm -f conftest.er1
11989 cat conftest.err >&5
a848cd7e
SC
11990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991 (exit $ac_status); } &&
da4486fb 11992 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11994 (eval $ac_try) 2>&5
11995 ac_status=$?
11996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997 (exit $ac_status); }; } &&
11998 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12000 (eval $ac_try) 2>&5
12001 ac_status=$?
12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003 (exit $ac_status); }; }; then
12004 break
12005else
12006 echo "$as_me: failed program was:" >&5
12007sed 's/^/| /' conftest.$ac_ext >&5
12008
12009fi
ac1cb8d3 12010rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12011done
12012rm -f conftest*
12013if test -n "$ac_declaration"; then
12014 echo '#ifdef __cplusplus' >>confdefs.h
12015 echo $ac_declaration >>confdefs.h
12016 echo '#endif' >>confdefs.h
12017fi
12018
12019ac_ext=cc
12020ac_cpp='$CXXCPP $CPPFLAGS'
12021ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12022ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12023ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12024
12025
12026ac_ext=c
12027ac_cpp='$CPP $CPPFLAGS'
12028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12030ac_compiler_gnu=$ac_cv_c_compiler_gnu
12031
12032
a848cd7e
SC
12033if test -n "$ac_tool_prefix"; then
12034 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12035set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12036echo "$as_me:$LINENO: checking for $ac_word" >&5
12037echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12038if test "${ac_cv_prog_RANLIB+set}" = set; then
12039 echo $ECHO_N "(cached) $ECHO_C" >&6
12040else
12041 if test -n "$RANLIB"; then
12042 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12043else
12044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12045for as_dir in $PATH
12046do
12047 IFS=$as_save_IFS
12048 test -z "$as_dir" && as_dir=.
12049 for ac_exec_ext in '' $ac_executable_extensions; do
12050 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12051 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12053 break 2
12054 fi
12055done
12056done
12057
12058fi
12059fi
12060RANLIB=$ac_cv_prog_RANLIB
12061if test -n "$RANLIB"; then
12062 echo "$as_me:$LINENO: result: $RANLIB" >&5
12063echo "${ECHO_T}$RANLIB" >&6
12064else
12065 echo "$as_me:$LINENO: result: no" >&5
12066echo "${ECHO_T}no" >&6
12067fi
12068
12069fi
12070if test -z "$ac_cv_prog_RANLIB"; then
12071 ac_ct_RANLIB=$RANLIB
12072 # Extract the first word of "ranlib", so it can be a program name with args.
12073set dummy ranlib; ac_word=$2
12074echo "$as_me:$LINENO: checking for $ac_word" >&5
12075echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12076if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12077 echo $ECHO_N "(cached) $ECHO_C" >&6
12078else
12079 if test -n "$ac_ct_RANLIB"; then
12080 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12081else
12082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12083for as_dir in $PATH
12084do
12085 IFS=$as_save_IFS
12086 test -z "$as_dir" && as_dir=.
12087 for ac_exec_ext in '' $ac_executable_extensions; do
12088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12089 ac_cv_prog_ac_ct_RANLIB="ranlib"
12090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12091 break 2
12092 fi
12093done
12094done
12095
12096 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
12097fi
12098fi
12099ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12100if test -n "$ac_ct_RANLIB"; then
12101 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12102echo "${ECHO_T}$ac_ct_RANLIB" >&6
12103else
12104 echo "$as_me:$LINENO: result: no" >&5
12105echo "${ECHO_T}no" >&6
12106fi
12107
12108 RANLIB=$ac_ct_RANLIB
12109else
12110 RANLIB="$ac_cv_prog_RANLIB"
12111fi
12112
12113
12114# Extract the first word of "ar", so it can be a program name with args.
12115set dummy ar; ac_word=$2
12116echo "$as_me:$LINENO: checking for $ac_word" >&5
12117echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12118if test "${ac_cv_prog_AR+set}" = set; then
12119 echo $ECHO_N "(cached) $ECHO_C" >&6
12120else
12121 if test -n "$AR"; then
12122 ac_cv_prog_AR="$AR" # Let the user override the test.
12123else
12124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12125for as_dir in $PATH
12126do
12127 IFS=$as_save_IFS
12128 test -z "$as_dir" && as_dir=.
12129 for ac_exec_ext in '' $ac_executable_extensions; do
12130 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12131 ac_cv_prog_AR="ar"
12132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12133 break 2
12134 fi
12135done
12136done
12137
12138fi
12139fi
12140AR=$ac_cv_prog_AR
12141if test -n "$AR"; then
12142 echo "$as_me:$LINENO: result: $AR" >&5
12143echo "${ECHO_T}$AR" >&6
12144else
12145 echo "$as_me:$LINENO: result: no" >&5
12146echo "${ECHO_T}no" >&6
12147fi
12148
12149if test "x$AR" = "x" ; then
77ffb593
JS
12150 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
12151echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
12152 { (exit 1); exit 1; }; }
12153fi
12154
12155# Find a good install program. We prefer a C program (faster),
12156# so one script is as good as another. But avoid the broken or
12157# incompatible versions:
12158# SysV /etc/install, /usr/sbin/install
12159# SunOS /usr/etc/install
12160# IRIX /sbin/install
12161# AIX /bin/install
12162# AmigaOS /C/install, which installs bootblocks on floppy discs
12163# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12164# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12165# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 12166# OS/2's system install, which has a completely different semantic
a848cd7e
SC
12167# ./install, which can be erroneously created by make from ./install.sh.
12168echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12169echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12170if test -z "$INSTALL"; then
12171if test "${ac_cv_path_install+set}" = set; then
12172 echo $ECHO_N "(cached) $ECHO_C" >&6
12173else
12174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12175for as_dir in $PATH
12176do
12177 IFS=$as_save_IFS
12178 test -z "$as_dir" && as_dir=.
12179 # Account for people who put trailing slashes in PATH elements.
12180case $as_dir/ in
12181 ./ | .// | /cC/* | \
12182 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 12183 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
12184 /usr/ucb/* ) ;;
12185 *)
12186 # OSF1 and SCO ODT 3.0 have their own names for install.
12187 # Don't use installbsd from OSF since it installs stuff as root
12188 # by default.
12189 for ac_prog in ginstall scoinst install; do
12190 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
12191 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12192 if test $ac_prog = install &&
12193 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12194 # AIX install. It has an incompatible calling convention.
12195 :
12196 elif test $ac_prog = install &&
12197 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12198 # program-specific install script used by HP pwplus--don't use.
12199 :
12200 else
12201 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12202 break 3
12203 fi
12204 fi
a848cd7e
SC
12205 done
12206 done
12207 ;;
12208esac
12209done
12210
12211
12212fi
12213 if test "${ac_cv_path_install+set}" = set; then
12214 INSTALL=$ac_cv_path_install
12215 else
12216 # As a last resort, use the slow shell script. We don't cache a
12217 # path for INSTALL within a source directory, because that will
12218 # break other packages using the cache if that directory is
12219 # removed, or if the path is relative.
12220 INSTALL=$ac_install_sh
12221 fi
12222fi
12223echo "$as_me:$LINENO: result: $INSTALL" >&5
12224echo "${ECHO_T}$INSTALL" >&6
12225
12226# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12227# It thinks the first close brace ends the variable substitution.
12228test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12229
12230test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12231
12232test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12233
12234
12235case ${INSTALL} in
12236 /* ) # Absolute
12237 ;;
12238 ?:* ) # Drive letter, considered as absolute.
12239 ;;
12240 *)
12241 INSTALL=`pwd`/${INSTALL} ;;
12242esac
12243
a848cd7e
SC
12244
12245case "${host}" in
12246
12247 powerpc-*-darwin* )
12248 INSTALL_PROGRAM="cp -fp"
12249 INSTALL_DATA="cp -fp"
12250 ;;
12251 *)
12252 ;;
12253esac
12254
12255# Extract the first word of "strip", so it can be a program name with args.
12256set dummy strip; ac_word=$2
12257echo "$as_me:$LINENO: checking for $ac_word" >&5
12258echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12259if test "${ac_cv_prog_STRIP+set}" = set; then
12260 echo $ECHO_N "(cached) $ECHO_C" >&6
12261else
12262 if test -n "$STRIP"; then
12263 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12264else
12265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12266for as_dir in $PATH
12267do
12268 IFS=$as_save_IFS
12269 test -z "$as_dir" && as_dir=.
12270 for ac_exec_ext in '' $ac_executable_extensions; do
12271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12272 ac_cv_prog_STRIP="strip"
12273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12274 break 2
12275 fi
12276done
12277done
12278
12279 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
12280fi
12281fi
12282STRIP=$ac_cv_prog_STRIP
12283if test -n "$STRIP"; then
12284 echo "$as_me:$LINENO: result: $STRIP" >&5
12285echo "${ECHO_T}$STRIP" >&6
12286else
12287 echo "$as_me:$LINENO: result: no" >&5
12288echo "${ECHO_T}no" >&6
12289fi
12290
12291
12292echo "$as_me:$LINENO: checking if make is GNU make" >&5
12293echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
12294if test "${wx_cv_prog_makeisgnu+set}" = set; then
12295 echo $ECHO_N "(cached) $ECHO_C" >&6
12296else
12297
12298 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
12299 egrep -s GNU > /dev/null); then
12300 wx_cv_prog_makeisgnu="yes"
12301 else
12302 wx_cv_prog_makeisgnu="no"
12303 fi
12304
12305fi
12306echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
12307echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
12308
12309if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
12310 IF_GNU_MAKE=""
12311else
12312 IF_GNU_MAKE="#"
12313fi
12314
12315
12316
12317if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
12318echo "$as_me:$LINENO: checking if make supports VPATH" >&5
12319echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
12320if test "${wx_cv_prog_makevpath+set}" = set; then
12321 echo $ECHO_N "(cached) $ECHO_C" >&6
12322else
12323
12324cat - << EOF > confMake
12325check : file
12326 cp \$? \$@
12327 cp \$? final_file
12328EOF
12329
12330if test ! -d sub ; then
12331 mkdir sub
12332fi
12333echo dummy > sub/file
12334${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
12335RESULT=$?
12336rm -f sub/file check final_file confMake
12337rmdir sub
12338if test "$RESULT" = 0; then
12339 wx_cv_prog_makevpath="yes"
12340else
12341 wx_cv_prog_makevpath="no"
12342fi
12343
12344fi
12345echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
12346echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
12347
12348if test "x$wx_cv_prog_makevpath" != "xyes"; then
12349{ { echo "$as_me:$LINENO: error:
12350You need a make-utility that is able to use the variable
12351VPATH correctly.
12352If your version of make does not support VPATH correctly,
12353please install GNU-make (possibly as gmake), and start
12354configure with the following command:
12355export MAKE=gmake; ./configure for sh-type shells
12356setenv MAKE gmake; ./configure for csh-type shells
12357Also please do remember to use gmake in this case every time
12358you are trying to compile.
12359" >&5
12360echo "$as_me: error:
12361You need a make-utility that is able to use the variable
12362VPATH correctly.
12363If your version of make does not support VPATH correctly,
12364please install GNU-make (possibly as gmake), and start
12365configure with the following command:
12366export MAKE=gmake; ./configure for sh-type shells
12367setenv MAKE gmake; ./configure for csh-type shells
12368Also please do remember to use gmake in this case every time
12369you are trying to compile.
12370" >&2;}
12371 { (exit 1); exit 1; }; }
12372fi fi
12373echo "$as_me:$LINENO: checking whether ln -s works" >&5
12374echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
12375LN_S=$as_ln_s
12376if test "$LN_S" = "ln -s"; then
12377 echo "$as_me:$LINENO: result: yes" >&5
12378echo "${ECHO_T}yes" >&6
12379else
12380 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
12381echo "${ECHO_T}no, using $LN_S" >&6
12382fi
12383
12384
12385
12386case "${host}" in
12387 *-pc-os2_emx | *-pc-os2-emx )
12388 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
12389 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
12390echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
12391if test "${ac_cv_lib_cExt_drand48+set}" = set; then
12392 echo $ECHO_N "(cached) $ECHO_C" >&6
12393else
12394 ac_check_lib_save_LIBS=$LIBS
12395LIBS="-lcExt $LIBS"
12396cat >conftest.$ac_ext <<_ACEOF
12397/* confdefs.h. */
12398_ACEOF
12399cat confdefs.h >>conftest.$ac_ext
12400cat >>conftest.$ac_ext <<_ACEOF
12401/* end confdefs.h. */
12402
12403/* Override any gcc2 internal prototype to avoid an error. */
12404#ifdef __cplusplus
12405extern "C"
12406#endif
12407/* We use char because int might match the return type of a gcc2
12408 builtin and then its argument prototype would still apply. */
12409char drand48 ();
12410int
12411main ()
12412{
12413drand48 ();
12414 ;
12415 return 0;
12416}
12417_ACEOF
12418rm -f conftest.$ac_objext conftest$ac_exeext
12419if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12420 (eval $ac_link) 2>conftest.er1
a848cd7e 12421 ac_status=$?
ac1cb8d3
VS
12422 grep -v '^ *+' conftest.er1 >conftest.err
12423 rm -f conftest.er1
12424 cat conftest.err >&5
a848cd7e
SC
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); } &&
da4486fb 12427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12429 (eval $ac_try) 2>&5
12430 ac_status=$?
12431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432 (exit $ac_status); }; } &&
12433 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12435 (eval $ac_try) 2>&5
12436 ac_status=$?
12437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438 (exit $ac_status); }; }; then
12439 ac_cv_lib_cExt_drand48=yes
12440else
12441 echo "$as_me: failed program was:" >&5
12442sed 's/^/| /' conftest.$ac_ext >&5
12443
12444ac_cv_lib_cExt_drand48=no
12445fi
ac1cb8d3
VS
12446rm -f conftest.err conftest.$ac_objext \
12447 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12448LIBS=$ac_check_lib_save_LIBS
12449fi
12450echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
12451echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
12452if test $ac_cv_lib_cExt_drand48 = yes; then
12453 LIBS="$LIBS -lcExt"
12454fi
12455
12456 else
12457 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
12458 fi
12459 echo "$as_me:$LINENO: checking for gcc version" >&5
12460echo $ECHO_N "checking for gcc version... $ECHO_C" >&6
12461if test "${wx_cv_gccversion+set}" = set; then
12462 echo $ECHO_N "(cached) $ECHO_C" >&6
12463else
12464
12465 cat >conftest.$ac_ext <<_ACEOF
12466/* confdefs.h. */
12467_ACEOF
12468cat confdefs.h >>conftest.$ac_ext
12469cat >>conftest.$ac_ext <<_ACEOF
12470/* end confdefs.h. */
12471
12472int
12473main ()
12474{
12475
12476 #if (__GNUC__ < 3)
12477 #error old gcc
12478 #endif
12479
12480 ;
12481 return 0;
12482}
12483_ACEOF
12484rm -f conftest.$ac_objext
12485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12486 (eval $ac_compile) 2>conftest.er1
a848cd7e 12487 ac_status=$?
ac1cb8d3
VS
12488 grep -v '^ *+' conftest.er1 >conftest.err
12489 rm -f conftest.er1
12490 cat conftest.err >&5
a848cd7e
SC
12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 (exit $ac_status); } &&
da4486fb 12493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12495 (eval $ac_try) 2>&5
12496 ac_status=$?
12497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498 (exit $ac_status); }; } &&
12499 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12501 (eval $ac_try) 2>&5
12502 ac_status=$?
12503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504 (exit $ac_status); }; }; then
12505
12506 cat >conftest.$ac_ext <<_ACEOF
12507/* confdefs.h. */
12508_ACEOF
12509cat confdefs.h >>conftest.$ac_ext
12510cat >>conftest.$ac_ext <<_ACEOF
12511/* end confdefs.h. */
12512
12513int
12514main ()
12515{
12516
12517 #if (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
12518 #error intermediate gcc
12519 #endif
12520
12521 ;
12522 return 0;
12523}
12524_ACEOF
12525rm -f conftest.$ac_objext
12526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12527 (eval $ac_compile) 2>conftest.er1
a848cd7e 12528 ac_status=$?
ac1cb8d3
VS
12529 grep -v '^ *+' conftest.er1 >conftest.err
12530 rm -f conftest.er1
12531 cat conftest.err >&5
a848cd7e
SC
12532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533 (exit $ac_status); } &&
da4486fb 12534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12536 (eval $ac_try) 2>&5
12537 ac_status=$?
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); }; } &&
12540 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12542 (eval $ac_try) 2>&5
12543 ac_status=$?
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); }; }; then
12546
12547 wx_cv_gccversion=Innotek
12548
12549else
12550 echo "$as_me: failed program was:" >&5
12551sed 's/^/| /' conftest.$ac_ext >&5
12552
12553
12554 wx_cv_gccversion=3
12555
12556
12557fi
ac1cb8d3 12558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12559
12560else
12561 echo "$as_me: failed program was:" >&5
12562sed 's/^/| /' conftest.$ac_ext >&5
12563
12564
12565 wx_cv_gccversion=2
12566
12567
12568fi
ac1cb8d3 12569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12570
12571fi
12572echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
12573echo "${ECHO_T}$wx_cv_gccversion" >&6
12574 if test "$wx_cv_gccversion" = "2"; then
12575 LIBS="$LIBS -lstdcpp"
12576 LDFLAGS="$LDFLAGS -Zsysv-signals"
12577 else
12578 if test "$wx_cv_gccversion" = "3"; then
12579 LIBS="$LIBS -lstdcxx"
12580 LDFLAGS="$LDFLAGS -Zsysv-signals"
12581 else
12582 LIBS="$LIBS -lstdc++"
12583 fi
12584 fi
12585 if test "$wxUSE_OMF" = "yes"; then
de59c161 12586 LDFLAGS="$LDFLAGS -Zomf -Zlinker /PMTYPE:PM -Zlinker /EXEPACK"
a848cd7e
SC
12587 fi
12588 ;;
12589 *)
12590
12591
12592
12593 ac_ext=cc
12594ac_cpp='$CXXCPP $CPPFLAGS'
12595ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12596ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12597ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12598
12599
12600
12601echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
12602echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
12603if test "${ac_cv_string_strcasecmp+set}" = set; then
12604 echo $ECHO_N "(cached) $ECHO_C" >&6
12605else
12606
12607 cat >conftest.$ac_ext <<_ACEOF
12608/* confdefs.h. */
12609_ACEOF
12610cat confdefs.h >>conftest.$ac_ext
12611cat >>conftest.$ac_ext <<_ACEOF
12612/* end confdefs.h. */
12613
12614 #include <string.h>
12615
12616int
12617main ()
12618{
12619
12620 strcasecmp("foo", "bar");
12621
12622 ;
12623 return 0;
12624}
12625_ACEOF
12626rm -f conftest.$ac_objext conftest$ac_exeext
12627if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12628 (eval $ac_link) 2>conftest.er1
a848cd7e 12629 ac_status=$?
ac1cb8d3
VS
12630 grep -v '^ *+' conftest.er1 >conftest.err
12631 rm -f conftest.er1
12632 cat conftest.err >&5
a848cd7e
SC
12633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634 (exit $ac_status); } &&
da4486fb 12635 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12637 (eval $ac_try) 2>&5
12638 ac_status=$?
12639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640 (exit $ac_status); }; } &&
12641 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12643 (eval $ac_try) 2>&5
12644 ac_status=$?
12645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646 (exit $ac_status); }; }; then
12647 ac_cv_string_strcasecmp=yes
12648else
12649 echo "$as_me: failed program was:" >&5
12650sed 's/^/| /' conftest.$ac_ext >&5
12651
12652ac_cv_string_strcasecmp=no
12653
12654fi
ac1cb8d3
VS
12655rm -f conftest.err conftest.$ac_objext \
12656 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12657
12658fi
12659echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
12660echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
12661
12662 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12663 cat >>confdefs.h <<\_ACEOF
12664#define HAVE_STRCASECMP_IN_STRING_H 1
12665_ACEOF
12666
12667 else
12668 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
12669echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
12670if test "${ac_cv_strings_strcasecmp+set}" = set; then
12671 echo $ECHO_N "(cached) $ECHO_C" >&6
12672else
12673
12674 cat >conftest.$ac_ext <<_ACEOF
12675/* confdefs.h. */
12676_ACEOF
12677cat confdefs.h >>conftest.$ac_ext
12678cat >>conftest.$ac_ext <<_ACEOF
12679/* end confdefs.h. */
12680
12681 #include <strings.h>
12682
12683int
12684main ()
12685{
12686
12687 strcasecmp("foo", "bar");
12688
12689 ;
12690 return 0;
12691}
12692_ACEOF
12693rm -f conftest.$ac_objext conftest$ac_exeext
12694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12695 (eval $ac_link) 2>conftest.er1
a848cd7e 12696 ac_status=$?
ac1cb8d3
VS
12697 grep -v '^ *+' conftest.er1 >conftest.err
12698 rm -f conftest.er1
12699 cat conftest.err >&5
a848cd7e
SC
12700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701 (exit $ac_status); } &&
da4486fb 12702 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12704 (eval $ac_try) 2>&5
12705 ac_status=$?
12706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707 (exit $ac_status); }; } &&
12708 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12710 (eval $ac_try) 2>&5
12711 ac_status=$?
12712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713 (exit $ac_status); }; }; then
12714 ac_cv_strings_strcasecmp=yes
12715else
12716 echo "$as_me: failed program was:" >&5
12717sed 's/^/| /' conftest.$ac_ext >&5
12718
12719ac_cv_strings_strcasecmp=no
12720
12721fi
ac1cb8d3
VS
12722rm -f conftest.err conftest.$ac_objext \
12723 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12724
12725fi
12726echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
12727echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
12728
0c3c69fc 12729 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
12730 cat >>confdefs.h <<\_ACEOF
12731#define HAVE_STRCASECMP_IN_STRINGS_H 1
12732_ACEOF
12733
12734 else
12735 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
12736echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
12737 { (exit 1); exit 1; }; }
12738 fi
12739 fi
12740
12741 ac_ext=c
12742ac_cpp='$CPP $CPPFLAGS'
12743ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12744ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12745ac_compiler_gnu=$ac_cv_c_compiler_gnu
12746
12747 ;;
12748esac
12749
12750
12751echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12752echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12753if test "${ac_cv_header_stdc+set}" = set; then
12754 echo $ECHO_N "(cached) $ECHO_C" >&6
12755else
12756 cat >conftest.$ac_ext <<_ACEOF
12757/* confdefs.h. */
12758_ACEOF
12759cat confdefs.h >>conftest.$ac_ext
12760cat >>conftest.$ac_ext <<_ACEOF
12761/* end confdefs.h. */
12762#include <stdlib.h>
12763#include <stdarg.h>
12764#include <string.h>
12765#include <float.h>
12766
12767int
12768main ()
12769{
12770
12771 ;
12772 return 0;
12773}
12774_ACEOF
12775rm -f conftest.$ac_objext
12776if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12777 (eval $ac_compile) 2>conftest.er1
a848cd7e 12778 ac_status=$?
ac1cb8d3
VS
12779 grep -v '^ *+' conftest.er1 >conftest.err
12780 rm -f conftest.er1
12781 cat conftest.err >&5
a848cd7e
SC
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); } &&
da4486fb 12784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12786 (eval $ac_try) 2>&5
12787 ac_status=$?
12788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789 (exit $ac_status); }; } &&
12790 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12792 (eval $ac_try) 2>&5
12793 ac_status=$?
12794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); }; }; then
12796 ac_cv_header_stdc=yes
12797else
12798 echo "$as_me: failed program was:" >&5
12799sed 's/^/| /' conftest.$ac_ext >&5
12800
12801ac_cv_header_stdc=no
12802fi
ac1cb8d3 12803rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12804
12805if test $ac_cv_header_stdc = yes; then
12806 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12807 cat >conftest.$ac_ext <<_ACEOF
12808/* confdefs.h. */
12809_ACEOF
12810cat confdefs.h >>conftest.$ac_ext
12811cat >>conftest.$ac_ext <<_ACEOF
12812/* end confdefs.h. */
12813#include <string.h>
12814
12815_ACEOF
12816if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12817 $EGREP "memchr" >/dev/null 2>&1; then
12818 :
12819else
12820 ac_cv_header_stdc=no
12821fi
12822rm -f conftest*
12823
12824fi
12825
12826if test $ac_cv_header_stdc = yes; then
12827 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12828 cat >conftest.$ac_ext <<_ACEOF
12829/* confdefs.h. */
12830_ACEOF
12831cat confdefs.h >>conftest.$ac_ext
12832cat >>conftest.$ac_ext <<_ACEOF
12833/* end confdefs.h. */
12834#include <stdlib.h>
12835
12836_ACEOF
12837if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12838 $EGREP "free" >/dev/null 2>&1; then
12839 :
12840else
12841 ac_cv_header_stdc=no
12842fi
12843rm -f conftest*
12844
12845fi
12846
12847if test $ac_cv_header_stdc = yes; then
12848 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12849 if test "$cross_compiling" = yes; then
12850 :
12851else
12852 cat >conftest.$ac_ext <<_ACEOF
12853/* confdefs.h. */
12854_ACEOF
12855cat confdefs.h >>conftest.$ac_ext
12856cat >>conftest.$ac_ext <<_ACEOF
12857/* end confdefs.h. */
12858#include <ctype.h>
12859#if ((' ' & 0x0FF) == 0x020)
12860# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12861# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12862#else
12863# define ISLOWER(c) \
ac1cb8d3
VS
12864 (('a' <= (c) && (c) <= 'i') \
12865 || ('j' <= (c) && (c) <= 'r') \
12866 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
12867# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12868#endif
12869
12870#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12871int
12872main ()
12873{
12874 int i;
12875 for (i = 0; i < 256; i++)
12876 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 12877 || toupper (i) != TOUPPER (i))
a848cd7e
SC
12878 exit(2);
12879 exit (0);
12880}
12881_ACEOF
12882rm -f conftest$ac_exeext
12883if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12884 (eval $ac_link) 2>&5
12885 ac_status=$?
12886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12889 (eval $ac_try) 2>&5
12890 ac_status=$?
12891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892 (exit $ac_status); }; }; then
12893 :
12894else
12895 echo "$as_me: program exited with status $ac_status" >&5
12896echo "$as_me: failed program was:" >&5
12897sed 's/^/| /' conftest.$ac_ext >&5
12898
12899( exit $ac_status )
12900ac_cv_header_stdc=no
12901fi
ac1cb8d3 12902rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12903fi
12904fi
12905fi
12906echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12907echo "${ECHO_T}$ac_cv_header_stdc" >&6
12908if test $ac_cv_header_stdc = yes; then
12909
12910cat >>confdefs.h <<\_ACEOF
12911#define STDC_HEADERS 1
12912_ACEOF
12913
12914fi
12915
12916# On IRIX 5.3, sys/types and inttypes.h are conflicting.
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 12927 inttypes.h stdint.h unistd.h
a848cd7e
SC
12928do
12929as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12930echo "$as_me:$LINENO: checking for $ac_header" >&5
12931echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12932if eval "test \"\${$as_ac_Header+set}\" = set"; then
12933 echo $ECHO_N "(cached) $ECHO_C" >&6
12934else
12935 cat >conftest.$ac_ext <<_ACEOF
12936/* confdefs.h. */
12937_ACEOF
12938cat confdefs.h >>conftest.$ac_ext
12939cat >>conftest.$ac_ext <<_ACEOF
12940/* end confdefs.h. */
12941$ac_includes_default
12942
12943#include <$ac_header>
12944_ACEOF
12945rm -f conftest.$ac_objext
12946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12947 (eval $ac_compile) 2>conftest.er1
a848cd7e 12948 ac_status=$?
ac1cb8d3
VS
12949 grep -v '^ *+' conftest.er1 >conftest.err
12950 rm -f conftest.er1
12951 cat conftest.err >&5
a848cd7e
SC
12952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12953 (exit $ac_status); } &&
da4486fb 12954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12956 (eval $ac_try) 2>&5
12957 ac_status=$?
12958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12959 (exit $ac_status); }; } &&
12960 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12962 (eval $ac_try) 2>&5
12963 ac_status=$?
12964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965 (exit $ac_status); }; }; then
12966 eval "$as_ac_Header=yes"
12967else
12968 echo "$as_me: failed program was:" >&5
12969sed 's/^/| /' conftest.$ac_ext >&5
12970
12971eval "$as_ac_Header=no"
12972fi
ac1cb8d3 12973rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12974fi
12975echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12976echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12977if test `eval echo '${'$as_ac_Header'}'` = yes; then
12978 cat >>confdefs.h <<_ACEOF
12979#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12980_ACEOF
12981
12982fi
12983
12984done
12985
12986
12987
12988for ac_header in stdlib.h
12989do
12990as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12991if eval "test \"\${$as_ac_Header+set}\" = set"; then
12992 echo "$as_me:$LINENO: checking for $ac_header" >&5
12993echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12994if eval "test \"\${$as_ac_Header+set}\" = set"; then
12995 echo $ECHO_N "(cached) $ECHO_C" >&6
12996fi
12997echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12998echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12999else
13000 # Is the header compilable?
13001echo "$as_me:$LINENO: checking $ac_header usability" >&5
13002echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13003cat >conftest.$ac_ext <<_ACEOF
13004/* confdefs.h. */
13005_ACEOF
13006cat confdefs.h >>conftest.$ac_ext
13007cat >>conftest.$ac_ext <<_ACEOF
13008/* end confdefs.h. */
13009$ac_includes_default
13010#include <$ac_header>
13011_ACEOF
13012rm -f conftest.$ac_objext
13013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13014 (eval $ac_compile) 2>conftest.er1
a848cd7e 13015 ac_status=$?
ac1cb8d3
VS
13016 grep -v '^ *+' conftest.er1 >conftest.err
13017 rm -f conftest.er1
13018 cat conftest.err >&5
a848cd7e
SC
13019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020 (exit $ac_status); } &&
da4486fb 13021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13023 (eval $ac_try) 2>&5
13024 ac_status=$?
13025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13026 (exit $ac_status); }; } &&
13027 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13029 (eval $ac_try) 2>&5
13030 ac_status=$?
13031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13032 (exit $ac_status); }; }; then
13033 ac_header_compiler=yes
13034else
13035 echo "$as_me: failed program was:" >&5
13036sed 's/^/| /' conftest.$ac_ext >&5
13037
13038ac_header_compiler=no
13039fi
ac1cb8d3 13040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13041echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13042echo "${ECHO_T}$ac_header_compiler" >&6
13043
13044# Is the header present?
13045echo "$as_me:$LINENO: checking $ac_header presence" >&5
13046echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13047cat >conftest.$ac_ext <<_ACEOF
13048/* confdefs.h. */
13049_ACEOF
13050cat confdefs.h >>conftest.$ac_ext
13051cat >>conftest.$ac_ext <<_ACEOF
13052/* end confdefs.h. */
13053#include <$ac_header>
13054_ACEOF
13055if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13056 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13057 ac_status=$?
13058 grep -v '^ *+' conftest.er1 >conftest.err
13059 rm -f conftest.er1
13060 cat conftest.err >&5
13061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062 (exit $ac_status); } >/dev/null; then
13063 if test -s conftest.err; then
13064 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13065 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13066 else
13067 ac_cpp_err=
13068 fi
13069else
13070 ac_cpp_err=yes
13071fi
13072if test -z "$ac_cpp_err"; then
13073 ac_header_preproc=yes
13074else
13075 echo "$as_me: failed program was:" >&5
13076sed 's/^/| /' conftest.$ac_ext >&5
13077
13078 ac_header_preproc=no
13079fi
13080rm -f conftest.err conftest.$ac_ext
13081echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13082echo "${ECHO_T}$ac_header_preproc" >&6
13083
13084# So? What about this header?
ac1cb8d3
VS
13085case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13086 yes:no: )
a848cd7e
SC
13087 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13088echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13090echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13091 ac_header_preproc=yes
a848cd7e 13092 ;;
ac1cb8d3 13093 no:yes:* )
a848cd7e
SC
13094 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13095echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13096 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13097echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13098 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13099echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13100 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13101echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13102 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13103echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13104 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13105echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13106 (
13107 cat <<\_ASBOX
ac1cb8d3
VS
13108## ----------------------------------------- ##
13109## Report this to wx-dev@lists.wxwidgets.org ##
13110## ----------------------------------------- ##
a848cd7e
SC
13111_ASBOX
13112 ) |
13113 sed "s/^/$as_me: WARNING: /" >&2
13114 ;;
13115esac
13116echo "$as_me:$LINENO: checking for $ac_header" >&5
13117echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13118if eval "test \"\${$as_ac_Header+set}\" = set"; then
13119 echo $ECHO_N "(cached) $ECHO_C" >&6
13120else
ac1cb8d3 13121 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13122fi
13123echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13124echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13125
13126fi
13127if test `eval echo '${'$as_ac_Header'}'` = yes; then
13128 cat >>confdefs.h <<_ACEOF
13129#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13130_ACEOF
13131
13132fi
13133
13134done
13135
13136
13137for ac_header in malloc.h
13138do
13139as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13140if eval "test \"\${$as_ac_Header+set}\" = set"; then
13141 echo "$as_me:$LINENO: checking for $ac_header" >&5
13142echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13143if eval "test \"\${$as_ac_Header+set}\" = set"; then
13144 echo $ECHO_N "(cached) $ECHO_C" >&6
13145fi
13146echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13147echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13148else
13149 # Is the header compilable?
13150echo "$as_me:$LINENO: checking $ac_header usability" >&5
13151echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13152cat >conftest.$ac_ext <<_ACEOF
13153/* confdefs.h. */
13154_ACEOF
13155cat confdefs.h >>conftest.$ac_ext
13156cat >>conftest.$ac_ext <<_ACEOF
13157/* end confdefs.h. */
13158$ac_includes_default
13159#include <$ac_header>
13160_ACEOF
13161rm -f conftest.$ac_objext
13162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13163 (eval $ac_compile) 2>conftest.er1
a848cd7e 13164 ac_status=$?
ac1cb8d3
VS
13165 grep -v '^ *+' conftest.er1 >conftest.err
13166 rm -f conftest.er1
13167 cat conftest.err >&5
a848cd7e
SC
13168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169 (exit $ac_status); } &&
da4486fb 13170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13172 (eval $ac_try) 2>&5
13173 ac_status=$?
13174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175 (exit $ac_status); }; } &&
13176 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13178 (eval $ac_try) 2>&5
13179 ac_status=$?
13180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13181 (exit $ac_status); }; }; then
13182 ac_header_compiler=yes
13183else
13184 echo "$as_me: failed program was:" >&5
13185sed 's/^/| /' conftest.$ac_ext >&5
13186
13187ac_header_compiler=no
13188fi
ac1cb8d3 13189rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13190echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13191echo "${ECHO_T}$ac_header_compiler" >&6
13192
13193# Is the header present?
13194echo "$as_me:$LINENO: checking $ac_header presence" >&5
13195echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13196cat >conftest.$ac_ext <<_ACEOF
13197/* confdefs.h. */
13198_ACEOF
13199cat confdefs.h >>conftest.$ac_ext
13200cat >>conftest.$ac_ext <<_ACEOF
13201/* end confdefs.h. */
13202#include <$ac_header>
13203_ACEOF
13204if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13205 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13206 ac_status=$?
13207 grep -v '^ *+' conftest.er1 >conftest.err
13208 rm -f conftest.er1
13209 cat conftest.err >&5
13210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211 (exit $ac_status); } >/dev/null; then
13212 if test -s conftest.err; then
13213 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13214 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13215 else
13216 ac_cpp_err=
13217 fi
13218else
13219 ac_cpp_err=yes
13220fi
13221if test -z "$ac_cpp_err"; then
13222 ac_header_preproc=yes
13223else
13224 echo "$as_me: failed program was:" >&5
13225sed 's/^/| /' conftest.$ac_ext >&5
13226
13227 ac_header_preproc=no
13228fi
13229rm -f conftest.err conftest.$ac_ext
13230echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13231echo "${ECHO_T}$ac_header_preproc" >&6
13232
13233# So? What about this header?
ac1cb8d3
VS
13234case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13235 yes:no: )
a848cd7e
SC
13236 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13237echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13239echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13240 ac_header_preproc=yes
a848cd7e 13241 ;;
ac1cb8d3 13242 no:yes:* )
a848cd7e
SC
13243 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13244echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13245 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13246echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13247 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13248echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13249 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13250echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13252echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13253 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13254echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13255 (
13256 cat <<\_ASBOX
ac1cb8d3
VS
13257## ----------------------------------------- ##
13258## Report this to wx-dev@lists.wxwidgets.org ##
13259## ----------------------------------------- ##
a848cd7e
SC
13260_ASBOX
13261 ) |
13262 sed "s/^/$as_me: WARNING: /" >&2
13263 ;;
13264esac
13265echo "$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
13269else
ac1cb8d3 13270 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13271fi
13272echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13273echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13274
13275fi
13276if test `eval echo '${'$as_ac_Header'}'` = yes; then
13277 cat >>confdefs.h <<_ACEOF
13278#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13279_ACEOF
13280
13281fi
13282
13283done
13284
13285
13286for ac_header in unistd.h
13287do
13288as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13289if eval "test \"\${$as_ac_Header+set}\" = set"; then
13290 echo "$as_me:$LINENO: checking for $ac_header" >&5
13291echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13292if eval "test \"\${$as_ac_Header+set}\" = set"; then
13293 echo $ECHO_N "(cached) $ECHO_C" >&6
13294fi
13295echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13296echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13297else
13298 # Is the header compilable?
13299echo "$as_me:$LINENO: checking $ac_header usability" >&5
13300echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13301cat >conftest.$ac_ext <<_ACEOF
13302/* confdefs.h. */
13303_ACEOF
13304cat confdefs.h >>conftest.$ac_ext
13305cat >>conftest.$ac_ext <<_ACEOF
13306/* end confdefs.h. */
13307$ac_includes_default
13308#include <$ac_header>
13309_ACEOF
13310rm -f conftest.$ac_objext
13311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13312 (eval $ac_compile) 2>conftest.er1
a848cd7e 13313 ac_status=$?
ac1cb8d3
VS
13314 grep -v '^ *+' conftest.er1 >conftest.err
13315 rm -f conftest.er1
13316 cat conftest.err >&5
a848cd7e
SC
13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); } &&
da4486fb 13319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13321 (eval $ac_try) 2>&5
13322 ac_status=$?
13323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324 (exit $ac_status); }; } &&
13325 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13327 (eval $ac_try) 2>&5
13328 ac_status=$?
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 (exit $ac_status); }; }; then
13331 ac_header_compiler=yes
13332else
13333 echo "$as_me: failed program was:" >&5
13334sed 's/^/| /' conftest.$ac_ext >&5
13335
13336ac_header_compiler=no
13337fi
ac1cb8d3 13338rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13339echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13340echo "${ECHO_T}$ac_header_compiler" >&6
13341
13342# Is the header present?
13343echo "$as_me:$LINENO: checking $ac_header presence" >&5
13344echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13345cat >conftest.$ac_ext <<_ACEOF
13346/* confdefs.h. */
13347_ACEOF
13348cat confdefs.h >>conftest.$ac_ext
13349cat >>conftest.$ac_ext <<_ACEOF
13350/* end confdefs.h. */
13351#include <$ac_header>
13352_ACEOF
13353if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13354 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13355 ac_status=$?
13356 grep -v '^ *+' conftest.er1 >conftest.err
13357 rm -f conftest.er1
13358 cat conftest.err >&5
13359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360 (exit $ac_status); } >/dev/null; then
13361 if test -s conftest.err; then
13362 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13363 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13364 else
13365 ac_cpp_err=
13366 fi
13367else
13368 ac_cpp_err=yes
13369fi
13370if test -z "$ac_cpp_err"; then
13371 ac_header_preproc=yes
13372else
13373 echo "$as_me: failed program was:" >&5
13374sed 's/^/| /' conftest.$ac_ext >&5
13375
13376 ac_header_preproc=no
13377fi
13378rm -f conftest.err conftest.$ac_ext
13379echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13380echo "${ECHO_T}$ac_header_preproc" >&6
13381
13382# So? What about this header?
ac1cb8d3
VS
13383case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13384 yes:no: )
a848cd7e
SC
13385 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13386echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13388echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13389 ac_header_preproc=yes
a848cd7e 13390 ;;
ac1cb8d3 13391 no:yes:* )
a848cd7e
SC
13392 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13393echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13394 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13395echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13396 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13397echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13398 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13399echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13401echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13402 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13403echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13404 (
13405 cat <<\_ASBOX
ac1cb8d3
VS
13406## ----------------------------------------- ##
13407## Report this to wx-dev@lists.wxwidgets.org ##
13408## ----------------------------------------- ##
a848cd7e
SC
13409_ASBOX
13410 ) |
13411 sed "s/^/$as_me: WARNING: /" >&2
13412 ;;
13413esac
13414echo "$as_me:$LINENO: checking for $ac_header" >&5
13415echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13416if eval "test \"\${$as_ac_Header+set}\" = set"; then
13417 echo $ECHO_N "(cached) $ECHO_C" >&6
13418else
ac1cb8d3 13419 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13420fi
13421echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13422echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13423
13424fi
13425if test `eval echo '${'$as_ac_Header'}'` = yes; then
13426 cat >>confdefs.h <<_ACEOF
13427#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13428_ACEOF
13429
13430fi
13431
13432done
13433
13434
13435for ac_header in wchar.h
13436do
13437as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13438if eval "test \"\${$as_ac_Header+set}\" = set"; then
13439 echo "$as_me:$LINENO: checking for $ac_header" >&5
13440echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13441if eval "test \"\${$as_ac_Header+set}\" = set"; then
13442 echo $ECHO_N "(cached) $ECHO_C" >&6
13443fi
13444echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13445echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13446else
13447 # Is the header compilable?
13448echo "$as_me:$LINENO: checking $ac_header usability" >&5
13449echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13450cat >conftest.$ac_ext <<_ACEOF
13451/* confdefs.h. */
13452_ACEOF
13453cat confdefs.h >>conftest.$ac_ext
13454cat >>conftest.$ac_ext <<_ACEOF
13455/* end confdefs.h. */
13456$ac_includes_default
13457#include <$ac_header>
13458_ACEOF
13459rm -f conftest.$ac_objext
13460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13461 (eval $ac_compile) 2>conftest.er1
a848cd7e 13462 ac_status=$?
ac1cb8d3
VS
13463 grep -v '^ *+' conftest.er1 >conftest.err
13464 rm -f conftest.er1
13465 cat conftest.err >&5
a848cd7e
SC
13466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467 (exit $ac_status); } &&
da4486fb 13468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13470 (eval $ac_try) 2>&5
13471 ac_status=$?
13472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473 (exit $ac_status); }; } &&
13474 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13476 (eval $ac_try) 2>&5
13477 ac_status=$?
13478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479 (exit $ac_status); }; }; then
13480 ac_header_compiler=yes
13481else
13482 echo "$as_me: failed program was:" >&5
13483sed 's/^/| /' conftest.$ac_ext >&5
13484
13485ac_header_compiler=no
13486fi
ac1cb8d3 13487rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13488echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13489echo "${ECHO_T}$ac_header_compiler" >&6
13490
13491# Is the header present?
13492echo "$as_me:$LINENO: checking $ac_header presence" >&5
13493echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13494cat >conftest.$ac_ext <<_ACEOF
13495/* confdefs.h. */
13496_ACEOF
13497cat confdefs.h >>conftest.$ac_ext
13498cat >>conftest.$ac_ext <<_ACEOF
13499/* end confdefs.h. */
13500#include <$ac_header>
13501_ACEOF
13502if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13503 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13504 ac_status=$?
13505 grep -v '^ *+' conftest.er1 >conftest.err
13506 rm -f conftest.er1
13507 cat conftest.err >&5
13508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509 (exit $ac_status); } >/dev/null; then
13510 if test -s conftest.err; then
13511 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13512 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13513 else
13514 ac_cpp_err=
13515 fi
13516else
13517 ac_cpp_err=yes
13518fi
13519if test -z "$ac_cpp_err"; then
13520 ac_header_preproc=yes
13521else
13522 echo "$as_me: failed program was:" >&5
13523sed 's/^/| /' conftest.$ac_ext >&5
13524
13525 ac_header_preproc=no
13526fi
13527rm -f conftest.err conftest.$ac_ext
13528echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13529echo "${ECHO_T}$ac_header_preproc" >&6
13530
13531# So? What about this header?
ac1cb8d3
VS
13532case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13533 yes:no: )
a848cd7e
SC
13534 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13535echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13537echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13538 ac_header_preproc=yes
a848cd7e 13539 ;;
ac1cb8d3 13540 no:yes:* )
a848cd7e
SC
13541 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13542echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13543 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13544echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13545 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13546echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13547 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13548echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13550echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13551 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13552echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13553 (
13554 cat <<\_ASBOX
ac1cb8d3
VS
13555## ----------------------------------------- ##
13556## Report this to wx-dev@lists.wxwidgets.org ##
13557## ----------------------------------------- ##
a848cd7e
SC
13558_ASBOX
13559 ) |
13560 sed "s/^/$as_me: WARNING: /" >&2
13561 ;;
13562esac
13563echo "$as_me:$LINENO: checking for $ac_header" >&5
13564echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13565if eval "test \"\${$as_ac_Header+set}\" = set"; then
13566 echo $ECHO_N "(cached) $ECHO_C" >&6
13567else
ac1cb8d3 13568 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13569fi
13570echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13571echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13572
13573fi
13574if test `eval echo '${'$as_ac_Header'}'` = yes; then
13575 cat >>confdefs.h <<_ACEOF
13576#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13577_ACEOF
13578
13579fi
13580
13581done
13582
13583
13584if test "$ac_cv_header_wchar_h" != "yes"; then
13585
13586for ac_header in wcstr.h
13587do
13588as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13589if eval "test \"\${$as_ac_Header+set}\" = set"; then
13590 echo "$as_me:$LINENO: checking for $ac_header" >&5
13591echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13592if eval "test \"\${$as_ac_Header+set}\" = set"; then
13593 echo $ECHO_N "(cached) $ECHO_C" >&6
13594fi
13595echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13596echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13597else
13598 # Is the header compilable?
13599echo "$as_me:$LINENO: checking $ac_header usability" >&5
13600echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13601cat >conftest.$ac_ext <<_ACEOF
13602/* confdefs.h. */
13603_ACEOF
13604cat confdefs.h >>conftest.$ac_ext
13605cat >>conftest.$ac_ext <<_ACEOF
13606/* end confdefs.h. */
13607$ac_includes_default
13608#include <$ac_header>
13609_ACEOF
13610rm -f conftest.$ac_objext
13611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13612 (eval $ac_compile) 2>conftest.er1
a848cd7e 13613 ac_status=$?
ac1cb8d3
VS
13614 grep -v '^ *+' conftest.er1 >conftest.err
13615 rm -f conftest.er1
13616 cat conftest.err >&5
a848cd7e
SC
13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); } &&
da4486fb 13619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13621 (eval $ac_try) 2>&5
13622 ac_status=$?
13623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624 (exit $ac_status); }; } &&
13625 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13627 (eval $ac_try) 2>&5
13628 ac_status=$?
13629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13630 (exit $ac_status); }; }; then
13631 ac_header_compiler=yes
13632else
13633 echo "$as_me: failed program was:" >&5
13634sed 's/^/| /' conftest.$ac_ext >&5
13635
13636ac_header_compiler=no
13637fi
ac1cb8d3 13638rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13639echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13640echo "${ECHO_T}$ac_header_compiler" >&6
13641
13642# Is the header present?
13643echo "$as_me:$LINENO: checking $ac_header presence" >&5
13644echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13645cat >conftest.$ac_ext <<_ACEOF
13646/* confdefs.h. */
13647_ACEOF
13648cat confdefs.h >>conftest.$ac_ext
13649cat >>conftest.$ac_ext <<_ACEOF
13650/* end confdefs.h. */
13651#include <$ac_header>
13652_ACEOF
13653if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13654 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13655 ac_status=$?
13656 grep -v '^ *+' conftest.er1 >conftest.err
13657 rm -f conftest.er1
13658 cat conftest.err >&5
13659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660 (exit $ac_status); } >/dev/null; then
13661 if test -s conftest.err; then
13662 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13663 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13664 else
13665 ac_cpp_err=
13666 fi
13667else
13668 ac_cpp_err=yes
13669fi
13670if test -z "$ac_cpp_err"; then
13671 ac_header_preproc=yes
13672else
13673 echo "$as_me: failed program was:" >&5
13674sed 's/^/| /' conftest.$ac_ext >&5
13675
13676 ac_header_preproc=no
13677fi
13678rm -f conftest.err conftest.$ac_ext
13679echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13680echo "${ECHO_T}$ac_header_preproc" >&6
13681
13682# So? What about this header?
ac1cb8d3
VS
13683case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13684 yes:no: )
a848cd7e
SC
13685 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13686echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13687 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13688echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13689 ac_header_preproc=yes
a848cd7e 13690 ;;
ac1cb8d3 13691 no:yes:* )
a848cd7e
SC
13692 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13693echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13694 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13695echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13696 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13697echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13698 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13699echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13701echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13702 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13703echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13704 (
13705 cat <<\_ASBOX
ac1cb8d3
VS
13706## ----------------------------------------- ##
13707## Report this to wx-dev@lists.wxwidgets.org ##
13708## ----------------------------------------- ##
a848cd7e
SC
13709_ASBOX
13710 ) |
13711 sed "s/^/$as_me: WARNING: /" >&2
13712 ;;
13713esac
13714echo "$as_me:$LINENO: checking for $ac_header" >&5
13715echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13716if eval "test \"\${$as_ac_Header+set}\" = set"; then
13717 echo $ECHO_N "(cached) $ECHO_C" >&6
13718else
ac1cb8d3 13719 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13720fi
13721echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13722echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13723
13724fi
13725if test `eval echo '${'$as_ac_Header'}'` = yes; then
13726 cat >>confdefs.h <<_ACEOF
13727#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13728_ACEOF
13729
13730fi
13731
13732done
13733
13734fi
13735
13736
13737for ac_header in fnmatch.h
13738do
13739as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13740if eval "test \"\${$as_ac_Header+set}\" = set"; then
13741 echo "$as_me:$LINENO: checking for $ac_header" >&5
13742echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13743if eval "test \"\${$as_ac_Header+set}\" = set"; then
13744 echo $ECHO_N "(cached) $ECHO_C" >&6
13745fi
13746echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13747echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13748else
13749 # Is the header compilable?
13750echo "$as_me:$LINENO: checking $ac_header usability" >&5
13751echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13752cat >conftest.$ac_ext <<_ACEOF
13753/* confdefs.h. */
13754_ACEOF
13755cat confdefs.h >>conftest.$ac_ext
13756cat >>conftest.$ac_ext <<_ACEOF
13757/* end confdefs.h. */
13758$ac_includes_default
13759#include <$ac_header>
13760_ACEOF
13761rm -f conftest.$ac_objext
13762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13763 (eval $ac_compile) 2>conftest.er1
a848cd7e 13764 ac_status=$?
ac1cb8d3
VS
13765 grep -v '^ *+' conftest.er1 >conftest.err
13766 rm -f conftest.er1
13767 cat conftest.err >&5
a848cd7e
SC
13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769 (exit $ac_status); } &&
da4486fb 13770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13772 (eval $ac_try) 2>&5
13773 ac_status=$?
13774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13775 (exit $ac_status); }; } &&
13776 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13778 (eval $ac_try) 2>&5
13779 ac_status=$?
13780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781 (exit $ac_status); }; }; then
13782 ac_header_compiler=yes
13783else
13784 echo "$as_me: failed program was:" >&5
13785sed 's/^/| /' conftest.$ac_ext >&5
13786
13787ac_header_compiler=no
13788fi
ac1cb8d3 13789rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13790echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13791echo "${ECHO_T}$ac_header_compiler" >&6
13792
13793# Is the header present?
13794echo "$as_me:$LINENO: checking $ac_header presence" >&5
13795echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13796cat >conftest.$ac_ext <<_ACEOF
13797/* confdefs.h. */
13798_ACEOF
13799cat confdefs.h >>conftest.$ac_ext
13800cat >>conftest.$ac_ext <<_ACEOF
13801/* end confdefs.h. */
13802#include <$ac_header>
13803_ACEOF
13804if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13805 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13806 ac_status=$?
13807 grep -v '^ *+' conftest.er1 >conftest.err
13808 rm -f conftest.er1
13809 cat conftest.err >&5
13810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13811 (exit $ac_status); } >/dev/null; then
13812 if test -s conftest.err; then
13813 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13814 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13815 else
13816 ac_cpp_err=
13817 fi
13818else
13819 ac_cpp_err=yes
13820fi
13821if test -z "$ac_cpp_err"; then
13822 ac_header_preproc=yes
13823else
13824 echo "$as_me: failed program was:" >&5
13825sed 's/^/| /' conftest.$ac_ext >&5
13826
13827 ac_header_preproc=no
13828fi
13829rm -f conftest.err conftest.$ac_ext
13830echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13831echo "${ECHO_T}$ac_header_preproc" >&6
13832
13833# So? What about this header?
ac1cb8d3
VS
13834case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13835 yes:no: )
a848cd7e
SC
13836 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13837echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13838 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13839echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13840 ac_header_preproc=yes
a848cd7e 13841 ;;
ac1cb8d3 13842 no:yes:* )
a848cd7e
SC
13843 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13844echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13845 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13846echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13847 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13848echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13849 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13850echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13851 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13852echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13853 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13854echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13855 (
13856 cat <<\_ASBOX
ac1cb8d3
VS
13857## ----------------------------------------- ##
13858## Report this to wx-dev@lists.wxwidgets.org ##
13859## ----------------------------------------- ##
a848cd7e
SC
13860_ASBOX
13861 ) |
13862 sed "s/^/$as_me: WARNING: /" >&2
13863 ;;
13864esac
13865echo "$as_me:$LINENO: checking for $ac_header" >&5
13866echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13867if eval "test \"\${$as_ac_Header+set}\" = set"; then
13868 echo $ECHO_N "(cached) $ECHO_C" >&6
13869else
ac1cb8d3 13870 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13871fi
13872echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13873echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13874
13875fi
13876if test `eval echo '${'$as_ac_Header'}'` = yes; then
13877 cat >>confdefs.h <<_ACEOF
13878#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13879_ACEOF
13880
13881fi
13882
13883done
13884
13885
13886if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
13887
13888for ac_func in fnmatch
13889do
13890as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13891echo "$as_me:$LINENO: checking for $ac_func" >&5
13892echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13893if eval "test \"\${$as_ac_var+set}\" = set"; then
13894 echo $ECHO_N "(cached) $ECHO_C" >&6
13895else
13896 cat >conftest.$ac_ext <<_ACEOF
13897/* confdefs.h. */
13898_ACEOF
13899cat confdefs.h >>conftest.$ac_ext
13900cat >>conftest.$ac_ext <<_ACEOF
13901/* end confdefs.h. */
ac1cb8d3
VS
13902/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13904#define $ac_func innocuous_$ac_func
13905
a848cd7e
SC
13906/* System header to define __stub macros and hopefully few prototypes,
13907 which can conflict with char $ac_func (); below.
13908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13909 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 13910
a848cd7e
SC
13911#ifdef __STDC__
13912# include <limits.h>
13913#else
13914# include <assert.h>
13915#endif
ac1cb8d3
VS
13916
13917#undef $ac_func
13918
a848cd7e
SC
13919/* Override any gcc2 internal prototype to avoid an error. */
13920#ifdef __cplusplus
13921extern "C"
13922{
13923#endif
13924/* We use char because int might match the return type of a gcc2
13925 builtin and then its argument prototype would still apply. */
13926char $ac_func ();
13927/* The GNU C library defines this for functions which it implements
13928 to always fail with ENOSYS. Some functions are actually named
13929 something starting with __ and the normal name is an alias. */
13930#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13931choke me
13932#else
13933char (*f) () = $ac_func;
13934#endif
13935#ifdef __cplusplus
13936}
13937#endif
13938
13939int
13940main ()
13941{
13942return f != $ac_func;
13943 ;
13944 return 0;
13945}
13946_ACEOF
13947rm -f conftest.$ac_objext conftest$ac_exeext
13948if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13949 (eval $ac_link) 2>conftest.er1
a848cd7e 13950 ac_status=$?
ac1cb8d3
VS
13951 grep -v '^ *+' conftest.er1 >conftest.err
13952 rm -f conftest.er1
13953 cat conftest.err >&5
a848cd7e
SC
13954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955 (exit $ac_status); } &&
da4486fb 13956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13958 (eval $ac_try) 2>&5
13959 ac_status=$?
13960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961 (exit $ac_status); }; } &&
13962 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13964 (eval $ac_try) 2>&5
13965 ac_status=$?
13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 (exit $ac_status); }; }; then
13968 eval "$as_ac_var=yes"
13969else
13970 echo "$as_me: failed program was:" >&5
13971sed 's/^/| /' conftest.$ac_ext >&5
13972
13973eval "$as_ac_var=no"
13974fi
ac1cb8d3
VS
13975rm -f conftest.err conftest.$ac_objext \
13976 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13977fi
13978echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13979echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13980if test `eval echo '${'$as_ac_var'}'` = yes; then
13981 cat >>confdefs.h <<_ACEOF
13982#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13983_ACEOF
13984
13985fi
13986done
13987
13988fi
13989
13990
13991for ac_header in langinfo.h
13992do
13993as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13994if eval "test \"\${$as_ac_Header+set}\" = set"; then
13995 echo "$as_me:$LINENO: checking for $ac_header" >&5
13996echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13997if eval "test \"\${$as_ac_Header+set}\" = set"; then
13998 echo $ECHO_N "(cached) $ECHO_C" >&6
13999fi
14000echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14001echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14002else
14003 # Is the header compilable?
14004echo "$as_me:$LINENO: checking $ac_header usability" >&5
14005echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14006cat >conftest.$ac_ext <<_ACEOF
14007/* confdefs.h. */
14008_ACEOF
14009cat confdefs.h >>conftest.$ac_ext
14010cat >>conftest.$ac_ext <<_ACEOF
14011/* end confdefs.h. */
14012$ac_includes_default
14013#include <$ac_header>
14014_ACEOF
14015rm -f conftest.$ac_objext
14016if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14017 (eval $ac_compile) 2>conftest.er1
a848cd7e 14018 ac_status=$?
ac1cb8d3
VS
14019 grep -v '^ *+' conftest.er1 >conftest.err
14020 rm -f conftest.er1
14021 cat conftest.err >&5
a848cd7e
SC
14022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14023 (exit $ac_status); } &&
da4486fb 14024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14026 (eval $ac_try) 2>&5
14027 ac_status=$?
14028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029 (exit $ac_status); }; } &&
14030 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14032 (eval $ac_try) 2>&5
14033 ac_status=$?
14034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035 (exit $ac_status); }; }; then
14036 ac_header_compiler=yes
14037else
14038 echo "$as_me: failed program was:" >&5
14039sed 's/^/| /' conftest.$ac_ext >&5
14040
14041ac_header_compiler=no
14042fi
ac1cb8d3 14043rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14044echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14045echo "${ECHO_T}$ac_header_compiler" >&6
14046
14047# Is the header present?
14048echo "$as_me:$LINENO: checking $ac_header presence" >&5
14049echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14050cat >conftest.$ac_ext <<_ACEOF
14051/* confdefs.h. */
14052_ACEOF
14053cat confdefs.h >>conftest.$ac_ext
14054cat >>conftest.$ac_ext <<_ACEOF
14055/* end confdefs.h. */
14056#include <$ac_header>
14057_ACEOF
14058if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14059 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14060 ac_status=$?
14061 grep -v '^ *+' conftest.er1 >conftest.err
14062 rm -f conftest.er1
14063 cat conftest.err >&5
14064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065 (exit $ac_status); } >/dev/null; then
14066 if test -s conftest.err; then
14067 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14068 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14069 else
14070 ac_cpp_err=
14071 fi
14072else
14073 ac_cpp_err=yes
14074fi
14075if test -z "$ac_cpp_err"; then
14076 ac_header_preproc=yes
14077else
14078 echo "$as_me: failed program was:" >&5
14079sed 's/^/| /' conftest.$ac_ext >&5
14080
14081 ac_header_preproc=no
14082fi
14083rm -f conftest.err conftest.$ac_ext
14084echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14085echo "${ECHO_T}$ac_header_preproc" >&6
14086
14087# So? What about this header?
ac1cb8d3
VS
14088case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14089 yes:no: )
a848cd7e
SC
14090 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14091echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14092 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14093echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14094 ac_header_preproc=yes
a848cd7e 14095 ;;
ac1cb8d3 14096 no:yes:* )
a848cd7e
SC
14097 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14098echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14099 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14100echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14101 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14102echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14103 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14104echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14105 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14106echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14107 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14108echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14109 (
14110 cat <<\_ASBOX
ac1cb8d3
VS
14111## ----------------------------------------- ##
14112## Report this to wx-dev@lists.wxwidgets.org ##
14113## ----------------------------------------- ##
a848cd7e
SC
14114_ASBOX
14115 ) |
14116 sed "s/^/$as_me: WARNING: /" >&2
14117 ;;
14118esac
14119echo "$as_me:$LINENO: checking for $ac_header" >&5
14120echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14121if eval "test \"\${$as_ac_Header+set}\" = set"; then
14122 echo $ECHO_N "(cached) $ECHO_C" >&6
14123else
ac1cb8d3 14124 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14125fi
14126echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14127echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14128
14129fi
14130if test `eval echo '${'$as_ac_Header'}'` = yes; then
14131 cat >>confdefs.h <<_ACEOF
14132#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14133_ACEOF
14134
14135fi
14136
14137done
14138
14139
14140case "${host}" in
14141 *-pc-os2_emx | *-pc-os2-emx )
14142 if test $ac_cv_header_langinfo_h = "yes"; then
14143 LIBS="$LIBS -lintl"
14144 fi
14145 ;;
14146esac
14147
14148if test "$wxUSE_GUI" = "yes"; then
14149 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
14150
14151for ac_header in X11/Xlib.h
14152do
14153as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14154if eval "test \"\${$as_ac_Header+set}\" = set"; then
14155 echo "$as_me:$LINENO: checking for $ac_header" >&5
14156echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14157if eval "test \"\${$as_ac_Header+set}\" = set"; then
14158 echo $ECHO_N "(cached) $ECHO_C" >&6
14159fi
14160echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14161echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14162else
14163 # Is the header compilable?
14164echo "$as_me:$LINENO: checking $ac_header usability" >&5
14165echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14166cat >conftest.$ac_ext <<_ACEOF
14167/* confdefs.h. */
14168_ACEOF
14169cat confdefs.h >>conftest.$ac_ext
14170cat >>conftest.$ac_ext <<_ACEOF
14171/* end confdefs.h. */
14172$ac_includes_default
14173#include <$ac_header>
14174_ACEOF
14175rm -f conftest.$ac_objext
14176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14177 (eval $ac_compile) 2>conftest.er1
a848cd7e 14178 ac_status=$?
ac1cb8d3
VS
14179 grep -v '^ *+' conftest.er1 >conftest.err
14180 rm -f conftest.er1
14181 cat conftest.err >&5
a848cd7e
SC
14182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183 (exit $ac_status); } &&
da4486fb 14184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14186 (eval $ac_try) 2>&5
14187 ac_status=$?
14188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); }; } &&
14190 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14192 (eval $ac_try) 2>&5
14193 ac_status=$?
14194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195 (exit $ac_status); }; }; then
14196 ac_header_compiler=yes
14197else
14198 echo "$as_me: failed program was:" >&5
14199sed 's/^/| /' conftest.$ac_ext >&5
14200
14201ac_header_compiler=no
14202fi
ac1cb8d3 14203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14204echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14205echo "${ECHO_T}$ac_header_compiler" >&6
14206
14207# Is the header present?
14208echo "$as_me:$LINENO: checking $ac_header presence" >&5
14209echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14210cat >conftest.$ac_ext <<_ACEOF
14211/* confdefs.h. */
14212_ACEOF
14213cat confdefs.h >>conftest.$ac_ext
14214cat >>conftest.$ac_ext <<_ACEOF
14215/* end confdefs.h. */
14216#include <$ac_header>
14217_ACEOF
14218if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14219 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14220 ac_status=$?
14221 grep -v '^ *+' conftest.er1 >conftest.err
14222 rm -f conftest.er1
14223 cat conftest.err >&5
14224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225 (exit $ac_status); } >/dev/null; then
14226 if test -s conftest.err; then
14227 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14228 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14229 else
14230 ac_cpp_err=
14231 fi
14232else
14233 ac_cpp_err=yes
14234fi
14235if test -z "$ac_cpp_err"; then
14236 ac_header_preproc=yes
14237else
14238 echo "$as_me: failed program was:" >&5
14239sed 's/^/| /' conftest.$ac_ext >&5
14240
14241 ac_header_preproc=no
14242fi
14243rm -f conftest.err conftest.$ac_ext
14244echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14245echo "${ECHO_T}$ac_header_preproc" >&6
14246
14247# So? What about this header?
ac1cb8d3
VS
14248case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14249 yes:no: )
a848cd7e
SC
14250 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14251echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14252 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14253echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14254 ac_header_preproc=yes
a848cd7e 14255 ;;
ac1cb8d3 14256 no:yes:* )
a848cd7e
SC
14257 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14258echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14259 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14260echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14261 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14262echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14263 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14264echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14266echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14267 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14268echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14269 (
14270 cat <<\_ASBOX
ac1cb8d3
VS
14271## ----------------------------------------- ##
14272## Report this to wx-dev@lists.wxwidgets.org ##
14273## ----------------------------------------- ##
a848cd7e
SC
14274_ASBOX
14275 ) |
14276 sed "s/^/$as_me: WARNING: /" >&2
14277 ;;
14278esac
14279echo "$as_me:$LINENO: checking for $ac_header" >&5
14280echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14281if eval "test \"\${$as_ac_Header+set}\" = set"; then
14282 echo $ECHO_N "(cached) $ECHO_C" >&6
14283else
ac1cb8d3 14284 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14285fi
14286echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14287echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14288
14289fi
14290if test `eval echo '${'$as_ac_Header'}'` = yes; then
14291 cat >>confdefs.h <<_ACEOF
14292#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14293_ACEOF
14294
14295fi
14296
14297done
14298
14299
14300for ac_header in X11/XKBlib.h
14301do
14302as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14303echo "$as_me:$LINENO: checking for $ac_header" >&5
14304echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14305if eval "test \"\${$as_ac_Header+set}\" = set"; then
14306 echo $ECHO_N "(cached) $ECHO_C" >&6
14307else
14308 cat >conftest.$ac_ext <<_ACEOF
14309/* confdefs.h. */
14310_ACEOF
14311cat confdefs.h >>conftest.$ac_ext
14312cat >>conftest.$ac_ext <<_ACEOF
14313/* end confdefs.h. */
14314
14315 #if HAVE_X11_XLIB_H
14316 #include <X11/Xlib.h>
14317 #endif
14318
14319
14320#include <$ac_header>
14321_ACEOF
14322rm -f conftest.$ac_objext
14323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14324 (eval $ac_compile) 2>conftest.er1
a848cd7e 14325 ac_status=$?
ac1cb8d3
VS
14326 grep -v '^ *+' conftest.er1 >conftest.err
14327 rm -f conftest.er1
14328 cat conftest.err >&5
a848cd7e
SC
14329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330 (exit $ac_status); } &&
da4486fb 14331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14333 (eval $ac_try) 2>&5
14334 ac_status=$?
14335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336 (exit $ac_status); }; } &&
14337 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14339 (eval $ac_try) 2>&5
14340 ac_status=$?
14341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342 (exit $ac_status); }; }; then
14343 eval "$as_ac_Header=yes"
14344else
14345 echo "$as_me: failed program was:" >&5
14346sed 's/^/| /' conftest.$ac_ext >&5
14347
14348eval "$as_ac_Header=no"
14349fi
ac1cb8d3 14350rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14351fi
14352echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14353echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14354if test `eval echo '${'$as_ac_Header'}'` = yes; then
14355 cat >>confdefs.h <<_ACEOF
14356#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14357_ACEOF
14358
14359fi
14360
14361done
14362
14363 fi
14364fi
14365
14366
14367echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14368echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14369if test "${ac_cv_c_const+set}" = set; then
14370 echo $ECHO_N "(cached) $ECHO_C" >&6
14371else
14372 cat >conftest.$ac_ext <<_ACEOF
14373/* confdefs.h. */
14374_ACEOF
14375cat confdefs.h >>conftest.$ac_ext
14376cat >>conftest.$ac_ext <<_ACEOF
14377/* end confdefs.h. */
14378
14379int
14380main ()
14381{
14382/* FIXME: Include the comments suggested by Paul. */
14383#ifndef __cplusplus
14384 /* Ultrix mips cc rejects this. */
14385 typedef int charset[2];
14386 const charset x;
14387 /* SunOS 4.1.1 cc rejects this. */
14388 char const *const *ccp;
14389 char **p;
14390 /* NEC SVR4.0.2 mips cc rejects this. */
14391 struct point {int x, y;};
14392 static struct point const zero = {0,0};
14393 /* AIX XL C 1.02.0.0 rejects this.
14394 It does not let you subtract one const X* pointer from another in
14395 an arm of an if-expression whose if-part is not a constant
14396 expression */
14397 const char *g = "string";
14398 ccp = &g + (g ? g-g : 0);
14399 /* HPUX 7.0 cc rejects these. */
14400 ++ccp;
14401 p = (char**) ccp;
14402 ccp = (char const *const *) p;
14403 { /* SCO 3.2v4 cc rejects this. */
14404 char *t;
14405 char const *s = 0 ? (char *) 0 : (char const *) 0;
14406
14407 *t++ = 0;
14408 }
14409 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14410 int x[] = {25, 17};
14411 const int *foo = &x[0];
14412 ++foo;
14413 }
14414 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14415 typedef const int *iptr;
14416 iptr p = 0;
14417 ++p;
14418 }
14419 { /* AIX XL C 1.02.0.0 rejects this saying
14420 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14421 struct s { int j; const int *ap[3]; };
14422 struct s *b; b->j = 5;
14423 }
14424 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14425 const int foo = 10;
14426 }
14427#endif
14428
14429 ;
14430 return 0;
14431}
14432_ACEOF
14433rm -f conftest.$ac_objext
14434if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14435 (eval $ac_compile) 2>conftest.er1
a848cd7e 14436 ac_status=$?
ac1cb8d3
VS
14437 grep -v '^ *+' conftest.er1 >conftest.err
14438 rm -f conftest.er1
14439 cat conftest.err >&5
a848cd7e
SC
14440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14441 (exit $ac_status); } &&
da4486fb 14442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14444 (eval $ac_try) 2>&5
14445 ac_status=$?
14446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447 (exit $ac_status); }; } &&
14448 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14450 (eval $ac_try) 2>&5
14451 ac_status=$?
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); }; }; then
14454 ac_cv_c_const=yes
14455else
14456 echo "$as_me: failed program was:" >&5
14457sed 's/^/| /' conftest.$ac_ext >&5
14458
14459ac_cv_c_const=no
14460fi
ac1cb8d3 14461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14462fi
14463echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14464echo "${ECHO_T}$ac_cv_c_const" >&6
14465if test $ac_cv_c_const = no; then
14466
14467cat >>confdefs.h <<\_ACEOF
14468#define const
14469_ACEOF
14470
14471fi
14472
14473echo "$as_me:$LINENO: checking for inline" >&5
14474echo $ECHO_N "checking for inline... $ECHO_C" >&6
14475if test "${ac_cv_c_inline+set}" = set; then
14476 echo $ECHO_N "(cached) $ECHO_C" >&6
14477else
14478 ac_cv_c_inline=no
14479for ac_kw in inline __inline__ __inline; do
14480 cat >conftest.$ac_ext <<_ACEOF
14481/* confdefs.h. */
14482_ACEOF
14483cat confdefs.h >>conftest.$ac_ext
14484cat >>conftest.$ac_ext <<_ACEOF
14485/* end confdefs.h. */
14486#ifndef __cplusplus
14487typedef int foo_t;
14488static $ac_kw foo_t static_foo () {return 0; }
14489$ac_kw foo_t foo () {return 0; }
14490#endif
14491
14492_ACEOF
14493rm -f conftest.$ac_objext
14494if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14495 (eval $ac_compile) 2>conftest.er1
a848cd7e 14496 ac_status=$?
ac1cb8d3
VS
14497 grep -v '^ *+' conftest.er1 >conftest.err
14498 rm -f conftest.er1
14499 cat conftest.err >&5
a848cd7e
SC
14500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14501 (exit $ac_status); } &&
da4486fb 14502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14504 (eval $ac_try) 2>&5
14505 ac_status=$?
14506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14507 (exit $ac_status); }; } &&
14508 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14510 (eval $ac_try) 2>&5
14511 ac_status=$?
14512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14513 (exit $ac_status); }; }; then
14514 ac_cv_c_inline=$ac_kw; break
14515else
14516 echo "$as_me: failed program was:" >&5
14517sed 's/^/| /' conftest.$ac_ext >&5
14518
14519fi
ac1cb8d3 14520rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14521done
14522
14523fi
14524echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14525echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
14526
14527
a848cd7e
SC
14528case $ac_cv_c_inline in
14529 inline | yes) ;;
ac1cb8d3
VS
14530 *)
14531 case $ac_cv_c_inline in
14532 no) ac_val=;;
14533 *) ac_val=$ac_cv_c_inline;;
14534 esac
14535 cat >>confdefs.h <<_ACEOF
14536#ifndef __cplusplus
14537#define inline $ac_val
14538#endif
de59c161 14539_ACEOF
ac1cb8d3 14540 ;;
a848cd7e
SC
14541esac
14542
14543
14544echo "$as_me:$LINENO: checking for char" >&5
14545echo $ECHO_N "checking for char... $ECHO_C" >&6
14546if test "${ac_cv_type_char+set}" = set; then
14547 echo $ECHO_N "(cached) $ECHO_C" >&6
14548else
14549 cat >conftest.$ac_ext <<_ACEOF
14550/* confdefs.h. */
14551_ACEOF
14552cat confdefs.h >>conftest.$ac_ext
14553cat >>conftest.$ac_ext <<_ACEOF
14554/* end confdefs.h. */
14555$ac_includes_default
14556int
14557main ()
14558{
14559if ((char *) 0)
14560 return 0;
14561if (sizeof (char))
14562 return 0;
14563 ;
14564 return 0;
14565}
14566_ACEOF
14567rm -f conftest.$ac_objext
14568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14569 (eval $ac_compile) 2>conftest.er1
a848cd7e 14570 ac_status=$?
ac1cb8d3
VS
14571 grep -v '^ *+' conftest.er1 >conftest.err
14572 rm -f conftest.er1
14573 cat conftest.err >&5
a848cd7e
SC
14574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14575 (exit $ac_status); } &&
da4486fb 14576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14578 (eval $ac_try) 2>&5
14579 ac_status=$?
14580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581 (exit $ac_status); }; } &&
14582 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14584 (eval $ac_try) 2>&5
14585 ac_status=$?
14586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587 (exit $ac_status); }; }; then
14588 ac_cv_type_char=yes
14589else
14590 echo "$as_me: failed program was:" >&5
14591sed 's/^/| /' conftest.$ac_ext >&5
14592
14593ac_cv_type_char=no
14594fi
ac1cb8d3 14595rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14596fi
14597echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14598echo "${ECHO_T}$ac_cv_type_char" >&6
14599
14600echo "$as_me:$LINENO: checking size of char" >&5
14601echo $ECHO_N "checking size of char... $ECHO_C" >&6
14602if test "${ac_cv_sizeof_char+set}" = set; then
14603 echo $ECHO_N "(cached) $ECHO_C" >&6
14604else
14605 if test "$ac_cv_type_char" = yes; then
14606 # The cast to unsigned long works around a bug in the HP C Compiler
14607 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14608 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14609 # This bug is HP SR number 8606223364.
14610 if test "$cross_compiling" = yes; then
14611 # Depending upon the size, compute the lo and hi bounds.
14612cat >conftest.$ac_ext <<_ACEOF
14613/* confdefs.h. */
14614_ACEOF
14615cat confdefs.h >>conftest.$ac_ext
14616cat >>conftest.$ac_ext <<_ACEOF
14617/* end confdefs.h. */
14618$ac_includes_default
14619int
14620main ()
14621{
14622static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14623test_array [0] = 0
14624
14625 ;
14626 return 0;
14627}
14628_ACEOF
14629rm -f conftest.$ac_objext
14630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14631 (eval $ac_compile) 2>conftest.er1
a848cd7e 14632 ac_status=$?
ac1cb8d3
VS
14633 grep -v '^ *+' conftest.er1 >conftest.err
14634 rm -f conftest.er1
14635 cat conftest.err >&5
a848cd7e
SC
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); } &&
da4486fb 14638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14640 (eval $ac_try) 2>&5
14641 ac_status=$?
14642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643 (exit $ac_status); }; } &&
14644 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14646 (eval $ac_try) 2>&5
14647 ac_status=$?
14648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649 (exit $ac_status); }; }; then
14650 ac_lo=0 ac_mid=0
14651 while :; do
14652 cat >conftest.$ac_ext <<_ACEOF
14653/* confdefs.h. */
14654_ACEOF
14655cat confdefs.h >>conftest.$ac_ext
14656cat >>conftest.$ac_ext <<_ACEOF
14657/* end confdefs.h. */
14658$ac_includes_default
14659int
14660main ()
14661{
14662static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14663test_array [0] = 0
14664
14665 ;
14666 return 0;
14667}
14668_ACEOF
14669rm -f conftest.$ac_objext
14670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14671 (eval $ac_compile) 2>conftest.er1
a848cd7e 14672 ac_status=$?
ac1cb8d3
VS
14673 grep -v '^ *+' conftest.er1 >conftest.err
14674 rm -f conftest.er1
14675 cat conftest.err >&5
a848cd7e
SC
14676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677 (exit $ac_status); } &&
da4486fb 14678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14680 (eval $ac_try) 2>&5
14681 ac_status=$?
14682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14683 (exit $ac_status); }; } &&
14684 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14686 (eval $ac_try) 2>&5
14687 ac_status=$?
14688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14689 (exit $ac_status); }; }; then
14690 ac_hi=$ac_mid; break
14691else
14692 echo "$as_me: failed program was:" >&5
14693sed 's/^/| /' conftest.$ac_ext >&5
14694
14695ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
14696 if test $ac_lo -le $ac_mid; then
14697 ac_lo= ac_hi=
14698 break
14699 fi
14700 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 14701fi
ac1cb8d3 14702rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14703 done
14704else
14705 echo "$as_me: failed program was:" >&5
14706sed 's/^/| /' conftest.$ac_ext >&5
14707
14708cat >conftest.$ac_ext <<_ACEOF
14709/* confdefs.h. */
14710_ACEOF
14711cat confdefs.h >>conftest.$ac_ext
14712cat >>conftest.$ac_ext <<_ACEOF
14713/* end confdefs.h. */
14714$ac_includes_default
14715int
14716main ()
14717{
14718static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14719test_array [0] = 0
14720
14721 ;
14722 return 0;
14723}
14724_ACEOF
14725rm -f conftest.$ac_objext
14726if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14727 (eval $ac_compile) 2>conftest.er1
a848cd7e 14728 ac_status=$?
ac1cb8d3
VS
14729 grep -v '^ *+' conftest.er1 >conftest.err
14730 rm -f conftest.er1
14731 cat conftest.err >&5
a848cd7e
SC
14732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14733 (exit $ac_status); } &&
da4486fb 14734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14736 (eval $ac_try) 2>&5
14737 ac_status=$?
14738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739 (exit $ac_status); }; } &&
14740 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14742 (eval $ac_try) 2>&5
14743 ac_status=$?
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); }; }; then
14746 ac_hi=-1 ac_mid=-1
14747 while :; do
14748 cat >conftest.$ac_ext <<_ACEOF
14749/* confdefs.h. */
14750_ACEOF
14751cat confdefs.h >>conftest.$ac_ext
14752cat >>conftest.$ac_ext <<_ACEOF
14753/* end confdefs.h. */
14754$ac_includes_default
14755int
14756main ()
14757{
14758static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14759test_array [0] = 0
14760
14761 ;
14762 return 0;
14763}
14764_ACEOF
14765rm -f conftest.$ac_objext
14766if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14767 (eval $ac_compile) 2>conftest.er1
a848cd7e 14768 ac_status=$?
ac1cb8d3
VS
14769 grep -v '^ *+' conftest.er1 >conftest.err
14770 rm -f conftest.er1
14771 cat conftest.err >&5
a848cd7e
SC
14772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773 (exit $ac_status); } &&
da4486fb 14774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14776 (eval $ac_try) 2>&5
14777 ac_status=$?
14778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779 (exit $ac_status); }; } &&
14780 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14782 (eval $ac_try) 2>&5
14783 ac_status=$?
14784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785 (exit $ac_status); }; }; then
14786 ac_lo=$ac_mid; break
14787else
14788 echo "$as_me: failed program was:" >&5
14789sed 's/^/| /' conftest.$ac_ext >&5
14790
14791ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
14792 if test $ac_mid -le $ac_hi; then
14793 ac_lo= ac_hi=
14794 break
14795 fi
14796 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 14797fi
ac1cb8d3 14798rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14799 done
14800else
14801 echo "$as_me: failed program was:" >&5
14802sed 's/^/| /' conftest.$ac_ext >&5
14803
14804ac_lo= ac_hi=
14805fi
ac1cb8d3 14806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 14807fi
ac1cb8d3 14808rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14809# Binary search between lo and hi bounds.
14810while test "x$ac_lo" != "x$ac_hi"; do
14811 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14812 cat >conftest.$ac_ext <<_ACEOF
14813/* confdefs.h. */
14814_ACEOF
14815cat confdefs.h >>conftest.$ac_ext
14816cat >>conftest.$ac_ext <<_ACEOF
14817/* end confdefs.h. */
14818$ac_includes_default
14819int
14820main ()
14821{
14822static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14823test_array [0] = 0
14824
14825 ;
14826 return 0;
14827}
14828_ACEOF
14829rm -f conftest.$ac_objext
14830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14831 (eval $ac_compile) 2>conftest.er1
a848cd7e 14832 ac_status=$?
ac1cb8d3
VS
14833 grep -v '^ *+' conftest.er1 >conftest.err
14834 rm -f conftest.er1
14835 cat conftest.err >&5
a848cd7e
SC
14836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14837 (exit $ac_status); } &&
da4486fb 14838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14840 (eval $ac_try) 2>&5
14841 ac_status=$?
14842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14843 (exit $ac_status); }; } &&
14844 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14846 (eval $ac_try) 2>&5
14847 ac_status=$?
14848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849 (exit $ac_status); }; }; then
14850 ac_hi=$ac_mid
14851else
14852 echo "$as_me: failed program was:" >&5
14853sed 's/^/| /' conftest.$ac_ext >&5
14854
14855ac_lo=`expr '(' $ac_mid ')' + 1`
14856fi
ac1cb8d3 14857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14858done
14859case $ac_lo in
14860?*) ac_cv_sizeof_char=$ac_lo;;
14861'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14862See \`config.log' for more details." >&5
14863echo "$as_me: error: cannot compute sizeof (char), 77
14864See \`config.log' for more details." >&2;}
14865 { (exit 1); exit 1; }; } ;;
14866esac
14867else
14868 if test "$cross_compiling" = yes; then
da4486fb
VZ
14869 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
14870echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
14871 { (exit 1); exit 1; }; }
14872else
14873 cat >conftest.$ac_ext <<_ACEOF
14874/* confdefs.h. */
14875_ACEOF
14876cat confdefs.h >>conftest.$ac_ext
14877cat >>conftest.$ac_ext <<_ACEOF
14878/* end confdefs.h. */
14879$ac_includes_default
14880long longval () { return (long) (sizeof (char)); }
14881unsigned long ulongval () { return (long) (sizeof (char)); }
14882#include <stdio.h>
14883#include <stdlib.h>
14884int
14885main ()
14886{
14887
14888 FILE *f = fopen ("conftest.val", "w");
14889 if (! f)
14890 exit (1);
14891 if (((long) (sizeof (char))) < 0)
14892 {
14893 long i = longval ();
14894 if (i != ((long) (sizeof (char))))
14895 exit (1);
14896 fprintf (f, "%ld\n", i);
14897 }
14898 else
14899 {
14900 unsigned long i = ulongval ();
14901 if (i != ((long) (sizeof (char))))
14902 exit (1);
14903 fprintf (f, "%lu\n", i);
14904 }
14905 exit (ferror (f) || fclose (f) != 0);
14906
14907 ;
14908 return 0;
14909}
14910_ACEOF
14911rm -f conftest$ac_exeext
14912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14913 (eval $ac_link) 2>&5
14914 ac_status=$?
14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14918 (eval $ac_try) 2>&5
14919 ac_status=$?
14920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921 (exit $ac_status); }; }; then
14922 ac_cv_sizeof_char=`cat conftest.val`
14923else
14924 echo "$as_me: program exited with status $ac_status" >&5
14925echo "$as_me: failed program was:" >&5
14926sed 's/^/| /' conftest.$ac_ext >&5
14927
14928( exit $ac_status )
14929{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14930See \`config.log' for more details." >&5
14931echo "$as_me: error: cannot compute sizeof (char), 77
14932See \`config.log' for more details." >&2;}
14933 { (exit 1); exit 1; }; }
14934fi
ac1cb8d3 14935rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14936fi
14937fi
14938rm -f conftest.val
14939else
14940 ac_cv_sizeof_char=0
14941fi
14942fi
14943echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14944echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14945cat >>confdefs.h <<_ACEOF
14946#define SIZEOF_CHAR $ac_cv_sizeof_char
14947_ACEOF
14948
14949
14950echo "$as_me:$LINENO: checking for short" >&5
14951echo $ECHO_N "checking for short... $ECHO_C" >&6
14952if test "${ac_cv_type_short+set}" = set; then
14953 echo $ECHO_N "(cached) $ECHO_C" >&6
14954else
14955 cat >conftest.$ac_ext <<_ACEOF
14956/* confdefs.h. */
14957_ACEOF
14958cat confdefs.h >>conftest.$ac_ext
14959cat >>conftest.$ac_ext <<_ACEOF
14960/* end confdefs.h. */
14961$ac_includes_default
14962int
14963main ()
14964{
14965if ((short *) 0)
14966 return 0;
14967if (sizeof (short))
14968 return 0;
14969 ;
14970 return 0;
14971}
14972_ACEOF
14973rm -f conftest.$ac_objext
14974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14975 (eval $ac_compile) 2>conftest.er1
a848cd7e 14976 ac_status=$?
ac1cb8d3
VS
14977 grep -v '^ *+' conftest.er1 >conftest.err
14978 rm -f conftest.er1
14979 cat conftest.err >&5
a848cd7e
SC
14980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981 (exit $ac_status); } &&
da4486fb 14982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
14988 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14990 (eval $ac_try) 2>&5
14991 ac_status=$?
14992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14993 (exit $ac_status); }; }; then
14994 ac_cv_type_short=yes
14995else
14996 echo "$as_me: failed program was:" >&5
14997sed 's/^/| /' conftest.$ac_ext >&5
14998
14999ac_cv_type_short=no
15000fi
ac1cb8d3 15001rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15002fi
15003echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15004echo "${ECHO_T}$ac_cv_type_short" >&6
15005
15006echo "$as_me:$LINENO: checking size of short" >&5
15007echo $ECHO_N "checking size of short... $ECHO_C" >&6
15008if test "${ac_cv_sizeof_short+set}" = set; then
15009 echo $ECHO_N "(cached) $ECHO_C" >&6
15010else
15011 if test "$ac_cv_type_short" = yes; then
15012 # The cast to unsigned long works around a bug in the HP C Compiler
15013 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15014 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15015 # This bug is HP SR number 8606223364.
15016 if test "$cross_compiling" = yes; then
15017 # Depending upon the size, compute the lo and hi bounds.
15018cat >conftest.$ac_ext <<_ACEOF
15019/* confdefs.h. */
15020_ACEOF
15021cat confdefs.h >>conftest.$ac_ext
15022cat >>conftest.$ac_ext <<_ACEOF
15023/* end confdefs.h. */
15024$ac_includes_default
15025int
15026main ()
15027{
15028static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
15029test_array [0] = 0
15030
15031 ;
15032 return 0;
15033}
15034_ACEOF
15035rm -f conftest.$ac_objext
15036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15037 (eval $ac_compile) 2>conftest.er1
a848cd7e 15038 ac_status=$?
ac1cb8d3
VS
15039 grep -v '^ *+' conftest.er1 >conftest.err
15040 rm -f conftest.er1
15041 cat conftest.err >&5
a848cd7e
SC
15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 (exit $ac_status); } &&
da4486fb 15044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15046 (eval $ac_try) 2>&5
15047 ac_status=$?
15048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049 (exit $ac_status); }; } &&
15050 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15052 (eval $ac_try) 2>&5
15053 ac_status=$?
15054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15055 (exit $ac_status); }; }; then
15056 ac_lo=0 ac_mid=0
15057 while :; do
15058 cat >conftest.$ac_ext <<_ACEOF
15059/* confdefs.h. */
15060_ACEOF
15061cat confdefs.h >>conftest.$ac_ext
15062cat >>conftest.$ac_ext <<_ACEOF
15063/* end confdefs.h. */
15064$ac_includes_default
15065int
15066main ()
15067{
15068static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15069test_array [0] = 0
15070
15071 ;
15072 return 0;
15073}
15074_ACEOF
15075rm -f conftest.$ac_objext
15076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15077 (eval $ac_compile) 2>conftest.er1
a848cd7e 15078 ac_status=$?
ac1cb8d3
VS
15079 grep -v '^ *+' conftest.er1 >conftest.err
15080 rm -f conftest.er1
15081 cat conftest.err >&5
a848cd7e
SC
15082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083 (exit $ac_status); } &&
da4486fb 15084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15086 (eval $ac_try) 2>&5
15087 ac_status=$?
15088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089 (exit $ac_status); }; } &&
15090 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15092 (eval $ac_try) 2>&5
15093 ac_status=$?
15094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095 (exit $ac_status); }; }; then
15096 ac_hi=$ac_mid; break
15097else
15098 echo "$as_me: failed program was:" >&5
15099sed 's/^/| /' conftest.$ac_ext >&5
15100
15101ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15102 if test $ac_lo -le $ac_mid; then
15103 ac_lo= ac_hi=
15104 break
15105 fi
15106 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15107fi
ac1cb8d3 15108rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15109 done
15110else
15111 echo "$as_me: failed program was:" >&5
15112sed 's/^/| /' conftest.$ac_ext >&5
15113
15114cat >conftest.$ac_ext <<_ACEOF
15115/* confdefs.h. */
15116_ACEOF
15117cat confdefs.h >>conftest.$ac_ext
15118cat >>conftest.$ac_ext <<_ACEOF
15119/* end confdefs.h. */
15120$ac_includes_default
15121int
15122main ()
15123{
15124static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
15125test_array [0] = 0
15126
15127 ;
15128 return 0;
15129}
15130_ACEOF
15131rm -f conftest.$ac_objext
15132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15133 (eval $ac_compile) 2>conftest.er1
a848cd7e 15134 ac_status=$?
ac1cb8d3
VS
15135 grep -v '^ *+' conftest.er1 >conftest.err
15136 rm -f conftest.er1
15137 cat conftest.err >&5
a848cd7e
SC
15138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139 (exit $ac_status); } &&
da4486fb 15140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15142 (eval $ac_try) 2>&5
15143 ac_status=$?
15144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145 (exit $ac_status); }; } &&
15146 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15148 (eval $ac_try) 2>&5
15149 ac_status=$?
15150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151 (exit $ac_status); }; }; then
15152 ac_hi=-1 ac_mid=-1
15153 while :; do
15154 cat >conftest.$ac_ext <<_ACEOF
15155/* confdefs.h. */
15156_ACEOF
15157cat confdefs.h >>conftest.$ac_ext
15158cat >>conftest.$ac_ext <<_ACEOF
15159/* end confdefs.h. */
15160$ac_includes_default
15161int
15162main ()
15163{
15164static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
15165test_array [0] = 0
15166
15167 ;
15168 return 0;
15169}
15170_ACEOF
15171rm -f conftest.$ac_objext
15172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15173 (eval $ac_compile) 2>conftest.er1
a848cd7e 15174 ac_status=$?
ac1cb8d3
VS
15175 grep -v '^ *+' conftest.er1 >conftest.err
15176 rm -f conftest.er1
15177 cat conftest.err >&5
a848cd7e
SC
15178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15179 (exit $ac_status); } &&
da4486fb 15180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15182 (eval $ac_try) 2>&5
15183 ac_status=$?
15184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15185 (exit $ac_status); }; } &&
15186 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15188 (eval $ac_try) 2>&5
15189 ac_status=$?
15190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15191 (exit $ac_status); }; }; then
15192 ac_lo=$ac_mid; break
15193else
15194 echo "$as_me: failed program was:" >&5
15195sed 's/^/| /' conftest.$ac_ext >&5
15196
15197ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15198 if test $ac_mid -le $ac_hi; then
15199 ac_lo= ac_hi=
15200 break
15201 fi
15202 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15203fi
ac1cb8d3 15204rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15205 done
15206else
15207 echo "$as_me: failed program was:" >&5
15208sed 's/^/| /' conftest.$ac_ext >&5
15209
15210ac_lo= ac_hi=
15211fi
ac1cb8d3 15212rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15213fi
ac1cb8d3 15214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15215# Binary search between lo and hi bounds.
15216while test "x$ac_lo" != "x$ac_hi"; do
15217 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15218 cat >conftest.$ac_ext <<_ACEOF
15219/* confdefs.h. */
15220_ACEOF
15221cat confdefs.h >>conftest.$ac_ext
15222cat >>conftest.$ac_ext <<_ACEOF
15223/* end confdefs.h. */
15224$ac_includes_default
15225int
15226main ()
15227{
15228static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15229test_array [0] = 0
15230
15231 ;
15232 return 0;
15233}
15234_ACEOF
15235rm -f conftest.$ac_objext
15236if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15237 (eval $ac_compile) 2>conftest.er1
a848cd7e 15238 ac_status=$?
ac1cb8d3
VS
15239 grep -v '^ *+' conftest.er1 >conftest.err
15240 rm -f conftest.er1
15241 cat conftest.err >&5
a848cd7e
SC
15242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243 (exit $ac_status); } &&
da4486fb 15244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15246 (eval $ac_try) 2>&5
15247 ac_status=$?
15248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249 (exit $ac_status); }; } &&
15250 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15252 (eval $ac_try) 2>&5
15253 ac_status=$?
15254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15255 (exit $ac_status); }; }; then
15256 ac_hi=$ac_mid
15257else
15258 echo "$as_me: failed program was:" >&5
15259sed 's/^/| /' conftest.$ac_ext >&5
15260
15261ac_lo=`expr '(' $ac_mid ')' + 1`
15262fi
ac1cb8d3 15263rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15264done
15265case $ac_lo in
15266?*) ac_cv_sizeof_short=$ac_lo;;
15267'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15268See \`config.log' for more details." >&5
15269echo "$as_me: error: cannot compute sizeof (short), 77
15270See \`config.log' for more details." >&2;}
15271 { (exit 1); exit 1; }; } ;;
15272esac
15273else
15274 if test "$cross_compiling" = yes; then
da4486fb
VZ
15275 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15276echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
15277 { (exit 1); exit 1; }; }
15278else
15279 cat >conftest.$ac_ext <<_ACEOF
15280/* confdefs.h. */
15281_ACEOF
15282cat confdefs.h >>conftest.$ac_ext
15283cat >>conftest.$ac_ext <<_ACEOF
15284/* end confdefs.h. */
15285$ac_includes_default
15286long longval () { return (long) (sizeof (short)); }
15287unsigned long ulongval () { return (long) (sizeof (short)); }
15288#include <stdio.h>
15289#include <stdlib.h>
15290int
15291main ()
15292{
15293
15294 FILE *f = fopen ("conftest.val", "w");
15295 if (! f)
15296 exit (1);
15297 if (((long) (sizeof (short))) < 0)
15298 {
15299 long i = longval ();
15300 if (i != ((long) (sizeof (short))))
15301 exit (1);
15302 fprintf (f, "%ld\n", i);
15303 }
15304 else
15305 {
15306 unsigned long i = ulongval ();
15307 if (i != ((long) (sizeof (short))))
15308 exit (1);
15309 fprintf (f, "%lu\n", i);
15310 }
15311 exit (ferror (f) || fclose (f) != 0);
15312
15313 ;
15314 return 0;
15315}
15316_ACEOF
15317rm -f conftest$ac_exeext
15318if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15319 (eval $ac_link) 2>&5
15320 ac_status=$?
15321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15324 (eval $ac_try) 2>&5
15325 ac_status=$?
15326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327 (exit $ac_status); }; }; then
15328 ac_cv_sizeof_short=`cat conftest.val`
15329else
15330 echo "$as_me: program exited with status $ac_status" >&5
15331echo "$as_me: failed program was:" >&5
15332sed 's/^/| /' conftest.$ac_ext >&5
15333
15334( exit $ac_status )
15335{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15336See \`config.log' for more details." >&5
15337echo "$as_me: error: cannot compute sizeof (short), 77
15338See \`config.log' for more details." >&2;}
15339 { (exit 1); exit 1; }; }
15340fi
ac1cb8d3 15341rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15342fi
15343fi
15344rm -f conftest.val
15345else
15346 ac_cv_sizeof_short=0
15347fi
15348fi
15349echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15350echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15351cat >>confdefs.h <<_ACEOF
15352#define SIZEOF_SHORT $ac_cv_sizeof_short
15353_ACEOF
15354
15355
15356echo "$as_me:$LINENO: checking for void *" >&5
15357echo $ECHO_N "checking for void *... $ECHO_C" >&6
15358if test "${ac_cv_type_void_p+set}" = set; then
15359 echo $ECHO_N "(cached) $ECHO_C" >&6
15360else
15361 cat >conftest.$ac_ext <<_ACEOF
15362/* confdefs.h. */
15363_ACEOF
15364cat confdefs.h >>conftest.$ac_ext
15365cat >>conftest.$ac_ext <<_ACEOF
15366/* end confdefs.h. */
15367$ac_includes_default
15368int
15369main ()
15370{
15371if ((void * *) 0)
15372 return 0;
15373if (sizeof (void *))
15374 return 0;
15375 ;
15376 return 0;
15377}
15378_ACEOF
15379rm -f conftest.$ac_objext
15380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15381 (eval $ac_compile) 2>conftest.er1
a848cd7e 15382 ac_status=$?
ac1cb8d3
VS
15383 grep -v '^ *+' conftest.er1 >conftest.err
15384 rm -f conftest.er1
15385 cat conftest.err >&5
a848cd7e
SC
15386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387 (exit $ac_status); } &&
da4486fb 15388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15390 (eval $ac_try) 2>&5
15391 ac_status=$?
15392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393 (exit $ac_status); }; } &&
15394 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15396 (eval $ac_try) 2>&5
15397 ac_status=$?
15398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399 (exit $ac_status); }; }; then
15400 ac_cv_type_void_p=yes
15401else
15402 echo "$as_me: failed program was:" >&5
15403sed 's/^/| /' conftest.$ac_ext >&5
15404
15405ac_cv_type_void_p=no
15406fi
ac1cb8d3 15407rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15408fi
15409echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
15410echo "${ECHO_T}$ac_cv_type_void_p" >&6
15411
15412echo "$as_me:$LINENO: checking size of void *" >&5
15413echo $ECHO_N "checking size of void *... $ECHO_C" >&6
15414if test "${ac_cv_sizeof_void_p+set}" = set; then
15415 echo $ECHO_N "(cached) $ECHO_C" >&6
15416else
15417 if test "$ac_cv_type_void_p" = yes; then
15418 # The cast to unsigned long works around a bug in the HP C Compiler
15419 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15420 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15421 # This bug is HP SR number 8606223364.
15422 if test "$cross_compiling" = yes; then
15423 # Depending upon the size, compute the lo and hi bounds.
15424cat >conftest.$ac_ext <<_ACEOF
15425/* confdefs.h. */
15426_ACEOF
15427cat confdefs.h >>conftest.$ac_ext
15428cat >>conftest.$ac_ext <<_ACEOF
15429/* end confdefs.h. */
15430$ac_includes_default
15431int
15432main ()
15433{
15434static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
15435test_array [0] = 0
15436
15437 ;
15438 return 0;
15439}
15440_ACEOF
15441rm -f conftest.$ac_objext
15442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15443 (eval $ac_compile) 2>conftest.er1
a848cd7e 15444 ac_status=$?
ac1cb8d3
VS
15445 grep -v '^ *+' conftest.er1 >conftest.err
15446 rm -f conftest.er1
15447 cat conftest.err >&5
a848cd7e
SC
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); } &&
da4486fb 15450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15452 (eval $ac_try) 2>&5
15453 ac_status=$?
15454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455 (exit $ac_status); }; } &&
15456 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15458 (eval $ac_try) 2>&5
15459 ac_status=$?
15460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461 (exit $ac_status); }; }; then
15462 ac_lo=0 ac_mid=0
15463 while :; do
15464 cat >conftest.$ac_ext <<_ACEOF
15465/* confdefs.h. */
15466_ACEOF
15467cat confdefs.h >>conftest.$ac_ext
15468cat >>conftest.$ac_ext <<_ACEOF
15469/* end confdefs.h. */
15470$ac_includes_default
15471int
15472main ()
15473{
15474static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15475test_array [0] = 0
15476
15477 ;
15478 return 0;
15479}
15480_ACEOF
15481rm -f conftest.$ac_objext
15482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15483 (eval $ac_compile) 2>conftest.er1
a848cd7e 15484 ac_status=$?
ac1cb8d3
VS
15485 grep -v '^ *+' conftest.er1 >conftest.err
15486 rm -f conftest.er1
15487 cat conftest.err >&5
a848cd7e
SC
15488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489 (exit $ac_status); } &&
da4486fb 15490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15492 (eval $ac_try) 2>&5
15493 ac_status=$?
15494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495 (exit $ac_status); }; } &&
15496 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15498 (eval $ac_try) 2>&5
15499 ac_status=$?
15500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15501 (exit $ac_status); }; }; then
15502 ac_hi=$ac_mid; break
15503else
15504 echo "$as_me: failed program was:" >&5
15505sed 's/^/| /' conftest.$ac_ext >&5
15506
15507ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15508 if test $ac_lo -le $ac_mid; then
15509 ac_lo= ac_hi=
15510 break
15511 fi
15512 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15513fi
ac1cb8d3 15514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15515 done
15516else
15517 echo "$as_me: failed program was:" >&5
15518sed 's/^/| /' conftest.$ac_ext >&5
15519
15520cat >conftest.$ac_ext <<_ACEOF
15521/* confdefs.h. */
15522_ACEOF
15523cat confdefs.h >>conftest.$ac_ext
15524cat >>conftest.$ac_ext <<_ACEOF
15525/* end confdefs.h. */
15526$ac_includes_default
15527int
15528main ()
15529{
15530static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15531test_array [0] = 0
15532
15533 ;
15534 return 0;
15535}
15536_ACEOF
15537rm -f conftest.$ac_objext
15538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15539 (eval $ac_compile) 2>conftest.er1
a848cd7e 15540 ac_status=$?
ac1cb8d3
VS
15541 grep -v '^ *+' conftest.er1 >conftest.err
15542 rm -f conftest.er1
15543 cat conftest.err >&5
a848cd7e
SC
15544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545 (exit $ac_status); } &&
da4486fb 15546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15548 (eval $ac_try) 2>&5
15549 ac_status=$?
15550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15551 (exit $ac_status); }; } &&
15552 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15554 (eval $ac_try) 2>&5
15555 ac_status=$?
15556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557 (exit $ac_status); }; }; then
15558 ac_hi=-1 ac_mid=-1
15559 while :; do
15560 cat >conftest.$ac_ext <<_ACEOF
15561/* confdefs.h. */
15562_ACEOF
15563cat confdefs.h >>conftest.$ac_ext
15564cat >>conftest.$ac_ext <<_ACEOF
15565/* end confdefs.h. */
15566$ac_includes_default
15567int
15568main ()
15569{
15570static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15571test_array [0] = 0
15572
15573 ;
15574 return 0;
15575}
15576_ACEOF
15577rm -f conftest.$ac_objext
15578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15579 (eval $ac_compile) 2>conftest.er1
a848cd7e 15580 ac_status=$?
ac1cb8d3
VS
15581 grep -v '^ *+' conftest.er1 >conftest.err
15582 rm -f conftest.er1
15583 cat conftest.err >&5
a848cd7e
SC
15584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15585 (exit $ac_status); } &&
da4486fb 15586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15588 (eval $ac_try) 2>&5
15589 ac_status=$?
15590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591 (exit $ac_status); }; } &&
15592 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
15598 ac_lo=$ac_mid; break
15599else
15600 echo "$as_me: failed program was:" >&5
15601sed 's/^/| /' conftest.$ac_ext >&5
15602
15603ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15604 if test $ac_mid -le $ac_hi; then
15605 ac_lo= ac_hi=
15606 break
15607 fi
15608 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15609fi
ac1cb8d3 15610rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15611 done
15612else
15613 echo "$as_me: failed program was:" >&5
15614sed 's/^/| /' conftest.$ac_ext >&5
15615
15616ac_lo= ac_hi=
15617fi
ac1cb8d3 15618rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15619fi
ac1cb8d3 15620rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15621# Binary search between lo and hi bounds.
15622while test "x$ac_lo" != "x$ac_hi"; do
15623 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15624 cat >conftest.$ac_ext <<_ACEOF
15625/* confdefs.h. */
15626_ACEOF
15627cat confdefs.h >>conftest.$ac_ext
15628cat >>conftest.$ac_ext <<_ACEOF
15629/* end confdefs.h. */
15630$ac_includes_default
15631int
15632main ()
15633{
15634static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15635test_array [0] = 0
15636
15637 ;
15638 return 0;
15639}
15640_ACEOF
15641rm -f conftest.$ac_objext
15642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15643 (eval $ac_compile) 2>conftest.er1
a848cd7e 15644 ac_status=$?
ac1cb8d3
VS
15645 grep -v '^ *+' conftest.er1 >conftest.err
15646 rm -f conftest.er1
15647 cat conftest.err >&5
a848cd7e
SC
15648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649 (exit $ac_status); } &&
da4486fb 15650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15652 (eval $ac_try) 2>&5
15653 ac_status=$?
15654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15655 (exit $ac_status); }; } &&
15656 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15658 (eval $ac_try) 2>&5
15659 ac_status=$?
15660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661 (exit $ac_status); }; }; then
15662 ac_hi=$ac_mid
15663else
15664 echo "$as_me: failed program was:" >&5
15665sed 's/^/| /' conftest.$ac_ext >&5
15666
15667ac_lo=`expr '(' $ac_mid ')' + 1`
15668fi
ac1cb8d3 15669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15670done
15671case $ac_lo in
15672?*) ac_cv_sizeof_void_p=$ac_lo;;
15673'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15674See \`config.log' for more details." >&5
15675echo "$as_me: error: cannot compute sizeof (void *), 77
15676See \`config.log' for more details." >&2;}
15677 { (exit 1); exit 1; }; } ;;
15678esac
15679else
15680 if test "$cross_compiling" = yes; then
da4486fb
VZ
15681 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15682echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
15683 { (exit 1); exit 1; }; }
15684else
15685 cat >conftest.$ac_ext <<_ACEOF
15686/* confdefs.h. */
15687_ACEOF
15688cat confdefs.h >>conftest.$ac_ext
15689cat >>conftest.$ac_ext <<_ACEOF
15690/* end confdefs.h. */
15691$ac_includes_default
15692long longval () { return (long) (sizeof (void *)); }
15693unsigned long ulongval () { return (long) (sizeof (void *)); }
15694#include <stdio.h>
15695#include <stdlib.h>
15696int
15697main ()
15698{
15699
15700 FILE *f = fopen ("conftest.val", "w");
15701 if (! f)
15702 exit (1);
15703 if (((long) (sizeof (void *))) < 0)
15704 {
15705 long i = longval ();
15706 if (i != ((long) (sizeof (void *))))
15707 exit (1);
15708 fprintf (f, "%ld\n", i);
15709 }
15710 else
15711 {
15712 unsigned long i = ulongval ();
15713 if (i != ((long) (sizeof (void *))))
15714 exit (1);
15715 fprintf (f, "%lu\n", i);
15716 }
15717 exit (ferror (f) || fclose (f) != 0);
15718
15719 ;
15720 return 0;
15721}
15722_ACEOF
15723rm -f conftest$ac_exeext
15724if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15725 (eval $ac_link) 2>&5
15726 ac_status=$?
15727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15730 (eval $ac_try) 2>&5
15731 ac_status=$?
15732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733 (exit $ac_status); }; }; then
15734 ac_cv_sizeof_void_p=`cat conftest.val`
15735else
15736 echo "$as_me: program exited with status $ac_status" >&5
15737echo "$as_me: failed program was:" >&5
15738sed 's/^/| /' conftest.$ac_ext >&5
15739
15740( exit $ac_status )
15741{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15742See \`config.log' for more details." >&5
15743echo "$as_me: error: cannot compute sizeof (void *), 77
15744See \`config.log' for more details." >&2;}
15745 { (exit 1); exit 1; }; }
15746fi
ac1cb8d3 15747rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15748fi
15749fi
15750rm -f conftest.val
15751else
15752 ac_cv_sizeof_void_p=0
15753fi
15754fi
15755echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15756echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15757cat >>confdefs.h <<_ACEOF
15758#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15759_ACEOF
15760
15761
15762echo "$as_me:$LINENO: checking for int" >&5
15763echo $ECHO_N "checking for int... $ECHO_C" >&6
15764if test "${ac_cv_type_int+set}" = set; then
15765 echo $ECHO_N "(cached) $ECHO_C" >&6
15766else
15767 cat >conftest.$ac_ext <<_ACEOF
15768/* confdefs.h. */
15769_ACEOF
15770cat confdefs.h >>conftest.$ac_ext
15771cat >>conftest.$ac_ext <<_ACEOF
15772/* end confdefs.h. */
15773$ac_includes_default
15774int
15775main ()
15776{
15777if ((int *) 0)
15778 return 0;
15779if (sizeof (int))
15780 return 0;
15781 ;
15782 return 0;
15783}
15784_ACEOF
15785rm -f conftest.$ac_objext
15786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15787 (eval $ac_compile) 2>conftest.er1
a848cd7e 15788 ac_status=$?
ac1cb8d3
VS
15789 grep -v '^ *+' conftest.er1 >conftest.err
15790 rm -f conftest.er1
15791 cat conftest.err >&5
a848cd7e
SC
15792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15793 (exit $ac_status); } &&
da4486fb 15794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15796 (eval $ac_try) 2>&5
15797 ac_status=$?
15798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799 (exit $ac_status); }; } &&
15800 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15802 (eval $ac_try) 2>&5
15803 ac_status=$?
15804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805 (exit $ac_status); }; }; then
15806 ac_cv_type_int=yes
15807else
15808 echo "$as_me: failed program was:" >&5
15809sed 's/^/| /' conftest.$ac_ext >&5
15810
15811ac_cv_type_int=no
15812fi
ac1cb8d3 15813rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15814fi
15815echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15816echo "${ECHO_T}$ac_cv_type_int" >&6
15817
15818echo "$as_me:$LINENO: checking size of int" >&5
15819echo $ECHO_N "checking size of int... $ECHO_C" >&6
15820if test "${ac_cv_sizeof_int+set}" = set; then
15821 echo $ECHO_N "(cached) $ECHO_C" >&6
15822else
15823 if test "$ac_cv_type_int" = yes; then
15824 # The cast to unsigned long works around a bug in the HP C Compiler
15825 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15826 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15827 # This bug is HP SR number 8606223364.
15828 if test "$cross_compiling" = yes; then
15829 # Depending upon the size, compute the lo and hi bounds.
15830cat >conftest.$ac_ext <<_ACEOF
15831/* confdefs.h. */
15832_ACEOF
15833cat confdefs.h >>conftest.$ac_ext
15834cat >>conftest.$ac_ext <<_ACEOF
15835/* end confdefs.h. */
15836$ac_includes_default
15837int
15838main ()
15839{
15840static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15841test_array [0] = 0
15842
15843 ;
15844 return 0;
15845}
15846_ACEOF
15847rm -f conftest.$ac_objext
15848if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15849 (eval $ac_compile) 2>conftest.er1
a848cd7e 15850 ac_status=$?
ac1cb8d3
VS
15851 grep -v '^ *+' conftest.er1 >conftest.err
15852 rm -f conftest.er1
15853 cat conftest.err >&5
a848cd7e
SC
15854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855 (exit $ac_status); } &&
da4486fb 15856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15858 (eval $ac_try) 2>&5
15859 ac_status=$?
15860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861 (exit $ac_status); }; } &&
15862 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15864 (eval $ac_try) 2>&5
15865 ac_status=$?
15866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867 (exit $ac_status); }; }; then
15868 ac_lo=0 ac_mid=0
15869 while :; do
15870 cat >conftest.$ac_ext <<_ACEOF
15871/* confdefs.h. */
15872_ACEOF
15873cat confdefs.h >>conftest.$ac_ext
15874cat >>conftest.$ac_ext <<_ACEOF
15875/* end confdefs.h. */
15876$ac_includes_default
15877int
15878main ()
15879{
15880static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15881test_array [0] = 0
15882
15883 ;
15884 return 0;
15885}
15886_ACEOF
15887rm -f conftest.$ac_objext
15888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15889 (eval $ac_compile) 2>conftest.er1
a848cd7e 15890 ac_status=$?
ac1cb8d3
VS
15891 grep -v '^ *+' conftest.er1 >conftest.err
15892 rm -f conftest.er1
15893 cat conftest.err >&5
a848cd7e
SC
15894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15895 (exit $ac_status); } &&
da4486fb 15896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15898 (eval $ac_try) 2>&5
15899 ac_status=$?
15900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15901 (exit $ac_status); }; } &&
15902 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15904 (eval $ac_try) 2>&5
15905 ac_status=$?
15906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15907 (exit $ac_status); }; }; then
15908 ac_hi=$ac_mid; break
15909else
15910 echo "$as_me: failed program was:" >&5
15911sed 's/^/| /' conftest.$ac_ext >&5
15912
15913ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15914 if test $ac_lo -le $ac_mid; then
15915 ac_lo= ac_hi=
15916 break
15917 fi
15918 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15919fi
ac1cb8d3 15920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15921 done
15922else
15923 echo "$as_me: failed program was:" >&5
15924sed 's/^/| /' conftest.$ac_ext >&5
15925
15926cat >conftest.$ac_ext <<_ACEOF
15927/* confdefs.h. */
15928_ACEOF
15929cat confdefs.h >>conftest.$ac_ext
15930cat >>conftest.$ac_ext <<_ACEOF
15931/* end confdefs.h. */
15932$ac_includes_default
15933int
15934main ()
15935{
15936static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15937test_array [0] = 0
15938
15939 ;
15940 return 0;
15941}
15942_ACEOF
15943rm -f conftest.$ac_objext
15944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15945 (eval $ac_compile) 2>conftest.er1
a848cd7e 15946 ac_status=$?
ac1cb8d3
VS
15947 grep -v '^ *+' conftest.er1 >conftest.err
15948 rm -f conftest.er1
15949 cat conftest.err >&5
a848cd7e
SC
15950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15951 (exit $ac_status); } &&
da4486fb 15952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15954 (eval $ac_try) 2>&5
15955 ac_status=$?
15956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957 (exit $ac_status); }; } &&
15958 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15960 (eval $ac_try) 2>&5
15961 ac_status=$?
15962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963 (exit $ac_status); }; }; then
15964 ac_hi=-1 ac_mid=-1
15965 while :; do
15966 cat >conftest.$ac_ext <<_ACEOF
15967/* confdefs.h. */
15968_ACEOF
15969cat confdefs.h >>conftest.$ac_ext
15970cat >>conftest.$ac_ext <<_ACEOF
15971/* end confdefs.h. */
15972$ac_includes_default
15973int
15974main ()
15975{
15976static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15977test_array [0] = 0
15978
15979 ;
15980 return 0;
15981}
15982_ACEOF
15983rm -f conftest.$ac_objext
15984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15985 (eval $ac_compile) 2>conftest.er1
a848cd7e 15986 ac_status=$?
ac1cb8d3
VS
15987 grep -v '^ *+' conftest.er1 >conftest.err
15988 rm -f conftest.er1
15989 cat conftest.err >&5
a848cd7e
SC
15990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15991 (exit $ac_status); } &&
da4486fb 15992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15994 (eval $ac_try) 2>&5
15995 ac_status=$?
15996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997 (exit $ac_status); }; } &&
15998 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16000 (eval $ac_try) 2>&5
16001 ac_status=$?
16002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003 (exit $ac_status); }; }; then
16004 ac_lo=$ac_mid; break
16005else
16006 echo "$as_me: failed program was:" >&5
16007sed 's/^/| /' conftest.$ac_ext >&5
16008
16009ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16010 if test $ac_mid -le $ac_hi; then
16011 ac_lo= ac_hi=
16012 break
16013 fi
16014 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16015fi
ac1cb8d3 16016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16017 done
16018else
16019 echo "$as_me: failed program was:" >&5
16020sed 's/^/| /' conftest.$ac_ext >&5
16021
16022ac_lo= ac_hi=
16023fi
ac1cb8d3 16024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16025fi
ac1cb8d3 16026rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16027# Binary search between lo and hi bounds.
16028while test "x$ac_lo" != "x$ac_hi"; do
16029 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16030 cat >conftest.$ac_ext <<_ACEOF
16031/* confdefs.h. */
16032_ACEOF
16033cat confdefs.h >>conftest.$ac_ext
16034cat >>conftest.$ac_ext <<_ACEOF
16035/* end confdefs.h. */
16036$ac_includes_default
16037int
16038main ()
16039{
16040static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16041test_array [0] = 0
16042
16043 ;
16044 return 0;
16045}
16046_ACEOF
16047rm -f conftest.$ac_objext
16048if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16049 (eval $ac_compile) 2>conftest.er1
a848cd7e 16050 ac_status=$?
ac1cb8d3
VS
16051 grep -v '^ *+' conftest.er1 >conftest.err
16052 rm -f conftest.er1
16053 cat conftest.err >&5
a848cd7e
SC
16054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055 (exit $ac_status); } &&
da4486fb 16056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16058 (eval $ac_try) 2>&5
16059 ac_status=$?
16060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061 (exit $ac_status); }; } &&
16062 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16064 (eval $ac_try) 2>&5
16065 ac_status=$?
16066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16067 (exit $ac_status); }; }; then
16068 ac_hi=$ac_mid
16069else
16070 echo "$as_me: failed program was:" >&5
16071sed 's/^/| /' conftest.$ac_ext >&5
16072
16073ac_lo=`expr '(' $ac_mid ')' + 1`
16074fi
ac1cb8d3 16075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16076done
16077case $ac_lo in
16078?*) ac_cv_sizeof_int=$ac_lo;;
16079'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16080See \`config.log' for more details." >&5
16081echo "$as_me: error: cannot compute sizeof (int), 77
16082See \`config.log' for more details." >&2;}
16083 { (exit 1); exit 1; }; } ;;
16084esac
16085else
16086 if test "$cross_compiling" = yes; then
da4486fb
VZ
16087 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16088echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16089 { (exit 1); exit 1; }; }
16090else
16091 cat >conftest.$ac_ext <<_ACEOF
16092/* confdefs.h. */
16093_ACEOF
16094cat confdefs.h >>conftest.$ac_ext
16095cat >>conftest.$ac_ext <<_ACEOF
16096/* end confdefs.h. */
16097$ac_includes_default
16098long longval () { return (long) (sizeof (int)); }
16099unsigned long ulongval () { return (long) (sizeof (int)); }
16100#include <stdio.h>
16101#include <stdlib.h>
16102int
16103main ()
16104{
16105
16106 FILE *f = fopen ("conftest.val", "w");
16107 if (! f)
16108 exit (1);
16109 if (((long) (sizeof (int))) < 0)
16110 {
16111 long i = longval ();
16112 if (i != ((long) (sizeof (int))))
16113 exit (1);
16114 fprintf (f, "%ld\n", i);
16115 }
16116 else
16117 {
16118 unsigned long i = ulongval ();
16119 if (i != ((long) (sizeof (int))))
16120 exit (1);
16121 fprintf (f, "%lu\n", i);
16122 }
16123 exit (ferror (f) || fclose (f) != 0);
16124
16125 ;
16126 return 0;
16127}
16128_ACEOF
16129rm -f conftest$ac_exeext
16130if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16131 (eval $ac_link) 2>&5
16132 ac_status=$?
16133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16134 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16136 (eval $ac_try) 2>&5
16137 ac_status=$?
16138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16139 (exit $ac_status); }; }; then
16140 ac_cv_sizeof_int=`cat conftest.val`
16141else
16142 echo "$as_me: program exited with status $ac_status" >&5
16143echo "$as_me: failed program was:" >&5
16144sed 's/^/| /' conftest.$ac_ext >&5
16145
16146( exit $ac_status )
16147{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16148See \`config.log' for more details." >&5
16149echo "$as_me: error: cannot compute sizeof (int), 77
16150See \`config.log' for more details." >&2;}
16151 { (exit 1); exit 1; }; }
16152fi
ac1cb8d3 16153rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16154fi
16155fi
16156rm -f conftest.val
16157else
16158 ac_cv_sizeof_int=0
16159fi
16160fi
16161echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16162echo "${ECHO_T}$ac_cv_sizeof_int" >&6
16163cat >>confdefs.h <<_ACEOF
16164#define SIZEOF_INT $ac_cv_sizeof_int
16165_ACEOF
16166
16167
16168echo "$as_me:$LINENO: checking for long" >&5
16169echo $ECHO_N "checking for long... $ECHO_C" >&6
16170if test "${ac_cv_type_long+set}" = set; then
16171 echo $ECHO_N "(cached) $ECHO_C" >&6
16172else
16173 cat >conftest.$ac_ext <<_ACEOF
16174/* confdefs.h. */
16175_ACEOF
16176cat confdefs.h >>conftest.$ac_ext
16177cat >>conftest.$ac_ext <<_ACEOF
16178/* end confdefs.h. */
16179$ac_includes_default
16180int
16181main ()
16182{
16183if ((long *) 0)
16184 return 0;
16185if (sizeof (long))
16186 return 0;
16187 ;
16188 return 0;
16189}
16190_ACEOF
16191rm -f conftest.$ac_objext
16192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16193 (eval $ac_compile) 2>conftest.er1
a848cd7e 16194 ac_status=$?
ac1cb8d3
VS
16195 grep -v '^ *+' conftest.er1 >conftest.err
16196 rm -f conftest.er1
16197 cat conftest.err >&5
a848cd7e
SC
16198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16199 (exit $ac_status); } &&
da4486fb 16200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16202 (eval $ac_try) 2>&5
16203 ac_status=$?
16204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205 (exit $ac_status); }; } &&
16206 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16208 (eval $ac_try) 2>&5
16209 ac_status=$?
16210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211 (exit $ac_status); }; }; then
16212 ac_cv_type_long=yes
16213else
16214 echo "$as_me: failed program was:" >&5
16215sed 's/^/| /' conftest.$ac_ext >&5
16216
16217ac_cv_type_long=no
16218fi
ac1cb8d3 16219rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16220fi
16221echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
16222echo "${ECHO_T}$ac_cv_type_long" >&6
16223
16224echo "$as_me:$LINENO: checking size of long" >&5
16225echo $ECHO_N "checking size of long... $ECHO_C" >&6
16226if test "${ac_cv_sizeof_long+set}" = set; then
16227 echo $ECHO_N "(cached) $ECHO_C" >&6
16228else
16229 if test "$ac_cv_type_long" = yes; then
16230 # The cast to unsigned long works around a bug in the HP C Compiler
16231 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16232 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16233 # This bug is HP SR number 8606223364.
16234 if test "$cross_compiling" = yes; then
16235 # Depending upon the size, compute the lo and hi bounds.
16236cat >conftest.$ac_ext <<_ACEOF
16237/* confdefs.h. */
16238_ACEOF
16239cat confdefs.h >>conftest.$ac_ext
16240cat >>conftest.$ac_ext <<_ACEOF
16241/* end confdefs.h. */
16242$ac_includes_default
16243int
16244main ()
16245{
16246static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
16247test_array [0] = 0
16248
16249 ;
16250 return 0;
16251}
16252_ACEOF
16253rm -f conftest.$ac_objext
16254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16255 (eval $ac_compile) 2>conftest.er1
a848cd7e 16256 ac_status=$?
ac1cb8d3
VS
16257 grep -v '^ *+' conftest.er1 >conftest.err
16258 rm -f conftest.er1
16259 cat conftest.err >&5
a848cd7e
SC
16260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16261 (exit $ac_status); } &&
da4486fb 16262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16264 (eval $ac_try) 2>&5
16265 ac_status=$?
16266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267 (exit $ac_status); }; } &&
16268 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16270 (eval $ac_try) 2>&5
16271 ac_status=$?
16272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273 (exit $ac_status); }; }; then
16274 ac_lo=0 ac_mid=0
16275 while :; do
16276 cat >conftest.$ac_ext <<_ACEOF
16277/* confdefs.h. */
16278_ACEOF
16279cat confdefs.h >>conftest.$ac_ext
16280cat >>conftest.$ac_ext <<_ACEOF
16281/* end confdefs.h. */
16282$ac_includes_default
16283int
16284main ()
16285{
16286static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16287test_array [0] = 0
16288
16289 ;
16290 return 0;
16291}
16292_ACEOF
16293rm -f conftest.$ac_objext
16294if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16295 (eval $ac_compile) 2>conftest.er1
a848cd7e 16296 ac_status=$?
ac1cb8d3
VS
16297 grep -v '^ *+' conftest.er1 >conftest.err
16298 rm -f conftest.er1
16299 cat conftest.err >&5
a848cd7e
SC
16300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16301 (exit $ac_status); } &&
da4486fb 16302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16304 (eval $ac_try) 2>&5
16305 ac_status=$?
16306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16307 (exit $ac_status); }; } &&
16308 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16310 (eval $ac_try) 2>&5
16311 ac_status=$?
16312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313 (exit $ac_status); }; }; then
16314 ac_hi=$ac_mid; break
16315else
16316 echo "$as_me: failed program was:" >&5
16317sed 's/^/| /' conftest.$ac_ext >&5
16318
16319ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16320 if test $ac_lo -le $ac_mid; then
16321 ac_lo= ac_hi=
16322 break
16323 fi
16324 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16325fi
ac1cb8d3 16326rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16327 done
16328else
16329 echo "$as_me: failed program was:" >&5
16330sed 's/^/| /' conftest.$ac_ext >&5
16331
16332cat >conftest.$ac_ext <<_ACEOF
16333/* confdefs.h. */
16334_ACEOF
16335cat confdefs.h >>conftest.$ac_ext
16336cat >>conftest.$ac_ext <<_ACEOF
16337/* end confdefs.h. */
16338$ac_includes_default
16339int
16340main ()
16341{
16342static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
16343test_array [0] = 0
16344
16345 ;
16346 return 0;
16347}
16348_ACEOF
16349rm -f conftest.$ac_objext
16350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16351 (eval $ac_compile) 2>conftest.er1
a848cd7e 16352 ac_status=$?
ac1cb8d3
VS
16353 grep -v '^ *+' conftest.er1 >conftest.err
16354 rm -f conftest.er1
16355 cat conftest.err >&5
a848cd7e
SC
16356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357 (exit $ac_status); } &&
da4486fb 16358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16360 (eval $ac_try) 2>&5
16361 ac_status=$?
16362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16363 (exit $ac_status); }; } &&
16364 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16366 (eval $ac_try) 2>&5
16367 ac_status=$?
16368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16369 (exit $ac_status); }; }; then
16370 ac_hi=-1 ac_mid=-1
16371 while :; do
16372 cat >conftest.$ac_ext <<_ACEOF
16373/* confdefs.h. */
16374_ACEOF
16375cat confdefs.h >>conftest.$ac_ext
16376cat >>conftest.$ac_ext <<_ACEOF
16377/* end confdefs.h. */
16378$ac_includes_default
16379int
16380main ()
16381{
16382static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
16383test_array [0] = 0
16384
16385 ;
16386 return 0;
16387}
16388_ACEOF
16389rm -f conftest.$ac_objext
16390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16391 (eval $ac_compile) 2>conftest.er1
a848cd7e 16392 ac_status=$?
ac1cb8d3
VS
16393 grep -v '^ *+' conftest.er1 >conftest.err
16394 rm -f conftest.er1
16395 cat conftest.err >&5
a848cd7e
SC
16396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397 (exit $ac_status); } &&
da4486fb 16398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16400 (eval $ac_try) 2>&5
16401 ac_status=$?
16402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403 (exit $ac_status); }; } &&
16404 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16406 (eval $ac_try) 2>&5
16407 ac_status=$?
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); }; }; then
16410 ac_lo=$ac_mid; break
16411else
16412 echo "$as_me: failed program was:" >&5
16413sed 's/^/| /' conftest.$ac_ext >&5
16414
16415ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16416 if test $ac_mid -le $ac_hi; then
16417 ac_lo= ac_hi=
16418 break
16419 fi
16420 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16421fi
ac1cb8d3 16422rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16423 done
16424else
16425 echo "$as_me: failed program was:" >&5
16426sed 's/^/| /' conftest.$ac_ext >&5
16427
16428ac_lo= ac_hi=
16429fi
ac1cb8d3 16430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16431fi
ac1cb8d3 16432rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16433# Binary search between lo and hi bounds.
16434while test "x$ac_lo" != "x$ac_hi"; do
16435 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16436 cat >conftest.$ac_ext <<_ACEOF
16437/* confdefs.h. */
16438_ACEOF
16439cat confdefs.h >>conftest.$ac_ext
16440cat >>conftest.$ac_ext <<_ACEOF
16441/* end confdefs.h. */
16442$ac_includes_default
16443int
16444main ()
16445{
16446static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16447test_array [0] = 0
16448
16449 ;
16450 return 0;
16451}
16452_ACEOF
16453rm -f conftest.$ac_objext
16454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16455 (eval $ac_compile) 2>conftest.er1
a848cd7e 16456 ac_status=$?
ac1cb8d3
VS
16457 grep -v '^ *+' conftest.er1 >conftest.err
16458 rm -f conftest.er1
16459 cat conftest.err >&5
a848cd7e
SC
16460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16461 (exit $ac_status); } &&
da4486fb 16462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16464 (eval $ac_try) 2>&5
16465 ac_status=$?
16466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16467 (exit $ac_status); }; } &&
16468 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16470 (eval $ac_try) 2>&5
16471 ac_status=$?
16472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16473 (exit $ac_status); }; }; then
16474 ac_hi=$ac_mid
16475else
16476 echo "$as_me: failed program was:" >&5
16477sed 's/^/| /' conftest.$ac_ext >&5
16478
16479ac_lo=`expr '(' $ac_mid ')' + 1`
16480fi
ac1cb8d3 16481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16482done
16483case $ac_lo in
16484?*) ac_cv_sizeof_long=$ac_lo;;
16485'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16486See \`config.log' for more details." >&5
16487echo "$as_me: error: cannot compute sizeof (long), 77
16488See \`config.log' for more details." >&2;}
16489 { (exit 1); exit 1; }; } ;;
16490esac
16491else
16492 if test "$cross_compiling" = yes; then
da4486fb
VZ
16493 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16494echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16495 { (exit 1); exit 1; }; }
16496else
16497 cat >conftest.$ac_ext <<_ACEOF
16498/* confdefs.h. */
16499_ACEOF
16500cat confdefs.h >>conftest.$ac_ext
16501cat >>conftest.$ac_ext <<_ACEOF
16502/* end confdefs.h. */
16503$ac_includes_default
16504long longval () { return (long) (sizeof (long)); }
16505unsigned long ulongval () { return (long) (sizeof (long)); }
16506#include <stdio.h>
16507#include <stdlib.h>
16508int
16509main ()
16510{
16511
16512 FILE *f = fopen ("conftest.val", "w");
16513 if (! f)
16514 exit (1);
16515 if (((long) (sizeof (long))) < 0)
16516 {
16517 long i = longval ();
16518 if (i != ((long) (sizeof (long))))
16519 exit (1);
16520 fprintf (f, "%ld\n", i);
16521 }
16522 else
16523 {
16524 unsigned long i = ulongval ();
16525 if (i != ((long) (sizeof (long))))
16526 exit (1);
16527 fprintf (f, "%lu\n", i);
16528 }
16529 exit (ferror (f) || fclose (f) != 0);
16530
16531 ;
16532 return 0;
16533}
16534_ACEOF
16535rm -f conftest$ac_exeext
16536if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16537 (eval $ac_link) 2>&5
16538 ac_status=$?
16539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16542 (eval $ac_try) 2>&5
16543 ac_status=$?
16544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16545 (exit $ac_status); }; }; then
16546 ac_cv_sizeof_long=`cat conftest.val`
16547else
16548 echo "$as_me: program exited with status $ac_status" >&5
16549echo "$as_me: failed program was:" >&5
16550sed 's/^/| /' conftest.$ac_ext >&5
16551
16552( exit $ac_status )
16553{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16554See \`config.log' for more details." >&5
16555echo "$as_me: error: cannot compute sizeof (long), 77
16556See \`config.log' for more details." >&2;}
16557 { (exit 1); exit 1; }; }
16558fi
ac1cb8d3 16559rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16560fi
16561fi
16562rm -f conftest.val
16563else
16564 ac_cv_sizeof_long=0
16565fi
16566fi
16567echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
16568echo "${ECHO_T}$ac_cv_sizeof_long" >&6
16569cat >>confdefs.h <<_ACEOF
16570#define SIZEOF_LONG $ac_cv_sizeof_long
16571_ACEOF
16572
16573
16574echo "$as_me:$LINENO: checking for size_t" >&5
16575echo $ECHO_N "checking for size_t... $ECHO_C" >&6
16576if test "${ac_cv_type_size_t+set}" = set; then
16577 echo $ECHO_N "(cached) $ECHO_C" >&6
16578else
16579 cat >conftest.$ac_ext <<_ACEOF
16580/* confdefs.h. */
16581_ACEOF
16582cat confdefs.h >>conftest.$ac_ext
16583cat >>conftest.$ac_ext <<_ACEOF
16584/* end confdefs.h. */
16585$ac_includes_default
16586int
16587main ()
16588{
16589if ((size_t *) 0)
16590 return 0;
16591if (sizeof (size_t))
16592 return 0;
16593 ;
16594 return 0;
16595}
16596_ACEOF
16597rm -f conftest.$ac_objext
16598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16599 (eval $ac_compile) 2>conftest.er1
a848cd7e 16600 ac_status=$?
ac1cb8d3
VS
16601 grep -v '^ *+' conftest.er1 >conftest.err
16602 rm -f conftest.er1
16603 cat conftest.err >&5
a848cd7e
SC
16604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16605 (exit $ac_status); } &&
da4486fb 16606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16608 (eval $ac_try) 2>&5
16609 ac_status=$?
16610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16611 (exit $ac_status); }; } &&
16612 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16614 (eval $ac_try) 2>&5
16615 ac_status=$?
16616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16617 (exit $ac_status); }; }; then
16618 ac_cv_type_size_t=yes
16619else
16620 echo "$as_me: failed program was:" >&5
16621sed 's/^/| /' conftest.$ac_ext >&5
16622
16623ac_cv_type_size_t=no
16624fi
ac1cb8d3 16625rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16626fi
16627echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16628echo "${ECHO_T}$ac_cv_type_size_t" >&6
16629
16630echo "$as_me:$LINENO: checking size of size_t" >&5
16631echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
16632if test "${ac_cv_sizeof_size_t+set}" = set; then
16633 echo $ECHO_N "(cached) $ECHO_C" >&6
16634else
16635 if test "$ac_cv_type_size_t" = yes; then
16636 # The cast to unsigned long works around a bug in the HP C Compiler
16637 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16638 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16639 # This bug is HP SR number 8606223364.
16640 if test "$cross_compiling" = yes; then
16641 # Depending upon the size, compute the lo and hi bounds.
16642cat >conftest.$ac_ext <<_ACEOF
16643/* confdefs.h. */
16644_ACEOF
16645cat confdefs.h >>conftest.$ac_ext
16646cat >>conftest.$ac_ext <<_ACEOF
16647/* end confdefs.h. */
16648$ac_includes_default
16649int
16650main ()
16651{
16652static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
16653test_array [0] = 0
16654
16655 ;
16656 return 0;
16657}
16658_ACEOF
16659rm -f conftest.$ac_objext
16660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16661 (eval $ac_compile) 2>conftest.er1
a848cd7e 16662 ac_status=$?
ac1cb8d3
VS
16663 grep -v '^ *+' conftest.er1 >conftest.err
16664 rm -f conftest.er1
16665 cat conftest.err >&5
a848cd7e
SC
16666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667 (exit $ac_status); } &&
da4486fb 16668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16670 (eval $ac_try) 2>&5
16671 ac_status=$?
16672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673 (exit $ac_status); }; } &&
16674 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16676 (eval $ac_try) 2>&5
16677 ac_status=$?
16678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16679 (exit $ac_status); }; }; then
16680 ac_lo=0 ac_mid=0
16681 while :; do
16682 cat >conftest.$ac_ext <<_ACEOF
16683/* confdefs.h. */
16684_ACEOF
16685cat confdefs.h >>conftest.$ac_ext
16686cat >>conftest.$ac_ext <<_ACEOF
16687/* end confdefs.h. */
16688$ac_includes_default
16689int
16690main ()
16691{
16692static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16693test_array [0] = 0
16694
16695 ;
16696 return 0;
16697}
16698_ACEOF
16699rm -f conftest.$ac_objext
16700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16701 (eval $ac_compile) 2>conftest.er1
a848cd7e 16702 ac_status=$?
ac1cb8d3
VS
16703 grep -v '^ *+' conftest.er1 >conftest.err
16704 rm -f conftest.er1
16705 cat conftest.err >&5
a848cd7e
SC
16706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707 (exit $ac_status); } &&
da4486fb 16708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16710 (eval $ac_try) 2>&5
16711 ac_status=$?
16712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713 (exit $ac_status); }; } &&
16714 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16716 (eval $ac_try) 2>&5
16717 ac_status=$?
16718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719 (exit $ac_status); }; }; then
16720 ac_hi=$ac_mid; break
16721else
16722 echo "$as_me: failed program was:" >&5
16723sed 's/^/| /' conftest.$ac_ext >&5
16724
16725ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16726 if test $ac_lo -le $ac_mid; then
16727 ac_lo= ac_hi=
16728 break
16729 fi
16730 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16731fi
ac1cb8d3 16732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16733 done
16734else
16735 echo "$as_me: failed program was:" >&5
16736sed 's/^/| /' conftest.$ac_ext >&5
16737
16738cat >conftest.$ac_ext <<_ACEOF
16739/* confdefs.h. */
16740_ACEOF
16741cat confdefs.h >>conftest.$ac_ext
16742cat >>conftest.$ac_ext <<_ACEOF
16743/* end confdefs.h. */
16744$ac_includes_default
16745int
16746main ()
16747{
16748static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
16749test_array [0] = 0
16750
16751 ;
16752 return 0;
16753}
16754_ACEOF
16755rm -f conftest.$ac_objext
16756if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16757 (eval $ac_compile) 2>conftest.er1
a848cd7e 16758 ac_status=$?
ac1cb8d3
VS
16759 grep -v '^ *+' conftest.er1 >conftest.err
16760 rm -f conftest.er1
16761 cat conftest.err >&5
a848cd7e
SC
16762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763 (exit $ac_status); } &&
da4486fb 16764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16766 (eval $ac_try) 2>&5
16767 ac_status=$?
16768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769 (exit $ac_status); }; } &&
16770 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16772 (eval $ac_try) 2>&5
16773 ac_status=$?
16774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775 (exit $ac_status); }; }; then
16776 ac_hi=-1 ac_mid=-1
16777 while :; do
16778 cat >conftest.$ac_ext <<_ACEOF
16779/* confdefs.h. */
16780_ACEOF
16781cat confdefs.h >>conftest.$ac_ext
16782cat >>conftest.$ac_ext <<_ACEOF
16783/* end confdefs.h. */
16784$ac_includes_default
16785int
16786main ()
16787{
16788static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
16789test_array [0] = 0
16790
16791 ;
16792 return 0;
16793}
16794_ACEOF
16795rm -f conftest.$ac_objext
16796if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16797 (eval $ac_compile) 2>conftest.er1
a848cd7e 16798 ac_status=$?
ac1cb8d3
VS
16799 grep -v '^ *+' conftest.er1 >conftest.err
16800 rm -f conftest.er1
16801 cat conftest.err >&5
a848cd7e
SC
16802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803 (exit $ac_status); } &&
da4486fb 16804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16806 (eval $ac_try) 2>&5
16807 ac_status=$?
16808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16809 (exit $ac_status); }; } &&
16810 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16812 (eval $ac_try) 2>&5
16813 ac_status=$?
16814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815 (exit $ac_status); }; }; then
16816 ac_lo=$ac_mid; break
16817else
16818 echo "$as_me: failed program was:" >&5
16819sed 's/^/| /' conftest.$ac_ext >&5
16820
16821ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16822 if test $ac_mid -le $ac_hi; then
16823 ac_lo= ac_hi=
16824 break
16825 fi
16826 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16827fi
ac1cb8d3 16828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16829 done
16830else
16831 echo "$as_me: failed program was:" >&5
16832sed 's/^/| /' conftest.$ac_ext >&5
16833
16834ac_lo= ac_hi=
16835fi
ac1cb8d3 16836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16837fi
ac1cb8d3 16838rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16839# Binary search between lo and hi bounds.
16840while test "x$ac_lo" != "x$ac_hi"; do
16841 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16842 cat >conftest.$ac_ext <<_ACEOF
16843/* confdefs.h. */
16844_ACEOF
16845cat confdefs.h >>conftest.$ac_ext
16846cat >>conftest.$ac_ext <<_ACEOF
16847/* end confdefs.h. */
16848$ac_includes_default
16849int
16850main ()
16851{
16852static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16853test_array [0] = 0
16854
16855 ;
16856 return 0;
16857}
16858_ACEOF
16859rm -f conftest.$ac_objext
16860if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16861 (eval $ac_compile) 2>conftest.er1
a848cd7e 16862 ac_status=$?
ac1cb8d3
VS
16863 grep -v '^ *+' conftest.er1 >conftest.err
16864 rm -f conftest.er1
16865 cat conftest.err >&5
a848cd7e
SC
16866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); } &&
da4486fb 16868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16870 (eval $ac_try) 2>&5
16871 ac_status=$?
16872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873 (exit $ac_status); }; } &&
16874 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16876 (eval $ac_try) 2>&5
16877 ac_status=$?
16878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879 (exit $ac_status); }; }; then
16880 ac_hi=$ac_mid
16881else
16882 echo "$as_me: failed program was:" >&5
16883sed 's/^/| /' conftest.$ac_ext >&5
16884
16885ac_lo=`expr '(' $ac_mid ')' + 1`
16886fi
ac1cb8d3 16887rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16888done
16889case $ac_lo in
16890?*) ac_cv_sizeof_size_t=$ac_lo;;
16891'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16892See \`config.log' for more details." >&5
16893echo "$as_me: error: cannot compute sizeof (size_t), 77
16894See \`config.log' for more details." >&2;}
16895 { (exit 1); exit 1; }; } ;;
16896esac
16897else
16898 if test "$cross_compiling" = yes; then
da4486fb
VZ
16899 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16900echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16901 { (exit 1); exit 1; }; }
16902else
16903 cat >conftest.$ac_ext <<_ACEOF
16904/* confdefs.h. */
16905_ACEOF
16906cat confdefs.h >>conftest.$ac_ext
16907cat >>conftest.$ac_ext <<_ACEOF
16908/* end confdefs.h. */
16909$ac_includes_default
16910long longval () { return (long) (sizeof (size_t)); }
16911unsigned long ulongval () { return (long) (sizeof (size_t)); }
16912#include <stdio.h>
16913#include <stdlib.h>
16914int
16915main ()
16916{
16917
16918 FILE *f = fopen ("conftest.val", "w");
16919 if (! f)
16920 exit (1);
16921 if (((long) (sizeof (size_t))) < 0)
16922 {
16923 long i = longval ();
16924 if (i != ((long) (sizeof (size_t))))
16925 exit (1);
16926 fprintf (f, "%ld\n", i);
16927 }
16928 else
16929 {
16930 unsigned long i = ulongval ();
16931 if (i != ((long) (sizeof (size_t))))
16932 exit (1);
16933 fprintf (f, "%lu\n", i);
16934 }
16935 exit (ferror (f) || fclose (f) != 0);
16936
16937 ;
16938 return 0;
16939}
16940_ACEOF
16941rm -f conftest$ac_exeext
16942if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16943 (eval $ac_link) 2>&5
16944 ac_status=$?
16945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16946 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16948 (eval $ac_try) 2>&5
16949 ac_status=$?
16950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951 (exit $ac_status); }; }; then
16952 ac_cv_sizeof_size_t=`cat conftest.val`
16953else
16954 echo "$as_me: program exited with status $ac_status" >&5
16955echo "$as_me: failed program was:" >&5
16956sed 's/^/| /' conftest.$ac_ext >&5
16957
16958( exit $ac_status )
16959{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16960See \`config.log' for more details." >&5
16961echo "$as_me: error: cannot compute sizeof (size_t), 77
16962See \`config.log' for more details." >&2;}
16963 { (exit 1); exit 1; }; }
16964fi
ac1cb8d3 16965rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16966fi
16967fi
16968rm -f conftest.val
16969else
16970 ac_cv_sizeof_size_t=0
16971fi
16972fi
16973echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
16974echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
16975cat >>confdefs.h <<_ACEOF
16976#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
16977_ACEOF
16978
16979
16980
16981case "${host}" in
16982 arm-*-linux* )
16983 echo "$as_me:$LINENO: checking for long long" >&5
16984echo $ECHO_N "checking for long long... $ECHO_C" >&6
16985if test "${ac_cv_type_long_long+set}" = set; then
16986 echo $ECHO_N "(cached) $ECHO_C" >&6
16987else
16988 cat >conftest.$ac_ext <<_ACEOF
16989/* confdefs.h. */
16990_ACEOF
16991cat confdefs.h >>conftest.$ac_ext
16992cat >>conftest.$ac_ext <<_ACEOF
16993/* end confdefs.h. */
16994$ac_includes_default
16995int
16996main ()
16997{
16998if ((long long *) 0)
16999 return 0;
17000if (sizeof (long long))
17001 return 0;
17002 ;
17003 return 0;
17004}
17005_ACEOF
17006rm -f conftest.$ac_objext
17007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17008 (eval $ac_compile) 2>conftest.er1
a848cd7e 17009 ac_status=$?
ac1cb8d3
VS
17010 grep -v '^ *+' conftest.er1 >conftest.err
17011 rm -f conftest.er1
17012 cat conftest.err >&5
a848cd7e
SC
17013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014 (exit $ac_status); } &&
da4486fb 17015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17017 (eval $ac_try) 2>&5
17018 ac_status=$?
17019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020 (exit $ac_status); }; } &&
17021 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17023 (eval $ac_try) 2>&5
17024 ac_status=$?
17025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026 (exit $ac_status); }; }; then
17027 ac_cv_type_long_long=yes
17028else
17029 echo "$as_me: failed program was:" >&5
17030sed 's/^/| /' conftest.$ac_ext >&5
17031
17032ac_cv_type_long_long=no
17033fi
ac1cb8d3 17034rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17035fi
17036echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17037echo "${ECHO_T}$ac_cv_type_long_long" >&6
17038
17039echo "$as_me:$LINENO: checking size of long long" >&5
17040echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17041if test "${ac_cv_sizeof_long_long+set}" = set; then
17042 echo $ECHO_N "(cached) $ECHO_C" >&6
17043else
17044 if test "$ac_cv_type_long_long" = yes; then
17045 # The cast to unsigned long works around a bug in the HP C Compiler
17046 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17047 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17048 # This bug is HP SR number 8606223364.
17049 if test "$cross_compiling" = yes; then
17050 # Depending upon the size, compute the lo and hi bounds.
17051cat >conftest.$ac_ext <<_ACEOF
17052/* confdefs.h. */
17053_ACEOF
17054cat confdefs.h >>conftest.$ac_ext
17055cat >>conftest.$ac_ext <<_ACEOF
17056/* end confdefs.h. */
17057$ac_includes_default
17058int
17059main ()
17060{
17061static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17062test_array [0] = 0
17063
17064 ;
17065 return 0;
17066}
17067_ACEOF
17068rm -f conftest.$ac_objext
17069if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17070 (eval $ac_compile) 2>conftest.er1
a848cd7e 17071 ac_status=$?
ac1cb8d3
VS
17072 grep -v '^ *+' conftest.er1 >conftest.err
17073 rm -f conftest.er1
17074 cat conftest.err >&5
a848cd7e
SC
17075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076 (exit $ac_status); } &&
da4486fb 17077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17079 (eval $ac_try) 2>&5
17080 ac_status=$?
17081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17082 (exit $ac_status); }; } &&
17083 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17085 (eval $ac_try) 2>&5
17086 ac_status=$?
17087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17088 (exit $ac_status); }; }; then
17089 ac_lo=0 ac_mid=0
17090 while :; do
17091 cat >conftest.$ac_ext <<_ACEOF
17092/* confdefs.h. */
17093_ACEOF
17094cat confdefs.h >>conftest.$ac_ext
17095cat >>conftest.$ac_ext <<_ACEOF
17096/* end confdefs.h. */
17097$ac_includes_default
17098int
17099main ()
17100{
17101static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17102test_array [0] = 0
17103
17104 ;
17105 return 0;
17106}
17107_ACEOF
17108rm -f conftest.$ac_objext
17109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17110 (eval $ac_compile) 2>conftest.er1
a848cd7e 17111 ac_status=$?
ac1cb8d3
VS
17112 grep -v '^ *+' conftest.er1 >conftest.err
17113 rm -f conftest.er1
17114 cat conftest.err >&5
a848cd7e
SC
17115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17116 (exit $ac_status); } &&
da4486fb 17117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17119 (eval $ac_try) 2>&5
17120 ac_status=$?
17121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122 (exit $ac_status); }; } &&
17123 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17125 (eval $ac_try) 2>&5
17126 ac_status=$?
17127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128 (exit $ac_status); }; }; then
17129 ac_hi=$ac_mid; break
17130else
17131 echo "$as_me: failed program was:" >&5
17132sed 's/^/| /' conftest.$ac_ext >&5
17133
17134ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17135 if test $ac_lo -le $ac_mid; then
17136 ac_lo= ac_hi=
17137 break
17138 fi
17139 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17140fi
ac1cb8d3 17141rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17142 done
17143else
17144 echo "$as_me: failed program was:" >&5
17145sed 's/^/| /' conftest.$ac_ext >&5
17146
17147cat >conftest.$ac_ext <<_ACEOF
17148/* confdefs.h. */
17149_ACEOF
17150cat confdefs.h >>conftest.$ac_ext
17151cat >>conftest.$ac_ext <<_ACEOF
17152/* end confdefs.h. */
17153$ac_includes_default
17154int
17155main ()
17156{
17157static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17158test_array [0] = 0
17159
17160 ;
17161 return 0;
17162}
17163_ACEOF
17164rm -f conftest.$ac_objext
17165if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17166 (eval $ac_compile) 2>conftest.er1
a848cd7e 17167 ac_status=$?
ac1cb8d3
VS
17168 grep -v '^ *+' conftest.er1 >conftest.err
17169 rm -f conftest.er1
17170 cat conftest.err >&5
a848cd7e
SC
17171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172 (exit $ac_status); } &&
da4486fb 17173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17175 (eval $ac_try) 2>&5
17176 ac_status=$?
17177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178 (exit $ac_status); }; } &&
17179 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17181 (eval $ac_try) 2>&5
17182 ac_status=$?
17183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17184 (exit $ac_status); }; }; then
17185 ac_hi=-1 ac_mid=-1
17186 while :; do
17187 cat >conftest.$ac_ext <<_ACEOF
17188/* confdefs.h. */
17189_ACEOF
17190cat confdefs.h >>conftest.$ac_ext
17191cat >>conftest.$ac_ext <<_ACEOF
17192/* end confdefs.h. */
17193$ac_includes_default
17194int
17195main ()
17196{
17197static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17198test_array [0] = 0
17199
17200 ;
17201 return 0;
17202}
17203_ACEOF
17204rm -f conftest.$ac_objext
17205if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17206 (eval $ac_compile) 2>conftest.er1
a848cd7e 17207 ac_status=$?
ac1cb8d3
VS
17208 grep -v '^ *+' conftest.er1 >conftest.err
17209 rm -f conftest.er1
17210 cat conftest.err >&5
a848cd7e
SC
17211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17212 (exit $ac_status); } &&
da4486fb 17213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17215 (eval $ac_try) 2>&5
17216 ac_status=$?
17217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218 (exit $ac_status); }; } &&
17219 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17221 (eval $ac_try) 2>&5
17222 ac_status=$?
17223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224 (exit $ac_status); }; }; then
17225 ac_lo=$ac_mid; break
17226else
17227 echo "$as_me: failed program was:" >&5
17228sed 's/^/| /' conftest.$ac_ext >&5
17229
17230ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17231 if test $ac_mid -le $ac_hi; then
17232 ac_lo= ac_hi=
17233 break
17234 fi
17235 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17236fi
ac1cb8d3 17237rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17238 done
17239else
17240 echo "$as_me: failed program was:" >&5
17241sed 's/^/| /' conftest.$ac_ext >&5
17242
17243ac_lo= ac_hi=
17244fi
ac1cb8d3 17245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17246fi
ac1cb8d3 17247rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17248# Binary search between lo and hi bounds.
17249while test "x$ac_lo" != "x$ac_hi"; do
17250 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17251 cat >conftest.$ac_ext <<_ACEOF
17252/* confdefs.h. */
17253_ACEOF
17254cat confdefs.h >>conftest.$ac_ext
17255cat >>conftest.$ac_ext <<_ACEOF
17256/* end confdefs.h. */
17257$ac_includes_default
17258int
17259main ()
17260{
17261static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17262test_array [0] = 0
17263
17264 ;
17265 return 0;
17266}
17267_ACEOF
17268rm -f conftest.$ac_objext
17269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17270 (eval $ac_compile) 2>conftest.er1
a848cd7e 17271 ac_status=$?
ac1cb8d3
VS
17272 grep -v '^ *+' conftest.er1 >conftest.err
17273 rm -f conftest.er1
17274 cat conftest.err >&5
a848cd7e
SC
17275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276 (exit $ac_status); } &&
da4486fb 17277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17279 (eval $ac_try) 2>&5
17280 ac_status=$?
17281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282 (exit $ac_status); }; } &&
17283 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17285 (eval $ac_try) 2>&5
17286 ac_status=$?
17287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288 (exit $ac_status); }; }; then
17289 ac_hi=$ac_mid
17290else
17291 echo "$as_me: failed program was:" >&5
17292sed 's/^/| /' conftest.$ac_ext >&5
17293
17294ac_lo=`expr '(' $ac_mid ')' + 1`
17295fi
ac1cb8d3 17296rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17297done
17298case $ac_lo in
17299?*) ac_cv_sizeof_long_long=$ac_lo;;
17300'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17301See \`config.log' for more details." >&5
17302echo "$as_me: error: cannot compute sizeof (long long), 77
17303See \`config.log' for more details." >&2;}
17304 { (exit 1); exit 1; }; } ;;
17305esac
17306else
17307 if test "$cross_compiling" = yes; then
da4486fb
VZ
17308 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17309echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17310 { (exit 1); exit 1; }; }
17311else
17312 cat >conftest.$ac_ext <<_ACEOF
17313/* confdefs.h. */
17314_ACEOF
17315cat confdefs.h >>conftest.$ac_ext
17316cat >>conftest.$ac_ext <<_ACEOF
17317/* end confdefs.h. */
17318$ac_includes_default
17319long longval () { return (long) (sizeof (long long)); }
17320unsigned long ulongval () { return (long) (sizeof (long long)); }
17321#include <stdio.h>
17322#include <stdlib.h>
17323int
17324main ()
17325{
17326
17327 FILE *f = fopen ("conftest.val", "w");
17328 if (! f)
17329 exit (1);
17330 if (((long) (sizeof (long long))) < 0)
17331 {
17332 long i = longval ();
17333 if (i != ((long) (sizeof (long long))))
17334 exit (1);
17335 fprintf (f, "%ld\n", i);
17336 }
17337 else
17338 {
17339 unsigned long i = ulongval ();
17340 if (i != ((long) (sizeof (long long))))
17341 exit (1);
17342 fprintf (f, "%lu\n", i);
17343 }
17344 exit (ferror (f) || fclose (f) != 0);
17345
17346 ;
17347 return 0;
17348}
17349_ACEOF
17350rm -f conftest$ac_exeext
17351if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17352 (eval $ac_link) 2>&5
17353 ac_status=$?
17354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17355 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17357 (eval $ac_try) 2>&5
17358 ac_status=$?
17359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360 (exit $ac_status); }; }; then
17361 ac_cv_sizeof_long_long=`cat conftest.val`
17362else
17363 echo "$as_me: program exited with status $ac_status" >&5
17364echo "$as_me: failed program was:" >&5
17365sed 's/^/| /' conftest.$ac_ext >&5
17366
17367( exit $ac_status )
17368{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17369See \`config.log' for more details." >&5
17370echo "$as_me: error: cannot compute sizeof (long long), 77
17371See \`config.log' for more details." >&2;}
17372 { (exit 1); exit 1; }; }
17373fi
ac1cb8d3 17374rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17375fi
17376fi
17377rm -f conftest.val
17378else
17379 ac_cv_sizeof_long_long=0
17380fi
17381fi
17382echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17383echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17384cat >>confdefs.h <<_ACEOF
17385#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17386_ACEOF
17387
17388
17389 ;;
17390 *-hp-hpux* )
17391 echo "$as_me:$LINENO: checking for long long" >&5
17392echo $ECHO_N "checking for long long... $ECHO_C" >&6
17393if test "${ac_cv_type_long_long+set}" = set; then
17394 echo $ECHO_N "(cached) $ECHO_C" >&6
17395else
17396 cat >conftest.$ac_ext <<_ACEOF
17397/* confdefs.h. */
17398_ACEOF
17399cat confdefs.h >>conftest.$ac_ext
17400cat >>conftest.$ac_ext <<_ACEOF
17401/* end confdefs.h. */
17402$ac_includes_default
17403int
17404main ()
17405{
17406if ((long long *) 0)
17407 return 0;
17408if (sizeof (long long))
17409 return 0;
17410 ;
17411 return 0;
17412}
17413_ACEOF
17414rm -f conftest.$ac_objext
17415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17416 (eval $ac_compile) 2>conftest.er1
a848cd7e 17417 ac_status=$?
ac1cb8d3
VS
17418 grep -v '^ *+' conftest.er1 >conftest.err
17419 rm -f conftest.er1
17420 cat conftest.err >&5
a848cd7e
SC
17421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422 (exit $ac_status); } &&
da4486fb 17423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17425 (eval $ac_try) 2>&5
17426 ac_status=$?
17427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428 (exit $ac_status); }; } &&
17429 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17431 (eval $ac_try) 2>&5
17432 ac_status=$?
17433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434 (exit $ac_status); }; }; then
17435 ac_cv_type_long_long=yes
17436else
17437 echo "$as_me: failed program was:" >&5
17438sed 's/^/| /' conftest.$ac_ext >&5
17439
17440ac_cv_type_long_long=no
17441fi
ac1cb8d3 17442rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17443fi
17444echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17445echo "${ECHO_T}$ac_cv_type_long_long" >&6
17446
17447echo "$as_me:$LINENO: checking size of long long" >&5
17448echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17449if test "${ac_cv_sizeof_long_long+set}" = set; then
17450 echo $ECHO_N "(cached) $ECHO_C" >&6
17451else
17452 if test "$ac_cv_type_long_long" = yes; then
17453 # The cast to unsigned long works around a bug in the HP C Compiler
17454 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17455 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17456 # This bug is HP SR number 8606223364.
17457 if test "$cross_compiling" = yes; then
17458 # Depending upon the size, compute the lo and hi bounds.
17459cat >conftest.$ac_ext <<_ACEOF
17460/* confdefs.h. */
17461_ACEOF
17462cat confdefs.h >>conftest.$ac_ext
17463cat >>conftest.$ac_ext <<_ACEOF
17464/* end confdefs.h. */
17465$ac_includes_default
17466int
17467main ()
17468{
17469static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17470test_array [0] = 0
17471
17472 ;
17473 return 0;
17474}
17475_ACEOF
17476rm -f conftest.$ac_objext
17477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17478 (eval $ac_compile) 2>conftest.er1
a848cd7e 17479 ac_status=$?
ac1cb8d3
VS
17480 grep -v '^ *+' conftest.er1 >conftest.err
17481 rm -f conftest.er1
17482 cat conftest.err >&5
a848cd7e
SC
17483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484 (exit $ac_status); } &&
da4486fb 17485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17487 (eval $ac_try) 2>&5
17488 ac_status=$?
17489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490 (exit $ac_status); }; } &&
17491 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17493 (eval $ac_try) 2>&5
17494 ac_status=$?
17495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17496 (exit $ac_status); }; }; then
17497 ac_lo=0 ac_mid=0
17498 while :; do
17499 cat >conftest.$ac_ext <<_ACEOF
17500/* confdefs.h. */
17501_ACEOF
17502cat confdefs.h >>conftest.$ac_ext
17503cat >>conftest.$ac_ext <<_ACEOF
17504/* end confdefs.h. */
17505$ac_includes_default
17506int
17507main ()
17508{
17509static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17510test_array [0] = 0
17511
17512 ;
17513 return 0;
17514}
17515_ACEOF
17516rm -f conftest.$ac_objext
17517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17518 (eval $ac_compile) 2>conftest.er1
a848cd7e 17519 ac_status=$?
ac1cb8d3
VS
17520 grep -v '^ *+' conftest.er1 >conftest.err
17521 rm -f conftest.er1
17522 cat conftest.err >&5
a848cd7e
SC
17523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524 (exit $ac_status); } &&
da4486fb 17525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17527 (eval $ac_try) 2>&5
17528 ac_status=$?
17529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17530 (exit $ac_status); }; } &&
17531 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17533 (eval $ac_try) 2>&5
17534 ac_status=$?
17535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17536 (exit $ac_status); }; }; then
17537 ac_hi=$ac_mid; break
17538else
17539 echo "$as_me: failed program was:" >&5
17540sed 's/^/| /' conftest.$ac_ext >&5
17541
17542ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17543 if test $ac_lo -le $ac_mid; then
17544 ac_lo= ac_hi=
17545 break
17546 fi
17547 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17548fi
ac1cb8d3 17549rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17550 done
17551else
17552 echo "$as_me: failed program was:" >&5
17553sed 's/^/| /' conftest.$ac_ext >&5
17554
17555cat >conftest.$ac_ext <<_ACEOF
17556/* confdefs.h. */
17557_ACEOF
17558cat confdefs.h >>conftest.$ac_ext
17559cat >>conftest.$ac_ext <<_ACEOF
17560/* end confdefs.h. */
17561$ac_includes_default
17562int
17563main ()
17564{
17565static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17566test_array [0] = 0
17567
17568 ;
17569 return 0;
17570}
17571_ACEOF
17572rm -f conftest.$ac_objext
17573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17574 (eval $ac_compile) 2>conftest.er1
a848cd7e 17575 ac_status=$?
ac1cb8d3
VS
17576 grep -v '^ *+' conftest.er1 >conftest.err
17577 rm -f conftest.er1
17578 cat conftest.err >&5
a848cd7e
SC
17579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17580 (exit $ac_status); } &&
da4486fb 17581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17583 (eval $ac_try) 2>&5
17584 ac_status=$?
17585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586 (exit $ac_status); }; } &&
17587 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17589 (eval $ac_try) 2>&5
17590 ac_status=$?
17591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592 (exit $ac_status); }; }; then
17593 ac_hi=-1 ac_mid=-1
17594 while :; do
17595 cat >conftest.$ac_ext <<_ACEOF
17596/* confdefs.h. */
17597_ACEOF
17598cat confdefs.h >>conftest.$ac_ext
17599cat >>conftest.$ac_ext <<_ACEOF
17600/* end confdefs.h. */
17601$ac_includes_default
17602int
17603main ()
17604{
17605static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17606test_array [0] = 0
17607
17608 ;
17609 return 0;
17610}
17611_ACEOF
17612rm -f conftest.$ac_objext
17613if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17614 (eval $ac_compile) 2>conftest.er1
a848cd7e 17615 ac_status=$?
ac1cb8d3
VS
17616 grep -v '^ *+' conftest.er1 >conftest.err
17617 rm -f conftest.er1
17618 cat conftest.err >&5
a848cd7e
SC
17619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620 (exit $ac_status); } &&
da4486fb 17621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17623 (eval $ac_try) 2>&5
17624 ac_status=$?
17625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17626 (exit $ac_status); }; } &&
17627 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17629 (eval $ac_try) 2>&5
17630 ac_status=$?
17631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632 (exit $ac_status); }; }; then
17633 ac_lo=$ac_mid; break
17634else
17635 echo "$as_me: failed program was:" >&5
17636sed 's/^/| /' conftest.$ac_ext >&5
17637
17638ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17639 if test $ac_mid -le $ac_hi; then
17640 ac_lo= ac_hi=
17641 break
17642 fi
17643 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17644fi
ac1cb8d3 17645rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17646 done
17647else
17648 echo "$as_me: failed program was:" >&5
17649sed 's/^/| /' conftest.$ac_ext >&5
17650
17651ac_lo= ac_hi=
17652fi
ac1cb8d3 17653rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17654fi
ac1cb8d3 17655rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17656# Binary search between lo and hi bounds.
17657while test "x$ac_lo" != "x$ac_hi"; do
17658 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17659 cat >conftest.$ac_ext <<_ACEOF
17660/* confdefs.h. */
17661_ACEOF
17662cat confdefs.h >>conftest.$ac_ext
17663cat >>conftest.$ac_ext <<_ACEOF
17664/* end confdefs.h. */
17665$ac_includes_default
17666int
17667main ()
17668{
17669static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17670test_array [0] = 0
17671
17672 ;
17673 return 0;
17674}
17675_ACEOF
17676rm -f conftest.$ac_objext
17677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17678 (eval $ac_compile) 2>conftest.er1
a848cd7e 17679 ac_status=$?
ac1cb8d3
VS
17680 grep -v '^ *+' conftest.er1 >conftest.err
17681 rm -f conftest.er1
17682 cat conftest.err >&5
a848cd7e
SC
17683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684 (exit $ac_status); } &&
da4486fb 17685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17687 (eval $ac_try) 2>&5
17688 ac_status=$?
17689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690 (exit $ac_status); }; } &&
17691 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17693 (eval $ac_try) 2>&5
17694 ac_status=$?
17695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696 (exit $ac_status); }; }; then
17697 ac_hi=$ac_mid
17698else
17699 echo "$as_me: failed program was:" >&5
17700sed 's/^/| /' conftest.$ac_ext >&5
17701
17702ac_lo=`expr '(' $ac_mid ')' + 1`
17703fi
ac1cb8d3 17704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17705done
17706case $ac_lo in
17707?*) ac_cv_sizeof_long_long=$ac_lo;;
17708'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17709See \`config.log' for more details." >&5
17710echo "$as_me: error: cannot compute sizeof (long long), 77
17711See \`config.log' for more details." >&2;}
17712 { (exit 1); exit 1; }; } ;;
17713esac
17714else
17715 if test "$cross_compiling" = yes; then
da4486fb
VZ
17716 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17717echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17718 { (exit 1); exit 1; }; }
17719else
17720 cat >conftest.$ac_ext <<_ACEOF
17721/* confdefs.h. */
17722_ACEOF
17723cat confdefs.h >>conftest.$ac_ext
17724cat >>conftest.$ac_ext <<_ACEOF
17725/* end confdefs.h. */
17726$ac_includes_default
17727long longval () { return (long) (sizeof (long long)); }
17728unsigned long ulongval () { return (long) (sizeof (long long)); }
17729#include <stdio.h>
17730#include <stdlib.h>
17731int
17732main ()
17733{
17734
17735 FILE *f = fopen ("conftest.val", "w");
17736 if (! f)
17737 exit (1);
17738 if (((long) (sizeof (long long))) < 0)
17739 {
17740 long i = longval ();
17741 if (i != ((long) (sizeof (long long))))
17742 exit (1);
17743 fprintf (f, "%ld\n", i);
17744 }
17745 else
17746 {
17747 unsigned long i = ulongval ();
17748 if (i != ((long) (sizeof (long long))))
17749 exit (1);
17750 fprintf (f, "%lu\n", i);
17751 }
17752 exit (ferror (f) || fclose (f) != 0);
17753
17754 ;
17755 return 0;
17756}
17757_ACEOF
17758rm -f conftest$ac_exeext
17759if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17760 (eval $ac_link) 2>&5
17761 ac_status=$?
17762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17765 (eval $ac_try) 2>&5
17766 ac_status=$?
17767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768 (exit $ac_status); }; }; then
17769 ac_cv_sizeof_long_long=`cat conftest.val`
17770else
17771 echo "$as_me: program exited with status $ac_status" >&5
17772echo "$as_me: failed program was:" >&5
17773sed 's/^/| /' conftest.$ac_ext >&5
17774
17775( exit $ac_status )
17776{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17777See \`config.log' for more details." >&5
17778echo "$as_me: error: cannot compute sizeof (long long), 77
17779See \`config.log' for more details." >&2;}
17780 { (exit 1); exit 1; }; }
17781fi
ac1cb8d3 17782rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17783fi
17784fi
17785rm -f conftest.val
17786else
17787 ac_cv_sizeof_long_long=0
17788fi
17789fi
17790echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17791echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17792cat >>confdefs.h <<_ACEOF
17793#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17794_ACEOF
17795
17796
17797 if test "$ac_cv_sizeof_long_long" != "0"; then
17798 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
17799 fi
17800 ;;
17801 * )
17802 echo "$as_me:$LINENO: checking for long long" >&5
17803echo $ECHO_N "checking for long long... $ECHO_C" >&6
17804if test "${ac_cv_type_long_long+set}" = set; then
17805 echo $ECHO_N "(cached) $ECHO_C" >&6
17806else
17807 cat >conftest.$ac_ext <<_ACEOF
17808/* confdefs.h. */
17809_ACEOF
17810cat confdefs.h >>conftest.$ac_ext
17811cat >>conftest.$ac_ext <<_ACEOF
17812/* end confdefs.h. */
17813$ac_includes_default
17814int
17815main ()
17816{
17817if ((long long *) 0)
17818 return 0;
17819if (sizeof (long long))
17820 return 0;
17821 ;
17822 return 0;
17823}
17824_ACEOF
17825rm -f conftest.$ac_objext
17826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17827 (eval $ac_compile) 2>conftest.er1
a848cd7e 17828 ac_status=$?
ac1cb8d3
VS
17829 grep -v '^ *+' conftest.er1 >conftest.err
17830 rm -f conftest.er1
17831 cat conftest.err >&5
a848cd7e
SC
17832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833 (exit $ac_status); } &&
da4486fb 17834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17836 (eval $ac_try) 2>&5
17837 ac_status=$?
17838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17839 (exit $ac_status); }; } &&
17840 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17842 (eval $ac_try) 2>&5
17843 ac_status=$?
17844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17845 (exit $ac_status); }; }; then
17846 ac_cv_type_long_long=yes
17847else
17848 echo "$as_me: failed program was:" >&5
17849sed 's/^/| /' conftest.$ac_ext >&5
17850
17851ac_cv_type_long_long=no
17852fi
ac1cb8d3 17853rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17854fi
17855echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17856echo "${ECHO_T}$ac_cv_type_long_long" >&6
17857
17858echo "$as_me:$LINENO: checking size of long long" >&5
17859echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17860if test "${ac_cv_sizeof_long_long+set}" = set; then
17861 echo $ECHO_N "(cached) $ECHO_C" >&6
17862else
17863 if test "$ac_cv_type_long_long" = yes; then
17864 # The cast to unsigned long works around a bug in the HP C Compiler
17865 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17866 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17867 # This bug is HP SR number 8606223364.
17868 if test "$cross_compiling" = yes; then
17869 # Depending upon the size, compute the lo and hi bounds.
17870cat >conftest.$ac_ext <<_ACEOF
17871/* confdefs.h. */
17872_ACEOF
17873cat confdefs.h >>conftest.$ac_ext
17874cat >>conftest.$ac_ext <<_ACEOF
17875/* end confdefs.h. */
17876$ac_includes_default
17877int
17878main ()
17879{
17880static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17881test_array [0] = 0
17882
17883 ;
17884 return 0;
17885}
17886_ACEOF
17887rm -f conftest.$ac_objext
17888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17889 (eval $ac_compile) 2>conftest.er1
a848cd7e 17890 ac_status=$?
ac1cb8d3
VS
17891 grep -v '^ *+' conftest.er1 >conftest.err
17892 rm -f conftest.er1
17893 cat conftest.err >&5
a848cd7e
SC
17894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895 (exit $ac_status); } &&
da4486fb 17896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17898 (eval $ac_try) 2>&5
17899 ac_status=$?
17900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901 (exit $ac_status); }; } &&
17902 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17904 (eval $ac_try) 2>&5
17905 ac_status=$?
17906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17907 (exit $ac_status); }; }; then
17908 ac_lo=0 ac_mid=0
17909 while :; do
17910 cat >conftest.$ac_ext <<_ACEOF
17911/* confdefs.h. */
17912_ACEOF
17913cat confdefs.h >>conftest.$ac_ext
17914cat >>conftest.$ac_ext <<_ACEOF
17915/* end confdefs.h. */
17916$ac_includes_default
17917int
17918main ()
17919{
17920static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17921test_array [0] = 0
17922
17923 ;
17924 return 0;
17925}
17926_ACEOF
17927rm -f conftest.$ac_objext
17928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17929 (eval $ac_compile) 2>conftest.er1
a848cd7e 17930 ac_status=$?
ac1cb8d3
VS
17931 grep -v '^ *+' conftest.er1 >conftest.err
17932 rm -f conftest.er1
17933 cat conftest.err >&5
a848cd7e
SC
17934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935 (exit $ac_status); } &&
da4486fb 17936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17938 (eval $ac_try) 2>&5
17939 ac_status=$?
17940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941 (exit $ac_status); }; } &&
17942 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17944 (eval $ac_try) 2>&5
17945 ac_status=$?
17946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947 (exit $ac_status); }; }; then
17948 ac_hi=$ac_mid; break
17949else
17950 echo "$as_me: failed program was:" >&5
17951sed 's/^/| /' conftest.$ac_ext >&5
17952
17953ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17954 if test $ac_lo -le $ac_mid; then
17955 ac_lo= ac_hi=
17956 break
17957 fi
17958 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17959fi
ac1cb8d3 17960rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17961 done
17962else
17963 echo "$as_me: failed program was:" >&5
17964sed 's/^/| /' conftest.$ac_ext >&5
17965
17966cat >conftest.$ac_ext <<_ACEOF
17967/* confdefs.h. */
17968_ACEOF
17969cat confdefs.h >>conftest.$ac_ext
17970cat >>conftest.$ac_ext <<_ACEOF
17971/* end confdefs.h. */
17972$ac_includes_default
17973int
17974main ()
17975{
17976static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17977test_array [0] = 0
17978
17979 ;
17980 return 0;
17981}
17982_ACEOF
17983rm -f conftest.$ac_objext
17984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17985 (eval $ac_compile) 2>conftest.er1
a848cd7e 17986 ac_status=$?
ac1cb8d3
VS
17987 grep -v '^ *+' conftest.er1 >conftest.err
17988 rm -f conftest.er1
17989 cat conftest.err >&5
a848cd7e
SC
17990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17991 (exit $ac_status); } &&
da4486fb 17992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17994 (eval $ac_try) 2>&5
17995 ac_status=$?
17996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997 (exit $ac_status); }; } &&
17998 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18000 (eval $ac_try) 2>&5
18001 ac_status=$?
18002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18003 (exit $ac_status); }; }; then
18004 ac_hi=-1 ac_mid=-1
18005 while :; do
18006 cat >conftest.$ac_ext <<_ACEOF
18007/* confdefs.h. */
18008_ACEOF
18009cat confdefs.h >>conftest.$ac_ext
18010cat >>conftest.$ac_ext <<_ACEOF
18011/* end confdefs.h. */
18012$ac_includes_default
18013int
18014main ()
18015{
18016static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18017test_array [0] = 0
18018
18019 ;
18020 return 0;
18021}
18022_ACEOF
18023rm -f conftest.$ac_objext
18024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18025 (eval $ac_compile) 2>conftest.er1
a848cd7e 18026 ac_status=$?
ac1cb8d3
VS
18027 grep -v '^ *+' conftest.er1 >conftest.err
18028 rm -f conftest.er1
18029 cat conftest.err >&5
a848cd7e
SC
18030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18031 (exit $ac_status); } &&
da4486fb 18032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18034 (eval $ac_try) 2>&5
18035 ac_status=$?
18036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18037 (exit $ac_status); }; } &&
18038 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18040 (eval $ac_try) 2>&5
18041 ac_status=$?
18042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18043 (exit $ac_status); }; }; then
18044 ac_lo=$ac_mid; break
18045else
18046 echo "$as_me: failed program was:" >&5
18047sed 's/^/| /' conftest.$ac_ext >&5
18048
18049ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18050 if test $ac_mid -le $ac_hi; then
18051 ac_lo= ac_hi=
18052 break
18053 fi
18054 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18055fi
ac1cb8d3 18056rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18057 done
18058else
18059 echo "$as_me: failed program was:" >&5
18060sed 's/^/| /' conftest.$ac_ext >&5
18061
18062ac_lo= ac_hi=
18063fi
ac1cb8d3 18064rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18065fi
ac1cb8d3 18066rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18067# Binary search between lo and hi bounds.
18068while test "x$ac_lo" != "x$ac_hi"; do
18069 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18070 cat >conftest.$ac_ext <<_ACEOF
18071/* confdefs.h. */
18072_ACEOF
18073cat confdefs.h >>conftest.$ac_ext
18074cat >>conftest.$ac_ext <<_ACEOF
18075/* end confdefs.h. */
18076$ac_includes_default
18077int
18078main ()
18079{
18080static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18081test_array [0] = 0
18082
18083 ;
18084 return 0;
18085}
18086_ACEOF
18087rm -f conftest.$ac_objext
18088if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18089 (eval $ac_compile) 2>conftest.er1
a848cd7e 18090 ac_status=$?
ac1cb8d3
VS
18091 grep -v '^ *+' conftest.er1 >conftest.err
18092 rm -f conftest.er1
18093 cat conftest.err >&5
a848cd7e
SC
18094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18095 (exit $ac_status); } &&
da4486fb 18096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18098 (eval $ac_try) 2>&5
18099 ac_status=$?
18100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101 (exit $ac_status); }; } &&
18102 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18104 (eval $ac_try) 2>&5
18105 ac_status=$?
18106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18107 (exit $ac_status); }; }; then
18108 ac_hi=$ac_mid
18109else
18110 echo "$as_me: failed program was:" >&5
18111sed 's/^/| /' conftest.$ac_ext >&5
18112
18113ac_lo=`expr '(' $ac_mid ')' + 1`
18114fi
ac1cb8d3 18115rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18116done
18117case $ac_lo in
18118?*) ac_cv_sizeof_long_long=$ac_lo;;
18119'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18120See \`config.log' for more details." >&5
18121echo "$as_me: error: cannot compute sizeof (long long), 77
18122See \`config.log' for more details." >&2;}
18123 { (exit 1); exit 1; }; } ;;
18124esac
18125else
18126 if test "$cross_compiling" = yes; then
da4486fb
VZ
18127 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18128echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18129 { (exit 1); exit 1; }; }
18130else
18131 cat >conftest.$ac_ext <<_ACEOF
18132/* confdefs.h. */
18133_ACEOF
18134cat confdefs.h >>conftest.$ac_ext
18135cat >>conftest.$ac_ext <<_ACEOF
18136/* end confdefs.h. */
18137$ac_includes_default
18138long longval () { return (long) (sizeof (long long)); }
18139unsigned long ulongval () { return (long) (sizeof (long long)); }
18140#include <stdio.h>
18141#include <stdlib.h>
18142int
18143main ()
18144{
18145
18146 FILE *f = fopen ("conftest.val", "w");
18147 if (! f)
18148 exit (1);
18149 if (((long) (sizeof (long long))) < 0)
18150 {
18151 long i = longval ();
18152 if (i != ((long) (sizeof (long long))))
18153 exit (1);
18154 fprintf (f, "%ld\n", i);
18155 }
18156 else
18157 {
18158 unsigned long i = ulongval ();
18159 if (i != ((long) (sizeof (long long))))
18160 exit (1);
18161 fprintf (f, "%lu\n", i);
18162 }
18163 exit (ferror (f) || fclose (f) != 0);
18164
18165 ;
18166 return 0;
18167}
18168_ACEOF
18169rm -f conftest$ac_exeext
18170if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18171 (eval $ac_link) 2>&5
18172 ac_status=$?
18173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18176 (eval $ac_try) 2>&5
18177 ac_status=$?
18178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18179 (exit $ac_status); }; }; then
18180 ac_cv_sizeof_long_long=`cat conftest.val`
18181else
18182 echo "$as_me: program exited with status $ac_status" >&5
18183echo "$as_me: failed program was:" >&5
18184sed 's/^/| /' conftest.$ac_ext >&5
18185
18186( exit $ac_status )
18187{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18188See \`config.log' for more details." >&5
18189echo "$as_me: error: cannot compute sizeof (long long), 77
18190See \`config.log' for more details." >&2;}
18191 { (exit 1); exit 1; }; }
18192fi
ac1cb8d3 18193rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18194fi
18195fi
18196rm -f conftest.val
18197else
18198 ac_cv_sizeof_long_long=0
18199fi
18200fi
18201echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18202echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18203cat >>confdefs.h <<_ACEOF
18204#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18205_ACEOF
18206
18207
18208esac
18209
18210echo "$as_me:$LINENO: checking size of wchar_t" >&5
18211echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
18212if test "${wx_cv_sizeof_wchar_t+set}" = set; then
18213 echo $ECHO_N "(cached) $ECHO_C" >&6
18214else
18215
18216 if test "$cross_compiling" = yes; then
18217
18218 case "${host}" in
18219 *-pc-msdosdjgpp )
18220 wx_cv_sizeof_wchar_t=0
18221 ;;
18222 * )
18223 wx_cv_sizeof_wchar_t=4
18224 ;;
18225 esac
18226
18227
18228else
18229 cat >conftest.$ac_ext <<_ACEOF
18230/* confdefs.h. */
18231_ACEOF
18232cat confdefs.h >>conftest.$ac_ext
18233cat >>conftest.$ac_ext <<_ACEOF
18234/* end confdefs.h. */
18235
18236 /* DJGPP only has fake wchar_t: */
18237 #ifdef __DJGPP__
18238 # error "fake wchar_t"
18239 #endif
18240 #ifdef HAVE_WCHAR_H
18241 # ifdef __CYGWIN__
18242 # include <stddef.h>
18243 # endif
18244 # include <wchar.h>
18245 #endif
18246 #ifdef HAVE_STDLIB_H
18247 # include <stdlib.h>
18248 #endif
18249 #include <stdio.h>
18250 int main()
18251 {
18252 FILE *f=fopen("conftestval", "w");
18253 if (!f) exit(1);
18254 fprintf(f, "%i", sizeof(wchar_t));
18255 exit(0);
18256 }
18257
18258_ACEOF
18259rm -f conftest$ac_exeext
18260if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18261 (eval $ac_link) 2>&5
18262 ac_status=$?
18263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18264 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18266 (eval $ac_try) 2>&5
18267 ac_status=$?
18268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18269 (exit $ac_status); }; }; then
18270 wx_cv_sizeof_wchar_t=`cat conftestval`
18271else
18272 echo "$as_me: program exited with status $ac_status" >&5
18273echo "$as_me: failed program was:" >&5
18274sed 's/^/| /' conftest.$ac_ext >&5
18275
18276( exit $ac_status )
18277wx_cv_sizeof_wchar_t=0
18278fi
ac1cb8d3 18279rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18280fi
18281
18282fi
18283echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
18284echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
18285
18286cat >>confdefs.h <<_ACEOF
18287#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
18288_ACEOF
18289
18290
ba3d13e1
VZ
18291echo "$as_me:$LINENO: checking for va_copy" >&5
18292echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
18293if test "${wx_cv_func_va_copy+set}" = set; then
18294 echo $ECHO_N "(cached) $ECHO_C" >&6
18295else
18296
18297 cat >conftest.$ac_ext <<_ACEOF
18298
18299 #include <stdarg.h>
18300 void foo(char *f, ...)
18301 {
18302 va_list ap1, ap2;
18303 va_start(ap1, f);
18304 va_copy(ap2, ap1);
18305 va_end(ap2);
18306 va_end(ap1);
18307 }
5886b072
VZ
18308 int main()
18309 {
b902e639
VZ
18310 foo("hi", 17);
18311 return 0;
5886b072 18312 }
ba3d13e1
VZ
18313_ACEOF
18314rm -f conftest.$ac_objext conftest$ac_exeext
18315if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18316 (eval $ac_link) 2>conftest.er1
18317 ac_status=$?
18318 grep -v '^ *+' conftest.er1 >conftest.err
18319 rm -f conftest.er1
18320 cat conftest.err >&5
18321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18322 (exit $ac_status); } &&
da4486fb 18323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
18324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18325 (eval $ac_try) 2>&5
18326 ac_status=$?
18327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18328 (exit $ac_status); }; } &&
18329 { ac_try='test -s conftest$ac_exeext'
18330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18331 (eval $ac_try) 2>&5
18332 ac_status=$?
18333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334 (exit $ac_status); }; }; then
18335 wx_cv_func_va_copy=yes
18336else
18337 echo "$as_me: failed program was:" >&5
18338sed 's/^/| /' conftest.$ac_ext >&5
18339
18340wx_cv_func_va_copy=no
18341
18342fi
18343rm -f conftest.err conftest.$ac_objext \
18344 conftest$ac_exeext conftest.$ac_ext
18345
18346
18347fi
18348echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
18349echo "${ECHO_T}$wx_cv_func_va_copy" >&6
18350
18351if test $wx_cv_func_va_copy = "yes"; then
18352 cat >>confdefs.h <<\_ACEOF
18353#define HAVE_VA_COPY 1
18354_ACEOF
18355
18356else
18357 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
18358echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
18359if test "${wx_cv_type_va_list_lvalue+set}" = set; then
18360 echo $ECHO_N "(cached) $ECHO_C" >&6
18361else
18362
18363 if test "$cross_compiling" = yes; then
18364 wx_cv_type_va_list_lvalue=yes
18365
18366else
18367 cat >conftest.$ac_ext <<_ACEOF
18368
18369 #include <stdarg.h>
18370 int foo(char *f, ...)
18371 {
18372 va_list ap1, ap2;
18373 va_start(ap1, f);
18374 ap2 = ap1;
18375 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
18376 return 1;
18377 va_end(ap2);
18378 va_end(ap1);
18379 return 0;
18380 }
18381 int main()
18382 {
18383 return foo("hi", 17);
18384 }
18385_ACEOF
18386rm -f conftest$ac_exeext
18387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18388 (eval $ac_link) 2>&5
18389 ac_status=$?
18390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18391 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18393 (eval $ac_try) 2>&5
18394 ac_status=$?
18395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18396 (exit $ac_status); }; }; then
18397 wx_cv_type_va_list_lvalue=yes
18398else
18399 echo "$as_me: program exited with status $ac_status" >&5
18400echo "$as_me: failed program was:" >&5
18401sed 's/^/| /' conftest.$ac_ext >&5
18402
18403( exit $ac_status )
18404wx_cv_type_va_list_lvalue=no
18405fi
18406rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18407fi
18408
18409
18410fi
18411echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
18412echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
18413
18414 if test $wx_cv_type_va_list_lvalue != "yes"; then
18415 cat >>confdefs.h <<\_ACEOF
18416#define VA_LIST_IS_ARRAY 1
18417_ACEOF
18418
18419 fi
18420fi
18421
a848cd7e
SC
18422# Check whether --enable-largefile or --disable-largefile was given.
18423if test "${enable_largefile+set}" = set; then
18424 enableval="$enable_largefile"
18425
18426fi;
18427if test "$enable_largefile" != no; then
18428 wx_largefile=no
18429
18430 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18431echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
18432if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18433 echo $ECHO_N "(cached) $ECHO_C" >&6
18434else
18435
18436 cat >conftest.$ac_ext <<_ACEOF
18437/* confdefs.h. */
18438_ACEOF
18439cat confdefs.h >>conftest.$ac_ext
18440cat >>conftest.$ac_ext <<_ACEOF
18441/* end confdefs.h. */
18442#define _FILE_OFFSET_BITS 64
18443 #include <sys/types.h>
18444int
18445main ()
18446{
18447typedef struct {
18448 unsigned int field: sizeof(off_t) == 8;
18449} wxlf;
18450
18451 ;
18452 return 0;
18453}
18454_ACEOF
18455rm -f conftest.$ac_objext
18456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18457 (eval $ac_compile) 2>conftest.er1
a848cd7e 18458 ac_status=$?
ac1cb8d3
VS
18459 grep -v '^ *+' conftest.er1 >conftest.err
18460 rm -f conftest.er1
18461 cat conftest.err >&5
a848cd7e
SC
18462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463 (exit $ac_status); } &&
da4486fb 18464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18466 (eval $ac_try) 2>&5
18467 ac_status=$?
18468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469 (exit $ac_status); }; } &&
18470 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18472 (eval $ac_try) 2>&5
18473 ac_status=$?
18474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475 (exit $ac_status); }; }; then
18476 ac_cv_sys_file_offset_bits=64
18477else
18478 echo "$as_me: failed program was:" >&5
18479sed 's/^/| /' conftest.$ac_ext >&5
18480
18481ac_cv_sys_file_offset_bits=no
18482fi
ac1cb8d3 18483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18484
18485
18486fi
18487echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18488echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
18489
18490 if test "$ac_cv_sys_file_offset_bits" != no; then
18491 wx_largefile=yes
18492 cat >>confdefs.h <<_ACEOF
18493#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18494_ACEOF
18495
18496 fi
18497
18498 if test "x$wx_largefile" != "xyes"; then
18499
18500 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18501echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
18502if test "${ac_cv_sys_large_files+set}" = set; then
18503 echo $ECHO_N "(cached) $ECHO_C" >&6
18504else
18505
18506 cat >conftest.$ac_ext <<_ACEOF
18507/* confdefs.h. */
18508_ACEOF
18509cat confdefs.h >>conftest.$ac_ext
18510cat >>conftest.$ac_ext <<_ACEOF
18511/* end confdefs.h. */
18512#define _LARGE_FILES 1
18513 #include <sys/types.h>
18514int
18515main ()
18516{
18517typedef struct {
18518 unsigned int field: sizeof(off_t) == 8;
18519} wxlf;
18520
18521 ;
18522 return 0;
18523}
18524_ACEOF
18525rm -f conftest.$ac_objext
18526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18527 (eval $ac_compile) 2>conftest.er1
a848cd7e 18528 ac_status=$?
ac1cb8d3
VS
18529 grep -v '^ *+' conftest.er1 >conftest.err
18530 rm -f conftest.er1
18531 cat conftest.err >&5
a848cd7e
SC
18532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18533 (exit $ac_status); } &&
da4486fb 18534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18536 (eval $ac_try) 2>&5
18537 ac_status=$?
18538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18539 (exit $ac_status); }; } &&
18540 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18542 (eval $ac_try) 2>&5
18543 ac_status=$?
18544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18545 (exit $ac_status); }; }; then
18546 ac_cv_sys_large_files=1
18547else
18548 echo "$as_me: failed program was:" >&5
18549sed 's/^/| /' conftest.$ac_ext >&5
18550
18551ac_cv_sys_large_files=no
18552fi
ac1cb8d3 18553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18554
18555
18556fi
18557echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18558echo "${ECHO_T}$ac_cv_sys_large_files" >&6
18559
18560 if test "$ac_cv_sys_large_files" != no; then
18561 wx_largefile=yes
18562 cat >>confdefs.h <<_ACEOF
18563#define _LARGE_FILES $ac_cv_sys_large_files
18564_ACEOF
18565
18566 fi
18567
18568 fi
18569
18570 echo "$as_me:$LINENO: checking if large file support is available" >&5
18571echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
18572 if test "x$wx_largefile" = "xyes"; then
18573 cat >>confdefs.h <<\_ACEOF
18574#define HAVE_LARGEFILE_SUPPORT 1
18575_ACEOF
18576
18577 fi
18578 echo "$as_me:$LINENO: result: $wx_largefile" >&5
18579echo "${ECHO_T}$wx_largefile" >&6
18580fi
18581
5b674b9d
DE
18582
18583if test "x$wx_largefile" = "xyes"; then
18584 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
18585 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
18586 else
18587 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
18588 fi
18589 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
18590echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
18591if test "${ac_cv_sys_largefile_source+set}" = set; then
18592 echo $ECHO_N "(cached) $ECHO_C" >&6
18593else
18594 while :; do
18595 ac_cv_sys_largefile_source=no
18596 cat >conftest.$ac_ext <<_ACEOF
18597/* confdefs.h. */
18598_ACEOF
18599cat confdefs.h >>conftest.$ac_ext
18600cat >>conftest.$ac_ext <<_ACEOF
18601/* end confdefs.h. */
18602#include <stdio.h>
18603int
18604main ()
18605{
18606return !fseeko;
18607 ;
18608 return 0;
18609}
18610_ACEOF
18611rm -f conftest.$ac_objext
18612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18613 (eval $ac_compile) 2>conftest.er1
18614 ac_status=$?
18615 grep -v '^ *+' conftest.er1 >conftest.err
18616 rm -f conftest.er1
18617 cat conftest.err >&5
18618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18619 (exit $ac_status); } &&
da4486fb 18620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
18621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18622 (eval $ac_try) 2>&5
18623 ac_status=$?
18624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18625 (exit $ac_status); }; } &&
18626 { ac_try='test -s conftest.$ac_objext'
18627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18628 (eval $ac_try) 2>&5
18629 ac_status=$?
18630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18631 (exit $ac_status); }; }; then
18632 break
18633else
18634 echo "$as_me: failed program was:" >&5
18635sed 's/^/| /' conftest.$ac_ext >&5
18636
18637fi
18638rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18639 cat >conftest.$ac_ext <<_ACEOF
18640/* confdefs.h. */
18641_ACEOF
18642cat confdefs.h >>conftest.$ac_ext
18643cat >>conftest.$ac_ext <<_ACEOF
18644/* end confdefs.h. */
18645#define _LARGEFILE_SOURCE 1
18646#include <stdio.h>
18647int
18648main ()
18649{
18650return !fseeko;
18651 ;
18652 return 0;
18653}
18654_ACEOF
18655rm -f conftest.$ac_objext
18656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18657 (eval $ac_compile) 2>conftest.er1
18658 ac_status=$?
18659 grep -v '^ *+' conftest.er1 >conftest.err
18660 rm -f conftest.er1
18661 cat conftest.err >&5
18662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18663 (exit $ac_status); } &&
da4486fb 18664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
18665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18666 (eval $ac_try) 2>&5
18667 ac_status=$?
18668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18669 (exit $ac_status); }; } &&
18670 { ac_try='test -s conftest.$ac_objext'
18671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18672 (eval $ac_try) 2>&5
18673 ac_status=$?
18674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675 (exit $ac_status); }; }; then
18676 ac_cv_sys_largefile_source=1; break
18677else
18678 echo "$as_me: failed program was:" >&5
18679sed 's/^/| /' conftest.$ac_ext >&5
18680
18681fi
18682rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18683 break
18684done
18685fi
18686echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18687echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
18688if test "$ac_cv_sys_largefile_source" != no; then
18689
18690cat >>confdefs.h <<_ACEOF
18691#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18692_ACEOF
18693
18694fi
18695rm -f conftest*
18696
18697# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18698# in glibc 2.1.3, but that breaks too many other things.
18699# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18700echo "$as_me:$LINENO: checking for fseeko" >&5
18701echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
18702if test "${ac_cv_func_fseeko+set}" = set; then
18703 echo $ECHO_N "(cached) $ECHO_C" >&6
18704else
18705 cat >conftest.$ac_ext <<_ACEOF
18706/* confdefs.h. */
18707_ACEOF
18708cat confdefs.h >>conftest.$ac_ext
18709cat >>conftest.$ac_ext <<_ACEOF
18710/* end confdefs.h. */
18711#include <stdio.h>
18712int
18713main ()
18714{
18715return fseeko && fseeko (stdin, 0, 0);
18716 ;
18717 return 0;
18718}
18719_ACEOF
18720rm -f conftest.$ac_objext conftest$ac_exeext
18721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18722 (eval $ac_link) 2>conftest.er1
18723 ac_status=$?
18724 grep -v '^ *+' conftest.er1 >conftest.err
18725 rm -f conftest.er1
18726 cat conftest.err >&5
18727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728 (exit $ac_status); } &&
da4486fb 18729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
18730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18731 (eval $ac_try) 2>&5
18732 ac_status=$?
18733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18734 (exit $ac_status); }; } &&
18735 { ac_try='test -s conftest$ac_exeext'
18736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18737 (eval $ac_try) 2>&5
18738 ac_status=$?
18739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18740 (exit $ac_status); }; }; then
18741 ac_cv_func_fseeko=yes
18742else
18743 echo "$as_me: failed program was:" >&5
18744sed 's/^/| /' conftest.$ac_ext >&5
18745
18746ac_cv_func_fseeko=no
18747fi
18748rm -f conftest.err conftest.$ac_objext \
18749 conftest$ac_exeext conftest.$ac_ext
18750fi
18751echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
18752echo "${ECHO_T}$ac_cv_func_fseeko" >&6
18753if test $ac_cv_func_fseeko = yes; then
18754
18755cat >>confdefs.h <<\_ACEOF
18756#define HAVE_FSEEKO 1
18757_ACEOF
18758
18759fi
18760
5b674b9d
DE
18761 if test "$ac_cv_sys_largefile_source" != no; then
18762 WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e
SC
18763 fi
18764 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
18765fi
18766
18767echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
18768echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
18769if test "${ac_cv_c_bigendian+set}" = set; then
18770 echo $ECHO_N "(cached) $ECHO_C" >&6
18771else
18772 ac_cv_c_bigendian=unknown
18773# See if sys/param.h defines the BYTE_ORDER macro.
18774cat >conftest.$ac_ext <<_ACEOF
18775/* confdefs.h. */
18776_ACEOF
18777cat confdefs.h >>conftest.$ac_ext
18778cat >>conftest.$ac_ext <<_ACEOF
18779/* end confdefs.h. */
18780#include <sys/types.h>
18781#include <sys/param.h>
18782int
18783main ()
18784{
18785
18786#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
18787 bogus endian macros
18788#endif
18789 ;
18790 return 0;
18791}
18792_ACEOF
18793rm -f conftest.$ac_objext
18794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18795 (eval $ac_compile) 2>conftest.er1
a848cd7e 18796 ac_status=$?
ac1cb8d3
VS
18797 grep -v '^ *+' conftest.er1 >conftest.err
18798 rm -f conftest.er1
18799 cat conftest.err >&5
a848cd7e
SC
18800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801 (exit $ac_status); } &&
da4486fb 18802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18804 (eval $ac_try) 2>&5
18805 ac_status=$?
18806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18807 (exit $ac_status); }; } &&
18808 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18810 (eval $ac_try) 2>&5
18811 ac_status=$?
18812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18813 (exit $ac_status); }; }; then
18814 # It does; now see whether it defined to BIG_ENDIAN or not.
18815cat >conftest.$ac_ext <<_ACEOF
18816/* confdefs.h. */
18817_ACEOF
18818cat confdefs.h >>conftest.$ac_ext
18819cat >>conftest.$ac_ext <<_ACEOF
18820/* end confdefs.h. */
18821#include <sys/types.h>
18822#include <sys/param.h>
18823int
18824main ()
18825{
18826
18827#if BYTE_ORDER != BIG_ENDIAN
18828 not big endian
18829#endif
18830 ;
18831 return 0;
18832}
18833_ACEOF
18834rm -f conftest.$ac_objext
18835if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18836 (eval $ac_compile) 2>conftest.er1
a848cd7e 18837 ac_status=$?
ac1cb8d3
VS
18838 grep -v '^ *+' conftest.er1 >conftest.err
18839 rm -f conftest.er1
18840 cat conftest.err >&5
a848cd7e
SC
18841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18842 (exit $ac_status); } &&
da4486fb 18843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18845 (eval $ac_try) 2>&5
18846 ac_status=$?
18847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18848 (exit $ac_status); }; } &&
18849 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18851 (eval $ac_try) 2>&5
18852 ac_status=$?
18853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18854 (exit $ac_status); }; }; then
18855 ac_cv_c_bigendian=yes
18856else
18857 echo "$as_me: failed program was:" >&5
18858sed 's/^/| /' conftest.$ac_ext >&5
18859
18860ac_cv_c_bigendian=no
18861fi
ac1cb8d3 18862rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18863else
18864 echo "$as_me: failed program was:" >&5
18865sed 's/^/| /' conftest.$ac_ext >&5
18866
18867fi
ac1cb8d3 18868rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18869if test $ac_cv_c_bigendian = unknown; then
18870if test "$cross_compiling" = yes; then
18871 ac_cv_c_bigendian=unknown
18872else
18873 cat >conftest.$ac_ext <<_ACEOF
18874/* confdefs.h. */
18875_ACEOF
18876cat confdefs.h >>conftest.$ac_ext
18877cat >>conftest.$ac_ext <<_ACEOF
18878/* end confdefs.h. */
18879main () {
18880 /* Are we little or big endian? From Harbison&Steele. */
18881 union
18882 {
18883 long l;
18884 char c[sizeof (long)];
18885 } u;
18886 u.l = 1;
18887 exit (u.c[sizeof (long) - 1] == 1);
18888}
18889_ACEOF
18890rm -f conftest$ac_exeext
18891if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18892 (eval $ac_link) 2>&5
18893 ac_status=$?
18894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18895 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18897 (eval $ac_try) 2>&5
18898 ac_status=$?
18899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18900 (exit $ac_status); }; }; then
18901 ac_cv_c_bigendian=no
18902else
18903 echo "$as_me: program exited with status $ac_status" >&5
18904echo "$as_me: failed program was:" >&5
18905sed 's/^/| /' conftest.$ac_ext >&5
18906
18907( exit $ac_status )
18908ac_cv_c_bigendian=yes
18909fi
ac1cb8d3 18910rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18911fi
18912fi
18913fi
18914echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
18915echo "${ECHO_T}$ac_cv_c_bigendian" >&6
18916if test $ac_cv_c_bigendian = unknown; then
18917 { 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
18918echo "$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;}
18919fi
18920if test $ac_cv_c_bigendian = yes; then
18921 cat >>confdefs.h <<\_ACEOF
18922#define WORDS_BIGENDIAN 1
18923_ACEOF
18924
18925fi
18926
18927
18928ac_ext=cc
18929ac_cpp='$CXXCPP $CPPFLAGS'
18930ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18931ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18932ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18933echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
18934echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
18935if test -z "$CXXCPP"; then
18936 if test "${ac_cv_prog_CXXCPP+set}" = set; then
18937 echo $ECHO_N "(cached) $ECHO_C" >&6
18938else
18939 # Double quotes because CXXCPP needs to be expanded
18940 for CXXCPP in "$CXX -E" "/lib/cpp"
18941 do
18942 ac_preproc_ok=false
18943for ac_cxx_preproc_warn_flag in '' yes
18944do
18945 # Use a header file that comes with gcc, so configuring glibc
18946 # with a fresh cross-compiler works.
18947 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18948 # <limits.h> exists even on freestanding compilers.
18949 # On the NeXT, cc -E runs the code through the compiler's parser,
18950 # not just through cpp. "Syntax error" is here to catch this case.
18951 cat >conftest.$ac_ext <<_ACEOF
18952/* confdefs.h. */
18953_ACEOF
18954cat confdefs.h >>conftest.$ac_ext
18955cat >>conftest.$ac_ext <<_ACEOF
18956/* end confdefs.h. */
18957#ifdef __STDC__
18958# include <limits.h>
18959#else
18960# include <assert.h>
18961#endif
ac1cb8d3 18962 Syntax error
a848cd7e
SC
18963_ACEOF
18964if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18965 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18966 ac_status=$?
18967 grep -v '^ *+' conftest.er1 >conftest.err
18968 rm -f conftest.er1
18969 cat conftest.err >&5
18970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18971 (exit $ac_status); } >/dev/null; then
18972 if test -s conftest.err; then
18973 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18974 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18975 else
18976 ac_cpp_err=
18977 fi
18978else
18979 ac_cpp_err=yes
18980fi
18981if test -z "$ac_cpp_err"; then
18982 :
18983else
18984 echo "$as_me: failed program was:" >&5
18985sed 's/^/| /' conftest.$ac_ext >&5
18986
18987 # Broken: fails on valid input.
18988continue
18989fi
18990rm -f conftest.err conftest.$ac_ext
18991
18992 # OK, works on sane cases. Now check whether non-existent headers
18993 # can be detected and how.
18994 cat >conftest.$ac_ext <<_ACEOF
18995/* confdefs.h. */
18996_ACEOF
18997cat confdefs.h >>conftest.$ac_ext
18998cat >>conftest.$ac_ext <<_ACEOF
18999/* end confdefs.h. */
19000#include <ac_nonexistent.h>
19001_ACEOF
19002if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19003 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19004 ac_status=$?
19005 grep -v '^ *+' conftest.er1 >conftest.err
19006 rm -f conftest.er1
19007 cat conftest.err >&5
19008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19009 (exit $ac_status); } >/dev/null; then
19010 if test -s conftest.err; then
19011 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19012 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
19013 else
19014 ac_cpp_err=
19015 fi
19016else
19017 ac_cpp_err=yes
19018fi
19019if test -z "$ac_cpp_err"; then
19020 # Broken: success on invalid input.
19021continue
19022else
19023 echo "$as_me: failed program was:" >&5
19024sed 's/^/| /' conftest.$ac_ext >&5
19025
19026 # Passes both tests.
19027ac_preproc_ok=:
19028break
19029fi
19030rm -f conftest.err conftest.$ac_ext
19031
19032done
19033# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19034rm -f conftest.err conftest.$ac_ext
19035if $ac_preproc_ok; then
19036 break
19037fi
19038
19039 done
19040 ac_cv_prog_CXXCPP=$CXXCPP
19041
19042fi
19043 CXXCPP=$ac_cv_prog_CXXCPP
19044else
19045 ac_cv_prog_CXXCPP=$CXXCPP
19046fi
19047echo "$as_me:$LINENO: result: $CXXCPP" >&5
19048echo "${ECHO_T}$CXXCPP" >&6
19049ac_preproc_ok=false
19050for ac_cxx_preproc_warn_flag in '' yes
19051do
19052 # Use a header file that comes with gcc, so configuring glibc
19053 # with a fresh cross-compiler works.
19054 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19055 # <limits.h> exists even on freestanding compilers.
19056 # On the NeXT, cc -E runs the code through the compiler's parser,
19057 # not just through cpp. "Syntax error" is here to catch this case.
19058 cat >conftest.$ac_ext <<_ACEOF
19059/* confdefs.h. */
19060_ACEOF
19061cat confdefs.h >>conftest.$ac_ext
19062cat >>conftest.$ac_ext <<_ACEOF
19063/* end confdefs.h. */
19064#ifdef __STDC__
19065# include <limits.h>
19066#else
19067# include <assert.h>
19068#endif
ac1cb8d3 19069 Syntax error
a848cd7e
SC
19070_ACEOF
19071if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19072 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19073 ac_status=$?
19074 grep -v '^ *+' conftest.er1 >conftest.err
19075 rm -f conftest.er1
19076 cat conftest.err >&5
19077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078 (exit $ac_status); } >/dev/null; then
19079 if test -s conftest.err; then
19080 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19081 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
19082 else
19083 ac_cpp_err=
19084 fi
19085else
19086 ac_cpp_err=yes
19087fi
19088if test -z "$ac_cpp_err"; then
19089 :
19090else
19091 echo "$as_me: failed program was:" >&5
19092sed 's/^/| /' conftest.$ac_ext >&5
19093
19094 # Broken: fails on valid input.
19095continue
19096fi
19097rm -f conftest.err conftest.$ac_ext
19098
19099 # OK, works on sane cases. Now check whether non-existent headers
19100 # can be detected and how.
19101 cat >conftest.$ac_ext <<_ACEOF
19102/* confdefs.h. */
19103_ACEOF
19104cat confdefs.h >>conftest.$ac_ext
19105cat >>conftest.$ac_ext <<_ACEOF
19106/* end confdefs.h. */
19107#include <ac_nonexistent.h>
19108_ACEOF
19109if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19110 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19111 ac_status=$?
19112 grep -v '^ *+' conftest.er1 >conftest.err
19113 rm -f conftest.er1
19114 cat conftest.err >&5
19115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19116 (exit $ac_status); } >/dev/null; then
19117 if test -s conftest.err; then
19118 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19119 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
19120 else
19121 ac_cpp_err=
19122 fi
19123else
19124 ac_cpp_err=yes
19125fi
19126if test -z "$ac_cpp_err"; then
19127 # Broken: success on invalid input.
19128continue
19129else
19130 echo "$as_me: failed program was:" >&5
19131sed 's/^/| /' conftest.$ac_ext >&5
19132
19133 # Passes both tests.
19134ac_preproc_ok=:
19135break
19136fi
19137rm -f conftest.err conftest.$ac_ext
19138
19139done
19140# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19141rm -f conftest.err conftest.$ac_ext
19142if $ac_preproc_ok; then
19143 :
19144else
19145 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
19146See \`config.log' for more details." >&5
19147echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
19148See \`config.log' for more details." >&2;}
19149 { (exit 1); exit 1; }; }
19150fi
19151
19152ac_ext=cc
19153ac_cpp='$CXXCPP $CPPFLAGS'
19154ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19155ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19156ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19157
19158
19159
19160
19161
19162 ac_ext=cc
19163ac_cpp='$CXXCPP $CPPFLAGS'
19164ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19165ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19166ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19167
19168
19169
19170for ac_header in iostream
19171do
19172as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19173if eval "test \"\${$as_ac_Header+set}\" = set"; then
19174 echo "$as_me:$LINENO: checking for $ac_header" >&5
19175echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19176if eval "test \"\${$as_ac_Header+set}\" = set"; then
19177 echo $ECHO_N "(cached) $ECHO_C" >&6
19178fi
19179echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19180echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19181else
19182 # Is the header compilable?
19183echo "$as_me:$LINENO: checking $ac_header usability" >&5
19184echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19185cat >conftest.$ac_ext <<_ACEOF
19186/* confdefs.h. */
19187_ACEOF
19188cat confdefs.h >>conftest.$ac_ext
19189cat >>conftest.$ac_ext <<_ACEOF
19190/* end confdefs.h. */
19191$ac_includes_default
19192#include <$ac_header>
19193_ACEOF
19194rm -f conftest.$ac_objext
19195if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19196 (eval $ac_compile) 2>conftest.er1
a848cd7e 19197 ac_status=$?
ac1cb8d3
VS
19198 grep -v '^ *+' conftest.er1 >conftest.err
19199 rm -f conftest.er1
19200 cat conftest.err >&5
a848cd7e
SC
19201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202 (exit $ac_status); } &&
da4486fb 19203 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19205 (eval $ac_try) 2>&5
19206 ac_status=$?
19207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19208 (exit $ac_status); }; } &&
19209 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19211 (eval $ac_try) 2>&5
19212 ac_status=$?
19213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19214 (exit $ac_status); }; }; then
19215 ac_header_compiler=yes
19216else
19217 echo "$as_me: failed program was:" >&5
19218sed 's/^/| /' conftest.$ac_ext >&5
19219
19220ac_header_compiler=no
19221fi
ac1cb8d3 19222rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19223echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19224echo "${ECHO_T}$ac_header_compiler" >&6
19225
19226# Is the header present?
19227echo "$as_me:$LINENO: checking $ac_header presence" >&5
19228echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19229cat >conftest.$ac_ext <<_ACEOF
19230/* confdefs.h. */
19231_ACEOF
19232cat confdefs.h >>conftest.$ac_ext
19233cat >>conftest.$ac_ext <<_ACEOF
19234/* end confdefs.h. */
19235#include <$ac_header>
19236_ACEOF
19237if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19238 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19239 ac_status=$?
19240 grep -v '^ *+' conftest.er1 >conftest.err
19241 rm -f conftest.er1
19242 cat conftest.err >&5
19243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244 (exit $ac_status); } >/dev/null; then
19245 if test -s conftest.err; then
19246 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19247 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
19248 else
19249 ac_cpp_err=
19250 fi
19251else
19252 ac_cpp_err=yes
19253fi
19254if test -z "$ac_cpp_err"; then
19255 ac_header_preproc=yes
19256else
19257 echo "$as_me: failed program was:" >&5
19258sed 's/^/| /' conftest.$ac_ext >&5
19259
19260 ac_header_preproc=no
19261fi
19262rm -f conftest.err conftest.$ac_ext
19263echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19264echo "${ECHO_T}$ac_header_preproc" >&6
19265
19266# So? What about this header?
ac1cb8d3
VS
19267case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19268 yes:no: )
a848cd7e
SC
19269 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19270echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
19271 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19272echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19273 ac_header_preproc=yes
a848cd7e 19274 ;;
ac1cb8d3 19275 no:yes:* )
a848cd7e
SC
19276 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19277echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
19278 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19279echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19280 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19281echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19282 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19283echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
19284 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19285echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
19286 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19287echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
19288 (
19289 cat <<\_ASBOX
ac1cb8d3
VS
19290## ----------------------------------------- ##
19291## Report this to wx-dev@lists.wxwidgets.org ##
19292## ----------------------------------------- ##
a848cd7e
SC
19293_ASBOX
19294 ) |
19295 sed "s/^/$as_me: WARNING: /" >&2
19296 ;;
19297esac
19298echo "$as_me:$LINENO: checking for $ac_header" >&5
19299echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19300if eval "test \"\${$as_ac_Header+set}\" = set"; then
19301 echo $ECHO_N "(cached) $ECHO_C" >&6
19302else
ac1cb8d3 19303 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
19304fi
19305echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19306echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19307
19308fi
19309if test `eval echo '${'$as_ac_Header'}'` = yes; then
19310 cat >>confdefs.h <<_ACEOF
19311#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19312_ACEOF
19313
19314fi
19315
19316done
19317
19318
19319 if test "$ac_cv_header_iostream" = "yes" ; then
19320 :
19321 else
19322 cat >>confdefs.h <<\_ACEOF
19323#define wxUSE_IOSTREAMH 1
19324_ACEOF
19325
19326 fi
19327
19328 ac_ext=c
19329ac_cpp='$CPP $CPPFLAGS'
19330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19332ac_compiler_gnu=$ac_cv_c_compiler_gnu
19333
19334
19335
19336
19337 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
19338echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
19339if test "${wx_cv_cpp_bool+set}" = set; then
19340 echo $ECHO_N "(cached) $ECHO_C" >&6
19341else
19342
19343
19344
19345 ac_ext=cc
19346ac_cpp='$CXXCPP $CPPFLAGS'
19347ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19348ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19349ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19350
19351
19352 cat >conftest.$ac_ext <<_ACEOF
19353/* confdefs.h. */
19354_ACEOF
19355cat confdefs.h >>conftest.$ac_ext
19356cat >>conftest.$ac_ext <<_ACEOF
19357/* end confdefs.h. */
19358
19359
19360int
19361main ()
19362{
19363
19364 bool b = true;
19365
19366 return 0;
19367
19368 ;
19369 return 0;
19370}
19371_ACEOF
19372rm -f conftest.$ac_objext
19373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19374 (eval $ac_compile) 2>conftest.er1
a848cd7e 19375 ac_status=$?
ac1cb8d3
VS
19376 grep -v '^ *+' conftest.er1 >conftest.err
19377 rm -f conftest.er1
19378 cat conftest.err >&5
a848cd7e
SC
19379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19380 (exit $ac_status); } &&
da4486fb 19381 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19383 (eval $ac_try) 2>&5
19384 ac_status=$?
19385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386 (exit $ac_status); }; } &&
19387 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19389 (eval $ac_try) 2>&5
19390 ac_status=$?
19391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392 (exit $ac_status); }; }; then
19393
19394 wx_cv_cpp_bool=yes
19395
19396else
19397 echo "$as_me: failed program was:" >&5
19398sed 's/^/| /' conftest.$ac_ext >&5
19399
19400
19401 wx_cv_cpp_bool=no
19402
19403
19404fi
ac1cb8d3 19405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19406
19407 ac_ext=c
19408ac_cpp='$CPP $CPPFLAGS'
19409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19411ac_compiler_gnu=$ac_cv_c_compiler_gnu
19412
19413
19414fi
19415echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
19416echo "${ECHO_T}$wx_cv_cpp_bool" >&6
19417
19418 if test "$wx_cv_cpp_bool" = "yes"; then
19419 cat >>confdefs.h <<\_ACEOF
19420#define HAVE_BOOL 1
19421_ACEOF
19422
19423 fi
19424
19425
19426
19427 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
19428echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
19429if test "${wx_cv_explicit+set}" = set; then
19430 echo $ECHO_N "(cached) $ECHO_C" >&6
19431else
19432
19433
19434
19435 ac_ext=cc
19436ac_cpp='$CXXCPP $CPPFLAGS'
19437ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19438ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19439ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19440
19441
19442 cat >conftest.$ac_ext <<_ACEOF
19443/* confdefs.h. */
19444_ACEOF
19445cat confdefs.h >>conftest.$ac_ext
19446cat >>conftest.$ac_ext <<_ACEOF
19447/* end confdefs.h. */
19448
19449 class Foo { public: explicit Foo(int) {} };
19450
19451int
19452main ()
19453{
19454
19455 return 0;
19456
19457 ;
19458 return 0;
19459}
19460_ACEOF
19461rm -f conftest.$ac_objext
19462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19463 (eval $ac_compile) 2>conftest.er1
a848cd7e 19464 ac_status=$?
ac1cb8d3
VS
19465 grep -v '^ *+' conftest.er1 >conftest.err
19466 rm -f conftest.er1
19467 cat conftest.err >&5
a848cd7e
SC
19468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19469 (exit $ac_status); } &&
da4486fb 19470 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19472 (eval $ac_try) 2>&5
19473 ac_status=$?
19474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475 (exit $ac_status); }; } &&
19476 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19478 (eval $ac_try) 2>&5
19479 ac_status=$?
19480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481 (exit $ac_status); }; }; then
19482
19483 cat >conftest.$ac_ext <<_ACEOF
19484/* confdefs.h. */
19485_ACEOF
19486cat confdefs.h >>conftest.$ac_ext
19487cat >>conftest.$ac_ext <<_ACEOF
19488/* end confdefs.h. */
19489
19490 class Foo { public: explicit Foo(int) {} };
19491 static void TakeFoo(const Foo& foo) { }
19492
19493int
19494main ()
19495{
19496
19497 TakeFoo(17);
19498 return 0;
19499
19500 ;
19501 return 0;
19502}
19503_ACEOF
19504rm -f conftest.$ac_objext
19505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19506 (eval $ac_compile) 2>conftest.er1
a848cd7e 19507 ac_status=$?
ac1cb8d3
VS
19508 grep -v '^ *+' conftest.er1 >conftest.err
19509 rm -f conftest.er1
19510 cat conftest.err >&5
a848cd7e
SC
19511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512 (exit $ac_status); } &&
da4486fb 19513 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19515 (eval $ac_try) 2>&5
19516 ac_status=$?
19517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518 (exit $ac_status); }; } &&
19519 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19521 (eval $ac_try) 2>&5
19522 ac_status=$?
19523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524 (exit $ac_status); }; }; then
19525 wx_cv_explicit=no
19526else
19527 echo "$as_me: failed program was:" >&5
19528sed 's/^/| /' conftest.$ac_ext >&5
19529
19530wx_cv_explicit=yes
19531
19532fi
ac1cb8d3 19533rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19534
19535else
19536 echo "$as_me: failed program was:" >&5
19537sed 's/^/| /' conftest.$ac_ext >&5
19538
19539wx_cv_explicit=no
19540
19541fi
ac1cb8d3 19542rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19543
19544 ac_ext=c
19545ac_cpp='$CPP $CPPFLAGS'
19546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19548ac_compiler_gnu=$ac_cv_c_compiler_gnu
19549
19550
19551fi
19552echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
19553echo "${ECHO_T}$wx_cv_explicit" >&6
19554
19555 if test "$wx_cv_explicit" = "yes"; then
19556 cat >>confdefs.h <<\_ACEOF
19557#define HAVE_EXPLICIT 1
19558_ACEOF
19559
19560 fi
19561
19562
19563echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
19564echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
19565if test "${ac_cv_cxx_const_cast+set}" = set; then
19566 echo $ECHO_N "(cached) $ECHO_C" >&6
19567else
19568
19569
19570 ac_ext=cc
19571ac_cpp='$CXXCPP $CPPFLAGS'
19572ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19573ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19574ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19575
19576 cat >conftest.$ac_ext <<_ACEOF
19577/* confdefs.h. */
19578_ACEOF
19579cat confdefs.h >>conftest.$ac_ext
19580cat >>conftest.$ac_ext <<_ACEOF
19581/* end confdefs.h. */
19582
19583int
19584main ()
19585{
19586int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
19587 ;
19588 return 0;
19589}
19590_ACEOF
19591rm -f conftest.$ac_objext
19592if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19593 (eval $ac_compile) 2>conftest.er1
a848cd7e 19594 ac_status=$?
ac1cb8d3
VS
19595 grep -v '^ *+' conftest.er1 >conftest.err
19596 rm -f conftest.er1
19597 cat conftest.err >&5
a848cd7e
SC
19598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19599 (exit $ac_status); } &&
da4486fb 19600 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19602 (eval $ac_try) 2>&5
19603 ac_status=$?
19604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19605 (exit $ac_status); }; } &&
19606 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19608 (eval $ac_try) 2>&5
19609 ac_status=$?
19610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611 (exit $ac_status); }; }; then
19612 ac_cv_cxx_const_cast=yes
19613else
19614 echo "$as_me: failed program was:" >&5
19615sed 's/^/| /' conftest.$ac_ext >&5
19616
19617ac_cv_cxx_const_cast=no
19618fi
ac1cb8d3 19619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19620 ac_ext=c
19621ac_cpp='$CPP $CPPFLAGS'
19622ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19623ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19624ac_compiler_gnu=$ac_cv_c_compiler_gnu
19625
19626
19627fi
19628echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
19629echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
19630if test "$ac_cv_cxx_const_cast" = yes; then
19631
19632cat >>confdefs.h <<\_ACEOF
19633#define HAVE_CONST_CAST
19634_ACEOF
19635
19636fi
19637
7714864e
RL
19638echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
19639echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
19640if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
19641 echo $ECHO_N "(cached) $ECHO_C" >&6
19642else
19643
19644
19645 ac_ext=cc
19646ac_cpp='$CXXCPP $CPPFLAGS'
19647ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19648ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19649ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19650
19651 cat >conftest.$ac_ext <<_ACEOF
19652/* confdefs.h. */
19653_ACEOF
19654cat confdefs.h >>conftest.$ac_ext
19655cat >>conftest.$ac_ext <<_ACEOF
19656/* end confdefs.h. */
19657#include <typeinfo>
19658class Base { public : Base () {} virtual void f () = 0;};
19659class Derived : public Base { public : Derived () {} virtual void f () {} };
19660class Unrelated { public : Unrelated () {} };
19661int g (Unrelated&) { return 0; }
19662int
19663main ()
19664{
19665
19666Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
19667 ;
19668 return 0;
19669}
19670_ACEOF
19671rm -f conftest.$ac_objext
19672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19673 (eval $ac_compile) 2>conftest.er1
19674 ac_status=$?
19675 grep -v '^ *+' conftest.er1 >conftest.err
19676 rm -f conftest.er1
19677 cat conftest.err >&5
19678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19679 (exit $ac_status); } &&
da4486fb 19680 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
19681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19682 (eval $ac_try) 2>&5
19683 ac_status=$?
19684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19685 (exit $ac_status); }; } &&
19686 { ac_try='test -s conftest.$ac_objext'
19687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19688 (eval $ac_try) 2>&5
19689 ac_status=$?
19690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691 (exit $ac_status); }; }; then
19692 ac_cv_cxx_reinterpret_cast=yes
19693else
19694 echo "$as_me: failed program was:" >&5
19695sed 's/^/| /' conftest.$ac_ext >&5
19696
19697ac_cv_cxx_reinterpret_cast=no
19698fi
19699rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19700 ac_ext=c
19701ac_cpp='$CPP $CPPFLAGS'
19702ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19703ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19704ac_compiler_gnu=$ac_cv_c_compiler_gnu
19705
19706
19707fi
19708echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
19709echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
19710if test "$ac_cv_cxx_reinterpret_cast" = yes; then
19711
19712cat >>confdefs.h <<\_ACEOF
19713#define HAVE_REINTERPRET_CAST
19714_ACEOF
19715
19716fi
19717
a848cd7e
SC
19718echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
19719echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
19720if test "${ac_cv_cxx_static_cast+set}" = set; then
19721 echo $ECHO_N "(cached) $ECHO_C" >&6
19722else
19723
19724
19725 ac_ext=cc
19726ac_cpp='$CXXCPP $CPPFLAGS'
19727ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19728ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19729ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19730
19731 cat >conftest.$ac_ext <<_ACEOF
19732/* confdefs.h. */
19733_ACEOF
19734cat confdefs.h >>conftest.$ac_ext
19735cat >>conftest.$ac_ext <<_ACEOF
19736/* end confdefs.h. */
19737#include <typeinfo>
19738class Base { public : Base () {} virtual void f () = 0; };
19739class Derived : public Base { public : Derived () {} virtual void f () {} };
19740int g (Derived&) { return 0; }
19741int
19742main ()
19743{
19744
19745Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
19746 ;
19747 return 0;
19748}
19749_ACEOF
19750rm -f conftest.$ac_objext
19751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19752 (eval $ac_compile) 2>conftest.er1
a848cd7e 19753 ac_status=$?
ac1cb8d3
VS
19754 grep -v '^ *+' conftest.er1 >conftest.err
19755 rm -f conftest.er1
19756 cat conftest.err >&5
a848cd7e
SC
19757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758 (exit $ac_status); } &&
da4486fb 19759 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19761 (eval $ac_try) 2>&5
19762 ac_status=$?
19763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19764 (exit $ac_status); }; } &&
19765 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19767 (eval $ac_try) 2>&5
19768 ac_status=$?
19769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19770 (exit $ac_status); }; }; then
19771 ac_cv_cxx_static_cast=yes
19772else
19773 echo "$as_me: failed program was:" >&5
19774sed 's/^/| /' conftest.$ac_ext >&5
19775
19776ac_cv_cxx_static_cast=no
19777fi
ac1cb8d3 19778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19779 ac_ext=c
19780ac_cpp='$CPP $CPPFLAGS'
19781ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19782ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19783ac_compiler_gnu=$ac_cv_c_compiler_gnu
19784
19785
19786fi
19787echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
19788echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
19789if test "$ac_cv_cxx_static_cast" = yes; then
19790
19791cat >>confdefs.h <<\_ACEOF
19792#define HAVE_STATIC_CAST
19793_ACEOF
19794
19795fi
19796
19797
19798if test "$wxUSE_STL" = "yes"; then
19799 ac_ext=cc
19800ac_cpp='$CXXCPP $CPPFLAGS'
19801ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19802ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19803ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19804
19805
19806 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
19807echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
19808 cat >conftest.$ac_ext <<_ACEOF
19809/* confdefs.h. */
19810_ACEOF
19811cat confdefs.h >>conftest.$ac_ext
19812cat >>conftest.$ac_ext <<_ACEOF
19813/* end confdefs.h. */
19814#include <string>
19815 #include <functional>
19816 #include <algorithm>
19817 #include <vector>
19818 #include <list>
19819int
19820main ()
19821{
19822std::vector<int> moo;
19823 std::list<int> foo;
19824 std::vector<int>::iterator it =
19825 std::find_if(moo.begin(), moo.end(),
19826 std::bind2nd(std::less<int>(), 3));
19827 ;
19828 return 0;
19829}
19830_ACEOF
19831rm -f conftest.$ac_objext
19832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19833 (eval $ac_compile) 2>conftest.er1
a848cd7e 19834 ac_status=$?
ac1cb8d3
VS
19835 grep -v '^ *+' conftest.er1 >conftest.err
19836 rm -f conftest.er1
19837 cat conftest.err >&5
a848cd7e
SC
19838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19839 (exit $ac_status); } &&
da4486fb 19840 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19842 (eval $ac_try) 2>&5
19843 ac_status=$?
19844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19845 (exit $ac_status); }; } &&
19846 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19848 (eval $ac_try) 2>&5
19849 ac_status=$?
19850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19851 (exit $ac_status); }; }; then
19852 echo "$as_me:$LINENO: result: yes" >&5
19853echo "${ECHO_T}yes" >&6
19854else
19855 echo "$as_me: failed program was:" >&5
19856sed 's/^/| /' conftest.$ac_ext >&5
19857
19858echo "$as_me:$LINENO: result: no" >&5
19859echo "${ECHO_T}no" >&6
19860 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
19861echo "$as_me: error: Basic STL functionality missing" >&2;}
19862 { (exit 1); exit 1; }; }
19863fi
ac1cb8d3 19864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19865
19866 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
19867echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
19868 cat >conftest.$ac_ext <<_ACEOF
19869/* confdefs.h. */
19870_ACEOF
19871cat confdefs.h >>conftest.$ac_ext
19872cat >>conftest.$ac_ext <<_ACEOF
19873/* end confdefs.h. */
19874#include <string>
19875int
19876main ()
19877{
19878std::wstring foo;
19879 ;
19880 return 0;
19881}
19882_ACEOF
19883rm -f conftest.$ac_objext
19884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19885 (eval $ac_compile) 2>conftest.er1
a848cd7e 19886 ac_status=$?
ac1cb8d3
VS
19887 grep -v '^ *+' conftest.er1 >conftest.err
19888 rm -f conftest.er1
19889 cat conftest.err >&5
a848cd7e
SC
19890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891 (exit $ac_status); } &&
da4486fb 19892 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19894 (eval $ac_try) 2>&5
19895 ac_status=$?
19896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19897 (exit $ac_status); }; } &&
19898 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19900 (eval $ac_try) 2>&5
19901 ac_status=$?
19902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19903 (exit $ac_status); }; }; then
19904 echo "$as_me:$LINENO: result: yes" >&5
19905echo "${ECHO_T}yes" >&6
19906 cat >>confdefs.h <<\_ACEOF
19907#define HAVE_STD_WSTRING 1
19908_ACEOF
19909
19910else
19911 echo "$as_me: failed program was:" >&5
19912sed 's/^/| /' conftest.$ac_ext >&5
19913
19914echo "$as_me:$LINENO: result: no" >&5
19915echo "${ECHO_T}no" >&6
19916fi
ac1cb8d3 19917rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19918
19919 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
19920echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
19921 cat >conftest.$ac_ext <<_ACEOF
19922/* confdefs.h. */
19923_ACEOF
19924cat confdefs.h >>conftest.$ac_ext
19925cat >>conftest.$ac_ext <<_ACEOF
19926/* end confdefs.h. */
19927#include <string>
19928int
19929main ()
19930{
19931std::string foo, bar;
19932 foo.compare(bar);
19933 foo.compare(1, 1, bar);
19934 foo.compare(1, 1, bar, 1, 1);
19935 foo.compare("");
19936 foo.compare(1, 1, "");
19937 foo.compare(1, 1, "", 2);
19938 ;
19939 return 0;
19940}
19941_ACEOF
19942rm -f conftest.$ac_objext
19943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19944 (eval $ac_compile) 2>conftest.er1
a848cd7e 19945 ac_status=$?
ac1cb8d3
VS
19946 grep -v '^ *+' conftest.er1 >conftest.err
19947 rm -f conftest.er1
19948 cat conftest.err >&5
a848cd7e
SC
19949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950 (exit $ac_status); } &&
da4486fb 19951 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19953 (eval $ac_try) 2>&5
19954 ac_status=$?
19955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956 (exit $ac_status); }; } &&
19957 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19959 (eval $ac_try) 2>&5
19960 ac_status=$?
19961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19962 (exit $ac_status); }; }; then
19963 echo "$as_me:$LINENO: result: yes" >&5
19964echo "${ECHO_T}yes" >&6
19965 cat >>confdefs.h <<\_ACEOF
19966#define HAVE_STD_STRING_COMPARE 1
19967_ACEOF
19968
19969else
19970 echo "$as_me: failed program was:" >&5
19971sed 's/^/| /' conftest.$ac_ext >&5
19972
19973echo "$as_me:$LINENO: result: no" >&5
19974echo "${ECHO_T}no" >&6
19975fi
ac1cb8d3 19976rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19977
19978 if test "${ac_cv_header_hash_map+set}" = set; then
19979 echo "$as_me:$LINENO: checking for hash_map" >&5
19980echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
19981if test "${ac_cv_header_hash_map+set}" = set; then
19982 echo $ECHO_N "(cached) $ECHO_C" >&6
19983fi
19984echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
19985echo "${ECHO_T}$ac_cv_header_hash_map" >&6
19986else
19987 # Is the header compilable?
19988echo "$as_me:$LINENO: checking hash_map usability" >&5
19989echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
19990cat >conftest.$ac_ext <<_ACEOF
19991/* confdefs.h. */
19992_ACEOF
19993cat confdefs.h >>conftest.$ac_ext
19994cat >>conftest.$ac_ext <<_ACEOF
19995/* end confdefs.h. */
19996$ac_includes_default
19997#include <hash_map>
19998_ACEOF
19999rm -f conftest.$ac_objext
20000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20001 (eval $ac_compile) 2>conftest.er1
bdcade0a 20002 ac_status=$?
ac1cb8d3
VS
20003 grep -v '^ *+' conftest.er1 >conftest.err
20004 rm -f conftest.er1
20005 cat conftest.err >&5
bdcade0a
MB
20006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20007 (exit $ac_status); } &&
da4486fb 20008 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20010 (eval $ac_try) 2>&5
20011 ac_status=$?
20012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20013 (exit $ac_status); }; } &&
20014 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
20015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20016 (eval $ac_try) 2>&5
20017 ac_status=$?
20018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20019 (exit $ac_status); }; }; then
20020 ac_header_compiler=yes
20021else
20022 echo "$as_me: failed program was:" >&5
20023sed 's/^/| /' conftest.$ac_ext >&5
20024
20025ac_header_compiler=no
20026fi
ac1cb8d3 20027rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20028echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20029echo "${ECHO_T}$ac_header_compiler" >&6
20030
20031# Is the header present?
20032echo "$as_me:$LINENO: checking hash_map presence" >&5
20033echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
20034cat >conftest.$ac_ext <<_ACEOF
20035/* confdefs.h. */
20036_ACEOF
20037cat confdefs.h >>conftest.$ac_ext
20038cat >>conftest.$ac_ext <<_ACEOF
20039/* end confdefs.h. */
20040#include <hash_map>
20041_ACEOF
20042if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20043 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20044 ac_status=$?
20045 grep -v '^ *+' conftest.er1 >conftest.err
20046 rm -f conftest.er1
20047 cat conftest.err >&5
20048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20049 (exit $ac_status); } >/dev/null; then
20050 if test -s conftest.err; then
20051 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20052 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
20053 else
20054 ac_cpp_err=
20055 fi
20056else
20057 ac_cpp_err=yes
20058fi
20059if test -z "$ac_cpp_err"; then
20060 ac_header_preproc=yes
20061else
20062 echo "$as_me: failed program was:" >&5
20063sed 's/^/| /' conftest.$ac_ext >&5
20064
20065 ac_header_preproc=no
20066fi
20067rm -f conftest.err conftest.$ac_ext
20068echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20069echo "${ECHO_T}$ac_header_preproc" >&6
20070
20071# So? What about this header?
ac1cb8d3
VS
20072case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20073 yes:no: )
bdcade0a
MB
20074 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
20075echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20076 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
20077echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
20078 ac_header_preproc=yes
bdcade0a 20079 ;;
ac1cb8d3 20080 no:yes:* )
bdcade0a
MB
20081 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
20082echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20083 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
20084echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
20085 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
20086echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
20087 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
20088echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
20089 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
20090echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20091 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
20092echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
20093 (
20094 cat <<\_ASBOX
ac1cb8d3
VS
20095## ----------------------------------------- ##
20096## Report this to wx-dev@lists.wxwidgets.org ##
20097## ----------------------------------------- ##
bdcade0a
MB
20098_ASBOX
20099 ) |
20100 sed "s/^/$as_me: WARNING: /" >&2
20101 ;;
20102esac
20103echo "$as_me:$LINENO: checking for hash_map" >&5
20104echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
20105if test "${ac_cv_header_hash_map+set}" = set; then
20106 echo $ECHO_N "(cached) $ECHO_C" >&6
20107else
20108 ac_cv_header_hash_map=$ac_header_preproc
20109fi
20110echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
20111echo "${ECHO_T}$ac_cv_header_hash_map" >&6
20112
20113fi
20114if test $ac_cv_header_hash_map = yes; then
20115 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
20116echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
20117 cat >conftest.$ac_ext <<_ACEOF
20118/* confdefs.h. */
20119_ACEOF
20120cat confdefs.h >>conftest.$ac_ext
20121cat >>conftest.$ac_ext <<_ACEOF
20122/* end confdefs.h. */
20123#include <hash_map>
20124 #include <hash_set>
20125int
20126main ()
20127{
20128std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
20129 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
20130 ;
20131 return 0;
20132}
20133_ACEOF
20134rm -f conftest.$ac_objext
20135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20136 (eval $ac_compile) 2>conftest.er1
bdcade0a 20137 ac_status=$?
ac1cb8d3
VS
20138 grep -v '^ *+' conftest.er1 >conftest.err
20139 rm -f conftest.er1
20140 cat conftest.err >&5
bdcade0a
MB
20141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20142 (exit $ac_status); } &&
da4486fb 20143 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20145 (eval $ac_try) 2>&5
20146 ac_status=$?
20147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148 (exit $ac_status); }; } &&
20149 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
20150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20151 (eval $ac_try) 2>&5
20152 ac_status=$?
20153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154 (exit $ac_status); }; }; then
20155 echo "$as_me:$LINENO: result: yes" >&5
20156echo "${ECHO_T}yes" >&6
20157 cat >>confdefs.h <<\_ACEOF
20158#define HAVE_HASH_MAP 1
20159_ACEOF
20160
20161 cat >>confdefs.h <<\_ACEOF
20162#define HAVE_STD_HASH_MAP 1
20163_ACEOF
20164
20165else
20166 echo "$as_me: failed program was:" >&5
20167sed 's/^/| /' conftest.$ac_ext >&5
20168
20169echo "$as_me:$LINENO: result: no" >&5
20170echo "${ECHO_T}no" >&6
20171fi
ac1cb8d3 20172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20173
20174fi
20175
20176
20177
20178 if test "${ac_cv_header_ext_hash_map+set}" = set; then
20179 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
20180echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
20181if test "${ac_cv_header_ext_hash_map+set}" = set; then
20182 echo $ECHO_N "(cached) $ECHO_C" >&6
20183fi
20184echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
20185echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
20186else
20187 # Is the header compilable?
20188echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
20189echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
20190cat >conftest.$ac_ext <<_ACEOF
20191/* confdefs.h. */
20192_ACEOF
20193cat confdefs.h >>conftest.$ac_ext
20194cat >>conftest.$ac_ext <<_ACEOF
20195/* end confdefs.h. */
20196$ac_includes_default
20197#include <ext/hash_map>
20198_ACEOF
20199rm -f conftest.$ac_objext
20200if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20201 (eval $ac_compile) 2>conftest.er1
bdcade0a 20202 ac_status=$?
ac1cb8d3
VS
20203 grep -v '^ *+' conftest.er1 >conftest.err
20204 rm -f conftest.er1
20205 cat conftest.err >&5
bdcade0a
MB
20206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20207 (exit $ac_status); } &&
da4486fb 20208 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20210 (eval $ac_try) 2>&5
20211 ac_status=$?
20212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20213 (exit $ac_status); }; } &&
20214 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
20215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20216 (eval $ac_try) 2>&5
20217 ac_status=$?
20218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20219 (exit $ac_status); }; }; then
20220 ac_header_compiler=yes
20221else
20222 echo "$as_me: failed program was:" >&5
20223sed 's/^/| /' conftest.$ac_ext >&5
20224
20225ac_header_compiler=no
20226fi
ac1cb8d3 20227rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20228echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20229echo "${ECHO_T}$ac_header_compiler" >&6
20230
20231# Is the header present?
20232echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
20233echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
20234cat >conftest.$ac_ext <<_ACEOF
20235/* confdefs.h. */
20236_ACEOF
20237cat confdefs.h >>conftest.$ac_ext
20238cat >>conftest.$ac_ext <<_ACEOF
20239/* end confdefs.h. */
20240#include <ext/hash_map>
20241_ACEOF
20242if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20243 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20244 ac_status=$?
20245 grep -v '^ *+' conftest.er1 >conftest.err
20246 rm -f conftest.er1
20247 cat conftest.err >&5
20248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20249 (exit $ac_status); } >/dev/null; then
20250 if test -s conftest.err; then
20251 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20252 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
20253 else
20254 ac_cpp_err=
20255 fi
20256else
20257 ac_cpp_err=yes
20258fi
20259if test -z "$ac_cpp_err"; then
20260 ac_header_preproc=yes
20261else
20262 echo "$as_me: failed program was:" >&5
20263sed 's/^/| /' conftest.$ac_ext >&5
20264
20265 ac_header_preproc=no
20266fi
20267rm -f conftest.err conftest.$ac_ext
20268echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20269echo "${ECHO_T}$ac_header_preproc" >&6
20270
20271# So? What about this header?
ac1cb8d3
VS
20272case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20273 yes:no: )
bdcade0a
MB
20274 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
20275echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20276 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
20277echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
20278 ac_header_preproc=yes
bdcade0a 20279 ;;
ac1cb8d3 20280 no:yes:* )
bdcade0a
MB
20281 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
20282echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20283 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
20284echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
20285 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
20286echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
20287 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
20288echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
20289 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
20290echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20291 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
20292echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
20293 (
20294 cat <<\_ASBOX
ac1cb8d3
VS
20295## ----------------------------------------- ##
20296## Report this to wx-dev@lists.wxwidgets.org ##
20297## ----------------------------------------- ##
bdcade0a
MB
20298_ASBOX
20299 ) |
20300 sed "s/^/$as_me: WARNING: /" >&2
20301 ;;
20302esac
20303echo "$as_me:$LINENO: checking for ext/hash_map" >&5
20304echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
20305if test "${ac_cv_header_ext_hash_map+set}" = set; then
20306 echo $ECHO_N "(cached) $ECHO_C" >&6
20307else
20308 ac_cv_header_ext_hash_map=$ac_header_preproc
20309fi
20310echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
20311echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
20312
20313fi
20314if test $ac_cv_header_ext_hash_map = yes; then
20315 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
20316echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
20317 cat >conftest.$ac_ext <<_ACEOF
20318/* confdefs.h. */
20319_ACEOF
20320cat confdefs.h >>conftest.$ac_ext
20321cat >>conftest.$ac_ext <<_ACEOF
20322/* end confdefs.h. */
20323#include <ext/hash_map>
20324 #include <ext/hash_set>
20325int
20326main ()
20327{
20328__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
20329 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
20330 ;
20331 return 0;
20332}
20333_ACEOF
20334rm -f conftest.$ac_objext
20335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20336 (eval $ac_compile) 2>conftest.er1
bdcade0a 20337 ac_status=$?
ac1cb8d3
VS
20338 grep -v '^ *+' conftest.er1 >conftest.err
20339 rm -f conftest.er1
20340 cat conftest.err >&5
bdcade0a
MB
20341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342 (exit $ac_status); } &&
da4486fb 20343 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20345 (eval $ac_try) 2>&5
20346 ac_status=$?
20347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20348 (exit $ac_status); }; } &&
20349 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
20350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20351 (eval $ac_try) 2>&5
20352 ac_status=$?
20353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20354 (exit $ac_status); }; }; then
20355 echo "$as_me:$LINENO: result: yes" >&5
20356echo "${ECHO_T}yes" >&6
20357 cat >>confdefs.h <<\_ACEOF
20358#define HAVE_EXT_HASH_MAP 1
20359_ACEOF
20360
20361 cat >>confdefs.h <<\_ACEOF
20362#define HAVE_GNU_CXX_HASH_MAP 1
20363_ACEOF
20364
20365else
20366 echo "$as_me: failed program was:" >&5
20367sed 's/^/| /' conftest.$ac_ext >&5
20368
20369echo "$as_me:$LINENO: result: no" >&5
20370echo "${ECHO_T}no" >&6
20371fi
ac1cb8d3 20372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20373
20374fi
20375
20376
a848cd7e
SC
20377
20378 ac_ext=c
20379ac_cpp='$CPP $CPPFLAGS'
20380ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20381ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20382ac_compiler_gnu=$ac_cv_c_compiler_gnu
20383
20384fi
20385
20386
20387SEARCH_INCLUDE="\
20388 /usr/local/include \
20389 \
20390 /usr/Motif-2.1/include \
20391 /usr/Motif-1.2/include \
20392 /usr/include/Motif1.2 \
20393 /opt/xpm/include/X11 \
20394 /opt/GBxpm/include/ \
20395 /opt/GBxpm/X11/include/ \
20396 \
20397 /usr/dt/include \
20398 /usr/openwin/include \
20399 \
20400 /usr/include/Xm \
20401 \
20402 /usr/X11R6/include \
20403 /usr/X11R6.4/include \
20404 /usr/X11R5/include \
20405 /usr/X11R4/include \
20406 \
20407 /usr/include/X11R6 \
20408 /usr/include/X11R5 \
20409 /usr/include/X11R4 \
20410 \
20411 /usr/local/X11R6/include \
20412 /usr/local/X11R5/include \
20413 /usr/local/X11R4/include \
20414 \
20415 /usr/local/include/X11R6 \
20416 /usr/local/include/X11R5 \
20417 /usr/local/include/X11R4 \
20418 \
20419 /usr/X11/include \
20420 /usr/include/X11 \
20421 /usr/local/X11/include \
20422 /usr/local/include/X11 \
20423 \
20424 /usr/X386/include \
20425 /usr/x386/include \
20426 /usr/XFree86/include/X11 \
20427 \
20428 X:/XFree86/include \
20429 X:/XFree86/include/X11 \
20430 \
20431 /usr/include/gtk \
20432 /usr/local/include/gtk \
20433 /usr/include/glib \
20434 /usr/local/include/glib \
20435 \
20436 /usr/include/qt \
20437 /usr/local/include/qt \
20438 \
20439 /usr/local/arm/3.3.2/include \
20440 \
20441 /usr/include/windows \
20442 /usr/include/wine \
20443 /usr/local/include/wine \
20444 \
20445 /usr/unsupported/include \
20446 /usr/athena/include \
20447 /usr/local/x11r5/include \
20448 /usr/lpp/Xamples/include \
20449 \
20450 /usr/openwin/share/include"
20451
20452SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64"
20453
20454
20455cat >confcache <<\_ACEOF
20456# This file is a shell script that caches the results of configure
20457# tests run on this system so they can be shared between configure
20458# scripts and configure runs, see configure's option --config-cache.
20459# It is not useful on other systems. If it contains results you don't
20460# want to keep, you may remove or edit it.
20461#
20462# config.status only pays attention to the cache file if you give it
20463# the --recheck option to rerun configure.
20464#
20465# `ac_cv_env_foo' variables (set or unset) will be overridden when
20466# loading this file, other *unset* `ac_cv_foo' will be assigned the
20467# following values.
20468
20469_ACEOF
20470
20471# The following way of writing the cache mishandles newlines in values,
20472# but we know of no workaround that is simple, portable, and efficient.
20473# So, don't put newlines in cache variables' values.
20474# Ultrix sh set writes to stderr and can't be redirected directly,
20475# and sets the high bit in the cache file unless we assign to the vars.
20476{
20477 (set) 2>&1 |
20478 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20479 *ac_space=\ *)
20480 # `set' does not quote correctly, so add quotes (double-quote
20481 # substitution turns \\\\ into \\, and sed turns \\ into \).
20482 sed -n \
ac1cb8d3
VS
20483 "s/'/'\\\\''/g;
20484 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
20485 ;;
20486 *)
20487 # `set' quotes correctly as required by POSIX, so do not add quotes.
20488 sed -n \
ac1cb8d3 20489 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
20490 ;;
20491 esac;
20492} |
20493 sed '
20494 t clear
20495 : clear
20496 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20497 t end
20498 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20499 : end' >>confcache
20500if diff $cache_file confcache >/dev/null 2>&1; then :; else
20501 if test -w $cache_file; then
20502 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20503 cat confcache >$cache_file
20504 else
20505 echo "not updating unwritable cache $cache_file"
20506 fi
20507fi
20508rm -f confcache
20509
20510if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
20511 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
20512echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
20513if test "${wx_cv_lib_glibc21+set}" = set; then
20514 echo $ECHO_N "(cached) $ECHO_C" >&6
20515else
20516
20517 cat >conftest.$ac_ext <<_ACEOF
20518/* confdefs.h. */
20519_ACEOF
20520cat confdefs.h >>conftest.$ac_ext
20521cat >>conftest.$ac_ext <<_ACEOF
20522/* end confdefs.h. */
20523#include <features.h>
20524int
20525main ()
20526{
20527
20528 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
20529 #error not glibc2.1
20530 #endif
20531
20532 ;
20533 return 0;
20534}
20535_ACEOF
20536rm -f conftest.$ac_objext
20537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20538 (eval $ac_compile) 2>conftest.er1
a848cd7e 20539 ac_status=$?
ac1cb8d3
VS
20540 grep -v '^ *+' conftest.er1 >conftest.err
20541 rm -f conftest.er1
20542 cat conftest.err >&5
a848cd7e
SC
20543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20544 (exit $ac_status); } &&
da4486fb 20545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20547 (eval $ac_try) 2>&5
20548 ac_status=$?
20549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550 (exit $ac_status); }; } &&
20551 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20553 (eval $ac_try) 2>&5
20554 ac_status=$?
20555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556 (exit $ac_status); }; }; then
20557
20558 wx_cv_lib_glibc21=yes
20559
20560else
20561 echo "$as_me: failed program was:" >&5
20562sed 's/^/| /' conftest.$ac_ext >&5
20563
20564
20565 wx_cv_lib_glibc21=no
20566
20567
20568fi
ac1cb8d3 20569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20570
20571fi
20572echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
20573echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
20574 if test "$wx_cv_lib_glibc21" = "yes"; then
20575 cat >>confdefs.h <<\_ACEOF
20576#define wxHAVE_GLIBC2 1
20577_ACEOF
20578
20579 fi
20580fi
20581
20582if test "x$wx_cv_lib_glibc21" = "xyes"; then
20583 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
20584 cat >>confdefs.h <<\_ACEOF
20585#define _GNU_SOURCE 1
20586_ACEOF
20587
20588 fi
20589fi
20590
20591
20592
20593if test "$wxUSE_REGEX" != "no"; then
20594 cat >>confdefs.h <<\_ACEOF
20595#define wxUSE_REGEX 1
20596_ACEOF
20597
20598
20599 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
20600 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
20601echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
20602 wxUSE_REGEX=builtin
20603 fi
20604
20605 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
20606 if test "${ac_cv_header_regex_h+set}" = set; then
20607 echo "$as_me:$LINENO: checking for regex.h" >&5
20608echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20609if test "${ac_cv_header_regex_h+set}" = set; then
20610 echo $ECHO_N "(cached) $ECHO_C" >&6
20611fi
20612echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20613echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20614else
20615 # Is the header compilable?
20616echo "$as_me:$LINENO: checking regex.h usability" >&5
20617echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
20618cat >conftest.$ac_ext <<_ACEOF
20619/* confdefs.h. */
20620_ACEOF
20621cat confdefs.h >>conftest.$ac_ext
20622cat >>conftest.$ac_ext <<_ACEOF
20623/* end confdefs.h. */
20624$ac_includes_default
20625#include <regex.h>
20626_ACEOF
20627rm -f conftest.$ac_objext
20628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20629 (eval $ac_compile) 2>conftest.er1
a848cd7e 20630 ac_status=$?
ac1cb8d3
VS
20631 grep -v '^ *+' conftest.er1 >conftest.err
20632 rm -f conftest.er1
20633 cat conftest.err >&5
a848cd7e
SC
20634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20635 (exit $ac_status); } &&
da4486fb 20636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20638 (eval $ac_try) 2>&5
20639 ac_status=$?
20640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20641 (exit $ac_status); }; } &&
20642 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20644 (eval $ac_try) 2>&5
20645 ac_status=$?
20646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20647 (exit $ac_status); }; }; then
20648 ac_header_compiler=yes
20649else
20650 echo "$as_me: failed program was:" >&5
20651sed 's/^/| /' conftest.$ac_ext >&5
20652
20653ac_header_compiler=no
20654fi
ac1cb8d3 20655rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20656echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20657echo "${ECHO_T}$ac_header_compiler" >&6
20658
20659# Is the header present?
20660echo "$as_me:$LINENO: checking regex.h presence" >&5
20661echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
20662cat >conftest.$ac_ext <<_ACEOF
20663/* confdefs.h. */
20664_ACEOF
20665cat confdefs.h >>conftest.$ac_ext
20666cat >>conftest.$ac_ext <<_ACEOF
20667/* end confdefs.h. */
20668#include <regex.h>
20669_ACEOF
20670if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20671 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20672 ac_status=$?
20673 grep -v '^ *+' conftest.er1 >conftest.err
20674 rm -f conftest.er1
20675 cat conftest.err >&5
20676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20677 (exit $ac_status); } >/dev/null; then
20678 if test -s conftest.err; then
20679 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20680 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20681 else
20682 ac_cpp_err=
20683 fi
20684else
20685 ac_cpp_err=yes
20686fi
20687if test -z "$ac_cpp_err"; then
20688 ac_header_preproc=yes
20689else
20690 echo "$as_me: failed program was:" >&5
20691sed 's/^/| /' conftest.$ac_ext >&5
20692
20693 ac_header_preproc=no
20694fi
20695rm -f conftest.err conftest.$ac_ext
20696echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20697echo "${ECHO_T}$ac_header_preproc" >&6
20698
20699# So? What about this header?
ac1cb8d3
VS
20700case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20701 yes:no: )
a848cd7e
SC
20702 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
20703echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20704 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
20705echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
20706 ac_header_preproc=yes
a848cd7e 20707 ;;
ac1cb8d3 20708 no:yes:* )
a848cd7e
SC
20709 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
20710echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20711 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
20712echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
20713 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
20714echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
20715 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
20716echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20717 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
20718echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20719 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
20720echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20721 (
20722 cat <<\_ASBOX
ac1cb8d3
VS
20723## ----------------------------------------- ##
20724## Report this to wx-dev@lists.wxwidgets.org ##
20725## ----------------------------------------- ##
a848cd7e
SC
20726_ASBOX
20727 ) |
20728 sed "s/^/$as_me: WARNING: /" >&2
20729 ;;
20730esac
20731echo "$as_me:$LINENO: checking for regex.h" >&5
20732echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20733if test "${ac_cv_header_regex_h+set}" = set; then
20734 echo $ECHO_N "(cached) $ECHO_C" >&6
20735else
20736 ac_cv_header_regex_h=$ac_header_preproc
20737fi
20738echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20739echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20740
20741fi
20742if test $ac_cv_header_regex_h = yes; then
20743
20744for ac_func in regcomp
20745do
20746as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20747echo "$as_me:$LINENO: checking for $ac_func" >&5
20748echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20749if eval "test \"\${$as_ac_var+set}\" = set"; then
20750 echo $ECHO_N "(cached) $ECHO_C" >&6
20751else
20752 cat >conftest.$ac_ext <<_ACEOF
20753/* confdefs.h. */
20754_ACEOF
20755cat confdefs.h >>conftest.$ac_ext
20756cat >>conftest.$ac_ext <<_ACEOF
20757/* end confdefs.h. */
ac1cb8d3
VS
20758/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20760#define $ac_func innocuous_$ac_func
20761
a848cd7e
SC
20762/* System header to define __stub macros and hopefully few prototypes,
20763 which can conflict with char $ac_func (); below.
20764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20765 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 20766
a848cd7e
SC
20767#ifdef __STDC__
20768# include <limits.h>
20769#else
20770# include <assert.h>
20771#endif
ac1cb8d3
VS
20772
20773#undef $ac_func
20774
a848cd7e
SC
20775/* Override any gcc2 internal prototype to avoid an error. */
20776#ifdef __cplusplus
20777extern "C"
20778{
20779#endif
20780/* We use char because int might match the return type of a gcc2
20781 builtin and then its argument prototype would still apply. */
20782char $ac_func ();
20783/* The GNU C library defines this for functions which it implements
20784 to always fail with ENOSYS. Some functions are actually named
20785 something starting with __ and the normal name is an alias. */
20786#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20787choke me
20788#else
20789char (*f) () = $ac_func;
20790#endif
20791#ifdef __cplusplus
20792}
20793#endif
20794
20795int
20796main ()
20797{
20798return f != $ac_func;
20799 ;
20800 return 0;
20801}
20802_ACEOF
20803rm -f conftest.$ac_objext conftest$ac_exeext
20804if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20805 (eval $ac_link) 2>conftest.er1
a848cd7e 20806 ac_status=$?
ac1cb8d3
VS
20807 grep -v '^ *+' conftest.er1 >conftest.err
20808 rm -f conftest.er1
20809 cat conftest.err >&5
a848cd7e
SC
20810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20811 (exit $ac_status); } &&
da4486fb 20812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20814 (eval $ac_try) 2>&5
20815 ac_status=$?
20816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817 (exit $ac_status); }; } &&
20818 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20820 (eval $ac_try) 2>&5
20821 ac_status=$?
20822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823 (exit $ac_status); }; }; then
20824 eval "$as_ac_var=yes"
20825else
20826 echo "$as_me: failed program was:" >&5
20827sed 's/^/| /' conftest.$ac_ext >&5
20828
20829eval "$as_ac_var=no"
20830fi
ac1cb8d3
VS
20831rm -f conftest.err conftest.$ac_objext \
20832 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20833fi
20834echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20835echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20836if test `eval echo '${'$as_ac_var'}'` = yes; then
20837 cat >>confdefs.h <<_ACEOF
20838#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20839_ACEOF
20840
20841fi
20842done
20843
20844fi
20845
20846
20847
20848 if test "x$ac_cv_func_regcomp" != "xyes"; then
20849 if test "$wxUSE_REGEX" = "sys" ; then
20850 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
20851echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
20852 { (exit 1); exit 1; }; }
20853 else
20854 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
20855echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
20856 wxUSE_REGEX=builtin
20857 fi
20858 else
20859 wxUSE_REGEX=sys
20860 cat >>confdefs.h <<\_ACEOF
20861#define WX_NO_REGEX_ADVANCED 1
20862_ACEOF
20863
20864 fi
20865 fi
20866fi
20867
20868
20869ZLIB_LINK=
20870if test "$wxUSE_ZLIB" != "no" ; then
20871 cat >>confdefs.h <<\_ACEOF
20872#define wxUSE_ZLIB 1
20873_ACEOF
20874
20875
20876 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
20877 if test "$USE_DARWIN" = 1; then
20878 system_zlib_h_ok="yes"
20879 else
20880 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
20881echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
20882if test "${ac_cv_header_zlib_h+set}" = set; then
20883 echo $ECHO_N "(cached) $ECHO_C" >&6
20884else
20885 if test "$cross_compiling" = yes; then
20886 unset ac_cv_header_zlib_h
20887
20888else
20889 cat >conftest.$ac_ext <<_ACEOF
20890/* confdefs.h. */
20891_ACEOF
20892cat confdefs.h >>conftest.$ac_ext
20893cat >>conftest.$ac_ext <<_ACEOF
20894/* end confdefs.h. */
20895
20896 #include <zlib.h>
20897 #include <stdio.h>
20898
20899 int main()
20900 {
20901 FILE *f=fopen("conftestval", "w");
20902 if (!f) exit(1);
20903 fprintf(f, "%s",
20904 ZLIB_VERSION[0] == '1' &&
20905 (ZLIB_VERSION[2] > '1' ||
20906 (ZLIB_VERSION[2] == '1' &&
20907 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
20908 exit(0);
20909 }
20910
20911_ACEOF
20912rm -f conftest$ac_exeext
20913if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20914 (eval $ac_link) 2>&5
20915 ac_status=$?
20916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20917 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20919 (eval $ac_try) 2>&5
20920 ac_status=$?
20921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20922 (exit $ac_status); }; }; then
20923 ac_cv_header_zlib_h=`cat conftestval`
20924else
20925 echo "$as_me: program exited with status $ac_status" >&5
20926echo "$as_me: failed program was:" >&5
20927sed 's/^/| /' conftest.$ac_ext >&5
20928
20929( exit $ac_status )
20930ac_cv_header_zlib_h=no
20931fi
ac1cb8d3 20932rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20933fi
20934
20935fi
20936echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20937echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20938 if test "${ac_cv_header_zlib_h+set}" = set; then
20939 echo "$as_me:$LINENO: checking for zlib.h" >&5
20940echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
20941if test "${ac_cv_header_zlib_h+set}" = set; then
20942 echo $ECHO_N "(cached) $ECHO_C" >&6
20943fi
20944echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20945echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20946else
20947 # Is the header compilable?
20948echo "$as_me:$LINENO: checking zlib.h usability" >&5
20949echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
20950cat >conftest.$ac_ext <<_ACEOF
20951/* confdefs.h. */
20952_ACEOF
20953cat confdefs.h >>conftest.$ac_ext
20954cat >>conftest.$ac_ext <<_ACEOF
20955/* end confdefs.h. */
20956$ac_includes_default
20957#include <zlib.h>
20958_ACEOF
20959rm -f conftest.$ac_objext
20960if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20961 (eval $ac_compile) 2>conftest.er1
a848cd7e 20962 ac_status=$?
ac1cb8d3
VS
20963 grep -v '^ *+' conftest.er1 >conftest.err
20964 rm -f conftest.er1
20965 cat conftest.err >&5
a848cd7e
SC
20966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20967 (exit $ac_status); } &&
da4486fb 20968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20970 (eval $ac_try) 2>&5
20971 ac_status=$?
20972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20973 (exit $ac_status); }; } &&
20974 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20976 (eval $ac_try) 2>&5
20977 ac_status=$?
20978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979 (exit $ac_status); }; }; then
20980 ac_header_compiler=yes
20981else
20982 echo "$as_me: failed program was:" >&5
20983sed 's/^/| /' conftest.$ac_ext >&5
20984
20985ac_header_compiler=no
20986fi
ac1cb8d3 20987rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20988echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20989echo "${ECHO_T}$ac_header_compiler" >&6
20990
20991# Is the header present?
20992echo "$as_me:$LINENO: checking zlib.h presence" >&5
20993echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
20994cat >conftest.$ac_ext <<_ACEOF
20995/* confdefs.h. */
20996_ACEOF
20997cat confdefs.h >>conftest.$ac_ext
20998cat >>conftest.$ac_ext <<_ACEOF
20999/* end confdefs.h. */
21000#include <zlib.h>
21001_ACEOF
21002if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21003 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21004 ac_status=$?
21005 grep -v '^ *+' conftest.er1 >conftest.err
21006 rm -f conftest.er1
21007 cat conftest.err >&5
21008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21009 (exit $ac_status); } >/dev/null; then
21010 if test -s conftest.err; then
21011 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21012 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21013 else
21014 ac_cpp_err=
21015 fi
21016else
21017 ac_cpp_err=yes
21018fi
21019if test -z "$ac_cpp_err"; then
21020 ac_header_preproc=yes
21021else
21022 echo "$as_me: failed program was:" >&5
21023sed 's/^/| /' conftest.$ac_ext >&5
21024
21025 ac_header_preproc=no
21026fi
21027rm -f conftest.err conftest.$ac_ext
21028echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21029echo "${ECHO_T}$ac_header_preproc" >&6
21030
21031# So? What about this header?
ac1cb8d3
VS
21032case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21033 yes:no: )
a848cd7e
SC
21034 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
21035echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21036 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
21037echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
21038 ac_header_preproc=yes
a848cd7e 21039 ;;
ac1cb8d3 21040 no:yes:* )
a848cd7e
SC
21041 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
21042echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21043 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
21044echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
21045 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
21046echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
21047 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
21048echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21049 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
21050echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21051 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
21052echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21053 (
21054 cat <<\_ASBOX
ac1cb8d3
VS
21055## ----------------------------------------- ##
21056## Report this to wx-dev@lists.wxwidgets.org ##
21057## ----------------------------------------- ##
a848cd7e
SC
21058_ASBOX
21059 ) |
21060 sed "s/^/$as_me: WARNING: /" >&2
21061 ;;
21062esac
21063echo "$as_me:$LINENO: checking for zlib.h" >&5
21064echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
21065if test "${ac_cv_header_zlib_h+set}" = set; then
21066 echo $ECHO_N "(cached) $ECHO_C" >&6
21067else
21068 ac_cv_header_zlib_h=$ac_header_preproc
21069fi
21070echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
21071echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
21072
21073fi
21074
21075
21076
21077 system_zlib_h_ok=$ac_cv_header_zlib_h
21078 fi
21079
21080 if test "$system_zlib_h_ok" = "yes"; then
21081 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
21082echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
21083if test "${ac_cv_lib_z_deflate+set}" = set; then
21084 echo $ECHO_N "(cached) $ECHO_C" >&6
21085else
21086 ac_check_lib_save_LIBS=$LIBS
21087LIBS="-lz $LIBS"
21088cat >conftest.$ac_ext <<_ACEOF
21089/* confdefs.h. */
21090_ACEOF
21091cat confdefs.h >>conftest.$ac_ext
21092cat >>conftest.$ac_ext <<_ACEOF
21093/* end confdefs.h. */
21094
21095/* Override any gcc2 internal prototype to avoid an error. */
21096#ifdef __cplusplus
21097extern "C"
21098#endif
21099/* We use char because int might match the return type of a gcc2
21100 builtin and then its argument prototype would still apply. */
21101char deflate ();
21102int
21103main ()
21104{
21105deflate ();
21106 ;
21107 return 0;
21108}
21109_ACEOF
21110rm -f conftest.$ac_objext conftest$ac_exeext
21111if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21112 (eval $ac_link) 2>conftest.er1
a848cd7e 21113 ac_status=$?
ac1cb8d3
VS
21114 grep -v '^ *+' conftest.er1 >conftest.err
21115 rm -f conftest.er1
21116 cat conftest.err >&5
a848cd7e
SC
21117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21118 (exit $ac_status); } &&
da4486fb 21119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21121 (eval $ac_try) 2>&5
21122 ac_status=$?
21123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21124 (exit $ac_status); }; } &&
21125 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21127 (eval $ac_try) 2>&5
21128 ac_status=$?
21129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21130 (exit $ac_status); }; }; then
21131 ac_cv_lib_z_deflate=yes
21132else
21133 echo "$as_me: failed program was:" >&5
21134sed 's/^/| /' conftest.$ac_ext >&5
21135
21136ac_cv_lib_z_deflate=no
21137fi
ac1cb8d3
VS
21138rm -f conftest.err conftest.$ac_objext \
21139 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21140LIBS=$ac_check_lib_save_LIBS
21141fi
21142echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
21143echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
21144if test $ac_cv_lib_z_deflate = yes; then
21145 ZLIB_LINK=" -lz"
21146fi
21147
21148 fi
21149
21150 if test "x$ZLIB_LINK" = "x" ; then
21151 if test "$wxUSE_ZLIB" = "sys" ; then
21152 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
21153echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
21154 { (exit 1); exit 1; }; }
21155 else
21156 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
21157echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
21158 wxUSE_ZLIB=builtin
21159 fi
21160 else
21161 wxUSE_ZLIB=sys
21162 fi
21163 fi
21164fi
21165
21166
21167PNG_LINK=
21168if test "$wxUSE_LIBPNG" != "no" ; then
21169 cat >>confdefs.h <<\_ACEOF
21170#define wxUSE_LIBPNG 1
21171_ACEOF
21172
21173
21174 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
21175 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
21176echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
21177 wxUSE_LIBPNG=sys
21178 fi
21179
21180 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
21181 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
21182echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
21183 wxUSE_LIBPNG=builtin
21184 fi
21185
21186 if test "$wxUSE_MGL" != 1 ; then
21187 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
21188 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
21189echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
21190if test "${ac_cv_header_png_h+set}" = set; then
21191 echo $ECHO_N "(cached) $ECHO_C" >&6
21192else
21193 if test "$cross_compiling" = yes; then
21194 unset ac_cv_header_png_h
21195
21196else
21197 cat >conftest.$ac_ext <<_ACEOF
21198/* confdefs.h. */
21199_ACEOF
21200cat confdefs.h >>conftest.$ac_ext
21201cat >>conftest.$ac_ext <<_ACEOF
21202/* end confdefs.h. */
21203
21204 #include <png.h>
21205 #include <stdio.h>
21206
21207 int main()
21208 {
21209 FILE *f=fopen("conftestval", "w");
21210 if (!f) exit(1);
21211 fprintf(f, "%s",
21212 PNG_LIBPNG_VER > 90 ? "yes" : "no");
21213 exit(0);
21214 }
21215
21216_ACEOF
21217rm -f conftest$ac_exeext
21218if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21219 (eval $ac_link) 2>&5
21220 ac_status=$?
21221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21224 (eval $ac_try) 2>&5
21225 ac_status=$?
21226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21227 (exit $ac_status); }; }; then
21228 ac_cv_header_png_h=`cat conftestval`
21229else
21230 echo "$as_me: program exited with status $ac_status" >&5
21231echo "$as_me: failed program was:" >&5
21232sed 's/^/| /' conftest.$ac_ext >&5
21233
21234( exit $ac_status )
21235ac_cv_header_png_h=no
21236fi
ac1cb8d3 21237rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21238fi
21239
21240fi
21241echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
21242echo "${ECHO_T}$ac_cv_header_png_h" >&6
21243 if test "${ac_cv_header_png_h+set}" = set; then
21244 echo "$as_me:$LINENO: checking for png.h" >&5
21245echo $ECHO_N "checking for png.h... $ECHO_C" >&6
21246if test "${ac_cv_header_png_h+set}" = set; then
21247 echo $ECHO_N "(cached) $ECHO_C" >&6
21248fi
21249echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
21250echo "${ECHO_T}$ac_cv_header_png_h" >&6
21251else
21252 # Is the header compilable?
21253echo "$as_me:$LINENO: checking png.h usability" >&5
21254echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
21255cat >conftest.$ac_ext <<_ACEOF
21256/* confdefs.h. */
21257_ACEOF
21258cat confdefs.h >>conftest.$ac_ext
21259cat >>conftest.$ac_ext <<_ACEOF
21260/* end confdefs.h. */
21261$ac_includes_default
21262#include <png.h>
21263_ACEOF
21264rm -f conftest.$ac_objext
21265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21266 (eval $ac_compile) 2>conftest.er1
a848cd7e 21267 ac_status=$?
ac1cb8d3
VS
21268 grep -v '^ *+' conftest.er1 >conftest.err
21269 rm -f conftest.er1
21270 cat conftest.err >&5
a848cd7e
SC
21271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21272 (exit $ac_status); } &&
da4486fb 21273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21275 (eval $ac_try) 2>&5
21276 ac_status=$?
21277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278 (exit $ac_status); }; } &&
21279 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21281 (eval $ac_try) 2>&5
21282 ac_status=$?
21283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21284 (exit $ac_status); }; }; then
21285 ac_header_compiler=yes
21286else
21287 echo "$as_me: failed program was:" >&5
21288sed 's/^/| /' conftest.$ac_ext >&5
21289
21290ac_header_compiler=no
21291fi
ac1cb8d3 21292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21293echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21294echo "${ECHO_T}$ac_header_compiler" >&6
21295
21296# Is the header present?
21297echo "$as_me:$LINENO: checking png.h presence" >&5
21298echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
21299cat >conftest.$ac_ext <<_ACEOF
21300/* confdefs.h. */
21301_ACEOF
21302cat confdefs.h >>conftest.$ac_ext
21303cat >>conftest.$ac_ext <<_ACEOF
21304/* end confdefs.h. */
21305#include <png.h>
21306_ACEOF
21307if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21308 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21309 ac_status=$?
21310 grep -v '^ *+' conftest.er1 >conftest.err
21311 rm -f conftest.er1
21312 cat conftest.err >&5
21313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21314 (exit $ac_status); } >/dev/null; then
21315 if test -s conftest.err; then
21316 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21317 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21318 else
21319 ac_cpp_err=
21320 fi
21321else
21322 ac_cpp_err=yes
21323fi
21324if test -z "$ac_cpp_err"; then
21325 ac_header_preproc=yes
21326else
21327 echo "$as_me: failed program was:" >&5
21328sed 's/^/| /' conftest.$ac_ext >&5
21329
21330 ac_header_preproc=no
21331fi
21332rm -f conftest.err conftest.$ac_ext
21333echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21334echo "${ECHO_T}$ac_header_preproc" >&6
21335
21336# So? What about this header?
ac1cb8d3
VS
21337case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21338 yes:no: )
a848cd7e
SC
21339 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
21340echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21341 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
21342echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
21343 ac_header_preproc=yes
a848cd7e 21344 ;;
ac1cb8d3 21345 no:yes:* )
a848cd7e
SC
21346 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
21347echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21348 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
21349echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
21350 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
21351echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
21352 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
21353echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21354 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
21355echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21356 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
21357echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21358 (
21359 cat <<\_ASBOX
ac1cb8d3
VS
21360## ----------------------------------------- ##
21361## Report this to wx-dev@lists.wxwidgets.org ##
21362## ----------------------------------------- ##
a848cd7e
SC
21363_ASBOX
21364 ) |
21365 sed "s/^/$as_me: WARNING: /" >&2
21366 ;;
21367esac
21368echo "$as_me:$LINENO: checking for png.h" >&5
21369echo $ECHO_N "checking for png.h... $ECHO_C" >&6
21370if test "${ac_cv_header_png_h+set}" = set; then
21371 echo $ECHO_N "(cached) $ECHO_C" >&6
21372else
21373 ac_cv_header_png_h=$ac_header_preproc
21374fi
21375echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
21376echo "${ECHO_T}$ac_cv_header_png_h" >&6
21377
21378fi
21379
21380
21381
21382 if test "$ac_cv_header_png_h" = "yes"; then
21383 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
21384echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
21385if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
21386 echo $ECHO_N "(cached) $ECHO_C" >&6
21387else
21388 ac_check_lib_save_LIBS=$LIBS
21389LIBS="-lpng -lz -lm $LIBS"
21390cat >conftest.$ac_ext <<_ACEOF
21391/* confdefs.h. */
21392_ACEOF
21393cat confdefs.h >>conftest.$ac_ext
21394cat >>conftest.$ac_ext <<_ACEOF
21395/* end confdefs.h. */
21396
21397/* Override any gcc2 internal prototype to avoid an error. */
21398#ifdef __cplusplus
21399extern "C"
21400#endif
21401/* We use char because int might match the return type of a gcc2
21402 builtin and then its argument prototype would still apply. */
21403char png_check_sig ();
21404int
21405main ()
21406{
21407png_check_sig ();
21408 ;
21409 return 0;
21410}
21411_ACEOF
21412rm -f conftest.$ac_objext conftest$ac_exeext
21413if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21414 (eval $ac_link) 2>conftest.er1
a848cd7e 21415 ac_status=$?
ac1cb8d3
VS
21416 grep -v '^ *+' conftest.er1 >conftest.err
21417 rm -f conftest.er1
21418 cat conftest.err >&5
a848cd7e
SC
21419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21420 (exit $ac_status); } &&
da4486fb 21421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21423 (eval $ac_try) 2>&5
21424 ac_status=$?
21425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21426 (exit $ac_status); }; } &&
21427 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21429 (eval $ac_try) 2>&5
21430 ac_status=$?
21431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21432 (exit $ac_status); }; }; then
21433 ac_cv_lib_png_png_check_sig=yes
21434else
21435 echo "$as_me: failed program was:" >&5
21436sed 's/^/| /' conftest.$ac_ext >&5
21437
21438ac_cv_lib_png_png_check_sig=no
21439fi
ac1cb8d3
VS
21440rm -f conftest.err conftest.$ac_objext \
21441 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21442LIBS=$ac_check_lib_save_LIBS
21443fi
21444echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
21445echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
21446if test $ac_cv_lib_png_png_check_sig = yes; then
21447 PNG_LINK=" -lpng -lz"
21448fi
21449
21450 fi
21451
21452 if test "x$PNG_LINK" = "x" ; then
21453 if test "$wxUSE_LIBPNG" = "sys" ; then
21454 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
21455echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
21456 { (exit 1); exit 1; }; }
21457 else
21458 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
21459echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
21460 wxUSE_LIBPNG=builtin
21461 fi
21462 else
21463 wxUSE_LIBPNG=sys
21464 fi
21465 fi
21466 fi
21467
21468 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
21469fi
21470
21471
21472JPEG_LINK=
21473if test "$wxUSE_LIBJPEG" != "no" ; then
21474 cat >>confdefs.h <<\_ACEOF
21475#define wxUSE_LIBJPEG 1
21476_ACEOF
21477
21478
21479 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
21480 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
21481echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
21482 wxUSE_LIBJPEG=sys
21483 fi
21484
21485 if test "$wxUSE_MGL" != 1 ; then
21486 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
21487 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
21488echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
21489 if test "${ac_cv_header_jpeglib_h+set}" = set; then
21490 echo $ECHO_N "(cached) $ECHO_C" >&6
21491else
21492 cat >conftest.$ac_ext <<_ACEOF
21493/* confdefs.h. */
21494_ACEOF
21495cat confdefs.h >>conftest.$ac_ext
21496cat >>conftest.$ac_ext <<_ACEOF
21497/* end confdefs.h. */
21498
21499 #undef HAVE_STDLIB_H
21500 #include <stdio.h>
21501 #include <jpeglib.h>
21502
21503int
21504main ()
21505{
21506
21507
21508 ;
21509 return 0;
21510}
21511_ACEOF
21512rm -f conftest.$ac_objext
21513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21514 (eval $ac_compile) 2>conftest.er1
a848cd7e 21515 ac_status=$?
ac1cb8d3
VS
21516 grep -v '^ *+' conftest.er1 >conftest.err
21517 rm -f conftest.er1
21518 cat conftest.err >&5
a848cd7e
SC
21519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21520 (exit $ac_status); } &&
da4486fb 21521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21523 (eval $ac_try) 2>&5
21524 ac_status=$?
21525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21526 (exit $ac_status); }; } &&
21527 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21529 (eval $ac_try) 2>&5
21530 ac_status=$?
21531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21532 (exit $ac_status); }; }; then
21533 ac_cv_header_jpeglib_h=yes
21534else
21535 echo "$as_me: failed program was:" >&5
21536sed 's/^/| /' conftest.$ac_ext >&5
21537
21538ac_cv_header_jpeglib_h=no
21539
21540fi
ac1cb8d3 21541rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21542
21543fi
21544
21545 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
21546echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
21547
21548 if test "$ac_cv_header_jpeglib_h" = "yes"; then
21549 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
21550echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
21551if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
21552 echo $ECHO_N "(cached) $ECHO_C" >&6
21553else
21554 ac_check_lib_save_LIBS=$LIBS
21555LIBS="-ljpeg $LIBS"
21556cat >conftest.$ac_ext <<_ACEOF
21557/* confdefs.h. */
21558_ACEOF
21559cat confdefs.h >>conftest.$ac_ext
21560cat >>conftest.$ac_ext <<_ACEOF
21561/* end confdefs.h. */
21562
21563/* Override any gcc2 internal prototype to avoid an error. */
21564#ifdef __cplusplus
21565extern "C"
21566#endif
21567/* We use char because int might match the return type of a gcc2
21568 builtin and then its argument prototype would still apply. */
21569char jpeg_read_header ();
21570int
21571main ()
21572{
21573jpeg_read_header ();
21574 ;
21575 return 0;
21576}
21577_ACEOF
21578rm -f conftest.$ac_objext conftest$ac_exeext
21579if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21580 (eval $ac_link) 2>conftest.er1
a848cd7e 21581 ac_status=$?
ac1cb8d3
VS
21582 grep -v '^ *+' conftest.er1 >conftest.err
21583 rm -f conftest.er1
21584 cat conftest.err >&5
a848cd7e
SC
21585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21586 (exit $ac_status); } &&
da4486fb 21587 { ac_try='test -z "$ac_c_werror_flag" || 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_exeext'
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_cv_lib_jpeg_jpeg_read_header=yes
21600else
21601 echo "$as_me: failed program was:" >&5
21602sed 's/^/| /' conftest.$ac_ext >&5
21603
21604ac_cv_lib_jpeg_jpeg_read_header=no
21605fi
ac1cb8d3
VS
21606rm -f conftest.err conftest.$ac_objext \
21607 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21608LIBS=$ac_check_lib_save_LIBS
21609fi
21610echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
21611echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
21612if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21613 JPEG_LINK=" -ljpeg"
21614fi
21615
21616 fi
21617
21618 if test "x$JPEG_LINK" = "x" ; then
21619 if test "$wxUSE_LIBJPEG" = "sys" ; then
21620 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
21621echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
21622 { (exit 1); exit 1; }; }
21623 else
21624 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
21625echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21626 wxUSE_LIBJPEG=builtin
21627 fi
21628 else
21629 wxUSE_LIBJPEG=sys
21630 fi
21631 fi
21632 fi
21633fi
21634
21635
21636TIFF_LINK=
21637TIFF_PREREQ_LINKS=-lm
21638if test "$wxUSE_LIBTIFF" != "no" ; then
21639 cat >>confdefs.h <<\_ACEOF
21640#define wxUSE_LIBTIFF 1
21641_ACEOF
21642
21643
21644 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
21645 if test "$wxUSE_LIBJPEG" = "sys"; then
21646 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
21647 fi
21648 if test "$wxUSE_ZLIB" = "sys"; then
21649 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
21650 fi
21651 if test "${ac_cv_header_tiffio_h+set}" = set; then
21652 echo "$as_me:$LINENO: checking for tiffio.h" >&5
21653echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21654if test "${ac_cv_header_tiffio_h+set}" = set; then
21655 echo $ECHO_N "(cached) $ECHO_C" >&6
21656fi
21657echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21658echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21659else
21660 # Is the header compilable?
21661echo "$as_me:$LINENO: checking tiffio.h usability" >&5
21662echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
21663cat >conftest.$ac_ext <<_ACEOF
21664/* confdefs.h. */
21665_ACEOF
21666cat confdefs.h >>conftest.$ac_ext
21667cat >>conftest.$ac_ext <<_ACEOF
21668/* end confdefs.h. */
21669$ac_includes_default
21670#include <tiffio.h>
21671_ACEOF
21672rm -f conftest.$ac_objext
21673if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21674 (eval $ac_compile) 2>conftest.er1
a848cd7e 21675 ac_status=$?
ac1cb8d3
VS
21676 grep -v '^ *+' conftest.er1 >conftest.err
21677 rm -f conftest.er1
21678 cat conftest.err >&5
a848cd7e
SC
21679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21680 (exit $ac_status); } &&
da4486fb 21681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21683 (eval $ac_try) 2>&5
21684 ac_status=$?
21685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21686 (exit $ac_status); }; } &&
21687 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21689 (eval $ac_try) 2>&5
21690 ac_status=$?
21691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21692 (exit $ac_status); }; }; then
21693 ac_header_compiler=yes
21694else
21695 echo "$as_me: failed program was:" >&5
21696sed 's/^/| /' conftest.$ac_ext >&5
21697
21698ac_header_compiler=no
21699fi
ac1cb8d3 21700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21701echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21702echo "${ECHO_T}$ac_header_compiler" >&6
21703
21704# Is the header present?
21705echo "$as_me:$LINENO: checking tiffio.h presence" >&5
21706echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
21707cat >conftest.$ac_ext <<_ACEOF
21708/* confdefs.h. */
21709_ACEOF
21710cat confdefs.h >>conftest.$ac_ext
21711cat >>conftest.$ac_ext <<_ACEOF
21712/* end confdefs.h. */
21713#include <tiffio.h>
21714_ACEOF
21715if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21716 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21717 ac_status=$?
21718 grep -v '^ *+' conftest.er1 >conftest.err
21719 rm -f conftest.er1
21720 cat conftest.err >&5
21721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21722 (exit $ac_status); } >/dev/null; then
21723 if test -s conftest.err; then
21724 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21725 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21726 else
21727 ac_cpp_err=
21728 fi
21729else
21730 ac_cpp_err=yes
21731fi
21732if test -z "$ac_cpp_err"; then
21733 ac_header_preproc=yes
21734else
21735 echo "$as_me: failed program was:" >&5
21736sed 's/^/| /' conftest.$ac_ext >&5
21737
21738 ac_header_preproc=no
21739fi
21740rm -f conftest.err conftest.$ac_ext
21741echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21742echo "${ECHO_T}$ac_header_preproc" >&6
21743
21744# So? What about this header?
ac1cb8d3
VS
21745case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21746 yes:no: )
a848cd7e
SC
21747 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
21748echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21749 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
21750echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
21751 ac_header_preproc=yes
a848cd7e 21752 ;;
ac1cb8d3 21753 no:yes:* )
a848cd7e
SC
21754 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
21755echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21756 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
21757echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
21758 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
21759echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
21760 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
21761echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21762 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
21763echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21764 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
21765echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21766 (
21767 cat <<\_ASBOX
ac1cb8d3
VS
21768## ----------------------------------------- ##
21769## Report this to wx-dev@lists.wxwidgets.org ##
21770## ----------------------------------------- ##
a848cd7e
SC
21771_ASBOX
21772 ) |
21773 sed "s/^/$as_me: WARNING: /" >&2
21774 ;;
21775esac
21776echo "$as_me:$LINENO: checking for tiffio.h" >&5
21777echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21778if test "${ac_cv_header_tiffio_h+set}" = set; then
21779 echo $ECHO_N "(cached) $ECHO_C" >&6
21780else
21781 ac_cv_header_tiffio_h=$ac_header_preproc
21782fi
21783echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21784echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21785
21786fi
21787if test $ac_cv_header_tiffio_h = yes; then
21788
21789 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
21790echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
21791if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
21792 echo $ECHO_N "(cached) $ECHO_C" >&6
21793else
21794 ac_check_lib_save_LIBS=$LIBS
21795LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
21796cat >conftest.$ac_ext <<_ACEOF
21797/* confdefs.h. */
21798_ACEOF
21799cat confdefs.h >>conftest.$ac_ext
21800cat >>conftest.$ac_ext <<_ACEOF
21801/* end confdefs.h. */
21802
21803/* Override any gcc2 internal prototype to avoid an error. */
21804#ifdef __cplusplus
21805extern "C"
21806#endif
21807/* We use char because int might match the return type of a gcc2
21808 builtin and then its argument prototype would still apply. */
21809char TIFFError ();
21810int
21811main ()
21812{
21813TIFFError ();
21814 ;
21815 return 0;
21816}
21817_ACEOF
21818rm -f conftest.$ac_objext conftest$ac_exeext
21819if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21820 (eval $ac_link) 2>conftest.er1
a848cd7e 21821 ac_status=$?
ac1cb8d3
VS
21822 grep -v '^ *+' conftest.er1 >conftest.err
21823 rm -f conftest.er1
21824 cat conftest.err >&5
a848cd7e
SC
21825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21826 (exit $ac_status); } &&
da4486fb 21827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21829 (eval $ac_try) 2>&5
21830 ac_status=$?
21831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21832 (exit $ac_status); }; } &&
21833 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21835 (eval $ac_try) 2>&5
21836 ac_status=$?
21837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21838 (exit $ac_status); }; }; then
21839 ac_cv_lib_tiff_TIFFError=yes
21840else
21841 echo "$as_me: failed program was:" >&5
21842sed 's/^/| /' conftest.$ac_ext >&5
21843
21844ac_cv_lib_tiff_TIFFError=no
21845fi
ac1cb8d3
VS
21846rm -f conftest.err conftest.$ac_objext \
21847 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21848LIBS=$ac_check_lib_save_LIBS
21849fi
21850echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
21851echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
21852if test $ac_cv_lib_tiff_TIFFError = yes; then
21853 TIFF_LINK=" -ltiff"
21854fi
21855
21856
21857
21858fi
21859
21860
21861
21862 if test "x$TIFF_LINK" = "x" ; then
21863 if test "$wxUSE_LIBTIFF" = "sys" ; then
21864 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
21865echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
21866 { (exit 1); exit 1; }; }
21867 else
21868 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
21869echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
21870 wxUSE_LIBTIFF=builtin
21871 fi
21872 else
21873 wxUSE_LIBTIFF=sys
21874 fi
21875 fi
21876fi
21877
21878
21879if test "$wxUSE_EXPAT" != "no"; then
21880 wxUSE_XML=yes
21881 cat >>confdefs.h <<\_ACEOF
21882#define wxUSE_EXPAT 1
21883_ACEOF
21884
21885 cat >>confdefs.h <<\_ACEOF
21886#define wxUSE_XML 1
21887_ACEOF
21888
21889
21890 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
21891 if test "${ac_cv_header_expat_h+set}" = set; then
21892 echo "$as_me:$LINENO: checking for expat.h" >&5
21893echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
21894if test "${ac_cv_header_expat_h+set}" = set; then
21895 echo $ECHO_N "(cached) $ECHO_C" >&6
21896fi
21897echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
21898echo "${ECHO_T}$ac_cv_header_expat_h" >&6
21899else
21900 # Is the header compilable?
21901echo "$as_me:$LINENO: checking expat.h usability" >&5
21902echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
21903cat >conftest.$ac_ext <<_ACEOF
21904/* confdefs.h. */
21905_ACEOF
21906cat confdefs.h >>conftest.$ac_ext
21907cat >>conftest.$ac_ext <<_ACEOF
21908/* end confdefs.h. */
21909$ac_includes_default
21910#include <expat.h>
21911_ACEOF
21912rm -f conftest.$ac_objext
21913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21914 (eval $ac_compile) 2>conftest.er1
a848cd7e 21915 ac_status=$?
ac1cb8d3
VS
21916 grep -v '^ *+' conftest.er1 >conftest.err
21917 rm -f conftest.er1
21918 cat conftest.err >&5
a848cd7e
SC
21919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21920 (exit $ac_status); } &&
da4486fb 21921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21923 (eval $ac_try) 2>&5
21924 ac_status=$?
21925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21926 (exit $ac_status); }; } &&
21927 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21929 (eval $ac_try) 2>&5
21930 ac_status=$?
21931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21932 (exit $ac_status); }; }; then
21933 ac_header_compiler=yes
21934else
21935 echo "$as_me: failed program was:" >&5
21936sed 's/^/| /' conftest.$ac_ext >&5
21937
21938ac_header_compiler=no
21939fi
ac1cb8d3 21940rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21941echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21942echo "${ECHO_T}$ac_header_compiler" >&6
21943
21944# Is the header present?
21945echo "$as_me:$LINENO: checking expat.h presence" >&5
21946echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
21947cat >conftest.$ac_ext <<_ACEOF
21948/* confdefs.h. */
21949_ACEOF
21950cat confdefs.h >>conftest.$ac_ext
21951cat >>conftest.$ac_ext <<_ACEOF
21952/* end confdefs.h. */
21953#include <expat.h>
21954_ACEOF
21955if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21956 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21957 ac_status=$?
21958 grep -v '^ *+' conftest.er1 >conftest.err
21959 rm -f conftest.er1
21960 cat conftest.err >&5
21961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21962 (exit $ac_status); } >/dev/null; then
21963 if test -s conftest.err; then
21964 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21965 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21966 else
21967 ac_cpp_err=
21968 fi
21969else
21970 ac_cpp_err=yes
21971fi
21972if test -z "$ac_cpp_err"; then
21973 ac_header_preproc=yes
21974else
21975 echo "$as_me: failed program was:" >&5
21976sed 's/^/| /' conftest.$ac_ext >&5
21977
21978 ac_header_preproc=no
21979fi
21980rm -f conftest.err conftest.$ac_ext
21981echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21982echo "${ECHO_T}$ac_header_preproc" >&6
21983
21984# So? What about this header?
ac1cb8d3
VS
21985case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21986 yes:no: )
a848cd7e
SC
21987 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
21988echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21989 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
21990echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
21991 ac_header_preproc=yes
a848cd7e 21992 ;;
ac1cb8d3 21993 no:yes:* )
a848cd7e
SC
21994 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
21995echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21996 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
21997echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
21998 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
21999echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
22000 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
22001echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22002 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
22003echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22004 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
22005echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22006 (
22007 cat <<\_ASBOX
ac1cb8d3
VS
22008## ----------------------------------------- ##
22009## Report this to wx-dev@lists.wxwidgets.org ##
22010## ----------------------------------------- ##
a848cd7e
SC
22011_ASBOX
22012 ) |
22013 sed "s/^/$as_me: WARNING: /" >&2
22014 ;;
22015esac
22016echo "$as_me:$LINENO: checking for expat.h" >&5
22017echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
22018if test "${ac_cv_header_expat_h+set}" = set; then
22019 echo $ECHO_N "(cached) $ECHO_C" >&6
22020else
22021 ac_cv_header_expat_h=$ac_header_preproc
22022fi
22023echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
22024echo "${ECHO_T}$ac_cv_header_expat_h" >&6
22025
22026fi
22027if test $ac_cv_header_expat_h = yes; then
22028 found_expat_h=1
22029fi
22030
22031
22032 if test "x$found_expat_h" = "x1"; then
22033 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
22034echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
22035if test "${wx_cv_expat_is_not_broken+set}" = set; then
22036 echo $ECHO_N "(cached) $ECHO_C" >&6
22037else
22038
22039
22040
22041 ac_ext=cc
22042ac_cpp='$CXXCPP $CPPFLAGS'
22043ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22044ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22045ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22046
22047 cat >conftest.$ac_ext <<_ACEOF
22048/* confdefs.h. */
22049_ACEOF
22050cat confdefs.h >>conftest.$ac_ext
22051cat >>conftest.$ac_ext <<_ACEOF
22052/* end confdefs.h. */
22053#include <expat.h>
22054int
22055main ()
22056{
22057
22058 ;
22059 return 0;
22060}
22061_ACEOF
22062rm -f conftest.$ac_objext
22063if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22064 (eval $ac_compile) 2>conftest.er1
a848cd7e 22065 ac_status=$?
ac1cb8d3
VS
22066 grep -v '^ *+' conftest.er1 >conftest.err
22067 rm -f conftest.er1
22068 cat conftest.err >&5
a848cd7e
SC
22069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22070 (exit $ac_status); } &&
da4486fb 22071 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22073 (eval $ac_try) 2>&5
22074 ac_status=$?
22075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22076 (exit $ac_status); }; } &&
22077 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22079 (eval $ac_try) 2>&5
22080 ac_status=$?
22081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22082 (exit $ac_status); }; }; then
22083 wx_cv_expat_is_not_broken=yes
22084else
22085 echo "$as_me: failed program was:" >&5
22086sed 's/^/| /' conftest.$ac_ext >&5
22087
22088wx_cv_expat_is_not_broken=no
22089
22090fi
ac1cb8d3 22091rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22092 ac_ext=c
22093ac_cpp='$CPP $CPPFLAGS'
22094ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22095ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22096ac_compiler_gnu=$ac_cv_c_compiler_gnu
22097
22098
22099
22100fi
22101echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
22102echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
22103 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
22104 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
22105echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
22106if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
22107 echo $ECHO_N "(cached) $ECHO_C" >&6
22108else
22109 ac_check_lib_save_LIBS=$LIBS
22110LIBS="-lexpat $LIBS"
22111cat >conftest.$ac_ext <<_ACEOF
22112/* confdefs.h. */
22113_ACEOF
22114cat confdefs.h >>conftest.$ac_ext
22115cat >>conftest.$ac_ext <<_ACEOF
22116/* end confdefs.h. */
22117
22118/* Override any gcc2 internal prototype to avoid an error. */
22119#ifdef __cplusplus
22120extern "C"
22121#endif
22122/* We use char because int might match the return type of a gcc2
22123 builtin and then its argument prototype would still apply. */
22124char XML_ParserCreate ();
22125int
22126main ()
22127{
22128XML_ParserCreate ();
22129 ;
22130 return 0;
22131}
22132_ACEOF
22133rm -f conftest.$ac_objext conftest$ac_exeext
22134if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22135 (eval $ac_link) 2>conftest.er1
a848cd7e 22136 ac_status=$?
ac1cb8d3
VS
22137 grep -v '^ *+' conftest.er1 >conftest.err
22138 rm -f conftest.er1
22139 cat conftest.err >&5
a848cd7e
SC
22140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22141 (exit $ac_status); } &&
da4486fb 22142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22144 (eval $ac_try) 2>&5
22145 ac_status=$?
22146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22147 (exit $ac_status); }; } &&
22148 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22150 (eval $ac_try) 2>&5
22151 ac_status=$?
22152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22153 (exit $ac_status); }; }; then
22154 ac_cv_lib_expat_XML_ParserCreate=yes
22155else
22156 echo "$as_me: failed program was:" >&5
22157sed 's/^/| /' conftest.$ac_ext >&5
22158
22159ac_cv_lib_expat_XML_ParserCreate=no
22160fi
ac1cb8d3
VS
22161rm -f conftest.err conftest.$ac_objext \
22162 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22163LIBS=$ac_check_lib_save_LIBS
22164fi
22165echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
22166echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
22167if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
22168 EXPAT_LINK=" -lexpat"
22169fi
22170
22171 fi
22172 fi
22173 if test "x$EXPAT_LINK" = "x" ; then
22174 if test "$wxUSE_EXPAT" = "sys" ; then
22175 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
22176echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
22177 { (exit 1); exit 1; }; }
22178 else
22179 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
22180echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
22181 wxUSE_EXPAT=builtin
22182 fi
22183 else
22184 wxUSE_EXPAT=sys
22185 fi
22186 fi
22187 if test "$wxUSE_EXPAT" = "builtin" ; then
22188
22189
22190subdirs="$subdirs src/expat"
22191
22192 fi
22193fi
22194
22195
22196
22197if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
22198 if test "${ac_cv_header_mspack_h+set}" = set; then
22199 echo "$as_me:$LINENO: checking for mspack.h" >&5
22200echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
22201if test "${ac_cv_header_mspack_h+set}" = set; then
22202 echo $ECHO_N "(cached) $ECHO_C" >&6
22203fi
22204echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
22205echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
22206else
22207 # Is the header compilable?
22208echo "$as_me:$LINENO: checking mspack.h usability" >&5
22209echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
22210cat >conftest.$ac_ext <<_ACEOF
22211/* confdefs.h. */
22212_ACEOF
22213cat confdefs.h >>conftest.$ac_ext
22214cat >>conftest.$ac_ext <<_ACEOF
22215/* end confdefs.h. */
22216$ac_includes_default
22217#include <mspack.h>
22218_ACEOF
22219rm -f conftest.$ac_objext
22220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22221 (eval $ac_compile) 2>conftest.er1
a848cd7e 22222 ac_status=$?
ac1cb8d3
VS
22223 grep -v '^ *+' conftest.er1 >conftest.err
22224 rm -f conftest.er1
22225 cat conftest.err >&5
a848cd7e
SC
22226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22227 (exit $ac_status); } &&
da4486fb 22228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22230 (eval $ac_try) 2>&5
22231 ac_status=$?
22232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22233 (exit $ac_status); }; } &&
22234 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22236 (eval $ac_try) 2>&5
22237 ac_status=$?
22238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22239 (exit $ac_status); }; }; then
22240 ac_header_compiler=yes
22241else
22242 echo "$as_me: failed program was:" >&5
22243sed 's/^/| /' conftest.$ac_ext >&5
22244
22245ac_header_compiler=no
22246fi
ac1cb8d3 22247rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22248echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22249echo "${ECHO_T}$ac_header_compiler" >&6
22250
22251# Is the header present?
22252echo "$as_me:$LINENO: checking mspack.h presence" >&5
22253echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
22254cat >conftest.$ac_ext <<_ACEOF
22255/* confdefs.h. */
22256_ACEOF
22257cat confdefs.h >>conftest.$ac_ext
22258cat >>conftest.$ac_ext <<_ACEOF
22259/* end confdefs.h. */
22260#include <mspack.h>
22261_ACEOF
22262if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22263 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22264 ac_status=$?
22265 grep -v '^ *+' conftest.er1 >conftest.err
22266 rm -f conftest.er1
22267 cat conftest.err >&5
22268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22269 (exit $ac_status); } >/dev/null; then
22270 if test -s conftest.err; then
22271 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22272 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22273 else
22274 ac_cpp_err=
22275 fi
22276else
22277 ac_cpp_err=yes
22278fi
22279if test -z "$ac_cpp_err"; then
22280 ac_header_preproc=yes
22281else
22282 echo "$as_me: failed program was:" >&5
22283sed 's/^/| /' conftest.$ac_ext >&5
22284
22285 ac_header_preproc=no
22286fi
22287rm -f conftest.err conftest.$ac_ext
22288echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22289echo "${ECHO_T}$ac_header_preproc" >&6
22290
22291# So? What about this header?
ac1cb8d3
VS
22292case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22293 yes:no: )
a848cd7e
SC
22294 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
22295echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22296 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
22297echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
22298 ac_header_preproc=yes
a848cd7e 22299 ;;
ac1cb8d3 22300 no:yes:* )
a848cd7e
SC
22301 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
22302echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22303 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
22304echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
22305 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
22306echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
22307 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
22308echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22309 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
22310echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22311 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
22312echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22313 (
22314 cat <<\_ASBOX
ac1cb8d3
VS
22315## ----------------------------------------- ##
22316## Report this to wx-dev@lists.wxwidgets.org ##
22317## ----------------------------------------- ##
a848cd7e
SC
22318_ASBOX
22319 ) |
22320 sed "s/^/$as_me: WARNING: /" >&2
22321 ;;
22322esac
22323echo "$as_me:$LINENO: checking for mspack.h" >&5
22324echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
22325if test "${ac_cv_header_mspack_h+set}" = set; then
22326 echo $ECHO_N "(cached) $ECHO_C" >&6
22327else
22328 ac_cv_header_mspack_h=$ac_header_preproc
22329fi
22330echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
22331echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
22332
22333fi
22334if test $ac_cv_header_mspack_h = yes; then
22335 found_mspack_h=1
22336fi
22337
22338
22339 if test "x$found_mspack_h" = "x1"; then
22340 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
22341echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
22342if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
22343 echo $ECHO_N "(cached) $ECHO_C" >&6
22344else
22345 ac_check_lib_save_LIBS=$LIBS
22346LIBS="-lmspack $LIBS"
22347cat >conftest.$ac_ext <<_ACEOF
22348/* confdefs.h. */
22349_ACEOF
22350cat confdefs.h >>conftest.$ac_ext
22351cat >>conftest.$ac_ext <<_ACEOF
22352/* end confdefs.h. */
22353
22354/* Override any gcc2 internal prototype to avoid an error. */
22355#ifdef __cplusplus
22356extern "C"
22357#endif
22358/* We use char because int might match the return type of a gcc2
22359 builtin and then its argument prototype would still apply. */
22360char mspack_create_chm_decompressor ();
22361int
22362main ()
22363{
22364mspack_create_chm_decompressor ();
22365 ;
22366 return 0;
22367}
22368_ACEOF
22369rm -f conftest.$ac_objext conftest$ac_exeext
22370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22371 (eval $ac_link) 2>conftest.er1
a848cd7e 22372 ac_status=$?
ac1cb8d3
VS
22373 grep -v '^ *+' conftest.er1 >conftest.err
22374 rm -f conftest.er1
22375 cat conftest.err >&5
a848cd7e
SC
22376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22377 (exit $ac_status); } &&
da4486fb 22378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22380 (eval $ac_try) 2>&5
22381 ac_status=$?
22382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22383 (exit $ac_status); }; } &&
22384 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22386 (eval $ac_try) 2>&5
22387 ac_status=$?
22388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22389 (exit $ac_status); }; }; then
22390 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
22391else
22392 echo "$as_me: failed program was:" >&5
22393sed 's/^/| /' conftest.$ac_ext >&5
22394
22395ac_cv_lib_mspack_mspack_create_chm_decompressor=no
22396fi
ac1cb8d3
VS
22397rm -f conftest.err conftest.$ac_objext \
22398 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22399LIBS=$ac_check_lib_save_LIBS
22400fi
22401echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
22402echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
22403if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
22404 MSPACK_LINK=" -lmspack"
22405fi
22406
22407 fi
22408 if test "x$MSPACK_LINK" = "x" ; then
22409 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
22410 fi
22411fi
22412
22413if test "$wxUSE_LIBMSPACK" != "no"; then
22414 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
22415#define wxUSE_LIBMSPACK 1
22416_ACEOF
22417
a848cd7e
SC
22418fi
22419
22420
22421
22422AFMINSTALL=
22423WIN32INSTALL=
22424
22425TOOLKIT=
22426TOOLKIT_INCLUDE=
22427WIDGET_SET=
22428
22429if test "$USE_WIN32" = 1 ; then
22430
22431for ac_header in w32api.h
22432do
22433as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22434if eval "test \"\${$as_ac_Header+set}\" = set"; then
22435 echo "$as_me:$LINENO: checking for $ac_header" >&5
22436echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22437if eval "test \"\${$as_ac_Header+set}\" = set"; then
22438 echo $ECHO_N "(cached) $ECHO_C" >&6
22439fi
22440echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22441echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22442else
22443 # Is the header compilable?
22444echo "$as_me:$LINENO: checking $ac_header usability" >&5
22445echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22446cat >conftest.$ac_ext <<_ACEOF
22447/* confdefs.h. */
22448_ACEOF
22449cat confdefs.h >>conftest.$ac_ext
22450cat >>conftest.$ac_ext <<_ACEOF
22451/* end confdefs.h. */
22452$ac_includes_default
22453#include <$ac_header>
22454_ACEOF
22455rm -f conftest.$ac_objext
22456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22457 (eval $ac_compile) 2>conftest.er1
a848cd7e 22458 ac_status=$?
ac1cb8d3
VS
22459 grep -v '^ *+' conftest.er1 >conftest.err
22460 rm -f conftest.er1
22461 cat conftest.err >&5
a848cd7e
SC
22462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22463 (exit $ac_status); } &&
da4486fb 22464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22466 (eval $ac_try) 2>&5
22467 ac_status=$?
22468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22469 (exit $ac_status); }; } &&
22470 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22472 (eval $ac_try) 2>&5
22473 ac_status=$?
22474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22475 (exit $ac_status); }; }; then
22476 ac_header_compiler=yes
22477else
22478 echo "$as_me: failed program was:" >&5
22479sed 's/^/| /' conftest.$ac_ext >&5
22480
22481ac_header_compiler=no
22482fi
ac1cb8d3 22483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22484echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22485echo "${ECHO_T}$ac_header_compiler" >&6
22486
22487# Is the header present?
22488echo "$as_me:$LINENO: checking $ac_header presence" >&5
22489echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22490cat >conftest.$ac_ext <<_ACEOF
22491/* confdefs.h. */
22492_ACEOF
22493cat confdefs.h >>conftest.$ac_ext
22494cat >>conftest.$ac_ext <<_ACEOF
22495/* end confdefs.h. */
22496#include <$ac_header>
22497_ACEOF
22498if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22499 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22500 ac_status=$?
22501 grep -v '^ *+' conftest.er1 >conftest.err
22502 rm -f conftest.er1
22503 cat conftest.err >&5
22504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22505 (exit $ac_status); } >/dev/null; then
22506 if test -s conftest.err; then
22507 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22508 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22509 else
22510 ac_cpp_err=
22511 fi
22512else
22513 ac_cpp_err=yes
22514fi
22515if test -z "$ac_cpp_err"; then
22516 ac_header_preproc=yes
22517else
22518 echo "$as_me: failed program was:" >&5
22519sed 's/^/| /' conftest.$ac_ext >&5
22520
22521 ac_header_preproc=no
22522fi
22523rm -f conftest.err conftest.$ac_ext
22524echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22525echo "${ECHO_T}$ac_header_preproc" >&6
22526
22527# So? What about this header?
ac1cb8d3
VS
22528case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22529 yes:no: )
a848cd7e
SC
22530 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22531echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22532 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22533echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22534 ac_header_preproc=yes
a848cd7e 22535 ;;
ac1cb8d3 22536 no:yes:* )
a848cd7e
SC
22537 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22538echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22539 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22540echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22541 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22542echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22543 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22544echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22546echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22547 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22548echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22549 (
22550 cat <<\_ASBOX
ac1cb8d3
VS
22551## ----------------------------------------- ##
22552## Report this to wx-dev@lists.wxwidgets.org ##
22553## ----------------------------------------- ##
a848cd7e
SC
22554_ASBOX
22555 ) |
22556 sed "s/^/$as_me: WARNING: /" >&2
22557 ;;
22558esac
22559echo "$as_me:$LINENO: checking for $ac_header" >&5
22560echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22561if eval "test \"\${$as_ac_Header+set}\" = set"; then
22562 echo $ECHO_N "(cached) $ECHO_C" >&6
22563else
ac1cb8d3 22564 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
22565fi
22566echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22567echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22568
22569fi
22570if test `eval echo '${'$as_ac_Header'}'` = yes; then
22571 cat >>confdefs.h <<_ACEOF
22572#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22573_ACEOF
22574
22575fi
22576
22577done
22578
22579 if test "${ac_cv_header_windows_h+set}" = set; then
22580 echo "$as_me:$LINENO: checking for windows.h" >&5
22581echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
22582if test "${ac_cv_header_windows_h+set}" = set; then
22583 echo $ECHO_N "(cached) $ECHO_C" >&6
22584fi
22585echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
22586echo "${ECHO_T}$ac_cv_header_windows_h" >&6
22587else
22588 # Is the header compilable?
22589echo "$as_me:$LINENO: checking windows.h usability" >&5
22590echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
22591cat >conftest.$ac_ext <<_ACEOF
22592/* confdefs.h. */
22593_ACEOF
22594cat confdefs.h >>conftest.$ac_ext
22595cat >>conftest.$ac_ext <<_ACEOF
22596/* end confdefs.h. */
22597$ac_includes_default
22598#include <windows.h>
22599_ACEOF
22600rm -f conftest.$ac_objext
22601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22602 (eval $ac_compile) 2>conftest.er1
a848cd7e 22603 ac_status=$?
ac1cb8d3
VS
22604 grep -v '^ *+' conftest.er1 >conftest.err
22605 rm -f conftest.er1
22606 cat conftest.err >&5
a848cd7e
SC
22607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22608 (exit $ac_status); } &&
da4486fb 22609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22611 (eval $ac_try) 2>&5
22612 ac_status=$?
22613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22614 (exit $ac_status); }; } &&
22615 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22617 (eval $ac_try) 2>&5
22618 ac_status=$?
22619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22620 (exit $ac_status); }; }; then
22621 ac_header_compiler=yes
22622else
22623 echo "$as_me: failed program was:" >&5
22624sed 's/^/| /' conftest.$ac_ext >&5
22625
22626ac_header_compiler=no
22627fi
ac1cb8d3 22628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22629echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22630echo "${ECHO_T}$ac_header_compiler" >&6
22631
22632# Is the header present?
22633echo "$as_me:$LINENO: checking windows.h presence" >&5
22634echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
22635cat >conftest.$ac_ext <<_ACEOF
22636/* confdefs.h. */
22637_ACEOF
22638cat confdefs.h >>conftest.$ac_ext
22639cat >>conftest.$ac_ext <<_ACEOF
22640/* end confdefs.h. */
22641#include <windows.h>
22642_ACEOF
22643if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22644 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22645 ac_status=$?
22646 grep -v '^ *+' conftest.er1 >conftest.err
22647 rm -f conftest.er1
22648 cat conftest.err >&5
22649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22650 (exit $ac_status); } >/dev/null; then
22651 if test -s conftest.err; then
22652 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22653 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22654 else
22655 ac_cpp_err=
22656 fi
22657else
22658 ac_cpp_err=yes
22659fi
22660if test -z "$ac_cpp_err"; then
22661 ac_header_preproc=yes
22662else
22663 echo "$as_me: failed program was:" >&5
22664sed 's/^/| /' conftest.$ac_ext >&5
22665
22666 ac_header_preproc=no
22667fi
22668rm -f conftest.err conftest.$ac_ext
22669echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22670echo "${ECHO_T}$ac_header_preproc" >&6
22671
22672# So? What about this header?
ac1cb8d3
VS
22673case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22674 yes:no: )
a848cd7e
SC
22675 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
22676echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22677 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
22678echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
22679 ac_header_preproc=yes
a848cd7e 22680 ;;
ac1cb8d3 22681 no:yes:* )
a848cd7e
SC
22682 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
22683echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22684 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
22685echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
22686 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
22687echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
22688 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
22689echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22690 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
22691echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22692 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
22693echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22694 (
22695 cat <<\_ASBOX
ac1cb8d3
VS
22696## ----------------------------------------- ##
22697## Report this to wx-dev@lists.wxwidgets.org ##
22698## ----------------------------------------- ##
a848cd7e
SC
22699_ASBOX
22700 ) |
22701 sed "s/^/$as_me: WARNING: /" >&2
22702 ;;
22703esac
22704echo "$as_me:$LINENO: checking for windows.h" >&5
22705echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
22706if test "${ac_cv_header_windows_h+set}" = set; then
22707 echo $ECHO_N "(cached) $ECHO_C" >&6
22708else
22709 ac_cv_header_windows_h=$ac_header_preproc
22710fi
22711echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
22712echo "${ECHO_T}$ac_cv_header_windows_h" >&6
22713
22714fi
22715if test $ac_cv_header_windows_h = yes; then
22716 :
22717else
22718
22719 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
22720echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
22721 { (exit 1); exit 1; }; }
22722
22723fi
22724
22725
22726
22727 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
22728
22729 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
22730 LIBS="$LIBS -loleacc"
22731 fi
22732
22733 case "${host}" in
22734 *-*-cygwin* )
22735 LIBS="$LIBS -lkernel32 -luser32"
22736 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
22737 esac
22738
22739 if test "$wxUSE_ODBC" = "sys" ; then
22740 wxUSE_ODBC = "yes"
22741 fi
22742 if test "$wxUSE_ODBC" = "yes" ; then
22743 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
22744 cat >>confdefs.h <<\_ACEOF
22745#define wxUSE_ODBC 1
22746_ACEOF
22747
22748 fi
22749
22750 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
22751 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
22752
22753 WIN32INSTALL=win32install
22754fi
22755
22756if test "$wxUSE_GUI" = "yes"; then
22757 USE_GUI=1
22758
22759 GUI_TK_LIBRARY=
22760
22761 WXGTK12=
22762 WXGTK127=
22763 WXGTK20=
22764 WXGPE=
22765
207bc66c
RN
22766 if test "$wxUSE_COCOA" = 1 ; then
22767 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
22768 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
22769echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
22770 wxUSE_PRINTING_ARCHITECTURE=no
22771 fi
22772 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
22773 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
22774echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
22775 wxUSE_DRAG_AND_DROP=no
22776 fi
22777 if test "$wxUSE_DRAGIMAGE" = "yes"; then
22778 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
22779echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
22780 wxUSE_DRAGIMAGE=no
22781 fi
22782 fi
22783
a848cd7e
SC
22784 if test "$wxUSE_MSW" = 1 ; then
22785 TOOLKIT=MSW
22786 GUIDIST=MSW_DIST
22787
ceec2216 22788 case "${host}" in
a848cd7e
SC
22789 *-*-mingw32* )
22790 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
22791 esac
22792 fi
22793
22794 if test "$wxUSE_GTK" = 1; then
22795 echo "$as_me:$LINENO: checking for GTK+ version" >&5
22796echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
22797
22798 gtk_version_cached=1
22799 if test "${wx_cv_lib_gtk+set}" = set; then
22800 echo $ECHO_N "(cached) $ECHO_C" >&6
22801else
22802
22803 gtk_version_cached=0
22804 echo "$as_me:$LINENO: result: " >&5
22805echo "${ECHO_T}" >&6
22806
22807 GTK_MODULES=
22808 if test "$wxUSE_THREADS" = "yes"; then
22809 GTK_MODULES=gthread
22810 fi
22811
22812 wx_cv_lib_gtk=
22813 if test "x$wxUSE_GTK2" = "xyes"; then
22814 # Check whether --enable-gtktest or --disable-gtktest was given.
22815if test "${enable_gtktest+set}" = set; then
22816 enableval="$enable_gtktest"
22817
22818else
22819 enable_gtktest=yes
22820fi;
22821
22822 pkg_config_args=gtk+-2.0
22823 for module in . $GTK_MODULES
22824 do
22825 case "$module" in
22826 gthread)
22827 pkg_config_args="$pkg_config_args gthread-2.0"
22828 ;;
22829 esac
22830 done
22831
22832 no_gtk=""
22833
22834 # Extract the first word of "pkg-config", so it can be a program name with args.
22835set dummy pkg-config; ac_word=$2
22836echo "$as_me:$LINENO: checking for $ac_word" >&5
22837echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22838if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22839 echo $ECHO_N "(cached) $ECHO_C" >&6
22840else
22841 case $PKG_CONFIG in
22842 [\\/]* | ?:[\\/]*)
22843 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22844 ;;
22845 *)
22846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22847for as_dir in $PATH
22848do
22849 IFS=$as_save_IFS
22850 test -z "$as_dir" && as_dir=.
22851 for ac_exec_ext in '' $ac_executable_extensions; do
22852 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22853 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22855 break 2
22856 fi
22857done
22858done
22859
22860 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22861 ;;
22862esac
22863fi
22864PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22865
22866if test -n "$PKG_CONFIG"; then
22867 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22868echo "${ECHO_T}$PKG_CONFIG" >&6
22869else
22870 echo "$as_me:$LINENO: result: no" >&5
22871echo "${ECHO_T}no" >&6
22872fi
22873
22874
22875 if test x$PKG_CONFIG != xno ; then
22876 if pkg-config --atleast-pkgconfig-version 0.7 ; then
22877 :
22878 else
c2218763 22879 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
22880 no_gtk=yes
22881 PKG_CONFIG=no
22882 fi
22883 else
22884 no_gtk=yes
22885 fi
22886
22887 min_gtk_version=2.0.0
22888 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
22889echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
22890
22891 if test x$PKG_CONFIG != xno ; then
22892 ## don't try to run the test against uninstalled libtool libs
22893 if $PKG_CONFIG --uninstalled $pkg_config_args; then
22894 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
22895 enable_gtktest=no
22896 fi
22897
22898 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
22899 :
22900 else
22901 no_gtk=yes
22902 fi
22903 fi
22904
22905 if test x"$no_gtk" = x ; then
22906 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
22907 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
22908 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22909 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22910 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22911 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22912 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22913 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22914 if test "x$enable_gtktest" = "xyes" ; then
22915 ac_save_CFLAGS="$CFLAGS"
22916 ac_save_LIBS="$LIBS"
22917 CFLAGS="$CFLAGS $GTK_CFLAGS"
22918 LIBS="$GTK_LIBS $LIBS"
22919 rm -f conf.gtktest
22920 if test "$cross_compiling" = yes; then
22921 echo $ac_n "cross compiling; assumed OK... $ac_c"
22922else
22923 cat >conftest.$ac_ext <<_ACEOF
22924/* confdefs.h. */
22925_ACEOF
22926cat confdefs.h >>conftest.$ac_ext
22927cat >>conftest.$ac_ext <<_ACEOF
22928/* end confdefs.h. */
22929
22930#include <gtk/gtk.h>
22931#include <stdio.h>
22932#include <stdlib.h>
22933
22934int
22935main ()
22936{
22937 int major, minor, micro;
22938 char *tmp_version;
22939
22940 system ("touch conf.gtktest");
22941
22942 /* HP/UX 9 (%@#!) writes to sscanf strings */
22943 tmp_version = g_strdup("$min_gtk_version");
22944 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22945 printf("%s, bad version string\n", "$min_gtk_version");
22946 exit(1);
22947 }
22948
22949 if ((gtk_major_version != $gtk_config_major_version) ||
22950 (gtk_minor_version != $gtk_config_minor_version) ||
22951 (gtk_micro_version != $gtk_config_micro_version))
22952 {
22953 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
22954 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22955 gtk_major_version, gtk_minor_version, gtk_micro_version);
22956 printf ("*** was found! If pkg-config was correct, then it is best\n");
22957 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22958 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22959 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22960 printf("*** required on your system.\n");
22961 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
22962 printf("*** to point to the correct configuration files\n");
22963 }
22964 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22965 (gtk_minor_version != GTK_MINOR_VERSION) ||
22966 (gtk_micro_version != GTK_MICRO_VERSION))
22967 {
22968 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22969 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22970 printf("*** library (version %d.%d.%d)\n",
22971 gtk_major_version, gtk_minor_version, gtk_micro_version);
22972 }
22973 else
22974 {
22975 if ((gtk_major_version > major) ||
22976 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22977 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22978 {
22979 return 0;
22980 }
22981 else
22982 {
22983 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22984 gtk_major_version, gtk_minor_version, gtk_micro_version);
22985 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22986 major, minor, micro);
22987 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22988 printf("***\n");
22989 printf("*** If you have already installed a sufficiently new version, this error\n");
22990 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
22991 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22992 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
22993 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
22994 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22995 printf("*** so that the correct libraries are found at run-time))\n");
22996 }
22997 }
22998 return 1;
22999}
23000
23001_ACEOF
23002rm -f conftest$ac_exeext
23003if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23004 (eval $ac_link) 2>&5
23005 ac_status=$?
23006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23007 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23009 (eval $ac_try) 2>&5
23010 ac_status=$?
23011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23012 (exit $ac_status); }; }; then
23013 :
23014else
23015 echo "$as_me: program exited with status $ac_status" >&5
23016echo "$as_me: failed program was:" >&5
23017sed 's/^/| /' conftest.$ac_ext >&5
23018
23019( exit $ac_status )
23020no_gtk=yes
23021fi
ac1cb8d3 23022rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23023fi
23024 CFLAGS="$ac_save_CFLAGS"
23025 LIBS="$ac_save_LIBS"
23026 fi
23027 fi
23028 if test "x$no_gtk" = x ; then
23029 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
23030echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
23031 wx_cv_lib_gtk=2.0
23032 else
23033 echo "$as_me:$LINENO: result: no" >&5
23034echo "${ECHO_T}no" >&6
23035 if test "$PKG_CONFIG" = "no" ; then
23036 echo "*** A new enough version of pkg-config was not found."
23037 echo "*** See http://pkgconfig.sourceforge.net"
23038 else
23039 if test -f conf.gtktest ; then
23040 :
23041 else
23042 echo "*** Could not run GTK+ test program, checking why..."
23043 ac_save_CFLAGS="$CFLAGS"
23044 ac_save_LIBS="$LIBS"
23045 CFLAGS="$CFLAGS $GTK_CFLAGS"
23046 LIBS="$LIBS $GTK_LIBS"
23047 cat >conftest.$ac_ext <<_ACEOF
23048/* confdefs.h. */
23049_ACEOF
23050cat confdefs.h >>conftest.$ac_ext
23051cat >>conftest.$ac_ext <<_ACEOF
23052/* end confdefs.h. */
23053
23054#include <gtk/gtk.h>
23055#include <stdio.h>
23056
23057int
23058main ()
23059{
23060 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23061 ;
23062 return 0;
23063}
23064_ACEOF
23065rm -f conftest.$ac_objext conftest$ac_exeext
23066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23067 (eval $ac_link) 2>conftest.er1
a848cd7e 23068 ac_status=$?
ac1cb8d3
VS
23069 grep -v '^ *+' conftest.er1 >conftest.err
23070 rm -f conftest.er1
23071 cat conftest.err >&5
a848cd7e
SC
23072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23073 (exit $ac_status); } &&
da4486fb 23074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23076 (eval $ac_try) 2>&5
23077 ac_status=$?
23078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23079 (exit $ac_status); }; } &&
23080 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23082 (eval $ac_try) 2>&5
23083 ac_status=$?
23084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23085 (exit $ac_status); }; }; then
23086 echo "*** The test program compiled, but did not run. This usually means"
23087 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
23088 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
23089 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23090 echo "*** to the installed location Also, make sure you have run ldconfig if that"
23091 echo "*** is required on your system"
23092 echo "***"
23093 echo "*** If you have an old version installed, it is best to remove it, although"
23094 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23095else
23096 echo "$as_me: failed program was:" >&5
23097sed 's/^/| /' conftest.$ac_ext >&5
23098
23099 echo "*** The test program failed to compile or link. See the file config.log for the"
23100 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
23101fi
ac1cb8d3
VS
23102rm -f conftest.err conftest.$ac_objext \
23103 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23104 CFLAGS="$ac_save_CFLAGS"
23105 LIBS="$ac_save_LIBS"
23106 fi
23107 fi
23108 GTK_CFLAGS=""
23109 GTK_LIBS=""
23110 :
23111 fi
23112
23113
23114 rm -f conf.gtktest
23115
23116 else
23117
23118# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
23119if test "${with_gtk_prefix+set}" = set; then
23120 withval="$with_gtk_prefix"
23121 gtk_config_prefix="$withval"
23122else
23123 gtk_config_prefix=""
23124fi;
23125
23126# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
23127if test "${with_gtk_exec_prefix+set}" = set; then
23128 withval="$with_gtk_exec_prefix"
23129 gtk_config_exec_prefix="$withval"
23130else
23131 gtk_config_exec_prefix=""
23132fi;
23133# Check whether --enable-gtktest or --disable-gtktest was given.
23134if test "${enable_gtktest+set}" = set; then
23135 enableval="$enable_gtktest"
23136
23137else
23138 enable_gtktest=yes
23139fi;
23140
23141 for module in . $GTK_MODULES
23142 do
23143 case "$module" in
23144 gthread)
23145 gtk_config_args="$gtk_config_args gthread"
23146 ;;
23147 esac
23148 done
23149
23150 if test x$gtk_config_exec_prefix != x ; then
23151 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
23152 if test x${GTK_CONFIG+set} != xset ; then
23153 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
23154 fi
23155 fi
23156 if test x$gtk_config_prefix != x ; then
23157 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
23158 if test x${GTK_CONFIG+set} != xset ; then
23159 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
23160 fi
23161 fi
23162
23163 # Extract the first word of "gtk-config", so it can be a program name with args.
23164set dummy gtk-config; ac_word=$2
23165echo "$as_me:$LINENO: checking for $ac_word" >&5
23166echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23167if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
23168 echo $ECHO_N "(cached) $ECHO_C" >&6
23169else
23170 case $GTK_CONFIG in
23171 [\\/]* | ?:[\\/]*)
23172 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
23173 ;;
23174 *)
23175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23176for as_dir in $PATH
23177do
23178 IFS=$as_save_IFS
23179 test -z "$as_dir" && as_dir=.
23180 for ac_exec_ext in '' $ac_executable_extensions; do
23181 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23182 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23184 break 2
23185 fi
23186done
23187done
23188
23189 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
23190 ;;
23191esac
23192fi
23193GTK_CONFIG=$ac_cv_path_GTK_CONFIG
23194
23195if test -n "$GTK_CONFIG"; then
23196 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
23197echo "${ECHO_T}$GTK_CONFIG" >&6
23198else
23199 echo "$as_me:$LINENO: result: no" >&5
23200echo "${ECHO_T}no" >&6
23201fi
23202
23203 min_gtk_version=1.2.7
23204 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
23205echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
23206 no_gtk=""
23207 if test "$GTK_CONFIG" = "no" ; then
23208 no_gtk=yes
23209 else
23210 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
23211 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
23212 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
23213 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
23214 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
23215 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
23216 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
23217 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
23218 if test "x$enable_gtktest" = "xyes" ; then
23219 ac_save_CFLAGS="$CFLAGS"
23220 ac_save_LIBS="$LIBS"
23221 CFLAGS="$CFLAGS $GTK_CFLAGS"
23222 LIBS="$GTK_LIBS $LIBS"
23223 rm -f conf.gtktest
23224 if test "$cross_compiling" = yes; then
23225 echo $ac_n "cross compiling; assumed OK... $ac_c"
23226else
23227 cat >conftest.$ac_ext <<_ACEOF
23228/* confdefs.h. */
23229_ACEOF
23230cat confdefs.h >>conftest.$ac_ext
23231cat >>conftest.$ac_ext <<_ACEOF
23232/* end confdefs.h. */
23233
23234#include <gtk/gtk.h>
23235#include <stdio.h>
23236#include <stdlib.h>
23237
23238int
23239main ()
23240{
23241 int major, minor, micro;
23242 char *tmp_version;
23243
23244 system ("touch conf.gtktest");
23245
23246 /* HP/UX 9 (%@#!) writes to sscanf strings */
23247 tmp_version = g_strdup("$min_gtk_version");
23248 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
23249 printf("%s, bad version string\n", "$min_gtk_version");
23250 exit(1);
23251 }
23252
23253 if ((gtk_major_version != $gtk_config_major_version) ||
23254 (gtk_minor_version != $gtk_config_minor_version) ||
23255 (gtk_micro_version != $gtk_config_micro_version))
23256 {
23257 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
23258 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
23259 gtk_major_version, gtk_minor_version, gtk_micro_version);
23260 printf ("*** was found! If gtk-config was correct, then it is best\n");
23261 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
23262 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
23263 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
23264 printf("*** required on your system.\n");
23265 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
23266 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
23267 printf("*** before re-running configure\n");
23268 }
23269#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
23270 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
23271 (gtk_minor_version != GTK_MINOR_VERSION) ||
23272 (gtk_micro_version != GTK_MICRO_VERSION))
23273 {
23274 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
23275 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
23276 printf("*** library (version %d.%d.%d)\n",
23277 gtk_major_version, gtk_minor_version, gtk_micro_version);
23278 }
23279#endif /* defined (GTK_MAJOR_VERSION) ... */
23280 else
23281 {
23282 if ((gtk_major_version > major) ||
23283 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
23284 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
23285 {
23286 return 0;
23287 }
23288 else
23289 {
23290 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
23291 gtk_major_version, gtk_minor_version, gtk_micro_version);
23292 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
23293 major, minor, micro);
23294 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
23295 printf("***\n");
23296 printf("*** If you have already installed a sufficiently new version, this error\n");
23297 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
23298 printf("*** being found. The easiest way to fix this is to remove the old version\n");
23299 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
23300 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
23301 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
23302 printf("*** so that the correct libraries are found at run-time))\n");
23303 }
23304 }
23305 return 1;
23306}
23307
23308_ACEOF
23309rm -f conftest$ac_exeext
23310if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23311 (eval $ac_link) 2>&5
23312 ac_status=$?
23313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23314 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23316 (eval $ac_try) 2>&5
23317 ac_status=$?
23318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23319 (exit $ac_status); }; }; then
23320 :
23321else
23322 echo "$as_me: program exited with status $ac_status" >&5
23323echo "$as_me: failed program was:" >&5
23324sed 's/^/| /' conftest.$ac_ext >&5
23325
23326( exit $ac_status )
23327no_gtk=yes
23328fi
ac1cb8d3 23329rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23330fi
23331 CFLAGS="$ac_save_CFLAGS"
23332 LIBS="$ac_save_LIBS"
23333 fi
23334 fi
23335 if test "x$no_gtk" = x ; then
23336 echo "$as_me:$LINENO: result: yes" >&5
23337echo "${ECHO_T}yes" >&6
23338 wx_cv_lib_gtk=1.2.7
23339 else
23340 echo "$as_me:$LINENO: result: no" >&5
23341echo "${ECHO_T}no" >&6
23342 if test "$GTK_CONFIG" = "no" ; then
23343 echo "*** The gtk-config script installed by GTK could not be found"
23344 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
23345 echo "*** your path, or set the GTK_CONFIG environment variable to the"
23346 echo "*** full path to gtk-config."
23347 else
23348 if test -f conf.gtktest ; then
23349 :
23350 else
23351 echo "*** Could not run GTK test program, checking why..."
23352 CFLAGS="$CFLAGS $GTK_CFLAGS"
23353 LIBS="$LIBS $GTK_LIBS"
23354 cat >conftest.$ac_ext <<_ACEOF
23355/* confdefs.h. */
23356_ACEOF
23357cat confdefs.h >>conftest.$ac_ext
23358cat >>conftest.$ac_ext <<_ACEOF
23359/* end confdefs.h. */
23360
23361#include <gtk/gtk.h>
23362#include <stdio.h>
23363
23364int
23365main ()
23366{
23367 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23368 ;
23369 return 0;
23370}
23371_ACEOF
23372rm -f conftest.$ac_objext conftest$ac_exeext
23373if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23374 (eval $ac_link) 2>conftest.er1
a848cd7e 23375 ac_status=$?
ac1cb8d3
VS
23376 grep -v '^ *+' conftest.er1 >conftest.err
23377 rm -f conftest.er1
23378 cat conftest.err >&5
a848cd7e
SC
23379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23380 (exit $ac_status); } &&
da4486fb 23381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23383 (eval $ac_try) 2>&5
23384 ac_status=$?
23385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23386 (exit $ac_status); }; } &&
23387 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23389 (eval $ac_try) 2>&5
23390 ac_status=$?
23391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23392 (exit $ac_status); }; }; then
23393 echo "*** The test program compiled, but did not run. This usually means"
23394 echo "*** that the run-time linker is not finding GTK or finding the wrong"
23395 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
23396 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23397 echo "*** to the installed location Also, make sure you have run ldconfig if that"
23398 echo "*** is required on your system"
23399 echo "***"
23400 echo "*** If you have an old version installed, it is best to remove it, although"
23401 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23402 echo "***"
23403 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
23404 echo "*** came with the system with the command"
23405 echo "***"
23406 echo "*** rpm --erase --nodeps gtk gtk-devel"
23407else
23408 echo "$as_me: failed program was:" >&5
23409sed 's/^/| /' conftest.$ac_ext >&5
23410
23411 echo "*** The test program failed to compile or link. See the file config.log for the"
23412 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
23413 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
23414 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
23415fi
ac1cb8d3
VS
23416rm -f conftest.err conftest.$ac_objext \
23417 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23418 CFLAGS="$ac_save_CFLAGS"
23419 LIBS="$ac_save_LIBS"
23420 fi
23421 fi
23422 GTK_CFLAGS=""
23423 GTK_LIBS=""
23424 :
23425 fi
23426
23427
23428 rm -f conf.gtktest
23429
23430
23431 if test -z "$wx_cv_lib_gtk"; then
23432
23433# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
23434if test "${with_gtk_prefix+set}" = set; then
23435 withval="$with_gtk_prefix"
23436 gtk_config_prefix="$withval"
23437else
23438 gtk_config_prefix=""
23439fi;
23440
23441# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
23442if test "${with_gtk_exec_prefix+set}" = set; then
23443 withval="$with_gtk_exec_prefix"
23444 gtk_config_exec_prefix="$withval"
23445else
23446 gtk_config_exec_prefix=""
23447fi;
23448# Check whether --enable-gtktest or --disable-gtktest was given.
23449if test "${enable_gtktest+set}" = set; then
23450 enableval="$enable_gtktest"
23451
23452else
23453 enable_gtktest=yes
23454fi;
23455
23456 for module in . $GTK_MODULES
23457 do
23458 case "$module" in
23459 gthread)
23460 gtk_config_args="$gtk_config_args gthread"
23461 ;;
23462 esac
23463 done
23464
23465 if test x$gtk_config_exec_prefix != x ; then
23466 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
23467 if test x${GTK_CONFIG+set} != xset ; then
23468 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
23469 fi
23470 fi
23471 if test x$gtk_config_prefix != x ; then
23472 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
23473 if test x${GTK_CONFIG+set} != xset ; then
23474 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
23475 fi
23476 fi
23477
23478 # Extract the first word of "gtk-config", so it can be a program name with args.
23479set dummy gtk-config; ac_word=$2
23480echo "$as_me:$LINENO: checking for $ac_word" >&5
23481echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23482if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
23483 echo $ECHO_N "(cached) $ECHO_C" >&6
23484else
23485 case $GTK_CONFIG in
23486 [\\/]* | ?:[\\/]*)
23487 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
23488 ;;
23489 *)
23490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23491for as_dir in $PATH
23492do
23493 IFS=$as_save_IFS
23494 test -z "$as_dir" && as_dir=.
23495 for ac_exec_ext in '' $ac_executable_extensions; do
23496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23497 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23499 break 2
23500 fi
23501done
23502done
23503
23504 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
23505 ;;
23506esac
23507fi
23508GTK_CONFIG=$ac_cv_path_GTK_CONFIG
23509
23510if test -n "$GTK_CONFIG"; then
23511 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
23512echo "${ECHO_T}$GTK_CONFIG" >&6
23513else
23514 echo "$as_me:$LINENO: result: no" >&5
23515echo "${ECHO_T}no" >&6
23516fi
23517
23518 min_gtk_version=1.2.3
23519 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
23520echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
23521 no_gtk=""
23522 if test "$GTK_CONFIG" = "no" ; then
23523 no_gtk=yes
23524 else
23525 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
23526 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
23527 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
23528 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
23529 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
23530 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
23531 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
23532 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
23533 if test "x$enable_gtktest" = "xyes" ; then
23534 ac_save_CFLAGS="$CFLAGS"
23535 ac_save_LIBS="$LIBS"
23536 CFLAGS="$CFLAGS $GTK_CFLAGS"
23537 LIBS="$GTK_LIBS $LIBS"
23538 rm -f conf.gtktest
23539 if test "$cross_compiling" = yes; then
23540 echo $ac_n "cross compiling; assumed OK... $ac_c"
23541else
23542 cat >conftest.$ac_ext <<_ACEOF
23543/* confdefs.h. */
23544_ACEOF
23545cat confdefs.h >>conftest.$ac_ext
23546cat >>conftest.$ac_ext <<_ACEOF
23547/* end confdefs.h. */
23548
23549#include <gtk/gtk.h>
23550#include <stdio.h>
23551#include <stdlib.h>
23552
23553int
23554main ()
23555{
23556 int major, minor, micro;
23557 char *tmp_version;
23558
23559 system ("touch conf.gtktest");
23560
23561 /* HP/UX 9 (%@#!) writes to sscanf strings */
23562 tmp_version = g_strdup("$min_gtk_version");
23563 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
23564 printf("%s, bad version string\n", "$min_gtk_version");
23565 exit(1);
23566 }
23567
23568 if ((gtk_major_version != $gtk_config_major_version) ||
23569 (gtk_minor_version != $gtk_config_minor_version) ||
23570 (gtk_micro_version != $gtk_config_micro_version))
23571 {
23572 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
23573 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
23574 gtk_major_version, gtk_minor_version, gtk_micro_version);
23575 printf ("*** was found! If gtk-config was correct, then it is best\n");
23576 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
23577 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
23578 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
23579 printf("*** required on your system.\n");
23580 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
23581 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
23582 printf("*** before re-running configure\n");
23583 }
23584#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
23585 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
23586 (gtk_minor_version != GTK_MINOR_VERSION) ||
23587 (gtk_micro_version != GTK_MICRO_VERSION))
23588 {
23589 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
23590 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
23591 printf("*** library (version %d.%d.%d)\n",
23592 gtk_major_version, gtk_minor_version, gtk_micro_version);
23593 }
23594#endif /* defined (GTK_MAJOR_VERSION) ... */
23595 else
23596 {
23597 if ((gtk_major_version > major) ||
23598 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
23599 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
23600 {
23601 return 0;
23602 }
23603 else
23604 {
23605 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
23606 gtk_major_version, gtk_minor_version, gtk_micro_version);
23607 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
23608 major, minor, micro);
23609 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
23610 printf("***\n");
23611 printf("*** If you have already installed a sufficiently new version, this error\n");
23612 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
23613 printf("*** being found. The easiest way to fix this is to remove the old version\n");
23614 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
23615 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
23616 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
23617 printf("*** so that the correct libraries are found at run-time))\n");
23618 }
23619 }
23620 return 1;
23621}
23622
23623_ACEOF
23624rm -f conftest$ac_exeext
23625if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23626 (eval $ac_link) 2>&5
23627 ac_status=$?
23628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23629 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23631 (eval $ac_try) 2>&5
23632 ac_status=$?
23633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23634 (exit $ac_status); }; }; then
23635 :
23636else
23637 echo "$as_me: program exited with status $ac_status" >&5
23638echo "$as_me: failed program was:" >&5
23639sed 's/^/| /' conftest.$ac_ext >&5
23640
23641( exit $ac_status )
23642no_gtk=yes
23643fi
ac1cb8d3 23644rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23645fi
23646 CFLAGS="$ac_save_CFLAGS"
23647 LIBS="$ac_save_LIBS"
23648 fi
23649 fi
23650 if test "x$no_gtk" = x ; then
23651 echo "$as_me:$LINENO: result: yes" >&5
23652echo "${ECHO_T}yes" >&6
23653 wx_cv_lib_gtk=1.2.3
23654 else
23655 echo "$as_me:$LINENO: result: no" >&5
23656echo "${ECHO_T}no" >&6
23657 if test "$GTK_CONFIG" = "no" ; then
23658 echo "*** The gtk-config script installed by GTK could not be found"
23659 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
23660 echo "*** your path, or set the GTK_CONFIG environment variable to the"
23661 echo "*** full path to gtk-config."
23662 else
23663 if test -f conf.gtktest ; then
23664 :
23665 else
23666 echo "*** Could not run GTK test program, checking why..."
23667 CFLAGS="$CFLAGS $GTK_CFLAGS"
23668 LIBS="$LIBS $GTK_LIBS"
23669 cat >conftest.$ac_ext <<_ACEOF
23670/* confdefs.h. */
23671_ACEOF
23672cat confdefs.h >>conftest.$ac_ext
23673cat >>conftest.$ac_ext <<_ACEOF
23674/* end confdefs.h. */
23675
23676#include <gtk/gtk.h>
23677#include <stdio.h>
23678
23679int
23680main ()
23681{
23682 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23683 ;
23684 return 0;
23685}
23686_ACEOF
23687rm -f conftest.$ac_objext conftest$ac_exeext
23688if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23689 (eval $ac_link) 2>conftest.er1
a848cd7e 23690 ac_status=$?
ac1cb8d3
VS
23691 grep -v '^ *+' conftest.er1 >conftest.err
23692 rm -f conftest.er1
23693 cat conftest.err >&5
a848cd7e
SC
23694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23695 (exit $ac_status); } &&
da4486fb 23696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23698 (eval $ac_try) 2>&5
23699 ac_status=$?
23700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23701 (exit $ac_status); }; } &&
23702 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23704 (eval $ac_try) 2>&5
23705 ac_status=$?
23706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23707 (exit $ac_status); }; }; then
23708 echo "*** The test program compiled, but did not run. This usually means"
23709 echo "*** that the run-time linker is not finding GTK or finding the wrong"
23710 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
23711 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23712 echo "*** to the installed location Also, make sure you have run ldconfig if that"
23713 echo "*** is required on your system"
23714 echo "***"
23715 echo "*** If you have an old version installed, it is best to remove it, although"
23716 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23717 echo "***"
23718 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
23719 echo "*** came with the system with the command"
23720 echo "***"
23721 echo "*** rpm --erase --nodeps gtk gtk-devel"
23722else
23723 echo "$as_me: failed program was:" >&5
23724sed 's/^/| /' conftest.$ac_ext >&5
23725
23726 echo "*** The test program failed to compile or link. See the file config.log for the"
23727 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
23728 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
23729 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
23730fi
ac1cb8d3
VS
23731rm -f conftest.err conftest.$ac_objext \
23732 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23733 CFLAGS="$ac_save_CFLAGS"
23734 LIBS="$ac_save_LIBS"
23735 fi
23736 fi
23737 GTK_CFLAGS=""
23738 GTK_LIBS=""
23739 :
23740 fi
23741
23742
23743 rm -f conf.gtktest
23744
23745 fi
23746 fi
23747
23748 if test -z "$wx_cv_lib_gtk"; then
23749 wx_cv_lib_gtk=none
23750 else
23751 wx_cv_cflags_gtk=$GTK_CFLAGS
23752 wx_cv_libs_gtk=$GTK_LIBS
23753 fi
23754
23755
23756fi
23757
23758
23759 if test "$gtk_version_cached" = 1; then
23760 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
23761echo "${ECHO_T}$wx_cv_lib_gtk" >&6
23762 fi
23763
23764 case "$wx_cv_lib_gtk" in
23765 2.0) WXGTK20=1
23766 TOOLKIT_VERSION=2
23767 ;;
23768 1.2.7) WXGTK127=1
23769 WXGTK12=1
23770 ;;
23771 1.2.3) WXGTK12=1
23772 ;;
23773 *) { { echo "$as_me:$LINENO: error:
23774Please check that gtk-config is in path, the directory
23775where GTK+ libraries are installed (returned by
23776'gtk-config --libs' command) is in LD_LIBRARY_PATH or
23777equivalent variable and GTK+ is version 1.2.3 or above.
23778 " >&5
23779echo "$as_me: error:
23780Please check that gtk-config is in path, the directory
23781where GTK+ libraries are installed (returned by
23782'gtk-config --libs' command) is in LD_LIBRARY_PATH or
23783equivalent variable and GTK+ is version 1.2.3 or above.
23784 " >&2;}
23785 { (exit 1); exit 1; }; }
23786 ;;
23787 esac
23788
23789 if test "$WXGTK20" = 1; then
304205f1
VS
23790 save_CFLAGS="$CFLAGS"
23791 save_LIBS="$LIBS"
23792 CFLAGS="$CFLAGS $GTK_CFLAGS"
23793 LIBS="$LIBS $GTK_LIBS"
23794
9755e73b 23795
304205f1
VS
23796for ac_func in pango_font_family_is_monospace
23797do
23798as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23799echo "$as_me:$LINENO: checking for $ac_func" >&5
23800echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23801if eval "test \"\${$as_ac_var+set}\" = set"; then
23802 echo $ECHO_N "(cached) $ECHO_C" >&6
23803else
23804 cat >conftest.$ac_ext <<_ACEOF
23805/* confdefs.h. */
23806_ACEOF
23807cat confdefs.h >>conftest.$ac_ext
23808cat >>conftest.$ac_ext <<_ACEOF
23809/* end confdefs.h. */
23810/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23812#define $ac_func innocuous_$ac_func
23813
23814/* System header to define __stub macros and hopefully few prototypes,
23815 which can conflict with char $ac_func (); below.
23816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23817 <limits.h> exists even on freestanding compilers. */
23818
23819#ifdef __STDC__
23820# include <limits.h>
23821#else
23822# include <assert.h>
23823#endif
23824
23825#undef $ac_func
23826
23827/* Override any gcc2 internal prototype to avoid an error. */
23828#ifdef __cplusplus
23829extern "C"
23830{
23831#endif
23832/* We use char because int might match the return type of a gcc2
23833 builtin and then its argument prototype would still apply. */
23834char $ac_func ();
23835/* The GNU C library defines this for functions which it implements
23836 to always fail with ENOSYS. Some functions are actually named
23837 something starting with __ and the normal name is an alias. */
23838#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23839choke me
23840#else
23841char (*f) () = $ac_func;
23842#endif
23843#ifdef __cplusplus
23844}
23845#endif
23846
23847int
23848main ()
23849{
23850return f != $ac_func;
23851 ;
23852 return 0;
23853}
23854_ACEOF
23855rm -f conftest.$ac_objext conftest$ac_exeext
23856if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23857 (eval $ac_link) 2>conftest.er1
23858 ac_status=$?
23859 grep -v '^ *+' conftest.er1 >conftest.err
23860 rm -f conftest.er1
23861 cat conftest.err >&5
23862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23863 (exit $ac_status); } &&
da4486fb 23864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
23865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23866 (eval $ac_try) 2>&5
23867 ac_status=$?
23868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23869 (exit $ac_status); }; } &&
23870 { ac_try='test -s conftest$ac_exeext'
23871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23872 (eval $ac_try) 2>&5
23873 ac_status=$?
23874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23875 (exit $ac_status); }; }; then
23876 eval "$as_ac_var=yes"
23877else
23878 echo "$as_me: failed program was:" >&5
23879sed 's/^/| /' conftest.$ac_ext >&5
23880
23881eval "$as_ac_var=no"
23882fi
23883rm -f conftest.err conftest.$ac_objext \
23884 conftest$ac_exeext conftest.$ac_ext
23885fi
23886echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23887echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23888if test `eval echo '${'$as_ac_var'}'` = yes; then
23889 cat >>confdefs.h <<_ACEOF
23890#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23891_ACEOF
23892
23893fi
23894done
23895
9755e73b
VS
23896
23897 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
23898echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
23899 cat >conftest.$ac_ext <<_ACEOF
23900/* confdefs.h. */
23901_ACEOF
23902cat confdefs.h >>conftest.$ac_ext
23903cat >>conftest.$ac_ext <<_ACEOF
23904/* end confdefs.h. */
23905
23906 #include <gtk/gtk.h>
23907
23908int
23909main ()
23910{
23911
23912 #if !GTK_CHECK_VERSION(2,4,0)
23913 #error "Not GTK+ 2.4"
23914 #endif
23915
23916 ;
23917 return 0;
23918}
23919_ACEOF
23920rm -f conftest.$ac_objext
23921if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23922 (eval $ac_compile) 2>conftest.er1
23923 ac_status=$?
23924 grep -v '^ *+' conftest.er1 >conftest.err
23925 rm -f conftest.er1
23926 cat conftest.err >&5
23927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23928 (exit $ac_status); } &&
da4486fb 23929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755e73b
VS
23930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23931 (eval $ac_try) 2>&5
23932 ac_status=$?
23933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23934 (exit $ac_status); }; } &&
23935 { ac_try='test -s conftest.$ac_objext'
23936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23937 (eval $ac_try) 2>&5
23938 ac_status=$?
23939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23940 (exit $ac_status); }; }; then
23941
23942 cat >>confdefs.h <<\_ACEOF
23943#define __WXGTK24__ 1
23944_ACEOF
23945
23946 echo "$as_me:$LINENO: result: yes" >&5
23947echo "${ECHO_T}yes" >&6
23948
23949else
23950 echo "$as_me: failed program was:" >&5
23951sed 's/^/| /' conftest.$ac_ext >&5
23952
23953
23954 echo "$as_me:$LINENO: result: no" >&5
23955echo "${ECHO_T}no" >&6
23956
23957fi
23958rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23959
304205f1
VS
23960 CFLAGS="$save_CFLAGS"
23961 LIBS="$save_LIBS"
a848cd7e
SC
23962 else
23963 if test "$wxUSE_UNICODE" = "yes"; then
23964 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
23965echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
23966 wxUSE_UNICODE=no
23967 fi
23968 fi
23969
23970 if test "$USE_DARWIN" != 1; then
23971
23972for ac_func in poll
23973do
23974as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23975echo "$as_me:$LINENO: checking for $ac_func" >&5
23976echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23977if eval "test \"\${$as_ac_var+set}\" = set"; then
23978 echo $ECHO_N "(cached) $ECHO_C" >&6
23979else
23980 cat >conftest.$ac_ext <<_ACEOF
23981/* confdefs.h. */
23982_ACEOF
23983cat confdefs.h >>conftest.$ac_ext
23984cat >>conftest.$ac_ext <<_ACEOF
23985/* end confdefs.h. */
ac1cb8d3
VS
23986/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23988#define $ac_func innocuous_$ac_func
23989
a848cd7e
SC
23990/* System header to define __stub macros and hopefully few prototypes,
23991 which can conflict with char $ac_func (); below.
23992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23993 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 23994
a848cd7e
SC
23995#ifdef __STDC__
23996# include <limits.h>
23997#else
23998# include <assert.h>
23999#endif
ac1cb8d3
VS
24000
24001#undef $ac_func
24002
a848cd7e
SC
24003/* Override any gcc2 internal prototype to avoid an error. */
24004#ifdef __cplusplus
24005extern "C"
24006{
24007#endif
24008/* We use char because int might match the return type of a gcc2
24009 builtin and then its argument prototype would still apply. */
24010char $ac_func ();
24011/* The GNU C library defines this for functions which it implements
24012 to always fail with ENOSYS. Some functions are actually named
24013 something starting with __ and the normal name is an alias. */
24014#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24015choke me
24016#else
24017char (*f) () = $ac_func;
24018#endif
24019#ifdef __cplusplus
24020}
24021#endif
24022
24023int
24024main ()
24025{
24026return f != $ac_func;
24027 ;
24028 return 0;
24029}
24030_ACEOF
24031rm -f conftest.$ac_objext conftest$ac_exeext
24032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24033 (eval $ac_link) 2>conftest.er1
a848cd7e 24034 ac_status=$?
ac1cb8d3
VS
24035 grep -v '^ *+' conftest.er1 >conftest.err
24036 rm -f conftest.er1
24037 cat conftest.err >&5
a848cd7e
SC
24038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24039 (exit $ac_status); } &&
da4486fb 24040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24042 (eval $ac_try) 2>&5
24043 ac_status=$?
24044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24045 (exit $ac_status); }; } &&
24046 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24048 (eval $ac_try) 2>&5
24049 ac_status=$?
24050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24051 (exit $ac_status); }; }; then
24052 eval "$as_ac_var=yes"
24053else
24054 echo "$as_me: failed program was:" >&5
24055sed 's/^/| /' conftest.$ac_ext >&5
24056
24057eval "$as_ac_var=no"
24058fi
ac1cb8d3
VS
24059rm -f conftest.err conftest.$ac_objext \
24060 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24061fi
24062echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24063echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24064if test `eval echo '${'$as_ac_var'}'` = yes; then
24065 cat >>confdefs.h <<_ACEOF
24066#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24067_ACEOF
24068
24069fi
24070done
24071
24072 fi
24073
24074 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
24075 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
24076
24077 AFMINSTALL=afminstall
24078 TOOLKIT=GTK
24079 GUIDIST=GTK_DIST
24080
24081 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
24082echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
24083if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
24084 echo $ECHO_N "(cached) $ECHO_C" >&6
24085else
24086 ac_check_lib_save_LIBS=$LIBS
24087LIBS="-lgdk $LIBS"
24088cat >conftest.$ac_ext <<_ACEOF
24089/* confdefs.h. */
24090_ACEOF
24091cat confdefs.h >>conftest.$ac_ext
24092cat >>conftest.$ac_ext <<_ACEOF
24093/* end confdefs.h. */
24094
24095/* Override any gcc2 internal prototype to avoid an error. */
24096#ifdef __cplusplus
24097extern "C"
24098#endif
24099/* We use char because int might match the return type of a gcc2
24100 builtin and then its argument prototype would still apply. */
24101char gdk_im_open ();
24102int
24103main ()
24104{
24105gdk_im_open ();
24106 ;
24107 return 0;
24108}
24109_ACEOF
24110rm -f conftest.$ac_objext conftest$ac_exeext
24111if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24112 (eval $ac_link) 2>conftest.er1
a848cd7e 24113 ac_status=$?
ac1cb8d3
VS
24114 grep -v '^ *+' conftest.er1 >conftest.err
24115 rm -f conftest.er1
24116 cat conftest.err >&5
a848cd7e
SC
24117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24118 (exit $ac_status); } &&
da4486fb 24119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24121 (eval $ac_try) 2>&5
24122 ac_status=$?
24123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24124 (exit $ac_status); }; } &&
24125 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24127 (eval $ac_try) 2>&5
24128 ac_status=$?
24129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24130 (exit $ac_status); }; }; then
24131 ac_cv_lib_gdk_gdk_im_open=yes
24132else
24133 echo "$as_me: failed program was:" >&5
24134sed 's/^/| /' conftest.$ac_ext >&5
24135
24136ac_cv_lib_gdk_gdk_im_open=no
24137fi
ac1cb8d3
VS
24138rm -f conftest.err conftest.$ac_objext \
24139 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24140LIBS=$ac_check_lib_save_LIBS
24141fi
24142echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
24143echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
24144if test $ac_cv_lib_gdk_gdk_im_open = yes; then
24145 cat >>confdefs.h <<\_ACEOF
24146#define HAVE_XIM 1
24147_ACEOF
24148
24149fi
24150
24151
24152
24153 if test "$wxUSE_GPE" = "yes"; then
24154 echo "$as_me:$LINENO: checking for gpewidget library" >&5
24155echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
24156
24157ac_find_libraries=
24158for ac_dir in $SEARCH_LIB /usr/lib;
24159 do
24160 for ac_extension in a so sl dylib; do
24161 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
24162 ac_find_libraries=$ac_dir
24163 break 2
24164 fi
24165 done
24166 done
24167
24168 if test "$ac_find_libraries" != "" ; then
24169
24170 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
24171 result=$?
24172 if test $result = 0; then
24173 ac_path_to_link=""
24174 else
24175 ac_path_to_link=" -L$ac_find_libraries"
24176 fi
24177
24178 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
24179 WXGPE=1
24180 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
24181echo "${ECHO_T}found at $ac_find_libraries" >&6
24182 else
24183 echo "$as_me:$LINENO: result: not found" >&5
24184echo "${ECHO_T}not found" >&6
24185 fi
24186
24187 fi
24188 fi
24189
24190 if test "$wxUSE_MGL" = 1; then
24191 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
24192echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
24193 if test "x$MGL_ROOT" = x ; then
24194 echo "$as_me:$LINENO: result: not found" >&5
24195echo "${ECHO_T}not found" >&6
24196 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
24197echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
24198 { (exit 1); exit 1; }; }
24199 else
24200 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
24201echo "${ECHO_T}$MGL_ROOT" >&6
24202 fi
24203
24204 echo "$as_me:$LINENO: checking for libmgl location" >&5
24205echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
24206 case "${host}" in
24207 *-*-linux* )
24208 if test "x$wxUSE_SHARED" = xyes ; then
24209 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
24210 else
24211 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
24212 fi
24213 ;;
24214 *-pc-msdosdjgpp )
24215 mgl_os_candidates="dos32/dj2"
24216 ;;
24217 *)
24218 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
24219echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
24220 { (exit 1); exit 1; }; }
24221 esac
24222
24223 mgl_lib_type=""
24224 mgl_os=""
24225
24226 for mgl_os_i in $mgl_os_candidates ; do
24227 if test "x$mgl_os" = x ; then
24228 if test "$wxUSE_DEBUG_FLAG" = yes ; then
24229 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
24230 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
24231 mgl_lib_type=debug
24232 mgl_os=$mgl_os_i
24233 fi
24234 fi
24235 if test "x$mgl_lib_type" = x ; then
24236 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
24237 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
24238 mgl_lib_type=release
24239 mgl_os=$mgl_os_i
24240 fi
24241 fi
24242 fi
24243 done
24244
24245 if test "x$mgl_os" = x ; then
24246 echo "$as_me:$LINENO: result: not found" >&5
24247echo "${ECHO_T}not found" >&6
24248 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
24249echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
24250 { (exit 1); exit 1; }; }
24251 fi
24252 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
24253echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
24254
24255 wxUSE_UNIVERSAL="yes"
24256
24257 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
24258 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
24259
24260 AFMINSTALL=afminstall
24261 TOOLKIT=MGL
24262 GUIDIST=MGL_DIST
24263 fi
24264
24265 if test "$wxUSE_MICROWIN" = 1; then
24266 echo "$as_me:$LINENO: checking for MicroWindows" >&5
24267echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
24268 if test "x$MICROWINDOWS" = x ; then
24269 echo "$as_me:$LINENO: result: not found" >&5
24270echo "${ECHO_T}not found" >&6
24271 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
24272echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
24273 { (exit 1); exit 1; }; }
24274 else
24275 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
24276echo "${ECHO_T}$MICROWINDOWS" >&6
24277 fi
24278
24279 if test -f $MICROWINDOWS/lib/libmwin.a; then
24280 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
24281echo "${ECHO_T}MicroWindows' libraries found." >&6
24282 else
24283 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
24284echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
24285 { (exit 1); exit 1; }; }
24286 fi
24287
24288 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
24289 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
24290
24291 wxUSE_UNIVERSAL="yes"
24292
24293 AFMINSTALL=afminstall
24294 TOOLKIT=MICROWIN
24295 GUIDIST=MICROWIN_DIST
24296
24297 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
24298 fi
24299
74b84332 24300 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
da4486fb
VZ
24301
24302if test "x$ac_path_x_has_been_run" != xyes; then
24303 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
24304echo $ECHO_N "checking for X... $ECHO_C" >&6
24305
da4486fb 24306ac_path_x_has_been_run=yes
a848cd7e
SC
24307
24308# Check whether --with-x or --without-x was given.
24309if test "${with_x+set}" = set; then
24310 withval="$with_x"
24311
24312fi;
24313# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24314if test "x$with_x" = xno; then
24315 # The user explicitly disabled X.
24316 have_x=disabled
24317else
24318 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
24319 # Both variables are already set.
24320 have_x=yes
24321 else
24322 if test "${ac_cv_have_x+set}" = set; then
24323 echo $ECHO_N "(cached) $ECHO_C" >&6
24324else
24325 # One or both of the vars are not set, and there is no cached value.
24326ac_x_includes=no ac_x_libraries=no
24327rm -fr conftest.dir
24328if mkdir conftest.dir; then
24329 cd conftest.dir
24330 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
24331 cat >Imakefile <<'_ACEOF'
24332acfindx:
24333 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
24334_ACEOF
24335 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
24336 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24337 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
24338 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24339 for ac_extension in a so sl; do
24340 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
24341 test -f $ac_im_libdir/libX11.$ac_extension; then
24342 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
24343 fi
24344 done
24345 # Screen out bogus values from the imake configuration. They are
24346 # bogus both because they are the default anyway, and because
24347 # using them would break gcc on systems where it needs fixed includes.
24348 case $ac_im_incroot in
24349 /usr/include) ;;
24350 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24351 esac
24352 case $ac_im_usrlibdir in
24353 /usr/lib | /lib) ;;
24354 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24355 esac
24356 fi
24357 cd ..
24358 rm -fr conftest.dir
24359fi
24360
24361# Standard set of common directories for X headers.
24362# Check X11 before X11Rn because it is often a symlink to the current release.
24363ac_x_header_dirs='
24364/usr/X11/include
24365/usr/X11R6/include
24366/usr/X11R5/include
24367/usr/X11R4/include
24368
24369/usr/include/X11
24370/usr/include/X11R6
24371/usr/include/X11R5
24372/usr/include/X11R4
24373
24374/usr/local/X11/include
24375/usr/local/X11R6/include
24376/usr/local/X11R5/include
24377/usr/local/X11R4/include
24378
24379/usr/local/include/X11
24380/usr/local/include/X11R6
24381/usr/local/include/X11R5
24382/usr/local/include/X11R4
24383
24384/usr/X386/include
24385/usr/x386/include
24386/usr/XFree86/include/X11
24387
24388/usr/include
24389/usr/local/include
24390/usr/unsupported/include
24391/usr/athena/include
24392/usr/local/x11r5/include
24393/usr/lpp/Xamples/include
24394
24395/usr/openwin/include
24396/usr/openwin/share/include'
24397
24398if test "$ac_x_includes" = no; then
da4486fb 24399 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
24400 # First, try using that file with no special directory specified.
24401 cat >conftest.$ac_ext <<_ACEOF
24402/* confdefs.h. */
24403_ACEOF
24404cat confdefs.h >>conftest.$ac_ext
24405cat >>conftest.$ac_ext <<_ACEOF
24406/* end confdefs.h. */
24407#include <X11/Intrinsic.h>
24408_ACEOF
24409if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24410 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24411 ac_status=$?
24412 grep -v '^ *+' conftest.er1 >conftest.err
24413 rm -f conftest.er1
24414 cat conftest.err >&5
24415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24416 (exit $ac_status); } >/dev/null; then
24417 if test -s conftest.err; then
24418 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24419 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24420 else
24421 ac_cpp_err=
24422 fi
24423else
24424 ac_cpp_err=yes
24425fi
24426if test -z "$ac_cpp_err"; then
24427 # We can compile using X headers with no special include directory.
24428ac_x_includes=
24429else
24430 echo "$as_me: failed program was:" >&5
24431sed 's/^/| /' conftest.$ac_ext >&5
24432
24433 for ac_dir in $ac_x_header_dirs; do
24434 if test -r "$ac_dir/X11/Intrinsic.h"; then
24435 ac_x_includes=$ac_dir
24436 break
24437 fi
24438done
24439fi
24440rm -f conftest.err conftest.$ac_ext
24441fi # $ac_x_includes = no
24442
24443if test "$ac_x_libraries" = no; then
24444 # Check for the libraries.
24445 # See if we find them without any special options.
24446 # Don't add to $LIBS permanently.
24447 ac_save_LIBS=$LIBS
24448 LIBS="-lXt $LIBS"
24449 cat >conftest.$ac_ext <<_ACEOF
24450/* confdefs.h. */
24451_ACEOF
24452cat confdefs.h >>conftest.$ac_ext
24453cat >>conftest.$ac_ext <<_ACEOF
24454/* end confdefs.h. */
24455#include <X11/Intrinsic.h>
24456int
24457main ()
24458{
24459XtMalloc (0)
24460 ;
24461 return 0;
24462}
24463_ACEOF
24464rm -f conftest.$ac_objext conftest$ac_exeext
24465if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24466 (eval $ac_link) 2>conftest.er1
a848cd7e 24467 ac_status=$?
ac1cb8d3
VS
24468 grep -v '^ *+' conftest.er1 >conftest.err
24469 rm -f conftest.er1
24470 cat conftest.err >&5
a848cd7e
SC
24471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24472 (exit $ac_status); } &&
da4486fb 24473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24475 (eval $ac_try) 2>&5
24476 ac_status=$?
24477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24478 (exit $ac_status); }; } &&
24479 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24481 (eval $ac_try) 2>&5
24482 ac_status=$?
24483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24484 (exit $ac_status); }; }; then
24485 LIBS=$ac_save_LIBS
24486# We can link X programs with no special library path.
24487ac_x_libraries=
24488else
24489 echo "$as_me: failed program was:" >&5
24490sed 's/^/| /' conftest.$ac_ext >&5
24491
24492LIBS=$ac_save_LIBS
24493for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24494do
24495 # Don't even attempt the hair of trying to link an X program!
24496 for ac_extension in a so sl; do
24497 if test -r $ac_dir/libXt.$ac_extension; then
24498 ac_x_libraries=$ac_dir
24499 break 2
24500 fi
24501 done
24502done
24503fi
ac1cb8d3
VS
24504rm -f conftest.err conftest.$ac_objext \
24505 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24506fi # $ac_x_libraries = no
24507
24508if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
24509 # Didn't find X anywhere. Cache the known absence of X.
24510 ac_cv_have_x="have_x=no"
24511else
24512 # Record where we found X for the cache.
24513 ac_cv_have_x="have_x=yes \
ac1cb8d3 24514 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
24515fi
24516fi
24517
24518 fi
24519 eval "$ac_cv_have_x"
24520fi # $with_x != no
24521
24522if test "$have_x" != yes; then
24523 echo "$as_me:$LINENO: result: $have_x" >&5
24524echo "${ECHO_T}$have_x" >&6
24525 no_x=yes
24526else
24527 # If each of the values was on the command line, it overrides each guess.
24528 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24529 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24530 # Update the cache value to reflect the command line values.
24531 ac_cv_have_x="have_x=yes \
24532 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
da4486fb
VZ
24533 # It might be that x_includes is empty (headers are found in the
24534 # standard search path. Then output the corresponding message
24535 ac_out_x_includes=$x_includes
24536 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
24537 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
24538echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
24539fi
24540
da4486fb 24541fi
a848cd7e
SC
24542if test "$no_x" = yes; then
24543 # Not all programs may use this symbol, but it does not hurt to define it.
24544
24545cat >>confdefs.h <<\_ACEOF
24546#define X_DISPLAY_MISSING 1
24547_ACEOF
24548
24549 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24550else
24551 if test -n "$x_includes"; then
24552 X_CFLAGS="$X_CFLAGS -I$x_includes"
24553 fi
24554
24555 # It would also be nice to do this for all -L options, not just this one.
24556 if test -n "$x_libraries"; then
24557 X_LIBS="$X_LIBS -L$x_libraries"
24558 # For Solaris; some versions of Sun CC require a space after -R and
24559 # others require no space. Words are not sufficient . . . .
24560 case `(uname -sr) 2>/dev/null` in
24561 "SunOS 5"*)
24562 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
24563echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
24564 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24565 cat >conftest.$ac_ext <<_ACEOF
24566/* confdefs.h. */
24567_ACEOF
24568cat confdefs.h >>conftest.$ac_ext
24569cat >>conftest.$ac_ext <<_ACEOF
24570/* end confdefs.h. */
24571
24572int
24573main ()
24574{
24575
24576 ;
24577 return 0;
24578}
24579_ACEOF
24580rm -f conftest.$ac_objext conftest$ac_exeext
24581if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24582 (eval $ac_link) 2>conftest.er1
a848cd7e 24583 ac_status=$?
ac1cb8d3
VS
24584 grep -v '^ *+' conftest.er1 >conftest.err
24585 rm -f conftest.er1
24586 cat conftest.err >&5
a848cd7e
SC
24587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24588 (exit $ac_status); } &&
da4486fb 24589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24591 (eval $ac_try) 2>&5
24592 ac_status=$?
24593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24594 (exit $ac_status); }; } &&
24595 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24597 (eval $ac_try) 2>&5
24598 ac_status=$?
24599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24600 (exit $ac_status); }; }; then
24601 ac_R_nospace=yes
24602else
24603 echo "$as_me: failed program was:" >&5
24604sed 's/^/| /' conftest.$ac_ext >&5
24605
24606ac_R_nospace=no
24607fi
ac1cb8d3
VS
24608rm -f conftest.err conftest.$ac_objext \
24609 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24610 if test $ac_R_nospace = yes; then
24611 echo "$as_me:$LINENO: result: no" >&5
24612echo "${ECHO_T}no" >&6
24613 X_LIBS="$X_LIBS -R$x_libraries"
24614 else
24615 LIBS="$ac_xsave_LIBS -R $x_libraries"
24616 cat >conftest.$ac_ext <<_ACEOF
24617/* confdefs.h. */
24618_ACEOF
24619cat confdefs.h >>conftest.$ac_ext
24620cat >>conftest.$ac_ext <<_ACEOF
24621/* end confdefs.h. */
24622
24623int
24624main ()
24625{
24626
24627 ;
24628 return 0;
24629}
24630_ACEOF
24631rm -f conftest.$ac_objext conftest$ac_exeext
24632if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24633 (eval $ac_link) 2>conftest.er1
a848cd7e 24634 ac_status=$?
ac1cb8d3
VS
24635 grep -v '^ *+' conftest.er1 >conftest.err
24636 rm -f conftest.er1
24637 cat conftest.err >&5
a848cd7e
SC
24638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24639 (exit $ac_status); } &&
da4486fb 24640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24642 (eval $ac_try) 2>&5
24643 ac_status=$?
24644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24645 (exit $ac_status); }; } &&
24646 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24648 (eval $ac_try) 2>&5
24649 ac_status=$?
24650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24651 (exit $ac_status); }; }; then
24652 ac_R_space=yes
24653else
24654 echo "$as_me: failed program was:" >&5
24655sed 's/^/| /' conftest.$ac_ext >&5
24656
24657ac_R_space=no
24658fi
ac1cb8d3
VS
24659rm -f conftest.err conftest.$ac_objext \
24660 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24661 if test $ac_R_space = yes; then
24662 echo "$as_me:$LINENO: result: yes" >&5
24663echo "${ECHO_T}yes" >&6
24664 X_LIBS="$X_LIBS -R $x_libraries"
24665 else
24666 echo "$as_me:$LINENO: result: neither works" >&5
24667echo "${ECHO_T}neither works" >&6
24668 fi
24669 fi
24670 LIBS=$ac_xsave_LIBS
24671 esac
24672 fi
24673
24674 # Check for system-dependent libraries X programs must link with.
24675 # Do this before checking for the system-independent R6 libraries
24676 # (-lICE), since we may need -lsocket or whatever for X linking.
24677
24678 if test "$ISC" = yes; then
24679 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24680 else
24681 # Martyn Johnson says this is needed for Ultrix, if the X
24682 # libraries were built with DECnet support. And Karl Berry says
24683 # the Alpha needs dnet_stub (dnet does not exist).
24684 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24685 cat >conftest.$ac_ext <<_ACEOF
24686/* confdefs.h. */
24687_ACEOF
24688cat confdefs.h >>conftest.$ac_ext
24689cat >>conftest.$ac_ext <<_ACEOF
24690/* end confdefs.h. */
24691
24692/* Override any gcc2 internal prototype to avoid an error. */
24693#ifdef __cplusplus
24694extern "C"
24695#endif
24696/* We use char because int might match the return type of a gcc2
24697 builtin and then its argument prototype would still apply. */
24698char XOpenDisplay ();
24699int
24700main ()
24701{
24702XOpenDisplay ();
24703 ;
24704 return 0;
24705}
24706_ACEOF
24707rm -f conftest.$ac_objext conftest$ac_exeext
24708if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24709 (eval $ac_link) 2>conftest.er1
a848cd7e 24710 ac_status=$?
ac1cb8d3
VS
24711 grep -v '^ *+' conftest.er1 >conftest.err
24712 rm -f conftest.er1
24713 cat conftest.err >&5
a848cd7e
SC
24714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24715 (exit $ac_status); } &&
da4486fb 24716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24718 (eval $ac_try) 2>&5
24719 ac_status=$?
24720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24721 (exit $ac_status); }; } &&
24722 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24724 (eval $ac_try) 2>&5
24725 ac_status=$?
24726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24727 (exit $ac_status); }; }; then
24728 :
24729else
24730 echo "$as_me: failed program was:" >&5
24731sed 's/^/| /' conftest.$ac_ext >&5
24732
24733echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
24734echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
24735if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
24736 echo $ECHO_N "(cached) $ECHO_C" >&6
24737else
24738 ac_check_lib_save_LIBS=$LIBS
24739LIBS="-ldnet $LIBS"
24740cat >conftest.$ac_ext <<_ACEOF
24741/* confdefs.h. */
24742_ACEOF
24743cat confdefs.h >>conftest.$ac_ext
24744cat >>conftest.$ac_ext <<_ACEOF
24745/* end confdefs.h. */
24746
24747/* Override any gcc2 internal prototype to avoid an error. */
24748#ifdef __cplusplus
24749extern "C"
24750#endif
24751/* We use char because int might match the return type of a gcc2
24752 builtin and then its argument prototype would still apply. */
24753char dnet_ntoa ();
24754int
24755main ()
24756{
24757dnet_ntoa ();
24758 ;
24759 return 0;
24760}
24761_ACEOF
24762rm -f conftest.$ac_objext conftest$ac_exeext
24763if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24764 (eval $ac_link) 2>conftest.er1
a848cd7e 24765 ac_status=$?
ac1cb8d3
VS
24766 grep -v '^ *+' conftest.er1 >conftest.err
24767 rm -f conftest.er1
24768 cat conftest.err >&5
a848cd7e
SC
24769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24770 (exit $ac_status); } &&
da4486fb 24771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24773 (eval $ac_try) 2>&5
24774 ac_status=$?
24775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24776 (exit $ac_status); }; } &&
24777 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24779 (eval $ac_try) 2>&5
24780 ac_status=$?
24781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24782 (exit $ac_status); }; }; then
24783 ac_cv_lib_dnet_dnet_ntoa=yes
24784else
24785 echo "$as_me: failed program was:" >&5
24786sed 's/^/| /' conftest.$ac_ext >&5
24787
24788ac_cv_lib_dnet_dnet_ntoa=no
24789fi
ac1cb8d3
VS
24790rm -f conftest.err conftest.$ac_objext \
24791 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24792LIBS=$ac_check_lib_save_LIBS
24793fi
24794echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24795echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
24796if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
24797 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24798fi
24799
24800 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24801 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
24802echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
24803if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
24804 echo $ECHO_N "(cached) $ECHO_C" >&6
24805else
24806 ac_check_lib_save_LIBS=$LIBS
24807LIBS="-ldnet_stub $LIBS"
24808cat >conftest.$ac_ext <<_ACEOF
24809/* confdefs.h. */
24810_ACEOF
24811cat confdefs.h >>conftest.$ac_ext
24812cat >>conftest.$ac_ext <<_ACEOF
24813/* end confdefs.h. */
24814
24815/* Override any gcc2 internal prototype to avoid an error. */
24816#ifdef __cplusplus
24817extern "C"
24818#endif
24819/* We use char because int might match the return type of a gcc2
24820 builtin and then its argument prototype would still apply. */
24821char dnet_ntoa ();
24822int
24823main ()
24824{
24825dnet_ntoa ();
24826 ;
24827 return 0;
24828}
24829_ACEOF
24830rm -f conftest.$ac_objext conftest$ac_exeext
24831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24832 (eval $ac_link) 2>conftest.er1
a848cd7e 24833 ac_status=$?
ac1cb8d3
VS
24834 grep -v '^ *+' conftest.er1 >conftest.err
24835 rm -f conftest.er1
24836 cat conftest.err >&5
a848cd7e
SC
24837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24838 (exit $ac_status); } &&
da4486fb 24839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24841 (eval $ac_try) 2>&5
24842 ac_status=$?
24843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24844 (exit $ac_status); }; } &&
24845 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24847 (eval $ac_try) 2>&5
24848 ac_status=$?
24849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24850 (exit $ac_status); }; }; then
24851 ac_cv_lib_dnet_stub_dnet_ntoa=yes
24852else
24853 echo "$as_me: failed program was:" >&5
24854sed 's/^/| /' conftest.$ac_ext >&5
24855
24856ac_cv_lib_dnet_stub_dnet_ntoa=no
24857fi
ac1cb8d3
VS
24858rm -f conftest.err conftest.$ac_objext \
24859 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24860LIBS=$ac_check_lib_save_LIBS
24861fi
24862echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24863echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
24864if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
24865 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24866fi
24867
24868 fi
24869fi
ac1cb8d3
VS
24870rm -f conftest.err conftest.$ac_objext \
24871 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24872 LIBS="$ac_xsave_LIBS"
24873
24874 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24875 # to get the SysV transport functions.
24876 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24877 # needs -lnsl.
24878 # The nsl library prevents programs from opening the X display
24879 # on Irix 5.2, according to T.E. Dickey.
24880 # The functions gethostbyname, getservbyname, and inet_addr are
24881 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24882 echo "$as_me:$LINENO: checking for gethostbyname" >&5
24883echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
24884if test "${ac_cv_func_gethostbyname+set}" = set; then
24885 echo $ECHO_N "(cached) $ECHO_C" >&6
24886else
24887 cat >conftest.$ac_ext <<_ACEOF
24888/* confdefs.h. */
24889_ACEOF
24890cat confdefs.h >>conftest.$ac_ext
24891cat >>conftest.$ac_ext <<_ACEOF
24892/* end confdefs.h. */
ac1cb8d3
VS
24893/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
24894 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24895#define gethostbyname innocuous_gethostbyname
24896
a848cd7e
SC
24897/* System header to define __stub macros and hopefully few prototypes,
24898 which can conflict with char gethostbyname (); below.
24899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24900 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24901
a848cd7e
SC
24902#ifdef __STDC__
24903# include <limits.h>
24904#else
24905# include <assert.h>
24906#endif
ac1cb8d3
VS
24907
24908#undef gethostbyname
24909
a848cd7e
SC
24910/* Override any gcc2 internal prototype to avoid an error. */
24911#ifdef __cplusplus
24912extern "C"
24913{
24914#endif
24915/* We use char because int might match the return type of a gcc2
24916 builtin and then its argument prototype would still apply. */
24917char gethostbyname ();
24918/* The GNU C library defines this for functions which it implements
24919 to always fail with ENOSYS. Some functions are actually named
24920 something starting with __ and the normal name is an alias. */
24921#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
24922choke me
24923#else
24924char (*f) () = gethostbyname;
24925#endif
24926#ifdef __cplusplus
24927}
24928#endif
24929
24930int
24931main ()
24932{
24933return f != gethostbyname;
24934 ;
24935 return 0;
24936}
24937_ACEOF
24938rm -f conftest.$ac_objext conftest$ac_exeext
24939if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24940 (eval $ac_link) 2>conftest.er1
a848cd7e 24941 ac_status=$?
ac1cb8d3
VS
24942 grep -v '^ *+' conftest.er1 >conftest.err
24943 rm -f conftest.er1
24944 cat conftest.err >&5
a848cd7e
SC
24945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24946 (exit $ac_status); } &&
da4486fb 24947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24949 (eval $ac_try) 2>&5
24950 ac_status=$?
24951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24952 (exit $ac_status); }; } &&
24953 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24955 (eval $ac_try) 2>&5
24956 ac_status=$?
24957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24958 (exit $ac_status); }; }; then
24959 ac_cv_func_gethostbyname=yes
24960else
24961 echo "$as_me: failed program was:" >&5
24962sed 's/^/| /' conftest.$ac_ext >&5
24963
24964ac_cv_func_gethostbyname=no
24965fi
ac1cb8d3
VS
24966rm -f conftest.err conftest.$ac_objext \
24967 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24968fi
24969echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
24970echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
24971
24972 if test $ac_cv_func_gethostbyname = no; then
24973 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
24974echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
24975if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
24976 echo $ECHO_N "(cached) $ECHO_C" >&6
24977else
24978 ac_check_lib_save_LIBS=$LIBS
24979LIBS="-lnsl $LIBS"
24980cat >conftest.$ac_ext <<_ACEOF
24981/* confdefs.h. */
24982_ACEOF
24983cat confdefs.h >>conftest.$ac_ext
24984cat >>conftest.$ac_ext <<_ACEOF
24985/* end confdefs.h. */
24986
24987/* Override any gcc2 internal prototype to avoid an error. */
24988#ifdef __cplusplus
24989extern "C"
24990#endif
24991/* We use char because int might match the return type of a gcc2
24992 builtin and then its argument prototype would still apply. */
24993char gethostbyname ();
24994int
24995main ()
24996{
24997gethostbyname ();
24998 ;
24999 return 0;
25000}
25001_ACEOF
25002rm -f conftest.$ac_objext conftest$ac_exeext
25003if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
25004 (eval $ac_link) 2>conftest.er1
25005 ac_status=$?
25006 grep -v '^ *+' conftest.er1 >conftest.err
25007 rm -f conftest.er1
25008 cat conftest.err >&5
25009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25010 (exit $ac_status); } &&
da4486fb 25011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25013 (eval $ac_try) 2>&5
25014 ac_status=$?
25015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25016 (exit $ac_status); }; } &&
25017 { ac_try='test -s conftest$ac_exeext'
25018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25019 (eval $ac_try) 2>&5
25020 ac_status=$?
25021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25022 (exit $ac_status); }; }; then
25023 ac_cv_lib_nsl_gethostbyname=yes
25024else
25025 echo "$as_me: failed program was:" >&5
25026sed 's/^/| /' conftest.$ac_ext >&5
25027
25028ac_cv_lib_nsl_gethostbyname=no
25029fi
25030rm -f conftest.err conftest.$ac_objext \
25031 conftest$ac_exeext conftest.$ac_ext
25032LIBS=$ac_check_lib_save_LIBS
25033fi
25034echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
25035echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
25036if test $ac_cv_lib_nsl_gethostbyname = yes; then
25037 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25038fi
25039
25040 if test $ac_cv_lib_nsl_gethostbyname = no; then
25041 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
25042echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
25043if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
25044 echo $ECHO_N "(cached) $ECHO_C" >&6
25045else
25046 ac_check_lib_save_LIBS=$LIBS
25047LIBS="-lbsd $LIBS"
25048cat >conftest.$ac_ext <<_ACEOF
25049/* confdefs.h. */
25050_ACEOF
25051cat confdefs.h >>conftest.$ac_ext
25052cat >>conftest.$ac_ext <<_ACEOF
25053/* end confdefs.h. */
25054
25055/* Override any gcc2 internal prototype to avoid an error. */
25056#ifdef __cplusplus
25057extern "C"
25058#endif
25059/* We use char because int might match the return type of a gcc2
25060 builtin and then its argument prototype would still apply. */
25061char gethostbyname ();
25062int
25063main ()
25064{
25065gethostbyname ();
25066 ;
25067 return 0;
25068}
25069_ACEOF
25070rm -f conftest.$ac_objext conftest$ac_exeext
25071if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25072 (eval $ac_link) 2>conftest.er1
a848cd7e 25073 ac_status=$?
ac1cb8d3
VS
25074 grep -v '^ *+' conftest.er1 >conftest.err
25075 rm -f conftest.er1
25076 cat conftest.err >&5
a848cd7e
SC
25077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25078 (exit $ac_status); } &&
da4486fb 25079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
25080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25081 (eval $ac_try) 2>&5
25082 ac_status=$?
25083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
25084 (exit $ac_status); }; } &&
25085 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25087 (eval $ac_try) 2>&5
25088 ac_status=$?
25089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25090 (exit $ac_status); }; }; then
25091 ac_cv_lib_bsd_gethostbyname=yes
25092else
25093 echo "$as_me: failed program was:" >&5
25094sed 's/^/| /' conftest.$ac_ext >&5
25095
25096ac_cv_lib_bsd_gethostbyname=no
25097fi
ac1cb8d3
VS
25098rm -f conftest.err conftest.$ac_objext \
25099 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25100LIBS=$ac_check_lib_save_LIBS
25101fi
25102echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
25103echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
25104if test $ac_cv_lib_bsd_gethostbyname = yes; then
25105 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25106fi
25107
25108 fi
25109 fi
25110
25111 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25112 # socket/setsockopt and other routines are undefined under SCO ODT
25113 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25114 # on later versions), says Simon Leinen: it contains gethostby*
25115 # variants that don't use the name server (or something). -lsocket
25116 # must be given before -lnsl if both are needed. We assume that
25117 # if connect needs -lnsl, so does gethostbyname.
25118 echo "$as_me:$LINENO: checking for connect" >&5
25119echo $ECHO_N "checking for connect... $ECHO_C" >&6
25120if test "${ac_cv_func_connect+set}" = set; then
25121 echo $ECHO_N "(cached) $ECHO_C" >&6
25122else
25123 cat >conftest.$ac_ext <<_ACEOF
25124/* confdefs.h. */
25125_ACEOF
25126cat confdefs.h >>conftest.$ac_ext
25127cat >>conftest.$ac_ext <<_ACEOF
25128/* end confdefs.h. */
ac1cb8d3
VS
25129/* Define connect to an innocuous variant, in case <limits.h> declares connect.
25130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25131#define connect innocuous_connect
25132
a848cd7e
SC
25133/* System header to define __stub macros and hopefully few prototypes,
25134 which can conflict with char connect (); below.
25135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25136 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25137
a848cd7e
SC
25138#ifdef __STDC__
25139# include <limits.h>
25140#else
25141# include <assert.h>
25142#endif
ac1cb8d3
VS
25143
25144#undef connect
25145
a848cd7e
SC
25146/* Override any gcc2 internal prototype to avoid an error. */
25147#ifdef __cplusplus
25148extern "C"
25149{
25150#endif
25151/* We use char because int might match the return type of a gcc2
25152 builtin and then its argument prototype would still apply. */
25153char connect ();
25154/* The GNU C library defines this for functions which it implements
25155 to always fail with ENOSYS. Some functions are actually named
25156 something starting with __ and the normal name is an alias. */
25157#if defined (__stub_connect) || defined (__stub___connect)
25158choke me
25159#else
25160char (*f) () = connect;
25161#endif
25162#ifdef __cplusplus
25163}
25164#endif
25165
25166int
25167main ()
25168{
25169return f != connect;
25170 ;
25171 return 0;
25172}
25173_ACEOF
25174rm -f conftest.$ac_objext conftest$ac_exeext
25175if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25176 (eval $ac_link) 2>conftest.er1
a848cd7e 25177 ac_status=$?
ac1cb8d3
VS
25178 grep -v '^ *+' conftest.er1 >conftest.err
25179 rm -f conftest.er1
25180 cat conftest.err >&5
a848cd7e
SC
25181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25182 (exit $ac_status); } &&
da4486fb 25183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25185 (eval $ac_try) 2>&5
25186 ac_status=$?
25187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25188 (exit $ac_status); }; } &&
25189 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25191 (eval $ac_try) 2>&5
25192 ac_status=$?
25193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25194 (exit $ac_status); }; }; then
25195 ac_cv_func_connect=yes
25196else
25197 echo "$as_me: failed program was:" >&5
25198sed 's/^/| /' conftest.$ac_ext >&5
25199
25200ac_cv_func_connect=no
25201fi
ac1cb8d3
VS
25202rm -f conftest.err conftest.$ac_objext \
25203 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25204fi
25205echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
25206echo "${ECHO_T}$ac_cv_func_connect" >&6
25207
25208 if test $ac_cv_func_connect = no; then
25209 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
25210echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
25211if test "${ac_cv_lib_socket_connect+set}" = set; then
25212 echo $ECHO_N "(cached) $ECHO_C" >&6
25213else
25214 ac_check_lib_save_LIBS=$LIBS
25215LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25216cat >conftest.$ac_ext <<_ACEOF
25217/* confdefs.h. */
25218_ACEOF
25219cat confdefs.h >>conftest.$ac_ext
25220cat >>conftest.$ac_ext <<_ACEOF
25221/* end confdefs.h. */
25222
25223/* Override any gcc2 internal prototype to avoid an error. */
25224#ifdef __cplusplus
25225extern "C"
25226#endif
25227/* We use char because int might match the return type of a gcc2
25228 builtin and then its argument prototype would still apply. */
25229char connect ();
25230int
25231main ()
25232{
25233connect ();
25234 ;
25235 return 0;
25236}
25237_ACEOF
25238rm -f conftest.$ac_objext conftest$ac_exeext
25239if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25240 (eval $ac_link) 2>conftest.er1
a848cd7e 25241 ac_status=$?
ac1cb8d3
VS
25242 grep -v '^ *+' conftest.er1 >conftest.err
25243 rm -f conftest.er1
25244 cat conftest.err >&5
a848cd7e
SC
25245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25246 (exit $ac_status); } &&
da4486fb 25247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25249 (eval $ac_try) 2>&5
25250 ac_status=$?
25251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25252 (exit $ac_status); }; } &&
25253 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25255 (eval $ac_try) 2>&5
25256 ac_status=$?
25257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25258 (exit $ac_status); }; }; then
25259 ac_cv_lib_socket_connect=yes
25260else
25261 echo "$as_me: failed program was:" >&5
25262sed 's/^/| /' conftest.$ac_ext >&5
25263
25264ac_cv_lib_socket_connect=no
25265fi
ac1cb8d3
VS
25266rm -f conftest.err conftest.$ac_objext \
25267 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25268LIBS=$ac_check_lib_save_LIBS
25269fi
25270echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
25271echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
25272if test $ac_cv_lib_socket_connect = yes; then
25273 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25274fi
25275
25276 fi
25277
25278 # Guillermo Gomez says -lposix is necessary on A/UX.
25279 echo "$as_me:$LINENO: checking for remove" >&5
25280echo $ECHO_N "checking for remove... $ECHO_C" >&6
25281if test "${ac_cv_func_remove+set}" = set; then
25282 echo $ECHO_N "(cached) $ECHO_C" >&6
25283else
25284 cat >conftest.$ac_ext <<_ACEOF
25285/* confdefs.h. */
25286_ACEOF
25287cat confdefs.h >>conftest.$ac_ext
25288cat >>conftest.$ac_ext <<_ACEOF
25289/* end confdefs.h. */
ac1cb8d3
VS
25290/* Define remove to an innocuous variant, in case <limits.h> declares remove.
25291 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25292#define remove innocuous_remove
25293
a848cd7e
SC
25294/* System header to define __stub macros and hopefully few prototypes,
25295 which can conflict with char remove (); below.
25296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25297 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25298
a848cd7e
SC
25299#ifdef __STDC__
25300# include <limits.h>
25301#else
25302# include <assert.h>
25303#endif
ac1cb8d3
VS
25304
25305#undef remove
25306
a848cd7e
SC
25307/* Override any gcc2 internal prototype to avoid an error. */
25308#ifdef __cplusplus
25309extern "C"
25310{
25311#endif
25312/* We use char because int might match the return type of a gcc2
25313 builtin and then its argument prototype would still apply. */
25314char remove ();
25315/* The GNU C library defines this for functions which it implements
25316 to always fail with ENOSYS. Some functions are actually named
25317 something starting with __ and the normal name is an alias. */
25318#if defined (__stub_remove) || defined (__stub___remove)
25319choke me
25320#else
25321char (*f) () = remove;
25322#endif
25323#ifdef __cplusplus
25324}
25325#endif
25326
25327int
25328main ()
25329{
25330return f != remove;
25331 ;
25332 return 0;
25333}
25334_ACEOF
25335rm -f conftest.$ac_objext conftest$ac_exeext
25336if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25337 (eval $ac_link) 2>conftest.er1
a848cd7e 25338 ac_status=$?
ac1cb8d3
VS
25339 grep -v '^ *+' conftest.er1 >conftest.err
25340 rm -f conftest.er1
25341 cat conftest.err >&5
a848cd7e
SC
25342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25343 (exit $ac_status); } &&
da4486fb 25344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25346 (eval $ac_try) 2>&5
25347 ac_status=$?
25348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25349 (exit $ac_status); }; } &&
25350 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25352 (eval $ac_try) 2>&5
25353 ac_status=$?
25354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25355 (exit $ac_status); }; }; then
25356 ac_cv_func_remove=yes
25357else
25358 echo "$as_me: failed program was:" >&5
25359sed 's/^/| /' conftest.$ac_ext >&5
25360
25361ac_cv_func_remove=no
25362fi
ac1cb8d3
VS
25363rm -f conftest.err conftest.$ac_objext \
25364 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25365fi
25366echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
25367echo "${ECHO_T}$ac_cv_func_remove" >&6
25368
25369 if test $ac_cv_func_remove = no; then
25370 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
25371echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
25372if test "${ac_cv_lib_posix_remove+set}" = set; then
25373 echo $ECHO_N "(cached) $ECHO_C" >&6
25374else
25375 ac_check_lib_save_LIBS=$LIBS
25376LIBS="-lposix $LIBS"
25377cat >conftest.$ac_ext <<_ACEOF
25378/* confdefs.h. */
25379_ACEOF
25380cat confdefs.h >>conftest.$ac_ext
25381cat >>conftest.$ac_ext <<_ACEOF
25382/* end confdefs.h. */
25383
25384/* Override any gcc2 internal prototype to avoid an error. */
25385#ifdef __cplusplus
25386extern "C"
25387#endif
25388/* We use char because int might match the return type of a gcc2
25389 builtin and then its argument prototype would still apply. */
25390char remove ();
25391int
25392main ()
25393{
25394remove ();
25395 ;
25396 return 0;
25397}
25398_ACEOF
25399rm -f conftest.$ac_objext conftest$ac_exeext
25400if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25401 (eval $ac_link) 2>conftest.er1
a848cd7e 25402 ac_status=$?
ac1cb8d3
VS
25403 grep -v '^ *+' conftest.er1 >conftest.err
25404 rm -f conftest.er1
25405 cat conftest.err >&5
a848cd7e
SC
25406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25407 (exit $ac_status); } &&
da4486fb 25408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25410 (eval $ac_try) 2>&5
25411 ac_status=$?
25412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25413 (exit $ac_status); }; } &&
25414 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25416 (eval $ac_try) 2>&5
25417 ac_status=$?
25418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25419 (exit $ac_status); }; }; then
25420 ac_cv_lib_posix_remove=yes
25421else
25422 echo "$as_me: failed program was:" >&5
25423sed 's/^/| /' conftest.$ac_ext >&5
25424
25425ac_cv_lib_posix_remove=no
25426fi
ac1cb8d3
VS
25427rm -f conftest.err conftest.$ac_objext \
25428 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25429LIBS=$ac_check_lib_save_LIBS
25430fi
25431echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
25432echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
25433if test $ac_cv_lib_posix_remove = yes; then
25434 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25435fi
25436
25437 fi
25438
25439 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25440 echo "$as_me:$LINENO: checking for shmat" >&5
25441echo $ECHO_N "checking for shmat... $ECHO_C" >&6
25442if test "${ac_cv_func_shmat+set}" = set; then
25443 echo $ECHO_N "(cached) $ECHO_C" >&6
25444else
25445 cat >conftest.$ac_ext <<_ACEOF
25446/* confdefs.h. */
25447_ACEOF
25448cat confdefs.h >>conftest.$ac_ext
25449cat >>conftest.$ac_ext <<_ACEOF
25450/* end confdefs.h. */
ac1cb8d3
VS
25451/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
25452 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25453#define shmat innocuous_shmat
25454
a848cd7e
SC
25455/* System header to define __stub macros and hopefully few prototypes,
25456 which can conflict with char shmat (); below.
25457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25458 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25459
a848cd7e
SC
25460#ifdef __STDC__
25461# include <limits.h>
25462#else
25463# include <assert.h>
25464#endif
ac1cb8d3
VS
25465
25466#undef shmat
25467
a848cd7e
SC
25468/* Override any gcc2 internal prototype to avoid an error. */
25469#ifdef __cplusplus
25470extern "C"
25471{
25472#endif
25473/* We use char because int might match the return type of a gcc2
25474 builtin and then its argument prototype would still apply. */
25475char shmat ();
25476/* The GNU C library defines this for functions which it implements
25477 to always fail with ENOSYS. Some functions are actually named
25478 something starting with __ and the normal name is an alias. */
25479#if defined (__stub_shmat) || defined (__stub___shmat)
25480choke me
25481#else
25482char (*f) () = shmat;
25483#endif
25484#ifdef __cplusplus
25485}
25486#endif
25487
25488int
25489main ()
25490{
25491return f != shmat;
25492 ;
25493 return 0;
25494}
25495_ACEOF
25496rm -f conftest.$ac_objext conftest$ac_exeext
25497if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25498 (eval $ac_link) 2>conftest.er1
a848cd7e 25499 ac_status=$?
ac1cb8d3
VS
25500 grep -v '^ *+' conftest.er1 >conftest.err
25501 rm -f conftest.er1
25502 cat conftest.err >&5
a848cd7e
SC
25503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25504 (exit $ac_status); } &&
da4486fb 25505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25507 (eval $ac_try) 2>&5
25508 ac_status=$?
25509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25510 (exit $ac_status); }; } &&
25511 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25513 (eval $ac_try) 2>&5
25514 ac_status=$?
25515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25516 (exit $ac_status); }; }; then
25517 ac_cv_func_shmat=yes
25518else
25519 echo "$as_me: failed program was:" >&5
25520sed 's/^/| /' conftest.$ac_ext >&5
25521
25522ac_cv_func_shmat=no
25523fi
ac1cb8d3
VS
25524rm -f conftest.err conftest.$ac_objext \
25525 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25526fi
25527echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
25528echo "${ECHO_T}$ac_cv_func_shmat" >&6
25529
25530 if test $ac_cv_func_shmat = no; then
25531 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
25532echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
25533if test "${ac_cv_lib_ipc_shmat+set}" = set; then
25534 echo $ECHO_N "(cached) $ECHO_C" >&6
25535else
25536 ac_check_lib_save_LIBS=$LIBS
25537LIBS="-lipc $LIBS"
25538cat >conftest.$ac_ext <<_ACEOF
25539/* confdefs.h. */
25540_ACEOF
25541cat confdefs.h >>conftest.$ac_ext
25542cat >>conftest.$ac_ext <<_ACEOF
25543/* end confdefs.h. */
25544
25545/* Override any gcc2 internal prototype to avoid an error. */
25546#ifdef __cplusplus
25547extern "C"
25548#endif
25549/* We use char because int might match the return type of a gcc2
25550 builtin and then its argument prototype would still apply. */
25551char shmat ();
25552int
25553main ()
25554{
25555shmat ();
25556 ;
25557 return 0;
25558}
25559_ACEOF
25560rm -f conftest.$ac_objext conftest$ac_exeext
25561if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25562 (eval $ac_link) 2>conftest.er1
a848cd7e 25563 ac_status=$?
ac1cb8d3
VS
25564 grep -v '^ *+' conftest.er1 >conftest.err
25565 rm -f conftest.er1
25566 cat conftest.err >&5
a848cd7e
SC
25567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25568 (exit $ac_status); } &&
da4486fb 25569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25571 (eval $ac_try) 2>&5
25572 ac_status=$?
25573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25574 (exit $ac_status); }; } &&
25575 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25577 (eval $ac_try) 2>&5
25578 ac_status=$?
25579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25580 (exit $ac_status); }; }; then
25581 ac_cv_lib_ipc_shmat=yes
25582else
25583 echo "$as_me: failed program was:" >&5
25584sed 's/^/| /' conftest.$ac_ext >&5
25585
25586ac_cv_lib_ipc_shmat=no
25587fi
ac1cb8d3
VS
25588rm -f conftest.err conftest.$ac_objext \
25589 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25590LIBS=$ac_check_lib_save_LIBS
25591fi
25592echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
25593echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
25594if test $ac_cv_lib_ipc_shmat = yes; then
25595 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25596fi
25597
25598 fi
25599 fi
25600
25601 # Check for libraries that X11R6 Xt/Xaw programs need.
25602 ac_save_LDFLAGS=$LDFLAGS
25603 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25604 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25605 # check for ICE first), but we must link in the order -lSM -lICE or
25606 # we get undefined symbols. So assume we have SM if we have ICE.
25607 # These have to be linked with before -lX11, unlike the other
25608 # libraries we check for below, so use a different variable.
25609 # John Interrante, Karl Berry
25610 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
25611echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
25612if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
25613 echo $ECHO_N "(cached) $ECHO_C" >&6
25614else
25615 ac_check_lib_save_LIBS=$LIBS
25616LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25617cat >conftest.$ac_ext <<_ACEOF
25618/* confdefs.h. */
25619_ACEOF
25620cat confdefs.h >>conftest.$ac_ext
25621cat >>conftest.$ac_ext <<_ACEOF
25622/* end confdefs.h. */
25623
25624/* Override any gcc2 internal prototype to avoid an error. */
25625#ifdef __cplusplus
25626extern "C"
25627#endif
25628/* We use char because int might match the return type of a gcc2
25629 builtin and then its argument prototype would still apply. */
25630char IceConnectionNumber ();
25631int
25632main ()
25633{
25634IceConnectionNumber ();
25635 ;
25636 return 0;
25637}
25638_ACEOF
25639rm -f conftest.$ac_objext conftest$ac_exeext
25640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25641 (eval $ac_link) 2>conftest.er1
a848cd7e 25642 ac_status=$?
ac1cb8d3
VS
25643 grep -v '^ *+' conftest.er1 >conftest.err
25644 rm -f conftest.er1
25645 cat conftest.err >&5
a848cd7e
SC
25646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25647 (exit $ac_status); } &&
da4486fb 25648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25650 (eval $ac_try) 2>&5
25651 ac_status=$?
25652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25653 (exit $ac_status); }; } &&
25654 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25656 (eval $ac_try) 2>&5
25657 ac_status=$?
25658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25659 (exit $ac_status); }; }; then
25660 ac_cv_lib_ICE_IceConnectionNumber=yes
25661else
25662 echo "$as_me: failed program was:" >&5
25663sed 's/^/| /' conftest.$ac_ext >&5
25664
25665ac_cv_lib_ICE_IceConnectionNumber=no
25666fi
ac1cb8d3
VS
25667rm -f conftest.err conftest.$ac_objext \
25668 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25669LIBS=$ac_check_lib_save_LIBS
25670fi
25671echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25672echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
25673if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
25674 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25675fi
25676
25677 LDFLAGS=$ac_save_LDFLAGS
25678
25679fi
25680
25681
25682 if test "$no_x" = "yes"; then
25683 { { echo "$as_me:$LINENO: error: X11 not found" >&5
25684echo "$as_me: error: X11 not found" >&2;}
25685 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
25686 fi
25687
74b84332
VS
25688 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
25689 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
25690 AFMINSTALL=afminstall
25691 COMPILED_X_PROGRAM=0
25692
74b84332
VS
25693 fi
25694
25695 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
25696 if test "$wxUSE_NANOX" = "yes"; then
25697 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
25698echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
25699 if test "x$MICROWIN" = x ; then
25700 echo "$as_me:$LINENO: result: not found" >&5
25701echo "${ECHO_T}not found" >&6
25702 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
25703echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
25704 { (exit 1); exit 1; }; }
25705 else
25706 echo "$as_me:$LINENO: result: $MICROWIN" >&5
25707echo "${ECHO_T}$MICROWIN" >&6
25708 cat >>confdefs.h <<\_ACEOF
25709#define wxUSE_NANOX 1
25710_ACEOF
25711
25712 fi
25713 fi
25714
25715 if test "$wxUSE_UNICODE" = "yes"; then
25716
25717 succeeded=no
25718
25719 if test -z "$PKG_CONFIG"; then
25720 # Extract the first word of "pkg-config", so it can be a program name with args.
25721set dummy pkg-config; ac_word=$2
25722echo "$as_me:$LINENO: checking for $ac_word" >&5
25723echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25724if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25725 echo $ECHO_N "(cached) $ECHO_C" >&6
25726else
25727 case $PKG_CONFIG in
25728 [\\/]* | ?:[\\/]*)
25729 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25730 ;;
25731 *)
25732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25733for as_dir in $PATH
25734do
25735 IFS=$as_save_IFS
25736 test -z "$as_dir" && as_dir=.
25737 for ac_exec_ext in '' $ac_executable_extensions; do
25738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25739 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25741 break 2
25742 fi
25743done
25744done
25745
25746 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25747 ;;
25748esac
25749fi
25750PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25751
25752if test -n "$PKG_CONFIG"; then
25753 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25754echo "${ECHO_T}$PKG_CONFIG" >&6
25755else
25756 echo "$as_me:$LINENO: result: no" >&5
25757echo "${ECHO_T}no" >&6
25758fi
25759
25760 fi
25761
25762 if test "$PKG_CONFIG" = "no" ; then
25763 echo "*** The pkg-config script could not be found. Make sure it is"
25764 echo "*** in your path, or set the PKG_CONFIG environment variable"
25765 echo "*** to the full path to pkg-config."
25766 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25767 else
25768 PKG_CONFIG_MIN_VERSION=0.9.0
25769 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25770 echo "$as_me:$LINENO: checking for pangox" >&5
25771echo $ECHO_N "checking for pangox... $ECHO_C" >&6
25772
25773 if $PKG_CONFIG --exists "pangox" ; then
25774 echo "$as_me:$LINENO: result: yes" >&5
25775echo "${ECHO_T}yes" >&6
25776 succeeded=yes
25777
25778 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
25779echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
25780 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
25781 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
25782echo "${ECHO_T}$PANGOX_CFLAGS" >&6
25783
25784 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
25785echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
25786 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
25787 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
25788echo "${ECHO_T}$PANGOX_LIBS" >&6
25789 else
25790 PANGOX_CFLAGS=""
25791 PANGOX_LIBS=""
25792 ## If we have a custom action on failure, don't print errors, but
25793 ## do set a variable so people can do so.
25794 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
25795
25796 fi
25797
25798
25799
25800 else
25801 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25802 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25803 fi
25804 fi
25805
25806 if test $succeeded = yes; then
25807
25808 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
25809 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
25810
25811 else
25812
25813 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
25814echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
25815 { (exit 1); exit 1; }; }
25816
25817
25818 fi
25819
25820
25821 succeeded=no
25822
25823 if test -z "$PKG_CONFIG"; then
25824 # Extract the first word of "pkg-config", so it can be a program name with args.
25825set dummy pkg-config; ac_word=$2
25826echo "$as_me:$LINENO: checking for $ac_word" >&5
25827echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25828if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25829 echo $ECHO_N "(cached) $ECHO_C" >&6
25830else
25831 case $PKG_CONFIG in
25832 [\\/]* | ?:[\\/]*)
25833 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25834 ;;
25835 *)
25836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25837for as_dir in $PATH
25838do
25839 IFS=$as_save_IFS
25840 test -z "$as_dir" && as_dir=.
25841 for ac_exec_ext in '' $ac_executable_extensions; do
25842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25843 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25845 break 2
25846 fi
25847done
25848done
25849
25850 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25851 ;;
25852esac
25853fi
25854PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25855
25856if test -n "$PKG_CONFIG"; then
25857 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25858echo "${ECHO_T}$PKG_CONFIG" >&6
25859else
25860 echo "$as_me:$LINENO: result: no" >&5
25861echo "${ECHO_T}no" >&6
25862fi
25863
25864 fi
25865
25866 if test "$PKG_CONFIG" = "no" ; then
25867 echo "*** The pkg-config script could not be found. Make sure it is"
25868 echo "*** in your path, or set the PKG_CONFIG environment variable"
25869 echo "*** to the full path to pkg-config."
25870 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25871 else
25872 PKG_CONFIG_MIN_VERSION=0.9.0
25873 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25874 echo "$as_me:$LINENO: checking for pangoft2" >&5
25875echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
25876
25877 if $PKG_CONFIG --exists "pangoft2" ; then
25878 echo "$as_me:$LINENO: result: yes" >&5
25879echo "${ECHO_T}yes" >&6
25880 succeeded=yes
25881
25882 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
25883echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
25884 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
25885 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
25886echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
25887
25888 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
25889echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
25890 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
25891 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
25892echo "${ECHO_T}$PANGOFT2_LIBS" >&6
25893 else
25894 PANGOFT2_CFLAGS=""
25895 PANGOFT2_LIBS=""
25896 ## If we have a custom action on failure, don't print errors, but
25897 ## do set a variable so people can do so.
25898 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
25899
25900 fi
25901
25902
25903
25904 else
25905 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25906 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25907 fi
25908 fi
25909
25910 if test $succeeded = yes; then
25911
25912 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
25913 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
25914
25915 else
25916
25917 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
25918echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
25919 wxUSE_PRINTING_ARCHITECTURE="no"
25920
25921
25922 fi
25923
25924
25925 succeeded=no
25926
25927 if test -z "$PKG_CONFIG"; then
25928 # Extract the first word of "pkg-config", so it can be a program name with args.
25929set dummy pkg-config; ac_word=$2
25930echo "$as_me:$LINENO: checking for $ac_word" >&5
25931echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25932if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25933 echo $ECHO_N "(cached) $ECHO_C" >&6
25934else
25935 case $PKG_CONFIG in
25936 [\\/]* | ?:[\\/]*)
25937 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25938 ;;
25939 *)
25940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25941for as_dir in $PATH
25942do
25943 IFS=$as_save_IFS
25944 test -z "$as_dir" && as_dir=.
25945 for ac_exec_ext in '' $ac_executable_extensions; do
25946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25947 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25949 break 2
25950 fi
25951done
25952done
25953
25954 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25955 ;;
25956esac
25957fi
25958PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25959
25960if test -n "$PKG_CONFIG"; then
25961 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25962echo "${ECHO_T}$PKG_CONFIG" >&6
25963else
25964 echo "$as_me:$LINENO: result: no" >&5
25965echo "${ECHO_T}no" >&6
25966fi
25967
25968 fi
25969
25970 if test "$PKG_CONFIG" = "no" ; then
25971 echo "*** The pkg-config script could not be found. Make sure it is"
25972 echo "*** in your path, or set the PKG_CONFIG environment variable"
25973 echo "*** to the full path to pkg-config."
25974 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25975 else
25976 PKG_CONFIG_MIN_VERSION=0.9.0
25977 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25978 echo "$as_me:$LINENO: checking for pangoxft" >&5
25979echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
25980
25981 if $PKG_CONFIG --exists "pangoxft" ; then
25982 echo "$as_me:$LINENO: result: yes" >&5
25983echo "${ECHO_T}yes" >&6
25984 succeeded=yes
25985
25986 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
25987echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
25988 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
25989 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
25990echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
25991
25992 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
25993echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
25994 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
25995 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
25996echo "${ECHO_T}$PANGOXFT_LIBS" >&6
25997 else
25998 PANGOXFT_CFLAGS=""
25999 PANGOXFT_LIBS=""
26000 ## If we have a custom action on failure, don't print errors, but
26001 ## do set a variable so people can do so.
26002 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
26003
26004 fi
26005
26006
26007
26008 else
26009 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
26010 echo "*** See http://www.freedesktop.org/software/pkgconfig"
26011 fi
26012 fi
26013
26014 if test $succeeded = yes; then
26015
4ae1af05
MB
26016 cat >>confdefs.h <<\_ACEOF
26017#define HAVE_PANGO_XFT 1
26018_ACEOF
26019
a848cd7e
SC
26020 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
26021 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
26022
26023 else
26024
26025 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
26026echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
26027
26028
26029 fi
26030
304205f1
VS
26031 save_CFLAGS="$CFLAGS"
26032 save_LIBS="$LIBS"
26033 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
26034 LIBS="$LIBS $PANGOX_LIBS"
26035
26036for ac_func in pango_font_family_is_monospace
26037do
26038as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26039echo "$as_me:$LINENO: checking for $ac_func" >&5
26040echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26041if eval "test \"\${$as_ac_var+set}\" = set"; then
26042 echo $ECHO_N "(cached) $ECHO_C" >&6
26043else
26044 cat >conftest.$ac_ext <<_ACEOF
26045/* confdefs.h. */
26046_ACEOF
26047cat confdefs.h >>conftest.$ac_ext
26048cat >>conftest.$ac_ext <<_ACEOF
26049/* end confdefs.h. */
26050/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26051 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26052#define $ac_func innocuous_$ac_func
26053
26054/* System header to define __stub macros and hopefully few prototypes,
26055 which can conflict with char $ac_func (); below.
26056 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26057 <limits.h> exists even on freestanding compilers. */
26058
26059#ifdef __STDC__
26060# include <limits.h>
26061#else
26062# include <assert.h>
26063#endif
26064
26065#undef $ac_func
26066
26067/* Override any gcc2 internal prototype to avoid an error. */
26068#ifdef __cplusplus
26069extern "C"
26070{
26071#endif
26072/* We use char because int might match the return type of a gcc2
26073 builtin and then its argument prototype would still apply. */
26074char $ac_func ();
26075/* The GNU C library defines this for functions which it implements
26076 to always fail with ENOSYS. Some functions are actually named
26077 something starting with __ and the normal name is an alias. */
26078#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26079choke me
26080#else
26081char (*f) () = $ac_func;
26082#endif
26083#ifdef __cplusplus
26084}
26085#endif
26086
26087int
26088main ()
26089{
26090return f != $ac_func;
26091 ;
26092 return 0;
26093}
26094_ACEOF
26095rm -f conftest.$ac_objext conftest$ac_exeext
26096if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26097 (eval $ac_link) 2>conftest.er1
26098 ac_status=$?
26099 grep -v '^ *+' conftest.er1 >conftest.err
26100 rm -f conftest.er1
26101 cat conftest.err >&5
26102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26103 (exit $ac_status); } &&
da4486fb 26104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
26105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26106 (eval $ac_try) 2>&5
26107 ac_status=$?
26108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26109 (exit $ac_status); }; } &&
26110 { ac_try='test -s conftest$ac_exeext'
26111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26112 (eval $ac_try) 2>&5
26113 ac_status=$?
26114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26115 (exit $ac_status); }; }; then
26116 eval "$as_ac_var=yes"
26117else
26118 echo "$as_me: failed program was:" >&5
26119sed 's/^/| /' conftest.$ac_ext >&5
26120
26121eval "$as_ac_var=no"
26122fi
26123rm -f conftest.err conftest.$ac_objext \
26124 conftest$ac_exeext conftest.$ac_ext
26125fi
26126echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26127echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26128if test `eval echo '${'$as_ac_var'}'` = yes; then
26129 cat >>confdefs.h <<_ACEOF
26130#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26131_ACEOF
26132
26133fi
26134done
26135
26136 CFLAGS="$save_CFLAGS"
26137 LIBS="$save_LIBS"
a848cd7e
SC
26138 fi
26139
26140 wxUSE_UNIVERSAL="yes"
26141
26142 if test "$wxUSE_NANOX" = "yes"; then
26143 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
26144 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"
26145 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
26146 else
26147 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
26148 fi
26149
a848cd7e
SC
26150 TOOLKIT=X11
26151 GUIDIST=X11_DIST
26152 fi
26153
26154 if test "$wxUSE_MOTIF" = 1; then
74b84332
VS
26155 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
26156echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 26157
74b84332
VS
26158ac_find_includes=
26159for ac_dir in $SEARCH_INCLUDE /usr/include;
26160 do
26161 if test -f "$ac_dir/Xm/Xm.h"; then
26162 ac_find_includes=$ac_dir
26163 break
26164 fi
26165 done
a848cd7e 26166
74b84332
VS
26167 if test "$ac_find_includes" != "" ; then
26168 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
26169echo "${ECHO_T}found in $ac_find_includes" >&6
26170
26171 if test "x$ac_find_includes" = "x/usr/include"; then
26172 ac_path_to_include=""
26173 else
26174 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
26175 result=$?
26176 if test $result = 0; then
26177 ac_path_to_include=""
26178 else
26179 ac_path_to_include=" -I$ac_find_includes"
26180 fi
a848cd7e
SC
26181 fi
26182
74b84332
VS
26183 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
26184 else
26185 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
26186/* confdefs.h. */
26187_ACEOF
26188cat confdefs.h >>conftest.$ac_ext
26189cat >>conftest.$ac_ext <<_ACEOF
26190/* end confdefs.h. */
26191
74b84332
VS
26192 #include <Xm/Xm.h>
26193
a848cd7e
SC
26194int
26195main ()
26196{
26197
74b84332
VS
26198 int version;
26199 version = xmUseVersion;
26200
a848cd7e
SC
26201 ;
26202 return 0;
26203}
26204_ACEOF
74b84332
VS
26205rm -f conftest.$ac_objext
26206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26207 (eval $ac_compile) 2>conftest.er1
a848cd7e 26208 ac_status=$?
ac1cb8d3
VS
26209 grep -v '^ *+' conftest.er1 >conftest.err
26210 rm -f conftest.er1
26211 cat conftest.err >&5
a848cd7e
SC
26212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26213 (exit $ac_status); } &&
da4486fb 26214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26216 (eval $ac_try) 2>&5
26217 ac_status=$?
26218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26219 (exit $ac_status); }; } &&
74b84332 26220 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26222 (eval $ac_try) 2>&5
26223 ac_status=$?
26224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26225 (exit $ac_status); }; }; then
74b84332
VS
26226
26227 echo "$as_me:$LINENO: result: found in default search path" >&5
26228echo "${ECHO_T}found in default search path" >&6
26229 COMPILED_X_PROGRAM=1
26230
a848cd7e
SC
26231else
26232 echo "$as_me: failed program was:" >&5
26233sed 's/^/| /' conftest.$ac_ext >&5
26234
a848cd7e 26235
74b84332
VS
26236 echo "$as_me:$LINENO: result: no" >&5
26237echo "${ECHO_T}no" >&6
26238 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
26239echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
26240 { (exit 1); exit 1; }; }
a848cd7e 26241
a848cd7e 26242
a848cd7e 26243fi
74b84332
VS
26244rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26245 fi
26246
26247 if test "$COMPILED_X_PROGRAM" = 0; then
26248 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
26249echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
26250
26251ac_find_libraries=
26252for ac_dir in $SEARCH_LIB /usr/lib;
26253 do
26254 for ac_extension in a so sl dylib; do
26255 if test -f "$ac_dir/libXm.$ac_extension"; then
26256 ac_find_libraries=$ac_dir
26257 break 2
a848cd7e 26258 fi
74b84332
VS
26259 done
26260 done
a848cd7e 26261
74b84332
VS
26262 if test "$ac_find_libraries" != "" ; then
26263 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26264echo "${ECHO_T}found at $ac_find_libraries" >&6
a848cd7e 26265
74b84332
VS
26266
26267 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26268 result=$?
26269 if test $result = 0; then
26270 ac_path_to_link=""
a848cd7e 26271 else
74b84332
VS
26272 ac_path_to_link=" -L$ac_find_libraries"
26273 fi
26274
26275 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26276 else
26277 save_CFLAGS=$CFLAGS
26278 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26279
26280 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
26281/* confdefs.h. */
26282_ACEOF
26283cat confdefs.h >>conftest.$ac_ext
26284cat >>conftest.$ac_ext <<_ACEOF
26285/* end confdefs.h. */
26286
74b84332
VS
26287 #include <Xm/Xm.h>
26288
a848cd7e
SC
26289int
26290main ()
26291{
74b84332
VS
26292
26293 int version;
26294 version = xmUseVersion;
26295
a848cd7e
SC
26296 ;
26297 return 0;
26298}
26299_ACEOF
74b84332
VS
26300rm -f conftest.$ac_objext
26301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26302 (eval $ac_compile) 2>conftest.er1
a848cd7e 26303 ac_status=$?
ac1cb8d3
VS
26304 grep -v '^ *+' conftest.er1 >conftest.err
26305 rm -f conftest.er1
26306 cat conftest.err >&5
a848cd7e
SC
26307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26308 (exit $ac_status); } &&
da4486fb 26309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26311 (eval $ac_try) 2>&5
26312 ac_status=$?
26313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26314 (exit $ac_status); }; } &&
74b84332 26315 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26317 (eval $ac_try) 2>&5
26318 ac_status=$?
26319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26320 (exit $ac_status); }; }; then
74b84332
VS
26321
26322 echo "$as_me:$LINENO: result: found in default search path" >&5
26323echo "${ECHO_T}found in default search path" >&6
26324 COMPILED_X_PROGRAM=1
26325
a848cd7e
SC
26326else
26327 echo "$as_me: failed program was:" >&5
26328sed 's/^/| /' conftest.$ac_ext >&5
26329
74b84332
VS
26330
26331 echo "$as_me:$LINENO: result: no" >&5
26332echo "${ECHO_T}no" >&6
26333 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
26334echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
26335 { (exit 1); exit 1; }; }
26336
26337
26338fi
26339rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26340
26341 CFLAGS=$save_CFLAGS
26342 fi
26343 fi
26344
26345 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
26346echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
26347 libp_link=""
26348 libsm_ice_link=""
26349 libs_found=0
26350 for libp in "" " -lXp"; do
26351 if test "$libs_found" = "0"; then
26352 for libsm_ice in "" " -lSM -lICE"; do
26353 if test "$libs_found" = "0"; then
26354 save_LIBS="$LIBS"
26355 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
26356 save_CFLAGS=$CFLAGS
26357 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26358
26359 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
26360/* confdefs.h. */
26361_ACEOF
26362cat confdefs.h >>conftest.$ac_ext
26363cat >>conftest.$ac_ext <<_ACEOF
26364/* end confdefs.h. */
26365
74b84332
VS
26366 #include <Xm/Xm.h>
26367 #include <Xm/List.h>
26368
a848cd7e
SC
26369int
26370main ()
26371{
74b84332
VS
26372
26373 XmString string = NULL;
26374 Widget w = NULL;
26375 int position = 0;
26376 XmListAddItem(w, string, position);
26377
a848cd7e
SC
26378 ;
26379 return 0;
26380}
26381_ACEOF
26382rm -f conftest.$ac_objext conftest$ac_exeext
26383if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26384 (eval $ac_link) 2>conftest.er1
a848cd7e 26385 ac_status=$?
ac1cb8d3
VS
26386 grep -v '^ *+' conftest.er1 >conftest.err
26387 rm -f conftest.er1
26388 cat conftest.err >&5
a848cd7e
SC
26389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26390 (exit $ac_status); } &&
da4486fb 26391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26393 (eval $ac_try) 2>&5
26394 ac_status=$?
26395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26396 (exit $ac_status); }; } &&
26397 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26399 (eval $ac_try) 2>&5
26400 ac_status=$?
26401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26402 (exit $ac_status); }; }; then
26403
26404 libp_link="$libp"
26405 libsm_ice_link="$libsm_ice"
26406 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
26407echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
26408 libs_found=1
26409
26410else
26411 echo "$as_me: failed program was:" >&5
26412sed 's/^/| /' conftest.$ac_ext >&5
26413
26414
26415
26416fi
ac1cb8d3
VS
26417rm -f conftest.err conftest.$ac_objext \
26418 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26419
26420 LIBS="$save_LIBS"
26421 CFLAGS=$save_CFLAGS
26422 fi
26423 done
26424 fi
26425 done
26426
26427 if test "$libs_found" = "0"; then
26428 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
26429echo "${ECHO_T}can't find the right libraries" >&6
26430 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
26431echo "$as_me: error: can't link a simple motif program" >&2;}
26432 { (exit 1); exit 1; }; }
26433 fi
26434
26435 save_CFLAGS=$CFLAGS
26436 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26437 echo "$as_me:$LINENO: checking for Motif 2" >&5
26438echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
26439 cat >conftest.$ac_ext <<_ACEOF
26440/* confdefs.h. */
26441_ACEOF
26442cat confdefs.h >>conftest.$ac_ext
26443cat >>conftest.$ac_ext <<_ACEOF
26444/* end confdefs.h. */
26445
26446 #include <Xm/Xm.h>
26447
26448int
26449main ()
26450{
26451
26452 #if XmVersion < 2000
26453 #error "Not Motif 2"
26454 #endif
26455
26456 ;
26457 return 0;
26458}
26459_ACEOF
26460rm -f conftest.$ac_objext
26461if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26462 (eval $ac_compile) 2>conftest.er1
a848cd7e 26463 ac_status=$?
ac1cb8d3
VS
26464 grep -v '^ *+' conftest.er1 >conftest.err
26465 rm -f conftest.er1
26466 cat conftest.err >&5
a848cd7e
SC
26467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26468 (exit $ac_status); } &&
da4486fb 26469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26471 (eval $ac_try) 2>&5
26472 ac_status=$?
26473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26474 (exit $ac_status); }; } &&
26475 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26477 (eval $ac_try) 2>&5
26478 ac_status=$?
26479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26480 (exit $ac_status); }; }; then
26481
26482 cat >>confdefs.h <<\_ACEOF
26483#define __WXMOTIF20__ 1
26484_ACEOF
26485
26486 echo "$as_me:$LINENO: result: found" >&5
26487echo "${ECHO_T}found" >&6
26488
26489else
26490 echo "$as_me: failed program was:" >&5
26491sed 's/^/| /' conftest.$ac_ext >&5
26492
26493
26494 cat >>confdefs.h <<\_ACEOF
26495#define __WXMOTIF20__ 0
26496_ACEOF
26497
26498 echo "$as_me:$LINENO: result: not found" >&5
26499echo "${ECHO_T}not found" >&6
26500
26501fi
ac1cb8d3 26502rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26503 CFLAGS=$save_CFLAGS
26504
26505 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
26506 TOOLKIT=MOTIF
26507 GUIDIST=MOTIF_DIST
26508 fi
26509
74b84332 26510 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
26511 if test "$wxUSE_LIBXPM" = "sys"; then
26512 echo "$as_me:$LINENO: checking for Xpm library" >&5
26513echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
26514
26515ac_find_libraries=
26516for ac_dir in $SEARCH_LIB /usr/lib;
26517 do
26518 for ac_extension in a so sl dylib; do
26519 if test -f "$ac_dir/libXpm.$ac_extension"; then
26520 ac_find_libraries=$ac_dir
26521 break 2
26522 fi
26523 done
26524 done
26525
26526 if test "$ac_find_libraries" != "" ; then
26527
26528 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26529 result=$?
26530 if test $result = 0; then
26531 ac_path_to_link=""
26532 else
26533 ac_path_to_link=" -L$ac_find_libraries"
26534 fi
26535
26536 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26537 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26538echo "${ECHO_T}found at $ac_find_libraries" >&6
26539
26540 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
26541echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
26542if test "${wx_cv_x11_xpm_h+set}" = set; then
26543 echo $ECHO_N "(cached) $ECHO_C" >&6
26544else
26545
26546 save_CFLAGS=$CFLAGS
26547 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26548
26549 cat >conftest.$ac_ext <<_ACEOF
26550/* confdefs.h. */
26551_ACEOF
26552cat confdefs.h >>conftest.$ac_ext
26553cat >>conftest.$ac_ext <<_ACEOF
26554/* end confdefs.h. */
26555
26556 #include <X11/xpm.h>
26557
26558int
26559main ()
26560{
26561
26562 int version;
26563 version = XpmLibraryVersion();
26564
26565 ;
26566 return 0;
26567}
26568_ACEOF
26569rm -f conftest.$ac_objext
26570if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26571 (eval $ac_compile) 2>conftest.er1
a848cd7e 26572 ac_status=$?
ac1cb8d3
VS
26573 grep -v '^ *+' conftest.er1 >conftest.err
26574 rm -f conftest.er1
26575 cat conftest.err >&5
a848cd7e
SC
26576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26577 (exit $ac_status); } &&
da4486fb 26578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26580 (eval $ac_try) 2>&5
26581 ac_status=$?
26582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26583 (exit $ac_status); }; } &&
26584 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26586 (eval $ac_try) 2>&5
26587 ac_status=$?
26588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26589 (exit $ac_status); }; }; then
26590 wx_cv_x11_xpm_h=yes
26591else
26592 echo "$as_me: failed program was:" >&5
26593sed 's/^/| /' conftest.$ac_ext >&5
26594
26595wx_cv_x11_xpm_h=no
26596
26597fi
ac1cb8d3 26598rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26599
26600 CFLAGS=$save_CFLAGS
26601
26602
26603fi
26604echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
26605echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
26606
26607 if test $wx_cv_x11_xpm_h = "yes"; then
26608 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
26609 cat >>confdefs.h <<\_ACEOF
26610#define wxHAVE_LIB_XPM 1
26611_ACEOF
26612
26613 else
26614 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
26615echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
26616 fi
26617 fi
26618
26619 fi
26620
26621 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
26622echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
26623if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
26624 echo $ECHO_N "(cached) $ECHO_C" >&6
26625else
26626 ac_check_lib_save_LIBS=$LIBS
26627LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
26628cat >conftest.$ac_ext <<_ACEOF
26629/* confdefs.h. */
26630_ACEOF
26631cat confdefs.h >>conftest.$ac_ext
26632cat >>conftest.$ac_ext <<_ACEOF
26633/* end confdefs.h. */
26634
26635/* Override any gcc2 internal prototype to avoid an error. */
26636#ifdef __cplusplus
26637extern "C"
26638#endif
26639/* We use char because int might match the return type of a gcc2
26640 builtin and then its argument prototype would still apply. */
26641char XShapeQueryExtension ();
26642int
26643main ()
26644{
26645XShapeQueryExtension ();
26646 ;
26647 return 0;
26648}
26649_ACEOF
26650rm -f conftest.$ac_objext conftest$ac_exeext
26651if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26652 (eval $ac_link) 2>conftest.er1
a848cd7e 26653 ac_status=$?
ac1cb8d3
VS
26654 grep -v '^ *+' conftest.er1 >conftest.err
26655 rm -f conftest.er1
26656 cat conftest.err >&5
a848cd7e
SC
26657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26658 (exit $ac_status); } &&
da4486fb 26659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26661 (eval $ac_try) 2>&5
26662 ac_status=$?
26663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26664 (exit $ac_status); }; } &&
26665 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26667 (eval $ac_try) 2>&5
26668 ac_status=$?
26669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26670 (exit $ac_status); }; }; then
26671 ac_cv_lib_Xext_XShapeQueryExtension=yes
26672else
26673 echo "$as_me: failed program was:" >&5
26674sed 's/^/| /' conftest.$ac_ext >&5
26675
26676ac_cv_lib_Xext_XShapeQueryExtension=no
26677fi
ac1cb8d3
VS
26678rm -f conftest.err conftest.$ac_objext \
26679 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26680LIBS=$ac_check_lib_save_LIBS
26681fi
26682echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
26683echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
26684if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
26685
26686 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
26687 wxHAVE_XEXT_LIB=1
26688
26689fi
26690
26691
26692 if test "$wxHAVE_XEXT_LIB" = 1; then
26693 save_CFLAGS="$CFLAGS"
26694 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26695
26696 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
26697echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
26698 cat >conftest.$ac_ext <<_ACEOF
26699/* confdefs.h. */
26700_ACEOF
26701cat confdefs.h >>conftest.$ac_ext
26702cat >>conftest.$ac_ext <<_ACEOF
26703/* end confdefs.h. */
26704
26705 #include <X11/Xlib.h>
26706 #include <X11/extensions/shape.h>
26707
26708int
26709main ()
26710{
26711
26712 int dummy1, dummy2;
26713 XShapeQueryExtension((Display*)NULL,
26714 (int*)NULL, (int*)NULL);
26715
26716 ;
26717 return 0;
26718}
26719_ACEOF
26720rm -f conftest.$ac_objext
26721if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26722 (eval $ac_compile) 2>conftest.er1
a848cd7e 26723 ac_status=$?
ac1cb8d3
VS
26724 grep -v '^ *+' conftest.er1 >conftest.err
26725 rm -f conftest.er1
26726 cat conftest.err >&5
a848cd7e
SC
26727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26728 (exit $ac_status); } &&
da4486fb 26729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26731 (eval $ac_try) 2>&5
26732 ac_status=$?
26733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26734 (exit $ac_status); }; } &&
26735 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26737 (eval $ac_try) 2>&5
26738 ac_status=$?
26739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26740 (exit $ac_status); }; }; then
26741
26742 cat >>confdefs.h <<\_ACEOF
26743#define HAVE_XSHAPE 1
26744_ACEOF
26745
26746 echo "$as_me:$LINENO: result: found" >&5
26747echo "${ECHO_T}found" >&6
26748
26749else
26750 echo "$as_me: failed program was:" >&5
26751sed 's/^/| /' conftest.$ac_ext >&5
26752
26753
26754 echo "$as_me:$LINENO: result: not found" >&5
26755echo "${ECHO_T}not found" >&6
26756
26757fi
ac1cb8d3 26758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26759 CFLAGS="$save_CFLAGS"
26760
26761 fi
26762 fi
26763
26764 if test "$wxUSE_MAC" = 1; then
26765 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
26766echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
26767 if test "$GCC" = yes; then
26768 echo "$as_me:$LINENO: result: gcc" >&5
26769echo "${ECHO_T}gcc" >&6
26770 CPPFLAGS_PASCAL="-fpascal-strings"
26771 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
26772 echo "$as_me:$LINENO: result: xlc" >&5
26773echo "${ECHO_T}xlc" >&6
26774 CPPFLAGS_PASCAL="-qmacpstr"
26775 else
26776 echo "$as_me:$LINENO: result: none" >&5
26777echo "${ECHO_T}none" >&6
26778 fi
26779
1e9e8aba
DE
26780 if test "x$wxUSE_UNIX" = "xyes"; then
26781 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
26782 else
26783 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON"
26784 fi
a848cd7e 26785
a848cd7e
SC
26786 TOOLKIT=MAC
26787 GUIDIST=MACX_DIST
dd21ced8 26788 WXBASEPORT="_carbon"
a848cd7e
SC
26789 fi
26790
26791 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
26792 TOOLKIT=COCOA
26793 GUIDIST=COCOA_DIST
26794 fi
26795
26796 if test "$wxUSE_PM" = 1; then
26797 TOOLKIT=PM
de59c161
RD
26798 GUIDIST=PM_DIST
26799 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
26800echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
26801if test "${wx_cv_spbcdata+set}" = set; then
26802 echo $ECHO_N "(cached) $ECHO_C" >&6
26803else
26804
26805 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
26806/* confdefs.h. */
26807_ACEOF
26808cat confdefs.h >>conftest.$ac_ext
26809cat >>conftest.$ac_ext <<_ACEOF
26810/* end confdefs.h. */
26811
26812 #define INCL_PM
26813 #include <os2.h>
26814
26815int
26816main ()
26817{
26818
26819 SPBCDATA test;
26820
26821 ;
26822 return 0;
26823}
26824_ACEOF
26825rm -f conftest.$ac_objext
26826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26827 (eval $ac_compile) 2>conftest.er1
de59c161 26828 ac_status=$?
ac1cb8d3
VS
26829 grep -v '^ *+' conftest.er1 >conftest.err
26830 rm -f conftest.er1
26831 cat conftest.err >&5
de59c161
RD
26832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26833 (exit $ac_status); } &&
da4486fb 26834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26836 (eval $ac_try) 2>&5
26837 ac_status=$?
26838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26839 (exit $ac_status); }; } &&
26840 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
26841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26842 (eval $ac_try) 2>&5
26843 ac_status=$?
26844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26845 (exit $ac_status); }; }; then
26846 wx_cv_spbcdata=yes
26847else
26848 echo "$as_me: failed program was:" >&5
26849sed 's/^/| /' conftest.$ac_ext >&5
26850
26851wx_cv_spbcdata=no
26852
26853fi
ac1cb8d3 26854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
26855
26856
26857fi
26858echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
26859echo "${ECHO_T}$wx_cv_spbcdata" >&6
26860
26861 if test $wx_cv_spbcdata = "yes"; then
26862 cat >>confdefs.h <<\_ACEOF
26863#define HAVE_SPBCDATA 1
26864_ACEOF
26865
26866 fi
a848cd7e
SC
26867 fi
26868
26869 if test "$TOOLKIT" = "PM" ; then
26870 TOOLKIT_DIR="os2"
26871 else
26872 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
26873 fi
26874
a848cd7e 26875 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
26876 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
26877 WIDGET_SET=univ
a848cd7e
SC
26878 fi
26879
26880 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
26881 DISTDIR="wx\$(TOOLKIT)"
26882else
26883 USE_GUI=0
26884
26885 TOOLKIT_DIR="base"
26886
26887 if test "$USE_WIN32" = 1 ; then
a848cd7e 26888 TOOLKIT="MSW"
a848cd7e
SC
26889 fi
26890
a848cd7e
SC
26891 GUIDIST="BASE_DIST"
26892 DISTDIR="wxBase"
26893fi
26894
26895
26896
26897
26898IODBC_C_SRC=""
26899
26900
26901if test "$TOOLKIT" != "MSW" ; then
26902
26903 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
26904
26905 if test "${ac_cv_header_sql_h+set}" = set; then
26906 echo "$as_me:$LINENO: checking for sql.h" >&5
26907echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26908if test "${ac_cv_header_sql_h+set}" = set; then
26909 echo $ECHO_N "(cached) $ECHO_C" >&6
26910fi
26911echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26912echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26913else
26914 # Is the header compilable?
26915echo "$as_me:$LINENO: checking sql.h usability" >&5
26916echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
26917cat >conftest.$ac_ext <<_ACEOF
26918/* confdefs.h. */
26919_ACEOF
26920cat confdefs.h >>conftest.$ac_ext
26921cat >>conftest.$ac_ext <<_ACEOF
26922/* end confdefs.h. */
26923$ac_includes_default
26924#include <sql.h>
26925_ACEOF
26926rm -f conftest.$ac_objext
26927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26928 (eval $ac_compile) 2>conftest.er1
a848cd7e 26929 ac_status=$?
ac1cb8d3
VS
26930 grep -v '^ *+' conftest.er1 >conftest.err
26931 rm -f conftest.er1
26932 cat conftest.err >&5
a848cd7e
SC
26933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26934 (exit $ac_status); } &&
da4486fb 26935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26937 (eval $ac_try) 2>&5
26938 ac_status=$?
26939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26940 (exit $ac_status); }; } &&
26941 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26943 (eval $ac_try) 2>&5
26944 ac_status=$?
26945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26946 (exit $ac_status); }; }; then
26947 ac_header_compiler=yes
26948else
26949 echo "$as_me: failed program was:" >&5
26950sed 's/^/| /' conftest.$ac_ext >&5
26951
26952ac_header_compiler=no
26953fi
ac1cb8d3 26954rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26955echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26956echo "${ECHO_T}$ac_header_compiler" >&6
26957
26958# Is the header present?
26959echo "$as_me:$LINENO: checking sql.h presence" >&5
26960echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
26961cat >conftest.$ac_ext <<_ACEOF
26962/* confdefs.h. */
26963_ACEOF
26964cat confdefs.h >>conftest.$ac_ext
26965cat >>conftest.$ac_ext <<_ACEOF
26966/* end confdefs.h. */
26967#include <sql.h>
26968_ACEOF
26969if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26970 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26971 ac_status=$?
26972 grep -v '^ *+' conftest.er1 >conftest.err
26973 rm -f conftest.er1
26974 cat conftest.err >&5
26975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26976 (exit $ac_status); } >/dev/null; then
26977 if test -s conftest.err; then
26978 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 26979 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
26980 else
26981 ac_cpp_err=
26982 fi
26983else
26984 ac_cpp_err=yes
26985fi
26986if test -z "$ac_cpp_err"; then
26987 ac_header_preproc=yes
26988else
26989 echo "$as_me: failed program was:" >&5
26990sed 's/^/| /' conftest.$ac_ext >&5
26991
26992 ac_header_preproc=no
26993fi
26994rm -f conftest.err conftest.$ac_ext
26995echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26996echo "${ECHO_T}$ac_header_preproc" >&6
26997
26998# So? What about this header?
ac1cb8d3
VS
26999case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27000 yes:no: )
a848cd7e
SC
27001 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
27002echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27003 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
27004echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
27005 ac_header_preproc=yes
a848cd7e 27006 ;;
ac1cb8d3 27007 no:yes:* )
a848cd7e
SC
27008 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
27009echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27010 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
27011echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
27012 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
27013echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
27014 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
27015echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27016 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
27017echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27018 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
27019echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27020 (
27021 cat <<\_ASBOX
ac1cb8d3
VS
27022## ----------------------------------------- ##
27023## Report this to wx-dev@lists.wxwidgets.org ##
27024## ----------------------------------------- ##
a848cd7e
SC
27025_ASBOX
27026 ) |
27027 sed "s/^/$as_me: WARNING: /" >&2
27028 ;;
27029esac
27030echo "$as_me:$LINENO: checking for sql.h" >&5
27031echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
27032if test "${ac_cv_header_sql_h+set}" = set; then
27033 echo $ECHO_N "(cached) $ECHO_C" >&6
27034else
27035 ac_cv_header_sql_h=$ac_header_preproc
27036fi
27037echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
27038echo "${ECHO_T}$ac_cv_header_sql_h" >&6
27039
27040fi
27041if test $ac_cv_header_sql_h = yes; then
27042 found_sql_h=1
27043fi
27044
27045
27046 if test "x$found_sql_h" = "x1" ; then
27047 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
27048echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
27049if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
27050 echo $ECHO_N "(cached) $ECHO_C" >&6
27051else
27052 ac_check_lib_save_LIBS=$LIBS
27053LIBS="-liodbc $LIBS"
27054cat >conftest.$ac_ext <<_ACEOF
27055/* confdefs.h. */
27056_ACEOF
27057cat confdefs.h >>conftest.$ac_ext
27058cat >>conftest.$ac_ext <<_ACEOF
27059/* end confdefs.h. */
27060
27061/* Override any gcc2 internal prototype to avoid an error. */
27062#ifdef __cplusplus
27063extern "C"
27064#endif
27065/* We use char because int might match the return type of a gcc2
27066 builtin and then its argument prototype would still apply. */
27067char SQLAllocEnv ();
27068int
27069main ()
27070{
27071SQLAllocEnv ();
27072 ;
27073 return 0;
27074}
27075_ACEOF
27076rm -f conftest.$ac_objext conftest$ac_exeext
27077if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27078 (eval $ac_link) 2>conftest.er1
a848cd7e 27079 ac_status=$?
ac1cb8d3
VS
27080 grep -v '^ *+' conftest.er1 >conftest.err
27081 rm -f conftest.er1
27082 cat conftest.err >&5
a848cd7e
SC
27083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27084 (exit $ac_status); } &&
da4486fb 27085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27087 (eval $ac_try) 2>&5
27088 ac_status=$?
27089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27090 (exit $ac_status); }; } &&
27091 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27093 (eval $ac_try) 2>&5
27094 ac_status=$?
27095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27096 (exit $ac_status); }; }; then
27097 ac_cv_lib_iodbc_SQLAllocEnv=yes
27098else
27099 echo "$as_me: failed program was:" >&5
27100sed 's/^/| /' conftest.$ac_ext >&5
27101
27102ac_cv_lib_iodbc_SQLAllocEnv=no
27103fi
ac1cb8d3
VS
27104rm -f conftest.err conftest.$ac_objext \
27105 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27106LIBS=$ac_check_lib_save_LIBS
27107fi
27108echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
27109echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
27110if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
27111 ODBC_LINK=" -liodbc"
27112else
27113
27114 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
27115echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
27116if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
27117 echo $ECHO_N "(cached) $ECHO_C" >&6
27118else
27119 ac_check_lib_save_LIBS=$LIBS
27120LIBS="-lunixodbc $LIBS"
27121cat >conftest.$ac_ext <<_ACEOF
27122/* confdefs.h. */
27123_ACEOF
27124cat confdefs.h >>conftest.$ac_ext
27125cat >>conftest.$ac_ext <<_ACEOF
27126/* end confdefs.h. */
27127
27128/* Override any gcc2 internal prototype to avoid an error. */
27129#ifdef __cplusplus
27130extern "C"
27131#endif
27132/* We use char because int might match the return type of a gcc2
27133 builtin and then its argument prototype would still apply. */
27134char SQLAllocEnv ();
27135int
27136main ()
27137{
27138SQLAllocEnv ();
27139 ;
27140 return 0;
27141}
27142_ACEOF
27143rm -f conftest.$ac_objext conftest$ac_exeext
27144if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27145 (eval $ac_link) 2>conftest.er1
a848cd7e 27146 ac_status=$?
ac1cb8d3
VS
27147 grep -v '^ *+' conftest.er1 >conftest.err
27148 rm -f conftest.er1
27149 cat conftest.err >&5
a848cd7e
SC
27150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27151 (exit $ac_status); } &&
da4486fb 27152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27154 (eval $ac_try) 2>&5
27155 ac_status=$?
27156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27157 (exit $ac_status); }; } &&
27158 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27160 (eval $ac_try) 2>&5
27161 ac_status=$?
27162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27163 (exit $ac_status); }; }; then
27164 ac_cv_lib_unixodbc_SQLAllocEnv=yes
27165else
27166 echo "$as_me: failed program was:" >&5
27167sed 's/^/| /' conftest.$ac_ext >&5
27168
27169ac_cv_lib_unixodbc_SQLAllocEnv=no
27170fi
ac1cb8d3
VS
27171rm -f conftest.err conftest.$ac_objext \
27172 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27173LIBS=$ac_check_lib_save_LIBS
27174fi
27175echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
27176echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
27177if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
27178 ODBC_LINK=" -lunixodbc"
27179else
27180
27181 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
27182echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
27183if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
27184 echo $ECHO_N "(cached) $ECHO_C" >&6
27185else
27186 ac_check_lib_save_LIBS=$LIBS
27187LIBS="-lodbc $LIBS"
27188cat >conftest.$ac_ext <<_ACEOF
27189/* confdefs.h. */
27190_ACEOF
27191cat confdefs.h >>conftest.$ac_ext
27192cat >>conftest.$ac_ext <<_ACEOF
27193/* end confdefs.h. */
27194
27195/* Override any gcc2 internal prototype to avoid an error. */
27196#ifdef __cplusplus
27197extern "C"
27198#endif
27199/* We use char because int might match the return type of a gcc2
27200 builtin and then its argument prototype would still apply. */
27201char SQLAllocEnv ();
27202int
27203main ()
27204{
27205SQLAllocEnv ();
27206 ;
27207 return 0;
27208}
27209_ACEOF
27210rm -f conftest.$ac_objext conftest$ac_exeext
27211if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27212 (eval $ac_link) 2>conftest.er1
a848cd7e 27213 ac_status=$?
ac1cb8d3
VS
27214 grep -v '^ *+' conftest.er1 >conftest.err
27215 rm -f conftest.er1
27216 cat conftest.err >&5
a848cd7e
SC
27217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27218 (exit $ac_status); } &&
da4486fb 27219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27221 (eval $ac_try) 2>&5
27222 ac_status=$?
27223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27224 (exit $ac_status); }; } &&
27225 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27227 (eval $ac_try) 2>&5
27228 ac_status=$?
27229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27230 (exit $ac_status); }; }; then
27231 ac_cv_lib_odbc_SQLAllocEnv=yes
27232else
27233 echo "$as_me: failed program was:" >&5
27234sed 's/^/| /' conftest.$ac_ext >&5
27235
27236ac_cv_lib_odbc_SQLAllocEnv=no
27237fi
ac1cb8d3
VS
27238rm -f conftest.err conftest.$ac_objext \
27239 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27240LIBS=$ac_check_lib_save_LIBS
27241fi
27242echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
27243echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
27244if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
27245 ODBC_LINK=" -lodbc"
27246fi
27247
27248
27249fi
27250
27251
27252fi
27253
27254 fi
27255 if test "x$ODBC_LINK" = "x" ; then
27256 if test "$wxUSE_ODBC" = "sys" ; then
27257 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
27258echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
27259 { (exit 1); exit 1; }; }
27260 else
27261 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
27262echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
27263 wxUSE_ODBC=builtin
27264 fi
27265 else
27266 wxUSE_ODBC=sys
27267 fi
27268 fi
27269 if test "$wxUSE_ODBC" != "no" ; then
27270 cat >>confdefs.h <<\_ACEOF
27271#define wxUSE_ODBC 1
27272_ACEOF
27273
27274 if test "$wxUSE_ODBC" = "builtin" ; then
27275 cat >>confdefs.h <<\_ACEOF
27276#define wxUSE_BUILTIN_IODBC 1
27277_ACEOF
27278
27279 fi
27280 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
27281
27282 WXODBCFLAG="-D_IODBC_"
27283 fi
27284fi
27285
a848cd7e 27286
01cb68df 27287
a848cd7e 27288if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 27289 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
27290 echo "$as_me:$LINENO: checking for Xinerama" >&5
27291echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
27292
27293ac_find_libraries=
27294for ac_dir in $SEARCH_LIB /usr/lib;
27295 do
27296 for ac_extension in a so sl dylib; do
27297 if test -f "$ac_dir/libXinerama.$ac_extension"; then
27298 ac_find_libraries=$ac_dir
27299 break 2
27300 fi
27301 done
27302 done
27303
27304 if test "$ac_find_libraries" != "" ; then
27305
27306 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27307 result=$?
27308 if test $result = 0; then
27309 ac_path_to_link=""
27310 else
27311 ac_path_to_link=" -L$ac_find_libraries"
27312 fi
27313
27314 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27315 LDFLAGS="$LDFLAGS $ac_path_to_link"
27316 fi
27317 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
27318 echo "$as_me:$LINENO: result: yes" >&5
27319echo "${ECHO_T}yes" >&6
27320
27321 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
27322echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
27323
27324ac_find_libraries=
27325for ac_dir in $SEARCH_LIB /usr/lib;
27326 do
27327 for ac_extension in a so sl dylib; do
27328 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
27329 ac_find_libraries=$ac_dir
27330 break 2
27331 fi
27332 done
27333 done
27334
27335 if test "$ac_find_libraries" != "" ; then
27336 echo "$as_me:$LINENO: result: yes" >&5
27337echo "${ECHO_T}yes" >&6
27338
27339for ac_header in X11/extensions/xf86vmode.h
27340do
27341as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27342echo "$as_me:$LINENO: checking for $ac_header" >&5
27343echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27344if eval "test \"\${$as_ac_Header+set}\" = set"; then
27345 echo $ECHO_N "(cached) $ECHO_C" >&6
27346else
27347 cat >conftest.$ac_ext <<_ACEOF
27348/* confdefs.h. */
27349_ACEOF
27350cat confdefs.h >>conftest.$ac_ext
27351cat >>conftest.$ac_ext <<_ACEOF
27352/* end confdefs.h. */
27353
27354 #if HAVE_X11_XLIB_H
27355 #include <X11/Xlib.h>
27356 #endif
27357
27358
27359#include <$ac_header>
27360_ACEOF
27361rm -f conftest.$ac_objext
27362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27363 (eval $ac_compile) 2>conftest.er1
a848cd7e 27364 ac_status=$?
ac1cb8d3
VS
27365 grep -v '^ *+' conftest.er1 >conftest.err
27366 rm -f conftest.er1
27367 cat conftest.err >&5
a848cd7e
SC
27368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27369 (exit $ac_status); } &&
da4486fb 27370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27372 (eval $ac_try) 2>&5
27373 ac_status=$?
27374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27375 (exit $ac_status); }; } &&
27376 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27378 (eval $ac_try) 2>&5
27379 ac_status=$?
27380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27381 (exit $ac_status); }; }; then
27382 eval "$as_ac_Header=yes"
27383else
27384 echo "$as_me: failed program was:" >&5
27385sed 's/^/| /' conftest.$ac_ext >&5
27386
27387eval "$as_ac_Header=no"
27388fi
ac1cb8d3 27389rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27390fi
27391echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27392echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27393if test `eval echo '${'$as_ac_Header'}'` = yes; then
27394 cat >>confdefs.h <<_ACEOF
27395#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27396_ACEOF
27397
27398 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
27399
27400fi
27401
27402done
27403
27404 else
27405 echo "$as_me:$LINENO: result: no" >&5
27406echo "${ECHO_T}no" >&6
27407 fi
27408
27409 else
27410 echo "$as_me:$LINENO: result: no" >&5
27411echo "${ECHO_T}no" >&6
dcc1b6ad
VS
27412 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
27413echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
27414 wxUSE_DISPLAY="no"
27415 fi
01cb68df
RG
27416 elif test "$wxUSE_MSW" = 1; then
27417
27418
27419for ac_header in multimon.h ddraw.h
27420do
27421as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 27422echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
27423echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27424if eval "test \"\${$as_ac_Header+set}\" = set"; then
27425 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 27426else
5294a27e 27427 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
27428/* confdefs.h. */
27429_ACEOF
27430cat confdefs.h >>conftest.$ac_ext
27431cat >>conftest.$ac_ext <<_ACEOF
27432/* end confdefs.h. */
5294a27e
VZ
27433#include <windows.h>
27434
01cb68df
RG
27435#include <$ac_header>
27436_ACEOF
27437rm -f conftest.$ac_objext
27438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27439 (eval $ac_compile) 2>conftest.er1
01cb68df 27440 ac_status=$?
ac1cb8d3
VS
27441 grep -v '^ *+' conftest.er1 >conftest.err
27442 rm -f conftest.er1
27443 cat conftest.err >&5
01cb68df
RG
27444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27445 (exit $ac_status); } &&
da4486fb 27446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27448 (eval $ac_try) 2>&5
27449 ac_status=$?
27450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27451 (exit $ac_status); }; } &&
27452 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
27453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27454 (eval $ac_try) 2>&5
27455 ac_status=$?
27456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27457 (exit $ac_status); }; }; then
5294a27e 27458 eval "$as_ac_Header=yes"
01cb68df
RG
27459else
27460 echo "$as_me: failed program was:" >&5
27461sed 's/^/| /' conftest.$ac_ext >&5
27462
5294a27e 27463eval "$as_ac_Header=no"
01cb68df 27464fi
ac1cb8d3 27465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
27466fi
27467echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27468echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
27469if test `eval echo '${'$as_ac_Header'}'` = yes; then
27470 cat >>confdefs.h <<_ACEOF
27471#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27472_ACEOF
27473
27474else
27475
5294a27e
VZ
27476 wxUSE_DISPLAY="no"
27477 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
dcc1b6ad 27478echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
27479
27480fi
27481
27482done
27483
a848cd7e
SC
27484 fi
27485fi
27486
27487
3b57de8b
RL
27488if test "$wxUSE_MEDIACTRL" = "yes"; then
27489 if test "$wxUSE_MSW" = 1; then
27490 wxUSE_DIRECTSHOW="yes"
27491
27492for ac_header in dshow.h
27493do
27494as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 27495echo "$as_me:$LINENO: checking for $ac_header" >&5
3b57de8b
RL
27496echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27497if eval "test \"\${$as_ac_Header+set}\" = set"; then
27498 echo $ECHO_N "(cached) $ECHO_C" >&6
3b57de8b 27499else
5294a27e 27500 cat >conftest.$ac_ext <<_ACEOF
3b57de8b
RL
27501/* confdefs.h. */
27502_ACEOF
27503cat confdefs.h >>conftest.$ac_ext
27504cat >>conftest.$ac_ext <<_ACEOF
27505/* end confdefs.h. */
5294a27e
VZ
27506#include <windows.h>
27507
3b57de8b
RL
27508#include <$ac_header>
27509_ACEOF
27510rm -f conftest.$ac_objext
27511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27512 (eval $ac_compile) 2>conftest.er1
27513 ac_status=$?
27514 grep -v '^ *+' conftest.er1 >conftest.err
27515 rm -f conftest.er1
27516 cat conftest.err >&5
27517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27518 (exit $ac_status); } &&
da4486fb 27519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3b57de8b
RL
27520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27521 (eval $ac_try) 2>&5
27522 ac_status=$?
27523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27524 (exit $ac_status); }; } &&
27525 { ac_try='test -s conftest.$ac_objext'
27526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27527 (eval $ac_try) 2>&5
27528 ac_status=$?
27529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27530 (exit $ac_status); }; }; then
5294a27e 27531 eval "$as_ac_Header=yes"
3b57de8b
RL
27532else
27533 echo "$as_me: failed program was:" >&5
27534sed 's/^/| /' conftest.$ac_ext >&5
27535
5294a27e 27536eval "$as_ac_Header=no"
3b57de8b
RL
27537fi
27538rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3b57de8b
RL
27539fi
27540echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27541echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3b57de8b
RL
27542if test `eval echo '${'$as_ac_Header'}'` = yes; then
27543 cat >>confdefs.h <<_ACEOF
27544#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27545_ACEOF
27546
27547else
27548
5294a27e
VZ
27549 wxUSE_DIRECTSHOW="no"
27550 { echo "$as_me:$LINENO: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&5
3b57de8b
RL
27551echo "$as_me: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&2;}
27552
27553fi
27554
27555done
27556
27557
27558 if test "$wxUSE_DIRECTSHOW" = "yes"; then
5294a27e 27559 cat >>confdefs.h <<\_ACEOF
3b57de8b
RL
27560#define wxUSE_DIRECTSHOW 1
27561_ACEOF
27562
5294a27e 27563 LIBS="$LIBS -lstrmiids"
a98bf0c0 27564 fi
3b57de8b 27565 fi
7e4a1c28 27566
fa9ad408 27567 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
7e4a1c28
RN
27568 cat >>confdefs.h <<\_ACEOF
27569#define wxUSE_MEDIACTRL 1
27570_ACEOF
27571
3b57de8b
RL
27572fi
27573
27574
a848cd7e
SC
27575USE_OPENGL=0
27576if test "$wxUSE_OPENGL" = "yes"; then
27577 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27578 OPENGL_LIBS="-framework OpenGL -framework AGL"
27579 elif test "$wxUSE_MSW" = 1; then
27580 OPENGL_LIBS="-lopengl32 -lglu32"
27581 else
27582
27583
27584ac_find_includes=
27585for ac_dir in $SEARCH_INCLUDE /usr/include;
27586 do
27587 if test -f "$ac_dir/GL/gl.h"; then
27588 ac_find_includes=$ac_dir
27589 break
27590 fi
27591 done
27592
27593 if test "$ac_find_includes" != "" ; then
27594 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
27595echo "${ECHO_T}found in $ac_find_includes" >&6
27596
27597 if test "x$ac_find_includes" = "x/usr/include"; then
27598 ac_path_to_include=""
27599 else
27600 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
27601 result=$?
27602 if test $result = 0; then
27603 ac_path_to_include=""
27604 else
27605 ac_path_to_include=" -I$ac_find_includes"
27606 fi
27607 fi
27608
27609 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
27610 fi
27611
27612 if test "${ac_cv_header_GL_gl_h+set}" = set; then
27613 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27614echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27615if test "${ac_cv_header_GL_gl_h+set}" = set; then
27616 echo $ECHO_N "(cached) $ECHO_C" >&6
27617fi
27618echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27619echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27620else
27621 # Is the header compilable?
27622echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
27623echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
27624cat >conftest.$ac_ext <<_ACEOF
27625/* confdefs.h. */
27626_ACEOF
27627cat confdefs.h >>conftest.$ac_ext
27628cat >>conftest.$ac_ext <<_ACEOF
27629/* end confdefs.h. */
27630$ac_includes_default
27631#include <GL/gl.h>
27632_ACEOF
27633rm -f conftest.$ac_objext
27634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27635 (eval $ac_compile) 2>conftest.er1
a848cd7e 27636 ac_status=$?
ac1cb8d3
VS
27637 grep -v '^ *+' conftest.er1 >conftest.err
27638 rm -f conftest.er1
27639 cat conftest.err >&5
a848cd7e
SC
27640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27641 (exit $ac_status); } &&
da4486fb 27642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27644 (eval $ac_try) 2>&5
27645 ac_status=$?
27646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27647 (exit $ac_status); }; } &&
27648 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27650 (eval $ac_try) 2>&5
27651 ac_status=$?
27652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27653 (exit $ac_status); }; }; then
27654 ac_header_compiler=yes
27655else
27656 echo "$as_me: failed program was:" >&5
27657sed 's/^/| /' conftest.$ac_ext >&5
27658
27659ac_header_compiler=no
27660fi
ac1cb8d3 27661rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27662echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27663echo "${ECHO_T}$ac_header_compiler" >&6
27664
27665# Is the header present?
27666echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
27667echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
27668cat >conftest.$ac_ext <<_ACEOF
27669/* confdefs.h. */
27670_ACEOF
27671cat confdefs.h >>conftest.$ac_ext
27672cat >>conftest.$ac_ext <<_ACEOF
27673/* end confdefs.h. */
27674#include <GL/gl.h>
27675_ACEOF
27676if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27677 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27678 ac_status=$?
27679 grep -v '^ *+' conftest.er1 >conftest.err
27680 rm -f conftest.er1
27681 cat conftest.err >&5
27682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27683 (exit $ac_status); } >/dev/null; then
27684 if test -s conftest.err; then
27685 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27686 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
27687 else
27688 ac_cpp_err=
27689 fi
27690else
27691 ac_cpp_err=yes
27692fi
27693if test -z "$ac_cpp_err"; then
27694 ac_header_preproc=yes
27695else
27696 echo "$as_me: failed program was:" >&5
27697sed 's/^/| /' conftest.$ac_ext >&5
27698
27699 ac_header_preproc=no
27700fi
27701rm -f conftest.err conftest.$ac_ext
27702echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27703echo "${ECHO_T}$ac_header_preproc" >&6
27704
27705# So? What about this header?
ac1cb8d3
VS
27706case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27707 yes:no: )
a848cd7e
SC
27708 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27709echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27710 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
27711echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
27712 ac_header_preproc=yes
a848cd7e 27713 ;;
ac1cb8d3 27714 no:yes:* )
a848cd7e
SC
27715 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
27716echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27717 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
27718echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
27719 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
27720echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
27721 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
27722echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27723 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
27724echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27725 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
27726echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27727 (
27728 cat <<\_ASBOX
ac1cb8d3
VS
27729## ----------------------------------------- ##
27730## Report this to wx-dev@lists.wxwidgets.org ##
27731## ----------------------------------------- ##
a848cd7e
SC
27732_ASBOX
27733 ) |
27734 sed "s/^/$as_me: WARNING: /" >&2
27735 ;;
27736esac
27737echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27738echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27739if test "${ac_cv_header_GL_gl_h+set}" = set; then
27740 echo $ECHO_N "(cached) $ECHO_C" >&6
27741else
27742 ac_cv_header_GL_gl_h=$ac_header_preproc
27743fi
27744echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27745echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27746
27747fi
27748if test $ac_cv_header_GL_gl_h = yes; then
27749
27750 found_gl=0
27751
27752 echo "$as_me:$LINENO: checking for -lGL" >&5
27753echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
27754
27755ac_find_libraries=
27756for ac_dir in $SEARCH_LIB /usr/lib;
27757 do
27758 for ac_extension in a so sl dylib; do
27759 if test -f "$ac_dir/libGL.$ac_extension"; then
27760 ac_find_libraries=$ac_dir
27761 break 2
27762 fi
27763 done
27764 done
27765
27766 if test "$ac_find_libraries" != "" ; then
27767
27768 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27769 result=$?
27770 if test $result = 0; then
27771 ac_path_to_link=""
27772 else
27773 ac_path_to_link=" -L$ac_find_libraries"
27774 fi
27775
27776 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27777 LDFLAGS_GL="$ac_path_to_link"
27778 fi
27779
27780
27781ac_find_libraries=
27782for ac_dir in $SEARCH_LIB /usr/lib;
27783 do
27784 for ac_extension in a so sl dylib; do
27785 if test -f "$ac_dir/libGLU.$ac_extension"; then
27786 ac_find_libraries=$ac_dir
27787 break 2
27788 fi
27789 done
27790 done
27791
27792 if test "$ac_find_libraries" != "" ; then
27793
27794 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27795 result=$?
27796 if test $result = 0; then
27797 ac_path_to_link=""
27798 else
27799 ac_path_to_link=" -L$ac_find_libraries"
27800 fi
27801
27802 if test "$ac_path_to_link" != " -L/usr/lib" -a \
27803 "$ac_path_to_link" != "$LDFLAGS_GL"; then
27804 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
27805 fi
27806
27807 found_gl=1
27808 OPENGL_LIBS="-lGL -lGLU"
27809 echo "$as_me:$LINENO: result: yes" >&5
27810echo "${ECHO_T}yes" >&6
27811 fi
27812 fi
27813
27814 if test "$found_gl" != 1; then
27815 echo "$as_me:$LINENO: result: no" >&5
27816echo "${ECHO_T}no" >&6
27817 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
27818echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
27819
27820ac_find_libraries=
27821for ac_dir in $SEARCH_LIB /usr/lib;
27822 do
27823 for ac_extension in a so sl dylib; do
27824 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
27825 ac_find_libraries=$ac_dir
27826 break 2
27827 fi
27828 done
27829 done
27830
27831 if test "$ac_find_libraries" != "" ; then
27832
27833 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27834 result=$?
27835 if test $result = 0; then
27836 ac_path_to_link=""
27837 else
27838 ac_path_to_link=" -L$ac_find_libraries"
27839 fi
27840
27841 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
27842 OPENGL_LIBS="-lMesaGL -lMesaGLU"
27843 echo "$as_me:$LINENO: result: yes" >&5
27844echo "${ECHO_T}yes" >&6
27845 else
27846 echo "$as_me:$LINENO: result: no" >&5
27847echo "${ECHO_T}no" >&6
27848 fi
27849 fi
27850
27851fi
27852
27853
27854
27855 if test "x$OPENGL_LIBS" = "x"; then
27856 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
27857echo "$as_me: error: OpenGL libraries not available" >&2;}
27858 { (exit 1); exit 1; }; }
27859 fi
27860 fi
27861
27862 if test "$wxUSE_OPENGL" = "yes"; then
27863 USE_OPENGL=1
27864 cat >>confdefs.h <<\_ACEOF
27865#define wxUSE_OPENGL 1
27866_ACEOF
27867
27868 cat >>confdefs.h <<\_ACEOF
27869#define wxUSE_GLCANVAS 1
27870_ACEOF
27871
27872 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
27873 fi
27874fi
27875
a848cd7e
SC
27876
27877if test -n "$TOOLKIT" ; then
27878 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
27879fi
27880
a848cd7e
SC
27881
27882
27883if test "$wxUSE_SHARED" = "yes"; then
27884 case "${host}" in
27885 *-pc-msdosdjgpp )
27886 wxUSE_SHARED=no
27887 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
27888echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
27889 ;;
27890 esac
27891fi
27892
a848cd7e 27893if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
27894
27895
27896 found_versioning=no
27897
27898
27899 if test $found_versioning = no ; then
27900 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
27901echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
27902if test "${wx_cv_version_script+set}" = set; then
27903 echo $ECHO_N "(cached) $ECHO_C" >&6
27904else
27905
27906 echo "VER_1 { *; };" >conftest.sym
27907 echo "int main() { return 0; }" >conftest.cpp
27908
27909 if { ac_try='
27910 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
27911 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
27912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27913 (eval $ac_try) 2>&5
27914 ac_status=$?
27915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27916 (exit $ac_status); }; } ; then
27917 if test -s conftest.stderr ; then
27918 wx_cv_version_script=no
27919 else
27920 wx_cv_version_script=yes
27921 fi
27922 else
27923 wx_cv_version_script=no
27924 fi
27925 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
27926
27927fi
27928echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
27929echo "${ECHO_T}$wx_cv_version_script" >&6
27930 if test $wx_cv_version_script = yes ; then
27931 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
27932 fi
27933 fi
27934
27935
27936 case "${host}" in
27937 *-*-linux* | *-*-gnu* )
27938 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 27939 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
27940 ;;
27941
27942 *-*-solaris2* )
27943 if test "$GCC" = yes ; then
27944 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
27945
27946 saveLdflags="$LDFLAGS"
27947 LDFLAGS="$saveLdflags -Wl,-rpath,/"
27948 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
27949echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
27950 cat >conftest.$ac_ext <<_ACEOF
27951/* confdefs.h. */
27952_ACEOF
27953cat confdefs.h >>conftest.$ac_ext
27954cat >>conftest.$ac_ext <<_ACEOF
27955/* end confdefs.h. */
27956
27957int
27958main ()
27959{
27960
27961 ;
27962 return 0;
27963}
27964_ACEOF
27965rm -f conftest.$ac_objext conftest$ac_exeext
27966if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27967 (eval $ac_link) 2>conftest.er1
a848cd7e 27968 ac_status=$?
ac1cb8d3
VS
27969 grep -v '^ *+' conftest.er1 >conftest.err
27970 rm -f conftest.er1
27971 cat conftest.err >&5
a848cd7e
SC
27972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27973 (exit $ac_status); } &&
da4486fb 27974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27976 (eval $ac_try) 2>&5
27977 ac_status=$?
27978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27979 (exit $ac_status); }; } &&
27980 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27982 (eval $ac_try) 2>&5
27983 ac_status=$?
27984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27985 (exit $ac_status); }; }; then
27986
27987 echo "$as_me:$LINENO: result: yes" >&5
27988echo "${ECHO_T}yes" >&6
27989 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 27990 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
27991
27992else
27993 echo "$as_me: failed program was:" >&5
27994sed 's/^/| /' conftest.$ac_ext >&5
27995
27996
27997 echo "$as_me:$LINENO: result: no" >&5
27998echo "${ECHO_T}no" >&6
27999 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
28000echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
28001 LDFLAGS="$saveLdflags -Wl,-R,/"
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); } &&
da4486fb 28026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28028 (eval $ac_try) 2>&5
28029 ac_status=$?
28030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28031 (exit $ac_status); }; } &&
28032 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28034 (eval $ac_try) 2>&5
28035 ac_status=$?
28036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28037 (exit $ac_status); }; }; then
28038
ffa0583f 28039 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 28040echo "${ECHO_T}yes" >&6
ffa0583f
RL
28041 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
28042 WXCONFIG_RPATH="-Wl,-R,\$libdir"
28043
a848cd7e
SC
28044else
28045 echo "$as_me: failed program was:" >&5
28046sed 's/^/| /' conftest.$ac_ext >&5
28047
28048
28049 echo "$as_me:$LINENO: result: no" >&5
28050echo "${ECHO_T}no" >&6
28051
28052fi
ac1cb8d3
VS
28053rm -f conftest.err conftest.$ac_objext \
28054 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28055
28056fi
ac1cb8d3
VS
28057rm -f conftest.err conftest.$ac_objext \
28058 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28059 LDFLAGS="$saveLdflags"
28060 else
a848cd7e 28061 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 28062 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
28063 fi
28064 ;;
28065
28066 powerpc-*-darwin* )
28067 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
28068 cat <<EOF >change-install-names
28069#!/bin/sh
28070libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
28071inst_cmd="install_name_tool "
28072for i in \${libnames} ; do
28073 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
28074done
28075\${inst_cmd} \${3}
28076EOF
28077 chmod +x change-install-names
28078 ;;
28079
28080 *-*-cygwin* | *-*-mingw32* )
28081 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
28082 ;;
28083
28084 esac
ceec2216 28085
ffa0583f
RL
28086 if test $wxUSE_RPATH = "no"; then
28087 SAMPLES_RPATH_FLAG=''
28088 SAMPLES_RPATH_POSTLINK=''
28089 WXCONFIG_RPATH=''
28090 fi
28091
28092 SHARED=1
28093
28094else
28095
ceec2216
RL
28096 config_linkage_component="-static"
28097 SHARED=0
ffa0583f 28098
ceec2216 28099fi
a848cd7e 28100
a848cd7e 28101
ceec2216
RL
28102UNICODE=0
28103lib_unicode_suffix=
28104WX_CHARTYPE="ansi"
28105if test "$wxUSE_UNICODE" = "yes"; then
28106 lib_unicode_suffix=u
28107 WX_CHARTYPE="unicode"
28108 UNICODE=1
a848cd7e
SC
28109fi
28110
ceec2216
RL
28111lib_debug_suffix=
28112WX_DEBUGTYPE="release"
28113DEBUG_FLAG=0
28114if test "$wxUSE_DEBUG_FLAG" = "yes"; then
28115 lib_debug_suffix=d
28116 WX_DEBUGTYPE="debug"
28117 DEBUG_FLAG=1
28118fi
a848cd7e 28119
ceec2216
RL
28120WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
28121WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 28122
ceec2216
RL
28123DEBUG_INFO=0
28124if test "$wxUSE_DEBUG_INFO" = "yes"; then
28125 DEBUG_INFO=1
28126fi
a848cd7e 28127
ceec2216 28128WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 28129
ceec2216 28130TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 28131
ceec2216 28132TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 28133
ceec2216
RL
28134if test "$cross_compiling" = "yes"; then
28135 HOST_SUFFIX="-$host_alias"
28136 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
28137 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
28138fi
28139
dd21ced8 28140WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
ceec2216
RL
28141WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
28142
28143
28144
a848cd7e 28145if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
28146 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
28147 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 28148
a848cd7e 28149 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
28150
28151 # Extract the first word of "Rez", so it can be a program name with args.
28152set dummy Rez; ac_word=$2
28153echo "$as_me:$LINENO: checking for $ac_word" >&5
28154echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28155if test "${ac_cv_prog_RESCOMP+set}" = set; then
28156 echo $ECHO_N "(cached) $ECHO_C" >&6
28157else
28158 if test -n "$RESCOMP"; then
28159 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
28160else
28161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28162for as_dir in $PATH
28163do
28164 IFS=$as_save_IFS
28165 test -z "$as_dir" && as_dir=.
28166 for ac_exec_ext in '' $ac_executable_extensions; do
28167 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28168 ac_cv_prog_RESCOMP="Rez"
28169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28170 break 2
28171 fi
28172done
28173done
28174
28175 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
28176fi
28177fi
28178RESCOMP=$ac_cv_prog_RESCOMP
28179if test -n "$RESCOMP"; then
28180 echo "$as_me:$LINENO: result: $RESCOMP" >&5
28181echo "${ECHO_T}$RESCOMP" >&6
28182else
28183 echo "$as_me:$LINENO: result: no" >&5
28184echo "${ECHO_T}no" >&6
28185fi
28186
28187 # Extract the first word of "DeRez", so it can be a program name with args.
28188set dummy DeRez; ac_word=$2
28189echo "$as_me:$LINENO: checking for $ac_word" >&5
28190echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28191if test "${ac_cv_prog_DEREZ+set}" = set; then
28192 echo $ECHO_N "(cached) $ECHO_C" >&6
28193else
28194 if test -n "$DEREZ"; then
28195 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
28196else
28197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28198for as_dir in $PATH
28199do
28200 IFS=$as_save_IFS
28201 test -z "$as_dir" && as_dir=.
28202 for ac_exec_ext in '' $ac_executable_extensions; do
28203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28204 ac_cv_prog_DEREZ="DeRez"
28205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28206 break 2
28207 fi
28208done
28209done
28210
28211 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
28212fi
28213fi
28214DEREZ=$ac_cv_prog_DEREZ
28215if test -n "$DEREZ"; then
28216 echo "$as_me:$LINENO: result: $DEREZ" >&5
28217echo "${ECHO_T}$DEREZ" >&6
28218else
28219 echo "$as_me:$LINENO: result: no" >&5
28220echo "${ECHO_T}no" >&6
28221fi
28222
28223 # Extract the first word of "SetFile", so it can be a program name with args.
28224set dummy SetFile; ac_word=$2
28225echo "$as_me:$LINENO: checking for $ac_word" >&5
28226echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28227if test "${ac_cv_prog_SETFILE+set}" = set; then
28228 echo $ECHO_N "(cached) $ECHO_C" >&6
28229else
28230 if test -n "$SETFILE"; then
28231 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
28232else
28233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28234for as_dir in $PATH
28235do
28236 IFS=$as_save_IFS
28237 test -z "$as_dir" && as_dir=.
28238 for ac_exec_ext in '' $ac_executable_extensions; do
28239 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28240 ac_cv_prog_SETFILE="SetFile"
28241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28242 break 2
28243 fi
28244done
28245done
28246
28247 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
28248fi
28249fi
28250SETFILE=$ac_cv_prog_SETFILE
28251if test -n "$SETFILE"; then
28252 echo "$as_me:$LINENO: result: $SETFILE" >&5
28253echo "${ECHO_T}$SETFILE" >&6
28254else
28255 echo "$as_me:$LINENO: result: no" >&5
28256echo "${ECHO_T}no" >&6
28257fi
28258
28259
28260 MACSETFILE="\$(SETFILE)"
28261
28262 if test "$wxUSE_MAC" = 1; then
28263 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
28264
28265 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
28266 else
28267 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
28268 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
28269 fi
28270else
ffa0583f
RL
28271 MACSETFILE="@true"
28272 MACRESWXCONFIG="@true"
a848cd7e
SC
28273
28274 if test "$wxUSE_PM" = 1; then
28275 MACRESCOMP="emxbind -ep"
28276 else
ffa0583f 28277 MACRESCOMP="@true"
a848cd7e
SC
28278 fi
28279fi
28280
28281
28282
28283echo "$as_me:$LINENO: checking for mode_t" >&5
28284echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
28285if test "${ac_cv_type_mode_t+set}" = set; then
28286 echo $ECHO_N "(cached) $ECHO_C" >&6
28287else
28288 cat >conftest.$ac_ext <<_ACEOF
28289/* confdefs.h. */
28290_ACEOF
28291cat confdefs.h >>conftest.$ac_ext
28292cat >>conftest.$ac_ext <<_ACEOF
28293/* end confdefs.h. */
28294$ac_includes_default
28295int
28296main ()
28297{
28298if ((mode_t *) 0)
28299 return 0;
28300if (sizeof (mode_t))
28301 return 0;
28302 ;
28303 return 0;
28304}
28305_ACEOF
28306rm -f conftest.$ac_objext
28307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28308 (eval $ac_compile) 2>conftest.er1
a848cd7e 28309 ac_status=$?
ac1cb8d3
VS
28310 grep -v '^ *+' conftest.er1 >conftest.err
28311 rm -f conftest.er1
28312 cat conftest.err >&5
a848cd7e
SC
28313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28314 (exit $ac_status); } &&
da4486fb 28315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28317 (eval $ac_try) 2>&5
28318 ac_status=$?
28319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28320 (exit $ac_status); }; } &&
28321 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28323 (eval $ac_try) 2>&5
28324 ac_status=$?
28325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28326 (exit $ac_status); }; }; then
28327 ac_cv_type_mode_t=yes
28328else
28329 echo "$as_me: failed program was:" >&5
28330sed 's/^/| /' conftest.$ac_ext >&5
28331
28332ac_cv_type_mode_t=no
28333fi
ac1cb8d3 28334rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28335fi
28336echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
28337echo "${ECHO_T}$ac_cv_type_mode_t" >&6
28338if test $ac_cv_type_mode_t = yes; then
28339 :
28340else
28341
28342cat >>confdefs.h <<_ACEOF
28343#define mode_t int
28344_ACEOF
28345
28346fi
28347
28348echo "$as_me:$LINENO: checking for off_t" >&5
28349echo $ECHO_N "checking for off_t... $ECHO_C" >&6
28350if test "${ac_cv_type_off_t+set}" = set; then
28351 echo $ECHO_N "(cached) $ECHO_C" >&6
28352else
28353 cat >conftest.$ac_ext <<_ACEOF
28354/* confdefs.h. */
28355_ACEOF
28356cat confdefs.h >>conftest.$ac_ext
28357cat >>conftest.$ac_ext <<_ACEOF
28358/* end confdefs.h. */
28359$ac_includes_default
28360int
28361main ()
28362{
28363if ((off_t *) 0)
28364 return 0;
28365if (sizeof (off_t))
28366 return 0;
28367 ;
28368 return 0;
28369}
28370_ACEOF
28371rm -f conftest.$ac_objext
28372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28373 (eval $ac_compile) 2>conftest.er1
a848cd7e 28374 ac_status=$?
ac1cb8d3
VS
28375 grep -v '^ *+' conftest.er1 >conftest.err
28376 rm -f conftest.er1
28377 cat conftest.err >&5
a848cd7e
SC
28378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28379 (exit $ac_status); } &&
da4486fb 28380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28382 (eval $ac_try) 2>&5
28383 ac_status=$?
28384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28385 (exit $ac_status); }; } &&
28386 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28388 (eval $ac_try) 2>&5
28389 ac_status=$?
28390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28391 (exit $ac_status); }; }; then
28392 ac_cv_type_off_t=yes
28393else
28394 echo "$as_me: failed program was:" >&5
28395sed 's/^/| /' conftest.$ac_ext >&5
28396
28397ac_cv_type_off_t=no
28398fi
ac1cb8d3 28399rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28400fi
28401echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
28402echo "${ECHO_T}$ac_cv_type_off_t" >&6
28403if test $ac_cv_type_off_t = yes; then
28404 :
28405else
28406
28407cat >>confdefs.h <<_ACEOF
28408#define off_t long
28409_ACEOF
28410
28411fi
28412
28413echo "$as_me:$LINENO: checking for pid_t" >&5
28414echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
28415if test "${ac_cv_type_pid_t+set}" = set; then
28416 echo $ECHO_N "(cached) $ECHO_C" >&6
28417else
28418 cat >conftest.$ac_ext <<_ACEOF
28419/* confdefs.h. */
28420_ACEOF
28421cat confdefs.h >>conftest.$ac_ext
28422cat >>conftest.$ac_ext <<_ACEOF
28423/* end confdefs.h. */
28424$ac_includes_default
28425int
28426main ()
28427{
28428if ((pid_t *) 0)
28429 return 0;
28430if (sizeof (pid_t))
28431 return 0;
28432 ;
28433 return 0;
28434}
28435_ACEOF
28436rm -f conftest.$ac_objext
28437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28438 (eval $ac_compile) 2>conftest.er1
a848cd7e 28439 ac_status=$?
ac1cb8d3
VS
28440 grep -v '^ *+' conftest.er1 >conftest.err
28441 rm -f conftest.er1
28442 cat conftest.err >&5
a848cd7e
SC
28443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28444 (exit $ac_status); } &&
da4486fb 28445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28447 (eval $ac_try) 2>&5
28448 ac_status=$?
28449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28450 (exit $ac_status); }; } &&
28451 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28453 (eval $ac_try) 2>&5
28454 ac_status=$?
28455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28456 (exit $ac_status); }; }; then
28457 ac_cv_type_pid_t=yes
28458else
28459 echo "$as_me: failed program was:" >&5
28460sed 's/^/| /' conftest.$ac_ext >&5
28461
28462ac_cv_type_pid_t=no
28463fi
ac1cb8d3 28464rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28465fi
28466echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28467echo "${ECHO_T}$ac_cv_type_pid_t" >&6
28468if test $ac_cv_type_pid_t = yes; then
28469 :
28470else
28471
28472cat >>confdefs.h <<_ACEOF
28473#define pid_t int
28474_ACEOF
28475
28476fi
28477
28478echo "$as_me:$LINENO: checking for size_t" >&5
28479echo $ECHO_N "checking for size_t... $ECHO_C" >&6
28480if test "${ac_cv_type_size_t+set}" = set; then
28481 echo $ECHO_N "(cached) $ECHO_C" >&6
28482else
28483 cat >conftest.$ac_ext <<_ACEOF
28484/* confdefs.h. */
28485_ACEOF
28486cat confdefs.h >>conftest.$ac_ext
28487cat >>conftest.$ac_ext <<_ACEOF
28488/* end confdefs.h. */
28489$ac_includes_default
28490int
28491main ()
28492{
28493if ((size_t *) 0)
28494 return 0;
28495if (sizeof (size_t))
28496 return 0;
28497 ;
28498 return 0;
28499}
28500_ACEOF
28501rm -f conftest.$ac_objext
28502if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28503 (eval $ac_compile) 2>conftest.er1
a848cd7e 28504 ac_status=$?
ac1cb8d3
VS
28505 grep -v '^ *+' conftest.er1 >conftest.err
28506 rm -f conftest.er1
28507 cat conftest.err >&5
a848cd7e
SC
28508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28509 (exit $ac_status); } &&
da4486fb 28510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28512 (eval $ac_try) 2>&5
28513 ac_status=$?
28514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28515 (exit $ac_status); }; } &&
28516 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28518 (eval $ac_try) 2>&5
28519 ac_status=$?
28520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28521 (exit $ac_status); }; }; then
28522 ac_cv_type_size_t=yes
28523else
28524 echo "$as_me: failed program was:" >&5
28525sed 's/^/| /' conftest.$ac_ext >&5
28526
28527ac_cv_type_size_t=no
28528fi
ac1cb8d3 28529rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28530fi
28531echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28532echo "${ECHO_T}$ac_cv_type_size_t" >&6
28533if test $ac_cv_type_size_t = yes; then
28534 :
28535else
28536
28537cat >>confdefs.h <<_ACEOF
28538#define size_t unsigned
28539_ACEOF
28540
28541fi
28542
28543echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
28544echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
28545if test "${ac_cv_type_uid_t+set}" = set; then
28546 echo $ECHO_N "(cached) $ECHO_C" >&6
28547else
28548 cat >conftest.$ac_ext <<_ACEOF
28549/* confdefs.h. */
28550_ACEOF
28551cat confdefs.h >>conftest.$ac_ext
28552cat >>conftest.$ac_ext <<_ACEOF
28553/* end confdefs.h. */
28554#include <sys/types.h>
28555
28556_ACEOF
28557if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28558 $EGREP "uid_t" >/dev/null 2>&1; then
28559 ac_cv_type_uid_t=yes
28560else
28561 ac_cv_type_uid_t=no
28562fi
28563rm -f conftest*
28564
28565fi
28566echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
28567echo "${ECHO_T}$ac_cv_type_uid_t" >&6
28568if test $ac_cv_type_uid_t = no; then
28569
28570cat >>confdefs.h <<\_ACEOF
28571#define uid_t int
28572_ACEOF
28573
28574
28575cat >>confdefs.h <<\_ACEOF
28576#define gid_t int
28577_ACEOF
28578
28579fi
28580
28581
d51253e8
RL
28582echo "$as_me:$LINENO: checking for ssize_t" >&5
28583echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
28584if test "${ac_cv_type_ssize_t+set}" = set; then
28585 echo $ECHO_N "(cached) $ECHO_C" >&6
28586else
28587 cat >conftest.$ac_ext <<_ACEOF
28588/* confdefs.h. */
28589_ACEOF
28590cat confdefs.h >>conftest.$ac_ext
28591cat >>conftest.$ac_ext <<_ACEOF
28592/* end confdefs.h. */
28593$ac_includes_default
28594int
28595main ()
28596{
28597if ((ssize_t *) 0)
28598 return 0;
28599if (sizeof (ssize_t))
28600 return 0;
28601 ;
28602 return 0;
28603}
28604_ACEOF
28605rm -f conftest.$ac_objext
28606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28607 (eval $ac_compile) 2>conftest.er1
28608 ac_status=$?
28609 grep -v '^ *+' conftest.er1 >conftest.err
28610 rm -f conftest.er1
28611 cat conftest.err >&5
28612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28613 (exit $ac_status); } &&
da4486fb 28614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d51253e8
RL
28615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28616 (eval $ac_try) 2>&5
28617 ac_status=$?
28618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28619 (exit $ac_status); }; } &&
28620 { ac_try='test -s conftest.$ac_objext'
28621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28622 (eval $ac_try) 2>&5
28623 ac_status=$?
28624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28625 (exit $ac_status); }; }; then
28626 ac_cv_type_ssize_t=yes
28627else
28628 echo "$as_me: failed program was:" >&5
28629sed 's/^/| /' conftest.$ac_ext >&5
28630
28631ac_cv_type_ssize_t=no
28632fi
28633rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28634fi
28635echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
28636echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
28637if test $ac_cv_type_ssize_t = yes; then
28638
28639cat >>confdefs.h <<_ACEOF
28640#define HAVE_SSIZE_T 1
28641_ACEOF
28642
28643
28644fi
28645
28646
a848cd7e
SC
28647
28648
28649ac_ext=cc
28650ac_cpp='$CXXCPP $CPPFLAGS'
28651ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28652ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28653ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28654
28655echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
28656echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
28657if test "${wx_cv_size_t_is_uint+set}" = set; then
28658 echo $ECHO_N "(cached) $ECHO_C" >&6
28659else
28660
28661 cat >conftest.$ac_ext <<_ACEOF
28662/* confdefs.h. */
28663_ACEOF
28664cat confdefs.h >>conftest.$ac_ext
28665cat >>conftest.$ac_ext <<_ACEOF
28666/* end confdefs.h. */
28667#include <stddef.h>
28668int
28669main ()
28670{
28671
28672 return 0; }
28673
28674 struct Foo { void foo(size_t); void foo(unsigned int); };
28675
28676 int bar() {
28677
28678 ;
28679 return 0;
28680}
28681_ACEOF
28682rm -f conftest.$ac_objext
28683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28684 (eval $ac_compile) 2>conftest.er1
a848cd7e 28685 ac_status=$?
ac1cb8d3
VS
28686 grep -v '^ *+' conftest.er1 >conftest.err
28687 rm -f conftest.er1
28688 cat conftest.err >&5
a848cd7e
SC
28689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28690 (exit $ac_status); } &&
da4486fb 28691 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28693 (eval $ac_try) 2>&5
28694 ac_status=$?
28695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28696 (exit $ac_status); }; } &&
28697 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28699 (eval $ac_try) 2>&5
28700 ac_status=$?
28701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28702 (exit $ac_status); }; }; then
28703 wx_cv_size_t_is_uint=no
28704else
28705 echo "$as_me: failed program was:" >&5
28706sed 's/^/| /' conftest.$ac_ext >&5
28707
28708wx_cv_size_t_is_uint=yes
28709
28710fi
ac1cb8d3 28711rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28712
28713
28714fi
28715echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
28716echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
28717
28718if test "$wx_cv_size_t_is_uint" = "yes"; then
28719 cat >>confdefs.h <<\_ACEOF
28720#define wxSIZE_T_IS_UINT 1
28721_ACEOF
28722
28723else
28724 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
28725echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
28726if test "${wx_cv_size_t_is_ulong+set}" = set; then
28727 echo $ECHO_N "(cached) $ECHO_C" >&6
28728else
28729 cat >conftest.$ac_ext <<_ACEOF
28730/* confdefs.h. */
28731_ACEOF
28732cat confdefs.h >>conftest.$ac_ext
28733cat >>conftest.$ac_ext <<_ACEOF
28734/* end confdefs.h. */
28735#include <stddef.h>
28736int
28737main ()
28738{
28739
28740 return 0; }
28741
28742 struct Foo { void foo(size_t); void foo(unsigned long); };
28743
28744 int bar() {
28745
28746 ;
28747 return 0;
28748}
28749_ACEOF
28750rm -f conftest.$ac_objext
28751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28752 (eval $ac_compile) 2>conftest.er1
a848cd7e 28753 ac_status=$?
ac1cb8d3
VS
28754 grep -v '^ *+' conftest.er1 >conftest.err
28755 rm -f conftest.er1
28756 cat conftest.err >&5
a848cd7e
SC
28757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28758 (exit $ac_status); } &&
da4486fb 28759 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28761 (eval $ac_try) 2>&5
28762 ac_status=$?
28763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28764 (exit $ac_status); }; } &&
28765 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28767 (eval $ac_try) 2>&5
28768 ac_status=$?
28769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28770 (exit $ac_status); }; }; then
28771 wx_cv_size_t_is_ulong=no
28772else
28773 echo "$as_me: failed program was:" >&5
28774sed 's/^/| /' conftest.$ac_ext >&5
28775
28776wx_cv_size_t_is_ulong=yes
28777
28778fi
ac1cb8d3 28779rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28780
28781fi
28782echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
28783echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
28784
28785 if test "$wx_cv_size_t_is_ulong" = "yes"; then
28786 cat >>confdefs.h <<\_ACEOF
28787#define wxSIZE_T_IS_ULONG 1
28788_ACEOF
28789
28790 fi
28791fi
28792
28793ac_ext=c
28794ac_cpp='$CPP $CPPFLAGS'
28795ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28796ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28797ac_compiler_gnu=$ac_cv_c_compiler_gnu
28798
28799
28800
28801echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
28802echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
28803if test "${wx_cv_struct_pw_gecos+set}" = set; then
28804 echo $ECHO_N "(cached) $ECHO_C" >&6
28805else
28806
28807 cat >conftest.$ac_ext <<_ACEOF
28808/* confdefs.h. */
28809_ACEOF
28810cat confdefs.h >>conftest.$ac_ext
28811cat >>conftest.$ac_ext <<_ACEOF
28812/* end confdefs.h. */
28813#include <pwd.h>
28814int
28815main ()
28816{
28817
28818 char *p;
28819 struct passwd *pw;
28820 p = pw->pw_gecos;
28821
28822 ;
28823 return 0;
28824}
28825_ACEOF
28826rm -f conftest.$ac_objext
28827if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28828 (eval $ac_compile) 2>conftest.er1
a848cd7e 28829 ac_status=$?
ac1cb8d3
VS
28830 grep -v '^ *+' conftest.er1 >conftest.err
28831 rm -f conftest.er1
28832 cat conftest.err >&5
a848cd7e
SC
28833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28834 (exit $ac_status); } &&
da4486fb 28835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28837 (eval $ac_try) 2>&5
28838 ac_status=$?
28839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28840 (exit $ac_status); }; } &&
28841 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28843 (eval $ac_try) 2>&5
28844 ac_status=$?
28845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28846 (exit $ac_status); }; }; then
28847
28848 wx_cv_struct_pw_gecos=yes
28849
28850else
28851 echo "$as_me: failed program was:" >&5
28852sed 's/^/| /' conftest.$ac_ext >&5
28853
28854
28855 wx_cv_struct_pw_gecos=no
28856
28857
28858fi
ac1cb8d3 28859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28860
28861
28862fi
28863echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
28864echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
28865
28866if test "$wx_cv_struct_pw_gecos" = "yes"; then
28867 cat >>confdefs.h <<\_ACEOF
28868#define HAVE_PW_GECOS 1
28869_ACEOF
28870
28871fi
28872
28873
28874if test "$wx_cv_sizeof_wchar_t" != "0"; then
28875 cat >>confdefs.h <<\_ACEOF
28876#define wxUSE_WCHAR_T 1
28877_ACEOF
28878
28879
28880 WCSLEN_FOUND=0
28881 WCHAR_LINK=
28882
28883for ac_func in wcslen
28884do
28885as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28886echo "$as_me:$LINENO: checking for $ac_func" >&5
28887echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28888if eval "test \"\${$as_ac_var+set}\" = set"; then
28889 echo $ECHO_N "(cached) $ECHO_C" >&6
28890else
28891 cat >conftest.$ac_ext <<_ACEOF
28892/* confdefs.h. */
28893_ACEOF
28894cat confdefs.h >>conftest.$ac_ext
28895cat >>conftest.$ac_ext <<_ACEOF
28896/* end confdefs.h. */
ac1cb8d3
VS
28897/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28898 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28899#define $ac_func innocuous_$ac_func
28900
a848cd7e
SC
28901/* System header to define __stub macros and hopefully few prototypes,
28902 which can conflict with char $ac_func (); below.
28903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28904 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28905
a848cd7e
SC
28906#ifdef __STDC__
28907# include <limits.h>
28908#else
28909# include <assert.h>
28910#endif
ac1cb8d3
VS
28911
28912#undef $ac_func
28913
a848cd7e
SC
28914/* Override any gcc2 internal prototype to avoid an error. */
28915#ifdef __cplusplus
28916extern "C"
28917{
28918#endif
28919/* We use char because int might match the return type of a gcc2
28920 builtin and then its argument prototype would still apply. */
28921char $ac_func ();
28922/* The GNU C library defines this for functions which it implements
28923 to always fail with ENOSYS. Some functions are actually named
28924 something starting with __ and the normal name is an alias. */
28925#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28926choke me
28927#else
28928char (*f) () = $ac_func;
28929#endif
28930#ifdef __cplusplus
28931}
28932#endif
28933
28934int
28935main ()
28936{
28937return f != $ac_func;
28938 ;
28939 return 0;
28940}
28941_ACEOF
28942rm -f conftest.$ac_objext conftest$ac_exeext
28943if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28944 (eval $ac_link) 2>conftest.er1
a848cd7e 28945 ac_status=$?
ac1cb8d3
VS
28946 grep -v '^ *+' conftest.er1 >conftest.err
28947 rm -f conftest.er1
28948 cat conftest.err >&5
a848cd7e
SC
28949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28950 (exit $ac_status); } &&
da4486fb 28951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28953 (eval $ac_try) 2>&5
28954 ac_status=$?
28955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28956 (exit $ac_status); }; } &&
28957 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28959 (eval $ac_try) 2>&5
28960 ac_status=$?
28961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28962 (exit $ac_status); }; }; then
28963 eval "$as_ac_var=yes"
28964else
28965 echo "$as_me: failed program was:" >&5
28966sed 's/^/| /' conftest.$ac_ext >&5
28967
28968eval "$as_ac_var=no"
28969fi
ac1cb8d3
VS
28970rm -f conftest.err conftest.$ac_objext \
28971 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28972fi
28973echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28974echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28975if test `eval echo '${'$as_ac_var'}'` = yes; then
28976 cat >>confdefs.h <<_ACEOF
28977#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28978_ACEOF
28979 WCSLEN_FOUND=1
28980fi
28981done
28982
28983
28984 if test "$WCSLEN_FOUND" = 0; then
28985 if test "$TOOLKIT" = "MSW"; then
28986 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
28987echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
28988if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
28989 echo $ECHO_N "(cached) $ECHO_C" >&6
28990else
28991 ac_check_lib_save_LIBS=$LIBS
28992LIBS="-lmsvcrt $LIBS"
28993cat >conftest.$ac_ext <<_ACEOF
28994/* confdefs.h. */
28995_ACEOF
28996cat confdefs.h >>conftest.$ac_ext
28997cat >>conftest.$ac_ext <<_ACEOF
28998/* end confdefs.h. */
28999
29000/* Override any gcc2 internal prototype to avoid an error. */
29001#ifdef __cplusplus
29002extern "C"
29003#endif
29004/* We use char because int might match the return type of a gcc2
29005 builtin and then its argument prototype would still apply. */
29006char wcslen ();
29007int
29008main ()
29009{
29010wcslen ();
29011 ;
29012 return 0;
29013}
29014_ACEOF
29015rm -f conftest.$ac_objext conftest$ac_exeext
29016if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29017 (eval $ac_link) 2>conftest.er1
a848cd7e 29018 ac_status=$?
ac1cb8d3
VS
29019 grep -v '^ *+' conftest.er1 >conftest.err
29020 rm -f conftest.er1
29021 cat conftest.err >&5
a848cd7e
SC
29022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29023 (exit $ac_status); } &&
da4486fb 29024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29026 (eval $ac_try) 2>&5
29027 ac_status=$?
29028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29029 (exit $ac_status); }; } &&
29030 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29032 (eval $ac_try) 2>&5
29033 ac_status=$?
29034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29035 (exit $ac_status); }; }; then
29036 ac_cv_lib_msvcrt_wcslen=yes
29037else
29038 echo "$as_me: failed program was:" >&5
29039sed 's/^/| /' conftest.$ac_ext >&5
29040
29041ac_cv_lib_msvcrt_wcslen=no
29042fi
ac1cb8d3
VS
29043rm -f conftest.err conftest.$ac_objext \
29044 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29045LIBS=$ac_check_lib_save_LIBS
29046fi
29047echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
29048echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
29049if test $ac_cv_lib_msvcrt_wcslen = yes; then
29050 WCHAR_OK=1
29051fi
29052
29053 else
29054 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
29055echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
29056if test "${ac_cv_lib_w_wcslen+set}" = set; then
29057 echo $ECHO_N "(cached) $ECHO_C" >&6
29058else
29059 ac_check_lib_save_LIBS=$LIBS
29060LIBS="-lw $LIBS"
29061cat >conftest.$ac_ext <<_ACEOF
29062/* confdefs.h. */
29063_ACEOF
29064cat confdefs.h >>conftest.$ac_ext
29065cat >>conftest.$ac_ext <<_ACEOF
29066/* end confdefs.h. */
29067
29068/* Override any gcc2 internal prototype to avoid an error. */
29069#ifdef __cplusplus
29070extern "C"
29071#endif
29072/* We use char because int might match the return type of a gcc2
29073 builtin and then its argument prototype would still apply. */
29074char wcslen ();
29075int
29076main ()
29077{
29078wcslen ();
29079 ;
29080 return 0;
29081}
29082_ACEOF
29083rm -f conftest.$ac_objext conftest$ac_exeext
29084if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29085 (eval $ac_link) 2>conftest.er1
a848cd7e 29086 ac_status=$?
ac1cb8d3
VS
29087 grep -v '^ *+' conftest.er1 >conftest.err
29088 rm -f conftest.er1
29089 cat conftest.err >&5
a848cd7e
SC
29090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29091 (exit $ac_status); } &&
da4486fb 29092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29094 (eval $ac_try) 2>&5
29095 ac_status=$?
29096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29097 (exit $ac_status); }; } &&
29098 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29100 (eval $ac_try) 2>&5
29101 ac_status=$?
29102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29103 (exit $ac_status); }; }; then
29104 ac_cv_lib_w_wcslen=yes
29105else
29106 echo "$as_me: failed program was:" >&5
29107sed 's/^/| /' conftest.$ac_ext >&5
29108
29109ac_cv_lib_w_wcslen=no
29110fi
ac1cb8d3
VS
29111rm -f conftest.err conftest.$ac_objext \
29112 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29113LIBS=$ac_check_lib_save_LIBS
29114fi
29115echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
29116echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
29117if test $ac_cv_lib_w_wcslen = yes; then
29118
29119 WCHAR_LINK=" -lw"
29120 WCSLEN_FOUND=1
29121
29122fi
29123
29124 fi
29125 fi
29126
29127 if test "$WCSLEN_FOUND" = 1; then
29128 cat >>confdefs.h <<\_ACEOF
29129#define HAVE_WCSLEN 1
29130_ACEOF
29131
29132 fi
29133
473276a9
VS
29134 if test "$USE_HPUX" = 1 -a "x$GCC" != "xyes"; then
29135 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
29136 fi
29137
a848cd7e
SC
29138
29139for ac_func in wcsrtombs
29140do
29141as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29142echo "$as_me:$LINENO: checking for $ac_func" >&5
29143echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29144if eval "test \"\${$as_ac_var+set}\" = set"; then
29145 echo $ECHO_N "(cached) $ECHO_C" >&6
29146else
29147 cat >conftest.$ac_ext <<_ACEOF
29148/* confdefs.h. */
29149_ACEOF
29150cat confdefs.h >>conftest.$ac_ext
29151cat >>conftest.$ac_ext <<_ACEOF
29152/* end confdefs.h. */
ac1cb8d3
VS
29153/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29155#define $ac_func innocuous_$ac_func
29156
a848cd7e
SC
29157/* System header to define __stub macros and hopefully few prototypes,
29158 which can conflict with char $ac_func (); below.
29159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29160 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29161
a848cd7e
SC
29162#ifdef __STDC__
29163# include <limits.h>
29164#else
29165# include <assert.h>
29166#endif
ac1cb8d3
VS
29167
29168#undef $ac_func
29169
a848cd7e
SC
29170/* Override any gcc2 internal prototype to avoid an error. */
29171#ifdef __cplusplus
29172extern "C"
29173{
29174#endif
29175/* We use char because int might match the return type of a gcc2
29176 builtin and then its argument prototype would still apply. */
29177char $ac_func ();
29178/* The GNU C library defines this for functions which it implements
29179 to always fail with ENOSYS. Some functions are actually named
29180 something starting with __ and the normal name is an alias. */
29181#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29182choke me
29183#else
29184char (*f) () = $ac_func;
29185#endif
29186#ifdef __cplusplus
29187}
29188#endif
29189
29190int
29191main ()
29192{
29193return f != $ac_func;
29194 ;
29195 return 0;
29196}
29197_ACEOF
29198rm -f conftest.$ac_objext conftest$ac_exeext
29199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29200 (eval $ac_link) 2>conftest.er1
a848cd7e 29201 ac_status=$?
ac1cb8d3
VS
29202 grep -v '^ *+' conftest.er1 >conftest.err
29203 rm -f conftest.er1
29204 cat conftest.err >&5
a848cd7e
SC
29205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29206 (exit $ac_status); } &&
da4486fb 29207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29209 (eval $ac_try) 2>&5
29210 ac_status=$?
29211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29212 (exit $ac_status); }; } &&
29213 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29215 (eval $ac_try) 2>&5
29216 ac_status=$?
29217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29218 (exit $ac_status); }; }; then
29219 eval "$as_ac_var=yes"
29220else
29221 echo "$as_me: failed program was:" >&5
29222sed 's/^/| /' conftest.$ac_ext >&5
29223
29224eval "$as_ac_var=no"
29225fi
ac1cb8d3
VS
29226rm -f conftest.err conftest.$ac_objext \
29227 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29228fi
29229echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29230echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29231if test `eval echo '${'$as_ac_var'}'` = yes; then
29232 cat >>confdefs.h <<_ACEOF
29233#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29234_ACEOF
29235
29236fi
29237done
29238
29239else
29240 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
29241echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
29242fi
29243
29244
29245
29246ac_ext=cc
29247ac_cpp='$CXXCPP $CPPFLAGS'
29248ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29249ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29250ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29251
29252
29253
29254for ac_func in vsnprintf
29255do
29256as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29257echo "$as_me:$LINENO: checking for $ac_func" >&5
29258echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29259if eval "test \"\${$as_ac_var+set}\" = set"; then
29260 echo $ECHO_N "(cached) $ECHO_C" >&6
29261else
29262 cat >conftest.$ac_ext <<_ACEOF
29263/* confdefs.h. */
29264_ACEOF
29265cat confdefs.h >>conftest.$ac_ext
29266cat >>conftest.$ac_ext <<_ACEOF
29267/* end confdefs.h. */
ac1cb8d3
VS
29268/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29269 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29270#define $ac_func innocuous_$ac_func
29271
a848cd7e
SC
29272/* System header to define __stub macros and hopefully few prototypes,
29273 which can conflict with char $ac_func (); below.
29274 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29275 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29276
a848cd7e
SC
29277#ifdef __STDC__
29278# include <limits.h>
29279#else
29280# include <assert.h>
29281#endif
ac1cb8d3
VS
29282
29283#undef $ac_func
29284
a848cd7e
SC
29285/* Override any gcc2 internal prototype to avoid an error. */
29286#ifdef __cplusplus
29287extern "C"
29288{
29289#endif
29290/* We use char because int might match the return type of a gcc2
29291 builtin and then its argument prototype would still apply. */
29292char $ac_func ();
29293/* The GNU C library defines this for functions which it implements
29294 to always fail with ENOSYS. Some functions are actually named
29295 something starting with __ and the normal name is an alias. */
29296#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29297choke me
29298#else
29299char (*f) () = $ac_func;
29300#endif
29301#ifdef __cplusplus
29302}
29303#endif
29304
29305int
29306main ()
29307{
29308return f != $ac_func;
29309 ;
29310 return 0;
29311}
29312_ACEOF
29313rm -f conftest.$ac_objext conftest$ac_exeext
29314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29315 (eval $ac_link) 2>conftest.er1
a848cd7e 29316 ac_status=$?
ac1cb8d3
VS
29317 grep -v '^ *+' conftest.er1 >conftest.err
29318 rm -f conftest.er1
29319 cat conftest.err >&5
a848cd7e
SC
29320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29321 (exit $ac_status); } &&
da4486fb 29322 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29324 (eval $ac_try) 2>&5
29325 ac_status=$?
29326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29327 (exit $ac_status); }; } &&
29328 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29330 (eval $ac_try) 2>&5
29331 ac_status=$?
29332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29333 (exit $ac_status); }; }; then
29334 eval "$as_ac_var=yes"
29335else
29336 echo "$as_me: failed program was:" >&5
29337sed 's/^/| /' conftest.$ac_ext >&5
29338
29339eval "$as_ac_var=no"
29340fi
ac1cb8d3
VS
29341rm -f conftest.err conftest.$ac_objext \
29342 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29343fi
29344echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29345echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29346if test `eval echo '${'$as_ac_var'}'` = yes; then
29347 cat >>confdefs.h <<_ACEOF
29348#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29349_ACEOF
29350
29351fi
29352done
29353
29354
29355if test "$ac_cv_func_vsnprintf" = "yes"; then
29356 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
29357echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
29358if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
29359 echo $ECHO_N "(cached) $ECHO_C" >&6
29360else
29361
29362 cat >conftest.$ac_ext <<_ACEOF
29363/* confdefs.h. */
29364_ACEOF
29365cat confdefs.h >>conftest.$ac_ext
29366cat >>conftest.$ac_ext <<_ACEOF
29367/* end confdefs.h. */
29368
29369 #include <stdio.h>
29370 #include <stdarg.h>
29371
29372int
29373main ()
29374{
29375
29376 char *buf;
29377 va_list ap;
29378 vsnprintf(buf, 10u, "%s", ap);
29379
29380 ;
29381 return 0;
29382}
29383_ACEOF
29384rm -f conftest.$ac_objext
29385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29386 (eval $ac_compile) 2>conftest.er1
a848cd7e 29387 ac_status=$?
ac1cb8d3
VS
29388 grep -v '^ *+' conftest.er1 >conftest.err
29389 rm -f conftest.er1
29390 cat conftest.err >&5
a848cd7e
SC
29391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29392 (exit $ac_status); } &&
da4486fb 29393 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29395 (eval $ac_try) 2>&5
29396 ac_status=$?
29397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29398 (exit $ac_status); }; } &&
29399 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29401 (eval $ac_try) 2>&5
29402 ac_status=$?
29403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29404 (exit $ac_status); }; }; then
29405 wx_cv_func_vsnprintf_decl=yes
29406else
29407 echo "$as_me: failed program was:" >&5
29408sed 's/^/| /' conftest.$ac_ext >&5
29409
c122b164
DE
29410
29411 cat >conftest.$ac_ext <<_ACEOF
29412/* confdefs.h. */
29413_ACEOF
29414cat confdefs.h >>conftest.$ac_ext
29415cat >>conftest.$ac_ext <<_ACEOF
29416/* end confdefs.h. */
29417
29418 #include <stdio.h>
29419 #include <stdarg.h>
29420 using namespace std;
29421
29422int
29423main ()
29424{
29425
29426 char *buf;
29427 va_list ap;
29428 vsnprintf(buf, 10u, "%s", ap);
29429
29430 ;
29431 return 0;
29432}
29433_ACEOF
29434rm -f conftest.$ac_objext
29435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29436 (eval $ac_compile) 2>conftest.er1
29437 ac_status=$?
29438 grep -v '^ *+' conftest.er1 >conftest.err
29439 rm -f conftest.er1
29440 cat conftest.err >&5
29441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29442 (exit $ac_status); } &&
29443 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
29444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29445 (eval $ac_try) 2>&5
29446 ac_status=$?
29447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29448 (exit $ac_status); }; } &&
29449 { ac_try='test -s conftest.$ac_objext'
29450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29451 (eval $ac_try) 2>&5
29452 ac_status=$?
29453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29454 (exit $ac_status); }; }; then
29455 wx_cv_func_vsnprintf_decl=yes
29456else
29457 echo "$as_me: failed program was:" >&5
29458sed 's/^/| /' conftest.$ac_ext >&5
29459
a848cd7e
SC
29460wx_cv_func_vsnprintf_decl=no
29461
29462fi
ac1cb8d3 29463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29464
29465
c122b164
DE
29466fi
29467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29468
29469
a848cd7e
SC
29470fi
29471echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
29472echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
29473
29474 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
29475 cat >>confdefs.h <<\_ACEOF
29476#define HAVE_VSNPRINTF_DECL 1
29477_ACEOF
29478
29479 fi
29480fi
29481
29482if test "$wxUSE_UNICODE" = yes; then
29483
29484
29485
fbe47c7b
VS
29486
29487
29488
29489for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
29490do
29491as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29492echo "$as_me:$LINENO: checking for $ac_func" >&5
29493echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29494if eval "test \"\${$as_ac_var+set}\" = set"; then
29495 echo $ECHO_N "(cached) $ECHO_C" >&6
29496else
29497 cat >conftest.$ac_ext <<_ACEOF
29498/* confdefs.h. */
29499_ACEOF
29500cat confdefs.h >>conftest.$ac_ext
29501cat >>conftest.$ac_ext <<_ACEOF
29502/* end confdefs.h. */
ac1cb8d3
VS
29503/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29505#define $ac_func innocuous_$ac_func
29506
a848cd7e
SC
29507/* System header to define __stub macros and hopefully few prototypes,
29508 which can conflict with char $ac_func (); below.
29509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29510 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29511
a848cd7e
SC
29512#ifdef __STDC__
29513# include <limits.h>
29514#else
29515# include <assert.h>
29516#endif
ac1cb8d3
VS
29517
29518#undef $ac_func
29519
a848cd7e
SC
29520/* Override any gcc2 internal prototype to avoid an error. */
29521#ifdef __cplusplus
29522extern "C"
29523{
29524#endif
29525/* We use char because int might match the return type of a gcc2
29526 builtin and then its argument prototype would still apply. */
29527char $ac_func ();
29528/* The GNU C library defines this for functions which it implements
29529 to always fail with ENOSYS. Some functions are actually named
29530 something starting with __ and the normal name is an alias. */
29531#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29532choke me
29533#else
29534char (*f) () = $ac_func;
29535#endif
29536#ifdef __cplusplus
29537}
29538#endif
29539
29540int
29541main ()
29542{
29543return f != $ac_func;
29544 ;
29545 return 0;
29546}
29547_ACEOF
29548rm -f conftest.$ac_objext conftest$ac_exeext
29549if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29550 (eval $ac_link) 2>conftest.er1
a848cd7e 29551 ac_status=$?
ac1cb8d3
VS
29552 grep -v '^ *+' conftest.er1 >conftest.err
29553 rm -f conftest.er1
29554 cat conftest.err >&5
a848cd7e
SC
29555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29556 (exit $ac_status); } &&
da4486fb 29557 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29559 (eval $ac_try) 2>&5
29560 ac_status=$?
29561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29562 (exit $ac_status); }; } &&
29563 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29565 (eval $ac_try) 2>&5
29566 ac_status=$?
29567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29568 (exit $ac_status); }; }; then
29569 eval "$as_ac_var=yes"
29570else
29571 echo "$as_me: failed program was:" >&5
29572sed 's/^/| /' conftest.$ac_ext >&5
29573
29574eval "$as_ac_var=no"
29575fi
ac1cb8d3
VS
29576rm -f conftest.err conftest.$ac_objext \
29577 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29578fi
29579echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29580echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29581if test `eval echo '${'$as_ac_var'}'` = yes; then
29582 cat >>confdefs.h <<_ACEOF
29583#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29584_ACEOF
29585
29586fi
29587done
29588
29589
29590 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
29591echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
29592 cat >conftest.$ac_ext <<_ACEOF
29593/* confdefs.h. */
29594_ACEOF
29595cat confdefs.h >>conftest.$ac_ext
29596cat >>conftest.$ac_ext <<_ACEOF
29597/* end confdefs.h. */
29598#include <wchar.h>
29599int
29600main ()
29601{
29602&_vsnwprintf;
29603 ;
29604 return 0;
29605}
29606_ACEOF
29607rm -f conftest.$ac_objext
29608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29609 (eval $ac_compile) 2>conftest.er1
a848cd7e 29610 ac_status=$?
ac1cb8d3
VS
29611 grep -v '^ *+' conftest.er1 >conftest.err
29612 rm -f conftest.er1
29613 cat conftest.err >&5
a848cd7e
SC
29614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29615 (exit $ac_status); } &&
da4486fb 29616 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29618 (eval $ac_try) 2>&5
29619 ac_status=$?
29620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29621 (exit $ac_status); }; } &&
29622 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29624 (eval $ac_try) 2>&5
29625 ac_status=$?
29626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29627 (exit $ac_status); }; }; then
29628 echo "$as_me:$LINENO: result: yes" >&5
29629echo "${ECHO_T}yes" >&6
29630 cat >>confdefs.h <<\_ACEOF
29631#define HAVE__VSNWPRINTF 1
29632_ACEOF
29633
29634else
29635 echo "$as_me: failed program was:" >&5
29636sed 's/^/| /' conftest.$ac_ext >&5
29637
29638echo "$as_me:$LINENO: result: no" >&5
29639echo "${ECHO_T}no" >&6
29640fi
ac1cb8d3 29641rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
29642fi
29643
29644ac_ext=c
29645ac_cpp='$CPP $CPPFLAGS'
29646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29648ac_compiler_gnu=$ac_cv_c_compiler_gnu
29649
29650
29651
29652
29653if test "$TOOLKIT" != "MSW"; then
29654
29655
29656
29657
29658ac_ext=cc
29659ac_cpp='$CXXCPP $CPPFLAGS'
29660ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29661ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29662ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29663
29664
29665
29666
29667# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
29668if test "${with_libiconv_prefix+set}" = set; then
29669 withval="$with_libiconv_prefix"
29670
29671 for dir in `echo "$withval" | tr : ' '`; do
29672 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
29673 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
29674 done
29675
29676fi;
29677
29678 echo "$as_me:$LINENO: checking for iconv" >&5
29679echo $ECHO_N "checking for iconv... $ECHO_C" >&6
29680if test "${am_cv_func_iconv+set}" = set; then
29681 echo $ECHO_N "(cached) $ECHO_C" >&6
29682else
29683
29684 am_cv_func_iconv="no, consider installing GNU libiconv"
29685 am_cv_lib_iconv=no
29686 cat >conftest.$ac_ext <<_ACEOF
29687/* confdefs.h. */
29688_ACEOF
29689cat confdefs.h >>conftest.$ac_ext
29690cat >>conftest.$ac_ext <<_ACEOF
29691/* end confdefs.h. */
29692#include <stdlib.h>
29693#include <iconv.h>
29694int
29695main ()
29696{
29697iconv_t cd = iconv_open("","");
29698 iconv(cd,NULL,NULL,NULL,NULL);
29699 iconv_close(cd);
29700 ;
29701 return 0;
29702}
29703_ACEOF
29704rm -f conftest.$ac_objext conftest$ac_exeext
29705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29706 (eval $ac_link) 2>conftest.er1
a848cd7e 29707 ac_status=$?
ac1cb8d3
VS
29708 grep -v '^ *+' conftest.er1 >conftest.err
29709 rm -f conftest.er1
29710 cat conftest.err >&5
a848cd7e
SC
29711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29712 (exit $ac_status); } &&
da4486fb 29713 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29715 (eval $ac_try) 2>&5
29716 ac_status=$?
29717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29718 (exit $ac_status); }; } &&
29719 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29721 (eval $ac_try) 2>&5
29722 ac_status=$?
29723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29724 (exit $ac_status); }; }; then
29725 am_cv_func_iconv=yes
29726else
29727 echo "$as_me: failed program was:" >&5
29728sed 's/^/| /' conftest.$ac_ext >&5
29729
29730fi
ac1cb8d3
VS
29731rm -f conftest.err conftest.$ac_objext \
29732 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29733 if test "$am_cv_func_iconv" != yes; then
29734 am_save_LIBS="$LIBS"
29735 LIBS="$LIBS -liconv"
29736 cat >conftest.$ac_ext <<_ACEOF
29737/* confdefs.h. */
29738_ACEOF
29739cat confdefs.h >>conftest.$ac_ext
29740cat >>conftest.$ac_ext <<_ACEOF
29741/* end confdefs.h. */
29742#include <stdlib.h>
29743#include <iconv.h>
29744int
29745main ()
29746{
29747iconv_t cd = iconv_open("","");
29748 iconv(cd,NULL,NULL,NULL,NULL);
29749 iconv_close(cd);
29750 ;
29751 return 0;
29752}
29753_ACEOF
29754rm -f conftest.$ac_objext conftest$ac_exeext
29755if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29756 (eval $ac_link) 2>conftest.er1
a848cd7e 29757 ac_status=$?
ac1cb8d3
VS
29758 grep -v '^ *+' conftest.er1 >conftest.err
29759 rm -f conftest.er1
29760 cat conftest.err >&5
a848cd7e
SC
29761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29762 (exit $ac_status); } &&
da4486fb 29763 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29765 (eval $ac_try) 2>&5
29766 ac_status=$?
29767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29768 (exit $ac_status); }; } &&
29769 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29771 (eval $ac_try) 2>&5
29772 ac_status=$?
29773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29774 (exit $ac_status); }; }; then
29775 am_cv_lib_iconv=yes
29776 am_cv_func_iconv=yes
29777else
29778 echo "$as_me: failed program was:" >&5
29779sed 's/^/| /' conftest.$ac_ext >&5
29780
29781fi
ac1cb8d3
VS
29782rm -f conftest.err conftest.$ac_objext \
29783 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29784 LIBS="$am_save_LIBS"
29785 fi
29786
29787fi
29788echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
29789echo "${ECHO_T}$am_cv_func_iconv" >&6
29790 if test "$am_cv_func_iconv" = yes; then
29791
29792cat >>confdefs.h <<\_ACEOF
29793#define HAVE_ICONV 1
29794_ACEOF
29795
29796 echo "$as_me:$LINENO: checking if iconv needs const" >&5
29797echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
29798if test "${wx_cv_func_iconv_const+set}" = set; then
29799 echo $ECHO_N "(cached) $ECHO_C" >&6
29800else
29801 cat >conftest.$ac_ext <<_ACEOF
29802/* confdefs.h. */
29803_ACEOF
29804cat confdefs.h >>conftest.$ac_ext
29805cat >>conftest.$ac_ext <<_ACEOF
29806/* end confdefs.h. */
29807
29808#include <stdlib.h>
29809#include <iconv.h>
29810extern
29811#ifdef __cplusplus
29812"C"
29813#endif
29814#if defined(__STDC__) || defined(__cplusplus)
29815size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
29816#else
29817size_t iconv();
29818#endif
29819
29820int
29821main ()
29822{
29823
29824 ;
29825 return 0;
29826}
29827_ACEOF
29828rm -f conftest.$ac_objext
29829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29830 (eval $ac_compile) 2>conftest.er1
a848cd7e 29831 ac_status=$?
ac1cb8d3
VS
29832 grep -v '^ *+' conftest.er1 >conftest.err
29833 rm -f conftest.er1
29834 cat conftest.err >&5
a848cd7e
SC
29835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29836 (exit $ac_status); } &&
da4486fb 29837 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29839 (eval $ac_try) 2>&5
29840 ac_status=$?
29841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29842 (exit $ac_status); }; } &&
29843 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29845 (eval $ac_try) 2>&5
29846 ac_status=$?
29847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29848 (exit $ac_status); }; }; then
29849 wx_cv_func_iconv_const="no"
29850else
29851 echo "$as_me: failed program was:" >&5
29852sed 's/^/| /' conftest.$ac_ext >&5
29853
29854wx_cv_func_iconv_const="yes"
29855
29856fi
ac1cb8d3 29857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29858
29859fi
29860echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
29861echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
29862
29863 iconv_const=
29864 if test "x$wx_cv_func_iconv_const" = "xyes"; then
29865 iconv_const="const"
29866 fi
29867
29868
29869cat >>confdefs.h <<_ACEOF
29870#define ICONV_CONST $iconv_const
29871_ACEOF
29872
29873 fi
29874 LIBICONV=
29875 if test "$am_cv_lib_iconv" = yes; then
29876 LIBICONV="-liconv"
29877 fi
29878
29879
29880LIBS="$LIBICONV $LIBS"
29881ac_ext=c
29882ac_cpp='$CPP $CPPFLAGS'
29883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29885ac_compiler_gnu=$ac_cv_c_compiler_gnu
29886
29887
29888if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
29889
29890for ac_func in sigaction
29891do
29892as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29893echo "$as_me:$LINENO: checking for $ac_func" >&5
29894echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29895if eval "test \"\${$as_ac_var+set}\" = set"; then
29896 echo $ECHO_N "(cached) $ECHO_C" >&6
29897else
29898 cat >conftest.$ac_ext <<_ACEOF
29899/* confdefs.h. */
29900_ACEOF
29901cat confdefs.h >>conftest.$ac_ext
29902cat >>conftest.$ac_ext <<_ACEOF
29903/* end confdefs.h. */
ac1cb8d3
VS
29904/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29906#define $ac_func innocuous_$ac_func
29907
a848cd7e
SC
29908/* System header to define __stub macros and hopefully few prototypes,
29909 which can conflict with char $ac_func (); below.
29910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29911 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29912
a848cd7e
SC
29913#ifdef __STDC__
29914# include <limits.h>
29915#else
29916# include <assert.h>
29917#endif
ac1cb8d3
VS
29918
29919#undef $ac_func
29920
a848cd7e
SC
29921/* Override any gcc2 internal prototype to avoid an error. */
29922#ifdef __cplusplus
29923extern "C"
29924{
29925#endif
29926/* We use char because int might match the return type of a gcc2
29927 builtin and then its argument prototype would still apply. */
29928char $ac_func ();
29929/* The GNU C library defines this for functions which it implements
29930 to always fail with ENOSYS. Some functions are actually named
29931 something starting with __ and the normal name is an alias. */
29932#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29933choke me
29934#else
29935char (*f) () = $ac_func;
29936#endif
29937#ifdef __cplusplus
29938}
29939#endif
29940
29941int
29942main ()
29943{
29944return f != $ac_func;
29945 ;
29946 return 0;
29947}
29948_ACEOF
29949rm -f conftest.$ac_objext conftest$ac_exeext
29950if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29951 (eval $ac_link) 2>conftest.er1
a848cd7e 29952 ac_status=$?
ac1cb8d3
VS
29953 grep -v '^ *+' conftest.er1 >conftest.err
29954 rm -f conftest.er1
29955 cat conftest.err >&5
a848cd7e
SC
29956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29957 (exit $ac_status); } &&
da4486fb 29958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29960 (eval $ac_try) 2>&5
29961 ac_status=$?
29962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29963 (exit $ac_status); }; } &&
29964 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29966 (eval $ac_try) 2>&5
29967 ac_status=$?
29968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29969 (exit $ac_status); }; }; then
29970 eval "$as_ac_var=yes"
29971else
29972 echo "$as_me: failed program was:" >&5
29973sed 's/^/| /' conftest.$ac_ext >&5
29974
29975eval "$as_ac_var=no"
29976fi
ac1cb8d3
VS
29977rm -f conftest.err conftest.$ac_objext \
29978 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29979fi
29980echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29981echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29982if test `eval echo '${'$as_ac_var'}'` = yes; then
29983 cat >>confdefs.h <<_ACEOF
29984#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29985_ACEOF
29986
29987fi
29988done
29989
29990
29991 if test "$ac_cv_func_sigaction" = "no"; then
29992 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
29993echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
29994 wxUSE_ON_FATAL_EXCEPTION=no
29995 fi
29996
29997 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
29998
29999
30000 ac_ext=cc
30001ac_cpp='$CXXCPP $CPPFLAGS'
30002ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30003ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30004ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30005
30006
30007 echo "$as_me:$LINENO: checking for sa_handler type" >&5
30008echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
30009if test "${wx_cv_type_sa_handler+set}" = set; then
30010 echo $ECHO_N "(cached) $ECHO_C" >&6
30011else
30012
30013 cat >conftest.$ac_ext <<_ACEOF
30014/* confdefs.h. */
30015_ACEOF
30016cat confdefs.h >>conftest.$ac_ext
30017cat >>conftest.$ac_ext <<_ACEOF
30018/* end confdefs.h. */
30019#include <signal.h>
30020int
30021main ()
30022{
30023
30024 extern void testSigHandler(int);
30025
30026 struct sigaction sa;
30027 sa.sa_handler = testSigHandler;
30028
30029 ;
30030 return 0;
30031}
30032_ACEOF
30033rm -f conftest.$ac_objext
30034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30035 (eval $ac_compile) 2>conftest.er1
a848cd7e 30036 ac_status=$?
ac1cb8d3
VS
30037 grep -v '^ *+' conftest.er1 >conftest.err
30038 rm -f conftest.er1
30039 cat conftest.err >&5
a848cd7e
SC
30040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30041 (exit $ac_status); } &&
da4486fb 30042 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30044 (eval $ac_try) 2>&5
30045 ac_status=$?
30046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30047 (exit $ac_status); }; } &&
30048 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30050 (eval $ac_try) 2>&5
30051 ac_status=$?
30052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30053 (exit $ac_status); }; }; then
30054
30055 wx_cv_type_sa_handler=int
30056
30057else
30058 echo "$as_me: failed program was:" >&5
30059sed 's/^/| /' conftest.$ac_ext >&5
30060
30061
30062 wx_cv_type_sa_handler=void
30063
30064fi
ac1cb8d3 30065rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30066
30067fi
30068echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
30069echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
30070
30071 ac_ext=c
30072ac_cpp='$CPP $CPPFLAGS'
30073ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30074ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30075ac_compiler_gnu=$ac_cv_c_compiler_gnu
30076
30077
30078 cat >>confdefs.h <<_ACEOF
30079#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
30080_ACEOF
30081
30082 fi
30083fi
30084
eaff0f0d
VZ
30085if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
30086
30087
30088 ac_ext=cc
30089ac_cpp='$CXXCPP $CPPFLAGS'
30090ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30091ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30092ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30093
30094
30095 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
30096echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
30097if test "${wx_cv_func_backtrace+set}" = set; then
30098 echo $ECHO_N "(cached) $ECHO_C" >&6
30099else
30100
30101 cat >conftest.$ac_ext <<_ACEOF
30102/* confdefs.h. */
30103_ACEOF
30104cat confdefs.h >>conftest.$ac_ext
30105cat >>conftest.$ac_ext <<_ACEOF
30106/* end confdefs.h. */
30107#include <execinfo.h>
30108int
30109main ()
30110{
30111
30112 void *trace[1];
30113 char **messages;
30114
30115 backtrace(trace, 1);
30116 messages = backtrace_symbols(trace, 1);
30117
30118 ;
30119 return 0;
30120}
30121_ACEOF
30122rm -f conftest.$ac_objext
30123if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30124 (eval $ac_compile) 2>conftest.er1
30125 ac_status=$?
30126 grep -v '^ *+' conftest.er1 >conftest.err
30127 rm -f conftest.er1
30128 cat conftest.err >&5
30129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30130 (exit $ac_status); } &&
da4486fb 30131 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
30132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30133 (eval $ac_try) 2>&5
30134 ac_status=$?
30135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30136 (exit $ac_status); }; } &&
30137 { ac_try='test -s conftest.$ac_objext'
30138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30139 (eval $ac_try) 2>&5
30140 ac_status=$?
30141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30142 (exit $ac_status); }; }; then
30143 wx_cv_func_backtrace=yes
30144else
30145 echo "$as_me: failed program was:" >&5
30146sed 's/^/| /' conftest.$ac_ext >&5
30147
30148wx_cv_func_backtrace=no
30149
30150fi
30151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30152
30153
30154fi
30155echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
30156echo "${ECHO_T}$wx_cv_func_backtrace" >&6
30157
30158
30159 if test "$wx_cv_func_backtrace" = "no"; then
30160 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
30161echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
30162 wxUSE_STACKWALKER=no
30163 else
30164 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
30165echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
30166if test "${wx_cv_func_cxa_demangle+set}" = set; then
30167 echo $ECHO_N "(cached) $ECHO_C" >&6
30168else
30169
30170 cat >conftest.$ac_ext <<_ACEOF
30171/* confdefs.h. */
30172_ACEOF
30173cat confdefs.h >>conftest.$ac_ext
30174cat >>conftest.$ac_ext <<_ACEOF
30175/* end confdefs.h. */
30176#include <cxxabi.h>
30177int
30178main ()
30179{
30180
30181 int rc;
30182 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
30183
30184 ;
30185 return 0;
30186}
30187_ACEOF
30188rm -f conftest.$ac_objext
30189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30190 (eval $ac_compile) 2>conftest.er1
30191 ac_status=$?
30192 grep -v '^ *+' conftest.er1 >conftest.err
30193 rm -f conftest.er1
30194 cat conftest.err >&5
30195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30196 (exit $ac_status); } &&
da4486fb 30197 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
30198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30199 (eval $ac_try) 2>&5
30200 ac_status=$?
30201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30202 (exit $ac_status); }; } &&
30203 { ac_try='test -s conftest.$ac_objext'
30204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30205 (eval $ac_try) 2>&5
30206 ac_status=$?
30207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30208 (exit $ac_status); }; }; then
30209 wx_cv_func_cxa_demangle=yes
30210else
30211 echo "$as_me: failed program was:" >&5
30212sed 's/^/| /' conftest.$ac_ext >&5
30213
30214wx_cv_func_cxa_demangle=no
30215
30216fi
30217rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30218
30219
30220fi
30221echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
30222echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
30223
30224 if test "$wx_cv_func_cxa_demangle" = "yes"; then
30225 cat >>confdefs.h <<\_ACEOF
30226#define HAVE_CXA_DEMANGLE 1
30227_ACEOF
30228
30229 fi
30230 fi
30231
30232 ac_ext=c
30233ac_cpp='$CPP $CPPFLAGS'
30234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30236ac_compiler_gnu=$ac_cv_c_compiler_gnu
30237
30238fi
30239
a848cd7e
SC
30240
30241
30242for ac_func in mkstemp mktemp
30243do
30244as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30245echo "$as_me:$LINENO: checking for $ac_func" >&5
30246echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30247if eval "test \"\${$as_ac_var+set}\" = set"; then
30248 echo $ECHO_N "(cached) $ECHO_C" >&6
30249else
30250 cat >conftest.$ac_ext <<_ACEOF
30251/* confdefs.h. */
30252_ACEOF
30253cat confdefs.h >>conftest.$ac_ext
30254cat >>conftest.$ac_ext <<_ACEOF
30255/* end confdefs.h. */
ac1cb8d3
VS
30256/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30258#define $ac_func innocuous_$ac_func
30259
a848cd7e
SC
30260/* System header to define __stub macros and hopefully few prototypes,
30261 which can conflict with char $ac_func (); below.
30262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30263 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30264
a848cd7e
SC
30265#ifdef __STDC__
30266# include <limits.h>
30267#else
30268# include <assert.h>
30269#endif
ac1cb8d3
VS
30270
30271#undef $ac_func
30272
a848cd7e
SC
30273/* Override any gcc2 internal prototype to avoid an error. */
30274#ifdef __cplusplus
30275extern "C"
30276{
30277#endif
30278/* We use char because int might match the return type of a gcc2
30279 builtin and then its argument prototype would still apply. */
30280char $ac_func ();
30281/* The GNU C library defines this for functions which it implements
30282 to always fail with ENOSYS. Some functions are actually named
30283 something starting with __ and the normal name is an alias. */
30284#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30285choke me
30286#else
30287char (*f) () = $ac_func;
30288#endif
30289#ifdef __cplusplus
30290}
30291#endif
30292
30293int
30294main ()
30295{
30296return f != $ac_func;
30297 ;
30298 return 0;
30299}
30300_ACEOF
30301rm -f conftest.$ac_objext conftest$ac_exeext
30302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30303 (eval $ac_link) 2>conftest.er1
a848cd7e 30304 ac_status=$?
ac1cb8d3
VS
30305 grep -v '^ *+' conftest.er1 >conftest.err
30306 rm -f conftest.er1
30307 cat conftest.err >&5
a848cd7e
SC
30308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30309 (exit $ac_status); } &&
da4486fb 30310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30312 (eval $ac_try) 2>&5
30313 ac_status=$?
30314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30315 (exit $ac_status); }; } &&
30316 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30318 (eval $ac_try) 2>&5
30319 ac_status=$?
30320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30321 (exit $ac_status); }; }; then
30322 eval "$as_ac_var=yes"
30323else
30324 echo "$as_me: failed program was:" >&5
30325sed 's/^/| /' conftest.$ac_ext >&5
30326
30327eval "$as_ac_var=no"
30328fi
ac1cb8d3
VS
30329rm -f conftest.err conftest.$ac_objext \
30330 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30331fi
30332echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30333echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30334if test `eval echo '${'$as_ac_var'}'` = yes; then
30335 cat >>confdefs.h <<_ACEOF
30336#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30337_ACEOF
30338 break
30339fi
30340done
30341
30342
30343echo "$as_me:$LINENO: checking for statfs" >&5
30344echo $ECHO_N "checking for statfs... $ECHO_C" >&6
30345if test "${wx_cv_func_statfs+set}" = set; then
30346 echo $ECHO_N "(cached) $ECHO_C" >&6
30347else
30348 cat >conftest.$ac_ext <<_ACEOF
30349/* confdefs.h. */
30350_ACEOF
30351cat confdefs.h >>conftest.$ac_ext
30352cat >>conftest.$ac_ext <<_ACEOF
30353/* end confdefs.h. */
30354
30355 #if defined(__BSD__)
30356 #include <sys/param.h>
30357 #include <sys/mount.h>
30358 #else
30359 #include <sys/vfs.h>
30360 #endif
30361
30362int
30363main ()
30364{
30365
30366 long l;
30367 struct statfs fs;
30368 statfs("/", &fs);
30369 l = fs.f_bsize;
30370 l += fs.f_blocks;
30371 l += fs.f_bavail;
30372
30373 ;
30374 return 0;
30375}
30376_ACEOF
30377rm -f conftest.$ac_objext
30378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30379 (eval $ac_compile) 2>conftest.er1
a848cd7e 30380 ac_status=$?
ac1cb8d3
VS
30381 grep -v '^ *+' conftest.er1 >conftest.err
30382 rm -f conftest.er1
30383 cat conftest.err >&5
a848cd7e
SC
30384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30385 (exit $ac_status); } &&
da4486fb 30386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30388 (eval $ac_try) 2>&5
30389 ac_status=$?
30390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30391 (exit $ac_status); }; } &&
30392 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30394 (eval $ac_try) 2>&5
30395 ac_status=$?
30396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30397 (exit $ac_status); }; }; then
30398
30399 wx_cv_func_statfs=yes
30400
30401else
30402 echo "$as_me: failed program was:" >&5
30403sed 's/^/| /' conftest.$ac_ext >&5
30404
30405
30406 wx_cv_func_statfs=no
30407
30408
30409fi
ac1cb8d3 30410rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30411
30412fi
30413echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
30414echo "${ECHO_T}$wx_cv_func_statfs" >&6
30415
30416if test "$wx_cv_func_statfs" = "yes"; then
30417 wx_cv_type_statvfs_t="struct statfs"
30418 cat >>confdefs.h <<\_ACEOF
30419#define HAVE_STATFS 1
30420_ACEOF
30421
30422else
30423 echo "$as_me:$LINENO: checking for statvfs" >&5
30424echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
30425if test "${wx_cv_func_statvfs+set}" = set; then
30426 echo $ECHO_N "(cached) $ECHO_C" >&6
30427else
30428 cat >conftest.$ac_ext <<_ACEOF
30429/* confdefs.h. */
30430_ACEOF
30431cat confdefs.h >>conftest.$ac_ext
30432cat >>conftest.$ac_ext <<_ACEOF
30433/* end confdefs.h. */
30434
30435 #include <stddef.h>
30436 #include <sys/statvfs.h>
30437
30438int
30439main ()
30440{
30441
30442 statvfs("/", NULL);
30443
30444 ;
30445 return 0;
30446}
30447_ACEOF
30448rm -f conftest.$ac_objext
30449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30450 (eval $ac_compile) 2>conftest.er1
a848cd7e 30451 ac_status=$?
ac1cb8d3
VS
30452 grep -v '^ *+' conftest.er1 >conftest.err
30453 rm -f conftest.er1
30454 cat conftest.err >&5
a848cd7e
SC
30455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30456 (exit $ac_status); } &&
da4486fb 30457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30459 (eval $ac_try) 2>&5
30460 ac_status=$?
30461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30462 (exit $ac_status); }; } &&
30463 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30465 (eval $ac_try) 2>&5
30466 ac_status=$?
30467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30468 (exit $ac_status); }; }; then
30469 wx_cv_func_statvfs=yes
30470else
30471 echo "$as_me: failed program was:" >&5
30472sed 's/^/| /' conftest.$ac_ext >&5
30473
30474wx_cv_func_statvfs=no
30475
30476fi
ac1cb8d3 30477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30478
30479fi
30480echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
30481echo "${ECHO_T}$wx_cv_func_statvfs" >&6
30482
30483 if test "$wx_cv_func_statvfs" = "yes"; then
30484
30485
30486 ac_ext=cc
30487ac_cpp='$CXXCPP $CPPFLAGS'
30488ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30489ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30490ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30491
30492
30493 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
30494echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
30495if test "${wx_cv_type_statvfs_t+set}" = set; then
30496 echo $ECHO_N "(cached) $ECHO_C" >&6
30497else
30498 cat >conftest.$ac_ext <<_ACEOF
30499/* confdefs.h. */
30500_ACEOF
30501cat confdefs.h >>conftest.$ac_ext
30502cat >>conftest.$ac_ext <<_ACEOF
30503/* end confdefs.h. */
30504
30505 #include <sys/statvfs.h>
30506
30507int
30508main ()
30509{
30510
30511 long l;
30512 statvfs_t fs;
30513 statvfs("/", &fs);
30514 l = fs.f_bsize;
30515 l += fs.f_blocks;
30516 l += fs.f_bavail;
30517
30518 ;
30519 return 0;
30520}
30521_ACEOF
30522rm -f conftest.$ac_objext
30523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30524 (eval $ac_compile) 2>conftest.er1
a848cd7e 30525 ac_status=$?
ac1cb8d3
VS
30526 grep -v '^ *+' conftest.er1 >conftest.err
30527 rm -f conftest.er1
30528 cat conftest.err >&5
a848cd7e
SC
30529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30530 (exit $ac_status); } &&
da4486fb 30531 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30533 (eval $ac_try) 2>&5
30534 ac_status=$?
30535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30536 (exit $ac_status); }; } &&
30537 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30539 (eval $ac_try) 2>&5
30540 ac_status=$?
30541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30542 (exit $ac_status); }; }; then
30543 wx_cv_type_statvfs_t=statvfs_t
30544else
30545 echo "$as_me: failed program was:" >&5
30546sed 's/^/| /' conftest.$ac_ext >&5
30547
30548
30549 cat >conftest.$ac_ext <<_ACEOF
30550/* confdefs.h. */
30551_ACEOF
30552cat confdefs.h >>conftest.$ac_ext
30553cat >>conftest.$ac_ext <<_ACEOF
30554/* end confdefs.h. */
30555
30556 #include <sys/statvfs.h>
30557
30558int
30559main ()
30560{
30561
30562 long l;
30563 struct statvfs fs;
30564 statvfs("/", &fs);
30565 l = fs.f_bsize;
30566 l += fs.f_blocks;
30567 l += fs.f_bavail;
30568
30569 ;
30570 return 0;
30571}
30572_ACEOF
30573rm -f conftest.$ac_objext
30574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30575 (eval $ac_compile) 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); } &&
da4486fb 30582 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30584 (eval $ac_try) 2>&5
30585 ac_status=$?
30586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30587 (exit $ac_status); }; } &&
30588 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30590 (eval $ac_try) 2>&5
30591 ac_status=$?
30592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30593 (exit $ac_status); }; }; then
30594 wx_cv_type_statvfs_t="struct statvfs"
30595else
30596 echo "$as_me: failed program was:" >&5
30597sed 's/^/| /' conftest.$ac_ext >&5
30598
30599wx_cv_type_statvfs_t="unknown"
30600
30601fi
ac1cb8d3 30602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30603
30604
30605fi
ac1cb8d3 30606rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30607
30608fi
30609echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
30610echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
30611
30612 ac_ext=c
30613ac_cpp='$CPP $CPPFLAGS'
30614ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30615ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30616ac_compiler_gnu=$ac_cv_c_compiler_gnu
30617
30618
30619 if test "$wx_cv_type_statvfs_t" != "unknown"; then
30620 cat >>confdefs.h <<\_ACEOF
30621#define HAVE_STATVFS 1
30622_ACEOF
30623
30624 fi
30625 else
30626 wx_cv_type_statvfs_t="unknown"
30627 fi
30628fi
30629
30630if test "$wx_cv_type_statvfs_t" != "unknown"; then
30631 cat >>confdefs.h <<_ACEOF
30632#define WX_STATFS_T $wx_cv_type_statvfs_t
30633_ACEOF
30634
30635else
30636 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
30637echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
30638fi
30639
30640if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
30641
30642
30643for ac_func in fcntl flock
30644do
30645as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30646echo "$as_me:$LINENO: checking for $ac_func" >&5
30647echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30648if eval "test \"\${$as_ac_var+set}\" = set"; then
30649 echo $ECHO_N "(cached) $ECHO_C" >&6
30650else
30651 cat >conftest.$ac_ext <<_ACEOF
30652/* confdefs.h. */
30653_ACEOF
30654cat confdefs.h >>conftest.$ac_ext
30655cat >>conftest.$ac_ext <<_ACEOF
30656/* end confdefs.h. */
ac1cb8d3
VS
30657/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30658 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30659#define $ac_func innocuous_$ac_func
30660
a848cd7e
SC
30661/* System header to define __stub macros and hopefully few prototypes,
30662 which can conflict with char $ac_func (); below.
30663 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30664 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30665
a848cd7e
SC
30666#ifdef __STDC__
30667# include <limits.h>
30668#else
30669# include <assert.h>
30670#endif
ac1cb8d3
VS
30671
30672#undef $ac_func
30673
a848cd7e
SC
30674/* Override any gcc2 internal prototype to avoid an error. */
30675#ifdef __cplusplus
30676extern "C"
30677{
30678#endif
30679/* We use char because int might match the return type of a gcc2
30680 builtin and then its argument prototype would still apply. */
30681char $ac_func ();
30682/* The GNU C library defines this for functions which it implements
30683 to always fail with ENOSYS. Some functions are actually named
30684 something starting with __ and the normal name is an alias. */
30685#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30686choke me
30687#else
30688char (*f) () = $ac_func;
30689#endif
30690#ifdef __cplusplus
30691}
30692#endif
30693
30694int
30695main ()
30696{
30697return f != $ac_func;
30698 ;
30699 return 0;
30700}
30701_ACEOF
30702rm -f conftest.$ac_objext conftest$ac_exeext
30703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30704 (eval $ac_link) 2>conftest.er1
a848cd7e 30705 ac_status=$?
ac1cb8d3
VS
30706 grep -v '^ *+' conftest.er1 >conftest.err
30707 rm -f conftest.er1
30708 cat conftest.err >&5
a848cd7e
SC
30709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30710 (exit $ac_status); } &&
da4486fb 30711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30713 (eval $ac_try) 2>&5
30714 ac_status=$?
30715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30716 (exit $ac_status); }; } &&
30717 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30719 (eval $ac_try) 2>&5
30720 ac_status=$?
30721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30722 (exit $ac_status); }; }; then
30723 eval "$as_ac_var=yes"
30724else
30725 echo "$as_me: failed program was:" >&5
30726sed 's/^/| /' conftest.$ac_ext >&5
30727
30728eval "$as_ac_var=no"
30729fi
ac1cb8d3
VS
30730rm -f conftest.err conftest.$ac_objext \
30731 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30732fi
30733echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30734echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30735if test `eval echo '${'$as_ac_var'}'` = yes; then
30736 cat >>confdefs.h <<_ACEOF
30737#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30738_ACEOF
30739 break
30740fi
30741done
30742
30743
30744 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
30745 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
30746echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
30747 wxUSE_SNGLINST_CHECKER=no
30748 fi
30749fi
30750
30751
30752for ac_func in timegm
30753do
30754as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30755echo "$as_me:$LINENO: checking for $ac_func" >&5
30756echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30757if eval "test \"\${$as_ac_var+set}\" = set"; then
30758 echo $ECHO_N "(cached) $ECHO_C" >&6
30759else
30760 cat >conftest.$ac_ext <<_ACEOF
30761/* confdefs.h. */
30762_ACEOF
30763cat confdefs.h >>conftest.$ac_ext
30764cat >>conftest.$ac_ext <<_ACEOF
30765/* end confdefs.h. */
ac1cb8d3
VS
30766/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30767 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30768#define $ac_func innocuous_$ac_func
30769
a848cd7e
SC
30770/* System header to define __stub macros and hopefully few prototypes,
30771 which can conflict with char $ac_func (); below.
30772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30773 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30774
a848cd7e
SC
30775#ifdef __STDC__
30776# include <limits.h>
30777#else
30778# include <assert.h>
30779#endif
ac1cb8d3
VS
30780
30781#undef $ac_func
30782
a848cd7e
SC
30783/* Override any gcc2 internal prototype to avoid an error. */
30784#ifdef __cplusplus
30785extern "C"
30786{
30787#endif
30788/* We use char because int might match the return type of a gcc2
30789 builtin and then its argument prototype would still apply. */
30790char $ac_func ();
30791/* The GNU C library defines this for functions which it implements
30792 to always fail with ENOSYS. Some functions are actually named
30793 something starting with __ and the normal name is an alias. */
30794#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30795choke me
30796#else
30797char (*f) () = $ac_func;
30798#endif
30799#ifdef __cplusplus
30800}
30801#endif
30802
30803int
30804main ()
30805{
30806return f != $ac_func;
30807 ;
30808 return 0;
30809}
30810_ACEOF
30811rm -f conftest.$ac_objext conftest$ac_exeext
30812if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30813 (eval $ac_link) 2>conftest.er1
a848cd7e 30814 ac_status=$?
ac1cb8d3
VS
30815 grep -v '^ *+' conftest.er1 >conftest.err
30816 rm -f conftest.er1
30817 cat conftest.err >&5
a848cd7e
SC
30818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30819 (exit $ac_status); } &&
da4486fb 30820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30822 (eval $ac_try) 2>&5
30823 ac_status=$?
30824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30825 (exit $ac_status); }; } &&
30826 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30828 (eval $ac_try) 2>&5
30829 ac_status=$?
30830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30831 (exit $ac_status); }; }; then
30832 eval "$as_ac_var=yes"
30833else
30834 echo "$as_me: failed program was:" >&5
30835sed 's/^/| /' conftest.$ac_ext >&5
30836
30837eval "$as_ac_var=no"
30838fi
ac1cb8d3
VS
30839rm -f conftest.err conftest.$ac_objext \
30840 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30841fi
30842echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30843echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30844if test `eval echo '${'$as_ac_var'}'` = yes; then
30845 cat >>confdefs.h <<_ACEOF
30846#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30847_ACEOF
30848
30849fi
30850done
30851
30852
30853
30854
30855for ac_func in putenv setenv
30856do
30857as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30858echo "$as_me:$LINENO: checking for $ac_func" >&5
30859echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30860if eval "test \"\${$as_ac_var+set}\" = set"; then
30861 echo $ECHO_N "(cached) $ECHO_C" >&6
30862else
30863 cat >conftest.$ac_ext <<_ACEOF
30864/* confdefs.h. */
30865_ACEOF
30866cat confdefs.h >>conftest.$ac_ext
30867cat >>conftest.$ac_ext <<_ACEOF
30868/* end confdefs.h. */
ac1cb8d3
VS
30869/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30871#define $ac_func innocuous_$ac_func
30872
a848cd7e
SC
30873/* System header to define __stub macros and hopefully few prototypes,
30874 which can conflict with char $ac_func (); below.
30875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30876 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30877
a848cd7e
SC
30878#ifdef __STDC__
30879# include <limits.h>
30880#else
30881# include <assert.h>
30882#endif
ac1cb8d3
VS
30883
30884#undef $ac_func
30885
a848cd7e
SC
30886/* Override any gcc2 internal prototype to avoid an error. */
30887#ifdef __cplusplus
30888extern "C"
30889{
30890#endif
30891/* We use char because int might match the return type of a gcc2
30892 builtin and then its argument prototype would still apply. */
30893char $ac_func ();
30894/* The GNU C library defines this for functions which it implements
30895 to always fail with ENOSYS. Some functions are actually named
30896 something starting with __ and the normal name is an alias. */
30897#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30898choke me
30899#else
30900char (*f) () = $ac_func;
30901#endif
30902#ifdef __cplusplus
30903}
30904#endif
30905
30906int
30907main ()
30908{
30909return f != $ac_func;
30910 ;
30911 return 0;
30912}
30913_ACEOF
30914rm -f conftest.$ac_objext conftest$ac_exeext
30915if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30916 (eval $ac_link) 2>conftest.er1
a848cd7e 30917 ac_status=$?
ac1cb8d3
VS
30918 grep -v '^ *+' conftest.er1 >conftest.err
30919 rm -f conftest.er1
30920 cat conftest.err >&5
a848cd7e
SC
30921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30922 (exit $ac_status); } &&
da4486fb 30923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30925 (eval $ac_try) 2>&5
30926 ac_status=$?
30927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30928 (exit $ac_status); }; } &&
30929 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30931 (eval $ac_try) 2>&5
30932 ac_status=$?
30933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30934 (exit $ac_status); }; }; then
30935 eval "$as_ac_var=yes"
30936else
30937 echo "$as_me: failed program was:" >&5
30938sed 's/^/| /' conftest.$ac_ext >&5
30939
30940eval "$as_ac_var=no"
30941fi
ac1cb8d3
VS
30942rm -f conftest.err conftest.$ac_objext \
30943 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30944fi
30945echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30946echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30947if test `eval echo '${'$as_ac_var'}'` = yes; then
30948 cat >>confdefs.h <<_ACEOF
30949#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30950_ACEOF
30951 break
30952fi
30953done
30954
30955
30956HAVE_SOME_SLEEP_FUNC=0
30957if test "$USE_BEOS" = 1; then
30958 cat >>confdefs.h <<\_ACEOF
30959#define HAVE_SLEEP 1
30960_ACEOF
30961
30962 HAVE_SOME_SLEEP_FUNC=1
30963fi
30964
30965if test "$USE_DARWIN" = 1; then
30966 cat >>confdefs.h <<\_ACEOF
30967#define HAVE_USLEEP 1
30968_ACEOF
30969
30970 HAVE_SOME_SLEEP_FUNC=1
30971fi
30972
30973if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
30974 POSIX4_LINK=
30975
30976for ac_func in nanosleep
30977do
30978as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30979echo "$as_me:$LINENO: checking for $ac_func" >&5
30980echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30981if eval "test \"\${$as_ac_var+set}\" = set"; then
30982 echo $ECHO_N "(cached) $ECHO_C" >&6
30983else
30984 cat >conftest.$ac_ext <<_ACEOF
30985/* confdefs.h. */
30986_ACEOF
30987cat confdefs.h >>conftest.$ac_ext
30988cat >>conftest.$ac_ext <<_ACEOF
30989/* end confdefs.h. */
ac1cb8d3
VS
30990/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30992#define $ac_func innocuous_$ac_func
30993
a848cd7e
SC
30994/* System header to define __stub macros and hopefully few prototypes,
30995 which can conflict with char $ac_func (); below.
30996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30997 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30998
a848cd7e
SC
30999#ifdef __STDC__
31000# include <limits.h>
31001#else
31002# include <assert.h>
31003#endif
ac1cb8d3
VS
31004
31005#undef $ac_func
31006
a848cd7e
SC
31007/* Override any gcc2 internal prototype to avoid an error. */
31008#ifdef __cplusplus
31009extern "C"
31010{
31011#endif
31012/* We use char because int might match the return type of a gcc2
31013 builtin and then its argument prototype would still apply. */
31014char $ac_func ();
31015/* The GNU C library defines this for functions which it implements
31016 to always fail with ENOSYS. Some functions are actually named
31017 something starting with __ and the normal name is an alias. */
31018#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31019choke me
31020#else
31021char (*f) () = $ac_func;
31022#endif
31023#ifdef __cplusplus
31024}
31025#endif
31026
31027int
31028main ()
31029{
31030return f != $ac_func;
31031 ;
31032 return 0;
31033}
31034_ACEOF
31035rm -f conftest.$ac_objext conftest$ac_exeext
31036if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31037 (eval $ac_link) 2>conftest.er1
a848cd7e 31038 ac_status=$?
ac1cb8d3
VS
31039 grep -v '^ *+' conftest.er1 >conftest.err
31040 rm -f conftest.er1
31041 cat conftest.err >&5
a848cd7e
SC
31042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31043 (exit $ac_status); } &&
da4486fb 31044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31046 (eval $ac_try) 2>&5
31047 ac_status=$?
31048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31049 (exit $ac_status); }; } &&
31050 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31052 (eval $ac_try) 2>&5
31053 ac_status=$?
31054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31055 (exit $ac_status); }; }; then
31056 eval "$as_ac_var=yes"
31057else
31058 echo "$as_me: failed program was:" >&5
31059sed 's/^/| /' conftest.$ac_ext >&5
31060
31061eval "$as_ac_var=no"
31062fi
ac1cb8d3
VS
31063rm -f conftest.err conftest.$ac_objext \
31064 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31065fi
31066echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31067echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31068if test `eval echo '${'$as_ac_var'}'` = yes; then
31069 cat >>confdefs.h <<_ACEOF
31070#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31071_ACEOF
31072 cat >>confdefs.h <<\_ACEOF
31073#define HAVE_NANOSLEEP 1
31074_ACEOF
31075
31076else
31077
31078 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
31079echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
31080if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
31081 echo $ECHO_N "(cached) $ECHO_C" >&6
31082else
31083 ac_check_lib_save_LIBS=$LIBS
31084LIBS="-lposix4 $LIBS"
31085cat >conftest.$ac_ext <<_ACEOF
31086/* confdefs.h. */
31087_ACEOF
31088cat confdefs.h >>conftest.$ac_ext
31089cat >>conftest.$ac_ext <<_ACEOF
31090/* end confdefs.h. */
31091
31092/* Override any gcc2 internal prototype to avoid an error. */
31093#ifdef __cplusplus
31094extern "C"
31095#endif
31096/* We use char because int might match the return type of a gcc2
31097 builtin and then its argument prototype would still apply. */
31098char nanosleep ();
31099int
31100main ()
31101{
31102nanosleep ();
31103 ;
31104 return 0;
31105}
31106_ACEOF
31107rm -f conftest.$ac_objext conftest$ac_exeext
31108if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31109 (eval $ac_link) 2>conftest.er1
a848cd7e 31110 ac_status=$?
ac1cb8d3
VS
31111 grep -v '^ *+' conftest.er1 >conftest.err
31112 rm -f conftest.er1
31113 cat conftest.err >&5
a848cd7e
SC
31114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31115 (exit $ac_status); } &&
da4486fb 31116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31118 (eval $ac_try) 2>&5
31119 ac_status=$?
31120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31121 (exit $ac_status); }; } &&
31122 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31124 (eval $ac_try) 2>&5
31125 ac_status=$?
31126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31127 (exit $ac_status); }; }; then
31128 ac_cv_lib_posix4_nanosleep=yes
31129else
31130 echo "$as_me: failed program was:" >&5
31131sed 's/^/| /' conftest.$ac_ext >&5
31132
31133ac_cv_lib_posix4_nanosleep=no
31134fi
ac1cb8d3
VS
31135rm -f conftest.err conftest.$ac_objext \
31136 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31137LIBS=$ac_check_lib_save_LIBS
31138fi
31139echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
31140echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
31141if test $ac_cv_lib_posix4_nanosleep = yes; then
31142
31143 cat >>confdefs.h <<\_ACEOF
31144#define HAVE_NANOSLEEP 1
31145_ACEOF
31146
31147 POSIX4_LINK=" -lposix4"
31148
31149else
31150
31151
31152for ac_func in usleep
31153do
31154as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31155echo "$as_me:$LINENO: checking for $ac_func" >&5
31156echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31157if eval "test \"\${$as_ac_var+set}\" = set"; then
31158 echo $ECHO_N "(cached) $ECHO_C" >&6
31159else
31160 cat >conftest.$ac_ext <<_ACEOF
31161/* confdefs.h. */
31162_ACEOF
31163cat confdefs.h >>conftest.$ac_ext
31164cat >>conftest.$ac_ext <<_ACEOF
31165/* end confdefs.h. */
ac1cb8d3
VS
31166/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31167 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31168#define $ac_func innocuous_$ac_func
31169
a848cd7e
SC
31170/* System header to define __stub macros and hopefully few prototypes,
31171 which can conflict with char $ac_func (); below.
31172 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31173 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31174
a848cd7e
SC
31175#ifdef __STDC__
31176# include <limits.h>
31177#else
31178# include <assert.h>
31179#endif
ac1cb8d3
VS
31180
31181#undef $ac_func
31182
a848cd7e
SC
31183/* Override any gcc2 internal prototype to avoid an error. */
31184#ifdef __cplusplus
31185extern "C"
31186{
31187#endif
31188/* We use char because int might match the return type of a gcc2
31189 builtin and then its argument prototype would still apply. */
31190char $ac_func ();
31191/* The GNU C library defines this for functions which it implements
31192 to always fail with ENOSYS. Some functions are actually named
31193 something starting with __ and the normal name is an alias. */
31194#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31195choke me
31196#else
31197char (*f) () = $ac_func;
31198#endif
31199#ifdef __cplusplus
31200}
31201#endif
31202
31203int
31204main ()
31205{
31206return f != $ac_func;
31207 ;
31208 return 0;
31209}
31210_ACEOF
31211rm -f conftest.$ac_objext conftest$ac_exeext
31212if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31213 (eval $ac_link) 2>conftest.er1
a848cd7e 31214 ac_status=$?
ac1cb8d3
VS
31215 grep -v '^ *+' conftest.er1 >conftest.err
31216 rm -f conftest.er1
31217 cat conftest.err >&5
a848cd7e
SC
31218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31219 (exit $ac_status); } &&
da4486fb 31220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31222 (eval $ac_try) 2>&5
31223 ac_status=$?
31224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31225 (exit $ac_status); }; } &&
31226 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31228 (eval $ac_try) 2>&5
31229 ac_status=$?
31230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31231 (exit $ac_status); }; }; then
31232 eval "$as_ac_var=yes"
31233else
31234 echo "$as_me: failed program was:" >&5
31235sed 's/^/| /' conftest.$ac_ext >&5
31236
31237eval "$as_ac_var=no"
31238fi
ac1cb8d3
VS
31239rm -f conftest.err conftest.$ac_objext \
31240 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31241fi
31242echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31243echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31244if test `eval echo '${'$as_ac_var'}'` = yes; then
31245 cat >>confdefs.h <<_ACEOF
31246#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31247_ACEOF
31248 cat >>confdefs.h <<\_ACEOF
31249#define HAVE_USLEEP 1
31250_ACEOF
31251
31252else
31253 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
31254echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
31255
31256fi
31257done
31258
31259
31260
31261fi
31262
31263
31264
31265fi
31266done
31267
31268fi
31269
31270
31271
31272for ac_func in uname gethostname
31273do
31274as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31275echo "$as_me:$LINENO: checking for $ac_func" >&5
31276echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31277if eval "test \"\${$as_ac_var+set}\" = set"; then
31278 echo $ECHO_N "(cached) $ECHO_C" >&6
31279else
31280 cat >conftest.$ac_ext <<_ACEOF
31281/* confdefs.h. */
31282_ACEOF
31283cat confdefs.h >>conftest.$ac_ext
31284cat >>conftest.$ac_ext <<_ACEOF
31285/* end confdefs.h. */
ac1cb8d3
VS
31286/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31288#define $ac_func innocuous_$ac_func
31289
a848cd7e
SC
31290/* System header to define __stub macros and hopefully few prototypes,
31291 which can conflict with char $ac_func (); below.
31292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31293 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31294
a848cd7e
SC
31295#ifdef __STDC__
31296# include <limits.h>
31297#else
31298# include <assert.h>
31299#endif
ac1cb8d3
VS
31300
31301#undef $ac_func
31302
a848cd7e
SC
31303/* Override any gcc2 internal prototype to avoid an error. */
31304#ifdef __cplusplus
31305extern "C"
31306{
31307#endif
31308/* We use char because int might match the return type of a gcc2
31309 builtin and then its argument prototype would still apply. */
31310char $ac_func ();
31311/* The GNU C library defines this for functions which it implements
31312 to always fail with ENOSYS. Some functions are actually named
31313 something starting with __ and the normal name is an alias. */
31314#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31315choke me
31316#else
31317char (*f) () = $ac_func;
31318#endif
31319#ifdef __cplusplus
31320}
31321#endif
31322
31323int
31324main ()
31325{
31326return f != $ac_func;
31327 ;
31328 return 0;
31329}
31330_ACEOF
31331rm -f conftest.$ac_objext conftest$ac_exeext
31332if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31333 (eval $ac_link) 2>conftest.er1
a848cd7e 31334 ac_status=$?
ac1cb8d3
VS
31335 grep -v '^ *+' conftest.er1 >conftest.err
31336 rm -f conftest.er1
31337 cat conftest.err >&5
a848cd7e
SC
31338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31339 (exit $ac_status); } &&
da4486fb 31340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31342 (eval $ac_try) 2>&5
31343 ac_status=$?
31344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31345 (exit $ac_status); }; } &&
31346 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31348 (eval $ac_try) 2>&5
31349 ac_status=$?
31350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31351 (exit $ac_status); }; }; then
31352 eval "$as_ac_var=yes"
31353else
31354 echo "$as_me: failed program was:" >&5
31355sed 's/^/| /' conftest.$ac_ext >&5
31356
31357eval "$as_ac_var=no"
31358fi
ac1cb8d3
VS
31359rm -f conftest.err conftest.$ac_objext \
31360 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31361fi
31362echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31363echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31364if test `eval echo '${'$as_ac_var'}'` = yes; then
31365 cat >>confdefs.h <<_ACEOF
31366#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31367_ACEOF
31368 break
31369fi
31370done
31371
31372
31373
31374
31375ac_ext=cc
31376ac_cpp='$CXXCPP $CPPFLAGS'
31377ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31378ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31379ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31380
31381
31382
31383for ac_func in strtok_r
31384do
31385as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31386echo "$as_me:$LINENO: checking for $ac_func" >&5
31387echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31388if eval "test \"\${$as_ac_var+set}\" = set"; then
31389 echo $ECHO_N "(cached) $ECHO_C" >&6
31390else
31391 cat >conftest.$ac_ext <<_ACEOF
31392/* confdefs.h. */
31393_ACEOF
31394cat confdefs.h >>conftest.$ac_ext
31395cat >>conftest.$ac_ext <<_ACEOF
31396/* end confdefs.h. */
ac1cb8d3
VS
31397/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31398 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31399#define $ac_func innocuous_$ac_func
31400
a848cd7e
SC
31401/* System header to define __stub macros and hopefully few prototypes,
31402 which can conflict with char $ac_func (); below.
31403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31404 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31405
a848cd7e
SC
31406#ifdef __STDC__
31407# include <limits.h>
31408#else
31409# include <assert.h>
31410#endif
ac1cb8d3
VS
31411
31412#undef $ac_func
31413
a848cd7e
SC
31414/* Override any gcc2 internal prototype to avoid an error. */
31415#ifdef __cplusplus
31416extern "C"
31417{
31418#endif
31419/* We use char because int might match the return type of a gcc2
31420 builtin and then its argument prototype would still apply. */
31421char $ac_func ();
31422/* The GNU C library defines this for functions which it implements
31423 to always fail with ENOSYS. Some functions are actually named
31424 something starting with __ and the normal name is an alias. */
31425#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31426choke me
31427#else
31428char (*f) () = $ac_func;
31429#endif
31430#ifdef __cplusplus
31431}
31432#endif
31433
31434int
31435main ()
31436{
31437return f != $ac_func;
31438 ;
31439 return 0;
31440}
31441_ACEOF
31442rm -f conftest.$ac_objext conftest$ac_exeext
31443if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31444 (eval $ac_link) 2>conftest.er1
a848cd7e 31445 ac_status=$?
ac1cb8d3
VS
31446 grep -v '^ *+' conftest.er1 >conftest.err
31447 rm -f conftest.er1
31448 cat conftest.err >&5
a848cd7e
SC
31449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31450 (exit $ac_status); } &&
da4486fb 31451 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31453 (eval $ac_try) 2>&5
31454 ac_status=$?
31455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31456 (exit $ac_status); }; } &&
31457 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31459 (eval $ac_try) 2>&5
31460 ac_status=$?
31461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31462 (exit $ac_status); }; }; then
31463 eval "$as_ac_var=yes"
31464else
31465 echo "$as_me: failed program was:" >&5
31466sed 's/^/| /' conftest.$ac_ext >&5
31467
31468eval "$as_ac_var=no"
31469fi
ac1cb8d3
VS
31470rm -f conftest.err conftest.$ac_objext \
31471 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31472fi
31473echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31474echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31475if test `eval echo '${'$as_ac_var'}'` = yes; then
31476 cat >>confdefs.h <<_ACEOF
31477#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31478_ACEOF
31479
31480fi
31481done
31482
31483
31484ac_ext=c
31485ac_cpp='$CPP $CPPFLAGS'
31486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31488ac_compiler_gnu=$ac_cv_c_compiler_gnu
31489
31490
31491INET_LINK=
31492
31493for ac_func in inet_addr
31494do
31495as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31496echo "$as_me:$LINENO: checking for $ac_func" >&5
31497echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31498if eval "test \"\${$as_ac_var+set}\" = set"; then
31499 echo $ECHO_N "(cached) $ECHO_C" >&6
31500else
31501 cat >conftest.$ac_ext <<_ACEOF
31502/* confdefs.h. */
31503_ACEOF
31504cat confdefs.h >>conftest.$ac_ext
31505cat >>conftest.$ac_ext <<_ACEOF
31506/* end confdefs.h. */
ac1cb8d3
VS
31507/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31508 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31509#define $ac_func innocuous_$ac_func
31510
a848cd7e
SC
31511/* System header to define __stub macros and hopefully few prototypes,
31512 which can conflict with char $ac_func (); below.
31513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31514 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31515
a848cd7e
SC
31516#ifdef __STDC__
31517# include <limits.h>
31518#else
31519# include <assert.h>
31520#endif
ac1cb8d3
VS
31521
31522#undef $ac_func
31523
a848cd7e
SC
31524/* Override any gcc2 internal prototype to avoid an error. */
31525#ifdef __cplusplus
31526extern "C"
31527{
31528#endif
31529/* We use char because int might match the return type of a gcc2
31530 builtin and then its argument prototype would still apply. */
31531char $ac_func ();
31532/* The GNU C library defines this for functions which it implements
31533 to always fail with ENOSYS. Some functions are actually named
31534 something starting with __ and the normal name is an alias. */
31535#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31536choke me
31537#else
31538char (*f) () = $ac_func;
31539#endif
31540#ifdef __cplusplus
31541}
31542#endif
31543
31544int
31545main ()
31546{
31547return f != $ac_func;
31548 ;
31549 return 0;
31550}
31551_ACEOF
31552rm -f conftest.$ac_objext conftest$ac_exeext
31553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31554 (eval $ac_link) 2>conftest.er1
a848cd7e 31555 ac_status=$?
ac1cb8d3
VS
31556 grep -v '^ *+' conftest.er1 >conftest.err
31557 rm -f conftest.er1
31558 cat conftest.err >&5
a848cd7e
SC
31559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31560 (exit $ac_status); } &&
da4486fb 31561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31563 (eval $ac_try) 2>&5
31564 ac_status=$?
31565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31566 (exit $ac_status); }; } &&
31567 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31569 (eval $ac_try) 2>&5
31570 ac_status=$?
31571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31572 (exit $ac_status); }; }; then
31573 eval "$as_ac_var=yes"
31574else
31575 echo "$as_me: failed program was:" >&5
31576sed 's/^/| /' conftest.$ac_ext >&5
31577
31578eval "$as_ac_var=no"
31579fi
ac1cb8d3
VS
31580rm -f conftest.err conftest.$ac_objext \
31581 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31582fi
31583echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31584echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31585if test `eval echo '${'$as_ac_var'}'` = yes; then
31586 cat >>confdefs.h <<_ACEOF
31587#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31588_ACEOF
31589 cat >>confdefs.h <<\_ACEOF
31590#define HAVE_INET_ADDR 1
31591_ACEOF
31592
31593else
31594
31595 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
31596echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
31597if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
31598 echo $ECHO_N "(cached) $ECHO_C" >&6
31599else
31600 ac_check_lib_save_LIBS=$LIBS
31601LIBS="-lnsl $LIBS"
31602cat >conftest.$ac_ext <<_ACEOF
31603/* confdefs.h. */
31604_ACEOF
31605cat confdefs.h >>conftest.$ac_ext
31606cat >>conftest.$ac_ext <<_ACEOF
31607/* end confdefs.h. */
31608
31609/* Override any gcc2 internal prototype to avoid an error. */
31610#ifdef __cplusplus
31611extern "C"
31612#endif
31613/* We use char because int might match the return type of a gcc2
31614 builtin and then its argument prototype would still apply. */
31615char inet_addr ();
31616int
31617main ()
31618{
31619inet_addr ();
31620 ;
31621 return 0;
31622}
31623_ACEOF
31624rm -f conftest.$ac_objext conftest$ac_exeext
31625if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31626 (eval $ac_link) 2>conftest.er1
a848cd7e 31627 ac_status=$?
ac1cb8d3
VS
31628 grep -v '^ *+' conftest.er1 >conftest.err
31629 rm -f conftest.er1
31630 cat conftest.err >&5
a848cd7e
SC
31631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31632 (exit $ac_status); } &&
da4486fb 31633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31635 (eval $ac_try) 2>&5
31636 ac_status=$?
31637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31638 (exit $ac_status); }; } &&
31639 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31641 (eval $ac_try) 2>&5
31642 ac_status=$?
31643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31644 (exit $ac_status); }; }; then
31645 ac_cv_lib_nsl_inet_addr=yes
31646else
31647 echo "$as_me: failed program was:" >&5
31648sed 's/^/| /' conftest.$ac_ext >&5
31649
31650ac_cv_lib_nsl_inet_addr=no
31651fi
ac1cb8d3
VS
31652rm -f conftest.err conftest.$ac_objext \
31653 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31654LIBS=$ac_check_lib_save_LIBS
31655fi
31656echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
31657echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
31658if test $ac_cv_lib_nsl_inet_addr = yes; then
31659 INET_LINK="nsl"
31660else
31661
31662 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
31663echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
31664if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
31665 echo $ECHO_N "(cached) $ECHO_C" >&6
31666else
31667 ac_check_lib_save_LIBS=$LIBS
31668LIBS="-lresolv $LIBS"
31669cat >conftest.$ac_ext <<_ACEOF
31670/* confdefs.h. */
31671_ACEOF
31672cat confdefs.h >>conftest.$ac_ext
31673cat >>conftest.$ac_ext <<_ACEOF
31674/* end confdefs.h. */
31675
31676/* Override any gcc2 internal prototype to avoid an error. */
31677#ifdef __cplusplus
31678extern "C"
31679#endif
31680/* We use char because int might match the return type of a gcc2
31681 builtin and then its argument prototype would still apply. */
31682char inet_addr ();
31683int
31684main ()
31685{
31686inet_addr ();
31687 ;
31688 return 0;
31689}
31690_ACEOF
31691rm -f conftest.$ac_objext conftest$ac_exeext
31692if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31693 (eval $ac_link) 2>conftest.er1
a848cd7e 31694 ac_status=$?
ac1cb8d3
VS
31695 grep -v '^ *+' conftest.er1 >conftest.err
31696 rm -f conftest.er1
31697 cat conftest.err >&5
a848cd7e
SC
31698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31699 (exit $ac_status); } &&
da4486fb 31700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31702 (eval $ac_try) 2>&5
31703 ac_status=$?
31704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31705 (exit $ac_status); }; } &&
31706 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31708 (eval $ac_try) 2>&5
31709 ac_status=$?
31710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31711 (exit $ac_status); }; }; then
31712 ac_cv_lib_resolv_inet_addr=yes
31713else
31714 echo "$as_me: failed program was:" >&5
31715sed 's/^/| /' conftest.$ac_ext >&5
31716
31717ac_cv_lib_resolv_inet_addr=no
31718fi
ac1cb8d3
VS
31719rm -f conftest.err conftest.$ac_objext \
31720 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31721LIBS=$ac_check_lib_save_LIBS
31722fi
31723echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
31724echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
31725if test $ac_cv_lib_resolv_inet_addr = yes; then
31726 INET_LINK="resolv"
31727else
31728
31729 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
31730echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
31731if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
31732 echo $ECHO_N "(cached) $ECHO_C" >&6
31733else
31734 ac_check_lib_save_LIBS=$LIBS
31735LIBS="-lsocket $LIBS"
31736cat >conftest.$ac_ext <<_ACEOF
31737/* confdefs.h. */
31738_ACEOF
31739cat confdefs.h >>conftest.$ac_ext
31740cat >>conftest.$ac_ext <<_ACEOF
31741/* end confdefs.h. */
31742
31743/* Override any gcc2 internal prototype to avoid an error. */
31744#ifdef __cplusplus
31745extern "C"
31746#endif
31747/* We use char because int might match the return type of a gcc2
31748 builtin and then its argument prototype would still apply. */
31749char inet_addr ();
31750int
31751main ()
31752{
31753inet_addr ();
31754 ;
31755 return 0;
31756}
31757_ACEOF
31758rm -f conftest.$ac_objext conftest$ac_exeext
31759if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31760 (eval $ac_link) 2>conftest.er1
a848cd7e 31761 ac_status=$?
ac1cb8d3
VS
31762 grep -v '^ *+' conftest.er1 >conftest.err
31763 rm -f conftest.er1
31764 cat conftest.err >&5
a848cd7e
SC
31765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31766 (exit $ac_status); } &&
da4486fb 31767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31769 (eval $ac_try) 2>&5
31770 ac_status=$?
31771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31772 (exit $ac_status); }; } &&
31773 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31775 (eval $ac_try) 2>&5
31776 ac_status=$?
31777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31778 (exit $ac_status); }; }; then
31779 ac_cv_lib_socket_inet_addr=yes
31780else
31781 echo "$as_me: failed program was:" >&5
31782sed 's/^/| /' conftest.$ac_ext >&5
31783
31784ac_cv_lib_socket_inet_addr=no
31785fi
ac1cb8d3
VS
31786rm -f conftest.err conftest.$ac_objext \
31787 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31788LIBS=$ac_check_lib_save_LIBS
31789fi
31790echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
31791echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
31792if test $ac_cv_lib_socket_inet_addr = yes; then
31793 INET_LINK="socket"
31794
31795fi
31796
31797
31798
31799fi
31800
31801
31802
31803fi
31804
31805
31806
31807fi
31808done
31809
31810
31811
31812for ac_func in inet_aton
31813do
31814as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31815echo "$as_me:$LINENO: checking for $ac_func" >&5
31816echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31817if eval "test \"\${$as_ac_var+set}\" = set"; then
31818 echo $ECHO_N "(cached) $ECHO_C" >&6
31819else
31820 cat >conftest.$ac_ext <<_ACEOF
31821/* confdefs.h. */
31822_ACEOF
31823cat confdefs.h >>conftest.$ac_ext
31824cat >>conftest.$ac_ext <<_ACEOF
31825/* end confdefs.h. */
ac1cb8d3
VS
31826/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31828#define $ac_func innocuous_$ac_func
31829
a848cd7e
SC
31830/* System header to define __stub macros and hopefully few prototypes,
31831 which can conflict with char $ac_func (); below.
31832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31833 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31834
a848cd7e
SC
31835#ifdef __STDC__
31836# include <limits.h>
31837#else
31838# include <assert.h>
31839#endif
ac1cb8d3
VS
31840
31841#undef $ac_func
31842
a848cd7e
SC
31843/* Override any gcc2 internal prototype to avoid an error. */
31844#ifdef __cplusplus
31845extern "C"
31846{
31847#endif
31848/* We use char because int might match the return type of a gcc2
31849 builtin and then its argument prototype would still apply. */
31850char $ac_func ();
31851/* The GNU C library defines this for functions which it implements
31852 to always fail with ENOSYS. Some functions are actually named
31853 something starting with __ and the normal name is an alias. */
31854#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31855choke me
31856#else
31857char (*f) () = $ac_func;
31858#endif
31859#ifdef __cplusplus
31860}
31861#endif
31862
31863int
31864main ()
31865{
31866return f != $ac_func;
31867 ;
31868 return 0;
31869}
31870_ACEOF
31871rm -f conftest.$ac_objext conftest$ac_exeext
31872if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31873 (eval $ac_link) 2>conftest.er1
a848cd7e 31874 ac_status=$?
ac1cb8d3
VS
31875 grep -v '^ *+' conftest.er1 >conftest.err
31876 rm -f conftest.er1
31877 cat conftest.err >&5
a848cd7e
SC
31878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31879 (exit $ac_status); } &&
da4486fb 31880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31882 (eval $ac_try) 2>&5
31883 ac_status=$?
31884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31885 (exit $ac_status); }; } &&
31886 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31888 (eval $ac_try) 2>&5
31889 ac_status=$?
31890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31891 (exit $ac_status); }; }; then
31892 eval "$as_ac_var=yes"
31893else
31894 echo "$as_me: failed program was:" >&5
31895sed 's/^/| /' conftest.$ac_ext >&5
31896
31897eval "$as_ac_var=no"
31898fi
ac1cb8d3
VS
31899rm -f conftest.err conftest.$ac_objext \
31900 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31901fi
31902echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31903echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31904if test `eval echo '${'$as_ac_var'}'` = yes; then
31905 cat >>confdefs.h <<_ACEOF
31906#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31907_ACEOF
31908 cat >>confdefs.h <<\_ACEOF
31909#define HAVE_INET_ATON 1
31910_ACEOF
31911
31912else
31913
31914 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
31915echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
31916echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
31917if eval "test \"\${$as_ac_Lib+set}\" = set"; then
31918 echo $ECHO_N "(cached) $ECHO_C" >&6
31919else
31920 ac_check_lib_save_LIBS=$LIBS
31921LIBS="-l$INET_LINK $LIBS"
31922cat >conftest.$ac_ext <<_ACEOF
31923/* confdefs.h. */
31924_ACEOF
31925cat confdefs.h >>conftest.$ac_ext
31926cat >>conftest.$ac_ext <<_ACEOF
31927/* end confdefs.h. */
31928
31929/* Override any gcc2 internal prototype to avoid an error. */
31930#ifdef __cplusplus
31931extern "C"
31932#endif
31933/* We use char because int might match the return type of a gcc2
31934 builtin and then its argument prototype would still apply. */
31935char inet_aton ();
31936int
31937main ()
31938{
31939inet_aton ();
31940 ;
31941 return 0;
31942}
31943_ACEOF
31944rm -f conftest.$ac_objext conftest$ac_exeext
31945if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31946 (eval $ac_link) 2>conftest.er1
a848cd7e 31947 ac_status=$?
ac1cb8d3
VS
31948 grep -v '^ *+' conftest.er1 >conftest.err
31949 rm -f conftest.er1
31950 cat conftest.err >&5
a848cd7e
SC
31951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31952 (exit $ac_status); } &&
da4486fb 31953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31955 (eval $ac_try) 2>&5
31956 ac_status=$?
31957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31958 (exit $ac_status); }; } &&
31959 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31961 (eval $ac_try) 2>&5
31962 ac_status=$?
31963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31964 (exit $ac_status); }; }; then
31965 eval "$as_ac_Lib=yes"
31966else
31967 echo "$as_me: failed program was:" >&5
31968sed 's/^/| /' conftest.$ac_ext >&5
31969
31970eval "$as_ac_Lib=no"
31971fi
ac1cb8d3
VS
31972rm -f conftest.err conftest.$ac_objext \
31973 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31974LIBS=$ac_check_lib_save_LIBS
31975fi
31976echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
31977echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
31978if test `eval echo '${'$as_ac_Lib'}'` = yes; then
31979 cat >>confdefs.h <<\_ACEOF
31980#define HAVE_INET_ATON 1
31981_ACEOF
31982
31983fi
31984
31985
31986fi
31987done
31988
31989
31990if test "x$INET_LINK" != "x"; then
31991 cat >>confdefs.h <<\_ACEOF
31992#define HAVE_INET_ADDR 1
31993_ACEOF
31994
31995 INET_LINK=" -l$INET_LINK"
31996fi
31997
31998fi
31999
32000
32001
32002EXTRALIBS_ESD=
32003echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
32004echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
32005if test "${ac_cv_lib_esd_esd_close+set}" = set; then
32006 echo $ECHO_N "(cached) $ECHO_C" >&6
32007else
32008 ac_check_lib_save_LIBS=$LIBS
32009LIBS="-lesd $LIBS"
32010cat >conftest.$ac_ext <<_ACEOF
32011/* confdefs.h. */
32012_ACEOF
32013cat confdefs.h >>conftest.$ac_ext
32014cat >>conftest.$ac_ext <<_ACEOF
32015/* end confdefs.h. */
32016
32017/* Override any gcc2 internal prototype to avoid an error. */
32018#ifdef __cplusplus
32019extern "C"
32020#endif
32021/* We use char because int might match the return type of a gcc2
32022 builtin and then its argument prototype would still apply. */
32023char esd_close ();
32024int
32025main ()
32026{
32027esd_close ();
32028 ;
32029 return 0;
32030}
32031_ACEOF
32032rm -f conftest.$ac_objext conftest$ac_exeext
32033if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32034 (eval $ac_link) 2>conftest.er1
a848cd7e 32035 ac_status=$?
ac1cb8d3
VS
32036 grep -v '^ *+' conftest.er1 >conftest.err
32037 rm -f conftest.er1
32038 cat conftest.err >&5
a848cd7e
SC
32039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32040 (exit $ac_status); } &&
da4486fb 32041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32043 (eval $ac_try) 2>&5
32044 ac_status=$?
32045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32046 (exit $ac_status); }; } &&
32047 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32049 (eval $ac_try) 2>&5
32050 ac_status=$?
32051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32052 (exit $ac_status); }; }; then
32053 ac_cv_lib_esd_esd_close=yes
32054else
32055 echo "$as_me: failed program was:" >&5
32056sed 's/^/| /' conftest.$ac_ext >&5
32057
32058ac_cv_lib_esd_esd_close=no
32059fi
ac1cb8d3
VS
32060rm -f conftest.err conftest.$ac_objext \
32061 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32062LIBS=$ac_check_lib_save_LIBS
32063fi
32064echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
32065echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
32066if test $ac_cv_lib_esd_esd_close = yes; then
32067
32068
32069for ac_header in esd.h
32070do
32071as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32072if eval "test \"\${$as_ac_Header+set}\" = set"; then
32073 echo "$as_me:$LINENO: checking for $ac_header" >&5
32074echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32075if eval "test \"\${$as_ac_Header+set}\" = set"; then
32076 echo $ECHO_N "(cached) $ECHO_C" >&6
32077fi
32078echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32079echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32080else
32081 # Is the header compilable?
32082echo "$as_me:$LINENO: checking $ac_header usability" >&5
32083echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32084cat >conftest.$ac_ext <<_ACEOF
32085/* confdefs.h. */
32086_ACEOF
32087cat confdefs.h >>conftest.$ac_ext
32088cat >>conftest.$ac_ext <<_ACEOF
32089/* end confdefs.h. */
32090$ac_includes_default
32091#include <$ac_header>
32092_ACEOF
32093rm -f conftest.$ac_objext
32094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32095 (eval $ac_compile) 2>conftest.er1
a848cd7e 32096 ac_status=$?
ac1cb8d3
VS
32097 grep -v '^ *+' conftest.er1 >conftest.err
32098 rm -f conftest.er1
32099 cat conftest.err >&5
a848cd7e
SC
32100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32101 (exit $ac_status); } &&
da4486fb 32102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32104 (eval $ac_try) 2>&5
32105 ac_status=$?
32106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32107 (exit $ac_status); }; } &&
32108 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32110 (eval $ac_try) 2>&5
32111 ac_status=$?
32112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32113 (exit $ac_status); }; }; then
32114 ac_header_compiler=yes
32115else
32116 echo "$as_me: failed program was:" >&5
32117sed 's/^/| /' conftest.$ac_ext >&5
32118
32119ac_header_compiler=no
32120fi
ac1cb8d3 32121rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32122echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32123echo "${ECHO_T}$ac_header_compiler" >&6
32124
32125# Is the header present?
32126echo "$as_me:$LINENO: checking $ac_header presence" >&5
32127echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32128cat >conftest.$ac_ext <<_ACEOF
32129/* confdefs.h. */
32130_ACEOF
32131cat confdefs.h >>conftest.$ac_ext
32132cat >>conftest.$ac_ext <<_ACEOF
32133/* end confdefs.h. */
32134#include <$ac_header>
32135_ACEOF
32136if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32137 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32138 ac_status=$?
32139 grep -v '^ *+' conftest.er1 >conftest.err
32140 rm -f conftest.er1
32141 cat conftest.err >&5
32142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32143 (exit $ac_status); } >/dev/null; then
32144 if test -s conftest.err; then
32145 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 32146 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
32147 else
32148 ac_cpp_err=
32149 fi
32150else
32151 ac_cpp_err=yes
32152fi
32153if test -z "$ac_cpp_err"; then
32154 ac_header_preproc=yes
32155else
32156 echo "$as_me: failed program was:" >&5
32157sed 's/^/| /' conftest.$ac_ext >&5
32158
32159 ac_header_preproc=no
32160fi
32161rm -f conftest.err conftest.$ac_ext
32162echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32163echo "${ECHO_T}$ac_header_preproc" >&6
32164
32165# So? What about this header?
ac1cb8d3
VS
32166case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32167 yes:no: )
a848cd7e
SC
32168 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32169echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32170 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32171echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32172 ac_header_preproc=yes
a848cd7e 32173 ;;
ac1cb8d3 32174 no:yes:* )
a848cd7e
SC
32175 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32176echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32177 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32178echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32179 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32180echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32181 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32182echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32184echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32185 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32186echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32187 (
32188 cat <<\_ASBOX
ac1cb8d3
VS
32189## ----------------------------------------- ##
32190## Report this to wx-dev@lists.wxwidgets.org ##
32191## ----------------------------------------- ##
a848cd7e
SC
32192_ASBOX
32193 ) |
32194 sed "s/^/$as_me: WARNING: /" >&2
32195 ;;
32196esac
32197echo "$as_me:$LINENO: checking for $ac_header" >&5
32198echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32199if eval "test \"\${$as_ac_Header+set}\" = set"; then
32200 echo $ECHO_N "(cached) $ECHO_C" >&6
32201else
ac1cb8d3 32202 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
32203fi
32204echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32205echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32206
32207fi
32208if test `eval echo '${'$as_ac_Header'}'` = yes; then
32209 cat >>confdefs.h <<_ACEOF
32210#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32211_ACEOF
32212
32213 EXTRALIBS_ESD="-lesd"
32214
32215fi
32216
32217done
32218
32219
32220fi
32221
32222
32223
32224echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
32225echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
32226cat >conftest.$ac_ext <<_ACEOF
32227/* confdefs.h. */
32228_ACEOF
32229cat confdefs.h >>conftest.$ac_ext
32230cat >>conftest.$ac_ext <<_ACEOF
32231/* end confdefs.h. */
32232#ifdef __linux__
32233 #include <linux/cdrom.h>
32234 #else
32235 /* For Solaris */
32236 #include <sys/cdio.h>
32237 #endif
32238
32239int
32240main ()
32241{
32242struct cdrom_tocentry entry, old_entry;
32243 ;
32244 return 0;
32245}
32246_ACEOF
32247rm -f conftest.$ac_objext
32248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32249 (eval $ac_compile) 2>conftest.er1
a848cd7e 32250 ac_status=$?
ac1cb8d3
VS
32251 grep -v '^ *+' conftest.er1 >conftest.err
32252 rm -f conftest.er1
32253 cat conftest.err >&5
a848cd7e
SC
32254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32255 (exit $ac_status); } &&
da4486fb 32256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32258 (eval $ac_try) 2>&5
32259 ac_status=$?
32260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32261 (exit $ac_status); }; } &&
32262 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32264 (eval $ac_try) 2>&5
32265 ac_status=$?
32266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32267 (exit $ac_status); }; }; then
32268 echo "$as_me:$LINENO: result: yes" >&5
32269echo "${ECHO_T}yes" >&6
32270 cat >>confdefs.h <<\_ACEOF
32271#define HAVE_KNOWN_CDROM_INTERFACE 1
32272_ACEOF
32273
32274else
32275 echo "$as_me: failed program was:" >&5
32276sed 's/^/| /' conftest.$ac_ext >&5
32277
32278echo "$as_me:$LINENO: result: no" >&5
32279echo "${ECHO_T}no" >&6
32280fi
ac1cb8d3 32281rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32282
32283
32284cat >confcache <<\_ACEOF
32285# This file is a shell script that caches the results of configure
32286# tests run on this system so they can be shared between configure
32287# scripts and configure runs, see configure's option --config-cache.
32288# It is not useful on other systems. If it contains results you don't
32289# want to keep, you may remove or edit it.
32290#
32291# config.status only pays attention to the cache file if you give it
32292# the --recheck option to rerun configure.
32293#
32294# `ac_cv_env_foo' variables (set or unset) will be overridden when
32295# loading this file, other *unset* `ac_cv_foo' will be assigned the
32296# following values.
32297
32298_ACEOF
32299
32300# The following way of writing the cache mishandles newlines in values,
32301# but we know of no workaround that is simple, portable, and efficient.
32302# So, don't put newlines in cache variables' values.
32303# Ultrix sh set writes to stderr and can't be redirected directly,
32304# and sets the high bit in the cache file unless we assign to the vars.
32305{
32306 (set) 2>&1 |
32307 case `(ac_space=' '; set | grep ac_space) 2>&1` in
32308 *ac_space=\ *)
32309 # `set' does not quote correctly, so add quotes (double-quote
32310 # substitution turns \\\\ into \\, and sed turns \\ into \).
32311 sed -n \
ac1cb8d3
VS
32312 "s/'/'\\\\''/g;
32313 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
32314 ;;
32315 *)
32316 # `set' quotes correctly as required by POSIX, so do not add quotes.
32317 sed -n \
ac1cb8d3 32318 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
32319 ;;
32320 esac;
32321} |
32322 sed '
32323 t clear
32324 : clear
32325 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32326 t end
32327 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32328 : end' >>confcache
32329if diff $cache_file confcache >/dev/null 2>&1; then :; else
32330 if test -w $cache_file; then
32331 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
32332 cat confcache >$cache_file
32333 else
32334 echo "not updating unwritable cache $cache_file"
32335 fi
32336fi
32337rm -f confcache
32338
32339
32340CPP_MT_FLAG=
32341if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
32342
32343
32344 THREADS_LINK=
32345 THREADS_CFLAGS=
32346
32347 if test "$wxUSE_THREADS" = "yes" ; then
32348 if test "$USE_BEOS" = 1; then
32349 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
32350echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
32351 wxUSE_THREADS="no"
32352 fi
32353 fi
32354
32355 if test "$wxUSE_THREADS" = "yes" ; then
32356
32357
32358 THREAD_OPTS="-pthread"
32359 case "${host}" in
32360 *-*-solaris2* | *-*-sunos4* )
32361 if test "x$GCC" = "xyes"; then
32362 THREAD_OPTS="-pthreads $THREAD_OPTS"
32363 else
32364 THREAD_OPTS="-mt $THREAD_OPTS"
32365 fi
32366 ;;
32367 *-*-freebsd*)
32368 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
32369 ;;
32370 *-*-darwin* | *-*-cygwin* )
32371 THREAD_OPTS=""
32372 ;;
32373 *-*-aix*)
32374 THREAD_OPTS="pthreads"
32375 ;;
32376 *-hp-hpux* )
32377 if test "x$GCC" != "xyes"; then
32378 THREAD_OPTS=""
32379 fi
32380 ;;
32381
32382 *-*-irix* )
32383 if test "x$GCC" = "xyes"; then
32384 THREAD_OPTS=""
32385 fi
32386 ;;
32387
32388 *-*-*UnixWare*)
32389 if test "x$GCC" != "xyes"; then
32390 THREAD_OPTS="-Ethread"
32391 fi
32392 ;;
32393 esac
32394
32395 THREAD_OPTS="$THREAD_OPTS pthread none"
32396
32397 THREADS_OK=no
32398 for flag in $THREAD_OPTS; do
32399 case $flag in
32400 none)
32401 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
32402echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
32403 ;;
32404
32405 -*)
32406 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
32407echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
32408 THREADS_CFLAGS="$flag"
32409 ;;
32410
32411 *)
32412 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
32413echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
32414 THREADS_LINK="-l$flag"
32415 ;;
32416 esac
32417
32418 save_LIBS="$LIBS"
32419 save_CFLAGS="$CFLAGS"
32420 LIBS="$THREADS_LINK $LIBS"
32421 CFLAGS="$THREADS_CFLAGS $CFLAGS"
32422
32423 cat >conftest.$ac_ext <<_ACEOF
32424/* confdefs.h. */
32425_ACEOF
32426cat confdefs.h >>conftest.$ac_ext
32427cat >>conftest.$ac_ext <<_ACEOF
32428/* end confdefs.h. */
32429#include <pthread.h>
32430int
32431main ()
32432{
32433pthread_create(0,0,0,0);
32434 ;
32435 return 0;
32436}
32437_ACEOF
32438rm -f conftest.$ac_objext conftest$ac_exeext
32439if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32440 (eval $ac_link) 2>conftest.er1
a848cd7e 32441 ac_status=$?
ac1cb8d3
VS
32442 grep -v '^ *+' conftest.er1 >conftest.err
32443 rm -f conftest.er1
32444 cat conftest.err >&5
a848cd7e
SC
32445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32446 (exit $ac_status); } &&
da4486fb 32447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32449 (eval $ac_try) 2>&5
32450 ac_status=$?
32451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32452 (exit $ac_status); }; } &&
32453 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32455 (eval $ac_try) 2>&5
32456 ac_status=$?
32457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32458 (exit $ac_status); }; }; then
32459 THREADS_OK=yes
32460else
32461 echo "$as_me: failed program was:" >&5
32462sed 's/^/| /' conftest.$ac_ext >&5
32463
32464fi
ac1cb8d3
VS
32465rm -f conftest.err conftest.$ac_objext \
32466 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32467
32468 LIBS="$save_LIBS"
32469 CFLAGS="$save_CFLAGS"
32470
32471 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
32472echo "${ECHO_T}$THREADS_OK" >&6
32473 if test "x$THREADS_OK" = "xyes"; then
32474 break;
32475 fi
32476
32477 THREADS_LINK=""
32478 THREADS_CFLAGS=""
32479 done
32480
32481 if test "x$THREADS_OK" != "xyes"; then
32482 wxUSE_THREADS=no
32483 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
32484echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
32485 else
32486 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
32487 LIBS="$THREADS_LINK $LIBS"
32488
32489 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
32490echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
32491 flag=no
32492 case "${host}" in
32493 *-aix*)
32494 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
32495 flag="-D_THREAD_SAFE"
32496 ;;
32497 *-freebsd*)
32498 flag="-D_THREAD_SAFE"
32499 ;;
32500 *-hp-hpux* )
32501 flag="-D_REENTRANT"
32502 if test "x$GCC" != "xyes"; then
32503 flag="$flag -D_RWSTD_MULTI_THREAD"
32504 fi
32505 ;;
32506 *solaris* | alpha*-osf*)
32507 flag="-D_REENTRANT"
32508 ;;
32509 esac
32510 echo "$as_me:$LINENO: result: ${flag}" >&5
32511echo "${ECHO_T}${flag}" >&6
32512 if test "x$flag" != xno; then
32513 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
32514 fi
32515
32516 if test "x$THREADS_CFLAGS" != "x"; then
32517 CFLAGS="$CFLAGS $THREADS_CFLAGS"
32518 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
32519 fi
32520 fi
32521 fi
32522
32523 if test "$wxUSE_THREADS" = "yes" ; then
32524
32525for ac_func in thr_setconcurrency
32526do
32527as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32528echo "$as_me:$LINENO: checking for $ac_func" >&5
32529echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32530if eval "test \"\${$as_ac_var+set}\" = set"; then
32531 echo $ECHO_N "(cached) $ECHO_C" >&6
32532else
32533 cat >conftest.$ac_ext <<_ACEOF
32534/* confdefs.h. */
32535_ACEOF
32536cat confdefs.h >>conftest.$ac_ext
32537cat >>conftest.$ac_ext <<_ACEOF
32538/* end confdefs.h. */
ac1cb8d3
VS
32539/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32540 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32541#define $ac_func innocuous_$ac_func
32542
a848cd7e
SC
32543/* System header to define __stub macros and hopefully few prototypes,
32544 which can conflict with char $ac_func (); below.
32545 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32546 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32547
a848cd7e
SC
32548#ifdef __STDC__
32549# include <limits.h>
32550#else
32551# include <assert.h>
32552#endif
ac1cb8d3
VS
32553
32554#undef $ac_func
32555
a848cd7e
SC
32556/* Override any gcc2 internal prototype to avoid an error. */
32557#ifdef __cplusplus
32558extern "C"
32559{
32560#endif
32561/* We use char because int might match the return type of a gcc2
32562 builtin and then its argument prototype would still apply. */
32563char $ac_func ();
32564/* The GNU C library defines this for functions which it implements
32565 to always fail with ENOSYS. Some functions are actually named
32566 something starting with __ and the normal name is an alias. */
32567#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32568choke me
32569#else
32570char (*f) () = $ac_func;
32571#endif
32572#ifdef __cplusplus
32573}
32574#endif
32575
32576int
32577main ()
32578{
32579return f != $ac_func;
32580 ;
32581 return 0;
32582}
32583_ACEOF
32584rm -f conftest.$ac_objext conftest$ac_exeext
32585if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32586 (eval $ac_link) 2>conftest.er1
a848cd7e 32587 ac_status=$?
ac1cb8d3
VS
32588 grep -v '^ *+' conftest.er1 >conftest.err
32589 rm -f conftest.er1
32590 cat conftest.err >&5
a848cd7e
SC
32591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32592 (exit $ac_status); } &&
da4486fb 32593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32595 (eval $ac_try) 2>&5
32596 ac_status=$?
32597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32598 (exit $ac_status); }; } &&
32599 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32601 (eval $ac_try) 2>&5
32602 ac_status=$?
32603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32604 (exit $ac_status); }; }; then
32605 eval "$as_ac_var=yes"
32606else
32607 echo "$as_me: failed program was:" >&5
32608sed 's/^/| /' conftest.$ac_ext >&5
32609
32610eval "$as_ac_var=no"
32611fi
ac1cb8d3
VS
32612rm -f conftest.err conftest.$ac_objext \
32613 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32614fi
32615echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32616echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32617if test `eval echo '${'$as_ac_var'}'` = yes; then
32618 cat >>confdefs.h <<_ACEOF
32619#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32620_ACEOF
32621
32622fi
32623done
32624
32625
32626
32627for ac_header in sched.h
32628do
32629as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32630if eval "test \"\${$as_ac_Header+set}\" = set"; then
32631 echo "$as_me:$LINENO: checking for $ac_header" >&5
32632echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32633if eval "test \"\${$as_ac_Header+set}\" = set"; then
32634 echo $ECHO_N "(cached) $ECHO_C" >&6
32635fi
32636echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32637echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32638else
32639 # Is the header compilable?
32640echo "$as_me:$LINENO: checking $ac_header usability" >&5
32641echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32642cat >conftest.$ac_ext <<_ACEOF
32643/* confdefs.h. */
32644_ACEOF
32645cat confdefs.h >>conftest.$ac_ext
32646cat >>conftest.$ac_ext <<_ACEOF
32647/* end confdefs.h. */
32648$ac_includes_default
32649#include <$ac_header>
32650_ACEOF
32651rm -f conftest.$ac_objext
32652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32653 (eval $ac_compile) 2>conftest.er1
a848cd7e 32654 ac_status=$?
ac1cb8d3
VS
32655 grep -v '^ *+' conftest.er1 >conftest.err
32656 rm -f conftest.er1
32657 cat conftest.err >&5
a848cd7e
SC
32658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32659 (exit $ac_status); } &&
da4486fb 32660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32662 (eval $ac_try) 2>&5
32663 ac_status=$?
32664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32665 (exit $ac_status); }; } &&
32666 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32668 (eval $ac_try) 2>&5
32669 ac_status=$?
32670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32671 (exit $ac_status); }; }; then
32672 ac_header_compiler=yes
32673else
32674 echo "$as_me: failed program was:" >&5
32675sed 's/^/| /' conftest.$ac_ext >&5
32676
32677ac_header_compiler=no
32678fi
ac1cb8d3 32679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32680echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32681echo "${ECHO_T}$ac_header_compiler" >&6
32682
32683# Is the header present?
32684echo "$as_me:$LINENO: checking $ac_header presence" >&5
32685echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32686cat >conftest.$ac_ext <<_ACEOF
32687/* confdefs.h. */
32688_ACEOF
32689cat confdefs.h >>conftest.$ac_ext
32690cat >>conftest.$ac_ext <<_ACEOF
32691/* end confdefs.h. */
32692#include <$ac_header>
32693_ACEOF
32694if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32695 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32696 ac_status=$?
32697 grep -v '^ *+' conftest.er1 >conftest.err
32698 rm -f conftest.er1
32699 cat conftest.err >&5
32700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32701 (exit $ac_status); } >/dev/null; then
32702 if test -s conftest.err; then
32703 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 32704 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
32705 else
32706 ac_cpp_err=
32707 fi
32708else
32709 ac_cpp_err=yes
32710fi
32711if test -z "$ac_cpp_err"; then
32712 ac_header_preproc=yes
32713else
32714 echo "$as_me: failed program was:" >&5
32715sed 's/^/| /' conftest.$ac_ext >&5
32716
32717 ac_header_preproc=no
32718fi
32719rm -f conftest.err conftest.$ac_ext
32720echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32721echo "${ECHO_T}$ac_header_preproc" >&6
32722
32723# So? What about this header?
ac1cb8d3
VS
32724case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32725 yes:no: )
a848cd7e
SC
32726 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32727echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32729echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32730 ac_header_preproc=yes
a848cd7e 32731 ;;
ac1cb8d3 32732 no:yes:* )
a848cd7e
SC
32733 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32734echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32735 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32736echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32737 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32738echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32739 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32740echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32741 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32742echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32743 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32744echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32745 (
32746 cat <<\_ASBOX
ac1cb8d3
VS
32747## ----------------------------------------- ##
32748## Report this to wx-dev@lists.wxwidgets.org ##
32749## ----------------------------------------- ##
a848cd7e
SC
32750_ASBOX
32751 ) |
32752 sed "s/^/$as_me: WARNING: /" >&2
32753 ;;
32754esac
32755echo "$as_me:$LINENO: checking for $ac_header" >&5
32756echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32757if eval "test \"\${$as_ac_Header+set}\" = set"; then
32758 echo $ECHO_N "(cached) $ECHO_C" >&6
32759else
ac1cb8d3 32760 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
32761fi
32762echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32763echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32764
32765fi
32766if test `eval echo '${'$as_ac_Header'}'` = yes; then
32767 cat >>confdefs.h <<_ACEOF
32768#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32769_ACEOF
32770
32771fi
32772
32773done
32774
32775 if test "$ac_cv_header_sched_h" = "yes"; then
32776 echo "$as_me:$LINENO: checking for sched_yield" >&5
32777echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
32778if test "${ac_cv_func_sched_yield+set}" = set; then
32779 echo $ECHO_N "(cached) $ECHO_C" >&6
32780else
32781 cat >conftest.$ac_ext <<_ACEOF
32782/* confdefs.h. */
32783_ACEOF
32784cat confdefs.h >>conftest.$ac_ext
32785cat >>conftest.$ac_ext <<_ACEOF
32786/* end confdefs.h. */
ac1cb8d3
VS
32787/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
32788 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32789#define sched_yield innocuous_sched_yield
32790
a848cd7e
SC
32791/* System header to define __stub macros and hopefully few prototypes,
32792 which can conflict with char sched_yield (); below.
32793 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32794 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32795
a848cd7e
SC
32796#ifdef __STDC__
32797# include <limits.h>
32798#else
32799# include <assert.h>
32800#endif
ac1cb8d3
VS
32801
32802#undef sched_yield
32803
a848cd7e
SC
32804/* Override any gcc2 internal prototype to avoid an error. */
32805#ifdef __cplusplus
32806extern "C"
32807{
32808#endif
32809/* We use char because int might match the return type of a gcc2
32810 builtin and then its argument prototype would still apply. */
32811char sched_yield ();
32812/* The GNU C library defines this for functions which it implements
32813 to always fail with ENOSYS. Some functions are actually named
32814 something starting with __ and the normal name is an alias. */
32815#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
32816choke me
32817#else
32818char (*f) () = sched_yield;
32819#endif
32820#ifdef __cplusplus
32821}
32822#endif
32823
32824int
32825main ()
32826{
32827return f != sched_yield;
32828 ;
32829 return 0;
32830}
32831_ACEOF
32832rm -f conftest.$ac_objext conftest$ac_exeext
32833if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32834 (eval $ac_link) 2>conftest.er1
a848cd7e 32835 ac_status=$?
ac1cb8d3
VS
32836 grep -v '^ *+' conftest.er1 >conftest.err
32837 rm -f conftest.er1
32838 cat conftest.err >&5
a848cd7e
SC
32839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32840 (exit $ac_status); } &&
da4486fb 32841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32843 (eval $ac_try) 2>&5
32844 ac_status=$?
32845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32846 (exit $ac_status); }; } &&
32847 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32849 (eval $ac_try) 2>&5
32850 ac_status=$?
32851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32852 (exit $ac_status); }; }; then
32853 ac_cv_func_sched_yield=yes
32854else
32855 echo "$as_me: failed program was:" >&5
32856sed 's/^/| /' conftest.$ac_ext >&5
32857
32858ac_cv_func_sched_yield=no
32859fi
ac1cb8d3
VS
32860rm -f conftest.err conftest.$ac_objext \
32861 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32862fi
32863echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
32864echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
32865if test $ac_cv_func_sched_yield = yes; then
32866 cat >>confdefs.h <<\_ACEOF
32867#define HAVE_SCHED_YIELD 1
32868_ACEOF
32869
32870else
32871
32872 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
32873echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
32874if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
32875 echo $ECHO_N "(cached) $ECHO_C" >&6
32876else
32877 ac_check_lib_save_LIBS=$LIBS
32878LIBS="-lposix4 $LIBS"
32879cat >conftest.$ac_ext <<_ACEOF
32880/* confdefs.h. */
32881_ACEOF
32882cat confdefs.h >>conftest.$ac_ext
32883cat >>conftest.$ac_ext <<_ACEOF
32884/* end confdefs.h. */
32885
32886/* Override any gcc2 internal prototype to avoid an error. */
32887#ifdef __cplusplus
32888extern "C"
32889#endif
32890/* We use char because int might match the return type of a gcc2
32891 builtin and then its argument prototype would still apply. */
32892char sched_yield ();
32893int
32894main ()
32895{
32896sched_yield ();
32897 ;
32898 return 0;
32899}
32900_ACEOF
32901rm -f conftest.$ac_objext conftest$ac_exeext
32902if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32903 (eval $ac_link) 2>conftest.er1
a848cd7e 32904 ac_status=$?
ac1cb8d3
VS
32905 grep -v '^ *+' conftest.er1 >conftest.err
32906 rm -f conftest.er1
32907 cat conftest.err >&5
a848cd7e
SC
32908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32909 (exit $ac_status); } &&
da4486fb 32910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32912 (eval $ac_try) 2>&5
32913 ac_status=$?
32914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32915 (exit $ac_status); }; } &&
32916 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32918 (eval $ac_try) 2>&5
32919 ac_status=$?
32920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32921 (exit $ac_status); }; }; then
32922 ac_cv_lib_posix4_sched_yield=yes
32923else
32924 echo "$as_me: failed program was:" >&5
32925sed 's/^/| /' conftest.$ac_ext >&5
32926
32927ac_cv_lib_posix4_sched_yield=no
32928fi
ac1cb8d3
VS
32929rm -f conftest.err conftest.$ac_objext \
32930 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32931LIBS=$ac_check_lib_save_LIBS
32932fi
32933echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
32934echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
32935if test $ac_cv_lib_posix4_sched_yield = yes; then
32936 cat >>confdefs.h <<\_ACEOF
32937#define HAVE_SCHED_YIELD 1
32938_ACEOF
32939 POSIX4_LINK=" -lposix4"
32940else
32941 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
32942echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
32943
32944fi
32945
32946
32947
32948fi
32949
32950 fi
32951
32952 HAVE_PRIOR_FUNCS=0
32953 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
32954echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
32955if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
32956 echo $ECHO_N "(cached) $ECHO_C" >&6
32957else
32958 cat >conftest.$ac_ext <<_ACEOF
32959/* confdefs.h. */
32960_ACEOF
32961cat confdefs.h >>conftest.$ac_ext
32962cat >>conftest.$ac_ext <<_ACEOF
32963/* end confdefs.h. */
ac1cb8d3
VS
32964/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
32965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32966#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
32967
a848cd7e
SC
32968/* System header to define __stub macros and hopefully few prototypes,
32969 which can conflict with char pthread_attr_getschedpolicy (); below.
32970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32971 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32972
a848cd7e
SC
32973#ifdef __STDC__
32974# include <limits.h>
32975#else
32976# include <assert.h>
32977#endif
ac1cb8d3
VS
32978
32979#undef pthread_attr_getschedpolicy
32980
a848cd7e
SC
32981/* Override any gcc2 internal prototype to avoid an error. */
32982#ifdef __cplusplus
32983extern "C"
32984{
32985#endif
32986/* We use char because int might match the return type of a gcc2
32987 builtin and then its argument prototype would still apply. */
32988char pthread_attr_getschedpolicy ();
32989/* The GNU C library defines this for functions which it implements
32990 to always fail with ENOSYS. Some functions are actually named
32991 something starting with __ and the normal name is an alias. */
32992#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
32993choke me
32994#else
32995char (*f) () = pthread_attr_getschedpolicy;
32996#endif
32997#ifdef __cplusplus
32998}
32999#endif
33000
33001int
33002main ()
33003{
33004return f != pthread_attr_getschedpolicy;
33005 ;
33006 return 0;
33007}
33008_ACEOF
33009rm -f conftest.$ac_objext conftest$ac_exeext
33010if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33011 (eval $ac_link) 2>conftest.er1
a848cd7e 33012 ac_status=$?
ac1cb8d3
VS
33013 grep -v '^ *+' conftest.er1 >conftest.err
33014 rm -f conftest.er1
33015 cat conftest.err >&5
a848cd7e
SC
33016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33017 (exit $ac_status); } &&
da4486fb 33018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33020 (eval $ac_try) 2>&5
33021 ac_status=$?
33022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33023 (exit $ac_status); }; } &&
33024 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33026 (eval $ac_try) 2>&5
33027 ac_status=$?
33028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33029 (exit $ac_status); }; }; then
33030 ac_cv_func_pthread_attr_getschedpolicy=yes
33031else
33032 echo "$as_me: failed program was:" >&5
33033sed 's/^/| /' conftest.$ac_ext >&5
33034
33035ac_cv_func_pthread_attr_getschedpolicy=no
33036fi
ac1cb8d3
VS
33037rm -f conftest.err conftest.$ac_objext \
33038 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33039fi
33040echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
33041echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
33042if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
33043 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
33044echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
33045if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
33046 echo $ECHO_N "(cached) $ECHO_C" >&6
33047else
33048 cat >conftest.$ac_ext <<_ACEOF
33049/* confdefs.h. */
33050_ACEOF
33051cat confdefs.h >>conftest.$ac_ext
33052cat >>conftest.$ac_ext <<_ACEOF
33053/* end confdefs.h. */
ac1cb8d3
VS
33054/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
33055 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33056#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
33057
a848cd7e
SC
33058/* System header to define __stub macros and hopefully few prototypes,
33059 which can conflict with char pthread_attr_setschedparam (); below.
33060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33061 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33062
a848cd7e
SC
33063#ifdef __STDC__
33064# include <limits.h>
33065#else
33066# include <assert.h>
33067#endif
ac1cb8d3
VS
33068
33069#undef pthread_attr_setschedparam
33070
a848cd7e
SC
33071/* Override any gcc2 internal prototype to avoid an error. */
33072#ifdef __cplusplus
33073extern "C"
33074{
33075#endif
33076/* We use char because int might match the return type of a gcc2
33077 builtin and then its argument prototype would still apply. */
33078char pthread_attr_setschedparam ();
33079/* The GNU C library defines this for functions which it implements
33080 to always fail with ENOSYS. Some functions are actually named
33081 something starting with __ and the normal name is an alias. */
33082#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
33083choke me
33084#else
33085char (*f) () = pthread_attr_setschedparam;
33086#endif
33087#ifdef __cplusplus
33088}
33089#endif
33090
33091int
33092main ()
33093{
33094return f != pthread_attr_setschedparam;
33095 ;
33096 return 0;
33097}
33098_ACEOF
33099rm -f conftest.$ac_objext conftest$ac_exeext
33100if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33101 (eval $ac_link) 2>conftest.er1
a848cd7e 33102 ac_status=$?
ac1cb8d3
VS
33103 grep -v '^ *+' conftest.er1 >conftest.err
33104 rm -f conftest.er1
33105 cat conftest.err >&5
a848cd7e
SC
33106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33107 (exit $ac_status); } &&
da4486fb 33108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33110 (eval $ac_try) 2>&5
33111 ac_status=$?
33112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33113 (exit $ac_status); }; } &&
33114 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33116 (eval $ac_try) 2>&5
33117 ac_status=$?
33118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33119 (exit $ac_status); }; }; then
33120 ac_cv_func_pthread_attr_setschedparam=yes
33121else
33122 echo "$as_me: failed program was:" >&5
33123sed 's/^/| /' conftest.$ac_ext >&5
33124
33125ac_cv_func_pthread_attr_setschedparam=no
33126fi
ac1cb8d3
VS
33127rm -f conftest.err conftest.$ac_objext \
33128 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33129fi
33130echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
33131echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
33132if test $ac_cv_func_pthread_attr_setschedparam = yes; then
33133 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
33134echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
33135if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
33136 echo $ECHO_N "(cached) $ECHO_C" >&6
33137else
33138 cat >conftest.$ac_ext <<_ACEOF
33139/* confdefs.h. */
33140_ACEOF
33141cat confdefs.h >>conftest.$ac_ext
33142cat >>conftest.$ac_ext <<_ACEOF
33143/* end confdefs.h. */
ac1cb8d3
VS
33144/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
33145 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33146#define sched_get_priority_max innocuous_sched_get_priority_max
33147
a848cd7e
SC
33148/* System header to define __stub macros and hopefully few prototypes,
33149 which can conflict with char sched_get_priority_max (); below.
33150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33151 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33152
a848cd7e
SC
33153#ifdef __STDC__
33154# include <limits.h>
33155#else
33156# include <assert.h>
33157#endif
ac1cb8d3
VS
33158
33159#undef sched_get_priority_max
33160
a848cd7e
SC
33161/* Override any gcc2 internal prototype to avoid an error. */
33162#ifdef __cplusplus
33163extern "C"
33164{
33165#endif
33166/* We use char because int might match the return type of a gcc2
33167 builtin and then its argument prototype would still apply. */
33168char sched_get_priority_max ();
33169/* The GNU C library defines this for functions which it implements
33170 to always fail with ENOSYS. Some functions are actually named
33171 something starting with __ and the normal name is an alias. */
33172#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
33173choke me
33174#else
33175char (*f) () = sched_get_priority_max;
33176#endif
33177#ifdef __cplusplus
33178}
33179#endif
33180
33181int
33182main ()
33183{
33184return f != sched_get_priority_max;
33185 ;
33186 return 0;
33187}
33188_ACEOF
33189rm -f conftest.$ac_objext conftest$ac_exeext
33190if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33191 (eval $ac_link) 2>conftest.er1
a848cd7e 33192 ac_status=$?
ac1cb8d3
VS
33193 grep -v '^ *+' conftest.er1 >conftest.err
33194 rm -f conftest.er1
33195 cat conftest.err >&5
a848cd7e
SC
33196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33197 (exit $ac_status); } &&
da4486fb 33198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33200 (eval $ac_try) 2>&5
33201 ac_status=$?
33202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33203 (exit $ac_status); }; } &&
33204 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33206 (eval $ac_try) 2>&5
33207 ac_status=$?
33208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33209 (exit $ac_status); }; }; then
33210 ac_cv_func_sched_get_priority_max=yes
33211else
33212 echo "$as_me: failed program was:" >&5
33213sed 's/^/| /' conftest.$ac_ext >&5
33214
33215ac_cv_func_sched_get_priority_max=no
33216fi
ac1cb8d3
VS
33217rm -f conftest.err conftest.$ac_objext \
33218 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33219fi
33220echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
33221echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
33222if test $ac_cv_func_sched_get_priority_max = yes; then
33223 HAVE_PRIOR_FUNCS=1
33224else
33225 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
33226echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
33227if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
33228 echo $ECHO_N "(cached) $ECHO_C" >&6
33229else
33230 ac_check_lib_save_LIBS=$LIBS
33231LIBS="-lposix4 $LIBS"
33232cat >conftest.$ac_ext <<_ACEOF
33233/* confdefs.h. */
33234_ACEOF
33235cat confdefs.h >>conftest.$ac_ext
33236cat >>conftest.$ac_ext <<_ACEOF
33237/* end confdefs.h. */
33238
33239/* Override any gcc2 internal prototype to avoid an error. */
33240#ifdef __cplusplus
33241extern "C"
33242#endif
33243/* We use char because int might match the return type of a gcc2
33244 builtin and then its argument prototype would still apply. */
33245char sched_get_priority_max ();
33246int
33247main ()
33248{
33249sched_get_priority_max ();
33250 ;
33251 return 0;
33252}
33253_ACEOF
33254rm -f conftest.$ac_objext conftest$ac_exeext
33255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33256 (eval $ac_link) 2>conftest.er1
a848cd7e 33257 ac_status=$?
ac1cb8d3
VS
33258 grep -v '^ *+' conftest.er1 >conftest.err
33259 rm -f conftest.er1
33260 cat conftest.err >&5
a848cd7e
SC
33261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33262 (exit $ac_status); } &&
da4486fb 33263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33265 (eval $ac_try) 2>&5
33266 ac_status=$?
33267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33268 (exit $ac_status); }; } &&
33269 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33271 (eval $ac_try) 2>&5
33272 ac_status=$?
33273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33274 (exit $ac_status); }; }; then
33275 ac_cv_lib_posix4_sched_get_priority_max=yes
33276else
33277 echo "$as_me: failed program was:" >&5
33278sed 's/^/| /' conftest.$ac_ext >&5
33279
33280ac_cv_lib_posix4_sched_get_priority_max=no
33281fi
ac1cb8d3
VS
33282rm -f conftest.err conftest.$ac_objext \
33283 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33284LIBS=$ac_check_lib_save_LIBS
33285fi
33286echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
33287echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
33288if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
33289
33290 HAVE_PRIOR_FUNCS=1
33291 POSIX4_LINK=" -lposix4"
33292
33293fi
33294
33295
33296fi
33297
33298
33299fi
33300
33301
33302fi
33303
33304
33305 if test "$HAVE_PRIOR_FUNCS" = 1; then
33306 cat >>confdefs.h <<\_ACEOF
33307#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
33308_ACEOF
33309
33310 else
33311 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
33312echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
33313 fi
33314
33315 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
33316echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
33317if test "${ac_cv_func_pthread_cancel+set}" = set; then
33318 echo $ECHO_N "(cached) $ECHO_C" >&6
33319else
33320 cat >conftest.$ac_ext <<_ACEOF
33321/* confdefs.h. */
33322_ACEOF
33323cat confdefs.h >>conftest.$ac_ext
33324cat >>conftest.$ac_ext <<_ACEOF
33325/* end confdefs.h. */
ac1cb8d3
VS
33326/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
33327 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33328#define pthread_cancel innocuous_pthread_cancel
33329
a848cd7e
SC
33330/* System header to define __stub macros and hopefully few prototypes,
33331 which can conflict with char pthread_cancel (); below.
33332 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33333 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33334
a848cd7e
SC
33335#ifdef __STDC__
33336# include <limits.h>
33337#else
33338# include <assert.h>
33339#endif
ac1cb8d3
VS
33340
33341#undef pthread_cancel
33342
a848cd7e
SC
33343/* Override any gcc2 internal prototype to avoid an error. */
33344#ifdef __cplusplus
33345extern "C"
33346{
33347#endif
33348/* We use char because int might match the return type of a gcc2
33349 builtin and then its argument prototype would still apply. */
33350char pthread_cancel ();
33351/* The GNU C library defines this for functions which it implements
33352 to always fail with ENOSYS. Some functions are actually named
33353 something starting with __ and the normal name is an alias. */
33354#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
33355choke me
33356#else
33357char (*f) () = pthread_cancel;
33358#endif
33359#ifdef __cplusplus
33360}
33361#endif
33362
33363int
33364main ()
33365{
33366return f != pthread_cancel;
33367 ;
33368 return 0;
33369}
33370_ACEOF
33371rm -f conftest.$ac_objext conftest$ac_exeext
33372if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33373 (eval $ac_link) 2>conftest.er1
a848cd7e 33374 ac_status=$?
ac1cb8d3
VS
33375 grep -v '^ *+' conftest.er1 >conftest.err
33376 rm -f conftest.er1
33377 cat conftest.err >&5
a848cd7e
SC
33378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33379 (exit $ac_status); } &&
da4486fb 33380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33382 (eval $ac_try) 2>&5
33383 ac_status=$?
33384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33385 (exit $ac_status); }; } &&
33386 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33388 (eval $ac_try) 2>&5
33389 ac_status=$?
33390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33391 (exit $ac_status); }; }; then
33392 ac_cv_func_pthread_cancel=yes
33393else
33394 echo "$as_me: failed program was:" >&5
33395sed 's/^/| /' conftest.$ac_ext >&5
33396
33397ac_cv_func_pthread_cancel=no
33398fi
ac1cb8d3
VS
33399rm -f conftest.err conftest.$ac_objext \
33400 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33401fi
33402echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
33403echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
33404if test $ac_cv_func_pthread_cancel = yes; then
33405 cat >>confdefs.h <<\_ACEOF
33406#define HAVE_PTHREAD_CANCEL 1
33407_ACEOF
33408
33409else
33410 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
33411echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
33412fi
33413
33414
33415
33416
33417 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
33418echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
33419if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
33420 echo $ECHO_N "(cached) $ECHO_C" >&6
33421else
33422
33423 cat >conftest.$ac_ext <<_ACEOF
33424/* confdefs.h. */
33425_ACEOF
33426cat confdefs.h >>conftest.$ac_ext
33427cat >>conftest.$ac_ext <<_ACEOF
33428/* end confdefs.h. */
33429#include <pthread.h>
33430int
33431main ()
33432{
33433
33434 pthread_mutexattr_t attr;
33435 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
33436
33437 ;
33438 return 0;
33439}
33440_ACEOF
33441rm -f conftest.$ac_objext
33442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33443 (eval $ac_compile) 2>conftest.er1
a848cd7e 33444 ac_status=$?
ac1cb8d3
VS
33445 grep -v '^ *+' conftest.er1 >conftest.err
33446 rm -f conftest.er1
33447 cat conftest.err >&5
a848cd7e
SC
33448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33449 (exit $ac_status); } &&
da4486fb 33450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33452 (eval $ac_try) 2>&5
33453 ac_status=$?
33454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33455 (exit $ac_status); }; } &&
33456 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33458 (eval $ac_try) 2>&5
33459 ac_status=$?
33460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33461 (exit $ac_status); }; }; then
33462
33463 wx_cv_type_pthread_mutexattr_t=yes
33464
33465else
33466 echo "$as_me: failed program was:" >&5
33467sed 's/^/| /' conftest.$ac_ext >&5
33468
33469
33470 wx_cv_type_pthread_mutexattr_t=no
33471
33472
33473fi
ac1cb8d3 33474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33475
33476fi
33477echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
33478echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
33479
33480 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
33481 cat >>confdefs.h <<\_ACEOF
33482#define HAVE_PTHREAD_MUTEXATTR_T 1
33483_ACEOF
33484
33485 else
33486 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
33487echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
33488if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
33489 echo $ECHO_N "(cached) $ECHO_C" >&6
33490else
33491
33492 cat >conftest.$ac_ext <<_ACEOF
33493/* confdefs.h. */
33494_ACEOF
33495cat confdefs.h >>conftest.$ac_ext
33496cat >>conftest.$ac_ext <<_ACEOF
33497/* end confdefs.h. */
33498#include <pthread.h>
33499int
33500main ()
33501{
33502
33503 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
33504
33505 ;
33506 return 0;
33507}
33508_ACEOF
33509rm -f conftest.$ac_objext
33510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33511 (eval $ac_compile) 2>conftest.er1
a848cd7e 33512 ac_status=$?
ac1cb8d3
VS
33513 grep -v '^ *+' conftest.er1 >conftest.err
33514 rm -f conftest.er1
33515 cat conftest.err >&5
a848cd7e
SC
33516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33517 (exit $ac_status); } &&
da4486fb 33518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33520 (eval $ac_try) 2>&5
33521 ac_status=$?
33522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33523 (exit $ac_status); }; } &&
33524 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33526 (eval $ac_try) 2>&5
33527 ac_status=$?
33528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33529 (exit $ac_status); }; }; then
33530
33531 wx_cv_type_pthread_rec_mutex_init=yes
33532
33533else
33534 echo "$as_me: failed program was:" >&5
33535sed 's/^/| /' conftest.$ac_ext >&5
33536
33537
33538 wx_cv_type_pthread_rec_mutex_init=no
33539
33540
33541fi
ac1cb8d3 33542rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33543
33544fi
33545echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
33546echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
33547 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
33548 cat >>confdefs.h <<\_ACEOF
33549#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
33550_ACEOF
33551
33552 else
33553 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
33554echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
33555 fi
33556 fi
33557 fi
33558
33559else
33560 if test "$wxUSE_THREADS" = "yes" ; then
33561 case "${host}" in
33562 *-*-mingw32* )
33563 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
33564echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
33565if test "${wx_cv_cflags_mthread+set}" = set; then
33566 echo $ECHO_N "(cached) $ECHO_C" >&6
33567else
33568
33569 CFLAGS_OLD="$CFLAGS"
33570 CFLAGS="$CFLAGS -mthreads"
33571 cat >conftest.$ac_ext <<_ACEOF
33572/* confdefs.h. */
33573_ACEOF
33574cat confdefs.h >>conftest.$ac_ext
33575cat >>conftest.$ac_ext <<_ACEOF
33576/* end confdefs.h. */
33577
33578int
33579main ()
33580{
33581
33582 ;
33583 return 0;
33584}
33585_ACEOF
33586rm -f conftest.$ac_objext
33587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33588 (eval $ac_compile) 2>conftest.er1
a848cd7e 33589 ac_status=$?
ac1cb8d3
VS
33590 grep -v '^ *+' conftest.er1 >conftest.err
33591 rm -f conftest.er1
33592 cat conftest.err >&5
a848cd7e
SC
33593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33594 (exit $ac_status); } &&
da4486fb 33595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33597 (eval $ac_try) 2>&5
33598 ac_status=$?
33599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33600 (exit $ac_status); }; } &&
33601 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33603 (eval $ac_try) 2>&5
33604 ac_status=$?
33605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33606 (exit $ac_status); }; }; then
33607 wx_cv_cflags_mthread=yes
33608else
33609 echo "$as_me: failed program was:" >&5
33610sed 's/^/| /' conftest.$ac_ext >&5
33611
33612wx_cv_cflags_mthread=no
33613
33614fi
ac1cb8d3 33615rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33616
33617
33618fi
33619echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
33620echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
33621
33622 if test "$wx_cv_cflags_mthread" = "yes"; then
33623 CXXFLAGS="$CXXFLAGS -mthreads"
33624 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
33625 LDFLAGS="$LDFLAGS -mthreads"
33626 else
33627 CFLAGS="$CFLAGS_OLD"
33628 fi
33629 ;;
33630 *-pc-os2*emx )
33631 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
33632 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
33633 LDFLAGS="$LDFLAGS -Zmt"
33634 ;;
33635 esac
33636 fi
33637fi
33638
33639if test "$wxUSE_THREADS" = "yes"; then
33640 cat >>confdefs.h <<\_ACEOF
33641#define wxUSE_THREADS 1
33642_ACEOF
33643
33644
33645 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
33646else
33647 if test "$ac_cv_func_strtok_r" = "yes"; then
33648 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
33649echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
33650 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
33651 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
33652 echo "$as_me:$LINENO: result: yes" >&5
33653echo "${ECHO_T}yes" >&6
33654 else
33655 echo "$as_me:$LINENO: result: no" >&5
33656echo "${ECHO_T}no" >&6
33657 fi
33658 fi
33659fi
33660
33661if test "$WXGTK20" = 1 ; then
33662 cat >>confdefs.h <<_ACEOF
33663#define __WXGTK20__ $WXGTK20
33664_ACEOF
33665
33666 WXGTK12=1
33667fi
33668
33669if test "$WXGTK12" = 1 ; then
33670 cat >>confdefs.h <<_ACEOF
33671#define __WXGTK12__ $WXGTK12
33672_ACEOF
33673
33674fi
33675
33676if test "$WXGTK127" = 1 ; then
33677 cat >>confdefs.h <<_ACEOF
33678#define __WXGTK127__ $WXGTK127
33679_ACEOF
33680
33681fi
33682
33683if test "$WXGPE" = 1 ; then
33684 cat >>confdefs.h <<_ACEOF
33685#define __WXGPE__ $WXGPE
33686_ACEOF
33687
33688fi
33689
33690WXDEBUG=
33691
33692if test "$wxUSE_DEBUG_INFO" = "yes" ; then
33693 WXDEBUG="-g"
33694 wxUSE_OPTIMISE=no
33695fi
33696
33697if test "$wxUSE_DEBUG_GDB" = "yes" ; then
33698 wxUSE_DEBUG_INFO=yes
33699 WXDEBUG="-ggdb"
33700fi
33701
33702if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
33703 cat >>confdefs.h <<\_ACEOF
33704#define WXDEBUG 1
33705_ACEOF
33706
33707 WXDEBUG_DEFINE="-D__WXDEBUG__"
33708else
33709 if test "$wxUSE_GTK" = 1 ; then
33710 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
33711 fi
33712fi
33713
33714if test "$wxUSE_MEM_TRACING" = "yes" ; then
33715 cat >>confdefs.h <<\_ACEOF
33716#define wxUSE_MEMORY_TRACING 1
33717_ACEOF
33718
33719 cat >>confdefs.h <<\_ACEOF
33720#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
33721_ACEOF
33722
33723 cat >>confdefs.h <<\_ACEOF
33724#define wxUSE_DEBUG_NEW_ALWAYS 1
33725_ACEOF
33726
33727 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
33728fi
33729
33730if test "$wxUSE_DMALLOC" = "yes" ; then
33731 DMALLOC_LIBS="-ldmalloc"
33732fi
33733
33734PROFILE=
33735if test "$wxUSE_PROFILE" = "yes" ; then
33736 PROFILE=" -pg"
33737fi
33738
33739CODE_GEN_FLAGS=
33740CODE_GEN_FLAGS_CXX=
33741if test "$GCC" = "yes" ; then
33742 if test "$wxUSE_NO_RTTI" = "yes" ; then
33743 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
33744 fi
33745 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
33746 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
33747 fi
33748 if test "$wxUSE_PERMISSIVE" = "yes" ; then
33749 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
33750 fi
33751
33752 case "${host}" in
33753 powerpc*-*-aix* )
33754 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
33755 ;;
33756 *-hppa* )
33757 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
33758 ;;
33759 esac
33760fi
33761
33762OPTIMISE=
33763if test "$wxUSE_OPTIMISE" = "no" ; then
33764 if test "$GCC" = yes ; then
33765 OPTIMISE="-O0"
33766 fi
33767else
33768 if test "$GCC" = yes ; then
33769 OPTIMISE="-O2"
33770
33771 case "${host}" in
33772 i586-*-*|i686-*-* )
33773 OPTIMISE="${OPTIMISE} "
33774 ;;
33775 esac
33776 else
33777 OPTIMISE="-O"
33778 fi
33779fi
33780
33781
33782if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
33783 cat >>confdefs.h <<\_ACEOF
33784#define WXWIN_COMPATIBILITY_2_2 1
33785_ACEOF
33786
33787
33788 WXWIN_COMPATIBILITY_2_4="yes"
33789fi
33790
33791if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
33792 cat >>confdefs.h <<\_ACEOF
33793#define WXWIN_COMPATIBILITY_2_4 1
33794_ACEOF
33795
33796fi
33797
33798
33799if test "$wxUSE_GUI" = "yes"; then
881bfcd6 33800 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
33801#define wxUSE_GUI 1
33802_ACEOF
33803
33804
370fd4c2 33805 fi
a848cd7e
SC
33806
33807
33808if test "$wxUSE_UNIX" = "yes"; then
33809 cat >>confdefs.h <<\_ACEOF
33810#define wxUSE_UNIX 1
33811_ACEOF
33812
33813fi
33814
33815
33816if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
33817
33818 HAVE_DL_FUNCS=0
33819 HAVE_SHL_FUNCS=0
33820 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
33821 if test "$USE_DARWIN" = 1; then
33822 HAVE_DL_FUNCS=1
33823 else
33824
33825for ac_func in dlopen
33826do
33827as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33828echo "$as_me:$LINENO: checking for $ac_func" >&5
33829echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33830if eval "test \"\${$as_ac_var+set}\" = set"; then
33831 echo $ECHO_N "(cached) $ECHO_C" >&6
33832else
33833 cat >conftest.$ac_ext <<_ACEOF
33834/* confdefs.h. */
33835_ACEOF
33836cat confdefs.h >>conftest.$ac_ext
33837cat >>conftest.$ac_ext <<_ACEOF
33838/* end confdefs.h. */
ac1cb8d3
VS
33839/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33841#define $ac_func innocuous_$ac_func
33842
a848cd7e
SC
33843/* System header to define __stub macros and hopefully few prototypes,
33844 which can conflict with char $ac_func (); below.
33845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33846 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33847
a848cd7e
SC
33848#ifdef __STDC__
33849# include <limits.h>
33850#else
33851# include <assert.h>
33852#endif
ac1cb8d3
VS
33853
33854#undef $ac_func
33855
a848cd7e
SC
33856/* Override any gcc2 internal prototype to avoid an error. */
33857#ifdef __cplusplus
33858extern "C"
33859{
33860#endif
33861/* We use char because int might match the return type of a gcc2
33862 builtin and then its argument prototype would still apply. */
33863char $ac_func ();
33864/* The GNU C library defines this for functions which it implements
33865 to always fail with ENOSYS. Some functions are actually named
33866 something starting with __ and the normal name is an alias. */
33867#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33868choke me
33869#else
33870char (*f) () = $ac_func;
33871#endif
33872#ifdef __cplusplus
33873}
33874#endif
33875
33876int
33877main ()
33878{
33879return f != $ac_func;
33880 ;
33881 return 0;
33882}
33883_ACEOF
33884rm -f conftest.$ac_objext conftest$ac_exeext
33885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33886 (eval $ac_link) 2>conftest.er1
a848cd7e 33887 ac_status=$?
ac1cb8d3
VS
33888 grep -v '^ *+' conftest.er1 >conftest.err
33889 rm -f conftest.er1
33890 cat conftest.err >&5
a848cd7e
SC
33891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33892 (exit $ac_status); } &&
da4486fb 33893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33895 (eval $ac_try) 2>&5
33896 ac_status=$?
33897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33898 (exit $ac_status); }; } &&
33899 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33901 (eval $ac_try) 2>&5
33902 ac_status=$?
33903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33904 (exit $ac_status); }; }; then
33905 eval "$as_ac_var=yes"
33906else
33907 echo "$as_me: failed program was:" >&5
33908sed 's/^/| /' conftest.$ac_ext >&5
33909
33910eval "$as_ac_var=no"
33911fi
ac1cb8d3
VS
33912rm -f conftest.err conftest.$ac_objext \
33913 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33914fi
33915echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33916echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33917if test `eval echo '${'$as_ac_var'}'` = yes; then
33918 cat >>confdefs.h <<_ACEOF
33919#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33920_ACEOF
33921
33922 cat >>confdefs.h <<\_ACEOF
33923#define HAVE_DLOPEN 1
33924_ACEOF
33925
33926 HAVE_DL_FUNCS=1
33927
33928else
33929
33930 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
33931echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
33932if test "${ac_cv_lib_dl_dlopen+set}" = set; then
33933 echo $ECHO_N "(cached) $ECHO_C" >&6
33934else
33935 ac_check_lib_save_LIBS=$LIBS
33936LIBS="-ldl $LIBS"
33937cat >conftest.$ac_ext <<_ACEOF
33938/* confdefs.h. */
33939_ACEOF
33940cat confdefs.h >>conftest.$ac_ext
33941cat >>conftest.$ac_ext <<_ACEOF
33942/* end confdefs.h. */
33943
33944/* Override any gcc2 internal prototype to avoid an error. */
33945#ifdef __cplusplus
33946extern "C"
33947#endif
33948/* We use char because int might match the return type of a gcc2
33949 builtin and then its argument prototype would still apply. */
33950char dlopen ();
33951int
33952main ()
33953{
33954dlopen ();
33955 ;
33956 return 0;
33957}
33958_ACEOF
33959rm -f conftest.$ac_objext conftest$ac_exeext
33960if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33961 (eval $ac_link) 2>conftest.er1
a848cd7e 33962 ac_status=$?
ac1cb8d3
VS
33963 grep -v '^ *+' conftest.er1 >conftest.err
33964 rm -f conftest.er1
33965 cat conftest.err >&5
a848cd7e
SC
33966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33967 (exit $ac_status); } &&
da4486fb 33968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33970 (eval $ac_try) 2>&5
33971 ac_status=$?
33972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33973 (exit $ac_status); }; } &&
33974 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33976 (eval $ac_try) 2>&5
33977 ac_status=$?
33978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33979 (exit $ac_status); }; }; then
33980 ac_cv_lib_dl_dlopen=yes
33981else
33982 echo "$as_me: failed program was:" >&5
33983sed 's/^/| /' conftest.$ac_ext >&5
33984
33985ac_cv_lib_dl_dlopen=no
33986fi
ac1cb8d3
VS
33987rm -f conftest.err conftest.$ac_objext \
33988 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33989LIBS=$ac_check_lib_save_LIBS
33990fi
33991echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
33992echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
33993if test $ac_cv_lib_dl_dlopen = yes; then
33994
33995 cat >>confdefs.h <<\_ACEOF
33996#define HAVE_DLOPEN 1
33997_ACEOF
33998
33999 HAVE_DL_FUNCS=1
34000 DL_LINK=" -ldl$DL_LINK"
34001
34002else
34003
34004
34005for ac_func in shl_load
34006do
34007as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34008echo "$as_me:$LINENO: checking for $ac_func" >&5
34009echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34010if eval "test \"\${$as_ac_var+set}\" = set"; then
34011 echo $ECHO_N "(cached) $ECHO_C" >&6
34012else
34013 cat >conftest.$ac_ext <<_ACEOF
34014/* confdefs.h. */
34015_ACEOF
34016cat confdefs.h >>conftest.$ac_ext
34017cat >>conftest.$ac_ext <<_ACEOF
34018/* end confdefs.h. */
ac1cb8d3
VS
34019/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34020 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34021#define $ac_func innocuous_$ac_func
34022
a848cd7e
SC
34023/* System header to define __stub macros and hopefully few prototypes,
34024 which can conflict with char $ac_func (); below.
34025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34026 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34027
a848cd7e
SC
34028#ifdef __STDC__
34029# include <limits.h>
34030#else
34031# include <assert.h>
34032#endif
ac1cb8d3
VS
34033
34034#undef $ac_func
34035
a848cd7e
SC
34036/* Override any gcc2 internal prototype to avoid an error. */
34037#ifdef __cplusplus
34038extern "C"
34039{
34040#endif
34041/* We use char because int might match the return type of a gcc2
34042 builtin and then its argument prototype would still apply. */
34043char $ac_func ();
34044/* The GNU C library defines this for functions which it implements
34045 to always fail with ENOSYS. Some functions are actually named
34046 something starting with __ and the normal name is an alias. */
34047#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34048choke me
34049#else
34050char (*f) () = $ac_func;
34051#endif
34052#ifdef __cplusplus
34053}
34054#endif
34055
34056int
34057main ()
34058{
34059return f != $ac_func;
34060 ;
34061 return 0;
34062}
34063_ACEOF
34064rm -f conftest.$ac_objext conftest$ac_exeext
34065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34066 (eval $ac_link) 2>conftest.er1
a848cd7e 34067 ac_status=$?
ac1cb8d3
VS
34068 grep -v '^ *+' conftest.er1 >conftest.err
34069 rm -f conftest.er1
34070 cat conftest.err >&5
a848cd7e
SC
34071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34072 (exit $ac_status); } &&
da4486fb 34073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34075 (eval $ac_try) 2>&5
34076 ac_status=$?
34077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34078 (exit $ac_status); }; } &&
34079 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34081 (eval $ac_try) 2>&5
34082 ac_status=$?
34083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34084 (exit $ac_status); }; }; then
34085 eval "$as_ac_var=yes"
34086else
34087 echo "$as_me: failed program was:" >&5
34088sed 's/^/| /' conftest.$ac_ext >&5
34089
34090eval "$as_ac_var=no"
34091fi
ac1cb8d3
VS
34092rm -f conftest.err conftest.$ac_objext \
34093 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34094fi
34095echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34096echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34097if test `eval echo '${'$as_ac_var'}'` = yes; then
34098 cat >>confdefs.h <<_ACEOF
34099#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34100_ACEOF
34101
34102 cat >>confdefs.h <<\_ACEOF
34103#define HAVE_SHL_LOAD 1
34104_ACEOF
34105
34106 HAVE_SHL_FUNCS=1
34107
34108else
34109
34110 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
34111echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
34112if test "${ac_cv_lib_shl_load_dld+set}" = set; then
34113 echo $ECHO_N "(cached) $ECHO_C" >&6
34114else
34115 ac_check_lib_save_LIBS=$LIBS
34116LIBS="-lshl_load $LIBS"
34117cat >conftest.$ac_ext <<_ACEOF
34118/* confdefs.h. */
34119_ACEOF
34120cat confdefs.h >>conftest.$ac_ext
34121cat >>conftest.$ac_ext <<_ACEOF
34122/* end confdefs.h. */
34123
34124/* Override any gcc2 internal prototype to avoid an error. */
34125#ifdef __cplusplus
34126extern "C"
34127#endif
34128/* We use char because int might match the return type of a gcc2
34129 builtin and then its argument prototype would still apply. */
34130char dld ();
34131int
34132main ()
34133{
34134dld ();
34135 ;
34136 return 0;
34137}
34138_ACEOF
34139rm -f conftest.$ac_objext conftest$ac_exeext
34140if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34141 (eval $ac_link) 2>conftest.er1
a848cd7e 34142 ac_status=$?
ac1cb8d3
VS
34143 grep -v '^ *+' conftest.er1 >conftest.err
34144 rm -f conftest.er1
34145 cat conftest.err >&5
a848cd7e
SC
34146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34147 (exit $ac_status); } &&
da4486fb 34148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34150 (eval $ac_try) 2>&5
34151 ac_status=$?
34152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34153 (exit $ac_status); }; } &&
34154 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34156 (eval $ac_try) 2>&5
34157 ac_status=$?
34158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34159 (exit $ac_status); }; }; then
34160 ac_cv_lib_shl_load_dld=yes
34161else
34162 echo "$as_me: failed program was:" >&5
34163sed 's/^/| /' conftest.$ac_ext >&5
34164
34165ac_cv_lib_shl_load_dld=no
34166fi
ac1cb8d3
VS
34167rm -f conftest.err conftest.$ac_objext \
34168 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34169LIBS=$ac_check_lib_save_LIBS
34170fi
34171echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
34172echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
34173if test $ac_cv_lib_shl_load_dld = yes; then
34174
34175 HAVE_SHL_FUNCS=1
34176 DL_LINK=" -ldld$DL_LINK"
34177
34178fi
34179
34180
34181fi
34182done
34183
34184
34185fi
34186
34187
34188fi
34189done
34190
34191
34192 if test "$HAVE_DL_FUNCS" = 1; then
34193
34194for ac_func in dlerror
34195do
34196as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34197echo "$as_me:$LINENO: checking for $ac_func" >&5
34198echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34199if eval "test \"\${$as_ac_var+set}\" = set"; then
34200 echo $ECHO_N "(cached) $ECHO_C" >&6
34201else
34202 cat >conftest.$ac_ext <<_ACEOF
34203/* confdefs.h. */
34204_ACEOF
34205cat confdefs.h >>conftest.$ac_ext
34206cat >>conftest.$ac_ext <<_ACEOF
34207/* end confdefs.h. */
ac1cb8d3
VS
34208/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34210#define $ac_func innocuous_$ac_func
34211
a848cd7e
SC
34212/* System header to define __stub macros and hopefully few prototypes,
34213 which can conflict with char $ac_func (); below.
34214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34215 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34216
a848cd7e
SC
34217#ifdef __STDC__
34218# include <limits.h>
34219#else
34220# include <assert.h>
34221#endif
ac1cb8d3
VS
34222
34223#undef $ac_func
34224
a848cd7e
SC
34225/* Override any gcc2 internal prototype to avoid an error. */
34226#ifdef __cplusplus
34227extern "C"
34228{
34229#endif
34230/* We use char because int might match the return type of a gcc2
34231 builtin and then its argument prototype would still apply. */
34232char $ac_func ();
34233/* The GNU C library defines this for functions which it implements
34234 to always fail with ENOSYS. Some functions are actually named
34235 something starting with __ and the normal name is an alias. */
34236#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34237choke me
34238#else
34239char (*f) () = $ac_func;
34240#endif
34241#ifdef __cplusplus
34242}
34243#endif
34244
34245int
34246main ()
34247{
34248return f != $ac_func;
34249 ;
34250 return 0;
34251}
34252_ACEOF
34253rm -f conftest.$ac_objext conftest$ac_exeext
34254if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34255 (eval $ac_link) 2>conftest.er1
a848cd7e 34256 ac_status=$?
ac1cb8d3
VS
34257 grep -v '^ *+' conftest.er1 >conftest.err
34258 rm -f conftest.er1
34259 cat conftest.err >&5
a848cd7e
SC
34260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34261 (exit $ac_status); } &&
da4486fb 34262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34264 (eval $ac_try) 2>&5
34265 ac_status=$?
34266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34267 (exit $ac_status); }; } &&
34268 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34270 (eval $ac_try) 2>&5
34271 ac_status=$?
34272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34273 (exit $ac_status); }; }; then
34274 eval "$as_ac_var=yes"
34275else
34276 echo "$as_me: failed program was:" >&5
34277sed 's/^/| /' conftest.$ac_ext >&5
34278
34279eval "$as_ac_var=no"
34280fi
ac1cb8d3
VS
34281rm -f conftest.err conftest.$ac_objext \
34282 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34283fi
34284echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34285echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34286if test `eval echo '${'$as_ac_var'}'` = yes; then
34287 cat >>confdefs.h <<_ACEOF
34288#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34289_ACEOF
34290 cat >>confdefs.h <<\_ACEOF
34291#define HAVE_DLERROR 1
34292_ACEOF
34293
34294else
34295
34296 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
34297echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
34298if test "${ac_cv_lib_dl_dlerror+set}" = set; then
34299 echo $ECHO_N "(cached) $ECHO_C" >&6
34300else
34301 ac_check_lib_save_LIBS=$LIBS
34302LIBS="-ldl $LIBS"
34303cat >conftest.$ac_ext <<_ACEOF
34304/* confdefs.h. */
34305_ACEOF
34306cat confdefs.h >>conftest.$ac_ext
34307cat >>conftest.$ac_ext <<_ACEOF
34308/* end confdefs.h. */
34309
34310/* Override any gcc2 internal prototype to avoid an error. */
34311#ifdef __cplusplus
34312extern "C"
34313#endif
34314/* We use char because int might match the return type of a gcc2
34315 builtin and then its argument prototype would still apply. */
34316char dlerror ();
34317int
34318main ()
34319{
34320dlerror ();
34321 ;
34322 return 0;
34323}
34324_ACEOF
34325rm -f conftest.$ac_objext conftest$ac_exeext
34326if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34327 (eval $ac_link) 2>conftest.er1
a848cd7e 34328 ac_status=$?
ac1cb8d3
VS
34329 grep -v '^ *+' conftest.er1 >conftest.err
34330 rm -f conftest.er1
34331 cat conftest.err >&5
a848cd7e
SC
34332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34333 (exit $ac_status); } &&
da4486fb 34334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34336 (eval $ac_try) 2>&5
34337 ac_status=$?
34338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34339 (exit $ac_status); }; } &&
34340 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34342 (eval $ac_try) 2>&5
34343 ac_status=$?
34344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34345 (exit $ac_status); }; }; then
34346 ac_cv_lib_dl_dlerror=yes
34347else
34348 echo "$as_me: failed program was:" >&5
34349sed 's/^/| /' conftest.$ac_ext >&5
34350
34351ac_cv_lib_dl_dlerror=no
34352fi
ac1cb8d3
VS
34353rm -f conftest.err conftest.$ac_objext \
34354 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34355LIBS=$ac_check_lib_save_LIBS
34356fi
34357echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
34358echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
34359if test $ac_cv_lib_dl_dlerror = yes; then
34360 cat >>confdefs.h <<\_ACEOF
34361#define HAVE_DLERROR 1
34362_ACEOF
34363
34364fi
34365
34366
34367
34368fi
34369done
34370
34371 fi
34372 fi
34373
34374 if test "$HAVE_DL_FUNCS" = 0; then
34375 if test "$HAVE_SHL_FUNCS" = 0; then
34376 if test "$USE_UNIX" = 1; then
34377 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
34378echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
34379 wxUSE_DYNAMIC_LOADER=no
34380 wxUSE_DYNLIB_CLASS=no
34381 else
34382 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
34383echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
34384 fi
34385 fi
34386 fi
34387 fi
34388fi
34389
34390if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
34391 cat >>confdefs.h <<\_ACEOF
34392#define wxUSE_DYNAMIC_LOADER 1
34393_ACEOF
34394
34395fi
34396if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
34397 cat >>confdefs.h <<\_ACEOF
34398#define wxUSE_DYNLIB_CLASS 1
34399_ACEOF
34400
34401fi
34402
34403
34404
34405if test "$wxUSE_PLUGINS" = "yes" ; then
34406 if test "$wxUSE_SHARED" = "no" ; then
34407 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
34408echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
34409 wxUSE_PLUGINS=no
34410 fi
34411 if test "$wxUSE_MONOLITHIC" = "yes" ; then
34412 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
34413echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
34414 wxUSE_PLUGINS=no
34415 fi
34416 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
34417 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
34418echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
34419 wxUSE_PLUGINS=no
34420 fi
34421 if test "$wxUSE_PLUGINS" = "yes" ; then
34422 cat >>confdefs.h <<\_ACEOF
34423#define wxUSE_PLUGINS 1
34424_ACEOF
34425
34426 fi
34427fi
34428
34429
34430if test "$wxUSE_STL" = "yes"; then
34431 cat >>confdefs.h <<\_ACEOF
34432#define wxUSE_STL 1
34433_ACEOF
34434
34435fi
34436
34437if test "$wxUSE_APPLE_IEEE" = "yes"; then
34438 cat >>confdefs.h <<\_ACEOF
34439#define wxUSE_APPLE_IEEE 1
34440_ACEOF
34441
34442fi
34443
34444if test "$wxUSE_TIMER" = "yes"; then
34445 cat >>confdefs.h <<\_ACEOF
34446#define wxUSE_TIMER 1
34447_ACEOF
34448
34449fi
34450
34451WITH_PLUGIN_SDL=0
34452if test "$wxUSE_SOUND" = "yes"; then
34453 if test "$USE_UNIX" = "1" ; then
34454
34455for ac_header in sys/soundcard.h
34456do
34457as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34458if eval "test \"\${$as_ac_Header+set}\" = set"; then
34459 echo "$as_me:$LINENO: checking for $ac_header" >&5
34460echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34461if eval "test \"\${$as_ac_Header+set}\" = set"; then
34462 echo $ECHO_N "(cached) $ECHO_C" >&6
34463fi
34464echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34465echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34466else
34467 # Is the header compilable?
34468echo "$as_me:$LINENO: checking $ac_header usability" >&5
34469echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34470cat >conftest.$ac_ext <<_ACEOF
34471/* confdefs.h. */
34472_ACEOF
34473cat confdefs.h >>conftest.$ac_ext
34474cat >>conftest.$ac_ext <<_ACEOF
34475/* end confdefs.h. */
34476$ac_includes_default
34477#include <$ac_header>
34478_ACEOF
34479rm -f conftest.$ac_objext
34480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34481 (eval $ac_compile) 2>conftest.er1
a848cd7e 34482 ac_status=$?
ac1cb8d3
VS
34483 grep -v '^ *+' conftest.er1 >conftest.err
34484 rm -f conftest.er1
34485 cat conftest.err >&5
a848cd7e
SC
34486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34487 (exit $ac_status); } &&
da4486fb 34488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34490 (eval $ac_try) 2>&5
34491 ac_status=$?
34492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34493 (exit $ac_status); }; } &&
34494 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34496 (eval $ac_try) 2>&5
34497 ac_status=$?
34498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34499 (exit $ac_status); }; }; then
34500 ac_header_compiler=yes
34501else
34502 echo "$as_me: failed program was:" >&5
34503sed 's/^/| /' conftest.$ac_ext >&5
34504
34505ac_header_compiler=no
34506fi
ac1cb8d3 34507rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34508echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34509echo "${ECHO_T}$ac_header_compiler" >&6
34510
34511# Is the header present?
34512echo "$as_me:$LINENO: checking $ac_header presence" >&5
34513echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34514cat >conftest.$ac_ext <<_ACEOF
34515/* confdefs.h. */
34516_ACEOF
34517cat confdefs.h >>conftest.$ac_ext
34518cat >>conftest.$ac_ext <<_ACEOF
34519/* end confdefs.h. */
34520#include <$ac_header>
34521_ACEOF
34522if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34523 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34524 ac_status=$?
34525 grep -v '^ *+' conftest.er1 >conftest.err
34526 rm -f conftest.er1
34527 cat conftest.err >&5
34528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34529 (exit $ac_status); } >/dev/null; then
34530 if test -s conftest.err; then
34531 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 34532 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
34533 else
34534 ac_cpp_err=
34535 fi
34536else
34537 ac_cpp_err=yes
34538fi
34539if test -z "$ac_cpp_err"; then
34540 ac_header_preproc=yes
34541else
34542 echo "$as_me: failed program was:" >&5
34543sed 's/^/| /' conftest.$ac_ext >&5
34544
34545 ac_header_preproc=no
34546fi
34547rm -f conftest.err conftest.$ac_ext
34548echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34549echo "${ECHO_T}$ac_header_preproc" >&6
34550
34551# So? What about this header?
ac1cb8d3
VS
34552case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34553 yes:no: )
a848cd7e
SC
34554 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34555echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
34556 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34557echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34558 ac_header_preproc=yes
a848cd7e 34559 ;;
ac1cb8d3 34560 no:yes:* )
a848cd7e
SC
34561 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34562echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
34563 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34564echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34565 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34566echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34567 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34568echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
34569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34570echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
34571 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34572echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
34573 (
34574 cat <<\_ASBOX
ac1cb8d3
VS
34575## ----------------------------------------- ##
34576## Report this to wx-dev@lists.wxwidgets.org ##
34577## ----------------------------------------- ##
a848cd7e
SC
34578_ASBOX
34579 ) |
34580 sed "s/^/$as_me: WARNING: /" >&2
34581 ;;
34582esac
34583echo "$as_me:$LINENO: checking for $ac_header" >&5
34584echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34585if eval "test \"\${$as_ac_Header+set}\" = set"; then
34586 echo $ECHO_N "(cached) $ECHO_C" >&6
34587else
ac1cb8d3 34588 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
34589fi
34590echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34591echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34592
34593fi
34594if test `eval echo '${'$as_ac_Header'}'` = yes; then
34595 cat >>confdefs.h <<_ACEOF
34596#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34597_ACEOF
34598
34599fi
34600
34601done
34602
34603
34604 if test "$wxUSE_LIBSDL" != "no"; then
34605
34606# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
34607if test "${with_sdl_prefix+set}" = set; then
34608 withval="$with_sdl_prefix"
34609 sdl_prefix="$withval"
34610else
34611 sdl_prefix=""
34612fi;
34613
34614# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
34615if test "${with_sdl_exec_prefix+set}" = set; then
34616 withval="$with_sdl_exec_prefix"
34617 sdl_exec_prefix="$withval"
34618else
34619 sdl_exec_prefix=""
34620fi;
34621# Check whether --enable-sdltest or --disable-sdltest was given.
34622if test "${enable_sdltest+set}" = set; then
34623 enableval="$enable_sdltest"
34624
34625else
34626 enable_sdltest=yes
34627fi;
34628
34629 if test x$sdl_exec_prefix != x ; then
34630 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
34631 if test x${SDL_CONFIG+set} != xset ; then
34632 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
34633 fi
34634 fi
34635 if test x$sdl_prefix != x ; then
34636 sdl_args="$sdl_args --prefix=$sdl_prefix"
34637 if test x${SDL_CONFIG+set} != xset ; then
34638 SDL_CONFIG=$sdl_prefix/bin/sdl-config
34639 fi
34640 fi
34641
34642
34643 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
34644 # Extract the first word of "sdl-config", so it can be a program name with args.
34645set dummy sdl-config; ac_word=$2
34646echo "$as_me:$LINENO: checking for $ac_word" >&5
34647echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34648if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
34649 echo $ECHO_N "(cached) $ECHO_C" >&6
34650else
34651 case $SDL_CONFIG in
34652 [\\/]* | ?:[\\/]*)
34653 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
34654 ;;
34655 *)
34656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34657for as_dir in $PATH
34658do
34659 IFS=$as_save_IFS
34660 test -z "$as_dir" && as_dir=.
34661 for ac_exec_ext in '' $ac_executable_extensions; do
34662 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34663 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34665 break 2
34666 fi
34667done
34668done
34669
34670 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
34671 ;;
34672esac
34673fi
34674SDL_CONFIG=$ac_cv_path_SDL_CONFIG
34675
34676if test -n "$SDL_CONFIG"; then
34677 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
34678echo "${ECHO_T}$SDL_CONFIG" >&6
34679else
34680 echo "$as_me:$LINENO: result: no" >&5
34681echo "${ECHO_T}no" >&6
34682fi
34683
34684 min_sdl_version=1.2.0
34685 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
34686echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
34687 no_sdl=""
34688 if test "$SDL_CONFIG" = "no" ; then
34689 no_sdl=yes
34690 else
34691 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
34692 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
34693
34694 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
34695 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
34696 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
34697 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
34698 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
34699 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
34700 if test "x$enable_sdltest" = "xyes" ; then
34701 ac_save_CFLAGS="$CFLAGS"
34702 ac_save_LIBS="$LIBS"
34703 CFLAGS="$CFLAGS $SDL_CFLAGS"
34704 LIBS="$LIBS $SDL_LIBS"
34705 rm -f conf.sdltest
34706 if test "$cross_compiling" = yes; then
34707 echo $ac_n "cross compiling; assumed OK... $ac_c"
34708else
34709 cat >conftest.$ac_ext <<_ACEOF
34710/* confdefs.h. */
34711_ACEOF
34712cat confdefs.h >>conftest.$ac_ext
34713cat >>conftest.$ac_ext <<_ACEOF
34714/* end confdefs.h. */
34715
34716#include <stdio.h>
34717#include <stdlib.h>
34718#include <string.h>
34719#include "SDL.h"
34720
34721char*
34722my_strdup (char *str)
34723{
34724 char *new_str;
34725
34726 if (str)
34727 {
34728 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
34729 strcpy (new_str, str);
34730 }
34731 else
34732 new_str = NULL;
34733
34734 return new_str;
34735}
34736
34737int main (int argc, char *argv[])
34738{
34739 int major, minor, micro;
34740 char *tmp_version;
34741
34742 /* This hangs on some systems (?)
34743 system ("touch conf.sdltest");
34744 */
34745 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
34746
34747 /* HP/UX 9 (%@#!) writes to sscanf strings */
34748 tmp_version = my_strdup("$min_sdl_version");
34749 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
34750 printf("%s, bad version string\n", "$min_sdl_version");
34751 exit(1);
34752 }
34753
34754 if (($sdl_major_version > major) ||
34755 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
34756 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
34757 {
34758 return 0;
34759 }
34760 else
34761 {
34762 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
34763 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
34764 printf("*** best to upgrade to the required version.\n");
34765 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
34766 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
34767 printf("*** config.cache before re-running configure\n");
34768 return 1;
34769 }
34770}
34771
34772
34773_ACEOF
34774rm -f conftest$ac_exeext
34775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34776 (eval $ac_link) 2>&5
34777 ac_status=$?
34778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34779 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34781 (eval $ac_try) 2>&5
34782 ac_status=$?
34783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34784 (exit $ac_status); }; }; then
34785 :
34786else
34787 echo "$as_me: program exited with status $ac_status" >&5
34788echo "$as_me: failed program was:" >&5
34789sed 's/^/| /' conftest.$ac_ext >&5
34790
34791( exit $ac_status )
34792no_sdl=yes
34793fi
ac1cb8d3 34794rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34795fi
34796 CFLAGS="$ac_save_CFLAGS"
34797 LIBS="$ac_save_LIBS"
34798 fi
34799 fi
34800 if test "x$no_sdl" = x ; then
34801 echo "$as_me:$LINENO: result: yes" >&5
34802echo "${ECHO_T}yes" >&6
34803
34804 EXTRALIBS_SDL="$SDL_LIBS"
34805 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
34806 cat >>confdefs.h <<\_ACEOF
34807#define wxUSE_LIBSDL 1
34808_ACEOF
34809
34810
34811 else
34812 echo "$as_me:$LINENO: result: no" >&5
34813echo "${ECHO_T}no" >&6
34814 if test "$SDL_CONFIG" = "no" ; then
34815 echo "*** The sdl-config script installed by SDL could not be found"
34816 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
34817 echo "*** your path, or set the SDL_CONFIG environment variable to the"
34818 echo "*** full path to sdl-config."
34819 else
34820 if test -f conf.sdltest ; then
34821 :
34822 else
34823 echo "*** Could not run SDL test program, checking why..."
34824 CFLAGS="$CFLAGS $SDL_CFLAGS"
34825 LIBS="$LIBS $SDL_LIBS"
34826 cat >conftest.$ac_ext <<_ACEOF
34827/* confdefs.h. */
34828_ACEOF
34829cat confdefs.h >>conftest.$ac_ext
34830cat >>conftest.$ac_ext <<_ACEOF
34831/* end confdefs.h. */
34832
34833#include <stdio.h>
34834#include "SDL.h"
34835
34836int main(int argc, char *argv[])
34837{ return 0; }
34838#undef main
34839#define main K_and_R_C_main
34840
34841int
34842main ()
34843{
34844 return 0;
34845 ;
34846 return 0;
34847}
34848_ACEOF
34849rm -f conftest.$ac_objext conftest$ac_exeext
34850if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34851 (eval $ac_link) 2>conftest.er1
a848cd7e 34852 ac_status=$?
ac1cb8d3
VS
34853 grep -v '^ *+' conftest.er1 >conftest.err
34854 rm -f conftest.er1
34855 cat conftest.err >&5
a848cd7e
SC
34856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34857 (exit $ac_status); } &&
da4486fb 34858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34860 (eval $ac_try) 2>&5
34861 ac_status=$?
34862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34863 (exit $ac_status); }; } &&
34864 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34866 (eval $ac_try) 2>&5
34867 ac_status=$?
34868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34869 (exit $ac_status); }; }; then
34870 echo "*** The test program compiled, but did not run. This usually means"
34871 echo "*** that the run-time linker is not finding SDL or finding the wrong"
34872 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
34873 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
34874 echo "*** to the installed location Also, make sure you have run ldconfig if that"
34875 echo "*** is required on your system"
34876 echo "***"
34877 echo "*** If you have an old version installed, it is best to remove it, although"
34878 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
34879else
34880 echo "$as_me: failed program was:" >&5
34881sed 's/^/| /' conftest.$ac_ext >&5
34882
34883 echo "*** The test program failed to compile or link. See the file config.log for the"
34884 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
34885 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
34886 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
34887fi
ac1cb8d3
VS
34888rm -f conftest.err conftest.$ac_objext \
34889 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34890 CFLAGS="$ac_save_CFLAGS"
34891 LIBS="$ac_save_LIBS"
34892 fi
34893 fi
34894 SDL_CFLAGS=""
34895 SDL_LIBS=""
34896 wxUSE_LIBSDL="no"
34897 fi
34898
34899
34900 rm -f conf.sdltest
34901
34902 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
34903 WITH_PLUGIN_SDL=1
34904 fi
34905 fi
34906 fi
34907
34908 cat >>confdefs.h <<\_ACEOF
34909#define wxUSE_SOUND 1
34910_ACEOF
34911
34912 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
34913fi
34914
d1c38808
VZ
34915if test "$WXGTK20" = 1; then
34916 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
34917 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
34918
34919
34920 succeeded=no
34921
34922 if test -z "$PKG_CONFIG"; then
34923 # Extract the first word of "pkg-config", so it can be a program name with args.
34924set dummy pkg-config; ac_word=$2
34925echo "$as_me:$LINENO: checking for $ac_word" >&5
34926echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34927if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
34928 echo $ECHO_N "(cached) $ECHO_C" >&6
34929else
34930 case $PKG_CONFIG in
34931 [\\/]* | ?:[\\/]*)
34932 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
34933 ;;
34934 *)
34935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34936for as_dir in $PATH
34937do
34938 IFS=$as_save_IFS
34939 test -z "$as_dir" && as_dir=.
34940 for ac_exec_ext in '' $ac_executable_extensions; do
34941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34942 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34944 break 2
34945 fi
34946done
34947done
34948
34949 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
34950 ;;
34951esac
34952fi
34953PKG_CONFIG=$ac_cv_path_PKG_CONFIG
34954
34955if test -n "$PKG_CONFIG"; then
34956 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
34957echo "${ECHO_T}$PKG_CONFIG" >&6
34958else
34959 echo "$as_me:$LINENO: result: no" >&5
34960echo "${ECHO_T}no" >&6
34961fi
34962
34963 fi
34964
34965 if test "$PKG_CONFIG" = "no" ; then
34966 echo "*** The pkg-config script could not be found. Make sure it is"
34967 echo "*** in your path, or set the PKG_CONFIG environment variable"
34968 echo "*** to the full path to pkg-config."
34969 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
34970 else
34971 PKG_CONFIG_MIN_VERSION=0.9.0
34972 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
34973 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
34974echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 34975
ffa762ff 34976 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
34977 echo "$as_me:$LINENO: result: yes" >&5
34978echo "${ECHO_T}yes" >&6
34979 succeeded=yes
34980
34981 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
34982echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 34983 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
34984 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
34985echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
34986
34987 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
34988echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 34989 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
34990 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
34991echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
34992 else
34993 LIBGNOMEPRINTUI_CFLAGS=""
34994 LIBGNOMEPRINTUI_LIBS=""
34995 ## If we have a custom action on failure, don't print errors, but
34996 ## do set a variable so people can do so.
ffa762ff 34997 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
34998
34999 fi
35000
35001
35002
35003 else
35004 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
35005 echo "*** See http://www.freedesktop.org/software/pkgconfig"
35006 fi
35007 fi
35008
35009 if test $succeeded = yes; then
35010
d1c38808
VZ
35011 CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS"
35012 cat >>confdefs.h <<\_ACEOF
35013#define wxUSE_LIBGNOMEPRINT 1
35014_ACEOF
35015
35016
35017 else
35018
35019 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
35020echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
35021 wxUSE_LIBGNOMEPRINT="no"
35022
35023
35024 fi
35025
35026 fi
35027 fi
35028fi
35029
35030
a848cd7e
SC
35031if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
35032 cat >>confdefs.h <<\_ACEOF
35033#define wxUSE_CMDLINE_PARSER 1
35034_ACEOF
35035
35036fi
35037
35038if test "$wxUSE_STOPWATCH" = "yes"; then
35039 cat >>confdefs.h <<\_ACEOF
35040#define wxUSE_STOPWATCH 1
35041_ACEOF
35042
35043fi
35044
35045if test "$wxUSE_DATETIME" = "yes"; then
35046 cat >>confdefs.h <<\_ACEOF
35047#define wxUSE_DATETIME 1
35048_ACEOF
35049
35050fi
35051
35052if test "$wxUSE_FILE" = "yes"; then
35053 cat >>confdefs.h <<\_ACEOF
35054#define wxUSE_FILE 1
35055_ACEOF
35056
35057fi
35058
35059if test "$wxUSE_FFILE" = "yes"; then
35060 cat >>confdefs.h <<\_ACEOF
35061#define wxUSE_FFILE 1
35062_ACEOF
35063
35064fi
35065
35066if test "$wxUSE_FILESYSTEM" = "yes"; then
35067 cat >>confdefs.h <<\_ACEOF
35068#define wxUSE_FILESYSTEM 1
35069_ACEOF
35070
35071fi
35072
35073if test "$wxUSE_FS_ZIP" = "yes"; then
35074 cat >>confdefs.h <<\_ACEOF
35075#define wxUSE_FS_ZIP 1
35076_ACEOF
35077
35078fi
35079
35080if test "$wxUSE_ZIPSTREAM" = "yes"; then
35081 cat >>confdefs.h <<\_ACEOF
35082#define wxUSE_ZIPSTREAM 1
35083_ACEOF
35084
35085fi
35086
a848cd7e
SC
35087if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
35088 cat >>confdefs.h <<\_ACEOF
35089#define wxUSE_ON_FATAL_EXCEPTION 1
35090_ACEOF
35091
35092fi
35093
eaff0f0d
VZ
35094if test "$wxUSE_STACKWALKER" = "yes"; then
35095 cat >>confdefs.h <<\_ACEOF
35096#define wxUSE_STACKWALKER 1
35097_ACEOF
35098
35099fi
35100
a848cd7e
SC
35101if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
35102 cat >>confdefs.h <<\_ACEOF
35103#define wxUSE_SNGLINST_CHECKER 1
35104_ACEOF
35105
35106fi
35107
35108if test "$wxUSE_BUSYINFO" = "yes"; then
35109 cat >>confdefs.h <<\_ACEOF
35110#define wxUSE_BUSYINFO 1
35111_ACEOF
35112
35113fi
35114
35115if test "$wxUSE_STD_IOSTREAM" = "yes"; then
35116 cat >>confdefs.h <<\_ACEOF
35117#define wxUSE_STD_IOSTREAM 1
35118_ACEOF
35119
35120fi
35121
35122if test "$wxUSE_TEXTBUFFER" = "yes"; then
35123 cat >>confdefs.h <<\_ACEOF
35124#define wxUSE_TEXTBUFFER 1
35125_ACEOF
35126
35127fi
35128
35129if test "$wxUSE_TEXTFILE" = "yes"; then
35130 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
35131 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
35132echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
35133 else
35134 cat >>confdefs.h <<\_ACEOF
35135#define wxUSE_TEXTFILE 1
35136_ACEOF
35137
35138 fi
35139fi
35140
35141if test "$wxUSE_CONFIG" = "yes" ; then
35142 if test "$wxUSE_TEXTFILE" != "yes"; then
35143 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
35144echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
35145 else
35146 cat >>confdefs.h <<\_ACEOF
35147#define wxUSE_CONFIG 1
35148_ACEOF
35149
35150 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
35151 fi
35152fi
35153
35154if test "$wxUSE_INTL" = "yes" ; then
35155 if test "$wxUSE_FILE" != "yes"; then
35156 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
35157echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
35158 else
35159 cat >>confdefs.h <<\_ACEOF
35160#define wxUSE_INTL 1
35161_ACEOF
35162
35163 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
35164 GUIDIST="$GUIDIST INTL_DIST"
35165 fi
35166fi
35167
35168if test "$wxUSE_LOG" = "yes"; then
35169 cat >>confdefs.h <<\_ACEOF
35170#define wxUSE_LOG 1
35171_ACEOF
35172
35173
35174 if test "$wxUSE_LOGGUI" = "yes"; then
35175 cat >>confdefs.h <<\_ACEOF
35176#define wxUSE_LOGGUI 1
35177_ACEOF
35178
35179 fi
35180
35181 if test "$wxUSE_LOGWINDOW" = "yes"; then
35182 cat >>confdefs.h <<\_ACEOF
35183#define wxUSE_LOGWINDOW 1
35184_ACEOF
35185
35186 fi
35187
35188 if test "$wxUSE_LOGDIALOG" = "yes"; then
35189 cat >>confdefs.h <<\_ACEOF
35190#define wxUSE_LOG_DIALOG 1
35191_ACEOF
35192
35193 fi
35194fi
35195
35196if test "$wxUSE_LONGLONG" = "yes"; then
35197 cat >>confdefs.h <<\_ACEOF
35198#define wxUSE_LONGLONG 1
35199_ACEOF
35200
35201fi
35202
35203if test "$wxUSE_GEOMETRY" = "yes"; then
35204 cat >>confdefs.h <<\_ACEOF
35205#define wxUSE_GEOMETRY 1
35206_ACEOF
35207
35208fi
35209
35210if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
35211 cat >>confdefs.h <<\_ACEOF
35212#define wxUSE_DIALUP_MANAGER 1
35213_ACEOF
35214
35215 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
35216fi
35217
35218if test "$wxUSE_STREAMS" = "yes" ; then
35219 cat >>confdefs.h <<\_ACEOF
35220#define wxUSE_STREAMS 1
35221_ACEOF
35222
35223fi
35224
35225
35226if test "$wxUSE_DATETIME" = "yes"; then
35227
35228for ac_func in strptime
35229do
35230as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35231echo "$as_me:$LINENO: checking for $ac_func" >&5
35232echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35233if eval "test \"\${$as_ac_var+set}\" = set"; then
35234 echo $ECHO_N "(cached) $ECHO_C" >&6
35235else
35236 cat >conftest.$ac_ext <<_ACEOF
35237/* confdefs.h. */
35238_ACEOF
35239cat confdefs.h >>conftest.$ac_ext
35240cat >>conftest.$ac_ext <<_ACEOF
35241/* end confdefs.h. */
ac1cb8d3
VS
35242/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35243 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35244#define $ac_func innocuous_$ac_func
35245
a848cd7e
SC
35246/* System header to define __stub macros and hopefully few prototypes,
35247 which can conflict with char $ac_func (); below.
35248 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35249 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35250
a848cd7e
SC
35251#ifdef __STDC__
35252# include <limits.h>
35253#else
35254# include <assert.h>
35255#endif
ac1cb8d3
VS
35256
35257#undef $ac_func
35258
a848cd7e
SC
35259/* Override any gcc2 internal prototype to avoid an error. */
35260#ifdef __cplusplus
35261extern "C"
35262{
35263#endif
35264/* We use char because int might match the return type of a gcc2
35265 builtin and then its argument prototype would still apply. */
35266char $ac_func ();
35267/* The GNU C library defines this for functions which it implements
35268 to always fail with ENOSYS. Some functions are actually named
35269 something starting with __ and the normal name is an alias. */
35270#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35271choke me
35272#else
35273char (*f) () = $ac_func;
35274#endif
35275#ifdef __cplusplus
35276}
35277#endif
35278
35279int
35280main ()
35281{
35282return f != $ac_func;
35283 ;
35284 return 0;
35285}
35286_ACEOF
35287rm -f conftest.$ac_objext conftest$ac_exeext
35288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35289 (eval $ac_link) 2>conftest.er1
a848cd7e 35290 ac_status=$?
ac1cb8d3
VS
35291 grep -v '^ *+' conftest.er1 >conftest.err
35292 rm -f conftest.er1
35293 cat conftest.err >&5
a848cd7e
SC
35294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35295 (exit $ac_status); } &&
da4486fb 35296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35298 (eval $ac_try) 2>&5
35299 ac_status=$?
35300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35301 (exit $ac_status); }; } &&
35302 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35304 (eval $ac_try) 2>&5
35305 ac_status=$?
35306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35307 (exit $ac_status); }; }; then
35308 eval "$as_ac_var=yes"
35309else
35310 echo "$as_me: failed program was:" >&5
35311sed 's/^/| /' conftest.$ac_ext >&5
35312
35313eval "$as_ac_var=no"
35314fi
ac1cb8d3
VS
35315rm -f conftest.err conftest.$ac_objext \
35316 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35317fi
35318echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35319echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35320if test `eval echo '${'$as_ac_var'}'` = yes; then
35321 cat >>confdefs.h <<_ACEOF
35322#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35323_ACEOF
35324
35325fi
35326done
35327
35328
35329 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
35330echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
35331if test "${wx_cv_var_timezone+set}" = set; then
35332 echo $ECHO_N "(cached) $ECHO_C" >&6
35333else
35334
35335 cat >conftest.$ac_ext <<_ACEOF
35336/* confdefs.h. */
35337_ACEOF
35338cat confdefs.h >>conftest.$ac_ext
35339cat >>conftest.$ac_ext <<_ACEOF
35340/* end confdefs.h. */
35341
35342 #include <time.h>
35343
35344int
35345main ()
35346{
35347
35348 int tz;
35349 tz = timezone;
35350
35351 ;
35352 return 0;
35353}
35354_ACEOF
35355rm -f conftest.$ac_objext
35356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35357 (eval $ac_compile) 2>conftest.er1
a848cd7e 35358 ac_status=$?
ac1cb8d3
VS
35359 grep -v '^ *+' conftest.er1 >conftest.err
35360 rm -f conftest.er1
35361 cat conftest.err >&5
a848cd7e
SC
35362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35363 (exit $ac_status); } &&
da4486fb 35364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35366 (eval $ac_try) 2>&5
35367 ac_status=$?
35368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35369 (exit $ac_status); }; } &&
35370 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35372 (eval $ac_try) 2>&5
35373 ac_status=$?
35374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35375 (exit $ac_status); }; }; then
35376
35377 wx_cv_var_timezone=timezone
35378
35379else
35380 echo "$as_me: failed program was:" >&5
35381sed 's/^/| /' conftest.$ac_ext >&5
35382
35383
35384 cat >conftest.$ac_ext <<_ACEOF
35385/* confdefs.h. */
35386_ACEOF
35387cat confdefs.h >>conftest.$ac_ext
35388cat >>conftest.$ac_ext <<_ACEOF
35389/* end confdefs.h. */
35390
35391 #include <time.h>
35392
35393int
35394main ()
35395{
35396
35397 int tz;
35398 tz = _timezone;
35399
35400 ;
35401 return 0;
35402}
35403_ACEOF
35404rm -f conftest.$ac_objext
35405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35406 (eval $ac_compile) 2>conftest.er1
a848cd7e 35407 ac_status=$?
ac1cb8d3
VS
35408 grep -v '^ *+' conftest.er1 >conftest.err
35409 rm -f conftest.er1
35410 cat conftest.err >&5
a848cd7e
SC
35411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35412 (exit $ac_status); } &&
da4486fb 35413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35415 (eval $ac_try) 2>&5
35416 ac_status=$?
35417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35418 (exit $ac_status); }; } &&
35419 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35421 (eval $ac_try) 2>&5
35422 ac_status=$?
35423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35424 (exit $ac_status); }; }; then
35425
35426 wx_cv_var_timezone=_timezone
35427
35428else
35429 echo "$as_me: failed program was:" >&5
35430sed 's/^/| /' conftest.$ac_ext >&5
35431
35432
35433 cat >conftest.$ac_ext <<_ACEOF
35434/* confdefs.h. */
35435_ACEOF
35436cat confdefs.h >>conftest.$ac_ext
35437cat >>conftest.$ac_ext <<_ACEOF
35438/* end confdefs.h. */
35439
35440 #include <time.h>
35441
35442int
35443main ()
35444{
35445
35446 int tz;
35447 tz = __timezone;
35448
35449 ;
35450 return 0;
35451}
35452_ACEOF
35453rm -f conftest.$ac_objext
35454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35455 (eval $ac_compile) 2>conftest.er1
a848cd7e 35456 ac_status=$?
ac1cb8d3
VS
35457 grep -v '^ *+' conftest.er1 >conftest.err
35458 rm -f conftest.er1
35459 cat conftest.err >&5
a848cd7e
SC
35460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35461 (exit $ac_status); } &&
da4486fb 35462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35464 (eval $ac_try) 2>&5
35465 ac_status=$?
35466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35467 (exit $ac_status); }; } &&
35468 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35470 (eval $ac_try) 2>&5
35471 ac_status=$?
35472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35473 (exit $ac_status); }; }; then
35474
35475 wx_cv_var_timezone=__timezone
35476
35477else
35478 echo "$as_me: failed program was:" >&5
35479sed 's/^/| /' conftest.$ac_ext >&5
35480
35481
35482 if test "$USE_DOS" = 0 ; then
35483 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
35484echo "$as_me: WARNING: no timezone variable" >&2;}
35485 fi
35486
35487
35488fi
ac1cb8d3 35489rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35490
35491
35492fi
ac1cb8d3 35493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35494
35495
35496fi
ac1cb8d3 35497rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35498
35499
35500fi
35501echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
35502echo "${ECHO_T}$wx_cv_var_timezone" >&6
35503
35504 if test "x$wx_cv_var_timezone" != x ; then
35505 cat >>confdefs.h <<_ACEOF
35506#define WX_TIMEZONE $wx_cv_var_timezone
35507_ACEOF
35508
35509 fi
35510
35511
35512for ac_func in localtime
35513do
35514as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35515echo "$as_me:$LINENO: checking for $ac_func" >&5
35516echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35517if eval "test \"\${$as_ac_var+set}\" = set"; then
35518 echo $ECHO_N "(cached) $ECHO_C" >&6
35519else
35520 cat >conftest.$ac_ext <<_ACEOF
35521/* confdefs.h. */
35522_ACEOF
35523cat confdefs.h >>conftest.$ac_ext
35524cat >>conftest.$ac_ext <<_ACEOF
35525/* end confdefs.h. */
ac1cb8d3
VS
35526/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35527 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35528#define $ac_func innocuous_$ac_func
35529
a848cd7e
SC
35530/* System header to define __stub macros and hopefully few prototypes,
35531 which can conflict with char $ac_func (); below.
35532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35533 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35534
a848cd7e
SC
35535#ifdef __STDC__
35536# include <limits.h>
35537#else
35538# include <assert.h>
35539#endif
ac1cb8d3
VS
35540
35541#undef $ac_func
35542
a848cd7e
SC
35543/* Override any gcc2 internal prototype to avoid an error. */
35544#ifdef __cplusplus
35545extern "C"
35546{
35547#endif
35548/* We use char because int might match the return type of a gcc2
35549 builtin and then its argument prototype would still apply. */
35550char $ac_func ();
35551/* The GNU C library defines this for functions which it implements
35552 to always fail with ENOSYS. Some functions are actually named
35553 something starting with __ and the normal name is an alias. */
35554#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35555choke me
35556#else
35557char (*f) () = $ac_func;
35558#endif
35559#ifdef __cplusplus
35560}
35561#endif
35562
35563int
35564main ()
35565{
35566return f != $ac_func;
35567 ;
35568 return 0;
35569}
35570_ACEOF
35571rm -f conftest.$ac_objext conftest$ac_exeext
35572if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35573 (eval $ac_link) 2>conftest.er1
a848cd7e 35574 ac_status=$?
ac1cb8d3
VS
35575 grep -v '^ *+' conftest.er1 >conftest.err
35576 rm -f conftest.er1
35577 cat conftest.err >&5
a848cd7e
SC
35578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35579 (exit $ac_status); } &&
da4486fb 35580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35582 (eval $ac_try) 2>&5
35583 ac_status=$?
35584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35585 (exit $ac_status); }; } &&
35586 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35588 (eval $ac_try) 2>&5
35589 ac_status=$?
35590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35591 (exit $ac_status); }; }; then
35592 eval "$as_ac_var=yes"
35593else
35594 echo "$as_me: failed program was:" >&5
35595sed 's/^/| /' conftest.$ac_ext >&5
35596
35597eval "$as_ac_var=no"
35598fi
ac1cb8d3
VS
35599rm -f conftest.err conftest.$ac_objext \
35600 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35601fi
35602echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35603echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35604if test `eval echo '${'$as_ac_var'}'` = yes; then
35605 cat >>confdefs.h <<_ACEOF
35606#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35607_ACEOF
35608
35609fi
35610done
35611
35612
35613 if test "$ac_cv_func_localtime" = "yes"; then
35614 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
35615echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
35616if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
35617 echo $ECHO_N "(cached) $ECHO_C" >&6
35618else
35619
35620 cat >conftest.$ac_ext <<_ACEOF
35621/* confdefs.h. */
35622_ACEOF
35623cat confdefs.h >>conftest.$ac_ext
35624cat >>conftest.$ac_ext <<_ACEOF
35625/* end confdefs.h. */
35626
35627 #include <time.h>
35628
35629int
35630main ()
35631{
35632
35633 struct tm tm;
35634 tm.tm_gmtoff++;
35635
35636 ;
35637 return 0;
35638}
35639_ACEOF
35640rm -f conftest.$ac_objext
35641if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35642 (eval $ac_compile) 2>conftest.er1
a848cd7e 35643 ac_status=$?
ac1cb8d3
VS
35644 grep -v '^ *+' conftest.er1 >conftest.err
35645 rm -f conftest.er1
35646 cat conftest.err >&5
a848cd7e
SC
35647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35648 (exit $ac_status); } &&
da4486fb 35649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35651 (eval $ac_try) 2>&5
35652 ac_status=$?
35653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35654 (exit $ac_status); }; } &&
35655 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35657 (eval $ac_try) 2>&5
35658 ac_status=$?
35659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35660 (exit $ac_status); }; }; then
35661
35662 wx_cv_struct_tm_has_gmtoff=yes
35663
35664else
35665 echo "$as_me: failed program was:" >&5
35666sed 's/^/| /' conftest.$ac_ext >&5
35667
35668wx_cv_struct_tm_has_gmtoff=no
35669
35670fi
ac1cb8d3 35671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35672
35673fi
35674echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
35675echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
35676 fi
35677
35678 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
35679 cat >>confdefs.h <<\_ACEOF
35680#define WX_GMTOFF_IN_TM 1
35681_ACEOF
35682
35683 fi
35684
35685
35686
35687for ac_func in gettimeofday ftime
35688do
35689as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35690echo "$as_me:$LINENO: checking for $ac_func" >&5
35691echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35692if eval "test \"\${$as_ac_var+set}\" = set"; then
35693 echo $ECHO_N "(cached) $ECHO_C" >&6
35694else
35695 cat >conftest.$ac_ext <<_ACEOF
35696/* confdefs.h. */
35697_ACEOF
35698cat confdefs.h >>conftest.$ac_ext
35699cat >>conftest.$ac_ext <<_ACEOF
35700/* end confdefs.h. */
ac1cb8d3
VS
35701/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35702 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35703#define $ac_func innocuous_$ac_func
35704
a848cd7e
SC
35705/* System header to define __stub macros and hopefully few prototypes,
35706 which can conflict with char $ac_func (); below.
35707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35708 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35709
a848cd7e
SC
35710#ifdef __STDC__
35711# include <limits.h>
35712#else
35713# include <assert.h>
35714#endif
ac1cb8d3
VS
35715
35716#undef $ac_func
35717
a848cd7e
SC
35718/* Override any gcc2 internal prototype to avoid an error. */
35719#ifdef __cplusplus
35720extern "C"
35721{
35722#endif
35723/* We use char because int might match the return type of a gcc2
35724 builtin and then its argument prototype would still apply. */
35725char $ac_func ();
35726/* The GNU C library defines this for functions which it implements
35727 to always fail with ENOSYS. Some functions are actually named
35728 something starting with __ and the normal name is an alias. */
35729#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35730choke me
35731#else
35732char (*f) () = $ac_func;
35733#endif
35734#ifdef __cplusplus
35735}
35736#endif
35737
35738int
35739main ()
35740{
35741return f != $ac_func;
35742 ;
35743 return 0;
35744}
35745_ACEOF
35746rm -f conftest.$ac_objext conftest$ac_exeext
35747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35748 (eval $ac_link) 2>conftest.er1
a848cd7e 35749 ac_status=$?
ac1cb8d3
VS
35750 grep -v '^ *+' conftest.er1 >conftest.err
35751 rm -f conftest.er1
35752 cat conftest.err >&5
a848cd7e
SC
35753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35754 (exit $ac_status); } &&
da4486fb 35755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35757 (eval $ac_try) 2>&5
35758 ac_status=$?
35759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35760 (exit $ac_status); }; } &&
35761 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35763 (eval $ac_try) 2>&5
35764 ac_status=$?
35765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35766 (exit $ac_status); }; }; then
35767 eval "$as_ac_var=yes"
35768else
35769 echo "$as_me: failed program was:" >&5
35770sed 's/^/| /' conftest.$ac_ext >&5
35771
35772eval "$as_ac_var=no"
35773fi
ac1cb8d3
VS
35774rm -f conftest.err conftest.$ac_objext \
35775 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35776fi
35777echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35778echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35779if test `eval echo '${'$as_ac_var'}'` = yes; then
35780 cat >>confdefs.h <<_ACEOF
35781#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35782_ACEOF
35783 break
35784fi
35785done
35786
35787
35788 if test "$ac_cv_func_gettimeofday" = "yes"; then
35789 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
35790echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
35791if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
35792 echo $ECHO_N "(cached) $ECHO_C" >&6
35793else
35794
35795
35796
35797 ac_ext=cc
35798ac_cpp='$CXXCPP $CPPFLAGS'
35799ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35800ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35801ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35802
35803
35804 cat >conftest.$ac_ext <<_ACEOF
35805/* confdefs.h. */
35806_ACEOF
35807cat confdefs.h >>conftest.$ac_ext
35808cat >>conftest.$ac_ext <<_ACEOF
35809/* end confdefs.h. */
35810
35811 #include <sys/time.h>
35812 #include <unistd.h>
35813
35814int
35815main ()
35816{
35817
35818 struct timeval tv;
35819 gettimeofday(&tv, NULL);
35820
35821 ;
35822 return 0;
35823}
35824_ACEOF
35825rm -f conftest.$ac_objext
35826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35827 (eval $ac_compile) 2>conftest.er1
a848cd7e 35828 ac_status=$?
ac1cb8d3
VS
35829 grep -v '^ *+' conftest.er1 >conftest.err
35830 rm -f conftest.er1
35831 cat conftest.err >&5
a848cd7e
SC
35832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35833 (exit $ac_status); } &&
da4486fb 35834 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35836 (eval $ac_try) 2>&5
35837 ac_status=$?
35838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35839 (exit $ac_status); }; } &&
35840 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35842 (eval $ac_try) 2>&5
35843 ac_status=$?
35844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35845 (exit $ac_status); }; }; then
35846 wx_cv_func_gettimeofday_has_2_args=yes
35847else
35848 echo "$as_me: failed program was:" >&5
35849sed 's/^/| /' conftest.$ac_ext >&5
35850
35851cat >conftest.$ac_ext <<_ACEOF
35852/* confdefs.h. */
35853_ACEOF
35854cat confdefs.h >>conftest.$ac_ext
35855cat >>conftest.$ac_ext <<_ACEOF
35856/* end confdefs.h. */
35857
35858 #include <sys/time.h>
35859 #include <unistd.h>
35860
35861int
35862main ()
35863{
35864
35865 struct timeval tv;
35866 gettimeofday(&tv);
35867
35868 ;
35869 return 0;
35870}
35871_ACEOF
35872rm -f conftest.$ac_objext
35873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35874 (eval $ac_compile) 2>conftest.er1
a848cd7e 35875 ac_status=$?
ac1cb8d3
VS
35876 grep -v '^ *+' conftest.er1 >conftest.err
35877 rm -f conftest.er1
35878 cat conftest.err >&5
a848cd7e
SC
35879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35880 (exit $ac_status); } &&
da4486fb 35881 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35883 (eval $ac_try) 2>&5
35884 ac_status=$?
35885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35886 (exit $ac_status); }; } &&
35887 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35889 (eval $ac_try) 2>&5
35890 ac_status=$?
35891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35892 (exit $ac_status); }; }; then
35893 wx_cv_func_gettimeofday_has_2_args=no
35894else
35895 echo "$as_me: failed program was:" >&5
35896sed 's/^/| /' conftest.$ac_ext >&5
35897
35898
35899 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
35900echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
35901 wx_cv_func_gettimeofday_has_2_args=unknown
35902
35903
35904fi
ac1cb8d3 35905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35906
35907fi
ac1cb8d3 35908rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35909 ac_ext=c
35910ac_cpp='$CPP $CPPFLAGS'
35911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35913ac_compiler_gnu=$ac_cv_c_compiler_gnu
35914
35915
35916fi
35917echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
35918echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
35919
35920 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
35921 cat >>confdefs.h <<\_ACEOF
35922#define WX_GETTIMEOFDAY_NO_TZ 1
35923_ACEOF
35924
35925 fi
35926 fi
35927
35928 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
35929fi
35930
35931
35932if test "$wxUSE_SOCKETS" = "yes"; then
35933 if test "$wxUSE_MGL" = "1"; then
35934 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
35935echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
35936 wxUSE_SOCKETS="no"
35937 fi
35938fi
35939
35940if test "$wxUSE_SOCKETS" = "yes"; then
35941 if test "$TOOLKIT" != "MSW"; then
35942 echo "$as_me:$LINENO: checking for socket" >&5
35943echo $ECHO_N "checking for socket... $ECHO_C" >&6
35944if test "${ac_cv_func_socket+set}" = set; then
35945 echo $ECHO_N "(cached) $ECHO_C" >&6
35946else
35947 cat >conftest.$ac_ext <<_ACEOF
35948/* confdefs.h. */
35949_ACEOF
35950cat confdefs.h >>conftest.$ac_ext
35951cat >>conftest.$ac_ext <<_ACEOF
35952/* end confdefs.h. */
ac1cb8d3
VS
35953/* Define socket to an innocuous variant, in case <limits.h> declares socket.
35954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35955#define socket innocuous_socket
35956
a848cd7e
SC
35957/* System header to define __stub macros and hopefully few prototypes,
35958 which can conflict with char socket (); below.
35959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35960 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35961
a848cd7e
SC
35962#ifdef __STDC__
35963# include <limits.h>
35964#else
35965# include <assert.h>
35966#endif
ac1cb8d3
VS
35967
35968#undef socket
35969
a848cd7e
SC
35970/* Override any gcc2 internal prototype to avoid an error. */
35971#ifdef __cplusplus
35972extern "C"
35973{
35974#endif
35975/* We use char because int might match the return type of a gcc2
35976 builtin and then its argument prototype would still apply. */
35977char socket ();
35978/* The GNU C library defines this for functions which it implements
35979 to always fail with ENOSYS. Some functions are actually named
35980 something starting with __ and the normal name is an alias. */
35981#if defined (__stub_socket) || defined (__stub___socket)
35982choke me
35983#else
35984char (*f) () = socket;
35985#endif
35986#ifdef __cplusplus
35987}
35988#endif
35989
35990int
35991main ()
35992{
35993return f != socket;
35994 ;
35995 return 0;
35996}
35997_ACEOF
35998rm -f conftest.$ac_objext conftest$ac_exeext
35999if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36000 (eval $ac_link) 2>conftest.er1
a848cd7e 36001 ac_status=$?
ac1cb8d3
VS
36002 grep -v '^ *+' conftest.er1 >conftest.err
36003 rm -f conftest.er1
36004 cat conftest.err >&5
a848cd7e
SC
36005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36006 (exit $ac_status); } &&
da4486fb 36007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36009 (eval $ac_try) 2>&5
36010 ac_status=$?
36011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36012 (exit $ac_status); }; } &&
36013 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36015 (eval $ac_try) 2>&5
36016 ac_status=$?
36017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36018 (exit $ac_status); }; }; then
36019 ac_cv_func_socket=yes
36020else
36021 echo "$as_me: failed program was:" >&5
36022sed 's/^/| /' conftest.$ac_ext >&5
36023
36024ac_cv_func_socket=no
36025fi
ac1cb8d3
VS
36026rm -f conftest.err conftest.$ac_objext \
36027 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36028fi
36029echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
36030echo "${ECHO_T}$ac_cv_func_socket" >&6
36031if test $ac_cv_func_socket = yes; then
36032 :
36033else
36034
36035 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
36036echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
36037if test "${ac_cv_lib_socket_socket+set}" = set; then
36038 echo $ECHO_N "(cached) $ECHO_C" >&6
36039else
36040 ac_check_lib_save_LIBS=$LIBS
36041LIBS="-lsocket $LIBS"
36042cat >conftest.$ac_ext <<_ACEOF
36043/* confdefs.h. */
36044_ACEOF
36045cat confdefs.h >>conftest.$ac_ext
36046cat >>conftest.$ac_ext <<_ACEOF
36047/* end confdefs.h. */
36048
36049/* Override any gcc2 internal prototype to avoid an error. */
36050#ifdef __cplusplus
36051extern "C"
36052#endif
36053/* We use char because int might match the return type of a gcc2
36054 builtin and then its argument prototype would still apply. */
36055char socket ();
36056int
36057main ()
36058{
36059socket ();
36060 ;
36061 return 0;
36062}
36063_ACEOF
36064rm -f conftest.$ac_objext conftest$ac_exeext
36065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36066 (eval $ac_link) 2>conftest.er1
a848cd7e 36067 ac_status=$?
ac1cb8d3
VS
36068 grep -v '^ *+' conftest.er1 >conftest.err
36069 rm -f conftest.er1
36070 cat conftest.err >&5
a848cd7e
SC
36071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36072 (exit $ac_status); } &&
da4486fb 36073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36075 (eval $ac_try) 2>&5
36076 ac_status=$?
36077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36078 (exit $ac_status); }; } &&
36079 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36081 (eval $ac_try) 2>&5
36082 ac_status=$?
36083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36084 (exit $ac_status); }; }; then
36085 ac_cv_lib_socket_socket=yes
36086else
36087 echo "$as_me: failed program was:" >&5
36088sed 's/^/| /' conftest.$ac_ext >&5
36089
36090ac_cv_lib_socket_socket=no
36091fi
ac1cb8d3
VS
36092rm -f conftest.err conftest.$ac_objext \
36093 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36094LIBS=$ac_check_lib_save_LIBS
36095fi
36096echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
36097echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
36098if test $ac_cv_lib_socket_socket = yes; then
36099 if test "$INET_LINK" != " -lsocket"; then
36100 INET_LINK="$INET_LINK -lsocket"
36101 fi
36102else
36103
36104 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
36105echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
36106 wxUSE_SOCKETS=no
36107
36108
36109fi
36110
36111
36112
36113fi
36114
36115 fi
36116fi
36117
36118if test "$wxUSE_SOCKETS" = "yes" ; then
36119 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
36120 ac_ext=cc
36121ac_cpp='$CXXCPP $CPPFLAGS'
36122ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36123ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36124ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36125
36126 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
36127echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
36128if test "${wx_cv_type_getsockname3+set}" = set; then
36129 echo $ECHO_N "(cached) $ECHO_C" >&6
36130else
36131
36132 cat >conftest.$ac_ext <<_ACEOF
36133/* confdefs.h. */
36134_ACEOF
36135cat confdefs.h >>conftest.$ac_ext
36136cat >>conftest.$ac_ext <<_ACEOF
36137/* end confdefs.h. */
36138
36139 #include <sys/types.h>
36140 #include <sys/socket.h>
36141
36142int
36143main ()
36144{
36145
36146 socklen_t len;
36147 getsockname(0, 0, &len);
36148
36149 ;
36150 return 0;
36151}
36152_ACEOF
36153rm -f conftest.$ac_objext
36154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36155 (eval $ac_compile) 2>conftest.er1
a848cd7e 36156 ac_status=$?
ac1cb8d3
VS
36157 grep -v '^ *+' conftest.er1 >conftest.err
36158 rm -f conftest.er1
36159 cat conftest.err >&5
a848cd7e
SC
36160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36161 (exit $ac_status); } &&
da4486fb 36162 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36164 (eval $ac_try) 2>&5
36165 ac_status=$?
36166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36167 (exit $ac_status); }; } &&
36168 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36170 (eval $ac_try) 2>&5
36171 ac_status=$?
36172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36173 (exit $ac_status); }; }; then
36174 wx_cv_type_getsockname3=socklen_t
36175else
36176 echo "$as_me: failed program was:" >&5
36177sed 's/^/| /' conftest.$ac_ext >&5
36178
36179
36180 CFLAGS_OLD="$CFLAGS"
36181 if test "$GCC" = yes ; then
36182 CFLAGS="$CFLAGS -Werror"
36183 fi
36184
36185 cat >conftest.$ac_ext <<_ACEOF
36186/* confdefs.h. */
36187_ACEOF
36188cat confdefs.h >>conftest.$ac_ext
36189cat >>conftest.$ac_ext <<_ACEOF
36190/* end confdefs.h. */
36191
36192 #include <sys/types.h>
36193 #include <sys/socket.h>
36194
36195int
36196main ()
36197{
36198
36199 size_t len;
36200 getsockname(0, 0, &len);
36201
36202 ;
36203 return 0;
36204}
36205_ACEOF
36206rm -f conftest.$ac_objext
36207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36208 (eval $ac_compile) 2>conftest.er1
a848cd7e 36209 ac_status=$?
ac1cb8d3
VS
36210 grep -v '^ *+' conftest.er1 >conftest.err
36211 rm -f conftest.er1
36212 cat conftest.err >&5
a848cd7e
SC
36213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36214 (exit $ac_status); } &&
da4486fb 36215 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36217 (eval $ac_try) 2>&5
36218 ac_status=$?
36219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36220 (exit $ac_status); }; } &&
36221 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36223 (eval $ac_try) 2>&5
36224 ac_status=$?
36225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36226 (exit $ac_status); }; }; then
36227 wx_cv_type_getsockname3=size_t
36228else
36229 echo "$as_me: failed program was:" >&5
36230sed 's/^/| /' conftest.$ac_ext >&5
36231
36232cat >conftest.$ac_ext <<_ACEOF
36233/* confdefs.h. */
36234_ACEOF
36235cat confdefs.h >>conftest.$ac_ext
36236cat >>conftest.$ac_ext <<_ACEOF
36237/* end confdefs.h. */
36238
36239 #include <sys/types.h>
36240 #include <sys/socket.h>
36241
36242int
36243main ()
36244{
36245
36246 int len;
36247 getsockname(0, 0, &len);
36248
36249 ;
36250 return 0;
36251}
36252_ACEOF
36253rm -f conftest.$ac_objext
36254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36255 (eval $ac_compile) 2>conftest.er1
a848cd7e 36256 ac_status=$?
ac1cb8d3
VS
36257 grep -v '^ *+' conftest.er1 >conftest.err
36258 rm -f conftest.er1
36259 cat conftest.err >&5
a848cd7e
SC
36260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36261 (exit $ac_status); } &&
da4486fb 36262 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36264 (eval $ac_try) 2>&5
36265 ac_status=$?
36266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36267 (exit $ac_status); }; } &&
36268 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36270 (eval $ac_try) 2>&5
36271 ac_status=$?
36272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36273 (exit $ac_status); }; }; then
36274 wx_cv_type_getsockname3=int
36275else
36276 echo "$as_me: failed program was:" >&5
36277sed 's/^/| /' conftest.$ac_ext >&5
36278
36279wx_cv_type_getsockname3=unknown
36280
36281fi
ac1cb8d3 36282rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36283
36284fi
ac1cb8d3 36285rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36286
36287 CFLAGS="$CFLAGS_OLD"
36288
36289
36290fi
ac1cb8d3 36291rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36292
36293fi
36294echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
36295echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
36296
36297 if test "$wx_cv_type_getsockname3" = "unknown"; then
36298 wxUSE_SOCKETS=no
36299 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
36300echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
36301 else
36302 cat >>confdefs.h <<_ACEOF
36303#define SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
36304_ACEOF
36305
36306 fi
36307 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
36308echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
36309if test "${wx_cv_type_getsockopt5+set}" = set; then
36310 echo $ECHO_N "(cached) $ECHO_C" >&6
36311else
36312
36313 cat >conftest.$ac_ext <<_ACEOF
36314/* confdefs.h. */
36315_ACEOF
36316cat confdefs.h >>conftest.$ac_ext
36317cat >>conftest.$ac_ext <<_ACEOF
36318/* end confdefs.h. */
36319
36320 #include <sys/types.h>
36321 #include <sys/socket.h>
36322
36323int
36324main ()
36325{
36326
36327 socklen_t len;
36328 getsockopt(0, 0, 0, 0, &len);
36329
36330 ;
36331 return 0;
36332}
36333_ACEOF
36334rm -f conftest.$ac_objext
36335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36336 (eval $ac_compile) 2>conftest.er1
36337 ac_status=$?
36338 grep -v '^ *+' conftest.er1 >conftest.err
36339 rm -f conftest.er1
36340 cat conftest.err >&5
36341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36342 (exit $ac_status); } &&
da4486fb 36343 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
36344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36345 (eval $ac_try) 2>&5
36346 ac_status=$?
36347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36348 (exit $ac_status); }; } &&
36349 { ac_try='test -s conftest.$ac_objext'
36350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36351 (eval $ac_try) 2>&5
36352 ac_status=$?
36353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36354 (exit $ac_status); }; }; then
36355 wx_cv_type_getsockopt5=socklen_t
36356else
36357 echo "$as_me: failed program was:" >&5
36358sed 's/^/| /' conftest.$ac_ext >&5
36359
36360
36361 CFLAGS_OLD="$CFLAGS"
36362 if test "$GCC" = yes ; then
36363 CFLAGS="$CFLAGS -Werror"
36364 fi
36365
36366 cat >conftest.$ac_ext <<_ACEOF
36367/* confdefs.h. */
36368_ACEOF
36369cat confdefs.h >>conftest.$ac_ext
36370cat >>conftest.$ac_ext <<_ACEOF
36371/* end confdefs.h. */
36372
36373 #include <sys/types.h>
36374 #include <sys/socket.h>
36375
36376int
36377main ()
36378{
36379
36380 size_t len;
36381 getsockopt(0, 0, 0, 0, &len);
36382
36383 ;
36384 return 0;
36385}
36386_ACEOF
36387rm -f conftest.$ac_objext
36388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36389 (eval $ac_compile) 2>conftest.er1
36390 ac_status=$?
36391 grep -v '^ *+' conftest.er1 >conftest.err
36392 rm -f conftest.er1
36393 cat conftest.err >&5
36394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36395 (exit $ac_status); } &&
da4486fb 36396 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
36397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36398 (eval $ac_try) 2>&5
36399 ac_status=$?
36400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36401 (exit $ac_status); }; } &&
36402 { ac_try='test -s conftest.$ac_objext'
36403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36404 (eval $ac_try) 2>&5
36405 ac_status=$?
36406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36407 (exit $ac_status); }; }; then
36408 wx_cv_type_getsockopt5=size_t
36409else
36410 echo "$as_me: failed program was:" >&5
36411sed 's/^/| /' conftest.$ac_ext >&5
36412
36413cat >conftest.$ac_ext <<_ACEOF
36414/* confdefs.h. */
36415_ACEOF
36416cat confdefs.h >>conftest.$ac_ext
36417cat >>conftest.$ac_ext <<_ACEOF
36418/* end confdefs.h. */
36419
36420 #include <sys/types.h>
36421 #include <sys/socket.h>
36422
36423int
36424main ()
36425{
36426
36427 int len;
36428 getsockopt(0, 0, 0, 0, &len);
36429
36430 ;
36431 return 0;
36432}
36433_ACEOF
36434rm -f conftest.$ac_objext
36435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36436 (eval $ac_compile) 2>conftest.er1
36437 ac_status=$?
36438 grep -v '^ *+' conftest.er1 >conftest.err
36439 rm -f conftest.er1
36440 cat conftest.err >&5
36441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36442 (exit $ac_status); } &&
da4486fb 36443 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
36444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36445 (eval $ac_try) 2>&5
36446 ac_status=$?
36447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36448 (exit $ac_status); }; } &&
36449 { ac_try='test -s conftest.$ac_objext'
36450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36451 (eval $ac_try) 2>&5
36452 ac_status=$?
36453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36454 (exit $ac_status); }; }; then
36455 wx_cv_type_getsockopt5=int
36456else
36457 echo "$as_me: failed program was:" >&5
36458sed 's/^/| /' conftest.$ac_ext >&5
36459
36460wx_cv_type_getsockopt5=unknown
36461
36462fi
36463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36464
36465fi
36466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36467
36468 CFLAGS="$CFLAGS_OLD"
36469
36470
36471fi
36472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36473
36474fi
36475echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
36476echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
36477
36478 if test "$wx_cv_type_getsockopt5" = "unknown"; then
36479 wxUSE_SOCKETS=no
36480 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
36481echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
36482 else
36483 cat >>confdefs.h <<_ACEOF
36484#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
36485_ACEOF
36486
36487 fi
4d4ff94c
VZ
36488 ac_ext=c
36489ac_cpp='$CPP $CPPFLAGS'
36490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36492ac_compiler_gnu=$ac_cv_c_compiler_gnu
36493
a848cd7e
SC
36494 fi
36495fi
36496
36497if test "$wxUSE_SOCKETS" = "yes" ; then
36498 cat >>confdefs.h <<\_ACEOF
36499#define wxUSE_SOCKETS 1
36500_ACEOF
36501
36502 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
36503fi
36504
36505if test "$wxUSE_PROTOCOL" = "yes"; then
36506 if test "$wxUSE_SOCKETS" != "yes"; then
36507 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
36508echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
36509 wxUSE_PROTOCOL=no
36510 fi
36511fi
36512
36513if test "$wxUSE_PROTOCOL" = "yes"; then
36514 cat >>confdefs.h <<\_ACEOF
36515#define wxUSE_PROTOCOL 1
36516_ACEOF
36517
36518
36519 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
36520 cat >>confdefs.h <<\_ACEOF
36521#define wxUSE_PROTOCOL_HTTP 1
36522_ACEOF
36523
36524 fi
36525 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
36526 cat >>confdefs.h <<\_ACEOF
36527#define wxUSE_PROTOCOL_FTP 1
36528_ACEOF
36529
36530 fi
36531 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
36532 cat >>confdefs.h <<\_ACEOF
36533#define wxUSE_PROTOCOL_FILE 1
36534_ACEOF
36535
36536 fi
36537else
36538 if test "$wxUSE_FS_INET" = "yes"; then
36539 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
36540echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
36541 wxUSE_FS_INET="no"
36542 fi
36543fi
36544
36545if test "$wxUSE_URL" = "yes"; then
36546 if test "$wxUSE_PROTOCOL" != "yes"; then
36547 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
36548echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
36549 wxUSE_URL=no
36550 fi
36551 if test "$wxUSE_URL" = "yes"; then
36552 cat >>confdefs.h <<\_ACEOF
36553#define wxUSE_URL 1
36554_ACEOF
36555
36556 fi
36557fi
36558
36559if test "$wxUSE_FS_INET" = "yes"; then
36560 cat >>confdefs.h <<\_ACEOF
36561#define wxUSE_FS_INET 1
36562_ACEOF
36563
36564fi
36565
36566
36567if test "$wxUSE_GUI" = "yes"; then
36568
36569 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
36570 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
36571echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
36572 wxUSE_JOYSTICK=no
36573 fi
36574
36575 if test "$TOOLKIT" != "MSW"; then
36576 if test "$wxUSE_JOYSTICK" = "yes"; then
36577
36578for ac_header in linux/joystick.h
36579do
36580as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36581if eval "test \"\${$as_ac_Header+set}\" = set"; then
36582 echo "$as_me:$LINENO: checking for $ac_header" >&5
36583echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36584if eval "test \"\${$as_ac_Header+set}\" = set"; then
36585 echo $ECHO_N "(cached) $ECHO_C" >&6
36586fi
36587echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36588echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36589else
36590 # Is the header compilable?
36591echo "$as_me:$LINENO: checking $ac_header usability" >&5
36592echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36593cat >conftest.$ac_ext <<_ACEOF
36594/* confdefs.h. */
36595_ACEOF
36596cat confdefs.h >>conftest.$ac_ext
36597cat >>conftest.$ac_ext <<_ACEOF
36598/* end confdefs.h. */
36599$ac_includes_default
36600#include <$ac_header>
36601_ACEOF
36602rm -f conftest.$ac_objext
36603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36604 (eval $ac_compile) 2>conftest.er1
a848cd7e 36605 ac_status=$?
ac1cb8d3
VS
36606 grep -v '^ *+' conftest.er1 >conftest.err
36607 rm -f conftest.er1
36608 cat conftest.err >&5
a848cd7e
SC
36609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36610 (exit $ac_status); } &&
da4486fb 36611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36613 (eval $ac_try) 2>&5
36614 ac_status=$?
36615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36616 (exit $ac_status); }; } &&
36617 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36619 (eval $ac_try) 2>&5
36620 ac_status=$?
36621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36622 (exit $ac_status); }; }; then
36623 ac_header_compiler=yes
36624else
36625 echo "$as_me: failed program was:" >&5
36626sed 's/^/| /' conftest.$ac_ext >&5
36627
36628ac_header_compiler=no
36629fi
ac1cb8d3 36630rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36631echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36632echo "${ECHO_T}$ac_header_compiler" >&6
36633
36634# Is the header present?
36635echo "$as_me:$LINENO: checking $ac_header presence" >&5
36636echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36637cat >conftest.$ac_ext <<_ACEOF
36638/* confdefs.h. */
36639_ACEOF
36640cat confdefs.h >>conftest.$ac_ext
36641cat >>conftest.$ac_ext <<_ACEOF
36642/* end confdefs.h. */
36643#include <$ac_header>
36644_ACEOF
36645if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36646 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36647 ac_status=$?
36648 grep -v '^ *+' conftest.er1 >conftest.err
36649 rm -f conftest.er1
36650 cat conftest.err >&5
36651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36652 (exit $ac_status); } >/dev/null; then
36653 if test -s conftest.err; then
36654 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36655 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36656 else
36657 ac_cpp_err=
36658 fi
36659else
36660 ac_cpp_err=yes
36661fi
36662if test -z "$ac_cpp_err"; then
36663 ac_header_preproc=yes
36664else
36665 echo "$as_me: failed program was:" >&5
36666sed 's/^/| /' conftest.$ac_ext >&5
36667
36668 ac_header_preproc=no
36669fi
36670rm -f conftest.err conftest.$ac_ext
36671echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36672echo "${ECHO_T}$ac_header_preproc" >&6
36673
36674# So? What about this header?
ac1cb8d3
VS
36675case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36676 yes:no: )
a848cd7e
SC
36677 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36678echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36679 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36680echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36681 ac_header_preproc=yes
a848cd7e 36682 ;;
ac1cb8d3 36683 no:yes:* )
a848cd7e
SC
36684 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36685echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36686 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36687echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36688 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36689echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36690 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36691echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36693echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36694 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36695echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36696 (
36697 cat <<\_ASBOX
ac1cb8d3
VS
36698## ----------------------------------------- ##
36699## Report this to wx-dev@lists.wxwidgets.org ##
36700## ----------------------------------------- ##
a848cd7e
SC
36701_ASBOX
36702 ) |
36703 sed "s/^/$as_me: WARNING: /" >&2
36704 ;;
36705esac
36706echo "$as_me:$LINENO: checking for $ac_header" >&5
36707echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36708if eval "test \"\${$as_ac_Header+set}\" = set"; then
36709 echo $ECHO_N "(cached) $ECHO_C" >&6
36710else
ac1cb8d3 36711 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36712fi
36713echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36714echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36715
36716fi
36717if test `eval echo '${'$as_ac_Header'}'` = yes; then
36718 cat >>confdefs.h <<_ACEOF
36719#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36720_ACEOF
36721
36722fi
36723
36724done
36725
36726 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
36727 wxUSE_JOYSTICK=no
36728 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
36729echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
36730 fi
36731 fi
36732 fi
36733
36734 if test "$wxUSE_JOYSTICK" = "yes"; then
36735 cat >>confdefs.h <<\_ACEOF
36736#define wxUSE_JOYSTICK 1
36737_ACEOF
36738
36739 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
36740 fi
36741fi
36742
36743
36744
36745if test "$wxUSE_FONTMAP" = "yes" ; then
36746 cat >>confdefs.h <<\_ACEOF
36747#define wxUSE_FONTMAP 1
36748_ACEOF
36749
36750fi
36751
36752if test "$wxUSE_UNICODE" = "yes" ; then
36753 cat >>confdefs.h <<\_ACEOF
36754#define wxUSE_UNICODE 1
36755_ACEOF
36756
36757
36758 if test "$USE_WIN32" != 1; then
36759 wxUSE_UNICODE_MSLU=no
36760 fi
36761
36762 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
36763 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
36764echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
36765if test "${ac_cv_lib_unicows_main+set}" = set; then
36766 echo $ECHO_N "(cached) $ECHO_C" >&6
36767else
36768 ac_check_lib_save_LIBS=$LIBS
36769LIBS="-lunicows $LIBS"
36770cat >conftest.$ac_ext <<_ACEOF
36771/* confdefs.h. */
36772_ACEOF
36773cat confdefs.h >>conftest.$ac_ext
36774cat >>conftest.$ac_ext <<_ACEOF
36775/* end confdefs.h. */
36776
36777
36778int
36779main ()
36780{
36781main ();
36782 ;
36783 return 0;
36784}
36785_ACEOF
36786rm -f conftest.$ac_objext conftest$ac_exeext
36787if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36788 (eval $ac_link) 2>conftest.er1
a848cd7e 36789 ac_status=$?
ac1cb8d3
VS
36790 grep -v '^ *+' conftest.er1 >conftest.err
36791 rm -f conftest.er1
36792 cat conftest.err >&5
a848cd7e
SC
36793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36794 (exit $ac_status); } &&
da4486fb 36795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36797 (eval $ac_try) 2>&5
36798 ac_status=$?
36799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36800 (exit $ac_status); }; } &&
36801 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36803 (eval $ac_try) 2>&5
36804 ac_status=$?
36805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36806 (exit $ac_status); }; }; then
36807 ac_cv_lib_unicows_main=yes
36808else
36809 echo "$as_me: failed program was:" >&5
36810sed 's/^/| /' conftest.$ac_ext >&5
36811
36812ac_cv_lib_unicows_main=no
36813fi
ac1cb8d3
VS
36814rm -f conftest.err conftest.$ac_objext \
36815 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36816LIBS=$ac_check_lib_save_LIBS
36817fi
36818echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
36819echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
36820if test $ac_cv_lib_unicows_main = yes; then
36821
36822 cat >>confdefs.h <<\_ACEOF
36823#define wxUSE_UNICODE_MSLU 1
36824_ACEOF
36825
36826
36827else
36828
36829 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
36830 Applications will only run on Windows NT/2000/XP!" >&5
36831echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
36832 Applications will only run on Windows NT/2000/XP!" >&2;}
36833 wxUSE_UNICODE_MSLU=no
36834
36835fi
36836
36837 fi
36838fi
36839
36840if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
36841 cat >>confdefs.h <<\_ACEOF
36842#define wxUSE_EXPERIMENTAL_PRINTF 1
36843_ACEOF
36844
36845fi
36846
36847
36848if test "$wxUSE_POSTSCRIPT" = "yes" ; then
36849 cat >>confdefs.h <<\_ACEOF
36850#define wxUSE_POSTSCRIPT 1
36851_ACEOF
36852
36853fi
36854
36855cat >>confdefs.h <<\_ACEOF
36856#define wxUSE_AFM_FOR_POSTSCRIPT 1
36857_ACEOF
36858
36859
36860cat >>confdefs.h <<\_ACEOF
36861#define wxUSE_NORMALIZED_PS_FONTS 1
36862_ACEOF
36863
36864
36865
36866if test "$wxUSE_CONSTRAINTS" = "yes"; then
36867 cat >>confdefs.h <<\_ACEOF
36868#define wxUSE_CONSTRAINTS 1
36869_ACEOF
36870
36871 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
36872fi
36873
8a7b1113
VZ
36874if test "$wxUSE_MDI" = "yes"; then
36875 cat >>confdefs.h <<\_ACEOF
36876#define wxUSE_MDI 1
36877_ACEOF
36878
36879
36880 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
36881 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
36882#define wxUSE_MDI_ARCHITECTURE 1
36883_ACEOF
36884
8a7b1113
VZ
36885 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
36886 fi
a848cd7e
SC
36887fi
36888
36889if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
36890 cat >>confdefs.h <<\_ACEOF
36891#define wxUSE_DOC_VIEW_ARCHITECTURE 1
36892_ACEOF
36893
36894 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
36895 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
36896 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
36897 fi
36898fi
36899
36900if test "$wxUSE_HELP" = "yes"; then
36901 cat >>confdefs.h <<\_ACEOF
36902#define wxUSE_HELP 1
36903_ACEOF
36904
36905 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
36906
36907 if test "$wxUSE_MSW" = 1; then
36908 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
36909 cat >>confdefs.h <<\_ACEOF
36910#define wxUSE_MS_HTML_HELP 1
36911_ACEOF
36912
36913 fi
36914 fi
36915
36916 if test "$wxUSE_WXHTML_HELP" = "yes"; then
36917 if test "$wxUSE_HTML" = "yes"; then
36918 cat >>confdefs.h <<\_ACEOF
36919#define wxUSE_WXHTML_HELP 1
36920_ACEOF
36921
36922 else
36923 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
36924echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
36925 wxUSE_WXHTML_HELP=no
36926 fi
36927 fi
36928fi
36929
36930if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
36931 if test "$wxUSE_CONSTRAINTS" != "yes"; then
36932 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
36933echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
36934 else
36935 cat >>confdefs.h <<\_ACEOF
36936#define wxUSE_PRINTING_ARCHITECTURE 1
36937_ACEOF
36938
36939 fi
36940 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
36941fi
36942
36943if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
36944 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
36945echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
36946 { (exit 1); exit 1; }; }
36947fi
36948
36949
36950if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
36951 -o "$wxUSE_CLIPBOARD" = "yes" \
36952 -o "$wxUSE_OLE" = "yes" \
36953 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
36954
36955for ac_header in ole2.h
36956do
36957as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36958if eval "test \"\${$as_ac_Header+set}\" = set"; then
36959 echo "$as_me:$LINENO: checking for $ac_header" >&5
36960echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36961if eval "test \"\${$as_ac_Header+set}\" = set"; then
36962 echo $ECHO_N "(cached) $ECHO_C" >&6
36963fi
36964echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36965echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36966else
36967 # Is the header compilable?
36968echo "$as_me:$LINENO: checking $ac_header usability" >&5
36969echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36970cat >conftest.$ac_ext <<_ACEOF
36971/* confdefs.h. */
36972_ACEOF
36973cat confdefs.h >>conftest.$ac_ext
36974cat >>conftest.$ac_ext <<_ACEOF
36975/* end confdefs.h. */
36976$ac_includes_default
36977#include <$ac_header>
36978_ACEOF
36979rm -f conftest.$ac_objext
36980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36981 (eval $ac_compile) 2>conftest.er1
a848cd7e 36982 ac_status=$?
ac1cb8d3
VS
36983 grep -v '^ *+' conftest.er1 >conftest.err
36984 rm -f conftest.er1
36985 cat conftest.err >&5
a848cd7e
SC
36986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36987 (exit $ac_status); } &&
da4486fb 36988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36990 (eval $ac_try) 2>&5
36991 ac_status=$?
36992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36993 (exit $ac_status); }; } &&
36994 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36996 (eval $ac_try) 2>&5
36997 ac_status=$?
36998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36999 (exit $ac_status); }; }; then
37000 ac_header_compiler=yes
37001else
37002 echo "$as_me: failed program was:" >&5
37003sed 's/^/| /' conftest.$ac_ext >&5
37004
37005ac_header_compiler=no
37006fi
ac1cb8d3 37007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37008echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37009echo "${ECHO_T}$ac_header_compiler" >&6
37010
37011# Is the header present?
37012echo "$as_me:$LINENO: checking $ac_header presence" >&5
37013echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37014cat >conftest.$ac_ext <<_ACEOF
37015/* confdefs.h. */
37016_ACEOF
37017cat confdefs.h >>conftest.$ac_ext
37018cat >>conftest.$ac_ext <<_ACEOF
37019/* end confdefs.h. */
37020#include <$ac_header>
37021_ACEOF
37022if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37023 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37024 ac_status=$?
37025 grep -v '^ *+' conftest.er1 >conftest.err
37026 rm -f conftest.er1
37027 cat conftest.err >&5
37028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37029 (exit $ac_status); } >/dev/null; then
37030 if test -s conftest.err; then
37031 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 37032 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
37033 else
37034 ac_cpp_err=
37035 fi
37036else
37037 ac_cpp_err=yes
37038fi
37039if test -z "$ac_cpp_err"; then
37040 ac_header_preproc=yes
37041else
37042 echo "$as_me: failed program was:" >&5
37043sed 's/^/| /' conftest.$ac_ext >&5
37044
37045 ac_header_preproc=no
37046fi
37047rm -f conftest.err conftest.$ac_ext
37048echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37049echo "${ECHO_T}$ac_header_preproc" >&6
37050
37051# So? What about this header?
ac1cb8d3
VS
37052case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37053 yes:no: )
a848cd7e
SC
37054 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37055echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
37056 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37057echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37058 ac_header_preproc=yes
a848cd7e 37059 ;;
ac1cb8d3 37060 no:yes:* )
a848cd7e
SC
37061 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37062echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
37063 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37064echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37065 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37066echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37067 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37068echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
37069 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37070echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
37071 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37072echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
37073 (
37074 cat <<\_ASBOX
ac1cb8d3
VS
37075## ----------------------------------------- ##
37076## Report this to wx-dev@lists.wxwidgets.org ##
37077## ----------------------------------------- ##
a848cd7e
SC
37078_ASBOX
37079 ) |
37080 sed "s/^/$as_me: WARNING: /" >&2
37081 ;;
37082esac
37083echo "$as_me:$LINENO: checking for $ac_header" >&5
37084echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37085if eval "test \"\${$as_ac_Header+set}\" = set"; then
37086 echo $ECHO_N "(cached) $ECHO_C" >&6
37087else
ac1cb8d3 37088 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
37089fi
37090echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37091echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37092
37093fi
37094if test `eval echo '${'$as_ac_Header'}'` = yes; then
37095 cat >>confdefs.h <<_ACEOF
37096#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37097_ACEOF
37098
37099fi
37100
37101done
37102
37103
37104 if test "$ac_cv_header_ole2_h" = "yes" ; then
37105 if test "$GCC" = yes ; then
37106
37107
37108 ac_ext=cc
37109ac_cpp='$CXXCPP $CPPFLAGS'
37110ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37111ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37112ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37113
37114
37115 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
37116echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
37117 cat >conftest.$ac_ext <<_ACEOF
37118/* confdefs.h. */
37119_ACEOF
37120cat confdefs.h >>conftest.$ac_ext
37121cat >>conftest.$ac_ext <<_ACEOF
37122/* end confdefs.h. */
37123#include <windows.h>
37124 #include <ole2.h>
37125int
37126main ()
37127{
37128
37129 ;
37130 return 0;
37131}
37132_ACEOF
37133rm -f conftest.$ac_objext
37134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37135 (eval $ac_compile) 2>conftest.er1
a848cd7e 37136 ac_status=$?
ac1cb8d3
VS
37137 grep -v '^ *+' conftest.er1 >conftest.err
37138 rm -f conftest.er1
37139 cat conftest.err >&5
a848cd7e
SC
37140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37141 (exit $ac_status); } &&
da4486fb 37142 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37144 (eval $ac_try) 2>&5
37145 ac_status=$?
37146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37147 (exit $ac_status); }; } &&
37148 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37150 (eval $ac_try) 2>&5
37151 ac_status=$?
37152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37153 (exit $ac_status); }; }; then
37154 echo "$as_me:$LINENO: result: no" >&5
37155echo "${ECHO_T}no" >&6
37156else
37157 echo "$as_me: failed program was:" >&5
37158sed 's/^/| /' conftest.$ac_ext >&5
37159
37160echo "$as_me:$LINENO: result: yes" >&5
37161echo "${ECHO_T}yes" >&6
37162 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
37163fi
ac1cb8d3 37164rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37165 ac_ext=c
37166ac_cpp='$CPP $CPPFLAGS'
37167ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37168ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37169ac_compiler_gnu=$ac_cv_c_compiler_gnu
37170
a848cd7e
SC
37171 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
37172 if test "$wxUSE_OLE" = "yes" ; then
37173 cat >>confdefs.h <<\_ACEOF
37174#define wxUSE_OLE 1
37175_ACEOF
37176
37177 fi
37178 fi
37179
37180 if test "$wxUSE_DATAOBJ" = "yes" ; then
37181 cat >>confdefs.h <<\_ACEOF
37182#define wxUSE_DATAOBJ 1
37183_ACEOF
37184
37185 fi
37186 else
37187 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
37188echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
37189
37190 wxUSE_CLIPBOARD=no
37191 wxUSE_DRAG_AND_DROP=no
37192 wxUSE_DATAOBJ=no
37193 wxUSE_OLE=no
37194 fi
37195
37196 if test "$wxUSE_METAFILE" = "yes"; then
37197 cat >>confdefs.h <<\_ACEOF
37198#define wxUSE_METAFILE 1
37199_ACEOF
37200
37201
37202 cat >>confdefs.h <<\_ACEOF
37203#define wxUSE_ENH_METAFILE 1
37204_ACEOF
37205
37206 fi
37207fi
37208
37209if test "$wxUSE_IPC" = "yes"; then
37210 if test "$wxUSE_SOCKETS" != "yes"; then
77ffb593
JS
37211 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
37212echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
a848cd7e
SC
37213 fi
37214
37215 cat >>confdefs.h <<\_ACEOF
37216#define wxUSE_IPC 1
37217_ACEOF
37218
37219fi
37220
37221if test "$wxUSE_CLIPBOARD" = "yes"; then
37222 if test "$wxUSE_MGL" = 1; then
37223 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
37224echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
37225 wxUSE_CLIPBOARD=no
37226 fi
37227
37228 if test "$wxUSE_CLIPBOARD" = "yes"; then
37229 cat >>confdefs.h <<\_ACEOF
37230#define wxUSE_CLIPBOARD 1
37231_ACEOF
37232
37233
37234 cat >>confdefs.h <<\_ACEOF
37235#define wxUSE_DATAOBJ 1
37236_ACEOF
37237
37238 fi
37239fi
37240
37241if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
37242 if test "$wxUSE_GTK" = 1; then
37243 if test "$WXGTK12" != 1; then
37244 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
37245echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
37246 wxUSE_DRAG_AND_DROP=no
37247 fi
37248 fi
37249
37250 if test "$wxUSE_MOTIF" = 1; then
37251 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
37252echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
37253 wxUSE_DRAG_AND_DROP=no
37254 fi
37255
37256 if test "$wxUSE_X11" = 1; then
37257 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
37258echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
37259 wxUSE_DRAG_AND_DROP=no
37260 fi
37261
37262 if test "$wxUSE_MGL" = 1; then
37263 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
37264echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
37265 wxUSE_DRAG_AND_DROP=no
37266 fi
37267
37268 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
37269 cat >>confdefs.h <<\_ACEOF
37270#define wxUSE_DRAG_AND_DROP 1
37271_ACEOF
37272
37273 fi
37274
37275fi
37276
37277if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
37278 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
37279fi
37280
37281if test "$wxUSE_SPLINES" = "yes" ; then
37282 cat >>confdefs.h <<\_ACEOF
37283#define wxUSE_SPLINES 1
37284_ACEOF
37285
37286fi
37287
37288
37289USES_CONTROLS=0
37290if test "$wxUSE_CONTROLS" = "yes"; then
37291 USES_CONTROLS=1
37292fi
37293
37294if test "$wxUSE_ACCEL" = "yes"; then
37295 cat >>confdefs.h <<\_ACEOF
37296#define wxUSE_ACCEL 1
37297_ACEOF
37298
37299 USES_CONTROLS=1
37300fi
37301
37302if test "$wxUSE_BUTTON" = "yes"; then
37303 cat >>confdefs.h <<\_ACEOF
37304#define wxUSE_BUTTON 1
37305_ACEOF
37306
37307 USES_CONTROLS=1
37308fi
37309
37310if test "$wxUSE_BMPBUTTON" = "yes"; then
37311 cat >>confdefs.h <<\_ACEOF
37312#define wxUSE_BMPBUTTON 1
37313_ACEOF
37314
37315 USES_CONTROLS=1
37316fi
37317
37318if test "$wxUSE_CALCTRL" = "yes"; then
37319 cat >>confdefs.h <<\_ACEOF
37320#define wxUSE_CALENDARCTRL 1
37321_ACEOF
37322
37323 USES_CONTROLS=1
37324 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
37325fi
37326
37327if test "$wxUSE_CARET" = "yes"; then
37328 cat >>confdefs.h <<\_ACEOF
37329#define wxUSE_CARET 1
37330_ACEOF
37331
37332 USES_CONTROLS=1
37333 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
37334fi
37335
37336if test "$wxUSE_COMBOBOX" = "yes"; then
37337 cat >>confdefs.h <<\_ACEOF
37338#define wxUSE_COMBOBOX 1
37339_ACEOF
37340
37341 USES_CONTROLS=1
37342fi
37343
37344if test "$wxUSE_CHOICE" = "yes"; then
37345 cat >>confdefs.h <<\_ACEOF
37346#define wxUSE_CHOICE 1
37347_ACEOF
37348
37349 USES_CONTROLS=1
37350fi
37351
92bbdbcd
WS
37352if test "$wxUSE_CHOICEBOOK" = "yes"; then
37353 cat >>confdefs.h <<\_ACEOF
37354#define wxUSE_CHOICEBOOK 1
37355_ACEOF
37356
37357 USES_CONTROLS=1
37358fi
37359
a848cd7e
SC
37360if test "$wxUSE_CHECKBOX" = "yes"; then
37361 cat >>confdefs.h <<\_ACEOF
37362#define wxUSE_CHECKBOX 1
37363_ACEOF
37364
37365 USES_CONTROLS=1
37366fi
37367
37368if test "$wxUSE_CHECKLST" = "yes"; then
37369 cat >>confdefs.h <<\_ACEOF
37370#define wxUSE_CHECKLISTBOX 1
37371_ACEOF
37372
37373 USES_CONTROLS=1
37374 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
37375fi
37376
37377if test "$wxUSE_DISPLAY" = "yes"; then
37378 cat >>confdefs.h <<\_ACEOF
37379#define wxUSE_DISPLAY 1
37380_ACEOF
37381
37382 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
37383fi
37384
37385if test "$wxUSE_GAUGE" = "yes"; then
37386 cat >>confdefs.h <<\_ACEOF
37387#define wxUSE_GAUGE 1
37388_ACEOF
37389
37390 USES_CONTROLS=1
37391fi
37392
37393if test "$wxUSE_GRID" = "yes"; then
37394 cat >>confdefs.h <<\_ACEOF
37395#define wxUSE_GRID 1
37396_ACEOF
37397
37398 USES_CONTROLS=1
37399 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
37400fi
37401
37402if test "$wxUSE_IMAGLIST" = "yes"; then
37403 cat >>confdefs.h <<\_ACEOF
37404#define wxUSE_IMAGLIST 1
37405_ACEOF
37406
37407fi
37408
37409if test "$wxUSE_LISTBOOK" = "yes"; then
37410 cat >>confdefs.h <<\_ACEOF
37411#define wxUSE_LISTBOOK 1
37412_ACEOF
37413
37414 USES_CONTROLS=1
37415fi
37416
37417if test "$wxUSE_LISTBOX" = "yes"; then
37418 cat >>confdefs.h <<\_ACEOF
37419#define wxUSE_LISTBOX 1
37420_ACEOF
37421
37422 USES_CONTROLS=1
37423fi
37424
37425if test "$wxUSE_LISTCTRL" = "yes"; then
37426 if test "$wxUSE_IMAGLIST" = "yes"; then
37427 cat >>confdefs.h <<\_ACEOF
37428#define wxUSE_LISTCTRL 1
37429_ACEOF
37430
37431 USES_CONTROLS=1
37432 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
37433 else
37434 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
37435echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
37436 fi
37437fi
37438
37439if test "$wxUSE_NOTEBOOK" = "yes"; then
37440 cat >>confdefs.h <<\_ACEOF
37441#define wxUSE_NOTEBOOK 1
37442_ACEOF
37443
37444 USES_CONTROLS=1
37445 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
37446fi
37447
37448
37449if test "$wxUSE_RADIOBOX" = "yes"; then
37450 cat >>confdefs.h <<\_ACEOF
37451#define wxUSE_RADIOBOX 1
37452_ACEOF
37453
37454 USES_CONTROLS=1
37455fi
37456
37457if test "$wxUSE_RADIOBTN" = "yes"; then
37458 cat >>confdefs.h <<\_ACEOF
37459#define wxUSE_RADIOBTN 1
37460_ACEOF
37461
37462 USES_CONTROLS=1
37463fi
37464
37465if test "$wxUSE_SASH" = "yes"; then
37466 cat >>confdefs.h <<\_ACEOF
37467#define wxUSE_SASH 1
37468_ACEOF
37469
37470 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
37471fi
37472
37473if test "$wxUSE_SCROLLBAR" = "yes"; then
37474 cat >>confdefs.h <<\_ACEOF
37475#define wxUSE_SCROLLBAR 1
37476_ACEOF
37477
37478 USES_CONTROLS=1
37479 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
37480fi
37481
37482if test "$wxUSE_SLIDER" = "yes"; then
37483 cat >>confdefs.h <<\_ACEOF
37484#define wxUSE_SLIDER 1
37485_ACEOF
37486
37487 USES_CONTROLS=1
37488fi
37489
37490if test "$wxUSE_SPINBTN" = "yes"; then
37491 cat >>confdefs.h <<\_ACEOF
37492#define wxUSE_SPINBTN 1
37493_ACEOF
37494
37495 USES_CONTROLS=1
37496fi
37497
37498if test "$wxUSE_SPINCTRL" = "yes"; then
37499 cat >>confdefs.h <<\_ACEOF
37500#define wxUSE_SPINCTRL 1
37501_ACEOF
37502
37503 USES_CONTROLS=1
37504fi
37505
37506if test "$wxUSE_SPLITTER" = "yes"; then
37507 cat >>confdefs.h <<\_ACEOF
37508#define wxUSE_SPLITTER 1
37509_ACEOF
37510
37511 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
37512fi
37513
37514if test "$wxUSE_STATBMP" = "yes"; then
37515 cat >>confdefs.h <<\_ACEOF
37516#define wxUSE_STATBMP 1
37517_ACEOF
37518
37519 USES_CONTROLS=1
37520fi
37521
37522if test "$wxUSE_STATBOX" = "yes"; then
37523 cat >>confdefs.h <<\_ACEOF
37524#define wxUSE_STATBOX 1
37525_ACEOF
37526
37527 USES_CONTROLS=1
37528fi
37529
37530if test "$wxUSE_STATTEXT" = "yes"; then
37531 cat >>confdefs.h <<\_ACEOF
37532#define wxUSE_STATTEXT 1
37533_ACEOF
37534
37535 USES_CONTROLS=1
37536fi
37537
37538if test "$wxUSE_STATLINE" = "yes"; then
37539 cat >>confdefs.h <<\_ACEOF
37540#define wxUSE_STATLINE 1
37541_ACEOF
37542
37543 USES_CONTROLS=1
37544fi
37545
37546if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
37547 cat >>confdefs.h <<\_ACEOF
37548#define wxUSE_NATIVE_STATUSBAR 1
37549_ACEOF
37550
a848cd7e
SC
37551 cat >>confdefs.h <<\_ACEOF
37552#define wxUSE_STATUSBAR 1
37553_ACEOF
37554
37555 USES_CONTROLS=1
37556
37557 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
37558fi
37559
37560if test "$wxUSE_TABDIALOG" = "yes"; then
37561 cat >>confdefs.h <<\_ACEOF
37562#define wxUSE_TAB_DIALOG 1
37563_ACEOF
37564
37565 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
37566fi
37567
37568if test "$wxUSE_TEXTCTRL" = "yes"; then
37569 cat >>confdefs.h <<\_ACEOF
37570#define wxUSE_TEXTCTRL 1
37571_ACEOF
37572
37573 USES_CONTROLS=1
37574 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
37575fi
37576
37577if test "$wxUSE_TOGGLEBTN" = "yes"; then
37578 if test "$wxUSE_COCOA" = 1 ; then
37579 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
37580echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
37581 wxUSE_TOGGLEBTN=no
bdcade0a
MB
37582 else
37583 if test "$wxUSE_PM" = 1; then
37584 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5
37585echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;}
37586 wxUSE_TOGGLEBTN=no
37587 fi
a848cd7e
SC
37588 fi
37589 if test "$wxUSE_UNIVERSAL" = "yes"; then
37590 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
37591echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
37592 wxUSE_TOGGLEBTN=no
37593 fi
37594
37595 if test "$wxUSE_TOGGLEBTN" = "yes"; then
37596 cat >>confdefs.h <<\_ACEOF
37597#define wxUSE_TOGGLEBTN 1
37598_ACEOF
37599
37600 USES_CONTROLS=1
37601 fi
37602fi
37603
37604if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
37605 cat >>confdefs.h <<\_ACEOF
37606#define wxUSE_TOOLBAR_SIMPLE 1
37607_ACEOF
37608
37609 wxUSE_TOOLBAR="yes"
37610 USES_CONTROLS=1
37611fi
37612
37613if test "$wxUSE_TOOLBAR" = "yes"; then
37614 cat >>confdefs.h <<\_ACEOF
37615#define wxUSE_TOOLBAR 1
37616_ACEOF
37617
37618 USES_CONTROLS=1
37619
37620 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
37621 wxUSE_TOOLBAR_NATIVE="yes"
37622 fi
37623
37624 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
37625 cat >>confdefs.h <<\_ACEOF
37626#define wxUSE_TOOLBAR_NATIVE 1
37627_ACEOF
37628
37629 USES_CONTROLS=1
37630 fi
37631
37632 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
37633fi
37634
37635if test "$wxUSE_TOOLTIPS" = "yes"; then
37636 if test "$wxUSE_MOTIF" = 1; then
37637 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
37638echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
37639 else
37640 if test "$wxUSE_UNIVERSAL" = "yes"; then
37641 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
37642echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
37643 else
37644 cat >>confdefs.h <<\_ACEOF
37645#define wxUSE_TOOLTIPS 1
37646_ACEOF
37647
37648 fi
37649 fi
37650fi
37651
37652if test "$wxUSE_TREECTRL" = "yes"; then
37653 if test "$wxUSE_IMAGLIST" = "yes"; then
37654 cat >>confdefs.h <<\_ACEOF
37655#define wxUSE_TREECTRL 1
37656_ACEOF
37657
37658 USES_CONTROLS=1
37659 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
37660 else
37661 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
37662echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
37663 fi
37664fi
37665
37666if test "$wxUSE_POPUPWIN" = "yes"; then
37667 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
37668 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
37669echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
37670 else
37671 if test "$wxUSE_PM" = 1; then
37672 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
37673echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
37674 else
37675 cat >>confdefs.h <<\_ACEOF
37676#define wxUSE_POPUPWIN 1
37677_ACEOF
37678
37679
37680 USES_CONTROLS=1
37681 fi
37682 fi
37683fi
37684
37685if test "$wxUSE_TIPWINDOW" = "yes"; then
37686 if test "$wxUSE_PM" = 1; then
37687 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
37688echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
37689 else
37690 cat >>confdefs.h <<\_ACEOF
37691#define wxUSE_TIPWINDOW 1
37692_ACEOF
37693
37694 fi
37695fi
37696
37697if test "$USES_CONTROLS" = 1; then
37698 cat >>confdefs.h <<\_ACEOF
37699#define wxUSE_CONTROLS 1
37700_ACEOF
37701
37702fi
37703
37704
37705if test "$wxUSE_ACCESSIBILITY" = "yes"; then
37706 cat >>confdefs.h <<\_ACEOF
37707#define wxUSE_ACCESSIBILITY 1
37708_ACEOF
37709
37710 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
37711fi
37712
37713if test "$wxUSE_DRAGIMAGE" = "yes"; then
37714 cat >>confdefs.h <<\_ACEOF
37715#define wxUSE_DRAGIMAGE 1
37716_ACEOF
37717
37718 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
37719fi
37720
37721if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
37722 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
37723 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
37724echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
37725 else
37726 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
37727#define wxUSE_EXCEPTIONS 1
37728_ACEOF
37729
07bea8f0
VS
37730 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
37731 fi
a848cd7e
SC
37732fi
37733
37734USE_HTML=0
37735if test "$wxUSE_HTML" = "yes"; then
37736 cat >>confdefs.h <<\_ACEOF
37737#define wxUSE_HTML 1
37738_ACEOF
37739
37740 USE_HTML=1
37741 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
37742 if test "$wxUSE_MAC" = 1; then
37743 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
37744 fi
a848cd7e 37745fi
646b6ec1 37746if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 37747 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0
VS
37748 old_CPPFLAGS="$CPPFLAGS"
37749 CPPFLAGS="$CPPFLAGS -x objective-c++"
37750 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
37751echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
37752if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
37753 echo $ECHO_N "(cached) $ECHO_C" >&6
37754else
37755 cat >conftest.$ac_ext <<_ACEOF
37756/* confdefs.h. */
37757_ACEOF
37758cat confdefs.h >>conftest.$ac_ext
37759cat >>conftest.$ac_ext <<_ACEOF
37760/* end confdefs.h. */
37761#include <Carbon/Carbon.h>
37762
37763#include <WebKit/HIWebView.h>
37764_ACEOF
37765rm -f conftest.$ac_objext
37766if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37767 (eval $ac_compile) 2>conftest.er1
37768 ac_status=$?
37769 grep -v '^ *+' conftest.er1 >conftest.err
37770 rm -f conftest.er1
37771 cat conftest.err >&5
37772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37773 (exit $ac_status); } &&
da4486fb 37774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
37775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37776 (eval $ac_try) 2>&5
37777 ac_status=$?
37778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37779 (exit $ac_status); }; } &&
37780 { ac_try='test -s conftest.$ac_objext'
37781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37782 (eval $ac_try) 2>&5
37783 ac_status=$?
37784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37785 (exit $ac_status); }; }; then
37786 ac_cv_header_WebKit_HIWebView_h=yes
37787else
37788 echo "$as_me: failed program was:" >&5
37789sed 's/^/| /' conftest.$ac_ext >&5
37790
37791ac_cv_header_WebKit_HIWebView_h=no
37792fi
37793rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37794fi
37795echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
37796echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
37797if test $ac_cv_header_WebKit_HIWebView_h = yes; then
37798
37799 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
37800#define wxUSE_WEBKIT 1
37801_ACEOF
37802
07bea8f0
VS
37803 WEBKIT_LINK="-framework WebKit"
37804
37805else
37806
37807 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
37808echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
37809 wxUSE_WEBKIT=no
37810
646b6ec1
VS
37811fi
37812
07bea8f0
VS
37813
37814 CPPFLAGS="$old_CPPFLAGS"
37815 elif test "$wxUSE_COCOA" = 1; then
37816 cat >>confdefs.h <<\_ACEOF
37817#define wxUSE_WEBKIT 1
37818_ACEOF
37819
37820 else
37821 wxUSE_WEBKIT=no
37822 fi
37823fi
37824
9a8f0513
VS
37825USE_XRC=0
37826if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
37827 if test "$wxUSE_XML" != "yes"; then
37828 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
37829echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
37830 wxUSE_XRC=no
37831 else
37832 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
37833#define wxUSE_XRC 1
37834_ACEOF
37835
d2ebf0b7
VS
37836 USE_XRC=1
37837 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
37838 fi
9a8f0513 37839fi
07bea8f0 37840
a848cd7e
SC
37841if test "$wxUSE_MENUS" = "yes"; then
37842 cat >>confdefs.h <<\_ACEOF
37843#define wxUSE_MENUS 1
37844_ACEOF
37845
37846 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
37847fi
37848
37849if test "$wxUSE_METAFILE" = "yes"; then
37850 cat >>confdefs.h <<\_ACEOF
37851#define wxUSE_METAFILE 1
37852_ACEOF
37853
37854fi
37855
37856if test "$wxUSE_MIMETYPE" = "yes"; then
37857 cat >>confdefs.h <<\_ACEOF
37858#define wxUSE_MIMETYPE 1
37859_ACEOF
37860
37861fi
37862
37863if test "$wxUSE_MINIFRAME" = "yes"; then
37864 cat >>confdefs.h <<\_ACEOF
37865#define wxUSE_MINIFRAME 1
37866_ACEOF
37867
37868 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
37869fi
37870
37871if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
37872 cat >>confdefs.h <<\_ACEOF
37873#define wxUSE_SYSTEM_OPTIONS 1
37874_ACEOF
37875
37876 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 37877 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
37878 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
37879 fi
37880fi
37881
37882
37883if test "$wxUSE_VALIDATORS" = "yes"; then
37884 cat >>confdefs.h <<\_ACEOF
37885#define wxUSE_VALIDATORS 1
37886_ACEOF
37887
37888 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
37889fi
37890
37891if test "$wxUSE_PALETTE" = "yes" ; then
37892 cat >>confdefs.h <<\_ACEOF
37893#define wxUSE_PALETTE 1
37894_ACEOF
37895
37896fi
37897
37898if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
37899 LIBS=" -lunicows $LIBS"
37900fi
37901
37902
37903if test "$wxUSE_IMAGE" = "yes" ; then
37904 cat >>confdefs.h <<\_ACEOF
37905#define wxUSE_IMAGE 1
37906_ACEOF
37907
37908
37909 if test "$wxUSE_GIF" = "yes" ; then
37910 cat >>confdefs.h <<\_ACEOF
37911#define wxUSE_GIF 1
37912_ACEOF
37913
37914 fi
37915
37916 if test "$wxUSE_PCX" = "yes" ; then
37917 cat >>confdefs.h <<\_ACEOF
37918#define wxUSE_PCX 1
37919_ACEOF
37920
37921 fi
37922
37923 if test "$wxUSE_IFF" = "yes" ; then
37924 cat >>confdefs.h <<\_ACEOF
37925#define wxUSE_IFF 1
37926_ACEOF
37927
37928 fi
37929
37930 if test "$wxUSE_PNM" = "yes" ; then
37931 cat >>confdefs.h <<\_ACEOF
37932#define wxUSE_PNM 1
37933_ACEOF
37934
37935 fi
37936
37937 if test "$wxUSE_XPM" = "yes" ; then
37938 cat >>confdefs.h <<\_ACEOF
37939#define wxUSE_XPM 1
37940_ACEOF
37941
37942 fi
37943
37944 if test "$wxUSE_ICO_CUR" = "yes" ; then
37945 cat >>confdefs.h <<\_ACEOF
37946#define wxUSE_ICO_CUR 1
37947_ACEOF
37948
37949 fi
37950fi
37951
37952
37953if test "$wxUSE_CHOICEDLG" = "yes"; then
37954 cat >>confdefs.h <<\_ACEOF
37955#define wxUSE_CHOICEDLG 1
37956_ACEOF
37957
37958fi
37959
37960if test "$wxUSE_COLOURDLG" = "yes"; then
37961 cat >>confdefs.h <<\_ACEOF
37962#define wxUSE_COLOURDLG 1
37963_ACEOF
37964
37965fi
37966
37967if test "$wxUSE_FILEDLG" = "yes"; then
37968 cat >>confdefs.h <<\_ACEOF
37969#define wxUSE_FILEDLG 1
37970_ACEOF
37971
37972fi
37973
37974if test "$wxUSE_FINDREPLDLG" = "yes"; then
37975 cat >>confdefs.h <<\_ACEOF
37976#define wxUSE_FINDREPLDLG 1
37977_ACEOF
37978
37979fi
37980
37981if test "$wxUSE_FONTDLG" = "yes"; then
37982 cat >>confdefs.h <<\_ACEOF
37983#define wxUSE_FONTDLG 1
37984_ACEOF
37985
37986fi
37987
37988if test "$wxUSE_DIRDLG" = "yes"; then
37989 if test "$wxUSE_TREECTRL" != "yes"; then
37990 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
37991echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
37992 else
37993 cat >>confdefs.h <<\_ACEOF
37994#define wxUSE_DIRDLG 1
37995_ACEOF
37996
37997 fi
37998fi
37999
38000if test "$wxUSE_MSGDLG" = "yes"; then
38001 cat >>confdefs.h <<\_ACEOF
38002#define wxUSE_MSGDLG 1
38003_ACEOF
38004
38005fi
38006
38007if test "$wxUSE_NUMBERDLG" = "yes"; then
38008 cat >>confdefs.h <<\_ACEOF
38009#define wxUSE_NUMBERDLG 1
38010_ACEOF
38011
38012fi
38013
38014if test "$wxUSE_PROGRESSDLG" = "yes"; then
38015 if test "$wxUSE_CONSTRAINTS" != "yes"; then
38016 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
38017echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
38018 else
38019 cat >>confdefs.h <<\_ACEOF
38020#define wxUSE_PROGRESSDLG 1
38021_ACEOF
38022
38023 fi
38024fi
38025
38026if test "$wxUSE_SPLASH" = "yes"; then
38027 cat >>confdefs.h <<\_ACEOF
38028#define wxUSE_SPLASH 1
38029_ACEOF
38030
2057db16 38031 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
38032fi
38033
38034if test "$wxUSE_STARTUP_TIPS" = "yes"; then
38035 if test "$wxUSE_CONSTRAINTS" != "yes"; then
38036 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
38037echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
38038 else
38039 cat >>confdefs.h <<\_ACEOF
38040#define wxUSE_STARTUP_TIPS 1
38041_ACEOF
38042
38043 fi
38044fi
38045
38046if test "$wxUSE_TEXTDLG" = "yes"; then
38047 cat >>confdefs.h <<\_ACEOF
38048#define wxUSE_TEXTDLG 1
38049_ACEOF
38050
38051fi
38052
38053if test "$wxUSE_WIZARDDLG" = "yes"; then
38054 cat >>confdefs.h <<\_ACEOF
38055#define wxUSE_WIZARDDLG 1
38056_ACEOF
38057
38058 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
38059fi
38060
38061
38062if test "$cross_compiling" = "yes"; then
38063 OSINFO="\"$host\""
38064else
38065 OSINFO=`uname -s -r -m`
38066 OSINFO="\"$OSINFO\""
38067fi
38068
38069cat >>confdefs.h <<_ACEOF
38070#define WXWIN_OS_DESCRIPTION $OSINFO
38071_ACEOF
38072
38073
38074
38075if test "x$prefix" != "xNONE"; then
38076 wxPREFIX=$prefix
38077else
38078 wxPREFIX=$ac_default_prefix
38079fi
38080
38081cat >>confdefs.h <<_ACEOF
38082#define wxINSTALL_PREFIX "$wxPREFIX"
38083_ACEOF
38084
38085
a848cd7e
SC
38086
38087
38088CORE_BASE_LIBS="net base"
38089CORE_GUI_LIBS="adv core"
38090
38091if test "$wxUSE_XML" = "yes" ; then
38092 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
38093fi
38094if test "$wxUSE_ODBC" != "no" ; then
38095 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
38096 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
38097fi
38098if test "$wxUSE_HTML" = "yes" ; then
38099 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
38100fi
9a8f0513
VS
38101if test "$wxUSE_XRC" = "yes" ; then
38102 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
38103fi
a848cd7e
SC
38104
38105if test "$wxUSE_GUI" != "yes"; then
38106 CORE_GUI_LIBS=""
38107fi
38108
38109
38110
38111
38112
38113
38114
38115
38116if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 38117 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
38118 if test "$USE_DARWIN" = 1; then
38119 LDFLAGS="$LDFLAGS -framework QuickTime"
38120 else
38121 LDFLAGS="$LDFLAGS -lQuickTimeLib"
38122 fi
07bea8f0 38123 fi
5dcf30a0 38124 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
38125 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
38126 else
38127 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 38128 fi
a848cd7e
SC
38129fi
38130if test "$wxUSE_COCOA" = 1 ; then
f7e98dee 38131 LDFLAGS="$LDFLAGS -framework Cocoa"
a848cd7e
SC
38132fi
38133
38134
38135LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
38136
38137have_cos=0
38138have_floor=0
38139
38140for ac_func in cos
38141do
38142as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38143echo "$as_me:$LINENO: checking for $ac_func" >&5
38144echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38145if eval "test \"\${$as_ac_var+set}\" = set"; then
38146 echo $ECHO_N "(cached) $ECHO_C" >&6
38147else
38148 cat >conftest.$ac_ext <<_ACEOF
38149/* confdefs.h. */
38150_ACEOF
38151cat confdefs.h >>conftest.$ac_ext
38152cat >>conftest.$ac_ext <<_ACEOF
38153/* end confdefs.h. */
ac1cb8d3
VS
38154/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38156#define $ac_func innocuous_$ac_func
38157
a848cd7e
SC
38158/* System header to define __stub macros and hopefully few prototypes,
38159 which can conflict with char $ac_func (); below.
38160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38161 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38162
a848cd7e
SC
38163#ifdef __STDC__
38164# include <limits.h>
38165#else
38166# include <assert.h>
38167#endif
ac1cb8d3
VS
38168
38169#undef $ac_func
38170
a848cd7e
SC
38171/* Override any gcc2 internal prototype to avoid an error. */
38172#ifdef __cplusplus
38173extern "C"
38174{
38175#endif
38176/* We use char because int might match the return type of a gcc2
38177 builtin and then its argument prototype would still apply. */
38178char $ac_func ();
38179/* The GNU C library defines this for functions which it implements
38180 to always fail with ENOSYS. Some functions are actually named
38181 something starting with __ and the normal name is an alias. */
38182#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38183choke me
38184#else
38185char (*f) () = $ac_func;
38186#endif
38187#ifdef __cplusplus
38188}
38189#endif
38190
38191int
38192main ()
38193{
38194return f != $ac_func;
38195 ;
38196 return 0;
38197}
38198_ACEOF
38199rm -f conftest.$ac_objext conftest$ac_exeext
38200if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38201 (eval $ac_link) 2>conftest.er1
a848cd7e 38202 ac_status=$?
ac1cb8d3
VS
38203 grep -v '^ *+' conftest.er1 >conftest.err
38204 rm -f conftest.er1
38205 cat conftest.err >&5
a848cd7e
SC
38206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38207 (exit $ac_status); } &&
da4486fb 38208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38210 (eval $ac_try) 2>&5
38211 ac_status=$?
38212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38213 (exit $ac_status); }; } &&
38214 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38216 (eval $ac_try) 2>&5
38217 ac_status=$?
38218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38219 (exit $ac_status); }; }; then
38220 eval "$as_ac_var=yes"
38221else
38222 echo "$as_me: failed program was:" >&5
38223sed 's/^/| /' conftest.$ac_ext >&5
38224
38225eval "$as_ac_var=no"
38226fi
ac1cb8d3
VS
38227rm -f conftest.err conftest.$ac_objext \
38228 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38229fi
38230echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38231echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38232if test `eval echo '${'$as_ac_var'}'` = yes; then
38233 cat >>confdefs.h <<_ACEOF
38234#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38235_ACEOF
38236 have_cos=1
38237fi
38238done
38239
38240
38241for ac_func in floor
38242do
38243as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38244echo "$as_me:$LINENO: checking for $ac_func" >&5
38245echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38246if eval "test \"\${$as_ac_var+set}\" = set"; then
38247 echo $ECHO_N "(cached) $ECHO_C" >&6
38248else
38249 cat >conftest.$ac_ext <<_ACEOF
38250/* confdefs.h. */
38251_ACEOF
38252cat confdefs.h >>conftest.$ac_ext
38253cat >>conftest.$ac_ext <<_ACEOF
38254/* end confdefs.h. */
ac1cb8d3
VS
38255/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38256 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38257#define $ac_func innocuous_$ac_func
38258
a848cd7e
SC
38259/* System header to define __stub macros and hopefully few prototypes,
38260 which can conflict with char $ac_func (); below.
38261 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38262 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38263
a848cd7e
SC
38264#ifdef __STDC__
38265# include <limits.h>
38266#else
38267# include <assert.h>
38268#endif
ac1cb8d3
VS
38269
38270#undef $ac_func
38271
a848cd7e
SC
38272/* Override any gcc2 internal prototype to avoid an error. */
38273#ifdef __cplusplus
38274extern "C"
38275{
38276#endif
38277/* We use char because int might match the return type of a gcc2
38278 builtin and then its argument prototype would still apply. */
38279char $ac_func ();
38280/* The GNU C library defines this for functions which it implements
38281 to always fail with ENOSYS. Some functions are actually named
38282 something starting with __ and the normal name is an alias. */
38283#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38284choke me
38285#else
38286char (*f) () = $ac_func;
38287#endif
38288#ifdef __cplusplus
38289}
38290#endif
38291
38292int
38293main ()
38294{
38295return f != $ac_func;
38296 ;
38297 return 0;
38298}
38299_ACEOF
38300rm -f conftest.$ac_objext conftest$ac_exeext
38301if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38302 (eval $ac_link) 2>conftest.er1
a848cd7e 38303 ac_status=$?
ac1cb8d3
VS
38304 grep -v '^ *+' conftest.er1 >conftest.err
38305 rm -f conftest.er1
38306 cat conftest.err >&5
a848cd7e
SC
38307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38308 (exit $ac_status); } &&
da4486fb 38309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38311 (eval $ac_try) 2>&5
38312 ac_status=$?
38313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38314 (exit $ac_status); }; } &&
38315 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38317 (eval $ac_try) 2>&5
38318 ac_status=$?
38319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38320 (exit $ac_status); }; }; then
38321 eval "$as_ac_var=yes"
38322else
38323 echo "$as_me: failed program was:" >&5
38324sed 's/^/| /' conftest.$ac_ext >&5
38325
38326eval "$as_ac_var=no"
38327fi
ac1cb8d3
VS
38328rm -f conftest.err conftest.$ac_objext \
38329 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38330fi
38331echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38332echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38333if test `eval echo '${'$as_ac_var'}'` = yes; then
38334 cat >>confdefs.h <<_ACEOF
38335#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38336_ACEOF
38337 have_floor=1
38338fi
38339done
38340
38341echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
38342echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
38343if test "$have_cos" = 1 -a "$have_floor" = 1; then
38344 echo "$as_me:$LINENO: result: yes" >&5
38345echo "${ECHO_T}yes" >&6
38346else
38347 echo "$as_me:$LINENO: result: no" >&5
38348echo "${ECHO_T}no" >&6
38349 LIBS="$LIBS -lm"
38350 # use different functions to avoid configure caching
38351 have_sin=0
38352 have_ceil=0
38353
38354for ac_func in sin
38355do
38356as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38357echo "$as_me:$LINENO: checking for $ac_func" >&5
38358echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38359if eval "test \"\${$as_ac_var+set}\" = set"; then
38360 echo $ECHO_N "(cached) $ECHO_C" >&6
38361else
38362 cat >conftest.$ac_ext <<_ACEOF
38363/* confdefs.h. */
38364_ACEOF
38365cat confdefs.h >>conftest.$ac_ext
38366cat >>conftest.$ac_ext <<_ACEOF
38367/* end confdefs.h. */
ac1cb8d3
VS
38368/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38369 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38370#define $ac_func innocuous_$ac_func
38371
a848cd7e
SC
38372/* System header to define __stub macros and hopefully few prototypes,
38373 which can conflict with char $ac_func (); below.
38374 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38375 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38376
a848cd7e
SC
38377#ifdef __STDC__
38378# include <limits.h>
38379#else
38380# include <assert.h>
38381#endif
ac1cb8d3
VS
38382
38383#undef $ac_func
38384
a848cd7e
SC
38385/* Override any gcc2 internal prototype to avoid an error. */
38386#ifdef __cplusplus
38387extern "C"
38388{
38389#endif
38390/* We use char because int might match the return type of a gcc2
38391 builtin and then its argument prototype would still apply. */
38392char $ac_func ();
38393/* The GNU C library defines this for functions which it implements
38394 to always fail with ENOSYS. Some functions are actually named
38395 something starting with __ and the normal name is an alias. */
38396#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38397choke me
38398#else
38399char (*f) () = $ac_func;
38400#endif
38401#ifdef __cplusplus
38402}
38403#endif
38404
38405int
38406main ()
38407{
38408return f != $ac_func;
38409 ;
38410 return 0;
38411}
38412_ACEOF
38413rm -f conftest.$ac_objext conftest$ac_exeext
38414if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38415 (eval $ac_link) 2>conftest.er1
a848cd7e 38416 ac_status=$?
ac1cb8d3
VS
38417 grep -v '^ *+' conftest.er1 >conftest.err
38418 rm -f conftest.er1
38419 cat conftest.err >&5
a848cd7e
SC
38420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38421 (exit $ac_status); } &&
da4486fb 38422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38424 (eval $ac_try) 2>&5
38425 ac_status=$?
38426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38427 (exit $ac_status); }; } &&
38428 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38430 (eval $ac_try) 2>&5
38431 ac_status=$?
38432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38433 (exit $ac_status); }; }; then
38434 eval "$as_ac_var=yes"
38435else
38436 echo "$as_me: failed program was:" >&5
38437sed 's/^/| /' conftest.$ac_ext >&5
38438
38439eval "$as_ac_var=no"
38440fi
ac1cb8d3
VS
38441rm -f conftest.err conftest.$ac_objext \
38442 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38443fi
38444echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38445echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38446if test `eval echo '${'$as_ac_var'}'` = yes; then
38447 cat >>confdefs.h <<_ACEOF
38448#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38449_ACEOF
38450 have_sin=1
38451fi
38452done
38453
38454
38455for ac_func in ceil
38456do
38457as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38458echo "$as_me:$LINENO: checking for $ac_func" >&5
38459echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38460if eval "test \"\${$as_ac_var+set}\" = set"; then
38461 echo $ECHO_N "(cached) $ECHO_C" >&6
38462else
38463 cat >conftest.$ac_ext <<_ACEOF
38464/* confdefs.h. */
38465_ACEOF
38466cat confdefs.h >>conftest.$ac_ext
38467cat >>conftest.$ac_ext <<_ACEOF
38468/* end confdefs.h. */
ac1cb8d3
VS
38469/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38470 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38471#define $ac_func innocuous_$ac_func
38472
a848cd7e
SC
38473/* System header to define __stub macros and hopefully few prototypes,
38474 which can conflict with char $ac_func (); below.
38475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38476 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38477
a848cd7e
SC
38478#ifdef __STDC__
38479# include <limits.h>
38480#else
38481# include <assert.h>
38482#endif
ac1cb8d3
VS
38483
38484#undef $ac_func
38485
a848cd7e
SC
38486/* Override any gcc2 internal prototype to avoid an error. */
38487#ifdef __cplusplus
38488extern "C"
38489{
38490#endif
38491/* We use char because int might match the return type of a gcc2
38492 builtin and then its argument prototype would still apply. */
38493char $ac_func ();
38494/* The GNU C library defines this for functions which it implements
38495 to always fail with ENOSYS. Some functions are actually named
38496 something starting with __ and the normal name is an alias. */
38497#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38498choke me
38499#else
38500char (*f) () = $ac_func;
38501#endif
38502#ifdef __cplusplus
38503}
38504#endif
38505
38506int
38507main ()
38508{
38509return f != $ac_func;
38510 ;
38511 return 0;
38512}
38513_ACEOF
38514rm -f conftest.$ac_objext conftest$ac_exeext
38515if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38516 (eval $ac_link) 2>conftest.er1
a848cd7e 38517 ac_status=$?
ac1cb8d3
VS
38518 grep -v '^ *+' conftest.er1 >conftest.err
38519 rm -f conftest.er1
38520 cat conftest.err >&5
a848cd7e
SC
38521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38522 (exit $ac_status); } &&
da4486fb 38523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38525 (eval $ac_try) 2>&5
38526 ac_status=$?
38527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38528 (exit $ac_status); }; } &&
38529 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38531 (eval $ac_try) 2>&5
38532 ac_status=$?
38533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38534 (exit $ac_status); }; }; then
38535 eval "$as_ac_var=yes"
38536else
38537 echo "$as_me: failed program was:" >&5
38538sed 's/^/| /' conftest.$ac_ext >&5
38539
38540eval "$as_ac_var=no"
38541fi
ac1cb8d3
VS
38542rm -f conftest.err conftest.$ac_objext \
38543 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38544fi
38545echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38546echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38547if test `eval echo '${'$as_ac_var'}'` = yes; then
38548 cat >>confdefs.h <<_ACEOF
38549#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38550_ACEOF
38551 have_ceil=1
38552fi
38553done
38554
38555 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
38556echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
38557 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
38558 echo "$as_me:$LINENO: result: yes" >&5
38559echo "${ECHO_T}yes" >&6
38560 else
38561 echo "$as_me:$LINENO: result: no" >&5
38562echo "${ECHO_T}no" >&6
38563 # not sure we should warn the user, crash, etc.
38564 fi
38565fi
38566
38567if test "$wxUSE_GUI" = "yes"; then
38568
38569
38570 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
38571 drawing dynamic erase event exec font image \
38572 minimal propsize rotate shaped widgets render"
38573
38574 if test "$wxUSE_MONOLITHIC" != "yes"; then
38575 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
38576 fi
38577else
38578 SAMPLES_SUBDIRS="console"
38579fi
38580
38581
ceec2216 38582INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
a848cd7e
SC
38583-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
38584
38585if test "$GXX" = yes ; then
5294a27e
VZ
38586 CWARNINGS="-Wall"
38587 CXXWARNINGS="$CWARNINGS -Wno-ctor-dtor-privacy"
a848cd7e
SC
38588 fi
38589
38590EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
38591
0c3c69fc 38592CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
5294a27e 38593CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS`
0c3c69fc 38594CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e
SC
38595
38596
0c3c69fc 38597LIBS=`echo $LIBS`
a848cd7e
SC
38598EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
38599EXTRALIBS_XML="$EXPAT_LINK"
38600EXTRALIBS_HTML="$MSPACK_LINK"
38601EXTRALIBS_ODBC="$ODBC_LINK"
38602if test "$wxUSE_GUI" = "yes"; then
0c3c69fc 38603 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK`
a848cd7e
SC
38604fi
38605if test "$wxUSE_OPENGL" = "yes"; then
38606 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
38607fi
38608
38609LDFLAGS="$LDFLAGS $PROFILE"
38610
38611if test "$wxUSE_GTK" = 1; then
38612 WXCONFIG_INCLUDE=
38613else
38614 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
38615fi
38616
38617WXCONFIG_EXTRALIBS="$LIBS"
38618
38619if test "$wxUSE_REGEX" = "builtin" ; then
38620 wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}"
38621fi
38622if test "$wxUSE_EXPAT" = "builtin" ; then
38623 wxconfig_3rdparty="$wxconfig_3rdparty expat"
38624fi
38625if test "$wxUSE_ODBC" = "builtin" ; then
38626 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
38627fi
38628if test "$wxUSE_LIBTIFF" = "builtin" ; then
38629 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
38630fi
38631if test "$wxUSE_LIBJPEG" = "builtin" ; then
38632 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
38633fi
38634if test "$wxUSE_LIBPNG" = "builtin" ; then
38635 wxconfig_3rdparty="$wxconfig_3rdparty png"
38636fi
38637if test "$wxUSE_ZLIB" = "builtin" ; then
38638 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
38639fi
38640if test "$wxUSE_ODBC" = "builtin" ; then
38641 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
38642fi
38643
38644for i in $wxconfig_3rdparty ; do
ceec2216 38645 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
a848cd7e
SC
38646done
38647
38648
38649if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
38650 WXUNIV=1
38651else
38652 WXUNIV=0
38653fi
38654
38655
38656
38657
38658
38659
38660
38661
38662
38663if test $wxUSE_MONOLITHIC = "yes" ; then
38664 MONOLITHIC=1
38665else
38666 MONOLITHIC=0
38667fi
38668
38669if test $wxUSE_PLUGINS = "yes" ; then
38670 USE_PLUGINS=1
38671else
38672 USE_PLUGINS=0
38673fi
38674
38675if test $wxUSE_ODBC != "no" ; then
38676 USE_ODBC=1
38677else
38678 USE_ODBC=0
38679fi
38680
38681if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
38682 OFFICIAL_BUILD=1
38683else
38684 OFFICIAL_BUILD=0
38685fi
38686
38687
38688
38689
38690
38691
38692
38693
38694
38695
38696
38697
38698
38699
38700
38701
38702
38703
38704
ceec2216 38705
d1c38808 38706
a848cd7e
SC
38707
38708
38709TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
38710
38711
38712
38713
38714
38715
38716
38717
4d4ff94c
VZ
38718case "$TOOLKIT" in
38719 GTK)
38720 TOOLKIT_USER="GTK+"
38721 if test "$WXGTK20" = 1; then
38722 TOOLKIT_USER="$TOOLKIT_USER 2"
38723 fi
9a8f0513 38724 ;;
4d4ff94c
VZ
38725
38726 *)
38727 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 38728 ;;
4d4ff94c 38729esac
a848cd7e 38730
9a8f0513 38731
1e9e8aba
DE
38732
38733
a848cd7e
SC
38734 if test "x$BAKEFILE_HOST" = "x"; then
38735 BAKEFILE_HOST="${host}"
38736 fi
38737
38738 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
38739
38740 if test -n "$ac_tool_prefix"; then
38741 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
38742set dummy ${ac_tool_prefix}ranlib; ac_word=$2
38743echo "$as_me:$LINENO: checking for $ac_word" >&5
38744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38745if test "${ac_cv_prog_RANLIB+set}" = set; then
38746 echo $ECHO_N "(cached) $ECHO_C" >&6
38747else
38748 if test -n "$RANLIB"; then
38749 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
38750else
38751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38752for as_dir in $PATH
38753do
38754 IFS=$as_save_IFS
38755 test -z "$as_dir" && as_dir=.
38756 for ac_exec_ext in '' $ac_executable_extensions; do
38757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38758 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
38759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38760 break 2
38761 fi
38762done
38763done
38764
38765fi
38766fi
38767RANLIB=$ac_cv_prog_RANLIB
38768if test -n "$RANLIB"; then
38769 echo "$as_me:$LINENO: result: $RANLIB" >&5
38770echo "${ECHO_T}$RANLIB" >&6
38771else
38772 echo "$as_me:$LINENO: result: no" >&5
38773echo "${ECHO_T}no" >&6
38774fi
38775
38776fi
38777if test -z "$ac_cv_prog_RANLIB"; then
38778 ac_ct_RANLIB=$RANLIB
38779 # Extract the first word of "ranlib", so it can be a program name with args.
38780set dummy ranlib; ac_word=$2
38781echo "$as_me:$LINENO: checking for $ac_word" >&5
38782echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38783if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
38784 echo $ECHO_N "(cached) $ECHO_C" >&6
38785else
38786 if test -n "$ac_ct_RANLIB"; then
38787 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
38788else
38789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38790for as_dir in $PATH
38791do
38792 IFS=$as_save_IFS
38793 test -z "$as_dir" && as_dir=.
38794 for ac_exec_ext in '' $ac_executable_extensions; do
38795 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38796 ac_cv_prog_ac_ct_RANLIB="ranlib"
38797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38798 break 2
38799 fi
38800done
38801done
38802
38803 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
38804fi
38805fi
38806ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
38807if test -n "$ac_ct_RANLIB"; then
38808 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
38809echo "${ECHO_T}$ac_ct_RANLIB" >&6
38810else
38811 echo "$as_me:$LINENO: result: no" >&5
38812echo "${ECHO_T}no" >&6
38813fi
38814
38815 RANLIB=$ac_ct_RANLIB
38816else
38817 RANLIB="$ac_cv_prog_RANLIB"
38818fi
38819
38820 # Find a good install program. We prefer a C program (faster),
38821# so one script is as good as another. But avoid the broken or
38822# incompatible versions:
38823# SysV /etc/install, /usr/sbin/install
38824# SunOS /usr/etc/install
38825# IRIX /sbin/install
38826# AIX /bin/install
38827# AmigaOS /C/install, which installs bootblocks on floppy discs
38828# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
38829# AFS /usr/afsws/bin/install, which mishandles nonexistent args
38830# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 38831# OS/2's system install, which has a completely different semantic
a848cd7e
SC
38832# ./install, which can be erroneously created by make from ./install.sh.
38833echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
38834echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
38835if test -z "$INSTALL"; then
38836if test "${ac_cv_path_install+set}" = set; then
38837 echo $ECHO_N "(cached) $ECHO_C" >&6
38838else
38839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38840for as_dir in $PATH
38841do
38842 IFS=$as_save_IFS
38843 test -z "$as_dir" && as_dir=.
38844 # Account for people who put trailing slashes in PATH elements.
38845case $as_dir/ in
38846 ./ | .// | /cC/* | \
38847 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 38848 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
38849 /usr/ucb/* ) ;;
38850 *)
38851 # OSF1 and SCO ODT 3.0 have their own names for install.
38852 # Don't use installbsd from OSF since it installs stuff as root
38853 # by default.
38854 for ac_prog in ginstall scoinst install; do
38855 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
38856 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
38857 if test $ac_prog = install &&
38858 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
38859 # AIX install. It has an incompatible calling convention.
38860 :
38861 elif test $ac_prog = install &&
38862 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
38863 # program-specific install script used by HP pwplus--don't use.
38864 :
38865 else
38866 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
38867 break 3
38868 fi
38869 fi
a848cd7e
SC
38870 done
38871 done
38872 ;;
38873esac
38874done
38875
38876
38877fi
38878 if test "${ac_cv_path_install+set}" = set; then
38879 INSTALL=$ac_cv_path_install
38880 else
38881 # As a last resort, use the slow shell script. We don't cache a
38882 # path for INSTALL within a source directory, because that will
38883 # break other packages using the cache if that directory is
38884 # removed, or if the path is relative.
38885 INSTALL=$ac_install_sh
38886 fi
38887fi
38888echo "$as_me:$LINENO: result: $INSTALL" >&5
38889echo "${ECHO_T}$INSTALL" >&6
38890
38891# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
38892# It thinks the first close brace ends the variable substitution.
38893test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
38894
38895test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
38896
38897test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
38898
38899 echo "$as_me:$LINENO: checking whether ln -s works" >&5
38900echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
38901LN_S=$as_ln_s
38902if test "$LN_S" = "ln -s"; then
38903 echo "$as_me:$LINENO: result: yes" >&5
38904echo "${ECHO_T}yes" >&6
38905else
38906 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
38907echo "${ECHO_T}no, using $LN_S" >&6
38908fi
38909
38910
38911 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
38912echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 38913set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
38914if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
38915 echo $ECHO_N "(cached) $ECHO_C" >&6
38916else
38917 cat >conftest.make <<\_ACEOF
38918all:
38919 @echo 'ac_maketemp="$(MAKE)"'
38920_ACEOF
38921# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
38922eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
38923if test -n "$ac_maketemp"; then
38924 eval ac_cv_prog_make_${ac_make}_set=yes
38925else
38926 eval ac_cv_prog_make_${ac_make}_set=no
38927fi
38928rm -f conftest.make
38929fi
38930if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
38931 echo "$as_me:$LINENO: result: yes" >&5
38932echo "${ECHO_T}yes" >&6
38933 SET_MAKE=
38934else
38935 echo "$as_me:$LINENO: result: no" >&5
38936echo "${ECHO_T}no" >&6
38937 SET_MAKE="MAKE=${MAKE-make}"
38938fi
38939
38940
38941
38942 if test -n "$ac_tool_prefix"; then
38943 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
38944set dummy ${ac_tool_prefix}ar; ac_word=$2
38945echo "$as_me:$LINENO: checking for $ac_word" >&5
38946echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38947if test "${ac_cv_prog_AR+set}" = set; then
38948 echo $ECHO_N "(cached) $ECHO_C" >&6
38949else
38950 if test -n "$AR"; then
38951 ac_cv_prog_AR="$AR" # Let the user override the test.
38952else
38953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38954for as_dir in $PATH
38955do
38956 IFS=$as_save_IFS
38957 test -z "$as_dir" && as_dir=.
38958 for ac_exec_ext in '' $ac_executable_extensions; do
38959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38960 ac_cv_prog_AR="${ac_tool_prefix}ar"
38961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38962 break 2
38963 fi
38964done
38965done
38966
38967fi
38968fi
38969AR=$ac_cv_prog_AR
38970if test -n "$AR"; then
38971 echo "$as_me:$LINENO: result: $AR" >&5
38972echo "${ECHO_T}$AR" >&6
38973else
38974 echo "$as_me:$LINENO: result: no" >&5
38975echo "${ECHO_T}no" >&6
38976fi
38977
38978fi
38979if test -z "$ac_cv_prog_AR"; then
38980 ac_ct_AR=$AR
38981 # Extract the first word of "ar", so it can be a program name with args.
38982set dummy ar; ac_word=$2
38983echo "$as_me:$LINENO: checking for $ac_word" >&5
38984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38985if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
38986 echo $ECHO_N "(cached) $ECHO_C" >&6
38987else
38988 if test -n "$ac_ct_AR"; then
38989 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
38990else
38991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38992for as_dir in $PATH
38993do
38994 IFS=$as_save_IFS
38995 test -z "$as_dir" && as_dir=.
38996 for ac_exec_ext in '' $ac_executable_extensions; do
38997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38998 ac_cv_prog_ac_ct_AR="ar"
38999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39000 break 2
39001 fi
39002done
39003done
39004
39005 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
39006fi
39007fi
39008ac_ct_AR=$ac_cv_prog_ac_ct_AR
39009if test -n "$ac_ct_AR"; then
39010 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
39011echo "${ECHO_T}$ac_ct_AR" >&6
39012else
39013 echo "$as_me:$LINENO: result: no" >&5
39014echo "${ECHO_T}no" >&6
39015fi
39016
39017 AR=$ac_ct_AR
39018else
39019 AR="$ac_cv_prog_AR"
39020fi
39021
39022 if test -n "$ac_tool_prefix"; then
39023 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
39024set dummy ${ac_tool_prefix}strip; ac_word=$2
39025echo "$as_me:$LINENO: checking for $ac_word" >&5
39026echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39027if test "${ac_cv_prog_STRIP+set}" = set; then
39028 echo $ECHO_N "(cached) $ECHO_C" >&6
39029else
39030 if test -n "$STRIP"; then
39031 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
39032else
39033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39034for as_dir in $PATH
39035do
39036 IFS=$as_save_IFS
39037 test -z "$as_dir" && as_dir=.
39038 for ac_exec_ext in '' $ac_executable_extensions; do
39039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39040 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
39041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39042 break 2
39043 fi
39044done
39045done
39046
39047fi
39048fi
39049STRIP=$ac_cv_prog_STRIP
39050if test -n "$STRIP"; then
39051 echo "$as_me:$LINENO: result: $STRIP" >&5
39052echo "${ECHO_T}$STRIP" >&6
39053else
39054 echo "$as_me:$LINENO: result: no" >&5
39055echo "${ECHO_T}no" >&6
39056fi
39057
39058fi
39059if test -z "$ac_cv_prog_STRIP"; then
39060 ac_ct_STRIP=$STRIP
39061 # Extract the first word of "strip", so it can be a program name with args.
39062set dummy strip; ac_word=$2
39063echo "$as_me:$LINENO: checking for $ac_word" >&5
39064echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39065if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
39066 echo $ECHO_N "(cached) $ECHO_C" >&6
39067else
39068 if test -n "$ac_ct_STRIP"; then
39069 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
39070else
39071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39072for as_dir in $PATH
39073do
39074 IFS=$as_save_IFS
39075 test -z "$as_dir" && as_dir=.
39076 for ac_exec_ext in '' $ac_executable_extensions; do
39077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39078 ac_cv_prog_ac_ct_STRIP="strip"
39079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39080 break 2
39081 fi
39082done
39083done
39084
39085 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
39086fi
39087fi
39088ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
39089if test -n "$ac_ct_STRIP"; then
39090 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
39091echo "${ECHO_T}$ac_ct_STRIP" >&6
39092else
39093 echo "$as_me:$LINENO: result: no" >&5
39094echo "${ECHO_T}no" >&6
39095fi
39096
39097 STRIP=$ac_ct_STRIP
39098else
39099 STRIP="$ac_cv_prog_STRIP"
39100fi
39101
39102 if test -n "$ac_tool_prefix"; then
39103 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
39104set dummy ${ac_tool_prefix}nm; ac_word=$2
39105echo "$as_me:$LINENO: checking for $ac_word" >&5
39106echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39107if test "${ac_cv_prog_NM+set}" = set; then
39108 echo $ECHO_N "(cached) $ECHO_C" >&6
39109else
39110 if test -n "$NM"; then
39111 ac_cv_prog_NM="$NM" # Let the user override the test.
39112else
39113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39114for as_dir in $PATH
39115do
39116 IFS=$as_save_IFS
39117 test -z "$as_dir" && as_dir=.
39118 for ac_exec_ext in '' $ac_executable_extensions; do
39119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39120 ac_cv_prog_NM="${ac_tool_prefix}nm"
39121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39122 break 2
39123 fi
39124done
39125done
39126
39127fi
39128fi
39129NM=$ac_cv_prog_NM
39130if test -n "$NM"; then
39131 echo "$as_me:$LINENO: result: $NM" >&5
39132echo "${ECHO_T}$NM" >&6
39133else
39134 echo "$as_me:$LINENO: result: no" >&5
39135echo "${ECHO_T}no" >&6
39136fi
39137
39138fi
39139if test -z "$ac_cv_prog_NM"; then
39140 ac_ct_NM=$NM
39141 # Extract the first word of "nm", so it can be a program name with args.
39142set dummy nm; ac_word=$2
39143echo "$as_me:$LINENO: checking for $ac_word" >&5
39144echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39145if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
39146 echo $ECHO_N "(cached) $ECHO_C" >&6
39147else
39148 if test -n "$ac_ct_NM"; then
39149 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
39150else
39151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39152for as_dir in $PATH
39153do
39154 IFS=$as_save_IFS
39155 test -z "$as_dir" && as_dir=.
39156 for ac_exec_ext in '' $ac_executable_extensions; do
39157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39158 ac_cv_prog_ac_ct_NM="nm"
39159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39160 break 2
39161 fi
39162done
39163done
39164
39165 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
39166fi
39167fi
39168ac_ct_NM=$ac_cv_prog_ac_ct_NM
39169if test -n "$ac_ct_NM"; then
39170 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
39171echo "${ECHO_T}$ac_ct_NM" >&6
39172else
39173 echo "$as_me:$LINENO: result: no" >&5
39174echo "${ECHO_T}no" >&6
39175fi
39176
39177 NM=$ac_ct_NM
39178else
39179 NM="$ac_cv_prog_NM"
39180fi
39181
39182
39183 case ${BAKEFILE_HOST} in
39184 *-hp-hpux* )
1e9e8aba 39185 INSTALL_DIR="mkdir -p"
a848cd7e
SC
39186 ;;
39187 *) INSTALL_DIR="$INSTALL -d"
39188 ;;
39189 esac
39190
39191
39192 LDFLAGS_GUI=
39193 case ${BAKEFILE_HOST} in
39194 *-*-cygwin* | *-*-mingw32* )
39195 LDFLAGS_GUI="-mwindows"
39196 esac
39197
39198
39199 fi
39200
39201 echo "$as_me:$LINENO: checking if make is GNU make" >&5
39202echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
39203if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
39204 echo $ECHO_N "(cached) $ECHO_C" >&6
39205else
39206
39207 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
39208 egrep -s GNU > /dev/null); then
39209 bakefile_cv_prog_makeisgnu="yes"
39210 else
39211 bakefile_cv_prog_makeisgnu="no"
39212 fi
39213
39214fi
39215echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
39216echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
39217
39218 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
39219 IF_GNU_MAKE=""
39220 else
39221 IF_GNU_MAKE="#"
39222 fi
39223
39224
39225
39226 PLATFORM_UNIX=0
39227 PLATFORM_WIN32=0
39228 PLATFORM_MSDOS=0
39229 PLATFORM_MAC=0
1e9e8aba 39230 PLATFORM_MACOS=0
a848cd7e
SC
39231 PLATFORM_MACOSX=0
39232 PLATFORM_OS2=0
1e9e8aba 39233 PLATFORM_BEOS=0
a848cd7e
SC
39234
39235 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
39236 case "${BAKEFILE_HOST}" in
39237 *-*-cygwin* | *-*-mingw32* )
39238 PLATFORM_WIN32=1
39239 ;;
39240 *-pc-msdosdjgpp )
39241 PLATFORM_MSDOS=1
39242 ;;
39243 *-pc-os2_emx | *-pc-os2-emx )
39244 PLATFORM_OS2=1
39245 ;;
39246 powerpc-*-darwin* )
39247 PLATFORM_MAC=1
39248 PLATFORM_MACOSX=1
39249 ;;
1e9e8aba
DE
39250 *-*-beos* )
39251 PLATFORM_BEOS=1
39252 ;;
39253 powerpc-apple-macos* )
39254 PLATFORM_MAC=1
39255 PLATFORM_MACOS=1
39256 ;;
a848cd7e
SC
39257 * )
39258 PLATFORM_UNIX=1
39259 ;;
39260 esac
39261 else
39262 case "$BAKEFILE_FORCE_PLATFORM" in
39263 win32 )
39264 PLATFORM_WIN32=1
39265 ;;
39266 msdos )
39267 PLATFORM_MSDOS=1
39268 ;;
39269 os2 )
39270 PLATFORM_OS2=1
39271 ;;
39272 darwin )
39273 PLATFORM_MAC=1
39274 PLATFORM_MACOSX=1
39275 ;;
39276 unix )
39277 PLATFORM_UNIX=1
39278 ;;
1e9e8aba
DE
39279 beos )
39280 PLATFORM_BEOS=1
39281 ;;
a848cd7e
SC
39282 * )
39283 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
39284echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
39285 { (exit 1); exit 1; }; }
39286 ;;
39287 esac
39288 fi
39289
39290
39291
39292
39293
39294
39295
39296
39297
1e9e8aba
DE
39298
39299
a848cd7e
SC
39300 # Check whether --enable-omf or --disable-omf was given.
39301if test "${enable_omf+set}" = set; then
39302 enableval="$enable_omf"
39303 bk_os2_use_omf="$enableval"
39304fi;
39305
39306 case "${BAKEFILE_HOST}" in
39307 *-*-darwin* )
39308 CFLAGS="$CFLAGS -fno-common"
39309 CXXFLAGS="$CXXFLAGS -fno-common"
39310 ;;
39311
39312 *-pc-os2_emx | *-pc-os2-emx )
39313 if test "x$bk_os2_use_omf" = "xyes" ; then
39314 AR=emxomfar
39315 RANLIB=:
39316 LDFLAGS="-Zomf $LDFLAGS"
39317 CFLAGS="-Zomf $CFLAGS"
39318 CXXFLAGS="-Zomf $CXXFLAGS"
39319 OS2_LIBEXT="lib"
39320 else
39321 OS2_LIBEXT="a"
39322 fi
39323 ;;
1e9e8aba
DE
39324
39325 i*86-*-beos* )
39326 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
39327 ;;
a848cd7e
SC
39328 esac
39329
39330
39331 SO_SUFFIX="so"
39332 SO_SUFFIX_MODULE="so"
39333 EXEEXT=""
39334 LIBPREFIX="lib"
39335 LIBEXT=".a"
39336 DLLPREFIX="lib"
39337 DLLPREFIX_MODULE=""
39338 DLLIMP_SUFFIX=""
39339
39340 case "${BAKEFILE_HOST}" in
39341 *-hp-hpux* )
39342 SO_SUFFIX="sl"
39343 SO_SUFFIX_MODULE="sl"
39344 ;;
39345 *-*-aix* )
39346 SO_SUFFIX="a"
39347 SO_SUFFIX_MODULE="a"
39348 ;;
39349 *-*-cygwin* | *-*-mingw32* )
39350 SO_SUFFIX="dll"
39351 SO_SUFFIX_MODULE="dll"
39352 DLLIMP_SUFFIX="dll.a"
39353 EXEEXT=".exe"
39354 DLLPREFIX=""
39355 ;;
39356 *-pc-msdosdjgpp )
39357 EXEEXT=".exe"
39358 DLLPREFIX=""
39359 ;;
39360 *-pc-os2_emx | *-pc-os2-emx )
39361 SO_SUFFIX="dll"
39362 SO_SUFFIX_MODULE="dll"
39363 DLLIMP_SUFFIX=$OS2_LIBEXT
39364 EXEEXT=".exe"
39365 DLLPREFIX=""
39366 LIBPREFIX=""
39367 LIBEXT=".$OS2_LIBEXT"
39368 ;;
39369 powerpc-*-darwin* )
39370 SO_SUFFIX="dylib"
39371 SO_SUFFIX_MODULE="bundle"
39372 ;;
39373 esac
39374
39375 if test "x$DLLIMP_SUFFIX" = "x" ; then
39376 DLLIMP_SUFFIX="$SO_SUFFIX"
39377 fi
39378
39379
39380
39381
39382
39383
39384
39385
39386
39387
39388
1e9e8aba
DE
39389 PIC_FLAG=""
39390 if test "x$GCC" = "xyes"; then
a848cd7e
SC
39391 PIC_FLAG="-fPIC"
39392 fi
39393
1e9e8aba
DE
39394 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
39395 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
39396
a848cd7e
SC
39397 case "${BAKEFILE_HOST}" in
39398 *-hp-hpux* )
1e9e8aba 39399 if test "x$GCC" != "xyes"; then
a848cd7e
SC
39400 LDFLAGS="$LDFLAGS -L/usr/lib"
39401
39402 SHARED_LD_CC="${CC} -b -o"
39403 SHARED_LD_CXX="${CXX} -b -o"
39404 PIC_FLAG="+Z"
39405 fi
39406 ;;
39407
39408 *-*-linux* )
39409 if test "x$GCC" != "xyes"; then
39410 echo "$as_me:$LINENO: checking for Intel compiler" >&5
39411echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
39412if test "${bakefile_cv_prog_icc+set}" = set; then
39413 echo $ECHO_N "(cached) $ECHO_C" >&6
39414else
39415
39416 cat >conftest.$ac_ext <<_ACEOF
39417/* confdefs.h. */
39418_ACEOF
39419cat confdefs.h >>conftest.$ac_ext
39420cat >>conftest.$ac_ext <<_ACEOF
39421/* end confdefs.h. */
39422
39423int
39424main ()
39425{
39426
39427 #ifndef __INTEL_COMPILER
39428 #error Not icc
39429 #endif
39430
39431 ;
39432 return 0;
39433}
39434_ACEOF
39435rm -f conftest.$ac_objext
39436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39437 (eval $ac_compile) 2>conftest.er1
a848cd7e 39438 ac_status=$?
ac1cb8d3
VS
39439 grep -v '^ *+' conftest.er1 >conftest.err
39440 rm -f conftest.er1
39441 cat conftest.err >&5
a848cd7e
SC
39442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39443 (exit $ac_status); } &&
da4486fb 39444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39446 (eval $ac_try) 2>&5
39447 ac_status=$?
39448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39449 (exit $ac_status); }; } &&
39450 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39452 (eval $ac_try) 2>&5
39453 ac_status=$?
39454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39455 (exit $ac_status); }; }; then
39456 bakefile_cv_prog_icc=yes
39457else
39458 echo "$as_me: failed program was:" >&5
39459sed 's/^/| /' conftest.$ac_ext >&5
39460
39461bakefile_cv_prog_icc=no
39462
39463fi
ac1cb8d3 39464rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39465
39466fi
39467echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
39468echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
39469 if test "$bakefile_cv_prog_icc" = "yes"; then
39470 PIC_FLAG="-KPIC"
39471 fi
39472 fi
39473 ;;
39474
39475 *-*-solaris2* )
39476 if test "x$GCC" != xyes ; then
39477 SHARED_LD_CC="${CC} -G -o"
39478 SHARED_LD_CXX="${CXX} -G -o"
39479 PIC_FLAG="-KPIC"
39480 fi
39481 ;;
39482
39483 *-*-darwin* )
39484
39485 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
39486echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
39487if test "${wx_cv_gcc31+set}" = set; then
39488 echo $ECHO_N "(cached) $ECHO_C" >&6
39489else
39490
39491 cat >conftest.$ac_ext <<_ACEOF
39492/* confdefs.h. */
39493_ACEOF
39494cat confdefs.h >>conftest.$ac_ext
39495cat >>conftest.$ac_ext <<_ACEOF
39496/* end confdefs.h. */
39497
39498int
39499main ()
39500{
39501
39502 #if (__GNUC__ < 3) || \
39503 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
39504 #error old gcc
39505 #endif
39506
39507 ;
39508 return 0;
39509}
39510_ACEOF
39511rm -f conftest.$ac_objext
39512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39513 (eval $ac_compile) 2>conftest.er1
a848cd7e 39514 ac_status=$?
ac1cb8d3
VS
39515 grep -v '^ *+' conftest.er1 >conftest.err
39516 rm -f conftest.er1
39517 cat conftest.err >&5
a848cd7e
SC
39518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39519 (exit $ac_status); } &&
da4486fb 39520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39522 (eval $ac_try) 2>&5
39523 ac_status=$?
39524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39525 (exit $ac_status); }; } &&
39526 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39528 (eval $ac_try) 2>&5
39529 ac_status=$?
39530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39531 (exit $ac_status); }; }; then
39532
39533 wx_cv_gcc31=yes
39534
39535else
39536 echo "$as_me: failed program was:" >&5
39537sed 's/^/| /' conftest.$ac_ext >&5
39538
39539
39540 wx_cv_gcc31=no
39541
39542
39543fi
ac1cb8d3 39544rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39545
39546fi
39547echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
39548echo "${ECHO_T}$wx_cv_gcc31" >&6
39549 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
39550
39551D='$'
39552cat <<EOF >shared-ld-sh
a848cd7e
SC
39553#!/bin/sh
39554#-----------------------------------------------------------------------------
39555#-- Name: distrib/mac/shared-ld-sh
39556#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
39557#-- Author: Gilles Depeyrot
39558#-- Copyright: (c) 2002 Gilles Depeyrot
39559#-- Licence: any use permitted
39560#-----------------------------------------------------------------------------
39561
39562verbose=0
39563args=""
39564objects=""
39565linking_flag="-dynamiclib"
39566
473276a9
VS
39567while test ${D}# -gt 0; do
39568 case ${D}1 in
a848cd7e
SC
39569
39570 -v)
39571 verbose=1
39572 ;;
39573
39574 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
39575 # collect these options and values
473276a9 39576 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
39577 shift
39578 ;;
39579
39580 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
39581 # collect these options
473276a9 39582 args="${D}{args} ${D}1"
a848cd7e
SC
39583 ;;
39584
39585 -dynamiclib|-bundle)
473276a9 39586 linking_flag="${D}1"
a848cd7e
SC
39587 ;;
39588
39589 -*)
473276a9 39590 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
39591 exit 1
39592 ;;
39593
39594 *.o | *.a | *.dylib)
39595 # collect object files
473276a9 39596 objects="${D}{objects} ${D}1"
a848cd7e
SC
39597 ;;
39598
39599 *)
473276a9 39600 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
39601 exit 1
39602 ;;
39603
39604 esac
39605 shift
39606done
39607
39608#
39609# Link one module containing all the others
39610#
473276a9
VS
39611if test ${D}{verbose} = 1; then
39612 echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
a848cd7e 39613fi
473276a9
VS
39614c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
39615status=${D}?
39616if test ${D}{status} != 0; then
39617 exit ${D}{status}
a848cd7e
SC
39618fi
39619
39620#
39621# Link the shared library from the single module created
39622#
473276a9
VS
39623if test ${D}{verbose} = 1; then
39624 echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
a848cd7e 39625fi
473276a9
VS
39626c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
39627status=${D}?
39628if test ${D}{status} != 0; then
39629 exit ${D}{status}
a848cd7e
SC
39630fi
39631
39632#
39633# Remove intermediate module
39634#
473276a9 39635rm -f master.${D}${D}.o
a848cd7e
SC
39636
39637exit 0
39638EOF
473276a9 39639
a848cd7e
SC
39640 chmod +x shared-ld-sh
39641
39642 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
39643 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
39644 SHARED_LD_CXX="$SHARED_LD_CC"
39645 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
39646 else
39647 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
39648 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
39649 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
39650 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
39651 fi
39652
39653 PIC_FLAG="-dynamic -fPIC"
39654 ;;
39655
39656 *-*-aix* )
39657 if test "x$GCC" != "xyes"; then
39658 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
39659set dummy makeC++SharedLib; ac_word=$2
39660echo "$as_me:$LINENO: checking for $ac_word" >&5
39661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39662if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
39663 echo $ECHO_N "(cached) $ECHO_C" >&6
39664else
39665 if test -n "$AIX_CXX_LD"; then
39666 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
39667else
39668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39669for as_dir in $PATH
39670do
39671 IFS=$as_save_IFS
39672 test -z "$as_dir" && as_dir=.
39673 for ac_exec_ext in '' $ac_executable_extensions; do
39674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39675 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
39676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39677 break 2
39678 fi
39679done
39680done
39681
39682 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
39683fi
39684fi
39685AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
39686if test -n "$AIX_CXX_LD"; then
39687 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
39688echo "${ECHO_T}$AIX_CXX_LD" >&6
39689else
39690 echo "$as_me:$LINENO: result: no" >&5
39691echo "${ECHO_T}no" >&6
39692fi
39693
39694 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
39695 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
39696 fi
39697 ;;
39698
39699 *-*-beos* )
1e9e8aba
DE
39700 SHARED_LD_CC="${LD} -nostart -o"
39701 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
39702 ;;
39703
39704 *-*-irix* )
39705 if test "x$GCC" != "xyes"; then
39706 PIC_FLAG="-KPIC"
39707 fi
39708 ;;
39709
39710 *-*-cygwin* | *-*-mingw32* )
39711 PIC_FLAG=""
1e9e8aba
DE
39712 SHARED_LD_CC="\$(CC) -shared -o"
39713 SHARED_LD_CXX="\$(CXX) -shared -o"
a848cd7e
SC
39714 ;;
39715
39716 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
39717 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
39718 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 39719 PIC_FLAG=""
473276a9
VS
39720
39721D='$'
39722cat <<EOF >dllar.sh
39723#!/bin/sh
39724#
39725# dllar - a tool to build both a .dll and an .a file
39726# from a set of object (.o) files for EMX/OS2.
39727#
39728# Written by Andrew Zabolotny, bit@freya.etu.ru
39729# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
39730#
39731# This script will accept a set of files on the command line.
39732# All the public symbols from the .o files will be exported into
39733# a .DEF file, then linker will be run (through gcc) against them to
39734# build a shared library consisting of all given .o files. All libraries
39735# (.a) will be first decompressed into component .o files then act as
39736# described above. You can optionally give a description (-d "description")
39737# which will be put into .DLL. To see the list of accepted options (as well
39738# as command-line format) simply run this program without options. The .DLL
39739# is built to be imported by name (there is no guarantee that new versions
39740# of the library you build will have same ordinals for same symbols).
39741#
39742# dllar is free software; you can redistribute it and/or modify
39743# it under the terms of the GNU General Public License as published by
39744# the Free Software Foundation; either version 2, or (at your option)
39745# any later version.
39746#
39747# dllar is distributed in the hope that it will be useful,
39748# but WITHOUT ANY WARRANTY; without even the implied warranty of
39749# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
39750# GNU General Public License for more details.
39751#
39752# You should have received a copy of the GNU General Public License
39753# along with dllar; see the file COPYING. If not, write to the Free
39754# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
39755# 02111-1307, USA.
39756
39757# To successfuly run this program you will need:
39758# - Current drive should have LFN support (HPFS, ext2, network, etc)
39759# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
39760# - gcc
39761# (used to build the .dll)
39762# - emxexp
39763# (used to create .def file from .o files)
39764# - emximp
39765# (used to create .a file from .def file)
39766# - GNU text utilites (cat, sort, uniq)
39767# used to process emxexp output
39768# - GNU file utilities (mv, rm)
39769# - GNU sed
39770# - lxlite (optional, see flag below)
39771# (used for general .dll cleanup)
39772#
39773
39774flag_USE_LXLITE=1;
39775
39776#
39777# helper functions
39778# basnam, variant of basename, which does _not_ remove the path, _iff_
39779# second argument (suffix to remove) is given
39780basnam(){
39781 case ${D}# in
39782 1)
1e9e8aba 39783 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
39784 ;;
39785 2)
39786 echo ${D}1 | sed 's/'${D}2'${D}//'
39787 ;;
39788 *)
39789 echo "error in basnam ${D}*"
39790 exit 8
39791 ;;
39792 esac
39793}
39794
39795# Cleanup temporary files and output
39796CleanUp() {
39797 cd ${D}curDir
39798 for i in ${D}inputFiles ; do
39799 case ${D}i in
39800 *!)
39801 rm -rf \`basnam ${D}i !\`
39802 ;;
39803 *)
39804 ;;
39805 esac
39806 done
39807
39808 # Kill result in case of failure as there is just to many stupid make/nmake
39809 # things out there which doesn't do this.
1e9e8aba 39810 if [ ${D}# -eq 0 ]; then
473276a9
VS
39811 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
39812 fi
39813}
39814
39815# Print usage and exit script with rc=1.
39816PrintHelp() {
b1d22ded
DE
39817 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
39818 echo ' [-name-mangler-script script.sh]'
39819 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
39820 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
39821 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 39822 echo ' [*.o] [*.a]'
473276a9
VS
39823 echo '*> "output_file" should have no extension.'
39824 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
39825 echo ' The import library name is derived from this and is set to "name".a,'
39826 echo ' unless overridden by -import'
39827 echo '*> "importlib_name" should have no extension.'
39828 echo ' If it has the .o, or .a extension, it is automatically removed.'
39829 echo ' This name is used as the import library name and may be longer and'
39830 echo ' more descriptive than the DLL name which has to follow the old '
39831 echo ' 8.3 convention of FAT.'
b1d22ded
DE
39832 echo '*> "script.sh may be given to override the output_file name by a'
39833 echo ' different name. It is mainly useful if the regular make process'
39834 echo ' of some package does not take into account OS/2 restriction of'
39835 echo ' DLL name lengths. It takes the importlib name as input and is'
39836 echo ' supposed to procude a shorter name as output. The script should'
39837 echo ' expect to get importlib_name without extension and should produce'
39838 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
39839 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
39840 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
39841 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
39842 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
39843 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
39844 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
39845 echo ' If the last character of a symbol is "*", all symbols beginning'
39846 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 39847 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 39848 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 39849 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 39850 echo ' C runtime DLLs.'
b1d22ded 39851 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
39852 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
39853 echo ' unchanged to GCC at the end of command line.'
39854 echo '*> If you create a DLL from a library and you do not specify -o,'
39855 echo ' the basename for DLL and import library will be set to library name,'
39856 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
39857 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
39858 echo ' library will be renamed into gcc_s.a.'
39859 echo '--------'
39860 echo 'Example:'
39861 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
39862 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
39863 CleanUp
39864 exit 1
39865}
39866
39867# Execute a command.
39868# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
39869# @Uses Whatever CleanUp() uses.
39870doCommand() {
39871 echo "${D}*"
39872 eval ${D}*
39873 rcCmd=${D}?
39874
1e9e8aba 39875 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
39876 echo "command failed, exit code="${D}rcCmd
39877 CleanUp
39878 exit ${D}rcCmd
39879 fi
39880}
39881
39882# main routine
39883# setup globals
39884cmdLine=${D}*
39885outFile=""
39886outimpFile=""
39887inputFiles=""
b1d22ded 39888renameScript=""
473276a9
VS
39889description=""
39890CC=gcc.exe
39891CFLAGS="-s -Zcrtdll"
39892EXTRA_CFLAGS=""
39893EXPORT_BY_ORDINALS=0
39894exclude_symbols=""
39895library_flags=""
39896curDir=\`pwd\`
39897curDirS=curDir
39898case ${D}curDirS in
39899*/)
39900 ;;
39901*)
39902 curDirS=${D}{curDirS}"/"
39903 ;;
39904esac
39905# Parse commandline
39906libsToLink=0
b1d22ded 39907omfLinking=0
1e9e8aba 39908while [ ${D}1 ]; do
473276a9
VS
39909 case ${D}1 in
39910 -ord*)
39911 EXPORT_BY_ORDINALS=1;
39912 ;;
39913 -o*)
39914 shift
39915 outFile=${D}1
39916 ;;
39917 -i*)
39918 shift
39919 outimpFile=${D}1
39920 ;;
b1d22ded
DE
39921 -name-mangler-script)
39922 shift
39923 renameScript=${D}1
39924 ;;
473276a9
VS
39925 -d*)
39926 shift
39927 description=${D}1
39928 ;;
39929 -f*)
39930 shift
39931 CFLAGS=${D}1
39932 ;;
39933 -c*)
39934 shift
39935 CC=${D}1
39936 ;;
39937 -h*)
39938 PrintHelp
39939 ;;
39940 -ex*)
39941 shift
39942 exclude_symbols=${D}{exclude_symbols}${D}1" "
39943 ;;
39944 -libf*)
39945 shift
39946 library_flags=${D}{library_flags}${D}1" "
39947 ;;
39948 -nocrt*)
39949 CFLAGS="-s"
39950 ;;
39951 -nolxl*)
39952 flag_USE_LXLITE=0
39953 ;;
39954 -* | /*)
39955 case ${D}1 in
39956 -L* | -l*)
39957 libsToLink=1
39958 ;;
b1d22ded
DE
39959 -Zomf)
39960 omfLinking=1
39961 ;;
473276a9
VS
39962 *)
39963 ;;
39964 esac
39965 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
39966 ;;
b1d22ded
DE
39967 *.dll)
39968 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
39969 if [ ${D}omfLinking -eq 1 ]; then
39970 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
39971 else
39972 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
39973 fi
39974 ;;
473276a9
VS
39975 *)
39976 found=0;
1e9e8aba 39977 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
39978 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
39979 else
39980 for file in ${D}1 ; do
1e9e8aba 39981 if [ -f ${D}file ]; then
473276a9
VS
39982 inputFiles="${D}{inputFiles} ${D}file"
39983 found=1
39984 fi
39985 done
1e9e8aba 39986 if [ ${D}found -eq 0 ]; then
473276a9
VS
39987 echo "ERROR: No file(s) found: "${D}1
39988 exit 8
39989 fi
39990 fi
39991 ;;
39992 esac
39993 shift
39994done # iterate cmdline words
39995
39996#
1e9e8aba 39997if [ -z "${D}inputFiles" ]; then
473276a9
VS
39998 echo "dllar: no input files"
39999 PrintHelp
40000fi
40001
40002# Now extract all .o files from .a files
40003newInputFiles=""
40004for file in ${D}inputFiles ; do
40005 case ${D}file in
40006 *.a | *.lib)
40007 case ${D}file in
40008 *.a)
40009 suffix=".a"
40010 AR="ar"
40011 ;;
40012 *.lib)
40013 suffix=".lib"
40014 AR="emxomfar"
40015 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
40016 ;;
40017 *)
40018 ;;
40019 esac
40020 dirname=\`basnam ${D}file ${D}suffix\`"_%"
40021 mkdir ${D}dirname
1e9e8aba 40022 if [ ${D}? -ne 0 ]; then
473276a9
VS
40023 echo "Failed to create subdirectory ./${D}dirname"
40024 CleanUp
40025 exit 8;
40026 fi
40027 # Append '!' to indicate archive
40028 newInputFiles="${D}newInputFiles ${D}{dirname}!"
40029 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
40030 cd ${D}curDir
40031 found=0;
40032 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 40033 if [ -f ${D}subfile ]; then
473276a9 40034 found=1
1e9e8aba 40035 if [ -s ${D}subfile ]; then
473276a9
VS
40036 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
40037 newInputFiles="${D}newInputFiles ${D}subfile"
40038 fi
40039 fi
40040 done
1e9e8aba
DE
40041 if [ ${D}found -eq 0 ]; then
40042 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
40043 fi
40044 ;;
40045 *)
40046 newInputFiles="${D}{newInputFiles} ${D}file"
40047 ;;
40048 esac
40049done
40050inputFiles="${D}newInputFiles"
40051
40052# Output filename(s).
40053do_backup=0;
1e9e8aba 40054if [ -z ${D}outFile ]; then
473276a9
VS
40055 do_backup=1;
40056 set outFile ${D}inputFiles; outFile=${D}2
40057fi
40058
40059# If it is an archive, remove the '!' and the '_%' suffixes
40060case ${D}outFile in
40061*_%!)
40062 outFile=\`basnam ${D}outFile _%!\`
40063 ;;
40064*)
40065 ;;
40066esac
40067case ${D}outFile in
40068*.dll)
40069 outFile=\`basnam ${D}outFile .dll\`
40070 ;;
40071*.DLL)
40072 outFile=\`basnam ${D}outFile .DLL\`
40073 ;;
40074*.o)
40075 outFile=\`basnam ${D}outFile .o\`
40076 ;;
40077*.obj)
40078 outFile=\`basnam ${D}outFile .obj\`
40079 ;;
40080*.a)
40081 outFile=\`basnam ${D}outFile .a\`
40082 ;;
40083*.lib)
40084 outFile=\`basnam ${D}outFile .lib\`
40085 ;;
40086*)
40087 ;;
40088esac
40089case ${D}outimpFile in
40090*.a)
40091 outimpFile=\`basnam ${D}outimpFile .a\`
40092 ;;
40093*.lib)
40094 outimpFile=\`basnam ${D}outimpFile .lib\`
40095 ;;
40096*)
40097 ;;
40098esac
1e9e8aba 40099if [ -z ${D}outimpFile ]; then
473276a9
VS
40100 outimpFile=${D}outFile
40101fi
40102defFile="${D}{outFile}.def"
40103arcFile="${D}{outimpFile}.a"
40104arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
40105
40106#create ${D}dllFile as something matching 8.3 restrictions,
40107if [ -z ${D}renameScript ] ; then
40108 dllFile="${D}outFile"
40109else
40110 dllFile=\`${D}renameScript ${D}outimpFile\`
40111fi
473276a9 40112
1e9e8aba
DE
40113if [ ${D}do_backup -ne 0 ] ; then
40114 if [ -f ${D}arcFile ] ; then
473276a9
VS
40115 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
40116 fi
1e9e8aba 40117 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
40118 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
40119 fi
40120fi
40121
40122# Extract public symbols from all the object files.
40123tmpdefFile=${D}{defFile}_%
40124rm -f ${D}tmpdefFile
40125for file in ${D}inputFiles ; do
40126 case ${D}file in
40127 *!)
40128 ;;
40129 *)
40130 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
40131 ;;
40132 esac
40133done
40134
40135# Create the def file.
40136rm -f ${D}defFile
40137echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
40138dllFile="${D}{dllFile}.dll"
40139if [ ! -z ${D}description ]; then
1e9e8aba 40140 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
40141fi
40142echo "EXPORTS" >> ${D}defFile
40143
40144doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
40145grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
40146
40147# Checks if the export is ok or not.
40148for word in ${D}exclude_symbols; do
40149 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
40150 mv ${D}{tmpdefFile}% ${D}tmpdefFile
40151done
40152
40153
1e9e8aba
DE
40154if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
40155 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
40156 sed '
40157 N
40158 : loop
1e9e8aba 40159 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
40160 t loop
40161 ' > ${D}{tmpdefFile}%
40162 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
40163else
40164 rm -f ${D}{tmpdefFile}%
40165fi
40166cat ${D}tmpdefFile >> ${D}defFile
40167rm -f ${D}tmpdefFile
40168
40169# Do linking, create implib, and apply lxlite.
40170gccCmdl="";
40171for file in ${D}inputFiles ; do
40172 case ${D}file in
40173 *!)
40174 ;;
40175 *)
40176 gccCmdl="${D}gccCmdl ${D}file"
40177 ;;
40178 esac
40179done
40180doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
40181touch "${D}{outFile}.dll"
40182
40183doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 40184if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 40185 add_flags="";
1e9e8aba 40186 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
40187 add_flags="-ynd"
40188 fi
40189 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
40190fi
40191doCommand "emxomf -s -l ${D}arcFile"
40192
40193# Successful exit.
40194CleanUp 1
40195exit 0
40196EOF
40197
40198 chmod +x dllar.sh
a848cd7e
SC
40199 ;;
40200
1e9e8aba 40201 powerpc-apple-macos* | \
a848cd7e
SC
40202 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
40203 *-*-sunos4* | \
40204 *-*-osf* | \
40205 *-*-dgux5* | \
40206 *-*-sysv5* )
40207 ;;
40208
40209 *)
40210 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
40211echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
40212 { (exit 1); exit 1; }; }
40213 esac
40214
2057db16
VS
40215 if test "x$PIC_FLAG" != "x" ; then
40216 PIC_FLAG="$PIC_FLAG -DPIC"
40217 fi
40218
a848cd7e
SC
40219 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
40220 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
40221 fi
40222 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
40223 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
40224 fi
40225
40226
40227
40228
40229
40230
40231
40232
40233 USE_SOVERSION=0
40234 USE_SOVERLINUX=0
40235 USE_SOVERSOLARIS=0
40236 USE_SOSYMLINKS=0
40237 USE_MACVERSION=0
40238 SONAME_FLAG=
40239
40240 case "${BAKEFILE_HOST}" in
b1d22ded 40241 *-*-linux* | *-*-freebsd* )
5f652d0d
VS
40242 SONAME_FLAG="-Wl,-soname,"
40243 USE_SOVERSION=1
40244 USE_SOVERLINUX=1
40245 USE_SOSYMLINKS=1
40246 ;;
40247
a848cd7e
SC
40248 *-*-solaris2* )
40249 SONAME_FLAG="-h "
40250 USE_SOVERSION=1
40251 USE_SOVERSOLARIS=1
40252 USE_SOSYMLINKS=1
40253 ;;
40254
40255 *-*-darwin* )
40256 USE_MACVERSION=1
40257 USE_SOVERSION=1
40258 USE_SOSYMLINKS=1
40259 ;;
40260 esac
40261
40262
40263
40264
40265
40266
40267
40268
40269
40270 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
40271echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
40272 DEPS_TRACKING=0
40273
40274 if test "x$GCC" = "xyes"; then
40275 DEPSMODE=gcc
40276 DEPS_TRACKING=1
40277 case "${BAKEFILE_HOST}" in
40278 powerpc-*-darwin* )
40279 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
40280 ;;
40281 * )
40282 DEPSFLAG_GCC="-MMD"
40283 ;;
40284 esac
40285 echo "$as_me:$LINENO: result: gcc" >&5
40286echo "${ECHO_T}gcc" >&6
b1d22ded 40287 elif test "x$MWCC" = "xyes"; then
04840eaa 40288 DEPSMODE=gcc
b1d22ded 40289 DEPS_TRACKING=1
04840eaa 40290 DEPSFLAG_GCC="-MMD"
b1d22ded
DE
40291 echo "$as_me:$LINENO: result: mwcc" >&5
40292echo "${ECHO_T}mwcc" >&6
a848cd7e
SC
40293 else
40294 echo "$as_me:$LINENO: result: none" >&5
40295echo "${ECHO_T}none" >&6
40296 fi
40297
40298 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
40299
40300D='$'
40301cat <<EOF >bk-deps
a848cd7e
SC
40302#!/bin/sh
40303
40304# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
40305# script. It is used to track C/C++ files dependencies in portable way.
40306#
40307# Permission is given to use this file in any way.
40308
473276a9 40309DEPSMODE=${DEPSMODE}
a848cd7e 40310DEPSDIR=.deps
473276a9 40311DEPSFLAG_GCC="${DEPSFLAG_GCC}"
a848cd7e 40312
473276a9 40313mkdir -p ${D}DEPSDIR
a848cd7e 40314
473276a9
VS
40315if test ${D}DEPSMODE = gcc ; then
40316 ${D}* ${D}{DEPSFLAG_GCC}
40317 status=${D}?
40318 if test ${D}{status} != 0 ; then
40319 exit ${D}{status}
a848cd7e
SC
40320 fi
40321 # move created file to the location we want it in:
473276a9
VS
40322 while test ${D}# -gt 0; do
40323 case "${D}1" in
a848cd7e
SC
40324 -o )
40325 shift
473276a9 40326 objfile=${D}1
a848cd7e
SC
40327 ;;
40328 -* )
40329 ;;
40330 * )
473276a9 40331 srcfile=${D}1
a848cd7e
SC
40332 ;;
40333 esac
40334 shift
40335 done
1e9e8aba
DE
40336 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
40337 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
40338 if test -f ${D}depfile ; then
40339 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
40340 rm -f ${D}depfile
a848cd7e 40341 else
1e9e8aba 40342 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
473276a9
VS
40343 if test -f ${D}depfile ; then
40344 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
40345 rm -f ${D}depfile
a848cd7e
SC
40346 fi
40347 fi
40348 exit 0
40349else
473276a9
VS
40350 ${D}*
40351 exit ${D}?
a848cd7e
SC
40352fi
40353EOF
473276a9 40354
a848cd7e
SC
40355 chmod +x bk-deps
40356 fi
40357
40358
40359
40360
40361 RESCOMP=
40362 SETFILE=
40363
40364 case ${BAKEFILE_HOST} in
40365 *-*-cygwin* | *-*-mingw32* )
40366 if test "$build" != "$host" ; then
40367 RESCOMP=$host_alias-windres
40368 else
40369 # Extract the first word of "windres", so it can be a program name with args.
40370set dummy windres; ac_word=$2
40371echo "$as_me:$LINENO: checking for $ac_word" >&5
40372echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40373if test "${ac_cv_prog_RESCOMP+set}" = set; then
40374 echo $ECHO_N "(cached) $ECHO_C" >&6
40375else
40376 if test -n "$RESCOMP"; then
40377 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
40378else
40379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40380for as_dir in $PATH
40381do
40382 IFS=$as_save_IFS
40383 test -z "$as_dir" && as_dir=.
40384 for ac_exec_ext in '' $ac_executable_extensions; do
40385 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40386 ac_cv_prog_RESCOMP="windres"
40387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40388 break 2
40389 fi
40390done
40391done
40392
40393 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
40394fi
40395fi
40396RESCOMP=$ac_cv_prog_RESCOMP
40397if test -n "$RESCOMP"; then
40398 echo "$as_me:$LINENO: result: $RESCOMP" >&5
40399echo "${ECHO_T}$RESCOMP" >&6
40400else
40401 echo "$as_me:$LINENO: result: no" >&5
40402echo "${ECHO_T}no" >&6
40403fi
40404
40405 fi
40406 ;;
40407
1e9e8aba 40408 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
40409 # Extract the first word of "Rez", so it can be a program name with args.
40410set dummy Rez; ac_word=$2
40411echo "$as_me:$LINENO: checking for $ac_word" >&5
40412echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40413if test "${ac_cv_prog_RESCOMP+set}" = set; then
40414 echo $ECHO_N "(cached) $ECHO_C" >&6
40415else
40416 if test -n "$RESCOMP"; then
40417 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
40418else
40419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40420for as_dir in $PATH
40421do
40422 IFS=$as_save_IFS
40423 test -z "$as_dir" && as_dir=.
40424 for ac_exec_ext in '' $ac_executable_extensions; do
40425 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40426 ac_cv_prog_RESCOMP="Rez"
40427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40428 break 2
40429 fi
40430done
40431done
40432
40433 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
40434fi
40435fi
40436RESCOMP=$ac_cv_prog_RESCOMP
40437if test -n "$RESCOMP"; then
40438 echo "$as_me:$LINENO: result: $RESCOMP" >&5
40439echo "${ECHO_T}$RESCOMP" >&6
40440else
40441 echo "$as_me:$LINENO: result: no" >&5
40442echo "${ECHO_T}no" >&6
40443fi
40444
40445 # Extract the first word of "SetFile", so it can be a program name with args.
40446set dummy SetFile; ac_word=$2
40447echo "$as_me:$LINENO: checking for $ac_word" >&5
40448echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40449if test "${ac_cv_prog_SETFILE+set}" = set; then
40450 echo $ECHO_N "(cached) $ECHO_C" >&6
40451else
40452 if test -n "$SETFILE"; then
40453 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
40454else
40455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40456for as_dir in $PATH
40457do
40458 IFS=$as_save_IFS
40459 test -z "$as_dir" && as_dir=.
40460 for ac_exec_ext in '' $ac_executable_extensions; do
40461 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40462 ac_cv_prog_SETFILE="SetFile"
40463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40464 break 2
40465 fi
40466done
40467done
40468
40469 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
40470fi
40471fi
40472SETFILE=$ac_cv_prog_SETFILE
40473if test -n "$SETFILE"; then
40474 echo "$as_me:$LINENO: result: $SETFILE" >&5
40475echo "${ECHO_T}$SETFILE" >&6
40476else
40477 echo "$as_me:$LINENO: result: no" >&5
40478echo "${ECHO_T}no" >&6
40479fi
40480
40481 ;;
40482 esac
40483
40484
40485
40486
40487
04840eaa 40488 BAKEFILE_BAKEFILE_M4_VERSION="0.1.5"
a848cd7e 40489
dcc1b6ad 40490
04840eaa 40491BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.5"
a848cd7e 40492
646b6ec1 40493
74b84332 40494
a848cd7e
SC
40495 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
40496if test "${enable_precomp_headers+set}" = set; then
40497 enableval="$enable_precomp_headers"
40498 bk_use_pch="$enableval"
40499fi;
40500
40501 GCC_PCH=0
40502
40503 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
40504 if test "x$GCC" = "xyes"; then
40505 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
40506echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
40507 cat >conftest.$ac_ext <<_ACEOF
40508/* confdefs.h. */
40509_ACEOF
40510cat confdefs.h >>conftest.$ac_ext
40511cat >>conftest.$ac_ext <<_ACEOF
40512/* end confdefs.h. */
40513
40514int
40515main ()
40516{
40517
40518 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
40519 #error "no pch support"
40520 #endif
40521 #if (__GNUC__ < 3)
40522 #error "no pch support"
40523 #endif
40524 #if (__GNUC__ == 3) && \
40525 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
40526 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
40527 #error "no pch support"
40528 #endif
40529
40530 ;
40531 return 0;
40532}
40533_ACEOF
40534rm -f conftest.$ac_objext
40535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40536 (eval $ac_compile) 2>conftest.er1
a848cd7e 40537 ac_status=$?
ac1cb8d3
VS
40538 grep -v '^ *+' conftest.er1 >conftest.err
40539 rm -f conftest.er1
40540 cat conftest.err >&5
a848cd7e
SC
40541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40542 (exit $ac_status); } &&
da4486fb 40543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40545 (eval $ac_try) 2>&5
40546 ac_status=$?
40547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40548 (exit $ac_status); }; } &&
40549 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40551 (eval $ac_try) 2>&5
40552 ac_status=$?
40553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40554 (exit $ac_status); }; }; then
40555
40556 echo "$as_me:$LINENO: result: yes" >&5
40557echo "${ECHO_T}yes" >&6
a848cd7e
SC
40558 GCC_PCH=1
40559
40560else
40561 echo "$as_me: failed program was:" >&5
40562sed 's/^/| /' conftest.$ac_ext >&5
40563
40564
40565 echo "$as_me:$LINENO: result: no" >&5
40566echo "${ECHO_T}no" >&6
40567
40568fi
ac1cb8d3 40569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 40570 if test $GCC_PCH = 1 ; then
1e9e8aba
DE
40571
40572D='$'
40573cat <<EOF >bk-make-pch
a848cd7e
SC
40574#!/bin/sh
40575
40576# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
40577# script. It is used to generated precompiled headers.
40578#
40579# Permission is given to use this file in any way.
40580
1e9e8aba
DE
40581outfile="${D}{1}"
40582header="${D}{2}"
a848cd7e
SC
40583shift
40584shift
40585
40586compiler=
40587headerfile=
1e9e8aba
DE
40588while test ${D}{#} -gt 0; do
40589 case "${D}{1}" in
a848cd7e 40590 -I* )
1e9e8aba
DE
40591 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
40592 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
40593 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
40594 fi
40595 ;;
40596 esac
1e9e8aba 40597 compiler="${D}{compiler} ${D}{1}"
a848cd7e
SC
40598 shift
40599done
40600
1e9e8aba
DE
40601if test "x${D}{headerfile}" = "x" ; then
40602 echo "error: can't find header ${D}{header} in include paths" >2
a848cd7e 40603else
1e9e8aba
DE
40604 if test -f ${D}{outfile} ; then
40605 rm -f ${D}{outfile}
a848cd7e 40606 else
1e9e8aba 40607 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 40608 fi
1e9e8aba 40609 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e
SC
40610 mkdir -p .deps
40611 # can do this because gcc is >= 3.4:
1e9e8aba
DE
40612 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
40613 exit ${D}{?}
a848cd7e
SC
40614fi
40615EOF
1e9e8aba 40616
a848cd7e
SC
40617 chmod +x bk-make-pch
40618 fi
40619 fi
40620 fi
40621
40622
40623
a848cd7e
SC
40624 COND_BUILD_DEBUG="#"
40625 if test "x$BUILD" = "xdebug" ; then
40626 COND_BUILD_DEBUG=""
40627 fi
40628
40629 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
40630 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
40631 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
40632 fi
40633
40634 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
40635 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
40636 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
40637 fi
40638
40639 COND_BUILD_DEBUG_UNICODE_0="#"
40640 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
40641 COND_BUILD_DEBUG_UNICODE_0=""
40642 fi
40643
40644 COND_BUILD_DEBUG_UNICODE_1="#"
40645 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
40646 COND_BUILD_DEBUG_UNICODE_1=""
40647 fi
40648
40649 COND_BUILD_RELEASE="#"
40650 if test "x$BUILD" = "xrelease" ; then
40651 COND_BUILD_RELEASE=""
40652 fi
40653
40654 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
40655 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
40656 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
40657 fi
40658
40659 COND_BUILD_RELEASE_UNICODE_0="#"
40660 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
40661 COND_BUILD_RELEASE_UNICODE_0=""
40662 fi
40663
40664 COND_BUILD_RELEASE_UNICODE_1="#"
40665 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
40666 COND_BUILD_RELEASE_UNICODE_1=""
40667 fi
40668
40669 COND_DEBUG_FLAG_1="#"
40670 if test "x$DEBUG_FLAG" = "x1" ; then
40671 COND_DEBUG_FLAG_1=""
40672 fi
40673
40674 COND_DEBUG_INFO_0="#"
40675 if test "x$DEBUG_INFO" = "x0" ; then
40676 COND_DEBUG_INFO_0=""
40677 fi
40678
40679 COND_DEBUG_INFO_1="#"
40680 if test "x$DEBUG_INFO" = "x1" ; then
40681 COND_DEBUG_INFO_1=""
40682 fi
40683
40684 COND_DEPS_TRACKING_0="#"
40685 if test "x$DEPS_TRACKING" = "x0" ; then
40686 COND_DEPS_TRACKING_0=""
40687 fi
40688
40689 COND_DEPS_TRACKING_1="#"
40690 if test "x$DEPS_TRACKING" = "x1" ; then
40691 COND_DEPS_TRACKING_1=""
40692 fi
40693
40694 COND_GCC_PCH_1="#"
40695 if test "x$GCC_PCH" = "x1" ; then
40696 COND_GCC_PCH_1=""
40697 fi
40698
40699 COND_MONOLITHIC_0="#"
40700 if test "x$MONOLITHIC" = "x0" ; then
40701 COND_MONOLITHIC_0=""
40702 fi
40703
40704 COND_MONOLITHIC_0_SHARED_0="#"
40705 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
40706 COND_MONOLITHIC_0_SHARED_0=""
40707 fi
40708
40709 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
40710 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
40711 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
40712 fi
40713
90970d69
DE
40714 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
40715 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
40716 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
40717 fi
40718
a848cd7e
SC
40719 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
40720 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40721 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
40722 fi
40723
a848cd7e
SC
40724 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
40725 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
40726 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
40727 fi
40728
ceec2216
RL
40729 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
40730 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
40731 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
40732 fi
40733
a848cd7e
SC
40734 COND_MONOLITHIC_0_SHARED_1="#"
40735 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
40736 COND_MONOLITHIC_0_SHARED_1=""
40737 fi
40738
40739 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
40740 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
40741 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
40742 fi
40743
90970d69
DE
40744 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
40745 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
40746 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
40747 fi
40748
a848cd7e
SC
40749 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
40750 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40751 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
40752 fi
40753
a848cd7e
SC
40754 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
40755 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
40756 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
40757 fi
40758
ceec2216
RL
40759 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
40760 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
40761 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
40762 fi
40763
a848cd7e
SC
40764 COND_MONOLITHIC_0_USE_ODBC_1="#"
40765 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
40766 COND_MONOLITHIC_0_USE_ODBC_1=""
40767 fi
40768
40769 COND_MONOLITHIC_1="#"
40770 if test "x$MONOLITHIC" = "x1" ; then
40771 COND_MONOLITHIC_1=""
40772 fi
40773
40774 COND_MONOLITHIC_1_SHARED_0="#"
40775 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
40776 COND_MONOLITHIC_1_SHARED_0=""
40777 fi
40778
40779 COND_MONOLITHIC_1_SHARED_1="#"
40780 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
40781 COND_MONOLITHIC_1_SHARED_1=""
40782 fi
40783
40784 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
40785 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
40786 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
40787 fi
40788
40789 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
40790 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
40791 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
40792 fi
40793
40794 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
40795 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
40796 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
40797 fi
40798
40799 COND_PLATFORM_MACOSX_1="#"
40800 if test "x$PLATFORM_MACOSX" = "x1" ; then
40801 COND_PLATFORM_MACOSX_1=""
40802 fi
40803
a30f955f
VS
40804 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
40805 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
40806 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
40807 fi
40808
a848cd7e
SC
40809 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
40810 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
40811 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
40812 fi
40813
40814 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
40815 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
40816 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
40817 fi
40818
40819 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
40820 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
40821 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
40822 fi
40823
fc480dc1
DE
40824 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
40825 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
40826 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
40827 fi
40828
1e9e8aba
DE
40829 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
40830 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40831 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
40832 fi
40833
ebee3cd0
VS
40834 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
40835 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
40836 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
40837 fi
40838
40839 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
40840 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
40841 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
40842 fi
40843
a848cd7e
SC
40844 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
40845 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
40846 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
40847 fi
40848
40849 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
40850 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
40851 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
40852 fi
40853
b48a2016
DE
40854 COND_PLATFORM_MACOS_1="#"
40855 if test "x$PLATFORM_MACOS" = "x1" ; then
40856 COND_PLATFORM_MACOS_1=""
40857 fi
40858
a848cd7e
SC
40859 COND_PLATFORM_MAC_1="#"
40860 if test "x$PLATFORM_MAC" = "x1" ; then
40861 COND_PLATFORM_MAC_1=""
40862 fi
40863
40864 COND_PLATFORM_OS2_1="#"
40865 if test "x$PLATFORM_OS2" = "x1" ; then
40866 COND_PLATFORM_OS2_1=""
40867 fi
40868
40869 COND_PLATFORM_UNIX_0="#"
40870 if test "x$PLATFORM_UNIX" = "x0" ; then
40871 COND_PLATFORM_UNIX_0=""
40872 fi
40873
40874 COND_PLATFORM_UNIX_1="#"
40875 if test "x$PLATFORM_UNIX" = "x1" ; then
40876 COND_PLATFORM_UNIX_1=""
40877 fi
40878
40879 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
40880 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
40881 COND_PLATFORM_UNIX_1_USE_GUI_1=""
40882 fi
40883
40884 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
40885 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
40886 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
40887 fi
40888
40889 COND_PLATFORM_WIN32_0="#"
40890 if test "x$PLATFORM_WIN32" = "x0" ; then
40891 COND_PLATFORM_WIN32_0=""
40892 fi
40893
40894 COND_PLATFORM_WIN32_1="#"
40895 if test "x$PLATFORM_WIN32" = "x1" ; then
40896 COND_PLATFORM_WIN32_1=""
40897 fi
40898
40899 COND_SHARED_0="#"
40900 if test "x$SHARED" = "x0" ; then
40901 COND_SHARED_0=""
40902 fi
40903
ceec2216
RL
40904 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
40905 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
40906 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
40907 fi
40908
40909 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
40910 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
40911 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
40912 fi
40913
40914 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
40915 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
40916 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
40917 fi
40918
a848cd7e
SC
40919 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
40920 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40921 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
40922 fi
40923
40924 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40925 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40926 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40927 fi
40928
40929 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40930 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40931 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40932 fi
40933
40934 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40935 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40936 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40937 fi
40938
40939 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
40940 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
40941 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
40942 fi
40943
40944 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
40945 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
40946 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
40947 fi
40948
40949 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
40950 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
40951 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
40952 fi
40953
40954 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
40955 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
40956 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
40957 fi
40958
40959 COND_SHARED_1="#"
40960 if test "x$SHARED" = "x1" ; then
40961 COND_SHARED_1=""
40962 fi
40963
40964 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
40965 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40966 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
40967 fi
40968
a30f955f
VS
40969 COND_TOOLKIT_="#"
40970 if test "x$TOOLKIT" = "x" ; then
40971 COND_TOOLKIT_=""
40972 fi
40973
a848cd7e
SC
40974 COND_TOOLKIT_COCOA="#"
40975 if test "x$TOOLKIT" = "xCOCOA" ; then
40976 COND_TOOLKIT_COCOA=""
40977 fi
40978
a49baeab
DE
40979 COND_TOOLKIT_COCOA_USE_GUI_1="#"
40980 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
40981 COND_TOOLKIT_COCOA_USE_GUI_1=""
40982 fi
40983
a848cd7e
SC
40984 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
40985 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40986 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
40987 fi
40988
40989 COND_TOOLKIT_GTK="#"
40990 if test "x$TOOLKIT" = "xGTK" ; then
40991 COND_TOOLKIT_GTK=""
40992 fi
40993
40994 COND_TOOLKIT_GTK_USE_GUI_1="#"
40995 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
40996 COND_TOOLKIT_GTK_USE_GUI_1=""
40997 fi
40998
40999 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
41000 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41001 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
41002 fi
41003
41004 COND_TOOLKIT_MAC="#"
41005 if test "x$TOOLKIT" = "xMAC" ; then
41006 COND_TOOLKIT_MAC=""
41007 fi
41008
41009 COND_TOOLKIT_MAC_USE_GUI_1="#"
41010 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
41011 COND_TOOLKIT_MAC_USE_GUI_1=""
41012 fi
41013
41014 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
41015 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41016 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
41017 fi
41018
41019 COND_TOOLKIT_MGL="#"
41020 if test "x$TOOLKIT" = "xMGL" ; then
41021 COND_TOOLKIT_MGL=""
41022 fi
41023
41024 COND_TOOLKIT_MGL_USE_GUI_1="#"
41025 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
41026 COND_TOOLKIT_MGL_USE_GUI_1=""
41027 fi
41028
41029 COND_TOOLKIT_MOTIF="#"
41030 if test "x$TOOLKIT" = "xMOTIF" ; then
41031 COND_TOOLKIT_MOTIF=""
41032 fi
41033
41034 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
41035 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
41036 COND_TOOLKIT_MOTIF_USE_GUI_1=""
41037 fi
41038
41039 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
41040 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41041 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
41042 fi
41043
41044 COND_TOOLKIT_MSW="#"
41045 if test "x$TOOLKIT" = "xMSW" ; then
41046 COND_TOOLKIT_MSW=""
41047 fi
41048
41049 COND_TOOLKIT_MSW_USE_GUI_1="#"
41050 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
41051 COND_TOOLKIT_MSW_USE_GUI_1=""
41052 fi
41053
41054 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
41055 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41056 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
41057 fi
41058
41059 COND_TOOLKIT_PM="#"
41060 if test "x$TOOLKIT" = "xPM" ; then
41061 COND_TOOLKIT_PM=""
41062 fi
41063
41064 COND_TOOLKIT_PM_USE_GUI_1="#"
41065 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
41066 COND_TOOLKIT_PM_USE_GUI_1=""
41067 fi
41068
41069 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
41070 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41071 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
41072 fi
41073
3fd9c298
DE
41074 COND_TOOLKIT_WINCE="#"
41075 if test "x$TOOLKIT" = "xWINCE" ; then
41076 COND_TOOLKIT_WINCE=""
41077 fi
41078
41079 COND_TOOLKIT_WINCE_USE_GUI_1="#"
41080 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
41081 COND_TOOLKIT_WINCE_USE_GUI_1=""
41082 fi
41083
41084 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
41085 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41086 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
41087 fi
41088
a848cd7e
SC
41089 COND_TOOLKIT_X11="#"
41090 if test "x$TOOLKIT" = "xX11" ; then
41091 COND_TOOLKIT_X11=""
41092 fi
41093
41094 COND_TOOLKIT_X11_USE_GUI_1="#"
41095 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
41096 COND_TOOLKIT_X11_USE_GUI_1=""
41097 fi
41098
41099 COND_UNICODE_1="#"
41100 if test "x$UNICODE" = "x1" ; then
41101 COND_UNICODE_1=""
41102 fi
41103
41104 COND_USE_EXCEPTIONS_0="#"
41105 if test "x$USE_EXCEPTIONS" = "x0" ; then
41106 COND_USE_EXCEPTIONS_0=""
41107 fi
41108
41109 COND_USE_EXCEPTIONS_1="#"
41110 if test "x$USE_EXCEPTIONS" = "x1" ; then
41111 COND_USE_EXCEPTIONS_1=""
41112 fi
41113
41114 COND_USE_GUI_0="#"
41115 if test "x$USE_GUI" = "x0" ; then
41116 COND_USE_GUI_0=""
41117 fi
41118
41119 COND_USE_GUI_1="#"
41120 if test "x$USE_GUI" = "x1" ; then
41121 COND_USE_GUI_1=""
41122 fi
41123
41124 COND_USE_GUI_1_WXUNIV_0="#"
41125 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41126 COND_USE_GUI_1_WXUNIV_0=""
41127 fi
41128
41129 COND_USE_GUI_1_WXUNIV_1="#"
41130 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
41131 COND_USE_GUI_1_WXUNIV_1=""
41132 fi
41133
41134 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
41135 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41136 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
41137 fi
41138
41139 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
41140 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41141 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
41142 fi
41143
41144 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
41145 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41146 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
41147 fi
41148
ceec2216
RL
41149 COND_USE_ODBC_1="#"
41150 if test "x$USE_ODBC" = "x1" ; then
41151 COND_USE_ODBC_1=""
41152 fi
41153
ffa0583f
RL
41154 COND_USE_OPENGL_1="#"
41155 if test "x$USE_OPENGL" = "x1" ; then
41156 COND_USE_OPENGL_1=""
41157 fi
41158
a848cd7e
SC
41159 COND_USE_PLUGINS_0="#"
41160 if test "x$USE_PLUGINS" = "x0" ; then
41161 COND_USE_PLUGINS_0=""
41162 fi
41163
41164 COND_USE_SOSYMLINKS_1="#"
41165 if test "x$USE_SOSYMLINKS" = "x1" ; then
41166 COND_USE_SOSYMLINKS_1=""
41167 fi
41168
41169 COND_USE_SOVERLINUX_1="#"
41170 if test "x$USE_SOVERLINUX" = "x1" ; then
41171 COND_USE_SOVERLINUX_1=""
41172 fi
41173
41174 COND_USE_SOVERSION_0="#"
41175 if test "x$USE_SOVERSION" = "x0" ; then
41176 COND_USE_SOVERSION_0=""
41177 fi
41178
41179 COND_USE_SOVERSOLARIS_1="#"
41180 if test "x$USE_SOVERSOLARIS" = "x1" ; then
41181 COND_USE_SOVERSOLARIS_1=""
41182 fi
41183
a13a7f89
RL
41184 COND_USE_XRC_1="#"
41185 if test "x$USE_XRC" = "x1" ; then
41186 COND_USE_XRC_1=""
41187 fi
41188
a848cd7e
SC
41189 COND_WITH_PLUGIN_SDL_1="#"
41190 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
41191 COND_WITH_PLUGIN_SDL_1=""
41192 fi
41193
1e6eb025
VZ
41194 COND_WXUNIV_0="#"
41195 if test "x$WXUNIV" = "x0" ; then
41196 COND_WXUNIV_0=""
41197 fi
41198
a848cd7e
SC
41199 COND_WXUNIV_1="#"
41200 if test "x$WXUNIV" = "x1" ; then
41201 COND_WXUNIV_1=""
41202 fi
41203
41204 COND_WXUSE_EXPAT_BUILTIN="#"
41205 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
41206 COND_WXUSE_EXPAT_BUILTIN=""
41207 fi
41208
41209 COND_WXUSE_LIBJPEG_BUILTIN="#"
41210 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41211 COND_WXUSE_LIBJPEG_BUILTIN=""
41212 fi
41213
41214 COND_WXUSE_LIBPNG_BUILTIN="#"
41215 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41216 COND_WXUSE_LIBPNG_BUILTIN=""
41217 fi
41218
41219 COND_WXUSE_LIBTIFF_BUILTIN="#"
41220 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41221 COND_WXUSE_LIBTIFF_BUILTIN=""
41222 fi
41223
41224 COND_WXUSE_ODBC_BUILTIN="#"
41225 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
41226 COND_WXUSE_ODBC_BUILTIN=""
41227 fi
41228
41229 COND_WXUSE_REGEX_BUILTIN="#"
41230 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
41231 COND_WXUSE_REGEX_BUILTIN=""
41232 fi
41233
41234 COND_WXUSE_ZLIB_BUILTIN="#"
41235 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
41236 COND_WXUSE_ZLIB_BUILTIN=""
41237 fi
41238
41239
41240
2057db16
VS
41241 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
41242 { { 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
41243echo "$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;}
41244 { (exit 1); exit 1; }; }
41245 fi
41246
a848cd7e 41247
ceec2216
RL
41248if test "$wxUSE_SHARED" = "yes"; then
41249
41250 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
41251 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
41252
5b674b9d
DE
41253 case "${host}" in
41254 *-pc-os2_emx | *-pc-os2-emx )
41255 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
41256 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
41257 cp -p ${srcdir}/src/os2/dllnames.sh .
41258 cp -p ${srcdir}/src/os2/dllar.sh .
41259 ;;
41260 esac
ceec2216
RL
41261else
41262
41263 EXE_LINKER="$CXX -o"
41264
41265fi
a848cd7e 41266
74b84332 41267GCC_PRAGMA_FLAGS=""
c08ebc62
DE
41268PCH_FLAGS=""
41269if test $GCC_PCH = 1 ; then
41270 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
41271 PCH_FLAGS="-DWX_PRECOMP"
41272else
a848cd7e
SC
41273 case "${host}" in
41274 powerpc-*-darwin* )
74b84332 41275 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
a848cd7e 41276 ;;
bea8e651 41277 *-*-mingw32* )
1f344abf
VS
41278 if test "$wxUSE_STL" = "yes" -o \
41279 "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
41280 "$wxUSE_NO_RTTI" != "yes"; then
41281 echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
41282echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
bea8e651
MB
41283 cat >conftest.$ac_ext <<_ACEOF
41284/* confdefs.h. */
41285_ACEOF
41286cat confdefs.h >>conftest.$ac_ext
41287cat >>conftest.$ac_ext <<_ACEOF
41288/* end confdefs.h. */
41289
3314e67b
RR
41290int
41291main ()
41292{
41293#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
41294 #error "Not GCC 3.2 or greater"
41295 #endif
41296
41297 ;
41298 return 0;
41299}
41300_ACEOF
41301rm -f conftest.$ac_objext
41302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41303 (eval $ac_compile) 2>conftest.er1
41304 ac_status=$?
41305 grep -v '^ *+' conftest.er1 >conftest.err
41306 rm -f conftest.er1
41307 cat conftest.err >&5
41308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41309 (exit $ac_status); } &&
da4486fb 41310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3314e67b
RR
41311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41312 (eval $ac_try) 2>&5
41313 ac_status=$?
41314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41315 (exit $ac_status); }; } &&
41316 { ac_try='test -s conftest.$ac_objext'
41317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41318 (eval $ac_try) 2>&5
41319 ac_status=$?
41320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41321 (exit $ac_status); }; }; then
41322 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
41323 echo "$as_me:$LINENO: result: yes" >&5
41324echo "${ECHO_T}yes" >&6
41325else
41326 echo "$as_me: failed program was:" >&5
41327sed 's/^/| /' conftest.$ac_ext >&5
41328
41329echo "$as_me:$LINENO: result: no" >&5
41330echo "${ECHO_T}no" >&6
41331fi
41332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41333 fi
41334 ;;
41335 *-pc-os2_emx | *-pc-os2-emx )
41336 if test "$wxUSE_STL" = "yes"; then
41337 echo "$as_me:$LINENO: checking if this gcc version needs -DNO_GCC_PRAGMA" >&5
41338echo $ECHO_N "checking if this gcc version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
41339 cat >conftest.$ac_ext <<_ACEOF
41340/* confdefs.h. */
41341_ACEOF
41342cat confdefs.h >>conftest.$ac_ext
41343cat >>conftest.$ac_ext <<_ACEOF
41344/* end confdefs.h. */
41345
bea8e651
MB
41346int
41347main ()
41348{
1f344abf 41349#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
bea8e651
MB
41350 #error "Not GCC 3.2 or greater"
41351 #endif
41352
41353 ;
41354 return 0;
41355}
41356_ACEOF
41357rm -f conftest.$ac_objext
41358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41359 (eval $ac_compile) 2>conftest.er1
bea8e651 41360 ac_status=$?
ac1cb8d3
VS
41361 grep -v '^ *+' conftest.er1 >conftest.err
41362 rm -f conftest.er1
41363 cat conftest.err >&5
bea8e651
MB
41364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41365 (exit $ac_status); } &&
da4486fb 41366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41368 (eval $ac_try) 2>&5
41369 ac_status=$?
41370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41371 (exit $ac_status); }; } &&
41372 { ac_try='test -s conftest.$ac_objext'
bea8e651
MB
41373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41374 (eval $ac_try) 2>&5
41375 ac_status=$?
41376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41377 (exit $ac_status); }; }; then
74b84332 41378 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
bea8e651
MB
41379 echo "$as_me:$LINENO: result: yes" >&5
41380echo "${ECHO_T}yes" >&6
41381else
41382 echo "$as_me: failed program was:" >&5
41383sed 's/^/| /' conftest.$ac_ext >&5
41384
41385echo "$as_me:$LINENO: result: no" >&5
41386echo "${ECHO_T}no" >&6
41387fi
ac1cb8d3 41388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bea8e651
MB
41389 fi
41390 ;;
a848cd7e
SC
41391 esac
41392fi
d2083416 41393CPPFLAGS="$PCH_FLAGS $GCC_PRAGMA_FLAGS $CPPFLAGS"
a848cd7e
SC
41394
41395
41396SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
41397
41398
41399
41400
41401
41402
41403
41404
41405
41406
41407
41408
41409
41410
41411
41412
41413
41414
41415
41416
41417
41418
41419
41420
41421
41422
41423
41424
41425
41426
41427
41428
41429
41430
41431
41432
41433
41434
41435
41436
41437
41438
a848cd7e
SC
41439
41440
41441
41442
41443
41444
41445
41446
41447
41448
41449
41450
41451
41452
41453
41454
41455
41456
74b84332 41457
a848cd7e
SC
41458
41459
41460echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
41461echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 41462set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
41463if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
41464 echo $ECHO_N "(cached) $ECHO_C" >&6
41465else
41466 cat >conftest.make <<\_ACEOF
41467all:
41468 @echo 'ac_maketemp="$(MAKE)"'
41469_ACEOF
41470# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
41471eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
41472if test -n "$ac_maketemp"; then
41473 eval ac_cv_prog_make_${ac_make}_set=yes
41474else
41475 eval ac_cv_prog_make_${ac_make}_set=no
41476fi
41477rm -f conftest.make
41478fi
41479if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
41480 echo "$as_me:$LINENO: result: yes" >&5
41481echo "${ECHO_T}yes" >&6
41482 SET_MAKE=
41483else
41484 echo "$as_me:$LINENO: result: no" >&5
41485echo "${ECHO_T}no" >&6
41486 SET_MAKE="MAKE=${MAKE-make}"
41487fi
41488
41489
a848cd7e 41490
ceec2216
RL
41491 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
41492
a848cd7e 41493
ceec2216 41494 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 41495
a848cd7e 41496
ceec2216 41497 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 41498
ceec2216
RL
41499
41500 ac_config_files="$ac_config_files version-script Makefile"
41501
41502
41503 ac_config_commands="$ac_config_commands wx-config
41504 "
a848cd7e
SC
41505
41506
9103d280
RL
41507
41508
a848cd7e
SC
41509if test "$wxUSE_GUI" = "yes"; then
41510 SUBDIRS="samples demos utils contrib"
41511else SUBDIRS="samples utils"
41512fi
41513
41514
41515
41516# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
41517if test "${with_cppunit_prefix+set}" = set; then
41518 withval="$with_cppunit_prefix"
41519 cppunit_config_prefix="$withval"
41520else
41521 cppunit_config_prefix=""
41522fi;
41523
41524# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
41525if test "${with_cppunit_exec_prefix+set}" = set; then
41526 withval="$with_cppunit_exec_prefix"
41527 cppunit_config_exec_prefix="$withval"
41528else
41529 cppunit_config_exec_prefix=""
41530fi;
41531
41532 if test x$cppunit_config_exec_prefix != x ; then
41533 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
41534 if test x${CPPUNIT_CONFIG+set} != xset ; then
41535 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
41536 fi
41537 fi
41538 if test x$cppunit_config_prefix != x ; then
41539 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
41540 if test x${CPPUNIT_CONFIG+set} != xset ; then
41541 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
41542 fi
41543 fi
41544
41545 # Extract the first word of "cppunit-config", so it can be a program name with args.
41546set dummy cppunit-config; ac_word=$2
41547echo "$as_me:$LINENO: checking for $ac_word" >&5
41548echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41549if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
41550 echo $ECHO_N "(cached) $ECHO_C" >&6
41551else
41552 case $CPPUNIT_CONFIG in
41553 [\\/]* | ?:[\\/]*)
41554 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
41555 ;;
41556 *)
41557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41558for as_dir in $PATH
41559do
41560 IFS=$as_save_IFS
41561 test -z "$as_dir" && as_dir=.
41562 for ac_exec_ext in '' $ac_executable_extensions; do
41563 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41564 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41566 break 2
41567 fi
41568done
41569done
41570
41571 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
41572 ;;
41573esac
41574fi
41575CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
41576
41577if test -n "$CPPUNIT_CONFIG"; then
41578 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
41579echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
41580else
41581 echo "$as_me:$LINENO: result: no" >&5
41582echo "${ECHO_T}no" >&6
41583fi
41584
41585 cppunit_version_min=1.8.0
41586
41587 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
41588echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
41589 no_cppunit=""
41590 if test "$CPPUNIT_CONFIG" = "no" ; then
41591 no_cppunit=yes
41592 else
41593 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
41594 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
41595 cppunit_version=`$CPPUNIT_CONFIG --version`
41596
41597 cppunit_major_version=`echo $cppunit_version | \
41598 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41599 cppunit_minor_version=`echo $cppunit_version | \
41600 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41601 cppunit_micro_version=`echo $cppunit_version | \
41602 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41603
41604 cppunit_major_min=`echo $cppunit_version_min | \
41605 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41606 cppunit_minor_min=`echo $cppunit_version_min | \
41607 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41608 cppunit_micro_min=`echo $cppunit_version_min | \
41609 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41610
41611 cppunit_version_proper=`expr \
41612 $cppunit_major_version \> $cppunit_major_min \| \
41613 $cppunit_major_version \= $cppunit_major_min \& \
41614 $cppunit_minor_version \> $cppunit_minor_min \| \
41615 $cppunit_major_version \= $cppunit_major_min \& \
41616 $cppunit_minor_version \= $cppunit_minor_min \& \
41617 $cppunit_micro_version \>= $cppunit_micro_min `
41618
41619 if test "$cppunit_version_proper" = "1" ; then
41620 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
41621echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
41622 else
41623 echo "$as_me:$LINENO: result: no" >&5
41624echo "${ECHO_T}no" >&6
41625 no_cppunit=yes
41626 fi
41627 fi
41628
41629 if test "x$no_cppunit" = x ; then
c2218763 41630 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
41631 else
41632 CPPUNIT_CFLAGS=""
41633 CPPUNIT_LIBS=""
c2218763 41634 :
a848cd7e
SC
41635 fi
41636
41637
41638
41639
41640
41641for subdir in `echo $SUBDIRS`; do
41642 if test -d ${srcdir}/${subdir} ; then
41643 if test "$wxUSE_GUI" = "yes"; then
41644 if test ${subdir} = "samples"; then
41645 makefiles="samples/Makefile.in $makefiles"
41646 for sample in `echo $SAMPLES_SUBDIRS`; do
41647 if test -d $srcdir/samples/$sample; then
41648 makefiles="samples/$sample/Makefile.in $makefiles"
41649 fi
41650 done
41651 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
41652 fi
41653 else if test ${subdir} = "samples"; then
41654 makefiles="samples/Makefile.in samples/console/Makefile.in"
41655 elif test ${subdir} = "utils"; then
6537ccf8
VS
41656 makefiles=""
41657 for util in HelpGen tex2rtf ; do
41658 if test -d $srcdir/utils/$util ; then
41659 makefiles="utils/$util/Makefile.in \
41660 utils/$util/src/Makefile.in \
41661 $makefiles"
41662 fi
41663 done
a848cd7e
SC
41664 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
41665 fi
41666 fi
41667
41668 for mkin in $makefiles ; do
41669 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
41670 ac_config_files="$ac_config_files $mk"
41671
41672 done
41673 fi
41674done
41675
41676
41677cat >confcache <<\_ACEOF
41678# This file is a shell script that caches the results of configure
41679# tests run on this system so they can be shared between configure
41680# scripts and configure runs, see configure's option --config-cache.
41681# It is not useful on other systems. If it contains results you don't
41682# want to keep, you may remove or edit it.
41683#
41684# config.status only pays attention to the cache file if you give it
41685# the --recheck option to rerun configure.
41686#
41687# `ac_cv_env_foo' variables (set or unset) will be overridden when
41688# loading this file, other *unset* `ac_cv_foo' will be assigned the
41689# following values.
41690
41691_ACEOF
41692
41693# The following way of writing the cache mishandles newlines in values,
41694# but we know of no workaround that is simple, portable, and efficient.
41695# So, don't put newlines in cache variables' values.
41696# Ultrix sh set writes to stderr and can't be redirected directly,
41697# and sets the high bit in the cache file unless we assign to the vars.
41698{
41699 (set) 2>&1 |
41700 case `(ac_space=' '; set | grep ac_space) 2>&1` in
41701 *ac_space=\ *)
41702 # `set' does not quote correctly, so add quotes (double-quote
41703 # substitution turns \\\\ into \\, and sed turns \\ into \).
41704 sed -n \
ac1cb8d3
VS
41705 "s/'/'\\\\''/g;
41706 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
41707 ;;
41708 *)
41709 # `set' quotes correctly as required by POSIX, so do not add quotes.
41710 sed -n \
ac1cb8d3 41711 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
41712 ;;
41713 esac;
41714} |
41715 sed '
41716 t clear
41717 : clear
41718 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41719 t end
41720 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41721 : end' >>confcache
41722if diff $cache_file confcache >/dev/null 2>&1; then :; else
41723 if test -w $cache_file; then
41724 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
41725 cat confcache >$cache_file
41726 else
41727 echo "not updating unwritable cache $cache_file"
41728 fi
41729fi
41730rm -f confcache
41731
41732test "x$prefix" = xNONE && prefix=$ac_default_prefix
41733# Let make expand exec_prefix.
41734test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41735
41736# VPATH may cause trouble with some makes, so we remove $(srcdir),
41737# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
41738# trailing colons and then remove the whole line if VPATH becomes empty
41739# (actually we leave an empty line to preserve line numbers).
41740if test "x$srcdir" = x.; then
ac1cb8d3 41741 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
41742s/:*\$(srcdir):*/:/;
41743s/:*\${srcdir}:*/:/;
41744s/:*@srcdir@:*/:/;
ac1cb8d3 41745s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 41746s/:*$//;
ac1cb8d3 41747s/^[^=]*=[ ]*$//;
a848cd7e
SC
41748}'
41749fi
41750
41751DEFS=-DHAVE_CONFIG_H
41752
41753ac_libobjs=
41754ac_ltlibobjs=
41755for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41756 # 1. Remove the extension, and $U if already installed.
41757 ac_i=`echo "$ac_i" |
ac1cb8d3 41758 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
41759 # 2. Add them.
41760 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
41761 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
41762done
41763LIBOBJS=$ac_libobjs
41764
41765LTLIBOBJS=$ac_ltlibobjs
41766
41767
41768
41769: ${CONFIG_STATUS=./config.status}
41770ac_clean_files_save=$ac_clean_files
41771ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41772{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
41773echo "$as_me: creating $CONFIG_STATUS" >&6;}
41774cat >$CONFIG_STATUS <<_ACEOF
41775#! $SHELL
41776# Generated by $as_me.
41777# Run this file to recreate the current configuration.
41778# Compiler output produced by configure, useful for debugging
41779# configure, is in config.log if it exists.
41780
41781debug=false
41782ac_cs_recheck=false
41783ac_cs_silent=false
41784SHELL=\${CONFIG_SHELL-$SHELL}
41785_ACEOF
41786
41787cat >>$CONFIG_STATUS <<\_ACEOF
41788## --------------------- ##
41789## M4sh Initialization. ##
41790## --------------------- ##
41791
41792# Be Bourne compatible
41793if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
41794 emulate sh
41795 NULLCMD=:
41796 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
41797 # is contrary to our usage. Disable this feature.
41798 alias -g '${1+"$@"}'='"$@"'
41799elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
41800 set -o posix
41801fi
ac1cb8d3 41802DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
41803
41804# Support unset when possible.
ac1cb8d3 41805if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
41806 as_unset=unset
41807else
41808 as_unset=false
41809fi
41810
41811
41812# Work around bugs in pre-3.0 UWIN ksh.
41813$as_unset ENV MAIL MAILPATH
41814PS1='$ '
41815PS2='> '
41816PS4='+ '
41817
41818# NLS nuisances.
41819for as_var in \
41820 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41821 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
41822 LC_TELEPHONE LC_TIME
41823do
ac1cb8d3 41824 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
41825 eval $as_var=C; export $as_var
41826 else
41827 $as_unset $as_var
41828 fi
41829done
41830
41831# Required to use basename.
41832if expr a : '\(a\)' >/dev/null 2>&1; then
41833 as_expr=expr
41834else
41835 as_expr=false
41836fi
41837
41838if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
41839 as_basename=basename
41840else
41841 as_basename=false
41842fi
41843
41844
41845# Name of the executable.
41846as_me=`$as_basename "$0" ||
41847$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41848 X"$0" : 'X\(//\)$' \| \
41849 X"$0" : 'X\(/\)$' \| \
41850 . : '\(.\)' 2>/dev/null ||
41851echo X/"$0" |
41852 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
41853 /^X\/\(\/\/\)$/{ s//\1/; q; }
41854 /^X\/\(\/\).*/{ s//\1/; q; }
41855 s/.*/./; q'`
41856
41857
41858# PATH needs CR, and LINENO needs CR and PATH.
41859# Avoid depending upon Character Ranges.
41860as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41861as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41862as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41863as_cr_digits='0123456789'
41864as_cr_alnum=$as_cr_Letters$as_cr_digits
41865
41866# The user is always right.
41867if test "${PATH_SEPARATOR+set}" != set; then
41868 echo "#! /bin/sh" >conf$$.sh
41869 echo "exit 0" >>conf$$.sh
41870 chmod +x conf$$.sh
41871 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
41872 PATH_SEPARATOR=';'
41873 else
41874 PATH_SEPARATOR=:
41875 fi
41876 rm -f conf$$.sh
41877fi
41878
41879
41880 as_lineno_1=$LINENO
41881 as_lineno_2=$LINENO
41882 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41883 test "x$as_lineno_1" != "x$as_lineno_2" &&
41884 test "x$as_lineno_3" = "x$as_lineno_2" || {
41885 # Find who we are. Look in the path if we contain no path at all
41886 # relative or not.
41887 case $0 in
41888 *[\\/]* ) as_myself=$0 ;;
41889 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41890for as_dir in $PATH
41891do
41892 IFS=$as_save_IFS
41893 test -z "$as_dir" && as_dir=.
41894 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41895done
41896
41897 ;;
41898 esac
41899 # We did not find ourselves, most probably we were run as `sh COMMAND'
41900 # in which case we are not to be found in the path.
41901 if test "x$as_myself" = x; then
41902 as_myself=$0
41903 fi
41904 if test ! -f "$as_myself"; then
41905 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
41906echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
41907 { (exit 1); exit 1; }; }
41908 fi
41909 case $CONFIG_SHELL in
41910 '')
41911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41912for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
41913do
41914 IFS=$as_save_IFS
41915 test -z "$as_dir" && as_dir=.
41916 for as_base in sh bash ksh sh5; do
41917 case $as_dir in
41918 /*)
41919 if ("$as_dir/$as_base" -c '
41920 as_lineno_1=$LINENO
41921 as_lineno_2=$LINENO
41922 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41923 test "x$as_lineno_1" != "x$as_lineno_2" &&
41924 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
41925 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
41926 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
41927 CONFIG_SHELL=$as_dir/$as_base
41928 export CONFIG_SHELL
41929 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
41930 fi;;
41931 esac
41932 done
41933done
41934;;
41935 esac
41936
41937 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
41938 # uniformly replaced by the line number. The first 'sed' inserts a
41939 # line-number line before each line; the second 'sed' does the real
41940 # work. The second script uses 'N' to pair each line-number line
41941 # with the numbered line, and appends trailing '-' during
41942 # substitution so that $LINENO is not a special case at line end.
41943 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
41944 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
41945 sed '=' <$as_myself |
41946 sed '
41947 N
41948 s,$,-,
41949 : loop
41950 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
41951 t loop
41952 s,-$,,
41953 s,^['$as_cr_digits']*\n,,
41954 ' >$as_me.lineno &&
41955 chmod +x $as_me.lineno ||
41956 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
41957echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
41958 { (exit 1); exit 1; }; }
41959
41960 # Don't try to exec as it changes $[0], causing all sort of problems
41961 # (the dirname of $[0] is not the place where we might find the
41962 # original and so on. Autoconf is especially sensible to this).
41963 . ./$as_me.lineno
41964 # Exit status is that of the last command.
41965 exit
41966}
41967
41968
41969case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
41970 *c*,-n*) ECHO_N= ECHO_C='
41971' ECHO_T=' ' ;;
41972 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
41973 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
41974esac
41975
41976if expr a : '\(a\)' >/dev/null 2>&1; then
41977 as_expr=expr
41978else
41979 as_expr=false
41980fi
41981
41982rm -f conf$$ conf$$.exe conf$$.file
41983echo >conf$$.file
41984if ln -s conf$$.file conf$$ 2>/dev/null; then
41985 # We could just check for DJGPP; but this test a) works b) is more generic
41986 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
41987 if test -f conf$$.exe; then
41988 # Don't use ln at all; we don't have any links
41989 as_ln_s='cp -p'
41990 else
41991 as_ln_s='ln -s'
41992 fi
41993elif ln conf$$.file conf$$ 2>/dev/null; then
41994 as_ln_s=ln
41995else
41996 as_ln_s='cp -p'
41997fi
41998rm -f conf$$ conf$$.exe conf$$.file
41999
42000if mkdir -p . 2>/dev/null; then
42001 as_mkdir_p=:
42002else
ac1cb8d3 42003 test -d ./-p && rmdir ./-p
a848cd7e
SC
42004 as_mkdir_p=false
42005fi
42006
42007as_executable_p="test -f"
42008
42009# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 42010as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
42011
42012# Sed expression to map a string onto a valid variable name.
ac1cb8d3 42013as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
42014
42015
42016# IFS
42017# We need space, tab and new line, in precisely that order.
42018as_nl='
42019'
42020IFS=" $as_nl"
42021
42022# CDPATH.
42023$as_unset CDPATH
42024
42025exec 6>&1
42026
42027# Open the log real soon, to keep \$[0] and so on meaningful, and to
42028# report actual input values of CONFIG_FILES etc. instead of their
42029# values after options handling. Logging --version etc. is OK.
42030exec 5>>config.log
42031{
42032 echo
42033 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
42034## Running $as_me. ##
42035_ASBOX
42036} >&5
42037cat >&5 <<_CSEOF
42038
7714864e 42039This file was extended by wxWidgets $as_me 2.5.3, which was
ac1cb8d3 42040generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
42041
42042 CONFIG_FILES = $CONFIG_FILES
42043 CONFIG_HEADERS = $CONFIG_HEADERS
42044 CONFIG_LINKS = $CONFIG_LINKS
42045 CONFIG_COMMANDS = $CONFIG_COMMANDS
42046 $ $0 $@
42047
42048_CSEOF
42049echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
42050echo >&5
42051_ACEOF
42052
42053# Files that config.status was made for.
42054if test -n "$ac_config_files"; then
42055 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
42056fi
42057
42058if test -n "$ac_config_headers"; then
42059 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
42060fi
42061
42062if test -n "$ac_config_links"; then
42063 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
42064fi
42065
42066if test -n "$ac_config_commands"; then
42067 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
42068fi
42069
42070cat >>$CONFIG_STATUS <<\_ACEOF
42071
42072ac_cs_usage="\
42073\`$as_me' instantiates files from templates according to the
42074current configuration.
42075
42076Usage: $0 [OPTIONS] [FILE]...
42077
42078 -h, --help print this help, then exit
42079 -V, --version print version number, then exit
42080 -q, --quiet do not print progress messages
42081 -d, --debug don't remove temporary files
42082 --recheck update $as_me by reconfiguring in the same conditions
42083 --file=FILE[:TEMPLATE]
ac1cb8d3 42084 instantiate the configuration file FILE
a848cd7e 42085 --header=FILE[:TEMPLATE]
ac1cb8d3 42086 instantiate the configuration header FILE
a848cd7e
SC
42087
42088Configuration files:
42089$config_files
42090
42091Configuration headers:
42092$config_headers
42093
42094Configuration commands:
42095$config_commands
42096
42097Report bugs to <bug-autoconf@gnu.org>."
42098_ACEOF
42099
42100cat >>$CONFIG_STATUS <<_ACEOF
42101ac_cs_version="\\
7714864e 42102wxWidgets config.status 2.5.3
ac1cb8d3 42103configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
42104 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
42105
ac1cb8d3 42106Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
42107This config.status script is free software; the Free Software Foundation
42108gives unlimited permission to copy, distribute and modify it."
42109srcdir=$srcdir
42110INSTALL="$INSTALL"
42111_ACEOF
42112
42113cat >>$CONFIG_STATUS <<\_ACEOF
42114# If no file are specified by the user, then we need to provide default
42115# value. By we need to know if files were specified by the user.
42116ac_need_defaults=:
42117while test $# != 0
42118do
42119 case $1 in
42120 --*=*)
42121 ac_option=`expr "x$1" : 'x\([^=]*\)='`
42122 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
42123 ac_shift=:
42124 ;;
42125 -*)
42126 ac_option=$1
42127 ac_optarg=$2
42128 ac_shift=shift
42129 ;;
42130 *) # This is not an option, so the user has probably given explicit
42131 # arguments.
42132 ac_option=$1
42133 ac_need_defaults=false;;
42134 esac
42135
42136 case $ac_option in
42137 # Handling of the options.
42138_ACEOF
42139cat >>$CONFIG_STATUS <<\_ACEOF
42140 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
42141 ac_cs_recheck=: ;;
42142 --version | --vers* | -V )
42143 echo "$ac_cs_version"; exit 0 ;;
42144 --he | --h)
42145 # Conflict between --help and --header
42146 { { echo "$as_me:$LINENO: error: ambiguous option: $1
42147Try \`$0 --help' for more information." >&5
42148echo "$as_me: error: ambiguous option: $1
42149Try \`$0 --help' for more information." >&2;}
42150 { (exit 1); exit 1; }; };;
42151 --help | --hel | -h )
42152 echo "$ac_cs_usage"; exit 0 ;;
42153 --debug | --d* | -d )
42154 debug=: ;;
42155 --file | --fil | --fi | --f )
42156 $ac_shift
42157 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
42158 ac_need_defaults=false;;
42159 --header | --heade | --head | --hea )
42160 $ac_shift
42161 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
42162 ac_need_defaults=false;;
42163 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
42164 | -silent | --silent | --silen | --sile | --sil | --si | --s)
42165 ac_cs_silent=: ;;
42166
42167 # This is an error.
42168 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
42169Try \`$0 --help' for more information." >&5
42170echo "$as_me: error: unrecognized option: $1
42171Try \`$0 --help' for more information." >&2;}
42172 { (exit 1); exit 1; }; } ;;
42173
42174 *) ac_config_targets="$ac_config_targets $1" ;;
42175
42176 esac
42177 shift
42178done
42179
42180ac_configure_extra_args=
42181
42182if $ac_cs_silent; then
42183 exec 6>/dev/null
42184 ac_configure_extra_args="$ac_configure_extra_args --silent"
42185fi
42186
42187_ACEOF
42188cat >>$CONFIG_STATUS <<_ACEOF
42189if \$ac_cs_recheck; then
42190 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
42191 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
42192fi
42193
42194_ACEOF
42195
42196cat >>$CONFIG_STATUS <<_ACEOF
42197#
42198# INIT-COMMANDS section.
42199#
42200
ceec2216
RL
42201 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
42202 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
42203 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
42204 LN_S="${LN_S}"
a848cd7e
SC
42205
42206
42207_ACEOF
42208
42209
42210
42211cat >>$CONFIG_STATUS <<\_ACEOF
42212for ac_config_target in $ac_config_targets
42213do
42214 case "$ac_config_target" in
42215 # Handling of arguments.
ceec2216
RL
42216 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
42217 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
42218 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
42219 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42220 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
ceec2216
RL
42221 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
42222 "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
42223 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
42224echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
42225 { (exit 1); exit 1; }; };;
42226 esac
42227done
42228
42229# If the user did not use the arguments to specify the items to instantiate,
42230# then the envvar interface is used. Set only those that are not.
42231# We use the long form for the default assignment because of an extremely
42232# bizarre bug on SunOS 4.1.3.
42233if $ac_need_defaults; then
42234 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42235 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42236 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42237fi
42238
42239# Have a temporary directory for convenience. Make it in the build tree
42240# simply because there is no reason to put it here, and in addition,
42241# creating and moving files from /tmp can sometimes cause problems.
42242# Create a temporary directory, and hook for its removal unless debugging.
42243$debug ||
42244{
42245 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
42246 trap '{ (exit 1); exit 1; }' 1 2 13 15
42247}
42248
42249# Create a (secure) tmp directory for tmp files.
42250
42251{
42252 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
42253 test -n "$tmp" && test -d "$tmp"
42254} ||
42255{
42256 tmp=./confstat$$-$RANDOM
42257 (umask 077 && mkdir $tmp)
42258} ||
42259{
42260 echo "$me: cannot create a temporary directory in ." >&2
42261 { (exit 1); exit 1; }
42262}
42263
42264_ACEOF
42265
42266cat >>$CONFIG_STATUS <<_ACEOF
42267
42268#
42269# CONFIG_FILES section.
42270#
42271
42272# No need to generate the scripts if there are no CONFIG_FILES.
42273# This happens for instance when ./config.status config.h
42274if test -n "\$CONFIG_FILES"; then
42275 # Protect against being on the right side of a sed subst in config.status.
42276 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
42277 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
42278s,@SHELL@,$SHELL,;t t
42279s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
42280s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
42281s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
42282s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
42283s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
42284s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
42285s,@exec_prefix@,$exec_prefix,;t t
42286s,@prefix@,$prefix,;t t
42287s,@program_transform_name@,$program_transform_name,;t t
42288s,@bindir@,$bindir,;t t
42289s,@sbindir@,$sbindir,;t t
42290s,@libexecdir@,$libexecdir,;t t
42291s,@datadir@,$datadir,;t t
42292s,@sysconfdir@,$sysconfdir,;t t
42293s,@sharedstatedir@,$sharedstatedir,;t t
42294s,@localstatedir@,$localstatedir,;t t
42295s,@libdir@,$libdir,;t t
42296s,@includedir@,$includedir,;t t
42297s,@oldincludedir@,$oldincludedir,;t t
42298s,@infodir@,$infodir,;t t
42299s,@mandir@,$mandir,;t t
42300s,@build_alias@,$build_alias,;t t
42301s,@host_alias@,$host_alias,;t t
42302s,@target_alias@,$target_alias,;t t
42303s,@DEFS@,$DEFS,;t t
42304s,@ECHO_C@,$ECHO_C,;t t
42305s,@ECHO_N@,$ECHO_N,;t t
42306s,@ECHO_T@,$ECHO_T,;t t
42307s,@LIBS@,$LIBS,;t t
42308s,@build@,$build,;t t
42309s,@build_cpu@,$build_cpu,;t t
42310s,@build_vendor@,$build_vendor,;t t
42311s,@build_os@,$build_os,;t t
42312s,@host@,$host,;t t
42313s,@host_cpu@,$host_cpu,;t t
42314s,@host_vendor@,$host_vendor,;t t
42315s,@host_os@,$host_os,;t t
42316s,@target@,$target,;t t
42317s,@target_cpu@,$target_cpu,;t t
42318s,@target_vendor@,$target_vendor,;t t
42319s,@target_os@,$target_os,;t t
42320s,@CC@,$CC,;t t
42321s,@CFLAGS@,$CFLAGS,;t t
42322s,@LDFLAGS@,$LDFLAGS,;t t
42323s,@CPPFLAGS@,$CPPFLAGS,;t t
42324s,@ac_ct_CC@,$ac_ct_CC,;t t
42325s,@EXEEXT@,$EXEEXT,;t t
42326s,@OBJEXT@,$OBJEXT,;t t
42327s,@CPP@,$CPP,;t t
42328s,@EGREP@,$EGREP,;t t
42329s,@CXX@,$CXX,;t t
42330s,@CXXFLAGS@,$CXXFLAGS,;t t
42331s,@ac_ct_CXX@,$ac_ct_CXX,;t t
42332s,@RANLIB@,$RANLIB,;t t
42333s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
42334s,@AR@,$AR,;t t
42335s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
42336s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
42337s,@INSTALL_DATA@,$INSTALL_DATA,;t t
42338s,@STRIP@,$STRIP,;t t
42339s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
42340s,@LN_S@,$LN_S,;t t
42341s,@CXXCPP@,$CXXCPP,;t t
42342s,@subdirs@,$subdirs,;t t
42343s,@PKG_CONFIG@,$PKG_CONFIG,;t t
42344s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
42345s,@GTK_LIBS@,$GTK_LIBS,;t t
42346s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
42347s,@X_CFLAGS@,$X_CFLAGS,;t t
42348s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
42349s,@X_LIBS@,$X_LIBS,;t t
42350s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
42351s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
42352s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
42353s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
42354s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
42355s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
42356s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
42357s,@RESCOMP@,$RESCOMP,;t t
42358s,@DEREZ@,$DEREZ,;t t
42359s,@SETFILE@,$SETFILE,;t t
42360s,@LIBICONV@,$LIBICONV,;t t
42361s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
42362s,@SDL_CONFIG@,$SDL_CONFIG,;t t
42363s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
42364s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
42365s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
42366s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
a848cd7e
SC
42367s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
42368s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
42369s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
42370s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
42371s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
42372s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
42373s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
42374s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
42375s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
42376s,@VENDOR@,$VENDOR,;t t
42377s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
42378s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
42379s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
42380s,@WXUNIV@,$WXUNIV,;t t
42381s,@MONOLITHIC@,$MONOLITHIC,;t t
42382s,@USE_PLUGINS@,$USE_PLUGINS,;t t
42383s,@EXTRALIBS@,$EXTRALIBS,;t t
42384s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
42385s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
42386s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
42387s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
42388s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
42389s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
42390s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 42391s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
a848cd7e
SC
42392s,@UNICODE@,$UNICODE,;t t
42393s,@BUILD@,$BUILD,;t t
42394s,@DEBUG_INFO@,$DEBUG_INFO,;t t
42395s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
42396s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
42397s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
42398s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
42399s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
42400s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
42401s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
42402s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
42403s,@SET_MAKE@,$SET_MAKE,;t t
42404s,@MAKE_SET@,$MAKE_SET,;t t
42405s,@ac_ct_AR@,$ac_ct_AR,;t t
42406s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
42407s,@NM@,$NM,;t t
42408s,@ac_ct_NM@,$ac_ct_NM,;t t
42409s,@INSTALL_DIR@,$INSTALL_DIR,;t t
42410s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
42411s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
42412s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
42413s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
42414s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 42415s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
42416s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
42417s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 42418s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
42419s,@SO_SUFFIX@,$SO_SUFFIX,;t t
42420s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
42421s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
42422s,@LIBPREFIX@,$LIBPREFIX,;t t
42423s,@LIBEXT@,$LIBEXT,;t t
42424s,@DLLPREFIX@,$DLLPREFIX,;t t
42425s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
42426s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
42427s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
42428s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
42429s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
42430s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
42431s,@PIC_FLAG@,$PIC_FLAG,;t t
42432s,@USE_SOVERSION@,$USE_SOVERSION,;t t
42433s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
42434s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
42435s,@USE_MACVERSION@,$USE_MACVERSION,;t t
42436s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
42437s,@SONAME_FLAG@,$SONAME_FLAG,;t t
42438s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
42439s,@GCC_PCH@,$GCC_PCH,;t t
42440s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
42441s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
42442s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
42443s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
42444s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
42445s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
42446s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
42447s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
42448s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
42449s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
42450s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
42451s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
42452s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
42453s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
42454s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
42455s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
42456s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
42457s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 42458s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1,;t t
a848cd7e 42459s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1,;t t
a848cd7e 42460s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 42461s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
42462s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
42463s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 42464s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1,;t t
a848cd7e 42465s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1,;t t
a848cd7e 42466s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 42467s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
42468s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
42469s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
42470s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
42471s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
42472s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
42473s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
42474s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
42475s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 42476s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
42477s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
42478s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
42479s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 42480s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 42481s,@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
42482s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
42483s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
42484s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
42485s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 42486s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
a848cd7e
SC
42487s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
42488s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
42489s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
42490s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
42491s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
42492s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
42493s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
42494s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
42495s,@COND_SHARED_0@,$COND_SHARED_0,;t t
ceec2216
RL
42496s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
42497s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
42498s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
42499s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
42500s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
42501s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
42502s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
42503s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
42504s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
42505s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
42506s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
42507s,@COND_SHARED_1@,$COND_SHARED_1,;t t
42508s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
a30f955f 42509s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 42510s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 42511s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
42512s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
42513s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
42514s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
42515s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
42516s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
42517s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
42518s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
42519s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
42520s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
42521s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
42522s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
42523s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
42524s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
42525s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
42526s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
42527s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
42528s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
42529s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
42530s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
42531s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
42532s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
42533s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
42534s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
42535s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
42536s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
42537s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
42538s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
42539s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
42540s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
42541s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
42542s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
42543s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
42544s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
ceec2216 42545s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
ffa0583f 42546s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e
SC
42547s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
42548s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
42549s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
42550s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
42551s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
a13a7f89 42552s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
a848cd7e 42553s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 42554s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
42555s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
42556s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
42557s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
42558s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
42559s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
42560s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
42561s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
42562s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 42563s,@SHARED@,$SHARED,;t t
a848cd7e
SC
42564s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
42565s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
42566s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
42567s,@USE_GUI@,$USE_GUI,;t t
42568s,@AFMINSTALL@,$AFMINSTALL,;t t
42569s,@WIN32INSTALL@,$WIN32INSTALL,;t t
42570s,@TOOLKIT@,$TOOLKIT,;t t
42571s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 42572s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 42573s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e
SC
42574s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
42575s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
a848cd7e 42576s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
42577s,@WIDGET_SET@,$WIDGET_SET,;t t
42578s,@WX_RELEASE@,$WX_RELEASE,;t t
42579s,@WX_VERSION@,$WX_VERSION,;t t
42580s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
42581s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
42582s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
a848cd7e 42583s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
a848cd7e
SC
42584s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
42585s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
42586s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
42587s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
74b84332 42588s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
42589s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
42590s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
ceec2216 42591s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 42592s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
42593s,@DISTDIR@,$DISTDIR,;t t
42594s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
42595s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
42596s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
42597s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
42598s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
42599s,@RESFLAGS@,$RESFLAGS,;t t
42600s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
42601s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
42602s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
42603s,@LIBWXMACRES@,$LIBWXMACRES,;t t
42604s,@MACRESCOMP@,$MACRESCOMP,;t t
42605s,@MACSETFILE@,$MACSETFILE,;t t
42606s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
42607s,@GCC@,$GCC,;t t
a848cd7e 42608s,@DLLTOOL@,$DLLTOOL,;t t
a848cd7e
SC
42609s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
42610s,@LIBOBJS@,$LIBOBJS,;t t
42611s,@LTLIBOBJS@,$LTLIBOBJS,;t t
42612CEOF
42613
42614_ACEOF
42615
42616 cat >>$CONFIG_STATUS <<\_ACEOF
42617 # Split the substitutions into bite-sized pieces for seds with
42618 # small command number limits, like on Digital OSF/1 and HP-UX.
42619 ac_max_sed_lines=48
42620 ac_sed_frag=1 # Number of current file.
42621 ac_beg=1 # First line for current file.
42622 ac_end=$ac_max_sed_lines # Line after last line for current file.
42623 ac_more_lines=:
42624 ac_sed_cmds=
42625 while $ac_more_lines; do
42626 if test $ac_beg -gt 1; then
42627 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
42628 else
42629 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
42630 fi
42631 if test ! -s $tmp/subs.frag; then
42632 ac_more_lines=false
42633 else
42634 # The purpose of the label and of the branching condition is to
42635 # speed up the sed processing (if there are no `@' at all, there
42636 # is no need to browse any of the substitutions).
42637 # These are the two extra sed commands mentioned above.
42638 (echo ':t
42639 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
42640 if test -z "$ac_sed_cmds"; then
ac1cb8d3 42641 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 42642 else
ac1cb8d3 42643 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
42644 fi
42645 ac_sed_frag=`expr $ac_sed_frag + 1`
42646 ac_beg=$ac_end
42647 ac_end=`expr $ac_end + $ac_max_sed_lines`
42648 fi
42649 done
42650 if test -z "$ac_sed_cmds"; then
42651 ac_sed_cmds=cat
42652 fi
42653fi # test -n "$CONFIG_FILES"
42654
42655_ACEOF
42656cat >>$CONFIG_STATUS <<\_ACEOF
42657for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
42658 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42659 case $ac_file in
42660 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
42661 cat >$tmp/stdin
42662 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42663 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 42664 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 42665 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
42666 * ) ac_file_in=$ac_file.in ;;
42667 esac
42668
42669 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
42670 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42671$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42672 X"$ac_file" : 'X\(//\)[^/]' \| \
42673 X"$ac_file" : 'X\(//\)$' \| \
42674 X"$ac_file" : 'X\(/\)' \| \
42675 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42676echo X"$ac_file" |
42677 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42678 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42679 /^X\(\/\/\)$/{ s//\1/; q; }
42680 /^X\(\/\).*/{ s//\1/; q; }
42681 s/.*/./; q'`
42682 { if $as_mkdir_p; then
42683 mkdir -p "$ac_dir"
42684 else
42685 as_dir="$ac_dir"
42686 as_dirs=
42687 while test ! -d "$as_dir"; do
42688 as_dirs="$as_dir $as_dirs"
42689 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42690$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42691 X"$as_dir" : 'X\(//\)[^/]' \| \
42692 X"$as_dir" : 'X\(//\)$' \| \
42693 X"$as_dir" : 'X\(/\)' \| \
42694 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42695echo X"$as_dir" |
42696 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42697 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42698 /^X\(\/\/\)$/{ s//\1/; q; }
42699 /^X\(\/\).*/{ s//\1/; q; }
42700 s/.*/./; q'`
42701 done
42702 test ! -n "$as_dirs" || mkdir $as_dirs
42703 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42704echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42705 { (exit 1); exit 1; }; }; }
42706
42707 ac_builddir=.
42708
42709if test "$ac_dir" != .; then
42710 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42711 # A "../" for each directory in $ac_dir_suffix.
42712 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42713else
42714 ac_dir_suffix= ac_top_builddir=
42715fi
42716
42717case $srcdir in
42718 .) # No --srcdir option. We are building in place.
42719 ac_srcdir=.
42720 if test -z "$ac_top_builddir"; then
42721 ac_top_srcdir=.
42722 else
42723 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42724 fi ;;
42725 [\\/]* | ?:[\\/]* ) # Absolute path.
42726 ac_srcdir=$srcdir$ac_dir_suffix;
42727 ac_top_srcdir=$srcdir ;;
42728 *) # Relative path.
42729 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42730 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42731esac
ac1cb8d3
VS
42732
42733# Do not use `cd foo && pwd` to compute absolute paths, because
42734# the directories may not exist.
42735case `pwd` in
42736.) ac_abs_builddir="$ac_dir";;
42737*)
42738 case "$ac_dir" in
42739 .) ac_abs_builddir=`pwd`;;
42740 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42741 *) ac_abs_builddir=`pwd`/"$ac_dir";;
42742 esac;;
42743esac
42744case $ac_abs_builddir in
42745.) ac_abs_top_builddir=${ac_top_builddir}.;;
42746*)
42747 case ${ac_top_builddir}. in
42748 .) ac_abs_top_builddir=$ac_abs_builddir;;
42749 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42750 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42751 esac;;
42752esac
42753case $ac_abs_builddir in
42754.) ac_abs_srcdir=$ac_srcdir;;
42755*)
42756 case $ac_srcdir in
42757 .) ac_abs_srcdir=$ac_abs_builddir;;
42758 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42759 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42760 esac;;
42761esac
42762case $ac_abs_builddir in
42763.) ac_abs_top_srcdir=$ac_top_srcdir;;
42764*)
42765 case $ac_top_srcdir in
42766 .) ac_abs_top_srcdir=$ac_abs_builddir;;
42767 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42768 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42769 esac;;
42770esac
a848cd7e
SC
42771
42772
42773 case $INSTALL in
42774 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
42775 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
42776 esac
42777
a848cd7e
SC
42778 # Let's still pretend it is `configure' which instantiates (i.e., don't
42779 # use $as_me), people would be surprised to read:
42780 # /* config.h. Generated by config.status. */
42781 if test x"$ac_file" = x-; then
42782 configure_input=
42783 else
42784 configure_input="$ac_file. "
42785 fi
42786 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 42787 sed 's,.*/,,'` by configure."
a848cd7e
SC
42788
42789 # First look for the input files in the build tree, otherwise in the
42790 # src tree.
42791 ac_file_inputs=`IFS=:
42792 for f in $ac_file_in; do
42793 case $f in
42794 -) echo $tmp/stdin ;;
42795 [\\/$]*)
ac1cb8d3
VS
42796 # Absolute (can't be DOS-style, as IFS=:)
42797 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42798echo "$as_me: error: cannot find input file: $f" >&2;}
42799 { (exit 1); exit 1; }; }
ac1cb8d3 42800 echo "$f";;
a848cd7e 42801 *) # Relative
ac1cb8d3
VS
42802 if test -f "$f"; then
42803 # Build tree
42804 echo "$f"
42805 elif test -f "$srcdir/$f"; then
42806 # Source tree
42807 echo "$srcdir/$f"
42808 else
42809 # /dev/null tree
42810 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42811echo "$as_me: error: cannot find input file: $f" >&2;}
42812 { (exit 1); exit 1; }; }
ac1cb8d3 42813 fi;;
a848cd7e
SC
42814 esac
42815 done` || { (exit 1); exit 1; }
da4486fb
VZ
42816
42817 if test x"$ac_file" != x-; then
42818 { echo "$as_me:$LINENO: creating $ac_file" >&5
42819echo "$as_me: creating $ac_file" >&6;}
42820 rm -f "$ac_file"
42821 fi
a848cd7e
SC
42822_ACEOF
42823cat >>$CONFIG_STATUS <<_ACEOF
42824 sed "$ac_vpsub
42825$extrasub
42826_ACEOF
42827cat >>$CONFIG_STATUS <<\_ACEOF
42828:t
42829/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42830s,@configure_input@,$configure_input,;t t
42831s,@srcdir@,$ac_srcdir,;t t
42832s,@abs_srcdir@,$ac_abs_srcdir,;t t
42833s,@top_srcdir@,$ac_top_srcdir,;t t
42834s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
42835s,@builddir@,$ac_builddir,;t t
42836s,@abs_builddir@,$ac_abs_builddir,;t t
42837s,@top_builddir@,$ac_top_builddir,;t t
42838s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
42839s,@INSTALL@,$ac_INSTALL,;t t
42840" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
42841 rm -f $tmp/stdin
42842 if test x"$ac_file" != x-; then
42843 mv $tmp/out $ac_file
42844 else
42845 cat $tmp/out
42846 rm -f $tmp/out
42847 fi
42848
ceec2216
RL
42849 # Run the commands associated with the file.
42850 case $ac_file in
42851 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
42852 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
42853 esac
a848cd7e
SC
42854done
42855_ACEOF
42856cat >>$CONFIG_STATUS <<\_ACEOF
42857
42858#
42859# CONFIG_HEADER section.
42860#
42861
42862# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
42863# NAME is the cpp macro being defined and VALUE is the value it is being given.
42864#
42865# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
42866ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
42867ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
42868ac_dC=' '
42869ac_dD=',;t'
42870# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 42871ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
42872ac_uB='$,\1#\2define\3'
42873ac_uC=' '
42874ac_uD=',;t'
42875
42876for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
42877 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42878 case $ac_file in
42879 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
42880 cat >$tmp/stdin
42881 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42882 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 42883 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 42884 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
42885 * ) ac_file_in=$ac_file.in ;;
42886 esac
42887
42888 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
42889echo "$as_me: creating $ac_file" >&6;}
42890
42891 # First look for the input files in the build tree, otherwise in the
42892 # src tree.
42893 ac_file_inputs=`IFS=:
42894 for f in $ac_file_in; do
42895 case $f in
42896 -) echo $tmp/stdin ;;
42897 [\\/$]*)
ac1cb8d3
VS
42898 # Absolute (can't be DOS-style, as IFS=:)
42899 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42900echo "$as_me: error: cannot find input file: $f" >&2;}
42901 { (exit 1); exit 1; }; }
ac1cb8d3
VS
42902 # Do quote $f, to prevent DOS paths from being IFS'd.
42903 echo "$f";;
a848cd7e 42904 *) # Relative
ac1cb8d3
VS
42905 if test -f "$f"; then
42906 # Build tree
42907 echo "$f"
42908 elif test -f "$srcdir/$f"; then
42909 # Source tree
42910 echo "$srcdir/$f"
42911 else
42912 # /dev/null tree
42913 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42914echo "$as_me: error: cannot find input file: $f" >&2;}
42915 { (exit 1); exit 1; }; }
ac1cb8d3 42916 fi;;
a848cd7e
SC
42917 esac
42918 done` || { (exit 1); exit 1; }
42919 # Remove the trailing spaces.
ac1cb8d3 42920 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
42921
42922_ACEOF
42923
42924# Transform confdefs.h into two sed scripts, `conftest.defines' and
42925# `conftest.undefs', that substitutes the proper values into
42926# config.h.in to produce config.h. The first handles `#define'
42927# templates, and the second `#undef' templates.
42928# And first: Protect against being on the right side of a sed subst in
42929# config.status. Protect against being in an unquoted here document
42930# in config.status.
42931rm -f conftest.defines conftest.undefs
42932# Using a here document instead of a string reduces the quoting nightmare.
42933# Putting comments in sed scripts is not portable.
42934#
42935# `end' is used to avoid that the second main sed command (meant for
42936# 0-ary CPP macros) applies to n-ary macro definitions.
42937# See the Autoconf documentation for `clear'.
42938cat >confdef2sed.sed <<\_ACEOF
42939s/[\\&,]/\\&/g
42940s,[\\$`],\\&,g
42941t clear
42942: clear
ac1cb8d3 42943s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 42944t end
ac1cb8d3 42945s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
42946: end
42947_ACEOF
42948# If some macros were called several times there might be several times
42949# the same #defines, which is useless. Nevertheless, we may not want to
42950# sort them, since we want the *last* AC-DEFINE to be honored.
42951uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
42952sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
42953rm -f confdef2sed.sed
42954
42955# This sed command replaces #undef with comments. This is necessary, for
42956# example, in the case of _POSIX_SOURCE, which is predefined and required
42957# on some systems where configure will not decide to define it.
42958cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 42959s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
42960_ACEOF
42961
42962# Break up conftest.defines because some shells have a limit on the size
42963# of here documents, and old seds have small limits too (100 cmds).
42964echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 42965echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
42966echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
42967echo ' :' >>$CONFIG_STATUS
42968rm -f conftest.tail
42969while grep . conftest.defines >/dev/null
42970do
42971 # Write a limited-size here document to $tmp/defines.sed.
42972 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
42973 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 42974 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
42975 # Work around the forget-to-reset-the-flag bug.
42976 echo 't clr' >>$CONFIG_STATUS
42977 echo ': clr' >>$CONFIG_STATUS
42978 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
42979 echo 'CEOF
42980 sed -f $tmp/defines.sed $tmp/in >$tmp/out
42981 rm -f $tmp/in
42982 mv $tmp/out $tmp/in
42983' >>$CONFIG_STATUS
42984 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
42985 rm -f conftest.defines
42986 mv conftest.tail conftest.defines
42987done
42988rm -f conftest.defines
42989echo ' fi # grep' >>$CONFIG_STATUS
42990echo >>$CONFIG_STATUS
42991
42992# Break up conftest.undefs because some shells have a limit on the size
42993# of here documents, and old seds have small limits too (100 cmds).
42994echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
42995rm -f conftest.tail
42996while grep . conftest.undefs >/dev/null
42997do
42998 # Write a limited-size here document to $tmp/undefs.sed.
42999 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
43000 # Speed up: don't consider the non `#undef'
ac1cb8d3 43001 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
43002 # Work around the forget-to-reset-the-flag bug.
43003 echo 't clr' >>$CONFIG_STATUS
43004 echo ': clr' >>$CONFIG_STATUS
43005 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
43006 echo 'CEOF
43007 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
43008 rm -f $tmp/in
43009 mv $tmp/out $tmp/in
43010' >>$CONFIG_STATUS
43011 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
43012 rm -f conftest.undefs
43013 mv conftest.tail conftest.undefs
43014done
43015rm -f conftest.undefs
43016
43017cat >>$CONFIG_STATUS <<\_ACEOF
43018 # Let's still pretend it is `configure' which instantiates (i.e., don't
43019 # use $as_me), people would be surprised to read:
43020 # /* config.h. Generated by config.status. */
43021 if test x"$ac_file" = x-; then
43022 echo "/* Generated by configure. */" >$tmp/config.h
43023 else
43024 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
43025 fi
43026 cat $tmp/in >>$tmp/config.h
43027 rm -f $tmp/in
43028 if test x"$ac_file" != x-; then
43029 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
43030 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
43031echo "$as_me: $ac_file is unchanged" >&6;}
43032 else
43033 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
43034$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43035 X"$ac_file" : 'X\(//\)[^/]' \| \
43036 X"$ac_file" : 'X\(//\)$' \| \
43037 X"$ac_file" : 'X\(/\)' \| \
43038 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43039echo X"$ac_file" |
43040 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43041 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43042 /^X\(\/\/\)$/{ s//\1/; q; }
43043 /^X\(\/\).*/{ s//\1/; q; }
43044 s/.*/./; q'`
43045 { if $as_mkdir_p; then
43046 mkdir -p "$ac_dir"
43047 else
43048 as_dir="$ac_dir"
43049 as_dirs=
43050 while test ! -d "$as_dir"; do
43051 as_dirs="$as_dir $as_dirs"
43052 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43053$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43054 X"$as_dir" : 'X\(//\)[^/]' \| \
43055 X"$as_dir" : 'X\(//\)$' \| \
43056 X"$as_dir" : 'X\(/\)' \| \
43057 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43058echo X"$as_dir" |
43059 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43060 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43061 /^X\(\/\/\)$/{ s//\1/; q; }
43062 /^X\(\/\).*/{ s//\1/; q; }
43063 s/.*/./; q'`
43064 done
43065 test ! -n "$as_dirs" || mkdir $as_dirs
43066 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43067echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43068 { (exit 1); exit 1; }; }; }
43069
43070 rm -f $ac_file
43071 mv $tmp/config.h $ac_file
43072 fi
43073 else
43074 cat $tmp/config.h
43075 rm -f $tmp/config.h
43076 fi
43077done
43078_ACEOF
43079cat >>$CONFIG_STATUS <<\_ACEOF
43080
43081#
43082# CONFIG_COMMANDS section.
43083#
43084for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
43085 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
43086 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
43087 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
43088$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43089 X"$ac_dest" : 'X\(//\)[^/]' \| \
43090 X"$ac_dest" : 'X\(//\)$' \| \
43091 X"$ac_dest" : 'X\(/\)' \| \
43092 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43093echo X"$ac_dest" |
43094 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43095 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43096 /^X\(\/\/\)$/{ s//\1/; q; }
43097 /^X\(\/\).*/{ s//\1/; q; }
43098 s/.*/./; q'`
ac1cb8d3
VS
43099 { if $as_mkdir_p; then
43100 mkdir -p "$ac_dir"
43101 else
43102 as_dir="$ac_dir"
43103 as_dirs=
43104 while test ! -d "$as_dir"; do
43105 as_dirs="$as_dir $as_dirs"
43106 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43107$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43108 X"$as_dir" : 'X\(//\)[^/]' \| \
43109 X"$as_dir" : 'X\(//\)$' \| \
43110 X"$as_dir" : 'X\(/\)' \| \
43111 . : '\(.\)' 2>/dev/null ||
43112echo X"$as_dir" |
43113 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43114 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43115 /^X\(\/\/\)$/{ s//\1/; q; }
43116 /^X\(\/\).*/{ s//\1/; q; }
43117 s/.*/./; q'`
43118 done
43119 test ! -n "$as_dirs" || mkdir $as_dirs
43120 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43121echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43122 { (exit 1); exit 1; }; }; }
43123
a848cd7e
SC
43124 ac_builddir=.
43125
43126if test "$ac_dir" != .; then
43127 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43128 # A "../" for each directory in $ac_dir_suffix.
43129 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
43130else
43131 ac_dir_suffix= ac_top_builddir=
43132fi
43133
43134case $srcdir in
43135 .) # No --srcdir option. We are building in place.
43136 ac_srcdir=.
43137 if test -z "$ac_top_builddir"; then
43138 ac_top_srcdir=.
43139 else
43140 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43141 fi ;;
43142 [\\/]* | ?:[\\/]* ) # Absolute path.
43143 ac_srcdir=$srcdir$ac_dir_suffix;
43144 ac_top_srcdir=$srcdir ;;
43145 *) # Relative path.
43146 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43147 ac_top_srcdir=$ac_top_builddir$srcdir ;;
43148esac
ac1cb8d3
VS
43149
43150# Do not use `cd foo && pwd` to compute absolute paths, because
43151# the directories may not exist.
43152case `pwd` in
43153.) ac_abs_builddir="$ac_dir";;
43154*)
43155 case "$ac_dir" in
43156 .) ac_abs_builddir=`pwd`;;
43157 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43158 *) ac_abs_builddir=`pwd`/"$ac_dir";;
43159 esac;;
43160esac
43161case $ac_abs_builddir in
43162.) ac_abs_top_builddir=${ac_top_builddir}.;;
43163*)
43164 case ${ac_top_builddir}. in
43165 .) ac_abs_top_builddir=$ac_abs_builddir;;
43166 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43167 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43168 esac;;
43169esac
43170case $ac_abs_builddir in
43171.) ac_abs_srcdir=$ac_srcdir;;
43172*)
43173 case $ac_srcdir in
43174 .) ac_abs_srcdir=$ac_abs_builddir;;
43175 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43176 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43177 esac;;
43178esac
43179case $ac_abs_builddir in
43180.) ac_abs_top_srcdir=$ac_top_srcdir;;
43181*)
43182 case $ac_top_srcdir in
43183 .) ac_abs_top_srcdir=$ac_abs_builddir;;
43184 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43185 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43186 esac;;
43187esac
a848cd7e
SC
43188
43189
43190 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
43191echo "$as_me: executing $ac_dest commands" >&6;}
43192 case $ac_dest in
ceec2216
RL
43193 wx-config ) rm -f wx-config
43194 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
43195 ;;
a848cd7e
SC
43196 esac
43197done
43198_ACEOF
43199
43200cat >>$CONFIG_STATUS <<\_ACEOF
43201
43202{ (exit 0); exit 0; }
43203_ACEOF
43204chmod +x $CONFIG_STATUS
43205ac_clean_files=$ac_clean_files_save
43206
43207
43208# configure is writing to config.log, and then calls config.status.
43209# config.status does its own redirection, appending to config.log.
43210# Unfortunately, on DOS this fails, as config.log is still kept open
43211# by configure, so config.status won't be able to write to it; its
43212# output is simply discarded. So we exec the FD to /dev/null,
43213# effectively closing config.log, so it can be properly (re)opened and
43214# appended to by config.status. When coming back to configure, we
43215# need to make the FD available again.
43216if test "$no_create" != yes; then
43217 ac_cs_success=:
43218 ac_config_status_args=
43219 test "$silent" = yes &&
43220 ac_config_status_args="$ac_config_status_args --quiet"
43221 exec 5>/dev/null
43222 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
43223 exec 5>>config.log
43224 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
43225 # would make configure fail if this is the last instruction.
43226 $ac_cs_success || { (exit 1); exit 1; }
43227fi
43228
43229#
43230# CONFIG_SUBDIRS section.
43231#
43232if test "$no_recursion" != yes; then
43233
43234 # Remove --cache-file and --srcdir arguments so they do not pile up.
43235 ac_sub_configure_args=
43236 ac_prev=
43237 for ac_arg in $ac_configure_args; do
43238 if test -n "$ac_prev"; then
43239 ac_prev=
43240 continue
43241 fi
43242 case $ac_arg in
43243 -cache-file | --cache-file | --cache-fil | --cache-fi \
43244 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
43245 ac_prev=cache_file ;;
43246 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
43247 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
43248 | --c=*)
43249 ;;
43250 --config-cache | -C)
43251 ;;
43252 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
43253 ac_prev=srcdir ;;
43254 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
43255 ;;
43256 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
43257 ac_prev=prefix ;;
43258 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
43259 ;;
43260 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
43261 esac
43262 done
43263
43264 # Always prepend --prefix to ensure using the same prefix
43265 # in subdir configurations.
43266 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
43267
43268 ac_popdir=`pwd`
43269 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
43270
43271 # Do not complain, so a configure script can configure whichever
43272 # parts of a large source tree are present.
43273 test -d $srcdir/$ac_dir || continue
43274
43275 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
43276echo "$as_me: configuring in $ac_dir" >&6;}
43277 { if $as_mkdir_p; then
43278 mkdir -p "$ac_dir"
43279 else
43280 as_dir="$ac_dir"
43281 as_dirs=
43282 while test ! -d "$as_dir"; do
43283 as_dirs="$as_dir $as_dirs"
43284 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43285$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43286 X"$as_dir" : 'X\(//\)[^/]' \| \
43287 X"$as_dir" : 'X\(//\)$' \| \
43288 X"$as_dir" : 'X\(/\)' \| \
43289 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43290echo X"$as_dir" |
43291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43292 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43293 /^X\(\/\/\)$/{ s//\1/; q; }
43294 /^X\(\/\).*/{ s//\1/; q; }
43295 s/.*/./; q'`
43296 done
43297 test ! -n "$as_dirs" || mkdir $as_dirs
43298 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43299echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43300 { (exit 1); exit 1; }; }; }
43301
43302 ac_builddir=.
43303
43304if test "$ac_dir" != .; then
43305 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43306 # A "../" for each directory in $ac_dir_suffix.
43307 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
43308else
43309 ac_dir_suffix= ac_top_builddir=
43310fi
43311
43312case $srcdir in
43313 .) # No --srcdir option. We are building in place.
43314 ac_srcdir=.
43315 if test -z "$ac_top_builddir"; then
43316 ac_top_srcdir=.
43317 else
43318 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43319 fi ;;
43320 [\\/]* | ?:[\\/]* ) # Absolute path.
43321 ac_srcdir=$srcdir$ac_dir_suffix;
43322 ac_top_srcdir=$srcdir ;;
43323 *) # Relative path.
43324 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43325 ac_top_srcdir=$ac_top_builddir$srcdir ;;
43326esac
ac1cb8d3
VS
43327
43328# Do not use `cd foo && pwd` to compute absolute paths, because
43329# the directories may not exist.
43330case `pwd` in
43331.) ac_abs_builddir="$ac_dir";;
43332*)
43333 case "$ac_dir" in
43334 .) ac_abs_builddir=`pwd`;;
43335 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43336 *) ac_abs_builddir=`pwd`/"$ac_dir";;
43337 esac;;
43338esac
43339case $ac_abs_builddir in
43340.) ac_abs_top_builddir=${ac_top_builddir}.;;
43341*)
43342 case ${ac_top_builddir}. in
43343 .) ac_abs_top_builddir=$ac_abs_builddir;;
43344 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43345 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43346 esac;;
43347esac
43348case $ac_abs_builddir in
43349.) ac_abs_srcdir=$ac_srcdir;;
43350*)
43351 case $ac_srcdir in
43352 .) ac_abs_srcdir=$ac_abs_builddir;;
43353 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43354 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43355 esac;;
43356esac
43357case $ac_abs_builddir in
43358.) ac_abs_top_srcdir=$ac_top_srcdir;;
43359*)
43360 case $ac_top_srcdir in
43361 .) ac_abs_top_srcdir=$ac_abs_builddir;;
43362 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43363 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43364 esac;;
43365esac
a848cd7e
SC
43366
43367
43368 cd $ac_dir
43369
43370 # Check for guested configure; otherwise get Cygnus style configure.
43371 if test -f $ac_srcdir/configure.gnu; then
43372 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
43373 elif test -f $ac_srcdir/configure; then
43374 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
43375 elif test -f $ac_srcdir/configure.in; then
43376 ac_sub_configure=$ac_configure
43377 else
43378 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
43379echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
43380 ac_sub_configure=
43381 fi
43382
43383 # The recursion is here.
43384 if test -n "$ac_sub_configure"; then
43385 # Make the cache file name correct relative to the subdirectory.
43386 case $cache_file in
43387 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
43388 *) # Relative path.
ac1cb8d3 43389 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
43390 esac
43391
43392 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
43393echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
43394 # The eval makes quoting arguments work.
43395 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
43396 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
43397 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
43398echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
43399 { (exit 1); exit 1; }; }
43400 fi
43401
da4486fb 43402 cd "$ac_popdir"
a848cd7e
SC
43403 done
43404fi
43405
43406
43407echo
77ffb593 43408echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 43409echo ""
4d4ff94c 43410echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 43411echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 43412
77ffb593
JS
43413echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
43414echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
43415echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 43416
77ffb593
JS
43417echo " What level of wxWidgets compatibility should be enabled?"
43418echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
43419echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 43420
77ffb593 43421echo " Which libraries should wxWidgets use?"
a848cd7e
SC
43422echo " jpeg ${wxUSE_LIBJPEG-none}"
43423echo " png ${wxUSE_LIBPNG-none}"
43424echo " regex ${wxUSE_REGEX}"
43425echo " tiff ${wxUSE_LIBTIFF-none}"
43426if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
43427echo " xpm ${wxUSE_LIBXPM-none}"
43428fi
43429echo " zlib ${wxUSE_ZLIB}"
43430echo " odbc ${wxUSE_ODBC}"
43431echo " expat ${wxUSE_EXPAT}"
43432echo " libmspack ${wxUSE_LIBMSPACK}"
43433echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 43434echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
a848cd7e
SC
43435
43436echo ""
43437