]> git.saurik.com Git - wxWidgets.git/blame - configure
Removed incorrect struct qualifier from GSocketGUIFunctionsTable
[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.
ac1cb8d3 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.5.2.
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'
273PACKAGE_VERSION='2.5.2'
274PACKAGE_STRING='wxWidgets 2.5.2'
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"
ebee3cd0 316ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG PANGOFT2_CFLAGS PANGOFT2_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL UNICODE BUILD DEBUG_INFO DEBUG_FLAG SHARED TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET ac_ct_AR ac_ct_STRIP NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOSX PLATFORM_OS2 SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_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_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MAC_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_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_COCOA COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC_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_MSW_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_PM_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_PLUGINS_0 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_WITH_PLUGIN_SDL_1 COND_WITH_SDL_1 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN PATH_IFS WX_MAJOR_VERSION_NUMBER WX_MINOR_VERSION_NUMBER WX_RELEASE_NUMBER WX_SUBRELEASE_NUMBER WX_LIBRARY_NAME_STATIC WX_LIBRARY_NAME_SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WX_LIBRARY_IMPORTLIB WX_TARGET_LIBRARY WX_LIBRARY_LINK1 WX_LIBRARY_LINK2 PROGRAM_EXT WX_LIBRARY_NAME_STATIC_GL WX_LIBRARY_NAME_SHARED_GL WX_TARGET_LIBRARY_GL WX_LIBRARY_LINK1_GL WX_LIBRARY_LINK2_GL WX_ALL WX_ALL_INSTALLED SHARED_LD WX_TARGET_LIBRARY_TYPE STATIC_FLAG WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLKIT_VPATH TOOLCHAIN_NAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS top_builddir_wxconfig cross_compiling WXCONFIG_EXTRALIBS WXCONFIG_LIBS WXCONFIG_LIBS_GL WXCONFIG_LIBS_STATIC WXCONFIG_LIBS_STATIC_GL WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WXCONFIG_DATA_FILE WX_LARGEFILE_FLAGS GCC_PRAGMA_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX ALL_OBJECTS ALL_HEADERS ALL_SOURCES GUIDIST PORT_FILES DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL LDFLAGS_VERSIONING LDFLAGS_EXE OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL AS LD MAKEINFO INSTALL_LIBRARY 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
77ffb593 797\`configure' configures wxWidgets 2.5.2 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
77ffb593 863 short | recursive ) echo "Configuration of wxWidgets 2.5.2:";;
a848cd7e
SC
864 esac
865 cat <<\_ACEOF
866
867Optional Features:
868 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
869 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
870 --enable-gui use GUI classes
77ffb593
JS
871 --enable-monolithic build wxWidgets as single library
872 --enable-plugins build parts of wxWidgets as loadable components
873 --enable-universal use wxWidgets GUI controls instead of native ones
a848cd7e 874 --enable-nanox use NanoX
9f45f08e 875 --disable-gtk2 use GTK+ 1.2 instead of 2.0
a848cd7e
SC
876 --enable-gpe use GNOME PDA Environment features if possible
877 --enable-shared create shared library code
878 --enable-optimise create optimised code
879 --enable-debug same as debug_flag and debug_info
880 --enable-stl use STL for containers
881 --enable-omf use OMF object format
882 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
883 --enable-debug_info create code with debugging information
884 --enable-debug_gdb create code with extra GDB debugging information
885 --enable-debug_cntxt use wxDebugContext
886 --enable-mem_tracing create code with memory tracing
887 --enable-profile create code with profiling information
888 --enable-no_rtti create code without RTTI information
889 --enable-no_exceptions create code without C++ exceptions handling
890 --enable-permissive compile code disregarding strict ANSI
891 --enable-no_deps create code without dependency information
77ffb593
JS
892 --enable-compat22 enable wxWidgets 2.2 compatibility
893 --disable-compat24 disable wxWidgets 2.4 compatibility
a848cd7e
SC
894 --enable-rpath=DIR output the rpath flag from wx-config
895 --enable-intl use internationalization system
896 --enable-config use wxConfig (and derived) classes
897 --enable-protocols use wxProtocol and derived classes
898 --enable-ftp use wxFTP (requires wxProtocol
899 --enable-http use wxHTTP (requires wxProtocol
900 --enable-fileproto use wxFileProto class (requires wxProtocol
901 --enable-sockets use socket/network classes
902 --enable-ole use OLE classes (Win32 only)
903 --enable-dataobj use data object classes
904 --enable-ipc use interprocess communication (wxSocket etc.)
905 --enable-apple_ieee use the Apple IEEE codec
906 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
907 --enable-cmdline use wxCmdLineParser class
908 --enable-datetime use wxDateTime class
909 --enable-dialupman use dialup network classes
910 --enable-dynlib use wxLibrary class for DLL loading
911 --enable-dynamicloader use (new) wxDynamicLibrary class
912 --enable-exceptions build exception-safe library
913 --enable-ffile use wxFFile class
914 --enable-file use wxFile class
915 --enable-filesystem use virtual file systems classes
916 --enable-fontmap use font encodings conversion classes
917 --enable-fs_inet use virtual HTTP/FTP filesystems
918 --enable-fs_zip use virtual ZIP filesystems
919 --enable-geometry use geometry class
920 --enable-log use logging system
921 --enable-longlong use wxLongLong class
922 --enable-mimetype use wxMimeTypesManager
923 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
924 --enable-snglinst use wxSingleInstanceChecker class
925 --enable-streams use wxStream etc classes
926 --enable-std_iostreams use standard C++ stream classes
927 --enable-stopwatch use wxStopWatch class
928 --enable-sysoptions use wxSystemOptions
929 --enable-textbuf use wxTextBuffer class
930 --enable-textfile use wxTextFile class
931 --enable-timer use wxTimer class
932 --enable-unicode compile wxString with Unicode support
933 --enable-sound use wxSound class
77ffb593 934 --enable-wxprintfv use wxWidgets implementation of vprintf()
a848cd7e 935 --enable-zipstream use wxZipInputStream
a848cd7e
SC
936 --enable-url use wxURL class
937 --enable-protocol use wxProtocol class
938 --enable-protocol-http HTTP support in wxProtocol
939 --enable-protocol-ftp FTP support in wxProtocol
940 --enable-protocol-file FILE support in wxProtocol
941 --enable-threads use threads
942 --enable-docview use document view architecture
943 --enable-help use help subsystem
944 --enable-mshtmlhelp use MS HTML Help (win32)
945 --enable-html use wxHTML sub-library
946 --enable-htmlhelp use wxHTML-based help
947 --enable-constraints use layout-constraints system
948 --enable-printarch use printing architecture
949 --enable-mdi use multiple document interface architecture
8a7b1113 950 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
951 --enable-loggui use standard GUI logger
952 --enable-logwin use wxLogWindow
953 --enable-logdialog use wxLogDialog
646b6ec1 954 --enable-webkit use wxWebKitCtrl (Mac)
a848cd7e
SC
955 --enable-postscript use wxPostscriptDC device context (default for gtk+)
956 --enable-prologio not available; see contrib
957 --enable-resources not available; see contrib
958 --enable-clipboard use wxClipboard class
959 --enable-dnd use Drag'n'Drop classes
960 --enable-metafile use win32 metafiles
961 --enable-controls use all usual controls
962 --enable-accel use accelerators
963 --enable-button use wxButton class
964 --enable-bmpbutton use wxBitmapButton class
965 --enable-calendar use wxCalendarCtrl class
966 --enable-caret use wxCaret class
967 --enable-checkbox use wxCheckBox class
968 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
969 --enable-choice use wxChoice class
970 --enable-combobox use wxComboBox class
971 --enable-display use wxDisplay class
972 --enable-gauge use wxGauge class
973 --enable-grid use wxGrid class
974 --enable-imaglist use wxImageList class
975 --enable-listbook use wxListbook class
976 --enable-listbox use wxListBox class
977 --enable-listctrl use wxListCtrl class
978 --enable-notebook use wxNotebook class
979 --enable-radiobox use wxRadioBox class
980 --enable-radiobtn use wxRadioButton class
981 --enable-sash use wxSashWindow class
982 --enable-scrollbar use wxScrollBar class and scrollable windows
983 --enable-slider use wxSlider class
984 --enable-spinbtn use wxSpinButton class
985 --enable-spinctrl use wxSpinCtrl class
986 --enable-splitter use wxSplitterWindow class
987 --enable-statbmp use wxStaticBitmap class
988 --enable-statbox use wxStaticBox class
989 --enable-statline use wxStaticLine class
990 --enable-stattext use wxStaticText class
991 --enable-statusbar use wxStatusBar class
992 --enable-tabdialog use wxTabControl class
993 --enable-textctrl use wxTextCtrl class
994 --enable-togglebtn use wxToggleButton class
995 --enable-toolbar use wxToolBar class
996 --enable-tbarnative use native wxToolBar class
997 --enable-tbarsmpl use wxToolBarSimple class
998 --enable-treectrl use wxTreeCtrl class
999 --enable-tipwindow use wxTipWindow class
1000 --enable-popupwin use wxPopUpWindow class
1001 --enable-commondlg use all common dialogs
1002 --enable-choicedlg use wxChoiceDialog
1003 --enable-coldlg use wxColourDialog
1004 --enable-filedlg use wxFileDialog
1005 --enable-finddlg use wxFindReplaceDialog
1006 --enable-fontdlg use wxFontDialog
1007 --enable-dirdlg use wxDirDialog
1008 --enable-msgdlg use wxMessageDialog
1009 --enable-numberdlg use wxNumberEntryDialog
1010 --enable-splash use wxSplashScreen
1011 --enable-textdlg use wxTextDialog
1012 --enable-tipdlg use startup tips
1013 --enable-progressdlg use wxProgressDialog
1014 --enable-wizarddlg use wxWizard
1015 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1016 --enable-miniframe use wxMiniFrame class
1017 --enable-tooltips use wxToolTip class
1018 --enable-splines use spline drawing code
1019 --enable-validators use wxValidator and derived classes
1020 --enable-busyinfo use wxBusyInfo
1021 --enable-joystick use wxJoystick (Linux only)
1022 --enable-metafiles use wxMetaFile (Windows only)
1023 --enable-dragimage use wxDragImage
1024 --enable-accessibility enable accessibility support
1025 --enable-palette use wxPalette class
1026 --enable-image use wxImage class
1027 --enable-gif use gif images (GIF file format)
1028 --enable-pcx use pcx images (PCX file format)
1029 --enable-iff use iff images (IFF file format)
1030 --enable-pnm use pnm images (PNM file format)
1031 --enable-xpm use xpm images (XPM file format)
1032 --enable-icocur use Windows ICO and CUR formats
77ffb593 1033 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1034 --enable-vendor=VENDOR vendor name (win32 DLL only)
1035 --disable-largefile omit support for large files
1036 --disable-gtktest do not try to compile and run a test GTK+ program
1037 --disable-gtktest Do not try to compile and run a test GTK program
1038 --disable-sdltest Do not try to compile and run a test SDL program
1039 --enable-omf use OMF object format (OS/2)
ebee3cd0
VS
1040 --disable-precomp-headers
1041 don't use precompiled headers even if compiler can
a848cd7e
SC
1042
1043Optional Packages:
1044 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1045 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1046 --with-gtk use GTK+
1047 --with-motif use Motif/Lesstif
1048 --with-mac use Mac OS X
1049 --with-cocoa use Cocoa
1050 --with-wine use Wine
1051 --with-msw use MS-Windows
1052 --with-pm use OS/2 Presentation Manager
1053 --with-mgl use SciTech MGL
1054 --with-microwin use MicroWindows
1055 --with-x11 use X11
1056 --with-libpng use libpng (PNG image format)
1057 --with-libjpeg use libjpeg (JPEG file format)
1058 --with-libtiff use libtiff (TIFF file format)
1059 --with-libxpm use libxpm (XPM file format)
1060 --with-libmspack use libmspack (CHM help files loading)
1061 --with-sdl use SDL for audio on Unix
1062 --with-opengl use OpenGL (or Mesa)
1063 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1064 --with-regex enable support for wxRegEx class
1065 --with-zlib use zlib for LZW compression
1066 --with-odbc use the IODBC and wxODBC classes
1067 --with-expat enable XML support using expat parser
1068 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1069 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1070 --with-x use the X Window System
1071 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1072 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1073 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1074 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1075 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1076
1077Some influential environment variables:
dcc1b6ad
VS
1078 CC C compiler command
1079 CFLAGS C compiler flags
1080 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1081 nonstandard directory <lib dir>
1082 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1083 headers in a nonstandard directory <include dir>
1084 CPP C preprocessor
1085 CXX C++ compiler command
1086 CXXFLAGS C++ compiler flags
1087 CXXCPP C++ preprocessor
a848cd7e
SC
1088
1089Use these variables to override the choices made by `configure' or to help
1090it to find libraries and programs with nonstandard names/locations.
1091
77ffb593 1092Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1093_ACEOF
1094fi
1095
1096if test "$ac_init_help" = "recursive"; then
1097 # If there are subdirs, report their specific --help.
1098 ac_popdir=`pwd`
1099 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1100 test -d $ac_dir || continue
1101 ac_builddir=.
1102
1103if test "$ac_dir" != .; then
1104 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1105 # A "../" for each directory in $ac_dir_suffix.
1106 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1107else
1108 ac_dir_suffix= ac_top_builddir=
1109fi
1110
1111case $srcdir in
1112 .) # No --srcdir option. We are building in place.
1113 ac_srcdir=.
1114 if test -z "$ac_top_builddir"; then
1115 ac_top_srcdir=.
1116 else
1117 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1118 fi ;;
1119 [\\/]* | ?:[\\/]* ) # Absolute path.
1120 ac_srcdir=$srcdir$ac_dir_suffix;
1121 ac_top_srcdir=$srcdir ;;
1122 *) # Relative path.
1123 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1124 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1125esac
ac1cb8d3
VS
1126
1127# Do not use `cd foo && pwd` to compute absolute paths, because
1128# the directories may not exist.
1129case `pwd` in
1130.) ac_abs_builddir="$ac_dir";;
1131*)
1132 case "$ac_dir" in
1133 .) ac_abs_builddir=`pwd`;;
1134 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1135 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1136 esac;;
1137esac
1138case $ac_abs_builddir in
1139.) ac_abs_top_builddir=${ac_top_builddir}.;;
1140*)
1141 case ${ac_top_builddir}. in
1142 .) ac_abs_top_builddir=$ac_abs_builddir;;
1143 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1144 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1145 esac;;
1146esac
1147case $ac_abs_builddir in
1148.) ac_abs_srcdir=$ac_srcdir;;
1149*)
1150 case $ac_srcdir in
1151 .) ac_abs_srcdir=$ac_abs_builddir;;
1152 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1153 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1154 esac;;
1155esac
1156case $ac_abs_builddir in
1157.) ac_abs_top_srcdir=$ac_top_srcdir;;
1158*)
1159 case $ac_top_srcdir in
1160 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1161 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1162 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1163 esac;;
1164esac
a848cd7e
SC
1165
1166 cd $ac_dir
1167 # Check for guested configure; otherwise get Cygnus style configure.
1168 if test -f $ac_srcdir/configure.gnu; then
1169 echo
1170 $SHELL $ac_srcdir/configure.gnu --help=recursive
1171 elif test -f $ac_srcdir/configure; then
1172 echo
1173 $SHELL $ac_srcdir/configure --help=recursive
1174 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1175 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1176 echo
1177 $ac_configure --help
1178 else
1179 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1180 fi
ea7db9ff 1181 cd $ac_popdir
a848cd7e
SC
1182 done
1183fi
1184
1185test -n "$ac_init_help" && exit 0
1186if $ac_init_version; then
1187 cat <<\_ACEOF
77ffb593 1188wxWidgets configure 2.5.2
ac1cb8d3 1189generated by GNU Autoconf 2.59
a848cd7e 1190
ac1cb8d3 1191Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1192This configure script is free software; the Free Software Foundation
1193gives unlimited permission to copy, distribute and modify it.
1194_ACEOF
1195 exit 0
1196fi
1197exec 5>config.log
1198cat >&5 <<_ACEOF
1199This file contains any messages produced by compilers while
1200running configure, to aid debugging if configure makes a mistake.
1201
77ffb593 1202It was created by wxWidgets $as_me 2.5.2, which was
ac1cb8d3 1203generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1204
1205 $ $0 $@
1206
1207_ACEOF
1208{
1209cat <<_ASUNAME
1210## --------- ##
1211## Platform. ##
1212## --------- ##
1213
1214hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1215uname -m = `(uname -m) 2>/dev/null || echo unknown`
1216uname -r = `(uname -r) 2>/dev/null || echo unknown`
1217uname -s = `(uname -s) 2>/dev/null || echo unknown`
1218uname -v = `(uname -v) 2>/dev/null || echo unknown`
1219
1220/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1221/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1222
1223/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1224/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1225/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1226hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1227/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1228/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1229/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1230
1231_ASUNAME
1232
1233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1234for as_dir in $PATH
1235do
1236 IFS=$as_save_IFS
1237 test -z "$as_dir" && as_dir=.
1238 echo "PATH: $as_dir"
1239done
1240
1241} >&5
1242
1243cat >&5 <<_ACEOF
1244
1245
1246## ----------- ##
1247## Core tests. ##
1248## ----------- ##
1249
1250_ACEOF
1251
1252
1253# Keep a trace of the command line.
1254# Strip out --no-create and --no-recursion so they do not pile up.
1255# Strip out --silent because we don't want to record it for future runs.
1256# Also quote any args containing shell meta-characters.
1257# Make two passes to allow for proper duplicate-argument suppression.
1258ac_configure_args=
1259ac_configure_args0=
1260ac_configure_args1=
1261ac_sep=
1262ac_must_keep_next=false
1263for ac_pass in 1 2
1264do
1265 for ac_arg
1266 do
1267 case $ac_arg in
1268 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1269 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1270 | -silent | --silent | --silen | --sile | --sil)
1271 continue ;;
1272 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1273 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1274 esac
1275 case $ac_pass in
1276 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1277 2)
1278 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1279 if test $ac_must_keep_next = true; then
ac1cb8d3 1280 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1281 else
ac1cb8d3
VS
1282 case $ac_arg in
1283 *=* | --config-cache | -C | -disable-* | --disable-* \
1284 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1285 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1286 | -with-* | --with-* | -without-* | --without-* | --x)
1287 case "$ac_configure_args0 " in
1288 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1289 esac
1290 ;;
1291 -* ) ac_must_keep_next=true ;;
1292 esac
a848cd7e
SC
1293 fi
1294 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1295 # Get rid of the leading space.
1296 ac_sep=" "
1297 ;;
1298 esac
1299 done
1300done
1301$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1302$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1303
1304# When interrupted or exit'd, cleanup temporary files, and complete
1305# config.log. We remove comments because anyway the quotes in there
1306# would cause problems or look ugly.
1307# WARNING: Be sure not to use single quotes in there, as some shells,
1308# such as our DU 5.0 friend, will then `close' the trap.
1309trap 'exit_status=$?
1310 # Save into config.log some information that might help in debugging.
1311 {
1312 echo
1313
1314 cat <<\_ASBOX
1315## ---------------- ##
1316## Cache variables. ##
1317## ---------------- ##
1318_ASBOX
1319 echo
1320 # The following way of writing the cache mishandles newlines in values,
1321{
1322 (set) 2>&1 |
1323 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1324 *ac_space=\ *)
1325 sed -n \
ac1cb8d3
VS
1326 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1327 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1328 ;;
1329 *)
1330 sed -n \
ac1cb8d3 1331 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1332 ;;
1333 esac;
1334}
1335 echo
1336
1337 cat <<\_ASBOX
1338## ----------------- ##
1339## Output variables. ##
1340## ----------------- ##
1341_ASBOX
1342 echo
1343 for ac_var in $ac_subst_vars
1344 do
1345 eval ac_val=$`echo $ac_var`
1346 echo "$ac_var='"'"'$ac_val'"'"'"
1347 done | sort
1348 echo
1349
1350 if test -n "$ac_subst_files"; then
1351 cat <<\_ASBOX
1352## ------------- ##
1353## Output files. ##
1354## ------------- ##
1355_ASBOX
1356 echo
1357 for ac_var in $ac_subst_files
1358 do
1359 eval ac_val=$`echo $ac_var`
ac1cb8d3 1360 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1361 done | sort
1362 echo
1363 fi
1364
1365 if test -s confdefs.h; then
1366 cat <<\_ASBOX
1367## ----------- ##
1368## confdefs.h. ##
1369## ----------- ##
1370_ASBOX
1371 echo
1372 sed "/^$/d" confdefs.h | sort
1373 echo
1374 fi
1375 test "$ac_signal" != 0 &&
1376 echo "$as_me: caught signal $ac_signal"
1377 echo "$as_me: exit $exit_status"
1378 } >&5
ac1cb8d3 1379 rm -f core *.core &&
a848cd7e
SC
1380 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1381 exit $exit_status
1382 ' 0
1383for ac_signal in 1 2 13 15; do
1384 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1385done
1386ac_signal=0
1387
1388# confdefs.h avoids OS command line length limits that DEFS can exceed.
1389rm -rf conftest* confdefs.h
1390# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1391echo >confdefs.h
1392
1393# Predefined preprocessor variables.
1394
1395cat >>confdefs.h <<_ACEOF
1396#define PACKAGE_NAME "$PACKAGE_NAME"
1397_ACEOF
1398
1399
1400cat >>confdefs.h <<_ACEOF
1401#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1402_ACEOF
1403
1404
1405cat >>confdefs.h <<_ACEOF
1406#define PACKAGE_VERSION "$PACKAGE_VERSION"
1407_ACEOF
1408
1409
1410cat >>confdefs.h <<_ACEOF
1411#define PACKAGE_STRING "$PACKAGE_STRING"
1412_ACEOF
1413
1414
1415cat >>confdefs.h <<_ACEOF
1416#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1417_ACEOF
1418
1419
1420# Let the site file select an alternate cache file if it wants to.
1421# Prefer explicitly selected file to automatically selected ones.
1422if test -z "$CONFIG_SITE"; then
1423 if test "x$prefix" != xNONE; then
1424 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1425 else
1426 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1427 fi
1428fi
1429for ac_site_file in $CONFIG_SITE; do
1430 if test -r "$ac_site_file"; then
1431 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1432echo "$as_me: loading site script $ac_site_file" >&6;}
1433 sed 's/^/| /' "$ac_site_file" >&5
1434 . "$ac_site_file"
1435 fi
1436done
1437
1438if test -r "$cache_file"; then
1439 # Some versions of bash will fail to source /dev/null (special
1440 # files actually), so we avoid doing that.
1441 if test -f "$cache_file"; then
1442 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1443echo "$as_me: loading cache $cache_file" >&6;}
1444 case $cache_file in
1445 [\\/]* | ?:[\\/]* ) . $cache_file;;
1446 *) . ./$cache_file;;
1447 esac
1448 fi
1449else
1450 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1451echo "$as_me: creating cache $cache_file" >&6;}
1452 >$cache_file
1453fi
1454
1455# Check that the precious variables saved in the cache have kept the same
1456# value.
1457ac_cache_corrupted=false
1458for ac_var in `(set) 2>&1 |
ac1cb8d3 1459 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1460 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1461 eval ac_new_set=\$ac_env_${ac_var}_set
1462 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1463 eval ac_new_val="\$ac_env_${ac_var}_value"
1464 case $ac_old_set,$ac_new_set in
1465 set,)
1466 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1467echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1468 ac_cache_corrupted=: ;;
1469 ,set)
1470 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1471echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1472 ac_cache_corrupted=: ;;
1473 ,);;
1474 *)
1475 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1476 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1477echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1478 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1479echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1480 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1481echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1482 ac_cache_corrupted=:
a848cd7e
SC
1483 fi;;
1484 esac
1485 # Pass precious variables to config.status.
1486 if test "$ac_new_set" = set; then
1487 case $ac_new_val in
1488 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1489 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1490 *) ac_arg=$ac_var=$ac_new_val ;;
1491 esac
1492 case " $ac_configure_args " in
1493 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1494 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1495 esac
1496 fi
1497done
1498if $ac_cache_corrupted; then
1499 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1500echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1501 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1502echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1503 { (exit 1); exit 1; }; }
1504fi
1505
1506ac_ext=c
1507ac_cpp='$CPP $CPPFLAGS'
1508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1510ac_compiler_gnu=$ac_cv_c_compiler_gnu
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541ac_aux_dir=
1542for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1543 if test -f $ac_dir/install-sh; then
1544 ac_aux_dir=$ac_dir
1545 ac_install_sh="$ac_aux_dir/install-sh -c"
1546 break
1547 elif test -f $ac_dir/install.sh; then
1548 ac_aux_dir=$ac_dir
1549 ac_install_sh="$ac_aux_dir/install.sh -c"
1550 break
1551 elif test -f $ac_dir/shtool; then
1552 ac_aux_dir=$ac_dir
1553 ac_install_sh="$ac_aux_dir/shtool install -c"
1554 break
1555 fi
1556done
1557if test -z "$ac_aux_dir"; then
1558 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1559echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1560 { (exit 1); exit 1; }; }
1561fi
1562ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1563ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1564ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1565
1566# Make sure we can run config.sub.
1567$ac_config_sub sun4 >/dev/null 2>&1 ||
1568 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1569echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1570 { (exit 1); exit 1; }; }
1571
1572echo "$as_me:$LINENO: checking build system type" >&5
1573echo $ECHO_N "checking build system type... $ECHO_C" >&6
1574if test "${ac_cv_build+set}" = set; then
1575 echo $ECHO_N "(cached) $ECHO_C" >&6
1576else
1577 ac_cv_build_alias=$build_alias
1578test -z "$ac_cv_build_alias" &&
1579 ac_cv_build_alias=`$ac_config_guess`
1580test -z "$ac_cv_build_alias" &&
1581 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1582echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1583 { (exit 1); exit 1; }; }
1584ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1585 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1586echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1587 { (exit 1); exit 1; }; }
1588
1589fi
1590echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1591echo "${ECHO_T}$ac_cv_build" >&6
1592build=$ac_cv_build
1593build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1594build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1595build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1596
1597
1598echo "$as_me:$LINENO: checking host system type" >&5
1599echo $ECHO_N "checking host system type... $ECHO_C" >&6
1600if test "${ac_cv_host+set}" = set; then
1601 echo $ECHO_N "(cached) $ECHO_C" >&6
1602else
1603 ac_cv_host_alias=$host_alias
1604test -z "$ac_cv_host_alias" &&
1605 ac_cv_host_alias=$ac_cv_build_alias
1606ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1607 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1608echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1609 { (exit 1); exit 1; }; }
1610
1611fi
1612echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1613echo "${ECHO_T}$ac_cv_host" >&6
1614host=$ac_cv_host
1615host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1616host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1617host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1618
1619
1620echo "$as_me:$LINENO: checking target system type" >&5
1621echo $ECHO_N "checking target system type... $ECHO_C" >&6
1622if test "${ac_cv_target+set}" = set; then
1623 echo $ECHO_N "(cached) $ECHO_C" >&6
1624else
1625 ac_cv_target_alias=$target_alias
1626test "x$ac_cv_target_alias" = "x" &&
1627 ac_cv_target_alias=$ac_cv_host_alias
1628ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1629 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1630echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1631 { (exit 1); exit 1; }; }
1632
1633fi
1634echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1635echo "${ECHO_T}$ac_cv_target" >&6
1636target=$ac_cv_target
1637target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1638target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1639target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1640
1641
1642# The aliases save the names the user supplied, while $host etc.
1643# will get canonicalized.
1644test -n "$target_alias" &&
1645 test "$program_prefix$program_suffix$program_transform_name" = \
1646 NONENONEs,x,x, &&
1647 program_prefix=${target_alias}-
1648
1649
1650
1651WX_MAJOR_VERSION_NUMBER=2
1652WX_MINOR_VERSION_NUMBER=5
de59c161 1653WX_RELEASE_NUMBER=2
224bf05c 1654WX_SUBRELEASE_NUMBER=3
a848cd7e
SC
1655
1656WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1657WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1658
1659WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1660
de59c161 1661WX_CURRENT=2
a848cd7e
SC
1662WX_REVISION=0
1663WX_AGE=0
1664
1665
1666
1667USE_UNIX=1
1668USE_OS2=0
1669USE_WIN32=0
1670USE_DOS=0
1671USE_BEOS=0
1672USE_MAC=0
1673
1674USE_AIX=
1675USE_BSD= USE_DARWIN= USE_FREEBSD=
1676USE_GNU= USE_HPUX=
1677USE_LINUX=
1678USE_NETBSD=
1679USE_OPENBSD=
1680USE_OSF= USE_SGI=
1681USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1682USE_ULTRIX=
1683USE_UNIXWARE=
1684
1685USE_ALPHA=
1686
1687NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1688
1689ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1690
1691DEFAULT_wxUSE_COCOA=0
1692DEFAULT_wxUSE_GTK=0
1693DEFAULT_wxUSE_MAC=0
1694DEFAULT_wxUSE_MGL=0
1695DEFAULT_wxUSE_MICROWIN=0
1696DEFAULT_wxUSE_MOTIF=0
1697DEFAULT_wxUSE_MSW=0
1698DEFAULT_wxUSE_PM=0
1699DEFAULT_wxUSE_X11=0
1700
1701DEFAULT_DEFAULT_wxUSE_COCOA=0
1702DEFAULT_DEFAULT_wxUSE_GTK=0
1703DEFAULT_DEFAULT_wxUSE_MAC=0
1704DEFAULT_DEFAULT_wxUSE_MGL=0
1705DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1706DEFAULT_DEFAULT_wxUSE_MOTIF=0
1707DEFAULT_DEFAULT_wxUSE_MSW=0
1708DEFAULT_DEFAULT_wxUSE_PM=0
1709DEFAULT_DEFAULT_wxUSE_X11=0
1710
1711PROGRAM_EXT=
1712SO_SUFFIX=so
1713SAMPLES_RPATH_FLAG=
1714SAMPLES_RPATH_POSTLINK=
1715
1716case "${host}" in
1717 *-hp-hpux* )
1718 USE_HPUX=1
1719 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1720 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1721 SO_SUFFIX=sl
1722 cat >>confdefs.h <<\_ACEOF
1723#define __HPUX__ 1
1724_ACEOF
1725
1726 ;;
1727 *-*-linux* )
1728 USE_LINUX=1
1729 cat >>confdefs.h <<\_ACEOF
1730#define __LINUX__ 1
1731_ACEOF
1732
1733 TMP=`uname -m`
1734 if test "x$TMP" = "xalpha"; then
1735 USE_ALPHA=1
1736 cat >>confdefs.h <<\_ACEOF
1737#define __ALPHA__ 1
1738_ACEOF
1739
1740 fi
1741 DEFAULT_DEFAULT_wxUSE_GTK=1
1742 ;;
1743 *-*-gnu* | *-*-k*bsd*-gnu )
1744 USE_GNU=1
1745 TMP=`uname -m`
1746 if test "x$TMP" = "xalpha"; then
1747 USE_ALPHA=1
1748 cat >>confdefs.h <<\_ACEOF
1749#define __ALPHA__ 1
1750_ACEOF
1751
1752 fi
1753 DEFAULT_DEFAULT_wxUSE_GTK=1
1754 ;;
1755 *-*-irix5* | *-*-irix6* )
1756 USE_SGI=1
1757 USE_SVR4=1
1758 cat >>confdefs.h <<\_ACEOF
1759#define __SGI__ 1
1760_ACEOF
1761
1762 cat >>confdefs.h <<\_ACEOF
1763#define __SVR4__ 1
1764_ACEOF
1765
1766 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1767 ;;
1768 *-*-solaris2* )
1769 USE_SUN=1
1770 USE_SOLARIS=1
1771 USE_SVR4=1
1772 cat >>confdefs.h <<\_ACEOF
1773#define __SUN__ 1
1774_ACEOF
1775
1776 cat >>confdefs.h <<\_ACEOF
1777#define __SOLARIS__ 1
1778_ACEOF
1779
1780 cat >>confdefs.h <<\_ACEOF
1781#define __SVR4__ 1
1782_ACEOF
1783
1784 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1785 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1786 ;;
1787 *-*-sunos4* )
1788 USE_SUN=1
1789 USE_SUNOS=1
1790 USE_BSD=1
1791 cat >>confdefs.h <<\_ACEOF
1792#define __SUN__ 1
1793_ACEOF
1794
1795 cat >>confdefs.h <<\_ACEOF
1796#define __SUNOS__ 1
1797_ACEOF
1798
1799 cat >>confdefs.h <<\_ACEOF
1800#define __BSD__ 1
1801_ACEOF
1802
1803 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1804 ;;
1805 *-*-freebsd*)
1806 USE_BSD=1
1807 USE_FREEBSD=1
1808 cat >>confdefs.h <<\_ACEOF
1809#define __FREEBSD__ 1
1810_ACEOF
1811
1812 cat >>confdefs.h <<\_ACEOF
1813#define __BSD__ 1
1814_ACEOF
1815
1816 DEFAULT_DEFAULT_wxUSE_GTK=1
1817 ;;
1818 *-*-openbsd*)
1819 USE_BSD=1
1820 USE_OPENBSD=1
1821 cat >>confdefs.h <<\_ACEOF
1822#define __OPENBSD__ 1
1823_ACEOF
1824
1825 cat >>confdefs.h <<\_ACEOF
1826#define __BSD__ 1
1827_ACEOF
1828
1829 DEFAULT_DEFAULT_wxUSE_GTK=1
1830 ;;
1831 *-*-netbsd*)
1832 USE_BSD=1
1833 USE_NETBSD=1
1834 cat >>confdefs.h <<\_ACEOF
1835#define __NETBSD__ 1
1836_ACEOF
1837
1838 cat >>confdefs.h <<\_ACEOF
1839#define __BSD__ 1
1840_ACEOF
1841
1842 DEFAULT_DEFAULT_wxUSE_GTK=1
1843 ;;
1844 *-*-osf* )
1845 USE_ALPHA=1
1846 USE_OSF=1
1847 cat >>confdefs.h <<\_ACEOF
1848#define __ALPHA__ 1
1849_ACEOF
1850
1851 cat >>confdefs.h <<\_ACEOF
1852#define __OSF__ 1
1853_ACEOF
1854
1855 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1856 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1857 ;;
1858 *-*-dgux5* )
1859 USE_ALPHA=1
1860 USE_SVR4=1
1861 cat >>confdefs.h <<\_ACEOF
1862#define __ALPHA__ 1
1863_ACEOF
1864
1865 cat >>confdefs.h <<\_ACEOF
1866#define __SVR4__ 1
1867_ACEOF
1868
1869 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1870 ;;
1871 *-*-sysv5* )
1872 USE_SYSV=1
1873 USE_SVR4=1
1874 cat >>confdefs.h <<\_ACEOF
1875#define __SYSV__ 1
1876_ACEOF
1877
1878 cat >>confdefs.h <<\_ACEOF
1879#define __SVR4__ 1
1880_ACEOF
1881
1882 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1883 ;;
1884 *-*-aix* )
1885 USE_AIX=1
1886 USE_SYSV=1
1887 USE_SVR4=1
1888 SO_SUFFIX=a
1889 cat >>confdefs.h <<\_ACEOF
1890#define __AIX__ 1
1891_ACEOF
1892
1893 cat >>confdefs.h <<\_ACEOF
1894#define __SYSV__ 1
1895_ACEOF
1896
1897 cat >>confdefs.h <<\_ACEOF
1898#define __SVR4__ 1
1899_ACEOF
1900
1901 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1902 ;;
1903
1904 *-*-*UnixWare*)
1905 USE_SYSV=1
1906 USE_SVR4=1
1907 USE_UNIXWARE=1
1908 cat >>confdefs.h <<\_ACEOF
1909#define __UNIXWARE__ 1
1910_ACEOF
1911
1912 ;;
1913
1914 *-*-cygwin* | *-*-mingw32* )
1915 SO_SUFFIX=dll
1916 PROGRAM_EXT=".exe"
1917 RESCOMP=windres
1918 DEFAULT_DEFAULT_wxUSE_MSW=1
1919 ;;
1920
1921 *-pc-msdosdjgpp )
1922 USE_UNIX=0
1923 USE_DOS=1
1924 cat >>confdefs.h <<\_ACEOF
1925#define __DOS__ 1
1926_ACEOF
1927
1928 PROGRAM_EXT=".exe"
1929 DEFAULT_DEFAULT_wxUSE_MGL=1
1930 LIBS="$LIBS -lstdc++"
1931 ;;
1932
1933 *-pc-os2_emx | *-pc-os2-emx )
1934 cat >>confdefs.h <<\_ACEOF
1935#define __EMX__ 1
1936_ACEOF
1937
1938 USE_OS2=1
1939 cat >>confdefs.h <<\_ACEOF
1940#define __OS2__ 1
1941_ACEOF
1942
1943 PROGRAM_EXT=".exe"
1944 DEFAULT_DEFAULT_wxUSE_PM=1
1945 CXX=gcc
1946 LDFLAGS="$LDFLAGS -Zcrtdll"
1947 ac_executable_extensions=".exe"
1948 export ac_executable_extensions
1949 ac_save_IFS="$IFS"
1950 IFS='\\'
1951 ac_TEMP_PATH=
1952 for ac_dir in $PATH; do
1953 IFS=$ac_save_IFS
1954 if test -z "$ac_TEMP_PATH"; then
1955 ac_TEMP_PATH="$ac_dir"
1956 else
1957 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1958 fi
1959 done
1960 export PATH="$ac_TEMP_PATH"
1961 unset ac_TEMP_PATH
1962 ;;
1963
1964 powerpc-*-darwin* )
1965 USE_BSD=1
1966 USE_DARWIN=1
1967 SO_SUFFIX=dylib
1968 cat >>confdefs.h <<\_ACEOF
1969#define __BSD__ 1
1970_ACEOF
1971
1972 cat >>confdefs.h <<\_ACEOF
1973#define __DARWIN__ 1
1974_ACEOF
1975
1976 cat >>confdefs.h <<\_ACEOF
1977#define __POWERPC__ 1
1978_ACEOF
1979
1980 cat >>confdefs.h <<\_ACEOF
1981#define TARGET_CARBON 1
1982_ACEOF
1983
1984 DEFAULT_DEFAULT_wxUSE_MAC=1
1985 ;;
1986
1987 *-*-beos* )
1988 USE_BEOS=1
1989 cat >>confdefs.h <<\_ACEOF
1990#define __BEOS__ 1
1991_ACEOF
1992
1993 ;;
1994
1995 *)
1996 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
1997echo "$as_me: error: unknown system type ${host}." >&2;}
1998 { (exit 1); exit 1; }; }
1999esac
2000
2001
2002
2003
2004 wx_arg_cache_file="configarg.cache"
2005 echo "loading argument cache $wx_arg_cache_file"
2006 rm -f ${wx_arg_cache_file}.tmp
2007 touch ${wx_arg_cache_file}.tmp
2008 touch ${wx_arg_cache_file}
2009
2010
2011DEBUG_CONFIGURE=0
2012if test $DEBUG_CONFIGURE = 1; then
2013 DEFAULT_wxUSE_UNIVERSAL=no
2014 DEFAULT_wxUSE_STL=no
2015
2016 DEFAULT_wxUSE_NANOX=no
2017
2018 DEFAULT_wxUSE_THREADS=yes
2019
2020 DEFAULT_wxUSE_SHARED=yes
2021 DEFAULT_wxUSE_OPTIMISE=no
2022 DEFAULT_wxUSE_PROFILE=no
2023 DEFAULT_wxUSE_NO_DEPS=no
2024 DEFAULT_wxUSE_NO_RTTI=no
2025 DEFAULT_wxUSE_NO_EXCEPTIONS=no
2026 DEFAULT_wxUSE_PERMISSIVE=no
2027 DEFAULT_wxUSE_DEBUG_FLAG=yes
2028 DEFAULT_wxUSE_DEBUG_INFO=yes
2029 DEFAULT_wxUSE_DEBUG_GDB=yes
2030 DEFAULT_wxUSE_MEM_TRACING=no
2031 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2032 DEFAULT_wxUSE_DMALLOC=no
2033 DEFAULT_wxUSE_APPLE_IEEE=no
2034
2035 DEFAULT_wxUSE_EXCEPTIONS=no
2036 DEFAULT_wxUSE_LOG=yes
2037 DEFAULT_wxUSE_LOGWINDOW=no
2038 DEFAULT_wxUSE_LOGGUI=no
2039 DEFAULT_wxUSE_LOGDIALOG=no
2040
2041 DEFAULT_wxUSE_GUI=yes
2042 DEFAULT_wxUSE_CONTROLS=no
2043
2044 DEFAULT_wxUSE_REGEX=no
2045 DEFAULT_wxUSE_XML=no
2046 DEFAULT_wxUSE_EXPAT=no
2047 DEFAULT_wxUSE_ZLIB=no
2048 DEFAULT_wxUSE_LIBPNG=no
2049 DEFAULT_wxUSE_LIBJPEG=no
2050 DEFAULT_wxUSE_LIBTIFF=no
2051 DEFAULT_wxUSE_LIBXPM=no
2052 DEFAULT_wxUSE_LIBMSPACK=no
2053 DEFAULT_wxUSE_LIBSDL=no
2054 DEFAULT_wxUSE_ODBC=no
2055 DEFAULT_wxUSE_OPENGL=no
2056
2057 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
2058 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2059 DEFAULT_wxUSE_STD_IOSTREAM=no
2060 DEFAULT_wxUSE_CMDLINE_PARSER=no
2061 DEFAULT_wxUSE_DATETIME=no
2062 DEFAULT_wxUSE_TIMER=no
2063 DEFAULT_wxUSE_STOPWATCH=no
2064 DEFAULT_wxUSE_FILE=no
2065 DEFAULT_wxUSE_FFILE=no
2066 DEFAULT_wxUSE_TEXTBUFFER=no
2067 DEFAULT_wxUSE_TEXTFILE=no
2068 DEFAULT_wxUSE_SOUND=no
2069 DEFAULT_wxUSE_INTL=no
2070 DEFAULT_wxUSE_CONFIG=no
2071 DEFAULT_wxUSE_FONTMAP=no
2072 DEFAULT_wxUSE_STREAMS=no
2073 DEFAULT_wxUSE_SOCKETS=no
2074 DEFAULT_wxUSE_OLE=no
2075 DEFAULT_wxUSE_DATAOBJ=no
2076 DEFAULT_wxUSE_DIALUP_MANAGER=no
2077 DEFAULT_wxUSE_JOYSTICK=no
2078 DEFAULT_wxUSE_DYNLIB_CLASS=no
2079 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2080 DEFAULT_wxUSE_LONGLONG=no
2081 DEFAULT_wxUSE_GEOMETRY=no
2082
2083 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2084 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2085 DEFAULT_wxUSE_POSTSCRIPT=no
2086
2087 DEFAULT_wxUSE_CLIPBOARD=no
2088 DEFAULT_wxUSE_TOOLTIPS=no
2089 DEFAULT_wxUSE_DRAG_AND_DROP=no
2090 DEFAULT_wxUSE_DRAGIMAGE=no
2091 DEFAULT_wxUSE_SPLINES=no
2092
8a7b1113 2093 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2094 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2095 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2096 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2097
2098 DEFAULT_wxUSE_RESOURCES=no
2099 DEFAULT_wxUSE_CONSTRAINTS=no
2100 DEFAULT_wxUSE_IPC=no
2101 DEFAULT_wxUSE_HELP=no
2102 DEFAULT_wxUSE_MS_HTML_HELP=no
2103 DEFAULT_wxUSE_WXHTML_HELP=no
2104 DEFAULT_wxUSE_TREELAYOUT=no
2105 DEFAULT_wxUSE_METAFILE=no
2106 DEFAULT_wxUSE_MIMETYPE=no
2107 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2108 DEFAULT_wxUSE_PROTOCOL=no
2109 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2110 DEFAULT_wxUSE_PROTOCOL_FTP=no
2111 DEFAULT_wxUSE_PROTOCOL_FILE=no
2112 DEFAULT_wxUSE_URL=no
2113
2114 DEFAULT_wxUSE_COMMONDLGS=no
2115 DEFAULT_wxUSE_CHOICEDLG=no
2116 DEFAULT_wxUSE_COLOURDLG=no
2117 DEFAULT_wxUSE_DIRDLG=no
2118 DEFAULT_wxUSE_FILEDLG=no
2119 DEFAULT_wxUSE_FINDREPLDLG=no
2120 DEFAULT_wxUSE_FONTDLG=no
2121 DEFAULT_wxUSE_MSGDLG=no
2122 DEFAULT_wxUSE_NUMBERDLG=no
2123 DEFAULT_wxUSE_TEXTDLG=no
2124 DEFAULT_wxUSE_SPLASH=no
2125 DEFAULT_wxUSE_STARTUP_TIPS=no
2126 DEFAULT_wxUSE_PROGRESSDLG=no
2127 DEFAULT_wxUSE_WIZARDDLG=no
2128
2129 DEFAULT_wxUSE_MENUS=no
2130 DEFAULT_wxUSE_MINIFRAME=no
2131 DEFAULT_wxUSE_HTML=no
646b6ec1 2132 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2133 DEFAULT_wxUSE_FILESYSTEM=no
2134 DEFAULT_wxUSE_FS_INET=no
2135 DEFAULT_wxUSE_FS_ZIP=no
2136 DEFAULT_wxUSE_BUSYINFO=no
2137 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2138 DEFAULT_wxUSE_VALIDATORS=no
2139
2140 DEFAULT_wxUSE_ACCEL=no
2141 DEFAULT_wxUSE_BUTTON=no
2142 DEFAULT_wxUSE_BMPBUTTON=no
2143 DEFAULT_wxUSE_CALCTRL=no
2144 DEFAULT_wxUSE_CARET=no
2145 DEFAULT_wxUSE_CHECKBOX=no
2146 DEFAULT_wxUSE_CHECKLST=no
2147 DEFAULT_wxUSE_CHOICE=no
2148 DEFAULT_wxUSE_COMBOBOX=no
2149 DEFAULT_wxUSE_DISPLAY=no
2150 DEFAULT_wxUSE_GAUGE=no
2151 DEFAULT_wxUSE_GRID=no
2152 DEFAULT_wxUSE_IMAGLIST=no
2153 DEFAULT_wxUSE_LISTBOOK=no
2154 DEFAULT_wxUSE_LISTBOX=no
2155 DEFAULT_wxUSE_LISTCTRL=no
2156 DEFAULT_wxUSE_NOTEBOOK=no
2157 DEFAULT_wxUSE_RADIOBOX=no
2158 DEFAULT_wxUSE_RADIOBTN=no
2159 DEFAULT_wxUSE_SASH=no
2160 DEFAULT_wxUSE_SCROLLBAR=no
2161 DEFAULT_wxUSE_SLIDER=no
2162 DEFAULT_wxUSE_SPINBTN=no
2163 DEFAULT_wxUSE_SPINCTRL=no
2164 DEFAULT_wxUSE_SPLITTER=no
2165 DEFAULT_wxUSE_STATBMP=no
2166 DEFAULT_wxUSE_STATBOX=no
2167 DEFAULT_wxUSE_STATLINE=no
2168 DEFAULT_wxUSE_STATTEXT=no
2169 DEFAULT_wxUSE_STATUSBAR=yes
2170 DEFAULT_wxUSE_TABDIALOG=no
2171 DEFAULT_wxUSE_TEXTCTRL=no
2172 DEFAULT_wxUSE_TOGGLEBTN=no
2173 DEFAULT_wxUSE_TOOLBAR=no
2174 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2175 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2176 DEFAULT_wxUSE_TREECTRL=no
2177 DEFAULT_wxUSE_POPUPWIN=no
2178 DEFAULT_wxUSE_TIPWINDOW=no
2179
2180 DEFAULT_wxUSE_UNICODE=no
2181 DEFAULT_wxUSE_UNICODE_MSLU=no
2182 DEFAULT_wxUSE_WCSRTOMBS=no
2183
2184 DEFAULT_wxUSE_PALETTE=no
2185 DEFAULT_wxUSE_IMAGE=no
2186 DEFAULT_wxUSE_GIF=no
2187 DEFAULT_wxUSE_PCX=no
2188 DEFAULT_wxUSE_PNM=no
2189 DEFAULT_wxUSE_IFF=no
2190 DEFAULT_wxUSE_XPM=no
2191 DEFAULT_wxUSE_ICO_CUR=no
2192 DEFAULT_wxUSE_ACCESSIBILITY=no
2193
2194 DEFAULT_wxUSE_MONOLITHIC=no
2195 DEFAULT_wxUSE_PLUGINS=no
2196 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2197else
2198 DEFAULT_wxUSE_UNIVERSAL=no
2199 DEFAULT_wxUSE_STL=no
2200
2201 DEFAULT_wxUSE_NANOX=no
2202
2203 DEFAULT_wxUSE_THREADS=yes
2204
2205 DEFAULT_wxUSE_SHARED=yes
2206 DEFAULT_wxUSE_OPTIMISE=yes
2207 DEFAULT_wxUSE_PROFILE=no
2208 DEFAULT_wxUSE_NO_DEPS=no
2209 DEFAULT_wxUSE_NO_RTTI=no
2210 DEFAULT_wxUSE_NO_EXCEPTIONS=no
2211 DEFAULT_wxUSE_PERMISSIVE=no
2212 DEFAULT_wxUSE_DEBUG_FLAG=no
2213 DEFAULT_wxUSE_DEBUG_INFO=no
2214 DEFAULT_wxUSE_DEBUG_GDB=no
2215 DEFAULT_wxUSE_MEM_TRACING=no
2216 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2217 DEFAULT_wxUSE_DMALLOC=no
2218 DEFAULT_wxUSE_APPLE_IEEE=yes
2219
2220 DEFAULT_wxUSE_EXCEPTIONS=yes
2221 DEFAULT_wxUSE_LOG=yes
2222 DEFAULT_wxUSE_LOGWINDOW=yes
2223 DEFAULT_wxUSE_LOGGUI=yes
2224 DEFAULT_wxUSE_LOGDIALOG=yes
2225
2226 DEFAULT_wxUSE_GUI=yes
2227
2228 DEFAULT_wxUSE_REGEX=yes
2229 DEFAULT_wxUSE_XML=yes
2230 DEFAULT_wxUSE_EXPAT=yes
2231 DEFAULT_wxUSE_ZLIB=yes
2232 DEFAULT_wxUSE_LIBPNG=yes
2233 DEFAULT_wxUSE_LIBJPEG=yes
2234 DEFAULT_wxUSE_LIBTIFF=yes
2235 DEFAULT_wxUSE_LIBXPM=yes
2236 DEFAULT_wxUSE_LIBMSPACK=yes
2237 DEFAULT_wxUSE_LIBSDL=no
2238 DEFAULT_wxUSE_ODBC=no
2239 DEFAULT_wxUSE_OPENGL=no
2240
2241 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
2242 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2243 DEFAULT_wxUSE_STD_IOSTREAM=no
2244 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2245 DEFAULT_wxUSE_DATETIME=yes
2246 DEFAULT_wxUSE_TIMER=yes
2247 DEFAULT_wxUSE_STOPWATCH=yes
2248 DEFAULT_wxUSE_FILE=yes
2249 DEFAULT_wxUSE_FFILE=yes
2250 DEFAULT_wxUSE_TEXTBUFFER=yes
2251 DEFAULT_wxUSE_TEXTFILE=yes
2252 DEFAULT_wxUSE_SOUND=yes
2253 DEFAULT_wxUSE_INTL=yes
2254 DEFAULT_wxUSE_CONFIG=yes
2255 DEFAULT_wxUSE_FONTMAP=yes
2256 DEFAULT_wxUSE_STREAMS=yes
2257 DEFAULT_wxUSE_SOCKETS=yes
2258 DEFAULT_wxUSE_OLE=yes
2259 DEFAULT_wxUSE_DATAOBJ=yes
2260 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2261 DEFAULT_wxUSE_JOYSTICK=yes
2262 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2263 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2264 DEFAULT_wxUSE_LONGLONG=yes
2265 DEFAULT_wxUSE_GEOMETRY=yes
2266
2267 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2268 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2269 DEFAULT_wxUSE_POSTSCRIPT=yes
2270
2271 DEFAULT_wxUSE_CLIPBOARD=yes
2272 DEFAULT_wxUSE_TOOLTIPS=yes
2273 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2274 DEFAULT_wxUSE_DRAGIMAGE=yes
2275 DEFAULT_wxUSE_SPLINES=yes
2276
8a7b1113 2277 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2278 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2279 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2280 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2281
2282 DEFAULT_wxUSE_RESOURCES=no
2283 DEFAULT_wxUSE_CONSTRAINTS=yes
2284 DEFAULT_wxUSE_IPC=yes
2285 DEFAULT_wxUSE_HELP=yes
2286 DEFAULT_wxUSE_MS_HTML_HELP=yes
2287 DEFAULT_wxUSE_WXHTML_HELP=yes
2288 DEFAULT_wxUSE_TREELAYOUT=yes
2289 DEFAULT_wxUSE_METAFILE=yes
2290 DEFAULT_wxUSE_MIMETYPE=yes
2291 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2292 DEFAULT_wxUSE_PROTOCOL=yes
2293 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2294 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2295 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2296 DEFAULT_wxUSE_URL=yes
2297
2298 DEFAULT_wxUSE_COMMONDLGS=yes
2299 DEFAULT_wxUSE_CHOICEDLG=yes
2300 DEFAULT_wxUSE_COLOURDLG=yes
2301 DEFAULT_wxUSE_DIRDLG=yes
2302 DEFAULT_wxUSE_FILEDLG=yes
2303 DEFAULT_wxUSE_FINDREPLDLG=yes
2304 DEFAULT_wxUSE_FONTDLG=yes
2305 DEFAULT_wxUSE_MSGDLG=yes
2306 DEFAULT_wxUSE_NUMBERDLG=yes
2307 DEFAULT_wxUSE_TEXTDLG=yes
2308 DEFAULT_wxUSE_SPLASH=yes
2309 DEFAULT_wxUSE_STARTUP_TIPS=yes
2310 DEFAULT_wxUSE_PROGRESSDLG=yes
2311 DEFAULT_wxUSE_WIZARDDLG=yes
2312
2313 DEFAULT_wxUSE_MENUS=yes
2314 DEFAULT_wxUSE_MINIFRAME=yes
2315 DEFAULT_wxUSE_HTML=yes
646b6ec1 2316 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2317 DEFAULT_wxUSE_FILESYSTEM=yes
2318 DEFAULT_wxUSE_FS_INET=yes
2319 DEFAULT_wxUSE_FS_ZIP=yes
2320 DEFAULT_wxUSE_BUSYINFO=yes
2321 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2322 DEFAULT_wxUSE_VALIDATORS=yes
2323
2324 DEFAULT_wxUSE_ACCEL=yes
2325 DEFAULT_wxUSE_BUTTON=yes
2326 DEFAULT_wxUSE_BMPBUTTON=yes
2327 DEFAULT_wxUSE_CALCTRL=yes
2328 DEFAULT_wxUSE_CARET=yes
2329 DEFAULT_wxUSE_CHECKBOX=yes
2330 DEFAULT_wxUSE_CHECKLST=yes
2331 DEFAULT_wxUSE_CHOICE=yes
2332 DEFAULT_wxUSE_COMBOBOX=yes
2333 DEFAULT_wxUSE_DISPLAY=yes
2334 DEFAULT_wxUSE_GAUGE=yes
2335 DEFAULT_wxUSE_GRID=yes
2336 DEFAULT_wxUSE_IMAGLIST=yes
2337 DEFAULT_wxUSE_LISTBOOK=yes
2338 DEFAULT_wxUSE_LISTBOX=yes
2339 DEFAULT_wxUSE_LISTCTRL=yes
2340 DEFAULT_wxUSE_NOTEBOOK=yes
2341 DEFAULT_wxUSE_RADIOBOX=yes
2342 DEFAULT_wxUSE_RADIOBTN=yes
2343 DEFAULT_wxUSE_SASH=yes
2344 DEFAULT_wxUSE_SCROLLBAR=yes
2345 DEFAULT_wxUSE_SLIDER=yes
2346 DEFAULT_wxUSE_SPINBTN=yes
2347 DEFAULT_wxUSE_SPINCTRL=yes
2348 DEFAULT_wxUSE_SPLITTER=yes
2349 DEFAULT_wxUSE_STATBMP=yes
2350 DEFAULT_wxUSE_STATBOX=yes
2351 DEFAULT_wxUSE_STATLINE=yes
2352 DEFAULT_wxUSE_STATTEXT=yes
2353 DEFAULT_wxUSE_STATUSBAR=yes
2354 DEFAULT_wxUSE_TABDIALOG=no
2355 DEFAULT_wxUSE_TEXTCTRL=yes
2356 DEFAULT_wxUSE_TOGGLEBTN=yes
2357 DEFAULT_wxUSE_TOOLBAR=yes
2358 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2359 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2360 DEFAULT_wxUSE_TREECTRL=yes
2361 DEFAULT_wxUSE_POPUPWIN=yes
2362 DEFAULT_wxUSE_TIPWINDOW=yes
2363
2364 DEFAULT_wxUSE_UNICODE=no
2365 DEFAULT_wxUSE_UNICODE_MSLU=yes
2366 DEFAULT_wxUSE_WCSRTOMBS=no
2367
2368 DEFAULT_wxUSE_PALETTE=yes
2369 DEFAULT_wxUSE_IMAGE=yes
2370 DEFAULT_wxUSE_GIF=yes
2371 DEFAULT_wxUSE_PCX=yes
2372 DEFAULT_wxUSE_IFF=no
2373 DEFAULT_wxUSE_PNM=yes
2374 DEFAULT_wxUSE_XPM=yes
2375 DEFAULT_wxUSE_ICO_CUR=yes
2376 DEFAULT_wxUSE_ACCESSIBILITY=no
2377
2378 DEFAULT_wxUSE_MONOLITHIC=no
2379 DEFAULT_wxUSE_PLUGINS=no
2380 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e
VS
2381
2382 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2383fi
2384
2385
2386
2387for toolkit in `echo $ALL_TOOLKITS`; do
2388 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2389 if test "x$LINE" != "x" ; then
2390 has_toolkit_in_cache=1
2391 eval "DEFAULT_$LINE"
2392 eval "CACHE_$toolkit=1"
2393 fi
2394done
2395
2396
2397
2398 enablestring=
2399 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2400echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2401 no_cache=0
2402 # Check whether --enable-gui or --disable-gui was given.
2403if test "${enable_gui+set}" = set; then
2404 enableval="$enable_gui"
2405
2406 if test "$enableval" = yes; then
2407 ac_cv_use_gui='wxUSE_GUI=yes'
2408 else
2409 ac_cv_use_gui='wxUSE_GUI=no'
2410 fi
2411
2412else
2413
2414 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2415 if test "x$LINE" != x ; then
2416 eval "DEFAULT_$LINE"
2417 else
2418 no_cache=1
2419 fi
2420
2421 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2422
2423fi;
2424
2425 eval "$ac_cv_use_gui"
2426 if test "$no_cache" != 1; then
2427 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2428 fi
2429
2430 if test "$wxUSE_GUI" = yes; then
2431 echo "$as_me:$LINENO: result: yes" >&5
2432echo "${ECHO_T}yes" >&6
2433 else
2434 echo "$as_me:$LINENO: result: no" >&5
2435echo "${ECHO_T}no" >&6
2436 fi
2437
2438
2439 enablestring=
2440 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2441echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2442 no_cache=0
2443 # Check whether --enable-monolithic or --disable-monolithic was given.
2444if test "${enable_monolithic+set}" = set; then
2445 enableval="$enable_monolithic"
2446
2447 if test "$enableval" = yes; then
2448 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2449 else
2450 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2451 fi
2452
2453else
2454
2455 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2456 if test "x$LINE" != x ; then
2457 eval "DEFAULT_$LINE"
2458 else
2459 no_cache=1
2460 fi
2461
2462 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2463
2464fi;
2465
2466 eval "$ac_cv_use_monolithic"
2467 if test "$no_cache" != 1; then
2468 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2469 fi
2470
2471 if test "$wxUSE_MONOLITHIC" = yes; then
2472 echo "$as_me:$LINENO: result: yes" >&5
2473echo "${ECHO_T}yes" >&6
2474 else
2475 echo "$as_me:$LINENO: result: no" >&5
2476echo "${ECHO_T}no" >&6
2477 fi
2478
2479
2480 enablestring=
2481 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2482echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2483 no_cache=0
2484 # Check whether --enable-plugins or --disable-plugins was given.
2485if test "${enable_plugins+set}" = set; then
2486 enableval="$enable_plugins"
2487
2488 if test "$enableval" = yes; then
2489 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2490 else
2491 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2492 fi
2493
2494else
2495
2496 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2497 if test "x$LINE" != x ; then
2498 eval "DEFAULT_$LINE"
2499 else
2500 no_cache=1
2501 fi
2502
2503 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2504
2505fi;
2506
2507 eval "$ac_cv_use_plugins"
2508 if test "$no_cache" != 1; then
2509 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2510 fi
2511
2512 if test "$wxUSE_PLUGINS" = yes; then
2513 echo "$as_me:$LINENO: result: yes" >&5
2514echo "${ECHO_T}yes" >&6
2515 else
2516 echo "$as_me:$LINENO: result: no" >&5
2517echo "${ECHO_T}no" >&6
2518 fi
2519
2520
2521if test "$wxUSE_GUI" = "yes"; then
2522
2523
2524 enablestring=
2525 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2526echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2527 no_cache=0
2528 # Check whether --enable-universal or --disable-universal was given.
2529if test "${enable_universal+set}" = set; then
2530 enableval="$enable_universal"
2531
2532 if test "$enableval" = yes; then
2533 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2534 else
2535 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2536 fi
2537
2538else
2539
2540 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2541 if test "x$LINE" != x ; then
2542 eval "DEFAULT_$LINE"
2543 else
2544 no_cache=1
2545 fi
2546
2547 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2548
2549fi;
2550
2551 eval "$ac_cv_use_universal"
2552 if test "$no_cache" != 1; then
2553 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2554 fi
2555
2556 if test "$wxUSE_UNIVERSAL" = yes; then
2557 echo "$as_me:$LINENO: result: yes" >&5
2558echo "${ECHO_T}yes" >&6
2559 else
2560 echo "$as_me:$LINENO: result: no" >&5
2561echo "${ECHO_T}no" >&6
2562 fi
2563
2564
2565# Check whether --with-gtk or --without-gtk was given.
2566if test "${with_gtk+set}" = set; then
2567 withval="$with_gtk"
2568 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2569fi;
2570
2571# Check whether --with-motif or --without-motif was given.
2572if test "${with_motif+set}" = set; then
2573 withval="$with_motif"
2574 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2575fi;
2576
2577# Check whether --with-mac or --without-mac was given.
2578if test "${with_mac+set}" = set; then
2579 withval="$with_mac"
2580 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
2581fi;
2582
2583# Check whether --with-cocoa or --without-cocoa was given.
2584if test "${with_cocoa+set}" = set; then
2585 withval="$with_cocoa"
2586 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
2587fi;
2588
2589# Check whether --with-wine or --without-wine was given.
2590if test "${with_wine+set}" = set; then
2591 withval="$with_wine"
2592 wxUSE_WINE="$withval" CACHE_WINE=1
2593fi;
2594
2595# Check whether --with-msw or --without-msw was given.
2596if test "${with_msw+set}" = set; then
2597 withval="$with_msw"
2598 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2599fi;
2600
2601# Check whether --with-pm or --without-pm was given.
2602if test "${with_pm+set}" = set; then
2603 withval="$with_pm"
2604 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2605fi;
2606
2607# Check whether --with-mgl or --without-mgl was given.
2608if test "${with_mgl+set}" = set; then
2609 withval="$with_mgl"
2610 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2611fi;
2612
2613# Check whether --with-microwin or --without-microwin was given.
2614if test "${with_microwin+set}" = set; then
2615 withval="$with_microwin"
2616 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2617fi;
2618
2619# Check whether --with-x11 or --without-x11 was given.
2620if test "${with_x11+set}" = set; then
2621 withval="$with_x11"
2622 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2623fi;
2624
2625 enablestring=
2626 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2627echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2628 no_cache=0
2629 # Check whether --enable-nanox or --disable-nanox was given.
2630if test "${enable_nanox+set}" = set; then
2631 enableval="$enable_nanox"
2632
2633 if test "$enableval" = yes; then
2634 ac_cv_use_nanox='wxUSE_NANOX=yes'
2635 else
2636 ac_cv_use_nanox='wxUSE_NANOX=no'
2637 fi
2638
2639else
2640
2641 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2642 if test "x$LINE" != x ; then
2643 eval "DEFAULT_$LINE"
2644 else
2645 no_cache=1
2646 fi
2647
2648 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2649
2650fi;
2651
2652 eval "$ac_cv_use_nanox"
2653 if test "$no_cache" != 1; then
2654 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2655 fi
2656
2657 if test "$wxUSE_NANOX" = yes; then
2658 echo "$as_me:$LINENO: result: yes" >&5
2659echo "${ECHO_T}yes" >&6
2660 else
2661 echo "$as_me:$LINENO: result: no" >&5
2662echo "${ECHO_T}no" >&6
2663 fi
2664
2665
2666
2667 enablestring=
2668 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2669echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
2670 no_cache=0
2671 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2672if test "${enable_gtk2+set}" = set; then
2673 enableval="$enable_gtk2"
2674
2675 if test "$enableval" = yes; then
2676 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2677 else
2678 ac_cv_use_gtk2='wxUSE_GTK2=no'
2679 fi
2680
2681else
2682
2683 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2684 if test "x$LINE" != x ; then
2685 eval "DEFAULT_$LINE"
2686 else
2687 no_cache=1
2688 fi
2689
2690 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2691
2692fi;
2693
2694 eval "$ac_cv_use_gtk2"
2695 if test "$no_cache" != 1; then
2696 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2697 fi
2698
2699 if test "$wxUSE_GTK2" = yes; then
2700 echo "$as_me:$LINENO: result: yes" >&5
2701echo "${ECHO_T}yes" >&6
2702 else
2703 echo "$as_me:$LINENO: result: no" >&5
2704echo "${ECHO_T}no" >&6
2705 fi
2706
2707
2708 enablestring=
2709 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2710echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2711 no_cache=0
2712 # Check whether --enable-gpe or --disable-gpe was given.
2713if test "${enable_gpe+set}" = set; then
2714 enableval="$enable_gpe"
2715
2716 if test "$enableval" = yes; then
2717 ac_cv_use_gpe='wxUSE_GPE=yes'
2718 else
2719 ac_cv_use_gpe='wxUSE_GPE=no'
2720 fi
2721
2722else
2723
2724 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2725 if test "x$LINE" != x ; then
2726 eval "DEFAULT_$LINE"
2727 else
2728 no_cache=1
2729 fi
2730
2731 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2732
2733fi;
2734
2735 eval "$ac_cv_use_gpe"
2736 if test "$no_cache" != 1; then
2737 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2738 fi
2739
2740 if test "$wxUSE_GPE" = yes; then
2741 echo "$as_me:$LINENO: result: yes" >&5
2742echo "${ECHO_T}yes" >&6
2743 else
2744 echo "$as_me:$LINENO: result: no" >&5
2745echo "${ECHO_T}no" >&6
2746 fi
2747
2748
2749
2750 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2751echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2752 no_cache=0
2753
2754# Check whether --with-libpng or --without-libpng was given.
2755if test "${with_libpng+set}" = set; then
2756 withval="$with_libpng"
2757
2758 if test "$withval" = yes; then
2759 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2760 elif test "$withval" = no; then
2761 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2762 elif test "$withval" = sys; then
2763 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2764 elif test "$withval" = builtin; then
2765 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2766 else
2767 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2768echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2769 { (exit 1); exit 1; }; }
2770 fi
2771
2772else
2773
2774 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2775 if test "x$LINE" != x ; then
2776 eval "DEFAULT_$LINE"
2777 else
2778 no_cache=1
2779 fi
2780
2781 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2782
2783fi;
2784
2785 eval "$ac_cv_use_libpng"
2786 if test "$no_cache" != 1; then
2787 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2788 fi
2789
2790 if test "$wxUSE_LIBPNG" = yes; then
2791 echo "$as_me:$LINENO: result: yes" >&5
2792echo "${ECHO_T}yes" >&6
2793 elif test "$wxUSE_LIBPNG" = no; then
2794 echo "$as_me:$LINENO: result: no" >&5
2795echo "${ECHO_T}no" >&6
2796 elif test "$wxUSE_LIBPNG" = sys; then
2797 echo "$as_me:$LINENO: result: system version" >&5
2798echo "${ECHO_T}system version" >&6
2799 elif test "$wxUSE_LIBPNG" = builtin; then
2800 echo "$as_me:$LINENO: result: builtin version" >&5
2801echo "${ECHO_T}builtin version" >&6
2802 else
2803 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2804echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2805 { (exit 1); exit 1; }; }
2806 fi
2807
2808
2809 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2810echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2811 no_cache=0
2812
2813# Check whether --with-libjpeg or --without-libjpeg was given.
2814if test "${with_libjpeg+set}" = set; then
2815 withval="$with_libjpeg"
2816
2817 if test "$withval" = yes; then
2818 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2819 elif test "$withval" = no; then
2820 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2821 elif test "$withval" = sys; then
2822 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2823 elif test "$withval" = builtin; then
2824 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2825 else
2826 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2827echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2828 { (exit 1); exit 1; }; }
2829 fi
2830
2831else
2832
2833 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2834 if test "x$LINE" != x ; then
2835 eval "DEFAULT_$LINE"
2836 else
2837 no_cache=1
2838 fi
2839
2840 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2841
2842fi;
2843
2844 eval "$ac_cv_use_libjpeg"
2845 if test "$no_cache" != 1; then
2846 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2847 fi
2848
2849 if test "$wxUSE_LIBJPEG" = yes; then
2850 echo "$as_me:$LINENO: result: yes" >&5
2851echo "${ECHO_T}yes" >&6
2852 elif test "$wxUSE_LIBJPEG" = no; then
2853 echo "$as_me:$LINENO: result: no" >&5
2854echo "${ECHO_T}no" >&6
2855 elif test "$wxUSE_LIBJPEG" = sys; then
2856 echo "$as_me:$LINENO: result: system version" >&5
2857echo "${ECHO_T}system version" >&6
2858 elif test "$wxUSE_LIBJPEG" = builtin; then
2859 echo "$as_me:$LINENO: result: builtin version" >&5
2860echo "${ECHO_T}builtin version" >&6
2861 else
2862 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2863echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2864 { (exit 1); exit 1; }; }
2865 fi
2866
2867
2868 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2869echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2870 no_cache=0
2871
2872# Check whether --with-libtiff or --without-libtiff was given.
2873if test "${with_libtiff+set}" = set; then
2874 withval="$with_libtiff"
2875
2876 if test "$withval" = yes; then
2877 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2878 elif test "$withval" = no; then
2879 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2880 elif test "$withval" = sys; then
2881 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2882 elif test "$withval" = builtin; then
2883 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2884 else
2885 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2886echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2887 { (exit 1); exit 1; }; }
2888 fi
2889
2890else
2891
2892 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2893 if test "x$LINE" != x ; then
2894 eval "DEFAULT_$LINE"
2895 else
2896 no_cache=1
2897 fi
2898
2899 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2900
2901fi;
2902
2903 eval "$ac_cv_use_libtiff"
2904 if test "$no_cache" != 1; then
2905 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2906 fi
2907
2908 if test "$wxUSE_LIBTIFF" = yes; then
2909 echo "$as_me:$LINENO: result: yes" >&5
2910echo "${ECHO_T}yes" >&6
2911 elif test "$wxUSE_LIBTIFF" = no; then
2912 echo "$as_me:$LINENO: result: no" >&5
2913echo "${ECHO_T}no" >&6
2914 elif test "$wxUSE_LIBTIFF" = sys; then
2915 echo "$as_me:$LINENO: result: system version" >&5
2916echo "${ECHO_T}system version" >&6
2917 elif test "$wxUSE_LIBTIFF" = builtin; then
2918 echo "$as_me:$LINENO: result: builtin version" >&5
2919echo "${ECHO_T}builtin version" >&6
2920 else
2921 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2922echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2923 { (exit 1); exit 1; }; }
2924 fi
2925
2926
2927 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2928echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2929 no_cache=0
2930
2931# Check whether --with-libxpm or --without-libxpm was given.
2932if test "${with_libxpm+set}" = set; then
2933 withval="$with_libxpm"
2934
2935 if test "$withval" = yes; then
2936 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2937 elif test "$withval" = no; then
2938 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2939 elif test "$withval" = sys; then
2940 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2941 elif test "$withval" = builtin; then
2942 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2943 else
2944 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2945echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2946 { (exit 1); exit 1; }; }
2947 fi
2948
2949else
2950
2951 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2952 if test "x$LINE" != x ; then
2953 eval "DEFAULT_$LINE"
2954 else
2955 no_cache=1
2956 fi
2957
2958 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2959
2960fi;
2961
2962 eval "$ac_cv_use_libxpm"
2963 if test "$no_cache" != 1; then
2964 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2965 fi
2966
2967 if test "$wxUSE_LIBXPM" = yes; then
2968 echo "$as_me:$LINENO: result: yes" >&5
2969echo "${ECHO_T}yes" >&6
2970 elif test "$wxUSE_LIBXPM" = no; then
2971 echo "$as_me:$LINENO: result: no" >&5
2972echo "${ECHO_T}no" >&6
2973 elif test "$wxUSE_LIBXPM" = sys; then
2974 echo "$as_me:$LINENO: result: system version" >&5
2975echo "${ECHO_T}system version" >&6
2976 elif test "$wxUSE_LIBXPM" = builtin; then
2977 echo "$as_me:$LINENO: result: builtin version" >&5
2978echo "${ECHO_T}builtin version" >&6
2979 else
2980 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2981echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2982 { (exit 1); exit 1; }; }
2983 fi
2984
2985
2986 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
2987echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
2988 no_cache=0
2989
2990# Check whether --with-libmspack or --without-libmspack was given.
2991if test "${with_libmspack+set}" = set; then
2992 withval="$with_libmspack"
2993
2994 if test "$withval" = yes; then
2995 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
2996 else
2997 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
2998 fi
2999
3000else
3001
3002 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3003 if test "x$LINE" != x ; then
3004 eval "DEFAULT_$LINE"
3005 else
3006 no_cache=1
3007 fi
3008
3009 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3010
3011fi;
3012
3013 eval "$ac_cv_use_libmspack"
3014 if test "$no_cache" != 1; then
3015 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3016 fi
3017
3018 if test "$wxUSE_LIBMSPACK" = yes; then
3019 echo "$as_me:$LINENO: result: yes" >&5
3020echo "${ECHO_T}yes" >&6
3021 else
3022 echo "$as_me:$LINENO: result: no" >&5
3023echo "${ECHO_T}no" >&6
3024 fi
3025
3026
3027 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3028echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3029 no_cache=0
3030
3031# Check whether --with-sdl or --without-sdl was given.
3032if test "${with_sdl+set}" = set; then
3033 withval="$with_sdl"
3034
3035 if test "$withval" = yes; then
3036 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3037 else
3038 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3039 fi
3040
3041else
3042
3043 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3044 if test "x$LINE" != x ; then
3045 eval "DEFAULT_$LINE"
3046 else
3047 no_cache=1
3048 fi
3049
3050 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3051
3052fi;
3053
3054 eval "$ac_cv_use_sdl"
3055 if test "$no_cache" != 1; then
3056 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3057 fi
3058
3059 if test "$wxUSE_LIBSDL" = yes; then
3060 echo "$as_me:$LINENO: result: yes" >&5
3061echo "${ECHO_T}yes" >&6
3062 else
3063 echo "$as_me:$LINENO: result: no" >&5
3064echo "${ECHO_T}no" >&6
3065 fi
3066
3067
3068 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3069echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3070 no_cache=0
3071
3072# Check whether --with-opengl or --without-opengl was given.
3073if test "${with_opengl+set}" = set; then
3074 withval="$with_opengl"
3075
3076 if test "$withval" = yes; then
3077 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3078 else
3079 ac_cv_use_opengl='wxUSE_OPENGL=no'
3080 fi
3081
3082else
3083
3084 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3085 if test "x$LINE" != x ; then
3086 eval "DEFAULT_$LINE"
3087 else
3088 no_cache=1
3089 fi
3090
3091 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3092
3093fi;
3094
3095 eval "$ac_cv_use_opengl"
3096 if test "$no_cache" != 1; then
3097 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3098 fi
3099
3100 if test "$wxUSE_OPENGL" = yes; then
3101 echo "$as_me:$LINENO: result: yes" >&5
3102echo "${ECHO_T}yes" >&6
3103 else
3104 echo "$as_me:$LINENO: result: no" >&5
3105echo "${ECHO_T}no" >&6
3106 fi
3107
3108
3109fi
3110
3111
3112 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3113echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3114 no_cache=0
3115
3116# Check whether --with-dmalloc or --without-dmalloc was given.
3117if test "${with_dmalloc+set}" = set; then
3118 withval="$with_dmalloc"
3119
3120 if test "$withval" = yes; then
3121 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3122 else
3123 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3124 fi
3125
3126else
3127
3128 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3129 if test "x$LINE" != x ; then
3130 eval "DEFAULT_$LINE"
3131 else
3132 no_cache=1
3133 fi
3134
3135 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3136
3137fi;
3138
3139 eval "$ac_cv_use_dmalloc"
3140 if test "$no_cache" != 1; then
3141 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3142 fi
3143
3144 if test "$wxUSE_DMALLOC" = yes; then
3145 echo "$as_me:$LINENO: result: yes" >&5
3146echo "${ECHO_T}yes" >&6
3147 else
3148 echo "$as_me:$LINENO: result: no" >&5
3149echo "${ECHO_T}no" >&6
3150 fi
3151
3152
3153 echo "$as_me:$LINENO: checking for --with-regex" >&5
3154echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3155 no_cache=0
3156
3157# Check whether --with-regex or --without-regex was given.
3158if test "${with_regex+set}" = set; then
3159 withval="$with_regex"
3160
3161 if test "$withval" = yes; then
3162 ac_cv_use_regex='wxUSE_REGEX=yes'
3163 elif test "$withval" = no; then
3164 ac_cv_use_regex='wxUSE_REGEX=no'
3165 elif test "$withval" = sys; then
3166 ac_cv_use_regex='wxUSE_REGEX=sys'
3167 elif test "$withval" = builtin; then
3168 ac_cv_use_regex='wxUSE_REGEX=builtin'
3169 else
3170 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3171echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3172 { (exit 1); exit 1; }; }
3173 fi
3174
3175else
3176
3177 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3178 if test "x$LINE" != x ; then
3179 eval "DEFAULT_$LINE"
3180 else
3181 no_cache=1
3182 fi
3183
3184 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3185
3186fi;
3187
3188 eval "$ac_cv_use_regex"
3189 if test "$no_cache" != 1; then
3190 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3191 fi
3192
3193 if test "$wxUSE_REGEX" = yes; then
3194 echo "$as_me:$LINENO: result: yes" >&5
3195echo "${ECHO_T}yes" >&6
3196 elif test "$wxUSE_REGEX" = no; then
3197 echo "$as_me:$LINENO: result: no" >&5
3198echo "${ECHO_T}no" >&6
3199 elif test "$wxUSE_REGEX" = sys; then
3200 echo "$as_me:$LINENO: result: system version" >&5
3201echo "${ECHO_T}system version" >&6
3202 elif test "$wxUSE_REGEX" = builtin; then
3203 echo "$as_me:$LINENO: result: builtin version" >&5
3204echo "${ECHO_T}builtin version" >&6
3205 else
3206 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3207echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3208 { (exit 1); exit 1; }; }
3209 fi
3210
3211
3212 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3213echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3214 no_cache=0
3215
3216# Check whether --with-zlib or --without-zlib was given.
3217if test "${with_zlib+set}" = set; then
3218 withval="$with_zlib"
3219
3220 if test "$withval" = yes; then
3221 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3222 elif test "$withval" = no; then
3223 ac_cv_use_zlib='wxUSE_ZLIB=no'
3224 elif test "$withval" = sys; then
3225 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3226 elif test "$withval" = builtin; then
3227 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3228 else
3229 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3230echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3231 { (exit 1); exit 1; }; }
3232 fi
3233
3234else
3235
3236 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3237 if test "x$LINE" != x ; then
3238 eval "DEFAULT_$LINE"
3239 else
3240 no_cache=1
3241 fi
3242
3243 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3244
3245fi;
3246
3247 eval "$ac_cv_use_zlib"
3248 if test "$no_cache" != 1; then
3249 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3250 fi
3251
3252 if test "$wxUSE_ZLIB" = yes; then
3253 echo "$as_me:$LINENO: result: yes" >&5
3254echo "${ECHO_T}yes" >&6
3255 elif test "$wxUSE_ZLIB" = no; then
3256 echo "$as_me:$LINENO: result: no" >&5
3257echo "${ECHO_T}no" >&6
3258 elif test "$wxUSE_ZLIB" = sys; then
3259 echo "$as_me:$LINENO: result: system version" >&5
3260echo "${ECHO_T}system version" >&6
3261 elif test "$wxUSE_ZLIB" = builtin; then
3262 echo "$as_me:$LINENO: result: builtin version" >&5
3263echo "${ECHO_T}builtin version" >&6
3264 else
3265 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3266echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3267 { (exit 1); exit 1; }; }
3268 fi
3269
3270
3271 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3272echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3273 no_cache=0
3274
3275# Check whether --with-odbc or --without-odbc was given.
3276if test "${with_odbc+set}" = set; then
3277 withval="$with_odbc"
3278
3279 if test "$withval" = yes; then
3280 ac_cv_use_odbc='wxUSE_ODBC=yes'
3281 elif test "$withval" = no; then
3282 ac_cv_use_odbc='wxUSE_ODBC=no'
3283 elif test "$withval" = sys; then
3284 ac_cv_use_odbc='wxUSE_ODBC=sys'
3285 elif test "$withval" = builtin; then
3286 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3287 else
3288 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3289echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3290 { (exit 1); exit 1; }; }
3291 fi
3292
3293else
3294
3295 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3296 if test "x$LINE" != x ; then
3297 eval "DEFAULT_$LINE"
3298 else
3299 no_cache=1
3300 fi
3301
3302 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3303
3304fi;
3305
3306 eval "$ac_cv_use_odbc"
3307 if test "$no_cache" != 1; then
3308 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3309 fi
3310
3311 if test "$wxUSE_ODBC" = yes; then
3312 echo "$as_me:$LINENO: result: yes" >&5
3313echo "${ECHO_T}yes" >&6
3314 elif test "$wxUSE_ODBC" = no; then
3315 echo "$as_me:$LINENO: result: no" >&5
3316echo "${ECHO_T}no" >&6
3317 elif test "$wxUSE_ODBC" = sys; then
3318 echo "$as_me:$LINENO: result: system version" >&5
3319echo "${ECHO_T}system version" >&6
3320 elif test "$wxUSE_ODBC" = builtin; then
3321 echo "$as_me:$LINENO: result: builtin version" >&5
3322echo "${ECHO_T}builtin version" >&6
3323 else
3324 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3325echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3326 { (exit 1); exit 1; }; }
3327 fi
3328
3329
3330 echo "$as_me:$LINENO: checking for --with-expat" >&5
3331echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3332 no_cache=0
3333
3334# Check whether --with-expat or --without-expat was given.
3335if test "${with_expat+set}" = set; then
3336 withval="$with_expat"
3337
3338 if test "$withval" = yes; then
3339 ac_cv_use_expat='wxUSE_EXPAT=yes'
3340 elif test "$withval" = no; then
3341 ac_cv_use_expat='wxUSE_EXPAT=no'
3342 elif test "$withval" = sys; then
3343 ac_cv_use_expat='wxUSE_EXPAT=sys'
3344 elif test "$withval" = builtin; then
3345 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3346 else
3347 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3348echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3349 { (exit 1); exit 1; }; }
3350 fi
3351
3352else
3353
3354 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3355 if test "x$LINE" != x ; then
3356 eval "DEFAULT_$LINE"
3357 else
3358 no_cache=1
3359 fi
3360
3361 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3362
3363fi;
3364
3365 eval "$ac_cv_use_expat"
3366 if test "$no_cache" != 1; then
3367 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3368 fi
3369
3370 if test "$wxUSE_EXPAT" = yes; then
3371 echo "$as_me:$LINENO: result: yes" >&5
3372echo "${ECHO_T}yes" >&6
3373 elif test "$wxUSE_EXPAT" = no; then
3374 echo "$as_me:$LINENO: result: no" >&5
3375echo "${ECHO_T}no" >&6
3376 elif test "$wxUSE_EXPAT" = sys; then
3377 echo "$as_me:$LINENO: result: system version" >&5
3378echo "${ECHO_T}system version" >&6
3379 elif test "$wxUSE_EXPAT" = builtin; then
3380 echo "$as_me:$LINENO: result: builtin version" >&5
3381echo "${ECHO_T}builtin version" >&6
3382 else
3383 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3384echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3385 { (exit 1); exit 1; }; }
3386 fi
3387
3388
3389
3390
3391 enablestring=
3392 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3393echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3394 no_cache=0
3395 # Check whether --enable-shared or --disable-shared was given.
3396if test "${enable_shared+set}" = set; then
3397 enableval="$enable_shared"
3398
3399 if test "$enableval" = yes; then
3400 ac_cv_use_shared='wxUSE_SHARED=yes'
3401 else
3402 ac_cv_use_shared='wxUSE_SHARED=no'
3403 fi
3404
3405else
3406
3407 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3408 if test "x$LINE" != x ; then
3409 eval "DEFAULT_$LINE"
3410 else
3411 no_cache=1
3412 fi
3413
3414 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3415
3416fi;
3417
3418 eval "$ac_cv_use_shared"
3419 if test "$no_cache" != 1; then
3420 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3421 fi
3422
3423 if test "$wxUSE_SHARED" = yes; then
3424 echo "$as_me:$LINENO: result: yes" >&5
3425echo "${ECHO_T}yes" >&6
3426 else
3427 echo "$as_me:$LINENO: result: no" >&5
3428echo "${ECHO_T}no" >&6
3429 fi
3430
3431
3432 enablestring=
3433 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3434echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3435 no_cache=0
3436 # Check whether --enable-optimise or --disable-optimise was given.
3437if test "${enable_optimise+set}" = set; then
3438 enableval="$enable_optimise"
3439
3440 if test "$enableval" = yes; then
3441 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3442 else
3443 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3444 fi
3445
3446else
3447
3448 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3449 if test "x$LINE" != x ; then
3450 eval "DEFAULT_$LINE"
3451 else
3452 no_cache=1
3453 fi
3454
3455 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3456
3457fi;
3458
3459 eval "$ac_cv_use_optimise"
3460 if test "$no_cache" != 1; then
3461 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3462 fi
3463
3464 if test "$wxUSE_OPTIMISE" = yes; then
3465 echo "$as_me:$LINENO: result: yes" >&5
3466echo "${ECHO_T}yes" >&6
3467 else
3468 echo "$as_me:$LINENO: result: no" >&5
3469echo "${ECHO_T}no" >&6
3470 fi
3471
3472
3473 enablestring=
3474 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3475echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3476 no_cache=0
3477 # Check whether --enable-debug or --disable-debug was given.
3478if test "${enable_debug+set}" = set; then
3479 enableval="$enable_debug"
3480
3481 if test "$enableval" = yes; then
3482 ac_cv_use_debug='wxUSE_DEBUG=yes'
3483 else
3484 ac_cv_use_debug='wxUSE_DEBUG=no'
3485 fi
3486
3487else
3488
3489 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3490 if test "x$LINE" != x ; then
3491 eval "DEFAULT_$LINE"
3492 else
3493 no_cache=1
3494 fi
3495
3496 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3497
3498fi;
3499
3500 eval "$ac_cv_use_debug"
3501 if test "$no_cache" != 1; then
3502 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3503 fi
3504
3505 if test "$wxUSE_DEBUG" = yes; then
3506 echo "$as_me:$LINENO: result: yes" >&5
3507echo "${ECHO_T}yes" >&6
3508 else
3509 echo "$as_me:$LINENO: result: no" >&5
3510echo "${ECHO_T}no" >&6
3511 fi
3512
3513
3514 enablestring=
3515 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3516echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3517 no_cache=0
3518 # Check whether --enable-stl or --disable-stl was given.
3519if test "${enable_stl+set}" = set; then
3520 enableval="$enable_stl"
3521
3522 if test "$enableval" = yes; then
3523 ac_cv_use_stl='wxUSE_STL=yes'
3524 else
3525 ac_cv_use_stl='wxUSE_STL=no'
3526 fi
3527
3528else
3529
3530 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3531 if test "x$LINE" != x ; then
3532 eval "DEFAULT_$LINE"
3533 else
3534 no_cache=1
3535 fi
3536
3537 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3538
3539fi;
3540
3541 eval "$ac_cv_use_stl"
3542 if test "$no_cache" != 1; then
3543 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3544 fi
3545
3546 if test "$wxUSE_STL" = yes; then
3547 echo "$as_me:$LINENO: result: yes" >&5
3548echo "${ECHO_T}yes" >&6
3549 else
3550 echo "$as_me:$LINENO: result: no" >&5
3551echo "${ECHO_T}no" >&6
3552 fi
3553
3554if test "$USE_OS2" = "1"; then
3555
3556 enablestring=
3557 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3558echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3559 no_cache=0
3560 # Check whether --enable-omf or --disable-omf was given.
3561if test "${enable_omf+set}" = set; then
3562 enableval="$enable_omf"
3563
3564 if test "$enableval" = yes; then
3565 ac_cv_use_omf='wxUSE_OMF=yes'
3566 else
3567 ac_cv_use_omf='wxUSE_OMF=no'
3568 fi
3569
3570else
3571
3572 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3573 if test "x$LINE" != x ; then
3574 eval "DEFAULT_$LINE"
3575 else
3576 no_cache=1
3577 fi
3578
3579 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3580
3581fi;
3582
3583 eval "$ac_cv_use_omf"
3584 if test "$no_cache" != 1; then
3585 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3586 fi
3587
3588 if test "$wxUSE_OMF" = yes; then
3589 echo "$as_me:$LINENO: result: yes" >&5
3590echo "${ECHO_T}yes" >&6
3591 else
3592 echo "$as_me:$LINENO: result: no" >&5
3593echo "${ECHO_T}no" >&6
3594 fi
3595
3596fi
3597
3598if test "$wxUSE_DEBUG" = "yes"; then
3599 DEFAULT_wxUSE_DEBUG_FLAG=yes
3600 DEFAULT_wxUSE_DEBUG_INFO=yes
3601 BUILD=debug
3602elif test "$wxUSE_DEBUG" = "no"; then
3603 DEFAULT_wxUSE_DEBUG_FLAG=no
3604 DEFAULT_wxUSE_DEBUG_INFO=no
3605 BUILD=release
3606fi
3607
3608
3609 enablestring=
3610 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3611echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3612 no_cache=0
3613 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3614if test "${enable_debug_flag+set}" = set; then
3615 enableval="$enable_debug_flag"
3616
3617 if test "$enableval" = yes; then
3618 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3619 else
3620 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3621 fi
3622
3623else
3624
3625 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3626 if test "x$LINE" != x ; then
3627 eval "DEFAULT_$LINE"
3628 else
3629 no_cache=1
3630 fi
3631
3632 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3633
3634fi;
3635
3636 eval "$ac_cv_use_debug_flag"
3637 if test "$no_cache" != 1; then
3638 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3639 fi
3640
3641 if test "$wxUSE_DEBUG_FLAG" = yes; then
3642 echo "$as_me:$LINENO: result: yes" >&5
3643echo "${ECHO_T}yes" >&6
3644 else
3645 echo "$as_me:$LINENO: result: no" >&5
3646echo "${ECHO_T}no" >&6
3647 fi
3648
3649
3650 enablestring=
3651 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3652echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3653 no_cache=0
3654 # Check whether --enable-debug_info or --disable-debug_info was given.
3655if test "${enable_debug_info+set}" = set; then
3656 enableval="$enable_debug_info"
3657
3658 if test "$enableval" = yes; then
3659 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3660 else
3661 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3662 fi
3663
3664else
3665
3666 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3667 if test "x$LINE" != x ; then
3668 eval "DEFAULT_$LINE"
3669 else
3670 no_cache=1
3671 fi
3672
3673 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3674
3675fi;
3676
3677 eval "$ac_cv_use_debug_info"
3678 if test "$no_cache" != 1; then
3679 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3680 fi
3681
3682 if test "$wxUSE_DEBUG_INFO" = yes; then
3683 echo "$as_me:$LINENO: result: yes" >&5
3684echo "${ECHO_T}yes" >&6
3685 else
3686 echo "$as_me:$LINENO: result: no" >&5
3687echo "${ECHO_T}no" >&6
3688 fi
3689
3690
3691 enablestring=
3692 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3693echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3694 no_cache=0
3695 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3696if test "${enable_debug_gdb+set}" = set; then
3697 enableval="$enable_debug_gdb"
3698
3699 if test "$enableval" = yes; then
3700 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3701 else
3702 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3703 fi
3704
3705else
3706
3707 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3708 if test "x$LINE" != x ; then
3709 eval "DEFAULT_$LINE"
3710 else
3711 no_cache=1
3712 fi
3713
3714 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3715
3716fi;
3717
3718 eval "$ac_cv_use_debug_gdb"
3719 if test "$no_cache" != 1; then
3720 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3721 fi
3722
3723 if test "$wxUSE_DEBUG_GDB" = yes; then
3724 echo "$as_me:$LINENO: result: yes" >&5
3725echo "${ECHO_T}yes" >&6
3726 else
3727 echo "$as_me:$LINENO: result: no" >&5
3728echo "${ECHO_T}no" >&6
3729 fi
3730
3731
3732 enablestring=
3733 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3734echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3735 no_cache=0
3736 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3737if test "${enable_debug_cntxt+set}" = set; then
3738 enableval="$enable_debug_cntxt"
3739
3740 if test "$enableval" = yes; then
3741 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3742 else
3743 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3744 fi
3745
3746else
3747
3748 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3749 if test "x$LINE" != x ; then
3750 eval "DEFAULT_$LINE"
3751 else
3752 no_cache=1
3753 fi
3754
3755 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3756
3757fi;
3758
3759 eval "$ac_cv_use_debug_cntxt"
3760 if test "$no_cache" != 1; then
3761 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3762 fi
3763
3764 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3765 echo "$as_me:$LINENO: result: yes" >&5
3766echo "${ECHO_T}yes" >&6
3767 else
3768 echo "$as_me:$LINENO: result: no" >&5
3769echo "${ECHO_T}no" >&6
3770 fi
3771
3772
3773 enablestring=
3774 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3775echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3776 no_cache=0
3777 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3778if test "${enable_mem_tracing+set}" = set; then
3779 enableval="$enable_mem_tracing"
3780
3781 if test "$enableval" = yes; then
3782 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3783 else
3784 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3785 fi
3786
3787else
3788
3789 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3790 if test "x$LINE" != x ; then
3791 eval "DEFAULT_$LINE"
3792 else
3793 no_cache=1
3794 fi
3795
3796 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3797
3798fi;
3799
3800 eval "$ac_cv_use_mem_tracing"
3801 if test "$no_cache" != 1; then
3802 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3803 fi
3804
3805 if test "$wxUSE_MEM_TRACING" = yes; then
3806 echo "$as_me:$LINENO: result: yes" >&5
3807echo "${ECHO_T}yes" >&6
3808 else
3809 echo "$as_me:$LINENO: result: no" >&5
3810echo "${ECHO_T}no" >&6
3811 fi
3812
3813
3814 enablestring=
3815 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3816echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3817 no_cache=0
3818 # Check whether --enable-profile or --disable-profile was given.
3819if test "${enable_profile+set}" = set; then
3820 enableval="$enable_profile"
3821
3822 if test "$enableval" = yes; then
3823 ac_cv_use_profile='wxUSE_PROFILE=yes'
3824 else
3825 ac_cv_use_profile='wxUSE_PROFILE=no'
3826 fi
3827
3828else
3829
3830 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3831 if test "x$LINE" != x ; then
3832 eval "DEFAULT_$LINE"
3833 else
3834 no_cache=1
3835 fi
3836
3837 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3838
3839fi;
3840
3841 eval "$ac_cv_use_profile"
3842 if test "$no_cache" != 1; then
3843 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3844 fi
3845
3846 if test "$wxUSE_PROFILE" = yes; then
3847 echo "$as_me:$LINENO: result: yes" >&5
3848echo "${ECHO_T}yes" >&6
3849 else
3850 echo "$as_me:$LINENO: result: no" >&5
3851echo "${ECHO_T}no" >&6
3852 fi
3853
3854
3855 enablestring=
3856 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3857echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3858 no_cache=0
3859 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3860if test "${enable_no_rtti+set}" = set; then
3861 enableval="$enable_no_rtti"
3862
3863 if test "$enableval" = yes; then
3864 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3865 else
3866 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3867 fi
3868
3869else
3870
3871 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3872 if test "x$LINE" != x ; then
3873 eval "DEFAULT_$LINE"
3874 else
3875 no_cache=1
3876 fi
3877
3878 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3879
3880fi;
3881
3882 eval "$ac_cv_use_no_rtti"
3883 if test "$no_cache" != 1; then
3884 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3885 fi
3886
3887 if test "$wxUSE_NO_RTTI" = yes; then
3888 echo "$as_me:$LINENO: result: yes" >&5
3889echo "${ECHO_T}yes" >&6
3890 else
3891 echo "$as_me:$LINENO: result: no" >&5
3892echo "${ECHO_T}no" >&6
3893 fi
3894
3895
3896 enablestring=
3897 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3898echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3899 no_cache=0
3900 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3901if test "${enable_no_exceptions+set}" = set; then
3902 enableval="$enable_no_exceptions"
3903
3904 if test "$enableval" = yes; then
3905 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3906 else
3907 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3908 fi
3909
3910else
3911
3912 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3913 if test "x$LINE" != x ; then
3914 eval "DEFAULT_$LINE"
3915 else
3916 no_cache=1
3917 fi
3918
3919 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3920
3921fi;
3922
3923 eval "$ac_cv_use_no_exceptions"
3924 if test "$no_cache" != 1; then
3925 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3926 fi
3927
3928 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3929 echo "$as_me:$LINENO: result: yes" >&5
3930echo "${ECHO_T}yes" >&6
3931 else
3932 echo "$as_me:$LINENO: result: no" >&5
3933echo "${ECHO_T}no" >&6
3934 fi
3935
3936
3937 enablestring=
3938 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3939echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
3940 no_cache=0
3941 # Check whether --enable-permissive or --disable-permissive was given.
3942if test "${enable_permissive+set}" = set; then
3943 enableval="$enable_permissive"
3944
3945 if test "$enableval" = yes; then
3946 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3947 else
3948 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3949 fi
3950
3951else
3952
3953 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3954 if test "x$LINE" != x ; then
3955 eval "DEFAULT_$LINE"
3956 else
3957 no_cache=1
3958 fi
3959
3960 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
3961
3962fi;
3963
3964 eval "$ac_cv_use_permissive"
3965 if test "$no_cache" != 1; then
3966 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3967 fi
3968
3969 if test "$wxUSE_PERMISSIVE" = yes; then
3970 echo "$as_me:$LINENO: result: yes" >&5
3971echo "${ECHO_T}yes" >&6
3972 else
3973 echo "$as_me:$LINENO: result: no" >&5
3974echo "${ECHO_T}no" >&6
3975 fi
3976
3977
3978 enablestring=
3979 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3980echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
3981 no_cache=0
3982 # Check whether --enable-no_deps or --disable-no_deps was given.
3983if test "${enable_no_deps+set}" = set; then
3984 enableval="$enable_no_deps"
3985
3986 if test "$enableval" = yes; then
3987 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3988 else
3989 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3990 fi
3991
3992else
3993
3994 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
3995 if test "x$LINE" != x ; then
3996 eval "DEFAULT_$LINE"
3997 else
3998 no_cache=1
3999 fi
4000
4001 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4002
4003fi;
4004
4005 eval "$ac_cv_use_no_deps"
4006 if test "$no_cache" != 1; then
4007 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4008 fi
4009
4010 if test "$wxUSE_NO_DEPS" = yes; then
4011 echo "$as_me:$LINENO: result: yes" >&5
4012echo "${ECHO_T}yes" >&6
4013 else
4014 echo "$as_me:$LINENO: result: no" >&5
4015echo "${ECHO_T}no" >&6
4016 fi
4017
4018
4019
4020 enablestring=
4021 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4022echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4023 no_cache=0
4024 # Check whether --enable-compat22 or --disable-compat22 was given.
4025if test "${enable_compat22+set}" = set; then
4026 enableval="$enable_compat22"
4027
4028 if test "$enableval" = yes; then
4029 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4030 else
4031 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4032 fi
4033
4034else
4035
4036 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4037 if test "x$LINE" != x ; then
4038 eval "DEFAULT_$LINE"
4039 else
4040 no_cache=1
4041 fi
4042
4043 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4044
4045fi;
4046
4047 eval "$ac_cv_use_compat22"
4048 if test "$no_cache" != 1; then
4049 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4050 fi
4051
4052 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4053 echo "$as_me:$LINENO: result: yes" >&5
4054echo "${ECHO_T}yes" >&6
4055 else
4056 echo "$as_me:$LINENO: result: no" >&5
4057echo "${ECHO_T}no" >&6
4058 fi
4059
4060
4061 enablestring=disable
4062 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4063echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4064 no_cache=0
4065 # Check whether --enable-compat24 or --disable-compat24 was given.
4066if test "${enable_compat24+set}" = set; then
4067 enableval="$enable_compat24"
4068
4069 if test "$enableval" = yes; then
4070 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4071 else
4072 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4073 fi
4074
4075else
4076
4077 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4078 if test "x$LINE" != x ; then
4079 eval "DEFAULT_$LINE"
4080 else
4081 no_cache=1
4082 fi
4083
4084 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4085
4086fi;
4087
4088 eval "$ac_cv_use_compat24"
4089 if test "$no_cache" != 1; then
4090 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4091 fi
4092
4093 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4094 echo "$as_me:$LINENO: result: yes" >&5
4095echo "${ECHO_T}yes" >&6
4096 else
4097 echo "$as_me:$LINENO: result: no" >&5
4098echo "${ECHO_T}no" >&6
4099 fi
4100
4101
4102# Check whether --enable-rpath or --disable-rpath was given.
4103if test "${enable_rpath+set}" = set; then
4104 enableval="$enable_rpath"
4105 wxRPATH_DIR="$enableval"
4106fi;
4107
ac1cb8d3 4108if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable" -a "$wxRPATH_DIR" != "no"; then
a848cd7e
SC
4109 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
4110fi
4111
4112
4113
4114
4115 enablestring=
4116 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4117echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4118 no_cache=0
4119 # Check whether --enable-intl or --disable-intl was given.
4120if test "${enable_intl+set}" = set; then
4121 enableval="$enable_intl"
4122
4123 if test "$enableval" = yes; then
4124 ac_cv_use_intl='wxUSE_INTL=yes'
4125 else
4126 ac_cv_use_intl='wxUSE_INTL=no'
4127 fi
4128
4129else
4130
4131 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4132 if test "x$LINE" != x ; then
4133 eval "DEFAULT_$LINE"
4134 else
4135 no_cache=1
4136 fi
4137
4138 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4139
4140fi;
4141
4142 eval "$ac_cv_use_intl"
4143 if test "$no_cache" != 1; then
4144 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4145 fi
4146
4147 if test "$wxUSE_INTL" = yes; then
4148 echo "$as_me:$LINENO: result: yes" >&5
4149echo "${ECHO_T}yes" >&6
4150 else
4151 echo "$as_me:$LINENO: result: no" >&5
4152echo "${ECHO_T}no" >&6
4153 fi
4154
4155
4156 enablestring=
4157 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4158echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4159 no_cache=0
4160 # Check whether --enable-config or --disable-config was given.
4161if test "${enable_config+set}" = set; then
4162 enableval="$enable_config"
4163
4164 if test "$enableval" = yes; then
4165 ac_cv_use_config='wxUSE_CONFIG=yes'
4166 else
4167 ac_cv_use_config='wxUSE_CONFIG=no'
4168 fi
4169
4170else
4171
4172 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4173 if test "x$LINE" != x ; then
4174 eval "DEFAULT_$LINE"
4175 else
4176 no_cache=1
4177 fi
4178
4179 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4180
4181fi;
4182
4183 eval "$ac_cv_use_config"
4184 if test "$no_cache" != 1; then
4185 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4186 fi
4187
4188 if test "$wxUSE_CONFIG" = yes; then
4189 echo "$as_me:$LINENO: result: yes" >&5
4190echo "${ECHO_T}yes" >&6
4191 else
4192 echo "$as_me:$LINENO: result: no" >&5
4193echo "${ECHO_T}no" >&6
4194 fi
4195
4196
4197
4198 enablestring=
4199 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4200echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4201 no_cache=0
4202 # Check whether --enable-protocols or --disable-protocols was given.
4203if test "${enable_protocols+set}" = set; then
4204 enableval="$enable_protocols"
4205
4206 if test "$enableval" = yes; then
4207 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4208 else
4209 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4210 fi
4211
4212else
4213
4214 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4215 if test "x$LINE" != x ; then
4216 eval "DEFAULT_$LINE"
4217 else
4218 no_cache=1
4219 fi
4220
4221 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4222
4223fi;
4224
4225 eval "$ac_cv_use_protocols"
4226 if test "$no_cache" != 1; then
4227 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4228 fi
4229
4230 if test "$wxUSE_PROTOCOL" = yes; then
4231 echo "$as_me:$LINENO: result: yes" >&5
4232echo "${ECHO_T}yes" >&6
4233 else
4234 echo "$as_me:$LINENO: result: no" >&5
4235echo "${ECHO_T}no" >&6
4236 fi
4237
4238
4239 enablestring=
4240 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4241echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4242 no_cache=0
4243 # Check whether --enable-ftp or --disable-ftp was given.
4244if test "${enable_ftp+set}" = set; then
4245 enableval="$enable_ftp"
4246
4247 if test "$enableval" = yes; then
4248 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4249 else
4250 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4251 fi
4252
4253else
4254
4255 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4256 if test "x$LINE" != x ; then
4257 eval "DEFAULT_$LINE"
4258 else
4259 no_cache=1
4260 fi
4261
4262 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4263
4264fi;
4265
4266 eval "$ac_cv_use_ftp"
4267 if test "$no_cache" != 1; then
4268 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4269 fi
4270
4271 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4272 echo "$as_me:$LINENO: result: yes" >&5
4273echo "${ECHO_T}yes" >&6
4274 else
4275 echo "$as_me:$LINENO: result: no" >&5
4276echo "${ECHO_T}no" >&6
4277 fi
4278
4279
4280 enablestring=
4281 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4282echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4283 no_cache=0
4284 # Check whether --enable-http or --disable-http was given.
4285if test "${enable_http+set}" = set; then
4286 enableval="$enable_http"
4287
4288 if test "$enableval" = yes; then
4289 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4290 else
4291 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4292 fi
4293
4294else
4295
4296 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4297 if test "x$LINE" != x ; then
4298 eval "DEFAULT_$LINE"
4299 else
4300 no_cache=1
4301 fi
4302
4303 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4304
4305fi;
4306
4307 eval "$ac_cv_use_http"
4308 if test "$no_cache" != 1; then
4309 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4310 fi
4311
4312 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4313 echo "$as_me:$LINENO: result: yes" >&5
4314echo "${ECHO_T}yes" >&6
4315 else
4316 echo "$as_me:$LINENO: result: no" >&5
4317echo "${ECHO_T}no" >&6
4318 fi
4319
4320
4321 enablestring=
4322 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4323echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4324 no_cache=0
4325 # Check whether --enable-fileproto or --disable-fileproto was given.
4326if test "${enable_fileproto+set}" = set; then
4327 enableval="$enable_fileproto"
4328
4329 if test "$enableval" = yes; then
4330 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4331 else
4332 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4333 fi
4334
4335else
4336
4337 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4338 if test "x$LINE" != x ; then
4339 eval "DEFAULT_$LINE"
4340 else
4341 no_cache=1
4342 fi
4343
4344 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4345
4346fi;
4347
4348 eval "$ac_cv_use_fileproto"
4349 if test "$no_cache" != 1; then
4350 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4351 fi
4352
4353 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4354 echo "$as_me:$LINENO: result: yes" >&5
4355echo "${ECHO_T}yes" >&6
4356 else
4357 echo "$as_me:$LINENO: result: no" >&5
4358echo "${ECHO_T}no" >&6
4359 fi
4360
4361
4362 enablestring=
4363 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4364echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4365 no_cache=0
4366 # Check whether --enable-sockets or --disable-sockets was given.
4367if test "${enable_sockets+set}" = set; then
4368 enableval="$enable_sockets"
4369
4370 if test "$enableval" = yes; then
4371 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4372 else
4373 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4374 fi
4375
4376else
4377
4378 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4379 if test "x$LINE" != x ; then
4380 eval "DEFAULT_$LINE"
4381 else
4382 no_cache=1
4383 fi
4384
4385 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4386
4387fi;
4388
4389 eval "$ac_cv_use_sockets"
4390 if test "$no_cache" != 1; then
4391 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4392 fi
4393
4394 if test "$wxUSE_SOCKETS" = yes; then
4395 echo "$as_me:$LINENO: result: yes" >&5
4396echo "${ECHO_T}yes" >&6
4397 else
4398 echo "$as_me:$LINENO: result: no" >&5
4399echo "${ECHO_T}no" >&6
4400 fi
4401
4402
4403 enablestring=
4404 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4405echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4406 no_cache=0
4407 # Check whether --enable-ole or --disable-ole was given.
4408if test "${enable_ole+set}" = set; then
4409 enableval="$enable_ole"
4410
4411 if test "$enableval" = yes; then
4412 ac_cv_use_ole='wxUSE_OLE=yes'
4413 else
4414 ac_cv_use_ole='wxUSE_OLE=no'
4415 fi
4416
4417else
4418
4419 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4420 if test "x$LINE" != x ; then
4421 eval "DEFAULT_$LINE"
4422 else
4423 no_cache=1
4424 fi
4425
4426 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4427
4428fi;
4429
4430 eval "$ac_cv_use_ole"
4431 if test "$no_cache" != 1; then
4432 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4433 fi
4434
4435 if test "$wxUSE_OLE" = yes; then
4436 echo "$as_me:$LINENO: result: yes" >&5
4437echo "${ECHO_T}yes" >&6
4438 else
4439 echo "$as_me:$LINENO: result: no" >&5
4440echo "${ECHO_T}no" >&6
4441 fi
4442
4443
4444 enablestring=
4445 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4446echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4447 no_cache=0
4448 # Check whether --enable-dataobj or --disable-dataobj was given.
4449if test "${enable_dataobj+set}" = set; then
4450 enableval="$enable_dataobj"
4451
4452 if test "$enableval" = yes; then
4453 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4454 else
4455 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4456 fi
4457
4458else
4459
4460 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4461 if test "x$LINE" != x ; then
4462 eval "DEFAULT_$LINE"
4463 else
4464 no_cache=1
4465 fi
4466
4467 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4468
4469fi;
4470
4471 eval "$ac_cv_use_dataobj"
4472 if test "$no_cache" != 1; then
4473 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4474 fi
4475
4476 if test "$wxUSE_DATAOBJ" = yes; then
4477 echo "$as_me:$LINENO: result: yes" >&5
4478echo "${ECHO_T}yes" >&6
4479 else
4480 echo "$as_me:$LINENO: result: no" >&5
4481echo "${ECHO_T}no" >&6
4482 fi
4483
4484
4485
4486 enablestring=
4487 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4488echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4489 no_cache=0
4490 # Check whether --enable-ipc or --disable-ipc was given.
4491if test "${enable_ipc+set}" = set; then
4492 enableval="$enable_ipc"
4493
4494 if test "$enableval" = yes; then
4495 ac_cv_use_ipc='wxUSE_IPC=yes'
4496 else
4497 ac_cv_use_ipc='wxUSE_IPC=no'
4498 fi
4499
4500else
4501
4502 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4503 if test "x$LINE" != x ; then
4504 eval "DEFAULT_$LINE"
4505 else
4506 no_cache=1
4507 fi
4508
4509 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4510
4511fi;
4512
4513 eval "$ac_cv_use_ipc"
4514 if test "$no_cache" != 1; then
4515 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4516 fi
4517
4518 if test "$wxUSE_IPC" = yes; then
4519 echo "$as_me:$LINENO: result: yes" >&5
4520echo "${ECHO_T}yes" >&6
4521 else
4522 echo "$as_me:$LINENO: result: no" >&5
4523echo "${ECHO_T}no" >&6
4524 fi
4525
4526
4527
4528 enablestring=
4529 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4530echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4531 no_cache=0
4532 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4533if test "${enable_apple_ieee+set}" = set; then
4534 enableval="$enable_apple_ieee"
4535
4536 if test "$enableval" = yes; then
4537 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4538 else
4539 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4540 fi
4541
4542else
4543
4544 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4545 if test "x$LINE" != x ; then
4546 eval "DEFAULT_$LINE"
4547 else
4548 no_cache=1
4549 fi
4550
4551 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4552
4553fi;
4554
4555 eval "$ac_cv_use_apple_ieee"
4556 if test "$no_cache" != 1; then
4557 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4558 fi
4559
4560 if test "$wxUSE_APPLE_IEEE" = yes; then
4561 echo "$as_me:$LINENO: result: yes" >&5
4562echo "${ECHO_T}yes" >&6
4563 else
4564 echo "$as_me:$LINENO: result: no" >&5
4565echo "${ECHO_T}no" >&6
4566 fi
4567
4568
4569 enablestring=
4570 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4571echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
4572 no_cache=0
4573 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4574if test "${enable_catch_segvs+set}" = set; then
4575 enableval="$enable_catch_segvs"
4576
4577 if test "$enableval" = yes; then
4578 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4579 else
4580 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4581 fi
4582
4583else
4584
4585 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4586 if test "x$LINE" != x ; then
4587 eval "DEFAULT_$LINE"
4588 else
4589 no_cache=1
4590 fi
4591
4592 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4593
4594fi;
4595
4596 eval "$ac_cv_use_catch_segvs"
4597 if test "$no_cache" != 1; then
4598 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4599 fi
4600
4601 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4602 echo "$as_me:$LINENO: result: yes" >&5
4603echo "${ECHO_T}yes" >&6
4604 else
4605 echo "$as_me:$LINENO: result: no" >&5
4606echo "${ECHO_T}no" >&6
4607 fi
4608
4609
4610 enablestring=
4611 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4612echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4613 no_cache=0
4614 # Check whether --enable-cmdline or --disable-cmdline was given.
4615if test "${enable_cmdline+set}" = set; then
4616 enableval="$enable_cmdline"
4617
4618 if test "$enableval" = yes; then
4619 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4620 else
4621 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4622 fi
4623
4624else
4625
4626 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4627 if test "x$LINE" != x ; then
4628 eval "DEFAULT_$LINE"
4629 else
4630 no_cache=1
4631 fi
4632
4633 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4634
4635fi;
4636
4637 eval "$ac_cv_use_cmdline"
4638 if test "$no_cache" != 1; then
4639 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4640 fi
4641
4642 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4643 echo "$as_me:$LINENO: result: yes" >&5
4644echo "${ECHO_T}yes" >&6
4645 else
4646 echo "$as_me:$LINENO: result: no" >&5
4647echo "${ECHO_T}no" >&6
4648 fi
4649
4650
4651 enablestring=
4652 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4653echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4654 no_cache=0
4655 # Check whether --enable-datetime or --disable-datetime was given.
4656if test "${enable_datetime+set}" = set; then
4657 enableval="$enable_datetime"
4658
4659 if test "$enableval" = yes; then
4660 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4661 else
4662 ac_cv_use_datetime='wxUSE_DATETIME=no'
4663 fi
4664
4665else
4666
4667 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4668 if test "x$LINE" != x ; then
4669 eval "DEFAULT_$LINE"
4670 else
4671 no_cache=1
4672 fi
4673
4674 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4675
4676fi;
4677
4678 eval "$ac_cv_use_datetime"
4679 if test "$no_cache" != 1; then
4680 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4681 fi
4682
4683 if test "$wxUSE_DATETIME" = yes; then
4684 echo "$as_me:$LINENO: result: yes" >&5
4685echo "${ECHO_T}yes" >&6
4686 else
4687 echo "$as_me:$LINENO: result: no" >&5
4688echo "${ECHO_T}no" >&6
4689 fi
4690
4691
4692 enablestring=
4693 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4694echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4695 no_cache=0
4696 # Check whether --enable-dialupman or --disable-dialupman was given.
4697if test "${enable_dialupman+set}" = set; then
4698 enableval="$enable_dialupman"
4699
4700 if test "$enableval" = yes; then
4701 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4702 else
4703 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4704 fi
4705
4706else
4707
4708 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4709 if test "x$LINE" != x ; then
4710 eval "DEFAULT_$LINE"
4711 else
4712 no_cache=1
4713 fi
4714
4715 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4716
4717fi;
4718
4719 eval "$ac_cv_use_dialupman"
4720 if test "$no_cache" != 1; then
4721 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4722 fi
4723
4724 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4725 echo "$as_me:$LINENO: result: yes" >&5
4726echo "${ECHO_T}yes" >&6
4727 else
4728 echo "$as_me:$LINENO: result: no" >&5
4729echo "${ECHO_T}no" >&6
4730 fi
4731
4732
4733 enablestring=
4734 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4735echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4736 no_cache=0
4737 # Check whether --enable-dynlib or --disable-dynlib was given.
4738if test "${enable_dynlib+set}" = set; then
4739 enableval="$enable_dynlib"
4740
4741 if test "$enableval" = yes; then
4742 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4743 else
4744 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4745 fi
4746
4747else
4748
4749 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4750 if test "x$LINE" != x ; then
4751 eval "DEFAULT_$LINE"
4752 else
4753 no_cache=1
4754 fi
4755
4756 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4757
4758fi;
4759
4760 eval "$ac_cv_use_dynlib"
4761 if test "$no_cache" != 1; then
4762 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4763 fi
4764
4765 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4766 echo "$as_me:$LINENO: result: yes" >&5
4767echo "${ECHO_T}yes" >&6
4768 else
4769 echo "$as_me:$LINENO: result: no" >&5
4770echo "${ECHO_T}no" >&6
4771 fi
4772
4773
4774 enablestring=
4775 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4776echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4777 no_cache=0
4778 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4779if test "${enable_dynamicloader+set}" = set; then
4780 enableval="$enable_dynamicloader"
4781
4782 if test "$enableval" = yes; then
4783 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4784 else
4785 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4786 fi
4787
4788else
4789
4790 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4791 if test "x$LINE" != x ; then
4792 eval "DEFAULT_$LINE"
4793 else
4794 no_cache=1
4795 fi
4796
4797 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
4798
4799fi;
4800
4801 eval "$ac_cv_use_dynamicloader"
4802 if test "$no_cache" != 1; then
4803 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4804 fi
4805
4806 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
4807 echo "$as_me:$LINENO: result: yes" >&5
4808echo "${ECHO_T}yes" >&6
4809 else
4810 echo "$as_me:$LINENO: result: no" >&5
4811echo "${ECHO_T}no" >&6
4812 fi
4813
4814
4815 enablestring=
4816 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
4817echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
4818 no_cache=0
4819 # Check whether --enable-exceptions or --disable-exceptions was given.
4820if test "${enable_exceptions+set}" = set; then
4821 enableval="$enable_exceptions"
4822
4823 if test "$enableval" = yes; then
4824 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
4825 else
4826 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
4827 fi
4828
4829else
4830
4831 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
4832 if test "x$LINE" != x ; then
4833 eval "DEFAULT_$LINE"
4834 else
4835 no_cache=1
4836 fi
4837
4838 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
4839
4840fi;
4841
4842 eval "$ac_cv_use_exceptions"
4843 if test "$no_cache" != 1; then
4844 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
4845 fi
4846
4847 if test "$wxUSE_EXCEPTIONS" = yes; then
4848 echo "$as_me:$LINENO: result: yes" >&5
4849echo "${ECHO_T}yes" >&6
4850 else
4851 echo "$as_me:$LINENO: result: no" >&5
4852echo "${ECHO_T}no" >&6
4853 fi
4854
4855
4856 enablestring=
4857 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4858echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
4859 no_cache=0
4860 # Check whether --enable-ffile or --disable-ffile was given.
4861if test "${enable_ffile+set}" = set; then
4862 enableval="$enable_ffile"
4863
4864 if test "$enableval" = yes; then
4865 ac_cv_use_ffile='wxUSE_FFILE=yes'
4866 else
4867 ac_cv_use_ffile='wxUSE_FFILE=no'
4868 fi
4869
4870else
4871
4872 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4873 if test "x$LINE" != x ; then
4874 eval "DEFAULT_$LINE"
4875 else
4876 no_cache=1
4877 fi
4878
4879 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4880
4881fi;
4882
4883 eval "$ac_cv_use_ffile"
4884 if test "$no_cache" != 1; then
4885 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4886 fi
4887
4888 if test "$wxUSE_FFILE" = yes; then
4889 echo "$as_me:$LINENO: result: yes" >&5
4890echo "${ECHO_T}yes" >&6
4891 else
4892 echo "$as_me:$LINENO: result: no" >&5
4893echo "${ECHO_T}no" >&6
4894 fi
4895
4896
4897 enablestring=
4898 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4899echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
4900 no_cache=0
4901 # Check whether --enable-file or --disable-file was given.
4902if test "${enable_file+set}" = set; then
4903 enableval="$enable_file"
4904
4905 if test "$enableval" = yes; then
4906 ac_cv_use_file='wxUSE_FILE=yes'
4907 else
4908 ac_cv_use_file='wxUSE_FILE=no'
4909 fi
4910
4911else
4912
4913 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4914 if test "x$LINE" != x ; then
4915 eval "DEFAULT_$LINE"
4916 else
4917 no_cache=1
4918 fi
4919
4920 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
4921
4922fi;
4923
4924 eval "$ac_cv_use_file"
4925 if test "$no_cache" != 1; then
4926 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4927 fi
4928
4929 if test "$wxUSE_FILE" = yes; then
4930 echo "$as_me:$LINENO: result: yes" >&5
4931echo "${ECHO_T}yes" >&6
4932 else
4933 echo "$as_me:$LINENO: result: no" >&5
4934echo "${ECHO_T}no" >&6
4935 fi
4936
4937
4938 enablestring=
4939 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
4940echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
4941 no_cache=0
4942 # Check whether --enable-filesystem or --disable-filesystem was given.
4943if test "${enable_filesystem+set}" = set; then
4944 enableval="$enable_filesystem"
4945
4946 if test "$enableval" = yes; then
4947 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4948 else
4949 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4950 fi
4951
4952else
4953
4954 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4955 if test "x$LINE" != x ; then
4956 eval "DEFAULT_$LINE"
4957 else
4958 no_cache=1
4959 fi
4960
4961 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4962
4963fi;
4964
4965 eval "$ac_cv_use_filesystem"
4966 if test "$no_cache" != 1; then
4967 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4968 fi
4969
4970 if test "$wxUSE_FILESYSTEM" = yes; then
4971 echo "$as_me:$LINENO: result: yes" >&5
4972echo "${ECHO_T}yes" >&6
4973 else
4974 echo "$as_me:$LINENO: result: no" >&5
4975echo "${ECHO_T}no" >&6
4976 fi
4977
4978
4979 enablestring=
4980 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
4981echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
4982 no_cache=0
4983 # Check whether --enable-fontmap or --disable-fontmap was given.
4984if test "${enable_fontmap+set}" = set; then
4985 enableval="$enable_fontmap"
4986
4987 if test "$enableval" = yes; then
4988 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4989 else
4990 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4991 fi
4992
4993else
4994
4995 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4996 if test "x$LINE" != x ; then
4997 eval "DEFAULT_$LINE"
4998 else
4999 no_cache=1
5000 fi
5001
5002 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5003
5004fi;
5005
5006 eval "$ac_cv_use_fontmap"
5007 if test "$no_cache" != 1; then
5008 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5009 fi
5010
5011 if test "$wxUSE_FONTMAP" = yes; then
5012 echo "$as_me:$LINENO: result: yes" >&5
5013echo "${ECHO_T}yes" >&6
5014 else
5015 echo "$as_me:$LINENO: result: no" >&5
5016echo "${ECHO_T}no" >&6
5017 fi
5018
5019
5020 enablestring=
5021 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5022echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5023 no_cache=0
5024 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5025if test "${enable_fs_inet+set}" = set; then
5026 enableval="$enable_fs_inet"
5027
5028 if test "$enableval" = yes; then
5029 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5030 else
5031 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5032 fi
5033
5034else
5035
5036 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5037 if test "x$LINE" != x ; then
5038 eval "DEFAULT_$LINE"
5039 else
5040 no_cache=1
5041 fi
5042
5043 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5044
5045fi;
5046
5047 eval "$ac_cv_use_fs_inet"
5048 if test "$no_cache" != 1; then
5049 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5050 fi
5051
5052 if test "$wxUSE_FS_INET" = yes; then
5053 echo "$as_me:$LINENO: result: yes" >&5
5054echo "${ECHO_T}yes" >&6
5055 else
5056 echo "$as_me:$LINENO: result: no" >&5
5057echo "${ECHO_T}no" >&6
5058 fi
5059
5060
5061 enablestring=
5062 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5063echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5064 no_cache=0
5065 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5066if test "${enable_fs_zip+set}" = set; then
5067 enableval="$enable_fs_zip"
5068
5069 if test "$enableval" = yes; then
5070 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5071 else
5072 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5073 fi
5074
5075else
5076
5077 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5078 if test "x$LINE" != x ; then
5079 eval "DEFAULT_$LINE"
5080 else
5081 no_cache=1
5082 fi
5083
5084 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5085
5086fi;
5087
5088 eval "$ac_cv_use_fs_zip"
5089 if test "$no_cache" != 1; then
5090 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5091 fi
5092
5093 if test "$wxUSE_FS_ZIP" = yes; then
5094 echo "$as_me:$LINENO: result: yes" >&5
5095echo "${ECHO_T}yes" >&6
5096 else
5097 echo "$as_me:$LINENO: result: no" >&5
5098echo "${ECHO_T}no" >&6
5099 fi
5100
5101
5102 enablestring=
5103 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5104echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5105 no_cache=0
5106 # Check whether --enable-geometry or --disable-geometry was given.
5107if test "${enable_geometry+set}" = set; then
5108 enableval="$enable_geometry"
5109
5110 if test "$enableval" = yes; then
5111 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5112 else
5113 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5114 fi
5115
5116else
5117
5118 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5119 if test "x$LINE" != x ; then
5120 eval "DEFAULT_$LINE"
5121 else
5122 no_cache=1
5123 fi
5124
5125 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5126
5127fi;
5128
5129 eval "$ac_cv_use_geometry"
5130 if test "$no_cache" != 1; then
5131 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5132 fi
5133
5134 if test "$wxUSE_GEOMETRY" = yes; then
5135 echo "$as_me:$LINENO: result: yes" >&5
5136echo "${ECHO_T}yes" >&6
5137 else
5138 echo "$as_me:$LINENO: result: no" >&5
5139echo "${ECHO_T}no" >&6
5140 fi
5141
5142
5143 enablestring=
5144 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5145echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5146 no_cache=0
5147 # Check whether --enable-log or --disable-log was given.
5148if test "${enable_log+set}" = set; then
5149 enableval="$enable_log"
5150
5151 if test "$enableval" = yes; then
5152 ac_cv_use_log='wxUSE_LOG=yes'
5153 else
5154 ac_cv_use_log='wxUSE_LOG=no'
5155 fi
5156
5157else
5158
5159 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5160 if test "x$LINE" != x ; then
5161 eval "DEFAULT_$LINE"
5162 else
5163 no_cache=1
5164 fi
5165
5166 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5167
5168fi;
5169
5170 eval "$ac_cv_use_log"
5171 if test "$no_cache" != 1; then
5172 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5173 fi
5174
5175 if test "$wxUSE_LOG" = yes; then
5176 echo "$as_me:$LINENO: result: yes" >&5
5177echo "${ECHO_T}yes" >&6
5178 else
5179 echo "$as_me:$LINENO: result: no" >&5
5180echo "${ECHO_T}no" >&6
5181 fi
5182
5183
5184 enablestring=
5185 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5186echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5187 no_cache=0
5188 # Check whether --enable-longlong or --disable-longlong was given.
5189if test "${enable_longlong+set}" = set; then
5190 enableval="$enable_longlong"
5191
5192 if test "$enableval" = yes; then
5193 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5194 else
5195 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5196 fi
5197
5198else
5199
5200 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5201 if test "x$LINE" != x ; then
5202 eval "DEFAULT_$LINE"
5203 else
5204 no_cache=1
5205 fi
5206
5207 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5208
5209fi;
5210
5211 eval "$ac_cv_use_longlong"
5212 if test "$no_cache" != 1; then
5213 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5214 fi
5215
5216 if test "$wxUSE_LONGLONG" = yes; then
5217 echo "$as_me:$LINENO: result: yes" >&5
5218echo "${ECHO_T}yes" >&6
5219 else
5220 echo "$as_me:$LINENO: result: no" >&5
5221echo "${ECHO_T}no" >&6
5222 fi
5223
5224
5225 enablestring=
5226 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5227echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5228 no_cache=0
5229 # Check whether --enable-mimetype or --disable-mimetype was given.
5230if test "${enable_mimetype+set}" = set; then
5231 enableval="$enable_mimetype"
5232
5233 if test "$enableval" = yes; then
5234 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5235 else
5236 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5237 fi
5238
5239else
5240
5241 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5242 if test "x$LINE" != x ; then
5243 eval "DEFAULT_$LINE"
5244 else
5245 no_cache=1
5246 fi
5247
5248 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5249
5250fi;
5251
5252 eval "$ac_cv_use_mimetype"
5253 if test "$no_cache" != 1; then
5254 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5255 fi
5256
5257 if test "$wxUSE_MIMETYPE" = yes; then
5258 echo "$as_me:$LINENO: result: yes" >&5
5259echo "${ECHO_T}yes" >&6
5260 else
5261 echo "$as_me:$LINENO: result: no" >&5
5262echo "${ECHO_T}no" >&6
5263 fi
5264
5265
5266 enablestring=
5267 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5268echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5269 no_cache=0
5270 # Check whether --enable-mslu or --disable-mslu was given.
5271if test "${enable_mslu+set}" = set; then
5272 enableval="$enable_mslu"
5273
5274 if test "$enableval" = yes; then
5275 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5276 else
5277 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5278 fi
5279
5280else
5281
5282 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5283 if test "x$LINE" != x ; then
5284 eval "DEFAULT_$LINE"
5285 else
5286 no_cache=1
5287 fi
5288
5289 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5290
5291fi;
5292
5293 eval "$ac_cv_use_mslu"
5294 if test "$no_cache" != 1; then
5295 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5296 fi
5297
5298 if test "$wxUSE_UNICODE_MSLU" = yes; then
5299 echo "$as_me:$LINENO: result: yes" >&5
5300echo "${ECHO_T}yes" >&6
5301 else
5302 echo "$as_me:$LINENO: result: no" >&5
5303echo "${ECHO_T}no" >&6
5304 fi
5305
5306
5307 enablestring=
5308 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5309echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5310 no_cache=0
5311 # Check whether --enable-snglinst or --disable-snglinst was given.
5312if test "${enable_snglinst+set}" = set; then
5313 enableval="$enable_snglinst"
5314
5315 if test "$enableval" = yes; then
5316 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5317 else
5318 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5319 fi
5320
5321else
5322
5323 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5324 if test "x$LINE" != x ; then
5325 eval "DEFAULT_$LINE"
5326 else
5327 no_cache=1
5328 fi
5329
5330 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5331
5332fi;
5333
5334 eval "$ac_cv_use_snglinst"
5335 if test "$no_cache" != 1; then
5336 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5337 fi
5338
5339 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5340 echo "$as_me:$LINENO: result: yes" >&5
5341echo "${ECHO_T}yes" >&6
5342 else
5343 echo "$as_me:$LINENO: result: no" >&5
5344echo "${ECHO_T}no" >&6
5345 fi
5346
5347
5348 enablestring=
5349 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5350echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5351 no_cache=0
5352 # Check whether --enable-streams or --disable-streams was given.
5353if test "${enable_streams+set}" = set; then
5354 enableval="$enable_streams"
5355
5356 if test "$enableval" = yes; then
5357 ac_cv_use_streams='wxUSE_STREAMS=yes'
5358 else
5359 ac_cv_use_streams='wxUSE_STREAMS=no'
5360 fi
5361
5362else
5363
5364 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5365 if test "x$LINE" != x ; then
5366 eval "DEFAULT_$LINE"
5367 else
5368 no_cache=1
5369 fi
5370
5371 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5372
5373fi;
5374
5375 eval "$ac_cv_use_streams"
5376 if test "$no_cache" != 1; then
5377 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5378 fi
5379
5380 if test "$wxUSE_STREAMS" = yes; then
5381 echo "$as_me:$LINENO: result: yes" >&5
5382echo "${ECHO_T}yes" >&6
5383 else
5384 echo "$as_me:$LINENO: result: no" >&5
5385echo "${ECHO_T}no" >&6
5386 fi
5387
5388
5389 enablestring=
5390 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5391echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5392 no_cache=0
5393 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5394if test "${enable_std_iostreams+set}" = set; then
5395 enableval="$enable_std_iostreams"
5396
5397 if test "$enableval" = yes; then
5398 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5399 else
5400 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5401 fi
5402
5403else
5404
5405 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5406 if test "x$LINE" != x ; then
5407 eval "DEFAULT_$LINE"
5408 else
5409 no_cache=1
5410 fi
5411
5412 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5413
5414fi;
5415
5416 eval "$ac_cv_use_std_iostreams"
5417 if test "$no_cache" != 1; then
5418 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5419 fi
5420
5421 if test "$wxUSE_STD_IOSTREAM" = yes; then
5422 echo "$as_me:$LINENO: result: yes" >&5
5423echo "${ECHO_T}yes" >&6
5424 else
5425 echo "$as_me:$LINENO: result: no" >&5
5426echo "${ECHO_T}no" >&6
5427 fi
5428
5429
5430 enablestring=
5431 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5432echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5433 no_cache=0
5434 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5435if test "${enable_stopwatch+set}" = set; then
5436 enableval="$enable_stopwatch"
5437
5438 if test "$enableval" = yes; then
5439 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5440 else
5441 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5442 fi
5443
5444else
5445
5446 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5447 if test "x$LINE" != x ; then
5448 eval "DEFAULT_$LINE"
5449 else
5450 no_cache=1
5451 fi
5452
5453 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5454
5455fi;
5456
5457 eval "$ac_cv_use_stopwatch"
5458 if test "$no_cache" != 1; then
5459 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5460 fi
5461
5462 if test "$wxUSE_STOPWATCH" = yes; then
5463 echo "$as_me:$LINENO: result: yes" >&5
5464echo "${ECHO_T}yes" >&6
5465 else
5466 echo "$as_me:$LINENO: result: no" >&5
5467echo "${ECHO_T}no" >&6
5468 fi
5469
5470
5471 enablestring=
5472 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5473echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5474 no_cache=0
5475 # Check whether --enable-system_options or --disable-system_options was given.
5476if test "${enable_system_options+set}" = set; then
5477 enableval="$enable_system_options"
5478
5479 if test "$enableval" = yes; then
5480 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5481 else
5482 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5483 fi
5484
5485else
5486
5487 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5488 if test "x$LINE" != x ; then
5489 eval "DEFAULT_$LINE"
5490 else
5491 no_cache=1
5492 fi
5493
5494 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5495
5496fi;
5497
5498 eval "$ac_cv_use_system_options"
5499 if test "$no_cache" != 1; then
5500 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5501 fi
5502
5503 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5504 echo "$as_me:$LINENO: result: yes" >&5
5505echo "${ECHO_T}yes" >&6
5506 else
5507 echo "$as_me:$LINENO: result: no" >&5
5508echo "${ECHO_T}no" >&6
5509 fi
5510
5511
5512 enablestring=
5513 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5514echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5515 no_cache=0
5516 # Check whether --enable-textbuf or --disable-textbuf was given.
5517if test "${enable_textbuf+set}" = set; then
5518 enableval="$enable_textbuf"
5519
5520 if test "$enableval" = yes; then
5521 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5522 else
5523 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5524 fi
5525
5526else
5527
5528 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5529 if test "x$LINE" != x ; then
5530 eval "DEFAULT_$LINE"
5531 else
5532 no_cache=1
5533 fi
5534
5535 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5536
5537fi;
5538
5539 eval "$ac_cv_use_textbuf"
5540 if test "$no_cache" != 1; then
5541 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5542 fi
5543
5544 if test "$wxUSE_TEXTBUFFER" = yes; then
5545 echo "$as_me:$LINENO: result: yes" >&5
5546echo "${ECHO_T}yes" >&6
5547 else
5548 echo "$as_me:$LINENO: result: no" >&5
5549echo "${ECHO_T}no" >&6
5550 fi
5551
5552
5553 enablestring=
5554 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5555echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5556 no_cache=0
5557 # Check whether --enable-textfile or --disable-textfile was given.
5558if test "${enable_textfile+set}" = set; then
5559 enableval="$enable_textfile"
5560
5561 if test "$enableval" = yes; then
5562 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5563 else
5564 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5565 fi
5566
5567else
5568
5569 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5570 if test "x$LINE" != x ; then
5571 eval "DEFAULT_$LINE"
5572 else
5573 no_cache=1
5574 fi
5575
5576 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5577
5578fi;
5579
5580 eval "$ac_cv_use_textfile"
5581 if test "$no_cache" != 1; then
5582 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5583 fi
5584
5585 if test "$wxUSE_TEXTFILE" = yes; then
5586 echo "$as_me:$LINENO: result: yes" >&5
5587echo "${ECHO_T}yes" >&6
5588 else
5589 echo "$as_me:$LINENO: result: no" >&5
5590echo "${ECHO_T}no" >&6
5591 fi
5592
5593
5594 enablestring=
5595 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5596echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5597 no_cache=0
5598 # Check whether --enable-timer or --disable-timer was given.
5599if test "${enable_timer+set}" = set; then
5600 enableval="$enable_timer"
5601
5602 if test "$enableval" = yes; then
5603 ac_cv_use_timer='wxUSE_TIMER=yes'
5604 else
5605 ac_cv_use_timer='wxUSE_TIMER=no'
5606 fi
5607
5608else
5609
5610 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5611 if test "x$LINE" != x ; then
5612 eval "DEFAULT_$LINE"
5613 else
5614 no_cache=1
5615 fi
5616
5617 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5618
5619fi;
5620
5621 eval "$ac_cv_use_timer"
5622 if test "$no_cache" != 1; then
5623 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5624 fi
5625
5626 if test "$wxUSE_TIMER" = yes; then
5627 echo "$as_me:$LINENO: result: yes" >&5
5628echo "${ECHO_T}yes" >&6
5629 else
5630 echo "$as_me:$LINENO: result: no" >&5
5631echo "${ECHO_T}no" >&6
5632 fi
5633
5634
5635 enablestring=
5636 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5637echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5638 no_cache=0
5639 # Check whether --enable-unicode or --disable-unicode was given.
5640if test "${enable_unicode+set}" = set; then
5641 enableval="$enable_unicode"
5642
5643 if test "$enableval" = yes; then
5644 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5645 else
5646 ac_cv_use_unicode='wxUSE_UNICODE=no'
5647 fi
5648
5649else
5650
5651 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5652 if test "x$LINE" != x ; then
5653 eval "DEFAULT_$LINE"
5654 else
5655 no_cache=1
5656 fi
5657
5658 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5659
5660fi;
5661
5662 eval "$ac_cv_use_unicode"
5663 if test "$no_cache" != 1; then
5664 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5665 fi
5666
5667 if test "$wxUSE_UNICODE" = yes; then
5668 echo "$as_me:$LINENO: result: yes" >&5
5669echo "${ECHO_T}yes" >&6
5670 else
5671 echo "$as_me:$LINENO: result: no" >&5
5672echo "${ECHO_T}no" >&6
5673 fi
5674
5675
5676 enablestring=
5677 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5678echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5679 no_cache=0
5680 # Check whether --enable-sound or --disable-sound was given.
5681if test "${enable_sound+set}" = set; then
5682 enableval="$enable_sound"
5683
5684 if test "$enableval" = yes; then
5685 ac_cv_use_sound='wxUSE_SOUND=yes'
5686 else
5687 ac_cv_use_sound='wxUSE_SOUND=no'
5688 fi
5689
5690else
5691
5692 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5693 if test "x$LINE" != x ; then
5694 eval "DEFAULT_$LINE"
5695 else
5696 no_cache=1
5697 fi
5698
5699 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5700
5701fi;
5702
5703 eval "$ac_cv_use_sound"
5704 if test "$no_cache" != 1; then
5705 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5706 fi
5707
5708 if test "$wxUSE_SOUND" = yes; then
5709 echo "$as_me:$LINENO: result: yes" >&5
5710echo "${ECHO_T}yes" >&6
5711 else
5712 echo "$as_me:$LINENO: result: no" >&5
5713echo "${ECHO_T}no" >&6
5714 fi
5715
5716
5717 enablestring=
5718 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5719echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
5720 no_cache=0
5721 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5722if test "${enable_wxprintfv+set}" = set; then
5723 enableval="$enable_wxprintfv"
5724
5725 if test "$enableval" = yes; then
5726 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5727 else
5728 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5729 fi
5730
5731else
5732
5733 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5734 if test "x$LINE" != x ; then
5735 eval "DEFAULT_$LINE"
5736 else
5737 no_cache=1
5738 fi
5739
5740 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
5741
5742fi;
5743
5744 eval "$ac_cv_use_wxprintfv"
5745 if test "$no_cache" != 1; then
5746 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5747 fi
5748
5749 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
5750 echo "$as_me:$LINENO: result: yes" >&5
5751echo "${ECHO_T}yes" >&6
5752 else
5753 echo "$as_me:$LINENO: result: no" >&5
5754echo "${ECHO_T}no" >&6
5755 fi
5756
5757
5758 enablestring=
5759 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5760echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
5761 no_cache=0
5762 # Check whether --enable-zipstream or --disable-zipstream was given.
5763if test "${enable_zipstream+set}" = set; then
5764 enableval="$enable_zipstream"
5765
5766 if test "$enableval" = yes; then
5767 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5768 else
5769 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5770 fi
5771
5772else
5773
5774 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
5775 if test "x$LINE" != x ; then
5776 eval "DEFAULT_$LINE"
5777 else
5778 no_cache=1
5779 fi
5780
5781 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
5782
5783fi;
5784
5785 eval "$ac_cv_use_zipstream"
5786 if test "$no_cache" != 1; then
5787 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
5788 fi
5789
5790 if test "$wxUSE_ZIPSTREAM" = yes; then
5791 echo "$as_me:$LINENO: result: yes" >&5
5792echo "${ECHO_T}yes" >&6
5793 else
5794 echo "$as_me:$LINENO: result: no" >&5
5795echo "${ECHO_T}no" >&6
5796 fi
5797
5798
a848cd7e
SC
5799
5800 enablestring=
5801 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5802echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
5803 no_cache=0
5804 # Check whether --enable-url or --disable-url was given.
5805if test "${enable_url+set}" = set; then
5806 enableval="$enable_url"
5807
5808 if test "$enableval" = yes; then
5809 ac_cv_use_url='wxUSE_URL=yes'
5810 else
5811 ac_cv_use_url='wxUSE_URL=no'
5812 fi
5813
5814else
5815
5816 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5817 if test "x$LINE" != x ; then
5818 eval "DEFAULT_$LINE"
5819 else
5820 no_cache=1
5821 fi
5822
5823 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
5824
5825fi;
5826
5827 eval "$ac_cv_use_url"
5828 if test "$no_cache" != 1; then
5829 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5830 fi
5831
5832 if test "$wxUSE_URL" = yes; then
5833 echo "$as_me:$LINENO: result: yes" >&5
5834echo "${ECHO_T}yes" >&6
5835 else
5836 echo "$as_me:$LINENO: result: no" >&5
5837echo "${ECHO_T}no" >&6
5838 fi
5839
5840
5841 enablestring=
5842 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5843echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
5844 no_cache=0
5845 # Check whether --enable-protocol or --disable-protocol was given.
5846if test "${enable_protocol+set}" = set; then
5847 enableval="$enable_protocol"
5848
5849 if test "$enableval" = yes; then
5850 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5851 else
5852 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5853 fi
5854
5855else
5856
5857 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5858 if test "x$LINE" != x ; then
5859 eval "DEFAULT_$LINE"
5860 else
5861 no_cache=1
5862 fi
5863
5864 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
5865
5866fi;
5867
5868 eval "$ac_cv_use_protocol"
5869 if test "$no_cache" != 1; then
5870 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5871 fi
5872
5873 if test "$wxUSE_PROTOCOL" = yes; then
5874 echo "$as_me:$LINENO: result: yes" >&5
5875echo "${ECHO_T}yes" >&6
5876 else
5877 echo "$as_me:$LINENO: result: no" >&5
5878echo "${ECHO_T}no" >&6
5879 fi
5880
5881
5882 enablestring=
5883 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5884echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
5885 no_cache=0
5886 # Check whether --enable-protocol_http or --disable-protocol_http was given.
5887if test "${enable_protocol_http+set}" = set; then
5888 enableval="$enable_protocol_http"
5889
5890 if test "$enableval" = yes; then
5891 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5892 else
5893 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5894 fi
5895
5896else
5897
5898 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5899 if test "x$LINE" != x ; then
5900 eval "DEFAULT_$LINE"
5901 else
5902 no_cache=1
5903 fi
5904
5905 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
5906
5907fi;
5908
5909 eval "$ac_cv_use_protocol_http"
5910 if test "$no_cache" != 1; then
5911 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5912 fi
5913
5914 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
5915 echo "$as_me:$LINENO: result: yes" >&5
5916echo "${ECHO_T}yes" >&6
5917 else
5918 echo "$as_me:$LINENO: result: no" >&5
5919echo "${ECHO_T}no" >&6
5920 fi
5921
5922
5923 enablestring=
5924 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5925echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
5926 no_cache=0
5927 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5928if test "${enable_protocol_ftp+set}" = set; then
5929 enableval="$enable_protocol_ftp"
5930
5931 if test "$enableval" = yes; then
5932 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5933 else
5934 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5935 fi
5936
5937else
5938
5939 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5940 if test "x$LINE" != x ; then
5941 eval "DEFAULT_$LINE"
5942 else
5943 no_cache=1
5944 fi
5945
5946 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
5947
5948fi;
5949
5950 eval "$ac_cv_use_protocol_ftp"
5951 if test "$no_cache" != 1; then
5952 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5953 fi
5954
5955 if test "$wxUSE_PROTOCOL_FTP" = yes; then
5956 echo "$as_me:$LINENO: result: yes" >&5
5957echo "${ECHO_T}yes" >&6
5958 else
5959 echo "$as_me:$LINENO: result: no" >&5
5960echo "${ECHO_T}no" >&6
5961 fi
5962
5963
5964 enablestring=
5965 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
5966echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
5967 no_cache=0
5968 # Check whether --enable-protocol_file or --disable-protocol_file was given.
5969if test "${enable_protocol_file+set}" = set; then
5970 enableval="$enable_protocol_file"
5971
5972 if test "$enableval" = yes; then
5973 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
5974 else
5975 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
5976 fi
5977
5978else
5979
5980 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
5981 if test "x$LINE" != x ; then
5982 eval "DEFAULT_$LINE"
5983 else
5984 no_cache=1
5985 fi
5986
5987 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
5988
5989fi;
5990
5991 eval "$ac_cv_use_protocol_file"
5992 if test "$no_cache" != 1; then
5993 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
5994 fi
5995
5996 if test "$wxUSE_PROTOCOL_FILE" = yes; then
5997 echo "$as_me:$LINENO: result: yes" >&5
5998echo "${ECHO_T}yes" >&6
5999 else
6000 echo "$as_me:$LINENO: result: no" >&5
6001echo "${ECHO_T}no" >&6
6002 fi
6003
6004
6005
6006
6007
6008 enablestring=
6009 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6010echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6011 no_cache=0
6012 # Check whether --enable-threads or --disable-threads was given.
6013if test "${enable_threads+set}" = set; then
6014 enableval="$enable_threads"
6015
6016 if test "$enableval" = yes; then
6017 ac_cv_use_threads='wxUSE_THREADS=yes'
6018 else
6019 ac_cv_use_threads='wxUSE_THREADS=no'
6020 fi
6021
6022else
6023
6024 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6025 if test "x$LINE" != x ; then
6026 eval "DEFAULT_$LINE"
6027 else
6028 no_cache=1
6029 fi
6030
6031 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6032
6033fi;
6034
6035 eval "$ac_cv_use_threads"
6036 if test "$no_cache" != 1; then
6037 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6038 fi
6039
6040 if test "$wxUSE_THREADS" = yes; then
6041 echo "$as_me:$LINENO: result: yes" >&5
6042echo "${ECHO_T}yes" >&6
6043 else
6044 echo "$as_me:$LINENO: result: no" >&5
6045echo "${ECHO_T}no" >&6
6046 fi
6047
6048
6049if test "$wxUSE_GUI" = "yes"; then
6050
6051
6052
6053 enablestring=
6054 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6055echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6056 no_cache=0
6057 # Check whether --enable-docview or --disable-docview was given.
6058if test "${enable_docview+set}" = set; then
6059 enableval="$enable_docview"
6060
6061 if test "$enableval" = yes; then
6062 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6063 else
6064 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6065 fi
6066
6067else
6068
6069 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6070 if test "x$LINE" != x ; then
6071 eval "DEFAULT_$LINE"
6072 else
6073 no_cache=1
6074 fi
6075
6076 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6077
6078fi;
6079
6080 eval "$ac_cv_use_docview"
6081 if test "$no_cache" != 1; then
6082 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6083 fi
6084
6085 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6086 echo "$as_me:$LINENO: result: yes" >&5
6087echo "${ECHO_T}yes" >&6
6088 else
6089 echo "$as_me:$LINENO: result: no" >&5
6090echo "${ECHO_T}no" >&6
6091 fi
6092
6093
6094 enablestring=
6095 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6096echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6097 no_cache=0
6098 # Check whether --enable-help or --disable-help was given.
6099if test "${enable_help+set}" = set; then
6100 enableval="$enable_help"
6101
6102 if test "$enableval" = yes; then
6103 ac_cv_use_help='wxUSE_HELP=yes'
6104 else
6105 ac_cv_use_help='wxUSE_HELP=no'
6106 fi
6107
6108else
6109
6110 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6111 if test "x$LINE" != x ; then
6112 eval "DEFAULT_$LINE"
6113 else
6114 no_cache=1
6115 fi
6116
6117 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6118
6119fi;
6120
6121 eval "$ac_cv_use_help"
6122 if test "$no_cache" != 1; then
6123 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6124 fi
6125
6126 if test "$wxUSE_HELP" = yes; then
6127 echo "$as_me:$LINENO: result: yes" >&5
6128echo "${ECHO_T}yes" >&6
6129 else
6130 echo "$as_me:$LINENO: result: no" >&5
6131echo "${ECHO_T}no" >&6
6132 fi
6133
6134
6135 enablestring=
6136 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6137echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6138 no_cache=0
6139 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6140if test "${enable_mshtmlhelp+set}" = set; then
6141 enableval="$enable_mshtmlhelp"
6142
6143 if test "$enableval" = yes; then
6144 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6145 else
6146 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6147 fi
6148
6149else
6150
6151 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6152 if test "x$LINE" != x ; then
6153 eval "DEFAULT_$LINE"
6154 else
6155 no_cache=1
6156 fi
6157
6158 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6159
6160fi;
6161
6162 eval "$ac_cv_use_mshtmlhelp"
6163 if test "$no_cache" != 1; then
6164 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6165 fi
6166
6167 if test "$wxUSE_MS_HTML_HELP" = yes; then
6168 echo "$as_me:$LINENO: result: yes" >&5
6169echo "${ECHO_T}yes" >&6
6170 else
6171 echo "$as_me:$LINENO: result: no" >&5
6172echo "${ECHO_T}no" >&6
6173 fi
6174
6175
6176 enablestring=
6177 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6178echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6179 no_cache=0
6180 # Check whether --enable-html or --disable-html was given.
6181if test "${enable_html+set}" = set; then
6182 enableval="$enable_html"
6183
6184 if test "$enableval" = yes; then
6185 ac_cv_use_html='wxUSE_HTML=yes'
6186 else
6187 ac_cv_use_html='wxUSE_HTML=no'
6188 fi
6189
6190else
6191
6192 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6193 if test "x$LINE" != x ; then
6194 eval "DEFAULT_$LINE"
6195 else
6196 no_cache=1
6197 fi
6198
6199 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6200
6201fi;
6202
6203 eval "$ac_cv_use_html"
6204 if test "$no_cache" != 1; then
6205 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6206 fi
6207
6208 if test "$wxUSE_HTML" = yes; then
6209 echo "$as_me:$LINENO: result: yes" >&5
6210echo "${ECHO_T}yes" >&6
6211 else
6212 echo "$as_me:$LINENO: result: no" >&5
6213echo "${ECHO_T}no" >&6
6214 fi
6215
6216
6217 enablestring=
6218 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6219echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6220 no_cache=0
6221 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6222if test "${enable_htmlhelp+set}" = set; then
6223 enableval="$enable_htmlhelp"
6224
6225 if test "$enableval" = yes; then
6226 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6227 else
6228 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6229 fi
6230
6231else
6232
6233 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6234 if test "x$LINE" != x ; then
6235 eval "DEFAULT_$LINE"
6236 else
6237 no_cache=1
6238 fi
6239
6240 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6241
6242fi;
6243
6244 eval "$ac_cv_use_htmlhelp"
6245 if test "$no_cache" != 1; then
6246 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6247 fi
6248
6249 if test "$wxUSE_WXHTML_HELP" = yes; then
6250 echo "$as_me:$LINENO: result: yes" >&5
6251echo "${ECHO_T}yes" >&6
6252 else
6253 echo "$as_me:$LINENO: result: no" >&5
6254echo "${ECHO_T}no" >&6
6255 fi
6256
6257
6258 enablestring=
6259 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6260echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6261 no_cache=0
6262 # Check whether --enable-constraints or --disable-constraints was given.
6263if test "${enable_constraints+set}" = set; then
6264 enableval="$enable_constraints"
6265
6266 if test "$enableval" = yes; then
6267 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6268 else
6269 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6270 fi
6271
6272else
6273
6274 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6275 if test "x$LINE" != x ; then
6276 eval "DEFAULT_$LINE"
6277 else
6278 no_cache=1
6279 fi
6280
6281 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6282
6283fi;
6284
6285 eval "$ac_cv_use_constraints"
6286 if test "$no_cache" != 1; then
6287 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6288 fi
6289
6290 if test "$wxUSE_CONSTRAINTS" = yes; then
6291 echo "$as_me:$LINENO: result: yes" >&5
6292echo "${ECHO_T}yes" >&6
6293 else
6294 echo "$as_me:$LINENO: result: no" >&5
6295echo "${ECHO_T}no" >&6
6296 fi
6297
6298
6299 enablestring=
6300 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6301echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6302 no_cache=0
6303 # Check whether --enable-printarch or --disable-printarch was given.
6304if test "${enable_printarch+set}" = set; then
6305 enableval="$enable_printarch"
6306
6307 if test "$enableval" = yes; then
6308 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6309 else
6310 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6311 fi
6312
6313else
6314
6315 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6316 if test "x$LINE" != x ; then
6317 eval "DEFAULT_$LINE"
6318 else
6319 no_cache=1
6320 fi
6321
6322 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6323
6324fi;
6325
6326 eval "$ac_cv_use_printarch"
6327 if test "$no_cache" != 1; then
6328 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6329 fi
6330
6331 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6332 echo "$as_me:$LINENO: result: yes" >&5
6333echo "${ECHO_T}yes" >&6
6334 else
6335 echo "$as_me:$LINENO: result: no" >&5
6336echo "${ECHO_T}no" >&6
6337 fi
6338
6339
6340 enablestring=
6341 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6342echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6343 no_cache=0
6344 # Check whether --enable-mdi or --disable-mdi was given.
6345if test "${enable_mdi+set}" = set; then
6346 enableval="$enable_mdi"
6347
6348 if test "$enableval" = yes; then
8a7b1113 6349 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6350 else
8a7b1113 6351 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6352 fi
6353
6354else
6355
8a7b1113 6356 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6357 if test "x$LINE" != x ; then
6358 eval "DEFAULT_$LINE"
6359 else
6360 no_cache=1
6361 fi
6362
8a7b1113 6363 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6364
6365fi;
6366
6367 eval "$ac_cv_use_mdi"
6368 if test "$no_cache" != 1; then
6369 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6370 fi
6371
8a7b1113
VZ
6372 if test "$wxUSE_MDI" = yes; then
6373 echo "$as_me:$LINENO: result: yes" >&5
6374echo "${ECHO_T}yes" >&6
6375 else
6376 echo "$as_me:$LINENO: result: no" >&5
6377echo "${ECHO_T}no" >&6
6378 fi
6379
6380
6381 enablestring=
6382 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6383echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6384 no_cache=0
6385 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6386if test "${enable_mdidoc+set}" = set; then
6387 enableval="$enable_mdidoc"
6388
6389 if test "$enableval" = yes; then
6390 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6391 else
6392 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6393 fi
6394
6395else
6396
6397 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6398 if test "x$LINE" != x ; then
6399 eval "DEFAULT_$LINE"
6400 else
6401 no_cache=1
6402 fi
6403
6404 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6405
6406fi;
6407
6408 eval "$ac_cv_use_mdidoc"
6409 if test "$no_cache" != 1; then
6410 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6411 fi
6412
a848cd7e
SC
6413 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6414 echo "$as_me:$LINENO: result: yes" >&5
6415echo "${ECHO_T}yes" >&6
6416 else
6417 echo "$as_me:$LINENO: result: no" >&5
6418echo "${ECHO_T}no" >&6
6419 fi
6420
6421
6422 enablestring=
6423 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6424echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6425 no_cache=0
6426 # Check whether --enable-loggui or --disable-loggui was given.
6427if test "${enable_loggui+set}" = set; then
6428 enableval="$enable_loggui"
6429
6430 if test "$enableval" = yes; then
6431 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6432 else
6433 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6434 fi
6435
6436else
6437
6438 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6439 if test "x$LINE" != x ; then
6440 eval "DEFAULT_$LINE"
6441 else
6442 no_cache=1
6443 fi
6444
6445 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6446
6447fi;
6448
6449 eval "$ac_cv_use_loggui"
6450 if test "$no_cache" != 1; then
6451 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6452 fi
6453
6454 if test "$wxUSE_LOGGUI" = yes; then
6455 echo "$as_me:$LINENO: result: yes" >&5
6456echo "${ECHO_T}yes" >&6
6457 else
6458 echo "$as_me:$LINENO: result: no" >&5
6459echo "${ECHO_T}no" >&6
6460 fi
6461
6462
6463 enablestring=
6464 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6465echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6466 no_cache=0
6467 # Check whether --enable-logwin or --disable-logwin was given.
6468if test "${enable_logwin+set}" = set; then
6469 enableval="$enable_logwin"
6470
6471 if test "$enableval" = yes; then
6472 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6473 else
6474 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6475 fi
6476
6477else
6478
6479 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6480 if test "x$LINE" != x ; then
6481 eval "DEFAULT_$LINE"
6482 else
6483 no_cache=1
6484 fi
6485
6486 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6487
6488fi;
6489
6490 eval "$ac_cv_use_logwin"
6491 if test "$no_cache" != 1; then
6492 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6493 fi
6494
6495 if test "$wxUSE_LOGWINDOW" = yes; then
6496 echo "$as_me:$LINENO: result: yes" >&5
6497echo "${ECHO_T}yes" >&6
6498 else
6499 echo "$as_me:$LINENO: result: no" >&5
6500echo "${ECHO_T}no" >&6
6501 fi
6502
6503
6504 enablestring=
6505 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6506echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6507 no_cache=0
6508 # Check whether --enable-logdialog or --disable-logdialog was given.
6509if test "${enable_logdialog+set}" = set; then
6510 enableval="$enable_logdialog"
6511
6512 if test "$enableval" = yes; then
6513 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6514 else
6515 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6516 fi
6517
6518else
6519
6520 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6521 if test "x$LINE" != x ; then
6522 eval "DEFAULT_$LINE"
6523 else
6524 no_cache=1
6525 fi
6526
6527 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6528
6529fi;
6530
6531 eval "$ac_cv_use_logdialog"
6532 if test "$no_cache" != 1; then
6533 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6534 fi
6535
6536 if test "$wxUSE_LOGDIALOG" = yes; then
6537 echo "$as_me:$LINENO: result: yes" >&5
6538echo "${ECHO_T}yes" >&6
6539 else
6540 echo "$as_me:$LINENO: result: no" >&5
6541echo "${ECHO_T}no" >&6
6542 fi
6543
6544
646b6ec1
VS
6545 enablestring=
6546 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6547echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6548 no_cache=0
6549 # Check whether --enable-webkit or --disable-webkit was given.
6550if test "${enable_webkit+set}" = set; then
6551 enableval="$enable_webkit"
6552
6553 if test "$enableval" = yes; then
6554 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6555 else
6556 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6557 fi
6558
6559else
6560
6561 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6562 if test "x$LINE" != x ; then
6563 eval "DEFAULT_$LINE"
6564 else
6565 no_cache=1
6566 fi
6567
6568 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6569
6570fi;
6571
6572 eval "$ac_cv_use_webkit"
6573 if test "$no_cache" != 1; then
6574 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6575 fi
6576
6577 if test "$wxUSE_WEBKIT" = yes; then
6578 echo "$as_me:$LINENO: result: yes" >&5
6579echo "${ECHO_T}yes" >&6
6580 else
6581 echo "$as_me:$LINENO: result: no" >&5
6582echo "${ECHO_T}no" >&6
6583 fi
6584
6585
a848cd7e
SC
6586
6587 enablestring=
6588 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6589echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6590 no_cache=0
6591 # Check whether --enable-postscript or --disable-postscript was given.
6592if test "${enable_postscript+set}" = set; then
6593 enableval="$enable_postscript"
6594
6595 if test "$enableval" = yes; then
6596 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6597 else
6598 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6599 fi
6600
6601else
6602
6603 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6604 if test "x$LINE" != x ; then
6605 eval "DEFAULT_$LINE"
6606 else
6607 no_cache=1
6608 fi
6609
6610 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6611
6612fi;
6613
6614 eval "$ac_cv_use_postscript"
6615 if test "$no_cache" != 1; then
6616 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6617 fi
6618
6619 if test "$wxUSE_POSTSCRIPT" = yes; then
6620 echo "$as_me:$LINENO: result: yes" >&5
6621echo "${ECHO_T}yes" >&6
6622 else
6623 echo "$as_me:$LINENO: result: no" >&5
6624echo "${ECHO_T}no" >&6
6625 fi
6626
6627
6628
6629
6630
6631 enablestring=
6632 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6633echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
6634 no_cache=0
6635 # Check whether --enable-prologio or --disable-prologio was given.
6636if test "${enable_prologio+set}" = set; then
6637 enableval="$enable_prologio"
6638
6639 if test "$enableval" = yes; then
6640 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
6641 else
6642 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
6643 fi
6644
6645else
6646
6647 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
6648 if test "x$LINE" != x ; then
6649 eval "DEFAULT_$LINE"
6650 else
6651 no_cache=1
6652 fi
6653
6654 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
6655
6656fi;
6657
6658 eval "$ac_cv_use_prologio"
6659 if test "$no_cache" != 1; then
6660 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
6661 fi
6662
6663 if test "$wxUSE_PROLOGIO" = yes; then
6664 echo "$as_me:$LINENO: result: yes" >&5
6665echo "${ECHO_T}yes" >&6
6666 else
6667 echo "$as_me:$LINENO: result: no" >&5
6668echo "${ECHO_T}no" >&6
6669 fi
6670
6671
6672 enablestring=
6673 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6674echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
6675 no_cache=0
6676 # Check whether --enable-resources or --disable-resources was given.
6677if test "${enable_resources+set}" = set; then
6678 enableval="$enable_resources"
6679
6680 if test "$enableval" = yes; then
6681 ac_cv_use_resources='wxUSE_RESOURCES=yes'
6682 else
6683 ac_cv_use_resources='wxUSE_RESOURCES=no'
6684 fi
6685
6686else
6687
6688 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
6689 if test "x$LINE" != x ; then
6690 eval "DEFAULT_$LINE"
6691 else
6692 no_cache=1
6693 fi
6694
6695 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
6696
6697fi;
6698
6699 eval "$ac_cv_use_resources"
6700 if test "$no_cache" != 1; then
6701 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
6702 fi
6703
6704 if test "$wxUSE_RESOURCES" = yes; then
6705 echo "$as_me:$LINENO: result: yes" >&5
6706echo "${ECHO_T}yes" >&6
6707 else
6708 echo "$as_me:$LINENO: result: no" >&5
6709echo "${ECHO_T}no" >&6
6710 fi
6711
6712
6713
6714
6715 enablestring=
6716 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6717echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
6718 no_cache=0
6719 # Check whether --enable-clipboard or --disable-clipboard was given.
6720if test "${enable_clipboard+set}" = set; then
6721 enableval="$enable_clipboard"
6722
6723 if test "$enableval" = yes; then
6724 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6725 else
6726 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6727 fi
6728
6729else
6730
6731 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6732 if test "x$LINE" != x ; then
6733 eval "DEFAULT_$LINE"
6734 else
6735 no_cache=1
6736 fi
6737
6738 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
6739
6740fi;
6741
6742 eval "$ac_cv_use_clipboard"
6743 if test "$no_cache" != 1; then
6744 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6745 fi
6746
6747 if test "$wxUSE_CLIPBOARD" = yes; then
6748 echo "$as_me:$LINENO: result: yes" >&5
6749echo "${ECHO_T}yes" >&6
6750 else
6751 echo "$as_me:$LINENO: result: no" >&5
6752echo "${ECHO_T}no" >&6
6753 fi
6754
6755
6756 enablestring=
6757 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6758echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
6759 no_cache=0
6760 # Check whether --enable-dnd or --disable-dnd was given.
6761if test "${enable_dnd+set}" = set; then
6762 enableval="$enable_dnd"
6763
6764 if test "$enableval" = yes; then
6765 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6766 else
6767 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6768 fi
6769
6770else
6771
6772 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6773 if test "x$LINE" != x ; then
6774 eval "DEFAULT_$LINE"
6775 else
6776 no_cache=1
6777 fi
6778
6779 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
6780
6781fi;
6782
6783 eval "$ac_cv_use_dnd"
6784 if test "$no_cache" != 1; then
6785 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6786 fi
6787
6788 if test "$wxUSE_DRAG_AND_DROP" = yes; then
6789 echo "$as_me:$LINENO: result: yes" >&5
6790echo "${ECHO_T}yes" >&6
6791 else
6792 echo "$as_me:$LINENO: result: no" >&5
6793echo "${ECHO_T}no" >&6
6794 fi
6795
6796
6797 enablestring=
6798 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6799echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
6800 no_cache=0
6801 # Check whether --enable-metafile or --disable-metafile was given.
6802if test "${enable_metafile+set}" = set; then
6803 enableval="$enable_metafile"
6804
6805 if test "$enableval" = yes; then
6806 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6807 else
6808 ac_cv_use_metafile='wxUSE_METAFILE=no'
6809 fi
6810
6811else
6812
6813 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6814 if test "x$LINE" != x ; then
6815 eval "DEFAULT_$LINE"
6816 else
6817 no_cache=1
6818 fi
6819
6820 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
6821
6822fi;
6823
6824 eval "$ac_cv_use_metafile"
6825 if test "$no_cache" != 1; then
6826 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6827 fi
6828
6829 if test "$wxUSE_METAFILE" = yes; then
6830 echo "$as_me:$LINENO: result: yes" >&5
6831echo "${ECHO_T}yes" >&6
6832 else
6833 echo "$as_me:$LINENO: result: no" >&5
6834echo "${ECHO_T}no" >&6
6835 fi
6836
6837
6838
6839
6840
6841 enablestring=
6842 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6843echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
6844 no_cache=0
6845 # Check whether --enable-controls or --disable-controls was given.
6846if test "${enable_controls+set}" = set; then
6847 enableval="$enable_controls"
6848
6849 if test "$enableval" = yes; then
6850 ac_cv_use_controls='wxUSE_CONTROLS=yes'
6851 else
6852 ac_cv_use_controls='wxUSE_CONTROLS=no'
6853 fi
6854
6855else
6856
6857 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6858 if test "x$LINE" != x ; then
6859 eval "DEFAULT_$LINE"
6860 else
6861 no_cache=1
6862 fi
6863
6864 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
6865
6866fi;
6867
6868 eval "$ac_cv_use_controls"
6869 if test "$no_cache" != 1; then
6870 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6871 fi
6872
6873 if test "$wxUSE_CONTROLS" = yes; then
6874 echo "$as_me:$LINENO: result: yes" >&5
6875echo "${ECHO_T}yes" >&6
6876 else
6877 echo "$as_me:$LINENO: result: no" >&5
6878echo "${ECHO_T}no" >&6
6879 fi
6880
6881
6882if test "$wxUSE_CONTROLS" = "yes"; then
6883 DEFAULT_wxUSE_ACCEL=yes
6884 DEFAULT_wxUSE_BMPBUTTON=yes
6885 DEFAULT_wxUSE_BUTTON=yes
6886 DEFAULT_wxUSE_CALCTRL=no
6887 DEFAULT_wxUSE_CARET=yes
6888 DEFAULT_wxUSE_COMBOBOX=yes
6889 DEFAULT_wxUSE_CHECKBOX=yes
6890 DEFAULT_wxUSE_CHECKLISTBOX=yes
6891 DEFAULT_wxUSE_CHOICE=yes
6892 DEFAULT_wxUSE_GAUGE=yes
6893 DEFAULT_wxUSE_GRID=yes
6894 DEFAULT_wxUSE_IMAGLIST=yes
6895 DEFAULT_wxUSE_LISTBOOK=yes
6896 DEFAULT_wxUSE_LISTBOX=yes
6897 DEFAULT_wxUSE_LISTCTRL=yes
6898 DEFAULT_wxUSE_NOTEBOOK=yes
6899 DEFAULT_wxUSE_RADIOBOX=yes
6900 DEFAULT_wxUSE_RADIOBTN=yes
6901 DEFAULT_wxUSE_SASH=yes
6902 DEFAULT_wxUSE_SCROLLBAR=yes
6903 DEFAULT_wxUSE_SLIDER=yes
6904 DEFAULT_wxUSE_SPINBTN=yes
6905 DEFAULT_wxUSE_SPINCTRL=yes
6906 DEFAULT_wxUSE_SPLITTER=yes
6907 DEFAULT_wxUSE_STATBMP=yes
6908 DEFAULT_wxUSE_STATBOX=yes
6909 DEFAULT_wxUSE_STATLINE=yes
6910 DEFAULT_wxUSE_STATUSBAR=yes
6911 DEFAULT_wxUSE_TAB_DIALOG=yes
6912 DEFAULT_wxUSE_TOGGLEBTN=yes
6913 DEFAULT_wxUSE_TOOLBAR=yes
6914 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6915 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
6916 DEFAULT_wxUSE_TOOLTIPS=yes
6917 DEFAULT_wxUSE_TREECTRL=yes
6918 DEFAULT_wxUSE_POPUPWIN=yes
6919 DEFAULT_wxUSE_TIPWINDOW=yes
6920elif test "$wxUSE_CONTROLS" = "no"; then
6921 DEFAULT_wxUSE_ACCEL=no
6922 DEFAULT_wxUSE_BMPBUTTON=no
6923 DEFAULT_wxUSE_BUTTON=no
6924 DEFAULT_wxUSE_CALCTRL=no
6925 DEFAULT_wxUSE_CARET=no
6926 DEFAULT_wxUSE_COMBOBOX=no
6927 DEFAULT_wxUSE_CHECKBOX=no
6928 DEFAULT_wxUSE_CHECKLISTBOX=no
6929 DEFAULT_wxUSE_CHOICE=no
6930 DEFAULT_wxUSE_GAUGE=no
6931 DEFAULT_wxUSE_GRID=no
6932 DEFAULT_wxUSE_IMAGLIST=no
6933 DEFAULT_wxUSE_LISTBOOK=no
6934 DEFAULT_wxUSE_LISTBOX=no
6935 DEFAULT_wxUSE_LISTCTRL=no
6936 DEFAULT_wxUSE_NOTEBOOK=no
6937 DEFAULT_wxUSE_RADIOBOX=no
6938 DEFAULT_wxUSE_RADIOBTN=no
6939 DEFAULT_wxUSE_SASH=no
6940 DEFAULT_wxUSE_SCROLLBAR=no
6941 DEFAULT_wxUSE_SLIDER=no
6942 DEFAULT_wxUSE_SPINBTN=no
6943 DEFAULT_wxUSE_SPINCTRL=no
6944 DEFAULT_wxUSE_SPLITTER=no
6945 DEFAULT_wxUSE_STATBMP=no
6946 DEFAULT_wxUSE_STATBOX=no
6947 DEFAULT_wxUSE_STATLINE=no
6948 DEFAULT_wxUSE_STATUSBAR=no
6949 DEFAULT_wxUSE_TAB_DIALOG=no
6950 DEFAULT_wxUSE_TOGGLEBTN=no
6951 DEFAULT_wxUSE_TOOLBAR=no
6952 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6953 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
6954 DEFAULT_wxUSE_TOOLTIPS=no
6955 DEFAULT_wxUSE_TREECTRL=no
6956 DEFAULT_wxUSE_POPUPWIN=no
6957 DEFAULT_wxUSE_TIPWINDOW=no
6958fi
6959
6960## FIXME: This is a blatant hack
6961if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
6962 wxUSE_PRINTING_ARCHITECTURE=no
6963 wxUSE_DRAG_AND_DROP=no
a848cd7e
SC
6964 DEFAULT_wxUSE_TOOLTIPS=no
6965 DEFAULT_wxUSE_DRAGIMAGE=no
6966fi
6967
6968
6969 enablestring=
6970 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
6971echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
6972 no_cache=0
6973 # Check whether --enable-accel or --disable-accel was given.
6974if test "${enable_accel+set}" = set; then
6975 enableval="$enable_accel"
6976
6977 if test "$enableval" = yes; then
6978 ac_cv_use_accel='wxUSE_ACCEL=yes'
6979 else
6980 ac_cv_use_accel='wxUSE_ACCEL=no'
6981 fi
6982
6983else
6984
6985 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
6986 if test "x$LINE" != x ; then
6987 eval "DEFAULT_$LINE"
6988 else
6989 no_cache=1
6990 fi
6991
6992 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
6993
6994fi;
6995
6996 eval "$ac_cv_use_accel"
6997 if test "$no_cache" != 1; then
6998 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
6999 fi
7000
7001 if test "$wxUSE_ACCEL" = yes; then
7002 echo "$as_me:$LINENO: result: yes" >&5
7003echo "${ECHO_T}yes" >&6
7004 else
7005 echo "$as_me:$LINENO: result: no" >&5
7006echo "${ECHO_T}no" >&6
7007 fi
7008
7009
7010 enablestring=
7011 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7012echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7013 no_cache=0
7014 # Check whether --enable-button or --disable-button was given.
7015if test "${enable_button+set}" = set; then
7016 enableval="$enable_button"
7017
7018 if test "$enableval" = yes; then
7019 ac_cv_use_button='wxUSE_BUTTON=yes'
7020 else
7021 ac_cv_use_button='wxUSE_BUTTON=no'
7022 fi
7023
7024else
7025
7026 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7027 if test "x$LINE" != x ; then
7028 eval "DEFAULT_$LINE"
7029 else
7030 no_cache=1
7031 fi
7032
7033 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7034
7035fi;
7036
7037 eval "$ac_cv_use_button"
7038 if test "$no_cache" != 1; then
7039 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7040 fi
7041
7042 if test "$wxUSE_BUTTON" = yes; then
7043 echo "$as_me:$LINENO: result: yes" >&5
7044echo "${ECHO_T}yes" >&6
7045 else
7046 echo "$as_me:$LINENO: result: no" >&5
7047echo "${ECHO_T}no" >&6
7048 fi
7049
7050
7051 enablestring=
7052 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7053echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7054 no_cache=0
7055 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7056if test "${enable_bmpbutton+set}" = set; then
7057 enableval="$enable_bmpbutton"
7058
7059 if test "$enableval" = yes; then
7060 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7061 else
7062 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7063 fi
7064
7065else
7066
7067 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7068 if test "x$LINE" != x ; then
7069 eval "DEFAULT_$LINE"
7070 else
7071 no_cache=1
7072 fi
7073
7074 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7075
7076fi;
7077
7078 eval "$ac_cv_use_bmpbutton"
7079 if test "$no_cache" != 1; then
7080 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7081 fi
7082
7083 if test "$wxUSE_BMPBUTTON" = yes; then
7084 echo "$as_me:$LINENO: result: yes" >&5
7085echo "${ECHO_T}yes" >&6
7086 else
7087 echo "$as_me:$LINENO: result: no" >&5
7088echo "${ECHO_T}no" >&6
7089 fi
7090
7091
7092 enablestring=
7093 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7094echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7095 no_cache=0
7096 # Check whether --enable-calendar or --disable-calendar was given.
7097if test "${enable_calendar+set}" = set; then
7098 enableval="$enable_calendar"
7099
7100 if test "$enableval" = yes; then
7101 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7102 else
7103 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7104 fi
7105
7106else
7107
7108 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7109 if test "x$LINE" != x ; then
7110 eval "DEFAULT_$LINE"
7111 else
7112 no_cache=1
7113 fi
7114
7115 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7116
7117fi;
7118
7119 eval "$ac_cv_use_calendar"
7120 if test "$no_cache" != 1; then
7121 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7122 fi
7123
7124 if test "$wxUSE_CALCTRL" = yes; then
7125 echo "$as_me:$LINENO: result: yes" >&5
7126echo "${ECHO_T}yes" >&6
7127 else
7128 echo "$as_me:$LINENO: result: no" >&5
7129echo "${ECHO_T}no" >&6
7130 fi
7131
7132
7133 enablestring=
7134 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7135echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7136 no_cache=0
7137 # Check whether --enable-caret or --disable-caret was given.
7138if test "${enable_caret+set}" = set; then
7139 enableval="$enable_caret"
7140
7141 if test "$enableval" = yes; then
7142 ac_cv_use_caret='wxUSE_CARET=yes'
7143 else
7144 ac_cv_use_caret='wxUSE_CARET=no'
7145 fi
7146
7147else
7148
7149 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7150 if test "x$LINE" != x ; then
7151 eval "DEFAULT_$LINE"
7152 else
7153 no_cache=1
7154 fi
7155
7156 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7157
7158fi;
7159
7160 eval "$ac_cv_use_caret"
7161 if test "$no_cache" != 1; then
7162 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7163 fi
7164
7165 if test "$wxUSE_CARET" = yes; then
7166 echo "$as_me:$LINENO: result: yes" >&5
7167echo "${ECHO_T}yes" >&6
7168 else
7169 echo "$as_me:$LINENO: result: no" >&5
7170echo "${ECHO_T}no" >&6
7171 fi
7172
7173
7174 enablestring=
7175 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7176echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7177 no_cache=0
7178 # Check whether --enable-checkbox or --disable-checkbox was given.
7179if test "${enable_checkbox+set}" = set; then
7180 enableval="$enable_checkbox"
7181
7182 if test "$enableval" = yes; then
7183 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7184 else
7185 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7186 fi
7187
7188else
7189
7190 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7191 if test "x$LINE" != x ; then
7192 eval "DEFAULT_$LINE"
7193 else
7194 no_cache=1
7195 fi
7196
7197 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7198
7199fi;
7200
7201 eval "$ac_cv_use_checkbox"
7202 if test "$no_cache" != 1; then
7203 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7204 fi
7205
7206 if test "$wxUSE_CHECKBOX" = yes; then
7207 echo "$as_me:$LINENO: result: yes" >&5
7208echo "${ECHO_T}yes" >&6
7209 else
7210 echo "$as_me:$LINENO: result: no" >&5
7211echo "${ECHO_T}no" >&6
7212 fi
7213
7214
7215 enablestring=
7216 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7217echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7218 no_cache=0
7219 # Check whether --enable-checklst or --disable-checklst was given.
7220if test "${enable_checklst+set}" = set; then
7221 enableval="$enable_checklst"
7222
7223 if test "$enableval" = yes; then
7224 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7225 else
7226 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7227 fi
7228
7229else
7230
7231 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7232 if test "x$LINE" != x ; then
7233 eval "DEFAULT_$LINE"
7234 else
7235 no_cache=1
7236 fi
7237
7238 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7239
7240fi;
7241
7242 eval "$ac_cv_use_checklst"
7243 if test "$no_cache" != 1; then
7244 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7245 fi
7246
7247 if test "$wxUSE_CHECKLST" = yes; then
7248 echo "$as_me:$LINENO: result: yes" >&5
7249echo "${ECHO_T}yes" >&6
7250 else
7251 echo "$as_me:$LINENO: result: no" >&5
7252echo "${ECHO_T}no" >&6
7253 fi
7254
7255
7256 enablestring=
7257 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7258echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7259 no_cache=0
7260 # Check whether --enable-choice or --disable-choice was given.
7261if test "${enable_choice+set}" = set; then
7262 enableval="$enable_choice"
7263
7264 if test "$enableval" = yes; then
7265 ac_cv_use_choice='wxUSE_CHOICE=yes'
7266 else
7267 ac_cv_use_choice='wxUSE_CHOICE=no'
7268 fi
7269
7270else
7271
7272 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7273 if test "x$LINE" != x ; then
7274 eval "DEFAULT_$LINE"
7275 else
7276 no_cache=1
7277 fi
7278
7279 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7280
7281fi;
7282
7283 eval "$ac_cv_use_choice"
7284 if test "$no_cache" != 1; then
7285 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7286 fi
7287
7288 if test "$wxUSE_CHOICE" = yes; then
7289 echo "$as_me:$LINENO: result: yes" >&5
7290echo "${ECHO_T}yes" >&6
7291 else
7292 echo "$as_me:$LINENO: result: no" >&5
7293echo "${ECHO_T}no" >&6
7294 fi
7295
7296
7297 enablestring=
7298 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7299echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7300 no_cache=0
7301 # Check whether --enable-combobox or --disable-combobox was given.
7302if test "${enable_combobox+set}" = set; then
7303 enableval="$enable_combobox"
7304
7305 if test "$enableval" = yes; then
7306 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7307 else
7308 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7309 fi
7310
7311else
7312
7313 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7314 if test "x$LINE" != x ; then
7315 eval "DEFAULT_$LINE"
7316 else
7317 no_cache=1
7318 fi
7319
7320 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7321
7322fi;
7323
7324 eval "$ac_cv_use_combobox"
7325 if test "$no_cache" != 1; then
7326 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7327 fi
7328
7329 if test "$wxUSE_COMBOBOX" = yes; then
7330 echo "$as_me:$LINENO: result: yes" >&5
7331echo "${ECHO_T}yes" >&6
7332 else
7333 echo "$as_me:$LINENO: result: no" >&5
7334echo "${ECHO_T}no" >&6
7335 fi
7336
7337
7338 enablestring=
7339 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7340echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7341 no_cache=0
7342 # Check whether --enable-display or --disable-display was given.
7343if test "${enable_display+set}" = set; then
7344 enableval="$enable_display"
7345
7346 if test "$enableval" = yes; then
7347 ac_cv_use_display='wxUSE_DISPLAY=yes'
7348 else
7349 ac_cv_use_display='wxUSE_DISPLAY=no'
7350 fi
7351
7352else
7353
7354 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7355 if test "x$LINE" != x ; then
7356 eval "DEFAULT_$LINE"
7357 else
7358 no_cache=1
7359 fi
7360
7361 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7362
7363fi;
7364
7365 eval "$ac_cv_use_display"
7366 if test "$no_cache" != 1; then
7367 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7368 fi
7369
7370 if test "$wxUSE_DISPLAY" = yes; then
7371 echo "$as_me:$LINENO: result: yes" >&5
7372echo "${ECHO_T}yes" >&6
7373 else
7374 echo "$as_me:$LINENO: result: no" >&5
7375echo "${ECHO_T}no" >&6
7376 fi
7377
7378
7379 enablestring=
7380 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7381echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7382 no_cache=0
7383 # Check whether --enable-gauge or --disable-gauge was given.
7384if test "${enable_gauge+set}" = set; then
7385 enableval="$enable_gauge"
7386
7387 if test "$enableval" = yes; then
7388 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7389 else
7390 ac_cv_use_gauge='wxUSE_GAUGE=no'
7391 fi
7392
7393else
7394
7395 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7396 if test "x$LINE" != x ; then
7397 eval "DEFAULT_$LINE"
7398 else
7399 no_cache=1
7400 fi
7401
7402 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7403
7404fi;
7405
7406 eval "$ac_cv_use_gauge"
7407 if test "$no_cache" != 1; then
7408 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7409 fi
7410
7411 if test "$wxUSE_GAUGE" = yes; then
7412 echo "$as_me:$LINENO: result: yes" >&5
7413echo "${ECHO_T}yes" >&6
7414 else
7415 echo "$as_me:$LINENO: result: no" >&5
7416echo "${ECHO_T}no" >&6
7417 fi
7418
7419
7420 enablestring=
7421 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7422echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7423 no_cache=0
7424 # Check whether --enable-grid or --disable-grid was given.
7425if test "${enable_grid+set}" = set; then
7426 enableval="$enable_grid"
7427
7428 if test "$enableval" = yes; then
7429 ac_cv_use_grid='wxUSE_GRID=yes'
7430 else
7431 ac_cv_use_grid='wxUSE_GRID=no'
7432 fi
7433
7434else
7435
7436 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7437 if test "x$LINE" != x ; then
7438 eval "DEFAULT_$LINE"
7439 else
7440 no_cache=1
7441 fi
7442
7443 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7444
7445fi;
7446
7447 eval "$ac_cv_use_grid"
7448 if test "$no_cache" != 1; then
7449 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7450 fi
7451
7452 if test "$wxUSE_GRID" = yes; then
7453 echo "$as_me:$LINENO: result: yes" >&5
7454echo "${ECHO_T}yes" >&6
7455 else
7456 echo "$as_me:$LINENO: result: no" >&5
7457echo "${ECHO_T}no" >&6
7458 fi
7459
7460
7461 enablestring=
7462 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7463echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7464 no_cache=0
7465 # Check whether --enable-imaglist or --disable-imaglist was given.
7466if test "${enable_imaglist+set}" = set; then
7467 enableval="$enable_imaglist"
7468
7469 if test "$enableval" = yes; then
7470 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7471 else
7472 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7473 fi
7474
7475else
7476
7477 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7478 if test "x$LINE" != x ; then
7479 eval "DEFAULT_$LINE"
7480 else
7481 no_cache=1
7482 fi
7483
7484 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7485
7486fi;
7487
7488 eval "$ac_cv_use_imaglist"
7489 if test "$no_cache" != 1; then
7490 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7491 fi
7492
7493 if test "$wxUSE_IMAGLIST" = yes; then
7494 echo "$as_me:$LINENO: result: yes" >&5
7495echo "${ECHO_T}yes" >&6
7496 else
7497 echo "$as_me:$LINENO: result: no" >&5
7498echo "${ECHO_T}no" >&6
7499 fi
7500
7501
7502 enablestring=
7503 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7504echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7505 no_cache=0
7506 # Check whether --enable-listbook or --disable-listbook was given.
7507if test "${enable_listbook+set}" = set; then
7508 enableval="$enable_listbook"
7509
7510 if test "$enableval" = yes; then
7511 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7512 else
7513 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7514 fi
7515
7516else
7517
7518 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7519 if test "x$LINE" != x ; then
7520 eval "DEFAULT_$LINE"
7521 else
7522 no_cache=1
7523 fi
7524
7525 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7526
7527fi;
7528
7529 eval "$ac_cv_use_listbook"
7530 if test "$no_cache" != 1; then
7531 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7532 fi
7533
7534 if test "$wxUSE_LISTBOOK" = yes; then
7535 echo "$as_me:$LINENO: result: yes" >&5
7536echo "${ECHO_T}yes" >&6
7537 else
7538 echo "$as_me:$LINENO: result: no" >&5
7539echo "${ECHO_T}no" >&6
7540 fi
7541
7542
7543 enablestring=
7544 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7545echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7546 no_cache=0
7547 # Check whether --enable-listbox or --disable-listbox was given.
7548if test "${enable_listbox+set}" = set; then
7549 enableval="$enable_listbox"
7550
7551 if test "$enableval" = yes; then
7552 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7553 else
7554 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7555 fi
7556
7557else
7558
7559 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7560 if test "x$LINE" != x ; then
7561 eval "DEFAULT_$LINE"
7562 else
7563 no_cache=1
7564 fi
7565
7566 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
7567
7568fi;
7569
7570 eval "$ac_cv_use_listbox"
7571 if test "$no_cache" != 1; then
7572 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7573 fi
7574
7575 if test "$wxUSE_LISTBOX" = yes; then
7576 echo "$as_me:$LINENO: result: yes" >&5
7577echo "${ECHO_T}yes" >&6
7578 else
7579 echo "$as_me:$LINENO: result: no" >&5
7580echo "${ECHO_T}no" >&6
7581 fi
7582
7583
7584 enablestring=
7585 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7586echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
7587 no_cache=0
7588 # Check whether --enable-listctrl or --disable-listctrl was given.
7589if test "${enable_listctrl+set}" = set; then
7590 enableval="$enable_listctrl"
7591
7592 if test "$enableval" = yes; then
7593 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7594 else
7595 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7596 fi
7597
7598else
7599
7600 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7601 if test "x$LINE" != x ; then
7602 eval "DEFAULT_$LINE"
7603 else
7604 no_cache=1
7605 fi
7606
7607 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
7608
7609fi;
7610
7611 eval "$ac_cv_use_listctrl"
7612 if test "$no_cache" != 1; then
7613 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7614 fi
7615
7616 if test "$wxUSE_LISTCTRL" = yes; then
7617 echo "$as_me:$LINENO: result: yes" >&5
7618echo "${ECHO_T}yes" >&6
7619 else
7620 echo "$as_me:$LINENO: result: no" >&5
7621echo "${ECHO_T}no" >&6
7622 fi
7623
7624
7625 enablestring=
7626 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7627echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
7628 no_cache=0
7629 # Check whether --enable-notebook or --disable-notebook was given.
7630if test "${enable_notebook+set}" = set; then
7631 enableval="$enable_notebook"
7632
7633 if test "$enableval" = yes; then
7634 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7635 else
7636 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7637 fi
7638
7639else
7640
7641 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7642 if test "x$LINE" != x ; then
7643 eval "DEFAULT_$LINE"
7644 else
7645 no_cache=1
7646 fi
7647
7648 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
7649
7650fi;
7651
7652 eval "$ac_cv_use_notebook"
7653 if test "$no_cache" != 1; then
7654 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7655 fi
7656
7657 if test "$wxUSE_NOTEBOOK" = yes; then
7658 echo "$as_me:$LINENO: result: yes" >&5
7659echo "${ECHO_T}yes" >&6
7660 else
7661 echo "$as_me:$LINENO: result: no" >&5
7662echo "${ECHO_T}no" >&6
7663 fi
7664
7665
7666 enablestring=
7667 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7668echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
7669 no_cache=0
7670 # Check whether --enable-radiobox or --disable-radiobox was given.
7671if test "${enable_radiobox+set}" = set; then
7672 enableval="$enable_radiobox"
7673
7674 if test "$enableval" = yes; then
7675 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7676 else
7677 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7678 fi
7679
7680else
7681
7682 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7683 if test "x$LINE" != x ; then
7684 eval "DEFAULT_$LINE"
7685 else
7686 no_cache=1
7687 fi
7688
7689 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
7690
7691fi;
7692
7693 eval "$ac_cv_use_radiobox"
7694 if test "$no_cache" != 1; then
7695 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7696 fi
7697
7698 if test "$wxUSE_RADIOBOX" = yes; then
7699 echo "$as_me:$LINENO: result: yes" >&5
7700echo "${ECHO_T}yes" >&6
7701 else
7702 echo "$as_me:$LINENO: result: no" >&5
7703echo "${ECHO_T}no" >&6
7704 fi
7705
7706
7707 enablestring=
7708 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7709echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
7710 no_cache=0
7711 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7712if test "${enable_radiobtn+set}" = set; then
7713 enableval="$enable_radiobtn"
7714
7715 if test "$enableval" = yes; then
7716 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7717 else
7718 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7719 fi
7720
7721else
7722
7723 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7724 if test "x$LINE" != x ; then
7725 eval "DEFAULT_$LINE"
7726 else
7727 no_cache=1
7728 fi
7729
7730 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
7731
7732fi;
7733
7734 eval "$ac_cv_use_radiobtn"
7735 if test "$no_cache" != 1; then
7736 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7737 fi
7738
7739 if test "$wxUSE_RADIOBTN" = yes; then
7740 echo "$as_me:$LINENO: result: yes" >&5
7741echo "${ECHO_T}yes" >&6
7742 else
7743 echo "$as_me:$LINENO: result: no" >&5
7744echo "${ECHO_T}no" >&6
7745 fi
7746
7747
7748 enablestring=
7749 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7750echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
7751 no_cache=0
7752 # Check whether --enable-sash or --disable-sash was given.
7753if test "${enable_sash+set}" = set; then
7754 enableval="$enable_sash"
7755
7756 if test "$enableval" = yes; then
7757 ac_cv_use_sash='wxUSE_SASH=yes'
7758 else
7759 ac_cv_use_sash='wxUSE_SASH=no'
7760 fi
7761
7762else
7763
7764 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7765 if test "x$LINE" != x ; then
7766 eval "DEFAULT_$LINE"
7767 else
7768 no_cache=1
7769 fi
7770
7771 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
7772
7773fi;
7774
7775 eval "$ac_cv_use_sash"
7776 if test "$no_cache" != 1; then
7777 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7778 fi
7779
7780 if test "$wxUSE_SASH" = yes; then
7781 echo "$as_me:$LINENO: result: yes" >&5
7782echo "${ECHO_T}yes" >&6
7783 else
7784 echo "$as_me:$LINENO: result: no" >&5
7785echo "${ECHO_T}no" >&6
7786 fi
7787
7788
7789 enablestring=
7790 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7791echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
7792 no_cache=0
7793 # Check whether --enable-scrollbar or --disable-scrollbar was given.
7794if test "${enable_scrollbar+set}" = set; then
7795 enableval="$enable_scrollbar"
7796
7797 if test "$enableval" = yes; then
7798 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7799 else
7800 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7801 fi
7802
7803else
7804
7805 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7806 if test "x$LINE" != x ; then
7807 eval "DEFAULT_$LINE"
7808 else
7809 no_cache=1
7810 fi
7811
7812 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
7813
7814fi;
7815
7816 eval "$ac_cv_use_scrollbar"
7817 if test "$no_cache" != 1; then
7818 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7819 fi
7820
7821 if test "$wxUSE_SCROLLBAR" = yes; then
7822 echo "$as_me:$LINENO: result: yes" >&5
7823echo "${ECHO_T}yes" >&6
7824 else
7825 echo "$as_me:$LINENO: result: no" >&5
7826echo "${ECHO_T}no" >&6
7827 fi
7828
7829
7830 enablestring=
7831 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7832echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
7833 no_cache=0
7834 # Check whether --enable-slider or --disable-slider was given.
7835if test "${enable_slider+set}" = set; then
7836 enableval="$enable_slider"
7837
7838 if test "$enableval" = yes; then
7839 ac_cv_use_slider='wxUSE_SLIDER=yes'
7840 else
7841 ac_cv_use_slider='wxUSE_SLIDER=no'
7842 fi
7843
7844else
7845
7846 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7847 if test "x$LINE" != x ; then
7848 eval "DEFAULT_$LINE"
7849 else
7850 no_cache=1
7851 fi
7852
7853 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
7854
7855fi;
7856
7857 eval "$ac_cv_use_slider"
7858 if test "$no_cache" != 1; then
7859 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7860 fi
7861
7862 if test "$wxUSE_SLIDER" = yes; then
7863 echo "$as_me:$LINENO: result: yes" >&5
7864echo "${ECHO_T}yes" >&6
7865 else
7866 echo "$as_me:$LINENO: result: no" >&5
7867echo "${ECHO_T}no" >&6
7868 fi
7869
7870
7871 enablestring=
7872 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7873echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
7874 no_cache=0
7875 # Check whether --enable-spinbtn or --disable-spinbtn was given.
7876if test "${enable_spinbtn+set}" = set; then
7877 enableval="$enable_spinbtn"
7878
7879 if test "$enableval" = yes; then
7880 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7881 else
7882 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7883 fi
7884
7885else
7886
7887 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7888 if test "x$LINE" != x ; then
7889 eval "DEFAULT_$LINE"
7890 else
7891 no_cache=1
7892 fi
7893
7894 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
7895
7896fi;
7897
7898 eval "$ac_cv_use_spinbtn"
7899 if test "$no_cache" != 1; then
7900 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7901 fi
7902
7903 if test "$wxUSE_SPINBTN" = yes; then
7904 echo "$as_me:$LINENO: result: yes" >&5
7905echo "${ECHO_T}yes" >&6
7906 else
7907 echo "$as_me:$LINENO: result: no" >&5
7908echo "${ECHO_T}no" >&6
7909 fi
7910
7911
7912 enablestring=
7913 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
7914echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
7915 no_cache=0
7916 # Check whether --enable-spinctrl or --disable-spinctrl was given.
7917if test "${enable_spinctrl+set}" = set; then
7918 enableval="$enable_spinctrl"
7919
7920 if test "$enableval" = yes; then
7921 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
7922 else
7923 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
7924 fi
7925
7926else
7927
7928 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
7929 if test "x$LINE" != x ; then
7930 eval "DEFAULT_$LINE"
7931 else
7932 no_cache=1
7933 fi
7934
7935 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
7936
7937fi;
7938
7939 eval "$ac_cv_use_spinctrl"
7940 if test "$no_cache" != 1; then
7941 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
7942 fi
7943
7944 if test "$wxUSE_SPINCTRL" = yes; then
7945 echo "$as_me:$LINENO: result: yes" >&5
7946echo "${ECHO_T}yes" >&6
7947 else
7948 echo "$as_me:$LINENO: result: no" >&5
7949echo "${ECHO_T}no" >&6
7950 fi
7951
7952
7953 enablestring=
7954 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
7955echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
7956 no_cache=0
7957 # Check whether --enable-splitter or --disable-splitter was given.
7958if test "${enable_splitter+set}" = set; then
7959 enableval="$enable_splitter"
7960
7961 if test "$enableval" = yes; then
7962 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
7963 else
7964 ac_cv_use_splitter='wxUSE_SPLITTER=no'
7965 fi
7966
7967else
7968
7969 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
7970 if test "x$LINE" != x ; then
7971 eval "DEFAULT_$LINE"
7972 else
7973 no_cache=1
7974 fi
7975
7976 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
7977
7978fi;
7979
7980 eval "$ac_cv_use_splitter"
7981 if test "$no_cache" != 1; then
7982 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
7983 fi
7984
7985 if test "$wxUSE_SPLITTER" = yes; then
7986 echo "$as_me:$LINENO: result: yes" >&5
7987echo "${ECHO_T}yes" >&6
7988 else
7989 echo "$as_me:$LINENO: result: no" >&5
7990echo "${ECHO_T}no" >&6
7991 fi
7992
7993
7994 enablestring=
7995 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
7996echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
7997 no_cache=0
7998 # Check whether --enable-statbmp or --disable-statbmp was given.
7999if test "${enable_statbmp+set}" = set; then
8000 enableval="$enable_statbmp"
8001
8002 if test "$enableval" = yes; then
8003 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8004 else
8005 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8006 fi
8007
8008else
8009
8010 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8011 if test "x$LINE" != x ; then
8012 eval "DEFAULT_$LINE"
8013 else
8014 no_cache=1
8015 fi
8016
8017 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8018
8019fi;
8020
8021 eval "$ac_cv_use_statbmp"
8022 if test "$no_cache" != 1; then
8023 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8024 fi
8025
8026 if test "$wxUSE_STATBMP" = yes; then
8027 echo "$as_me:$LINENO: result: yes" >&5
8028echo "${ECHO_T}yes" >&6
8029 else
8030 echo "$as_me:$LINENO: result: no" >&5
8031echo "${ECHO_T}no" >&6
8032 fi
8033
8034
8035 enablestring=
8036 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8037echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8038 no_cache=0
8039 # Check whether --enable-statbox or --disable-statbox was given.
8040if test "${enable_statbox+set}" = set; then
8041 enableval="$enable_statbox"
8042
8043 if test "$enableval" = yes; then
8044 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8045 else
8046 ac_cv_use_statbox='wxUSE_STATBOX=no'
8047 fi
8048
8049else
8050
8051 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8052 if test "x$LINE" != x ; then
8053 eval "DEFAULT_$LINE"
8054 else
8055 no_cache=1
8056 fi
8057
8058 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8059
8060fi;
8061
8062 eval "$ac_cv_use_statbox"
8063 if test "$no_cache" != 1; then
8064 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8065 fi
8066
8067 if test "$wxUSE_STATBOX" = yes; then
8068 echo "$as_me:$LINENO: result: yes" >&5
8069echo "${ECHO_T}yes" >&6
8070 else
8071 echo "$as_me:$LINENO: result: no" >&5
8072echo "${ECHO_T}no" >&6
8073 fi
8074
8075
8076 enablestring=
8077 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8078echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8079 no_cache=0
8080 # Check whether --enable-statline or --disable-statline was given.
8081if test "${enable_statline+set}" = set; then
8082 enableval="$enable_statline"
8083
8084 if test "$enableval" = yes; then
8085 ac_cv_use_statline='wxUSE_STATLINE=yes'
8086 else
8087 ac_cv_use_statline='wxUSE_STATLINE=no'
8088 fi
8089
8090else
8091
8092 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8093 if test "x$LINE" != x ; then
8094 eval "DEFAULT_$LINE"
8095 else
8096 no_cache=1
8097 fi
8098
8099 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8100
8101fi;
8102
8103 eval "$ac_cv_use_statline"
8104 if test "$no_cache" != 1; then
8105 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8106 fi
8107
8108 if test "$wxUSE_STATLINE" = yes; then
8109 echo "$as_me:$LINENO: result: yes" >&5
8110echo "${ECHO_T}yes" >&6
8111 else
8112 echo "$as_me:$LINENO: result: no" >&5
8113echo "${ECHO_T}no" >&6
8114 fi
8115
8116
8117 enablestring=
8118 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8119echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8120 no_cache=0
8121 # Check whether --enable-stattext or --disable-stattext was given.
8122if test "${enable_stattext+set}" = set; then
8123 enableval="$enable_stattext"
8124
8125 if test "$enableval" = yes; then
8126 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8127 else
8128 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8129 fi
8130
8131else
8132
8133 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8134 if test "x$LINE" != x ; then
8135 eval "DEFAULT_$LINE"
8136 else
8137 no_cache=1
8138 fi
8139
8140 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8141
8142fi;
8143
8144 eval "$ac_cv_use_stattext"
8145 if test "$no_cache" != 1; then
8146 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8147 fi
8148
8149 if test "$wxUSE_STATTEXT" = yes; then
8150 echo "$as_me:$LINENO: result: yes" >&5
8151echo "${ECHO_T}yes" >&6
8152 else
8153 echo "$as_me:$LINENO: result: no" >&5
8154echo "${ECHO_T}no" >&6
8155 fi
8156
8157
8158 enablestring=
8159 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8160echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8161 no_cache=0
8162 # Check whether --enable-statusbar or --disable-statusbar was given.
8163if test "${enable_statusbar+set}" = set; then
8164 enableval="$enable_statusbar"
8165
8166 if test "$enableval" = yes; then
8167 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8168 else
8169 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8170 fi
8171
8172else
8173
8174 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8175 if test "x$LINE" != x ; then
8176 eval "DEFAULT_$LINE"
8177 else
8178 no_cache=1
8179 fi
8180
8181 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8182
8183fi;
8184
8185 eval "$ac_cv_use_statusbar"
8186 if test "$no_cache" != 1; then
8187 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8188 fi
8189
8190 if test "$wxUSE_STATUSBAR" = yes; then
8191 echo "$as_me:$LINENO: result: yes" >&5
8192echo "${ECHO_T}yes" >&6
8193 else
8194 echo "$as_me:$LINENO: result: no" >&5
8195echo "${ECHO_T}no" >&6
8196 fi
8197
8198
8199 enablestring=
8200 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8201echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8202 no_cache=0
8203 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8204if test "${enable_tabdialog+set}" = set; then
8205 enableval="$enable_tabdialog"
8206
8207 if test "$enableval" = yes; then
8208 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8209 else
8210 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8211 fi
8212
8213else
8214
8215 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8216 if test "x$LINE" != x ; then
8217 eval "DEFAULT_$LINE"
8218 else
8219 no_cache=1
8220 fi
8221
8222 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8223
8224fi;
8225
8226 eval "$ac_cv_use_tabdialog"
8227 if test "$no_cache" != 1; then
8228 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8229 fi
8230
8231 if test "$wxUSE_TABDIALOG" = yes; then
8232 echo "$as_me:$LINENO: result: yes" >&5
8233echo "${ECHO_T}yes" >&6
8234 else
8235 echo "$as_me:$LINENO: result: no" >&5
8236echo "${ECHO_T}no" >&6
8237 fi
8238
8239
8240 enablestring=
8241 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8242echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8243 no_cache=0
8244 # Check whether --enable-textctrl or --disable-textctrl was given.
8245if test "${enable_textctrl+set}" = set; then
8246 enableval="$enable_textctrl"
8247
8248 if test "$enableval" = yes; then
8249 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8250 else
8251 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8252 fi
8253
8254else
8255
8256 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8257 if test "x$LINE" != x ; then
8258 eval "DEFAULT_$LINE"
8259 else
8260 no_cache=1
8261 fi
8262
8263 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8264
8265fi;
8266
8267 eval "$ac_cv_use_textctrl"
8268 if test "$no_cache" != 1; then
8269 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8270 fi
8271
8272 if test "$wxUSE_TEXTCTRL" = yes; then
8273 echo "$as_me:$LINENO: result: yes" >&5
8274echo "${ECHO_T}yes" >&6
8275 else
8276 echo "$as_me:$LINENO: result: no" >&5
8277echo "${ECHO_T}no" >&6
8278 fi
8279
8280
8281 enablestring=
8282 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8283echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8284 no_cache=0
8285 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8286if test "${enable_togglebtn+set}" = set; then
8287 enableval="$enable_togglebtn"
8288
8289 if test "$enableval" = yes; then
8290 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8291 else
8292 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8293 fi
8294
8295else
8296
8297 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8298 if test "x$LINE" != x ; then
8299 eval "DEFAULT_$LINE"
8300 else
8301 no_cache=1
8302 fi
8303
8304 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8305
8306fi;
8307
8308 eval "$ac_cv_use_togglebtn"
8309 if test "$no_cache" != 1; then
8310 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8311 fi
8312
8313 if test "$wxUSE_TOGGLEBTN" = yes; then
8314 echo "$as_me:$LINENO: result: yes" >&5
8315echo "${ECHO_T}yes" >&6
8316 else
8317 echo "$as_me:$LINENO: result: no" >&5
8318echo "${ECHO_T}no" >&6
8319 fi
8320
8321
8322 enablestring=
8323 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8324echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8325 no_cache=0
8326 # Check whether --enable-toolbar or --disable-toolbar was given.
8327if test "${enable_toolbar+set}" = set; then
8328 enableval="$enable_toolbar"
8329
8330 if test "$enableval" = yes; then
8331 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8332 else
8333 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8334 fi
8335
8336else
8337
8338 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8339 if test "x$LINE" != x ; then
8340 eval "DEFAULT_$LINE"
8341 else
8342 no_cache=1
8343 fi
8344
8345 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8346
8347fi;
8348
8349 eval "$ac_cv_use_toolbar"
8350 if test "$no_cache" != 1; then
8351 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8352 fi
8353
8354 if test "$wxUSE_TOOLBAR" = yes; then
8355 echo "$as_me:$LINENO: result: yes" >&5
8356echo "${ECHO_T}yes" >&6
8357 else
8358 echo "$as_me:$LINENO: result: no" >&5
8359echo "${ECHO_T}no" >&6
8360 fi
8361
8362
8363 enablestring=
8364 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8365echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8366 no_cache=0
8367 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8368if test "${enable_tbarnative+set}" = set; then
8369 enableval="$enable_tbarnative"
8370
8371 if test "$enableval" = yes; then
8372 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8373 else
8374 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8375 fi
8376
8377else
8378
8379 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8380 if test "x$LINE" != x ; then
8381 eval "DEFAULT_$LINE"
8382 else
8383 no_cache=1
8384 fi
8385
8386 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8387
8388fi;
8389
8390 eval "$ac_cv_use_tbarnative"
8391 if test "$no_cache" != 1; then
8392 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8393 fi
8394
8395 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8396 echo "$as_me:$LINENO: result: yes" >&5
8397echo "${ECHO_T}yes" >&6
8398 else
8399 echo "$as_me:$LINENO: result: no" >&5
8400echo "${ECHO_T}no" >&6
8401 fi
8402
8403
8404 enablestring=
8405 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8406echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8407 no_cache=0
8408 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8409if test "${enable_tbarsmpl+set}" = set; then
8410 enableval="$enable_tbarsmpl"
8411
8412 if test "$enableval" = yes; then
8413 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8414 else
8415 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8416 fi
8417
8418else
8419
8420 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8421 if test "x$LINE" != x ; then
8422 eval "DEFAULT_$LINE"
8423 else
8424 no_cache=1
8425 fi
8426
8427 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8428
8429fi;
8430
8431 eval "$ac_cv_use_tbarsmpl"
8432 if test "$no_cache" != 1; then
8433 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8434 fi
8435
8436 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8437 echo "$as_me:$LINENO: result: yes" >&5
8438echo "${ECHO_T}yes" >&6
8439 else
8440 echo "$as_me:$LINENO: result: no" >&5
8441echo "${ECHO_T}no" >&6
8442 fi
8443
8444
8445 enablestring=
8446 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8447echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8448 no_cache=0
8449 # Check whether --enable-treectrl or --disable-treectrl was given.
8450if test "${enable_treectrl+set}" = set; then
8451 enableval="$enable_treectrl"
8452
8453 if test "$enableval" = yes; then
8454 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8455 else
8456 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8457 fi
8458
8459else
8460
8461 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8462 if test "x$LINE" != x ; then
8463 eval "DEFAULT_$LINE"
8464 else
8465 no_cache=1
8466 fi
8467
8468 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8469
8470fi;
8471
8472 eval "$ac_cv_use_treectrl"
8473 if test "$no_cache" != 1; then
8474 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8475 fi
8476
8477 if test "$wxUSE_TREECTRL" = yes; then
8478 echo "$as_me:$LINENO: result: yes" >&5
8479echo "${ECHO_T}yes" >&6
8480 else
8481 echo "$as_me:$LINENO: result: no" >&5
8482echo "${ECHO_T}no" >&6
8483 fi
8484
8485
8486 enablestring=
8487 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8488echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8489 no_cache=0
8490 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8491if test "${enable_tipwindow+set}" = set; then
8492 enableval="$enable_tipwindow"
8493
8494 if test "$enableval" = yes; then
8495 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8496 else
8497 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8498 fi
8499
8500else
8501
8502 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8503 if test "x$LINE" != x ; then
8504 eval "DEFAULT_$LINE"
8505 else
8506 no_cache=1
8507 fi
8508
8509 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8510
8511fi;
8512
8513 eval "$ac_cv_use_tipwindow"
8514 if test "$no_cache" != 1; then
8515 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8516 fi
8517
8518 if test "$wxUSE_TIPWINDOW" = yes; then
8519 echo "$as_me:$LINENO: result: yes" >&5
8520echo "${ECHO_T}yes" >&6
8521 else
8522 echo "$as_me:$LINENO: result: no" >&5
8523echo "${ECHO_T}no" >&6
8524 fi
8525
8526
8527 enablestring=
8528 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8529echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8530 no_cache=0
8531 # Check whether --enable-popupwin or --disable-popupwin was given.
8532if test "${enable_popupwin+set}" = set; then
8533 enableval="$enable_popupwin"
8534
8535 if test "$enableval" = yes; then
8536 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8537 else
8538 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8539 fi
8540
8541else
8542
8543 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8544 if test "x$LINE" != x ; then
8545 eval "DEFAULT_$LINE"
8546 else
8547 no_cache=1
8548 fi
8549
8550 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
8551
8552fi;
8553
8554 eval "$ac_cv_use_popupwin"
8555 if test "$no_cache" != 1; then
8556 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8557 fi
8558
8559 if test "$wxUSE_POPUPWIN" = yes; then
8560 echo "$as_me:$LINENO: result: yes" >&5
8561echo "${ECHO_T}yes" >&6
8562 else
8563 echo "$as_me:$LINENO: result: no" >&5
8564echo "${ECHO_T}no" >&6
8565 fi
8566
8567
8568
8569
8570 enablestring=
8571 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8572echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
8573 no_cache=0
8574 # Check whether --enable-commondlg or --disable-commondlg was given.
8575if test "${enable_commondlg+set}" = set; then
8576 enableval="$enable_commondlg"
8577
8578 if test "$enableval" = yes; then
8579 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8580 else
8581 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8582 fi
8583
8584else
8585
8586 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8587 if test "x$LINE" != x ; then
8588 eval "DEFAULT_$LINE"
8589 else
8590 no_cache=1
8591 fi
8592
8593 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
8594
8595fi;
8596
8597 eval "$ac_cv_use_commondlg"
8598 if test "$no_cache" != 1; then
8599 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8600 fi
8601
8602 if test "$wxUSE_COMMONDLGS" = yes; then
8603 echo "$as_me:$LINENO: result: yes" >&5
8604echo "${ECHO_T}yes" >&6
8605 else
8606 echo "$as_me:$LINENO: result: no" >&5
8607echo "${ECHO_T}no" >&6
8608 fi
8609
8610
8611 enablestring=
8612 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8613echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
8614 no_cache=0
8615 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8616if test "${enable_choicedlg+set}" = set; then
8617 enableval="$enable_choicedlg"
8618
8619 if test "$enableval" = yes; then
8620 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8621 else
8622 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8623 fi
8624
8625else
8626
8627 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8628 if test "x$LINE" != x ; then
8629 eval "DEFAULT_$LINE"
8630 else
8631 no_cache=1
8632 fi
8633
8634 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
8635
8636fi;
8637
8638 eval "$ac_cv_use_choicedlg"
8639 if test "$no_cache" != 1; then
8640 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8641 fi
8642
8643 if test "$wxUSE_CHOICEDLG" = yes; then
8644 echo "$as_me:$LINENO: result: yes" >&5
8645echo "${ECHO_T}yes" >&6
8646 else
8647 echo "$as_me:$LINENO: result: no" >&5
8648echo "${ECHO_T}no" >&6
8649 fi
8650
8651
8652 enablestring=
8653 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8654echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
8655 no_cache=0
8656 # Check whether --enable-coldlg or --disable-coldlg was given.
8657if test "${enable_coldlg+set}" = set; then
8658 enableval="$enable_coldlg"
8659
8660 if test "$enableval" = yes; then
8661 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8662 else
8663 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8664 fi
8665
8666else
8667
8668 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8669 if test "x$LINE" != x ; then
8670 eval "DEFAULT_$LINE"
8671 else
8672 no_cache=1
8673 fi
8674
8675 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
8676
8677fi;
8678
8679 eval "$ac_cv_use_coldlg"
8680 if test "$no_cache" != 1; then
8681 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8682 fi
8683
8684 if test "$wxUSE_COLOURDLG" = yes; then
8685 echo "$as_me:$LINENO: result: yes" >&5
8686echo "${ECHO_T}yes" >&6
8687 else
8688 echo "$as_me:$LINENO: result: no" >&5
8689echo "${ECHO_T}no" >&6
8690 fi
8691
8692
8693 enablestring=
8694 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8695echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
8696 no_cache=0
8697 # Check whether --enable-filedlg or --disable-filedlg was given.
8698if test "${enable_filedlg+set}" = set; then
8699 enableval="$enable_filedlg"
8700
8701 if test "$enableval" = yes; then
8702 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8703 else
8704 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8705 fi
8706
8707else
8708
8709 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8710 if test "x$LINE" != x ; then
8711 eval "DEFAULT_$LINE"
8712 else
8713 no_cache=1
8714 fi
8715
8716 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
8717
8718fi;
8719
8720 eval "$ac_cv_use_filedlg"
8721 if test "$no_cache" != 1; then
8722 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8723 fi
8724
8725 if test "$wxUSE_FILEDLG" = yes; then
8726 echo "$as_me:$LINENO: result: yes" >&5
8727echo "${ECHO_T}yes" >&6
8728 else
8729 echo "$as_me:$LINENO: result: no" >&5
8730echo "${ECHO_T}no" >&6
8731 fi
8732
8733
8734 enablestring=
8735 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8736echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8737 no_cache=0
8738 # Check whether --enable-finddlg or --disable-finddlg was given.
8739if test "${enable_finddlg+set}" = set; then
8740 enableval="$enable_finddlg"
8741
8742 if test "$enableval" = yes; then
8743 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8744 else
8745 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8746 fi
8747
8748else
8749
8750 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8751 if test "x$LINE" != x ; then
8752 eval "DEFAULT_$LINE"
8753 else
8754 no_cache=1
8755 fi
8756
8757 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8758
8759fi;
8760
8761 eval "$ac_cv_use_finddlg"
8762 if test "$no_cache" != 1; then
8763 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8764 fi
8765
8766 if test "$wxUSE_FINDREPLDLG" = yes; then
8767 echo "$as_me:$LINENO: result: yes" >&5
8768echo "${ECHO_T}yes" >&6
8769 else
8770 echo "$as_me:$LINENO: result: no" >&5
8771echo "${ECHO_T}no" >&6
8772 fi
8773
8774
8775 enablestring=
8776 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8777echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
8778 no_cache=0
8779 # Check whether --enable-fontdlg or --disable-fontdlg was given.
8780if test "${enable_fontdlg+set}" = set; then
8781 enableval="$enable_fontdlg"
8782
8783 if test "$enableval" = yes; then
8784 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8785 else
8786 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8787 fi
8788
8789else
8790
8791 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8792 if test "x$LINE" != x ; then
8793 eval "DEFAULT_$LINE"
8794 else
8795 no_cache=1
8796 fi
8797
8798 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
8799
8800fi;
8801
8802 eval "$ac_cv_use_fontdlg"
8803 if test "$no_cache" != 1; then
8804 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8805 fi
8806
8807 if test "$wxUSE_FONTDLG" = yes; then
8808 echo "$as_me:$LINENO: result: yes" >&5
8809echo "${ECHO_T}yes" >&6
8810 else
8811 echo "$as_me:$LINENO: result: no" >&5
8812echo "${ECHO_T}no" >&6
8813 fi
8814
8815
8816 enablestring=
8817 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8818echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
8819 no_cache=0
8820 # Check whether --enable-dirdlg or --disable-dirdlg was given.
8821if test "${enable_dirdlg+set}" = set; then
8822 enableval="$enable_dirdlg"
8823
8824 if test "$enableval" = yes; then
8825 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8826 else
8827 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8828 fi
8829
8830else
8831
8832 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8833 if test "x$LINE" != x ; then
8834 eval "DEFAULT_$LINE"
8835 else
8836 no_cache=1
8837 fi
8838
8839 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
8840
8841fi;
8842
8843 eval "$ac_cv_use_dirdlg"
8844 if test "$no_cache" != 1; then
8845 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
8846 fi
8847
8848 if test "$wxUSE_DIRDLG" = yes; then
8849 echo "$as_me:$LINENO: result: yes" >&5
8850echo "${ECHO_T}yes" >&6
8851 else
8852 echo "$as_me:$LINENO: result: no" >&5
8853echo "${ECHO_T}no" >&6
8854 fi
8855
8856
8857 enablestring=
8858 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8859echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
8860 no_cache=0
8861 # Check whether --enable-msgdlg or --disable-msgdlg was given.
8862if test "${enable_msgdlg+set}" = set; then
8863 enableval="$enable_msgdlg"
8864
8865 if test "$enableval" = yes; then
8866 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
8867 else
8868 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
8869 fi
8870
8871else
8872
8873 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
8874 if test "x$LINE" != x ; then
8875 eval "DEFAULT_$LINE"
8876 else
8877 no_cache=1
8878 fi
8879
8880 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
8881
8882fi;
8883
8884 eval "$ac_cv_use_msgdlg"
8885 if test "$no_cache" != 1; then
8886 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
8887 fi
8888
8889 if test "$wxUSE_MSGDLG" = yes; then
8890 echo "$as_me:$LINENO: result: yes" >&5
8891echo "${ECHO_T}yes" >&6
8892 else
8893 echo "$as_me:$LINENO: result: no" >&5
8894echo "${ECHO_T}no" >&6
8895 fi
8896
8897
8898 enablestring=
8899 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
8900echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
8901 no_cache=0
8902 # Check whether --enable-numberdlg or --disable-numberdlg was given.
8903if test "${enable_numberdlg+set}" = set; then
8904 enableval="$enable_numberdlg"
8905
8906 if test "$enableval" = yes; then
8907 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
8908 else
8909 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
8910 fi
8911
8912else
8913
8914 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
8915 if test "x$LINE" != x ; then
8916 eval "DEFAULT_$LINE"
8917 else
8918 no_cache=1
8919 fi
8920
8921 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
8922
8923fi;
8924
8925 eval "$ac_cv_use_numberdlg"
8926 if test "$no_cache" != 1; then
8927 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
8928 fi
8929
8930 if test "$wxUSE_NUMBERDLG" = yes; then
8931 echo "$as_me:$LINENO: result: yes" >&5
8932echo "${ECHO_T}yes" >&6
8933 else
8934 echo "$as_me:$LINENO: result: no" >&5
8935echo "${ECHO_T}no" >&6
8936 fi
8937
8938
8939 enablestring=
8940 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
8941echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
8942 no_cache=0
8943 # Check whether --enable-splash or --disable-splash was given.
8944if test "${enable_splash+set}" = set; then
8945 enableval="$enable_splash"
8946
8947 if test "$enableval" = yes; then
8948 ac_cv_use_splash='wxUSE_SPLASH=yes'
8949 else
8950 ac_cv_use_splash='wxUSE_SPLASH=no'
8951 fi
8952
8953else
8954
8955 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
8956 if test "x$LINE" != x ; then
8957 eval "DEFAULT_$LINE"
8958 else
8959 no_cache=1
8960 fi
8961
8962 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
8963
8964fi;
8965
8966 eval "$ac_cv_use_splash"
8967 if test "$no_cache" != 1; then
8968 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
8969 fi
8970
8971 if test "$wxUSE_SPLASH" = yes; then
8972 echo "$as_me:$LINENO: result: yes" >&5
8973echo "${ECHO_T}yes" >&6
8974 else
8975 echo "$as_me:$LINENO: result: no" >&5
8976echo "${ECHO_T}no" >&6
8977 fi
8978
8979
8980 enablestring=
8981 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
8982echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
8983 no_cache=0
8984 # Check whether --enable-textdlg or --disable-textdlg was given.
8985if test "${enable_textdlg+set}" = set; then
8986 enableval="$enable_textdlg"
8987
8988 if test "$enableval" = yes; then
8989 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
8990 else
8991 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
8992 fi
8993
8994else
8995
8996 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
8997 if test "x$LINE" != x ; then
8998 eval "DEFAULT_$LINE"
8999 else
9000 no_cache=1
9001 fi
9002
9003 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9004
9005fi;
9006
9007 eval "$ac_cv_use_textdlg"
9008 if test "$no_cache" != 1; then
9009 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9010 fi
9011
9012 if test "$wxUSE_TEXTDLG" = yes; then
9013 echo "$as_me:$LINENO: result: yes" >&5
9014echo "${ECHO_T}yes" >&6
9015 else
9016 echo "$as_me:$LINENO: result: no" >&5
9017echo "${ECHO_T}no" >&6
9018 fi
9019
9020
9021 enablestring=
9022 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9023echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9024 no_cache=0
9025 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9026if test "${enable_tipdlg+set}" = set; then
9027 enableval="$enable_tipdlg"
9028
9029 if test "$enableval" = yes; then
9030 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9031 else
9032 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9033 fi
9034
9035else
9036
9037 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9038 if test "x$LINE" != x ; then
9039 eval "DEFAULT_$LINE"
9040 else
9041 no_cache=1
9042 fi
9043
9044 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9045
9046fi;
9047
9048 eval "$ac_cv_use_tipdlg"
9049 if test "$no_cache" != 1; then
9050 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9051 fi
9052
9053 if test "$wxUSE_STARTUP_TIPS" = yes; then
9054 echo "$as_me:$LINENO: result: yes" >&5
9055echo "${ECHO_T}yes" >&6
9056 else
9057 echo "$as_me:$LINENO: result: no" >&5
9058echo "${ECHO_T}no" >&6
9059 fi
9060
9061
9062 enablestring=
9063 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9064echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9065 no_cache=0
9066 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9067if test "${enable_progressdlg+set}" = set; then
9068 enableval="$enable_progressdlg"
9069
9070 if test "$enableval" = yes; then
9071 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9072 else
9073 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9074 fi
9075
9076else
9077
9078 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9079 if test "x$LINE" != x ; then
9080 eval "DEFAULT_$LINE"
9081 else
9082 no_cache=1
9083 fi
9084
9085 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9086
9087fi;
9088
9089 eval "$ac_cv_use_progressdlg"
9090 if test "$no_cache" != 1; then
9091 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9092 fi
9093
9094 if test "$wxUSE_PROGRESSDLG" = yes; then
9095 echo "$as_me:$LINENO: result: yes" >&5
9096echo "${ECHO_T}yes" >&6
9097 else
9098 echo "$as_me:$LINENO: result: no" >&5
9099echo "${ECHO_T}no" >&6
9100 fi
9101
9102
9103 enablestring=
9104 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9105echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9106 no_cache=0
9107 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9108if test "${enable_wizarddlg+set}" = set; then
9109 enableval="$enable_wizarddlg"
9110
9111 if test "$enableval" = yes; then
9112 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9113 else
9114 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9115 fi
9116
9117else
9118
9119 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9120 if test "x$LINE" != x ; then
9121 eval "DEFAULT_$LINE"
9122 else
9123 no_cache=1
9124 fi
9125
9126 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9127
9128fi;
9129
9130 eval "$ac_cv_use_wizarddlg"
9131 if test "$no_cache" != 1; then
9132 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9133 fi
9134
9135 if test "$wxUSE_WIZARDDLG" = yes; then
9136 echo "$as_me:$LINENO: result: yes" >&5
9137echo "${ECHO_T}yes" >&6
9138 else
9139 echo "$as_me:$LINENO: result: no" >&5
9140echo "${ECHO_T}no" >&6
9141 fi
9142
9143
9144
9145
9146 enablestring=
9147 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9148echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9149 no_cache=0
9150 # Check whether --enable-menus or --disable-menus was given.
9151if test "${enable_menus+set}" = set; then
9152 enableval="$enable_menus"
9153
9154 if test "$enableval" = yes; then
9155 ac_cv_use_menus='wxUSE_MENUS=yes'
9156 else
9157 ac_cv_use_menus='wxUSE_MENUS=no'
9158 fi
9159
9160else
9161
9162 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9163 if test "x$LINE" != x ; then
9164 eval "DEFAULT_$LINE"
9165 else
9166 no_cache=1
9167 fi
9168
9169 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9170
9171fi;
9172
9173 eval "$ac_cv_use_menus"
9174 if test "$no_cache" != 1; then
9175 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9176 fi
9177
9178 if test "$wxUSE_MENUS" = yes; then
9179 echo "$as_me:$LINENO: result: yes" >&5
9180echo "${ECHO_T}yes" >&6
9181 else
9182 echo "$as_me:$LINENO: result: no" >&5
9183echo "${ECHO_T}no" >&6
9184 fi
9185
9186
9187 enablestring=
9188 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9189echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9190 no_cache=0
9191 # Check whether --enable-miniframe or --disable-miniframe was given.
9192if test "${enable_miniframe+set}" = set; then
9193 enableval="$enable_miniframe"
9194
9195 if test "$enableval" = yes; then
9196 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9197 else
9198 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9199 fi
9200
9201else
9202
9203 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9204 if test "x$LINE" != x ; then
9205 eval "DEFAULT_$LINE"
9206 else
9207 no_cache=1
9208 fi
9209
9210 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9211
9212fi;
9213
9214 eval "$ac_cv_use_miniframe"
9215 if test "$no_cache" != 1; then
9216 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9217 fi
9218
9219 if test "$wxUSE_MINIFRAME" = yes; then
9220 echo "$as_me:$LINENO: result: yes" >&5
9221echo "${ECHO_T}yes" >&6
9222 else
9223 echo "$as_me:$LINENO: result: no" >&5
9224echo "${ECHO_T}no" >&6
9225 fi
9226
9227
9228 enablestring=
9229 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9230echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9231 no_cache=0
9232 # Check whether --enable-tooltips or --disable-tooltips was given.
9233if test "${enable_tooltips+set}" = set; then
9234 enableval="$enable_tooltips"
9235
9236 if test "$enableval" = yes; then
9237 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9238 else
9239 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9240 fi
9241
9242else
9243
9244 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9245 if test "x$LINE" != x ; then
9246 eval "DEFAULT_$LINE"
9247 else
9248 no_cache=1
9249 fi
9250
9251 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9252
9253fi;
9254
9255 eval "$ac_cv_use_tooltips"
9256 if test "$no_cache" != 1; then
9257 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9258 fi
9259
9260 if test "$wxUSE_TOOLTIPS" = yes; then
9261 echo "$as_me:$LINENO: result: yes" >&5
9262echo "${ECHO_T}yes" >&6
9263 else
9264 echo "$as_me:$LINENO: result: no" >&5
9265echo "${ECHO_T}no" >&6
9266 fi
9267
9268
9269 enablestring=
9270 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9271echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9272 no_cache=0
9273 # Check whether --enable-splines or --disable-splines was given.
9274if test "${enable_splines+set}" = set; then
9275 enableval="$enable_splines"
9276
9277 if test "$enableval" = yes; then
9278 ac_cv_use_splines='wxUSE_SPLINES=yes'
9279 else
9280 ac_cv_use_splines='wxUSE_SPLINES=no'
9281 fi
9282
9283else
9284
9285 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9286 if test "x$LINE" != x ; then
9287 eval "DEFAULT_$LINE"
9288 else
9289 no_cache=1
9290 fi
9291
9292 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9293
9294fi;
9295
9296 eval "$ac_cv_use_splines"
9297 if test "$no_cache" != 1; then
9298 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9299 fi
9300
9301 if test "$wxUSE_SPLINES" = yes; then
9302 echo "$as_me:$LINENO: result: yes" >&5
9303echo "${ECHO_T}yes" >&6
9304 else
9305 echo "$as_me:$LINENO: result: no" >&5
9306echo "${ECHO_T}no" >&6
9307 fi
9308
9309
9310 enablestring=
9311 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9312echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9313 no_cache=0
9314 # Check whether --enable-validators or --disable-validators was given.
9315if test "${enable_validators+set}" = set; then
9316 enableval="$enable_validators"
9317
9318 if test "$enableval" = yes; then
9319 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9320 else
9321 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9322 fi
9323
9324else
9325
9326 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9327 if test "x$LINE" != x ; then
9328 eval "DEFAULT_$LINE"
9329 else
9330 no_cache=1
9331 fi
9332
9333 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9334
9335fi;
9336
9337 eval "$ac_cv_use_validators"
9338 if test "$no_cache" != 1; then
9339 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9340 fi
9341
9342 if test "$wxUSE_VALIDATORS" = yes; then
9343 echo "$as_me:$LINENO: result: yes" >&5
9344echo "${ECHO_T}yes" >&6
9345 else
9346 echo "$as_me:$LINENO: result: no" >&5
9347echo "${ECHO_T}no" >&6
9348 fi
9349
9350
9351 enablestring=
9352 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9353echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9354 no_cache=0
9355 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9356if test "${enable_busyinfo+set}" = set; then
9357 enableval="$enable_busyinfo"
9358
9359 if test "$enableval" = yes; then
9360 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9361 else
9362 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9363 fi
9364
9365else
9366
9367 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9368 if test "x$LINE" != x ; then
9369 eval "DEFAULT_$LINE"
9370 else
9371 no_cache=1
9372 fi
9373
9374 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9375
9376fi;
9377
9378 eval "$ac_cv_use_busyinfo"
9379 if test "$no_cache" != 1; then
9380 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9381 fi
9382
9383 if test "$wxUSE_BUSYINFO" = yes; then
9384 echo "$as_me:$LINENO: result: yes" >&5
9385echo "${ECHO_T}yes" >&6
9386 else
9387 echo "$as_me:$LINENO: result: no" >&5
9388echo "${ECHO_T}no" >&6
9389 fi
9390
9391
9392 enablestring=
9393 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9394echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9395 no_cache=0
9396 # Check whether --enable-joystick or --disable-joystick was given.
9397if test "${enable_joystick+set}" = set; then
9398 enableval="$enable_joystick"
9399
9400 if test "$enableval" = yes; then
9401 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9402 else
9403 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9404 fi
9405
9406else
9407
9408 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9409 if test "x$LINE" != x ; then
9410 eval "DEFAULT_$LINE"
9411 else
9412 no_cache=1
9413 fi
9414
9415 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9416
9417fi;
9418
9419 eval "$ac_cv_use_joystick"
9420 if test "$no_cache" != 1; then
9421 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9422 fi
9423
9424 if test "$wxUSE_JOYSTICK" = yes; then
9425 echo "$as_me:$LINENO: result: yes" >&5
9426echo "${ECHO_T}yes" >&6
9427 else
9428 echo "$as_me:$LINENO: result: no" >&5
9429echo "${ECHO_T}no" >&6
9430 fi
9431
9432
9433 enablestring=
9434 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9435echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9436 no_cache=0
9437 # Check whether --enable-metafile or --disable-metafile was given.
9438if test "${enable_metafile+set}" = set; then
9439 enableval="$enable_metafile"
9440
9441 if test "$enableval" = yes; then
9442 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9443 else
9444 ac_cv_use_metafile='wxUSE_METAFILE=no'
9445 fi
9446
9447else
9448
9449 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9450 if test "x$LINE" != x ; then
9451 eval "DEFAULT_$LINE"
9452 else
9453 no_cache=1
9454 fi
9455
9456 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9457
9458fi;
9459
9460 eval "$ac_cv_use_metafile"
9461 if test "$no_cache" != 1; then
9462 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9463 fi
9464
9465 if test "$wxUSE_METAFILE" = yes; then
9466 echo "$as_me:$LINENO: result: yes" >&5
9467echo "${ECHO_T}yes" >&6
9468 else
9469 echo "$as_me:$LINENO: result: no" >&5
9470echo "${ECHO_T}no" >&6
9471 fi
9472
9473
9474 enablestring=
9475 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9476echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9477 no_cache=0
9478 # Check whether --enable-dragimage or --disable-dragimage was given.
9479if test "${enable_dragimage+set}" = set; then
9480 enableval="$enable_dragimage"
9481
9482 if test "$enableval" = yes; then
9483 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9484 else
9485 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9486 fi
9487
9488else
9489
9490 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9491 if test "x$LINE" != x ; then
9492 eval "DEFAULT_$LINE"
9493 else
9494 no_cache=1
9495 fi
9496
9497 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9498
9499fi;
9500
9501 eval "$ac_cv_use_dragimage"
9502 if test "$no_cache" != 1; then
9503 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9504 fi
9505
9506 if test "$wxUSE_DRAGIMAGE" = yes; then
9507 echo "$as_me:$LINENO: result: yes" >&5
9508echo "${ECHO_T}yes" >&6
9509 else
9510 echo "$as_me:$LINENO: result: no" >&5
9511echo "${ECHO_T}no" >&6
9512 fi
9513
9514
9515 enablestring=
9516 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9517echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
9518 no_cache=0
9519 # Check whether --enable-accessibility or --disable-accessibility was given.
9520if test "${enable_accessibility+set}" = set; then
9521 enableval="$enable_accessibility"
9522
9523 if test "$enableval" = yes; then
9524 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9525 else
9526 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9527 fi
9528
9529else
9530
9531 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9532 if test "x$LINE" != x ; then
9533 eval "DEFAULT_$LINE"
9534 else
9535 no_cache=1
9536 fi
9537
9538 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
9539
9540fi;
9541
9542 eval "$ac_cv_use_accessibility"
9543 if test "$no_cache" != 1; then
9544 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9545 fi
9546
9547 if test "$wxUSE_ACCESSIBILITY" = yes; then
9548 echo "$as_me:$LINENO: result: yes" >&5
9549echo "${ECHO_T}yes" >&6
9550 else
9551 echo "$as_me:$LINENO: result: no" >&5
9552echo "${ECHO_T}no" >&6
9553 fi
9554
9555
9556
9557
9558 enablestring=
9559 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9560echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
9561 no_cache=0
9562 # Check whether --enable-palette or --disable-palette was given.
9563if test "${enable_palette+set}" = set; then
9564 enableval="$enable_palette"
9565
9566 if test "$enableval" = yes; then
9567 ac_cv_use_palette='wxUSE_PALETTE=yes'
9568 else
9569 ac_cv_use_palette='wxUSE_PALETTE=no'
9570 fi
9571
9572else
9573
9574 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9575 if test "x$LINE" != x ; then
9576 eval "DEFAULT_$LINE"
9577 else
9578 no_cache=1
9579 fi
9580
9581 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
9582
9583fi;
9584
9585 eval "$ac_cv_use_palette"
9586 if test "$no_cache" != 1; then
9587 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9588 fi
9589
9590 if test "$wxUSE_PALETTE" = yes; then
9591 echo "$as_me:$LINENO: result: yes" >&5
9592echo "${ECHO_T}yes" >&6
9593 else
9594 echo "$as_me:$LINENO: result: no" >&5
9595echo "${ECHO_T}no" >&6
9596 fi
9597
9598
9599 enablestring=
9600 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9601echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
9602 no_cache=0
9603 # Check whether --enable-image or --disable-image was given.
9604if test "${enable_image+set}" = set; then
9605 enableval="$enable_image"
9606
9607 if test "$enableval" = yes; then
9608 ac_cv_use_image='wxUSE_IMAGE=yes'
9609 else
9610 ac_cv_use_image='wxUSE_IMAGE=no'
9611 fi
9612
9613else
9614
9615 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9616 if test "x$LINE" != x ; then
9617 eval "DEFAULT_$LINE"
9618 else
9619 no_cache=1
9620 fi
9621
9622 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
9623
9624fi;
9625
9626 eval "$ac_cv_use_image"
9627 if test "$no_cache" != 1; then
9628 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9629 fi
9630
9631 if test "$wxUSE_IMAGE" = yes; then
9632 echo "$as_me:$LINENO: result: yes" >&5
9633echo "${ECHO_T}yes" >&6
9634 else
9635 echo "$as_me:$LINENO: result: no" >&5
9636echo "${ECHO_T}no" >&6
9637 fi
9638
9639
9640 enablestring=
9641 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9642echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
9643 no_cache=0
9644 # Check whether --enable-gif or --disable-gif was given.
9645if test "${enable_gif+set}" = set; then
9646 enableval="$enable_gif"
9647
9648 if test "$enableval" = yes; then
9649 ac_cv_use_gif='wxUSE_GIF=yes'
9650 else
9651 ac_cv_use_gif='wxUSE_GIF=no'
9652 fi
9653
9654else
9655
9656 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9657 if test "x$LINE" != x ; then
9658 eval "DEFAULT_$LINE"
9659 else
9660 no_cache=1
9661 fi
9662
9663 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
9664
9665fi;
9666
9667 eval "$ac_cv_use_gif"
9668 if test "$no_cache" != 1; then
9669 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9670 fi
9671
9672 if test "$wxUSE_GIF" = yes; then
9673 echo "$as_me:$LINENO: result: yes" >&5
9674echo "${ECHO_T}yes" >&6
9675 else
9676 echo "$as_me:$LINENO: result: no" >&5
9677echo "${ECHO_T}no" >&6
9678 fi
9679
9680
9681 enablestring=
9682 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9683echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
9684 no_cache=0
9685 # Check whether --enable-pcx or --disable-pcx was given.
9686if test "${enable_pcx+set}" = set; then
9687 enableval="$enable_pcx"
9688
9689 if test "$enableval" = yes; then
9690 ac_cv_use_pcx='wxUSE_PCX=yes'
9691 else
9692 ac_cv_use_pcx='wxUSE_PCX=no'
9693 fi
9694
9695else
9696
9697 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9698 if test "x$LINE" != x ; then
9699 eval "DEFAULT_$LINE"
9700 else
9701 no_cache=1
9702 fi
9703
9704 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
9705
9706fi;
9707
9708 eval "$ac_cv_use_pcx"
9709 if test "$no_cache" != 1; then
9710 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9711 fi
9712
9713 if test "$wxUSE_PCX" = yes; then
9714 echo "$as_me:$LINENO: result: yes" >&5
9715echo "${ECHO_T}yes" >&6
9716 else
9717 echo "$as_me:$LINENO: result: no" >&5
9718echo "${ECHO_T}no" >&6
9719 fi
9720
9721
9722 enablestring=
9723 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9724echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
9725 no_cache=0
9726 # Check whether --enable-iff or --disable-iff was given.
9727if test "${enable_iff+set}" = set; then
9728 enableval="$enable_iff"
9729
9730 if test "$enableval" = yes; then
9731 ac_cv_use_iff='wxUSE_IFF=yes'
9732 else
9733 ac_cv_use_iff='wxUSE_IFF=no'
9734 fi
9735
9736else
9737
9738 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9739 if test "x$LINE" != x ; then
9740 eval "DEFAULT_$LINE"
9741 else
9742 no_cache=1
9743 fi
9744
9745 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
9746
9747fi;
9748
9749 eval "$ac_cv_use_iff"
9750 if test "$no_cache" != 1; then
9751 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9752 fi
9753
9754 if test "$wxUSE_IFF" = yes; then
9755 echo "$as_me:$LINENO: result: yes" >&5
9756echo "${ECHO_T}yes" >&6
9757 else
9758 echo "$as_me:$LINENO: result: no" >&5
9759echo "${ECHO_T}no" >&6
9760 fi
9761
9762
9763 enablestring=
9764 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9765echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
9766 no_cache=0
9767 # Check whether --enable-pnm or --disable-pnm was given.
9768if test "${enable_pnm+set}" = set; then
9769 enableval="$enable_pnm"
9770
9771 if test "$enableval" = yes; then
9772 ac_cv_use_pnm='wxUSE_PNM=yes'
9773 else
9774 ac_cv_use_pnm='wxUSE_PNM=no'
9775 fi
9776
9777else
9778
9779 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9780 if test "x$LINE" != x ; then
9781 eval "DEFAULT_$LINE"
9782 else
9783 no_cache=1
9784 fi
9785
9786 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
9787
9788fi;
9789
9790 eval "$ac_cv_use_pnm"
9791 if test "$no_cache" != 1; then
9792 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9793 fi
9794
9795 if test "$wxUSE_PNM" = yes; then
9796 echo "$as_me:$LINENO: result: yes" >&5
9797echo "${ECHO_T}yes" >&6
9798 else
9799 echo "$as_me:$LINENO: result: no" >&5
9800echo "${ECHO_T}no" >&6
9801 fi
9802
9803
9804 enablestring=
9805 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9806echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
9807 no_cache=0
9808 # Check whether --enable-xpm or --disable-xpm was given.
9809if test "${enable_xpm+set}" = set; then
9810 enableval="$enable_xpm"
9811
9812 if test "$enableval" = yes; then
9813 ac_cv_use_xpm='wxUSE_XPM=yes'
9814 else
9815 ac_cv_use_xpm='wxUSE_XPM=no'
9816 fi
9817
9818else
9819
9820 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9821 if test "x$LINE" != x ; then
9822 eval "DEFAULT_$LINE"
9823 else
9824 no_cache=1
9825 fi
9826
9827 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
9828
9829fi;
9830
9831 eval "$ac_cv_use_xpm"
9832 if test "$no_cache" != 1; then
9833 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
9834 fi
9835
9836 if test "$wxUSE_XPM" = yes; then
9837 echo "$as_me:$LINENO: result: yes" >&5
9838echo "${ECHO_T}yes" >&6
9839 else
9840 echo "$as_me:$LINENO: result: no" >&5
9841echo "${ECHO_T}no" >&6
9842 fi
9843
9844
9845 enablestring=
9846 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9847echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
9848 no_cache=0
9849 # Check whether --enable-ico_cur or --disable-ico_cur was given.
9850if test "${enable_ico_cur+set}" = set; then
9851 enableval="$enable_ico_cur"
9852
9853 if test "$enableval" = yes; then
9854 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
9855 else
9856 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
9857 fi
9858
9859else
9860
9861 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9862 if test "x$LINE" != x ; then
9863 eval "DEFAULT_$LINE"
9864 else
9865 no_cache=1
9866 fi
9867
9868 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
9869
9870fi;
9871
9872 eval "$ac_cv_use_ico_cur"
9873 if test "$no_cache" != 1; then
9874 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
9875 fi
9876
9877 if test "$wxUSE_ICO_CUR" = yes; then
9878 echo "$as_me:$LINENO: result: yes" >&5
9879echo "${ECHO_T}yes" >&6
9880 else
9881 echo "$as_me:$LINENO: result: no" >&5
9882echo "${ECHO_T}no" >&6
9883 fi
9884
9885
9886fi
9887
9888
9889
9890 enablestring=
9891 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
9892echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
9893 no_cache=0
9894 # Check whether --enable-official_build or --disable-official_build was given.
9895if test "${enable_official_build+set}" = set; then
9896 enableval="$enable_official_build"
9897
9898 if test "$enableval" = yes; then
9899 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
9900 else
9901 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
9902 fi
9903
9904else
9905
9906 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
9907 if test "x$LINE" != x ; then
9908 eval "DEFAULT_$LINE"
9909 else
9910 no_cache=1
9911 fi
9912
9913 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
9914
9915fi;
9916
9917 eval "$ac_cv_use_official_build"
9918 if test "$no_cache" != 1; then
9919 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
9920 fi
9921
9922 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
9923 echo "$as_me:$LINENO: result: yes" >&5
9924echo "${ECHO_T}yes" >&6
9925 else
9926 echo "$as_me:$LINENO: result: no" >&5
9927echo "${ECHO_T}no" >&6
9928 fi
9929
9930# Check whether --enable-vendor or --disable-vendor was given.
9931if test "${enable_vendor+set}" = set; then
9932 enableval="$enable_vendor"
9933 VENDOR="$enableval"
9934fi;
9935if test "x$VENDOR" = "x"; then
9936 VENDOR="custom"
9937fi
9938
9939case "${host}" in
9940 *-pc-os2_emx | *-pc-os2-emx )
9941 PATH_IFS=';'
a848cd7e
SC
9942 ;;
9943 *)
9944 PATH_IFS=':'
9945 ;;
9946esac
9947
9948
9949
9950 echo "saving argument cache $wx_arg_cache_file"
9951 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
9952
9953
9954
9955echo "$as_me:$LINENO: checking for toolkit" >&5
9956echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
9957
9958# In Wine, we need to default to MSW, not GTK or MOTIF
9959if test "$wxUSE_WINE" = "yes"; then
9960 DEFAULT_DEFAULT_wxUSE_GTK=0
9961 DEFAULT_DEFAULT_wxUSE_MOTIF=0
9962 DEFAULT_DEFAULT_wxUSE_MSW=1
9963 wxUSE_SHARED=no
9964fi
9965
9966if test "$wxUSE_GUI" = "yes"; then
9967
9968 if test "$USE_BEOS" = 1; then
9969 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
9970echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
9971 { (exit 1); exit 1; }; }
9972 fi
9973
9974 if test "$TOOLKIT_GIVEN" = 1; then
9975 for toolkit in `echo $ALL_TOOLKITS`; do
9976 var=wxUSE_$toolkit
9977 eval "value=\$${var}"
9978 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
9979 done
9980 else
9981 for toolkit in `echo $ALL_TOOLKITS`; do
9982 if test "$has_toolkit_in_cache" != 1; then
9983 var=DEFAULT_DEFAULT_wxUSE_$toolkit
9984 else
9985 var=DEFAULT_wxUSE_$toolkit
9986 fi
9987 eval "wxUSE_$toolkit=\$${var}"
9988 done
9989 fi
9990
9991 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
9992 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
9993 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
9994
9995 case "${host}" in
9996 *-pc-os2_emx | *-pc-os2-emx )
9997 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
9998 esac
9999
10000 case "$NUM_TOOLKITS" in
10001 1)
10002 ;;
10003 0)
10004 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10005echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10006 { (exit 1); exit 1; }; }
10007 ;;
10008 *)
10009 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10010echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10011 { (exit 1); exit 1; }; }
10012 esac
10013
10014 for toolkit in `echo $ALL_TOOLKITS`; do
10015 var=wxUSE_$toolkit
10016 eval "value=\$${var}"
10017 if test "x$value" != x; then
10018 cache_var=CACHE_$toolkit
10019 eval "cache=\$${cache_var}"
10020 if test "$cache" = 1; then
10021 echo "$var=$value" >> ${wx_arg_cache_file}
10022 fi
10023 if test "$value" = 1; then
10024 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10025 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10026echo "${ECHO_T}$toolkit_echo" >&6
10027 fi
10028 fi
10029 done
10030else
10031 if test "x$host_alias" != "x"; then
10032 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10033echo "${ECHO_T}base ($host_alias hosted) only" >&6
10034 else
10035 echo "$as_me:$LINENO: result: base only" >&5
10036echo "${ECHO_T}base only" >&6
10037 fi
10038fi
10039
10040wants_win32=0
10041doesnt_want_win32=0
10042case "${host}" in
10043 *-*-cygwin*)
10044 if test "$wxUSE_MSW" = 1 ; then
10045 wants_win32=1
10046 else
10047 doesnt_want_win32=1
10048 fi
10049 ;;
10050 *-*-mingw*)
10051 wants_win32=1
10052 ;;
10053esac
10054
10055if test "$wxUSE_WINE" = "yes"; then
10056 wants_win32=1
10057 CC=winegcc
10058 CXX=wineg++
10059 RESCOMP=wrc
10060 LDFLAGS_GUI="-mwindows"
10061fi
10062
10063if test "$wants_win32" = 1 ; then
10064 USE_UNIX=0
10065 USE_WIN32=1
10066 cat >>confdefs.h <<\_ACEOF
10067#define __WIN32__ 1
10068_ACEOF
10069
10070 cat >>confdefs.h <<\_ACEOF
10071#define __WIN95__ 1
10072_ACEOF
10073
10074 cat >>confdefs.h <<\_ACEOF
10075#define __WINDOWS__ 1
10076_ACEOF
10077
10078 cat >>confdefs.h <<\_ACEOF
10079#define __GNUWIN32__ 1
10080_ACEOF
10081
10082 cat >>confdefs.h <<\_ACEOF
10083#define STRICT 1
10084_ACEOF
10085
10086 cat >>confdefs.h <<\_ACEOF
10087#define WINVER 0x0400
10088_ACEOF
10089
10090fi
10091if test "$doesnt_want_win32" = 1 ; then
10092 USE_UNIX=1
10093 USE_WIN32=0
10094fi
10095
10096if test "$USE_UNIX" = 1 ; then
10097 wxUSE_UNIX=yes
10098 cat >>confdefs.h <<\_ACEOF
10099#define __UNIX__ 1
10100_ACEOF
10101
10102fi
10103
10104
10105cat >confcache <<\_ACEOF
10106# This file is a shell script that caches the results of configure
10107# tests run on this system so they can be shared between configure
10108# scripts and configure runs, see configure's option --config-cache.
10109# It is not useful on other systems. If it contains results you don't
10110# want to keep, you may remove or edit it.
10111#
10112# config.status only pays attention to the cache file if you give it
10113# the --recheck option to rerun configure.
10114#
10115# `ac_cv_env_foo' variables (set or unset) will be overridden when
10116# loading this file, other *unset* `ac_cv_foo' will be assigned the
10117# following values.
10118
10119_ACEOF
10120
10121# The following way of writing the cache mishandles newlines in values,
10122# but we know of no workaround that is simple, portable, and efficient.
10123# So, don't put newlines in cache variables' values.
10124# Ultrix sh set writes to stderr and can't be redirected directly,
10125# and sets the high bit in the cache file unless we assign to the vars.
10126{
10127 (set) 2>&1 |
10128 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10129 *ac_space=\ *)
10130 # `set' does not quote correctly, so add quotes (double-quote
10131 # substitution turns \\\\ into \\, and sed turns \\ into \).
10132 sed -n \
ac1cb8d3
VS
10133 "s/'/'\\\\''/g;
10134 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10135 ;;
10136 *)
10137 # `set' quotes correctly as required by POSIX, so do not add quotes.
10138 sed -n \
ac1cb8d3 10139 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10140 ;;
10141 esac;
10142} |
10143 sed '
10144 t clear
10145 : clear
10146 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10147 t end
10148 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10149 : end' >>confcache
10150if diff $cache_file confcache >/dev/null 2>&1; then :; else
10151 if test -w $cache_file; then
10152 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10153 cat confcache >$cache_file
10154 else
10155 echo "not updating unwritable cache $cache_file"
10156 fi
10157fi
10158rm -f confcache
10159
10160if test "$build" != "$host" ; then
10161 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
10162 CC=$host_alias-gcc
10163 CXX=$host_alias-c++
10164 AR=$host_alias-ar
10165 RANLIB=$host_alias-ranlib
10166 DLLTOOL=$host_alias-dlltool
10167 RESCOMP=$host_alias-windres
10168 LD=$host_alias-ld
10169 NM=$host_alias-nm
10170 STRIP=$host_alias-strip
10171 else
10172 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10173echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10174 { (exit 1); exit 1; }; }
10175 fi
10176fi
10177
10178CFLAGS=${CFLAGS:=}
10179ac_ext=c
10180ac_cpp='$CPP $CPPFLAGS'
10181ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10182ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10183ac_compiler_gnu=$ac_cv_c_compiler_gnu
10184if test -n "$ac_tool_prefix"; then
10185 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10186set dummy ${ac_tool_prefix}gcc; ac_word=$2
10187echo "$as_me:$LINENO: checking for $ac_word" >&5
10188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10189if test "${ac_cv_prog_CC+set}" = set; then
10190 echo $ECHO_N "(cached) $ECHO_C" >&6
10191else
10192 if test -n "$CC"; then
10193 ac_cv_prog_CC="$CC" # Let the user override the test.
10194else
10195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10196for as_dir in $PATH
10197do
10198 IFS=$as_save_IFS
10199 test -z "$as_dir" && as_dir=.
10200 for ac_exec_ext in '' $ac_executable_extensions; do
10201 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10202 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10204 break 2
10205 fi
10206done
10207done
10208
10209fi
10210fi
10211CC=$ac_cv_prog_CC
10212if test -n "$CC"; then
10213 echo "$as_me:$LINENO: result: $CC" >&5
10214echo "${ECHO_T}$CC" >&6
10215else
10216 echo "$as_me:$LINENO: result: no" >&5
10217echo "${ECHO_T}no" >&6
10218fi
10219
10220fi
10221if test -z "$ac_cv_prog_CC"; then
10222 ac_ct_CC=$CC
10223 # Extract the first word of "gcc", so it can be a program name with args.
10224set dummy gcc; ac_word=$2
10225echo "$as_me:$LINENO: checking for $ac_word" >&5
10226echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10227if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10228 echo $ECHO_N "(cached) $ECHO_C" >&6
10229else
10230 if test -n "$ac_ct_CC"; then
10231 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10232else
10233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10234for as_dir in $PATH
10235do
10236 IFS=$as_save_IFS
10237 test -z "$as_dir" && as_dir=.
10238 for ac_exec_ext in '' $ac_executable_extensions; do
10239 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10240 ac_cv_prog_ac_ct_CC="gcc"
10241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10242 break 2
10243 fi
10244done
10245done
10246
10247fi
10248fi
10249ac_ct_CC=$ac_cv_prog_ac_ct_CC
10250if test -n "$ac_ct_CC"; then
10251 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10252echo "${ECHO_T}$ac_ct_CC" >&6
10253else
10254 echo "$as_me:$LINENO: result: no" >&5
10255echo "${ECHO_T}no" >&6
10256fi
10257
10258 CC=$ac_ct_CC
10259else
10260 CC="$ac_cv_prog_CC"
10261fi
10262
10263if test -z "$CC"; then
10264 if test -n "$ac_tool_prefix"; then
10265 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10266set dummy ${ac_tool_prefix}cc; ac_word=$2
10267echo "$as_me:$LINENO: checking for $ac_word" >&5
10268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10269if test "${ac_cv_prog_CC+set}" = set; then
10270 echo $ECHO_N "(cached) $ECHO_C" >&6
10271else
10272 if test -n "$CC"; then
10273 ac_cv_prog_CC="$CC" # Let the user override the test.
10274else
10275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10276for as_dir in $PATH
10277do
10278 IFS=$as_save_IFS
10279 test -z "$as_dir" && as_dir=.
10280 for ac_exec_ext in '' $ac_executable_extensions; do
10281 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10282 ac_cv_prog_CC="${ac_tool_prefix}cc"
10283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10284 break 2
10285 fi
10286done
10287done
10288
10289fi
10290fi
10291CC=$ac_cv_prog_CC
10292if test -n "$CC"; then
10293 echo "$as_me:$LINENO: result: $CC" >&5
10294echo "${ECHO_T}$CC" >&6
10295else
10296 echo "$as_me:$LINENO: result: no" >&5
10297echo "${ECHO_T}no" >&6
10298fi
10299
10300fi
10301if test -z "$ac_cv_prog_CC"; then
10302 ac_ct_CC=$CC
10303 # Extract the first word of "cc", so it can be a program name with args.
10304set dummy cc; ac_word=$2
10305echo "$as_me:$LINENO: checking for $ac_word" >&5
10306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10307if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10308 echo $ECHO_N "(cached) $ECHO_C" >&6
10309else
10310 if test -n "$ac_ct_CC"; then
10311 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10312else
10313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10314for as_dir in $PATH
10315do
10316 IFS=$as_save_IFS
10317 test -z "$as_dir" && as_dir=.
10318 for ac_exec_ext in '' $ac_executable_extensions; do
10319 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10320 ac_cv_prog_ac_ct_CC="cc"
10321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10322 break 2
10323 fi
10324done
10325done
10326
10327fi
10328fi
10329ac_ct_CC=$ac_cv_prog_ac_ct_CC
10330if test -n "$ac_ct_CC"; then
10331 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10332echo "${ECHO_T}$ac_ct_CC" >&6
10333else
10334 echo "$as_me:$LINENO: result: no" >&5
10335echo "${ECHO_T}no" >&6
10336fi
10337
10338 CC=$ac_ct_CC
10339else
10340 CC="$ac_cv_prog_CC"
10341fi
10342
10343fi
10344if test -z "$CC"; then
10345 # Extract the first word of "cc", so it can be a program name with args.
10346set dummy cc; ac_word=$2
10347echo "$as_me:$LINENO: checking for $ac_word" >&5
10348echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10349if test "${ac_cv_prog_CC+set}" = set; then
10350 echo $ECHO_N "(cached) $ECHO_C" >&6
10351else
10352 if test -n "$CC"; then
10353 ac_cv_prog_CC="$CC" # Let the user override the test.
10354else
10355 ac_prog_rejected=no
10356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10357for as_dir in $PATH
10358do
10359 IFS=$as_save_IFS
10360 test -z "$as_dir" && as_dir=.
10361 for ac_exec_ext in '' $ac_executable_extensions; do
10362 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10363 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10364 ac_prog_rejected=yes
10365 continue
10366 fi
10367 ac_cv_prog_CC="cc"
10368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10369 break 2
10370 fi
10371done
10372done
10373
10374if test $ac_prog_rejected = yes; then
10375 # We found a bogon in the path, so make sure we never use it.
10376 set dummy $ac_cv_prog_CC
10377 shift
10378 if test $# != 0; then
10379 # We chose a different compiler from the bogus one.
10380 # However, it has the same basename, so the bogon will be chosen
10381 # first if we set CC to just the basename; use the full file name.
10382 shift
10383 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10384 fi
10385fi
10386fi
10387fi
10388CC=$ac_cv_prog_CC
10389if test -n "$CC"; then
10390 echo "$as_me:$LINENO: result: $CC" >&5
10391echo "${ECHO_T}$CC" >&6
10392else
10393 echo "$as_me:$LINENO: result: no" >&5
10394echo "${ECHO_T}no" >&6
10395fi
10396
10397fi
10398if test -z "$CC"; then
10399 if test -n "$ac_tool_prefix"; then
10400 for ac_prog in cl
10401 do
10402 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10403set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10404echo "$as_me:$LINENO: checking for $ac_word" >&5
10405echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10406if test "${ac_cv_prog_CC+set}" = set; then
10407 echo $ECHO_N "(cached) $ECHO_C" >&6
10408else
10409 if test -n "$CC"; then
10410 ac_cv_prog_CC="$CC" # Let the user override the test.
10411else
10412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10413for as_dir in $PATH
10414do
10415 IFS=$as_save_IFS
10416 test -z "$as_dir" && as_dir=.
10417 for ac_exec_ext in '' $ac_executable_extensions; do
10418 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10419 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10421 break 2
10422 fi
10423done
10424done
10425
10426fi
10427fi
10428CC=$ac_cv_prog_CC
10429if test -n "$CC"; then
10430 echo "$as_me:$LINENO: result: $CC" >&5
10431echo "${ECHO_T}$CC" >&6
10432else
10433 echo "$as_me:$LINENO: result: no" >&5
10434echo "${ECHO_T}no" >&6
10435fi
10436
10437 test -n "$CC" && break
10438 done
10439fi
10440if test -z "$CC"; then
10441 ac_ct_CC=$CC
10442 for ac_prog in cl
10443do
10444 # Extract the first word of "$ac_prog", so it can be a program name with args.
10445set dummy $ac_prog; ac_word=$2
10446echo "$as_me:$LINENO: checking for $ac_word" >&5
10447echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10448if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10449 echo $ECHO_N "(cached) $ECHO_C" >&6
10450else
10451 if test -n "$ac_ct_CC"; then
10452 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10453else
10454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10455for as_dir in $PATH
10456do
10457 IFS=$as_save_IFS
10458 test -z "$as_dir" && as_dir=.
10459 for ac_exec_ext in '' $ac_executable_extensions; do
10460 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10461 ac_cv_prog_ac_ct_CC="$ac_prog"
10462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10463 break 2
10464 fi
10465done
10466done
10467
10468fi
10469fi
10470ac_ct_CC=$ac_cv_prog_ac_ct_CC
10471if test -n "$ac_ct_CC"; then
10472 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10473echo "${ECHO_T}$ac_ct_CC" >&6
10474else
10475 echo "$as_me:$LINENO: result: no" >&5
10476echo "${ECHO_T}no" >&6
10477fi
10478
10479 test -n "$ac_ct_CC" && break
10480done
10481
10482 CC=$ac_ct_CC
10483fi
10484
10485fi
10486
10487
10488test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10489See \`config.log' for more details." >&5
10490echo "$as_me: error: no acceptable C compiler found in \$PATH
10491See \`config.log' for more details." >&2;}
10492 { (exit 1); exit 1; }; }
10493
10494# Provide some information about the compiler.
10495echo "$as_me:$LINENO:" \
10496 "checking for C compiler version" >&5
10497ac_compiler=`set X $ac_compile; echo $2`
10498{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10499 (eval $ac_compiler --version </dev/null >&5) 2>&5
10500 ac_status=$?
10501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502 (exit $ac_status); }
10503{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10504 (eval $ac_compiler -v </dev/null >&5) 2>&5
10505 ac_status=$?
10506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507 (exit $ac_status); }
10508{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10509 (eval $ac_compiler -V </dev/null >&5) 2>&5
10510 ac_status=$?
10511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512 (exit $ac_status); }
10513
10514cat >conftest.$ac_ext <<_ACEOF
10515/* confdefs.h. */
10516_ACEOF
10517cat confdefs.h >>conftest.$ac_ext
10518cat >>conftest.$ac_ext <<_ACEOF
10519/* end confdefs.h. */
10520
10521int
10522main ()
10523{
10524
10525 ;
10526 return 0;
10527}
10528_ACEOF
10529ac_clean_files_save=$ac_clean_files
10530ac_clean_files="$ac_clean_files a.out a.exe b.out"
10531# Try to create an executable without -o first, disregard a.out.
10532# It will help us diagnose broken compilers, and finding out an intuition
10533# of exeext.
ac1cb8d3
VS
10534echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
10535echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
10536ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10537if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10538 (eval $ac_link_default) 2>&5
10539 ac_status=$?
10540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541 (exit $ac_status); }; then
10542 # Find the output, starting from the most likely. This scheme is
10543# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10544# resort.
10545
10546# Be careful to initialize this variable, since it used to be cached.
10547# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10548ac_cv_exeext=
10549# b.out is created by i960 compilers.
10550for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10551do
10552 test -f "$ac_file" || continue
10553 case $ac_file in
10554 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 10555 ;;
a848cd7e 10556 conftest.$ac_ext )
ac1cb8d3
VS
10557 # This is the source file.
10558 ;;
a848cd7e 10559 [ab].out )
ac1cb8d3
VS
10560 # We found the default executable, but exeext='' is most
10561 # certainly right.
10562 break;;
a848cd7e 10563 *.* )
ac1cb8d3
VS
10564 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10565 # FIXME: I believe we export ac_cv_exeext for Libtool,
10566 # but it would be cool to find out if it's true. Does anybody
10567 # maintain Libtool? --akim.
10568 export ac_cv_exeext
10569 break;;
a848cd7e 10570 * )
ac1cb8d3 10571 break;;
a848cd7e
SC
10572 esac
10573done
10574else
10575 echo "$as_me: failed program was:" >&5
10576sed 's/^/| /' conftest.$ac_ext >&5
10577
10578{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10579See \`config.log' for more details." >&5
10580echo "$as_me: error: C compiler cannot create executables
10581See \`config.log' for more details." >&2;}
10582 { (exit 77); exit 77; }; }
10583fi
10584
10585ac_exeext=$ac_cv_exeext
10586echo "$as_me:$LINENO: result: $ac_file" >&5
10587echo "${ECHO_T}$ac_file" >&6
10588
10589# Check the compiler produces executables we can run. If not, either
10590# the compiler is broken, or we cross compile.
10591echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10592echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10593# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10594# If not cross compiling, check that we can run a simple program.
10595if test "$cross_compiling" != yes; then
10596 if { ac_try='./$ac_file'
10597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10598 (eval $ac_try) 2>&5
10599 ac_status=$?
10600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); }; }; then
10602 cross_compiling=no
10603 else
10604 if test "$cross_compiling" = maybe; then
10605 cross_compiling=yes
10606 else
10607 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10608If you meant to cross compile, use \`--host'.
10609See \`config.log' for more details." >&5
10610echo "$as_me: error: cannot run C compiled programs.
10611If you meant to cross compile, use \`--host'.
10612See \`config.log' for more details." >&2;}
10613 { (exit 1); exit 1; }; }
10614 fi
10615 fi
10616fi
10617echo "$as_me:$LINENO: result: yes" >&5
10618echo "${ECHO_T}yes" >&6
10619
10620rm -f a.out a.exe conftest$ac_cv_exeext b.out
10621ac_clean_files=$ac_clean_files_save
10622# Check the compiler produces executables we can run. If not, either
10623# the compiler is broken, or we cross compile.
10624echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10625echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10626echo "$as_me:$LINENO: result: $cross_compiling" >&5
10627echo "${ECHO_T}$cross_compiling" >&6
10628
10629echo "$as_me:$LINENO: checking for suffix of executables" >&5
10630echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10631if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10632 (eval $ac_link) 2>&5
10633 ac_status=$?
10634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635 (exit $ac_status); }; then
10636 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10637# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10638# work properly (i.e., refer to `conftest.exe'), while it won't with
10639# `rm'.
10640for ac_file in conftest.exe conftest conftest.*; do
10641 test -f "$ac_file" || continue
10642 case $ac_file in
10643 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10644 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
10645 export ac_cv_exeext
10646 break;;
a848cd7e
SC
10647 * ) break;;
10648 esac
10649done
10650else
10651 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10652See \`config.log' for more details." >&5
10653echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10654See \`config.log' for more details." >&2;}
10655 { (exit 1); exit 1; }; }
10656fi
10657
10658rm -f conftest$ac_cv_exeext
10659echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10660echo "${ECHO_T}$ac_cv_exeext" >&6
10661
10662rm -f conftest.$ac_ext
10663EXEEXT=$ac_cv_exeext
10664ac_exeext=$EXEEXT
10665echo "$as_me:$LINENO: checking for suffix of object files" >&5
10666echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10667if test "${ac_cv_objext+set}" = set; then
10668 echo $ECHO_N "(cached) $ECHO_C" >&6
10669else
10670 cat >conftest.$ac_ext <<_ACEOF
10671/* confdefs.h. */
10672_ACEOF
10673cat confdefs.h >>conftest.$ac_ext
10674cat >>conftest.$ac_ext <<_ACEOF
10675/* end confdefs.h. */
10676
10677int
10678main ()
10679{
10680
10681 ;
10682 return 0;
10683}
10684_ACEOF
10685rm -f conftest.o conftest.obj
10686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10687 (eval $ac_compile) 2>&5
10688 ac_status=$?
10689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690 (exit $ac_status); }; then
10691 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10692 case $ac_file in
10693 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10694 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10695 break;;
10696 esac
10697done
10698else
10699 echo "$as_me: failed program was:" >&5
10700sed 's/^/| /' conftest.$ac_ext >&5
10701
10702{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10703See \`config.log' for more details." >&5
10704echo "$as_me: error: cannot compute suffix of object files: cannot compile
10705See \`config.log' for more details." >&2;}
10706 { (exit 1); exit 1; }; }
10707fi
10708
10709rm -f conftest.$ac_cv_objext conftest.$ac_ext
10710fi
10711echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10712echo "${ECHO_T}$ac_cv_objext" >&6
10713OBJEXT=$ac_cv_objext
10714ac_objext=$OBJEXT
10715echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10716echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10717if test "${ac_cv_c_compiler_gnu+set}" = set; then
10718 echo $ECHO_N "(cached) $ECHO_C" >&6
10719else
10720 cat >conftest.$ac_ext <<_ACEOF
10721/* confdefs.h. */
10722_ACEOF
10723cat confdefs.h >>conftest.$ac_ext
10724cat >>conftest.$ac_ext <<_ACEOF
10725/* end confdefs.h. */
10726
10727int
10728main ()
10729{
10730#ifndef __GNUC__
10731 choke me
10732#endif
10733
10734 ;
10735 return 0;
10736}
10737_ACEOF
10738rm -f conftest.$ac_objext
10739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 10740 (eval $ac_compile) 2>conftest.er1
a848cd7e 10741 ac_status=$?
ac1cb8d3
VS
10742 grep -v '^ *+' conftest.er1 >conftest.err
10743 rm -f conftest.er1
10744 cat conftest.err >&5
a848cd7e
SC
10745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746 (exit $ac_status); } &&
ea7db9ff
DE
10747 { ac_try='test -z "$ac_c_werror_flag"
10748 || test ! -s conftest.err'
ac1cb8d3
VS
10749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10750 (eval $ac_try) 2>&5
10751 ac_status=$?
10752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753 (exit $ac_status); }; } &&
10754 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10756 (eval $ac_try) 2>&5
10757 ac_status=$?
10758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10759 (exit $ac_status); }; }; then
10760 ac_compiler_gnu=yes
10761else
10762 echo "$as_me: failed program was:" >&5
10763sed 's/^/| /' conftest.$ac_ext >&5
10764
10765ac_compiler_gnu=no
10766fi
ac1cb8d3 10767rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
10768ac_cv_c_compiler_gnu=$ac_compiler_gnu
10769
10770fi
10771echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10772echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10773GCC=`test $ac_compiler_gnu = yes && echo yes`
10774ac_test_CFLAGS=${CFLAGS+set}
10775ac_save_CFLAGS=$CFLAGS
10776CFLAGS="-g"
10777echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10778echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10779if test "${ac_cv_prog_cc_g+set}" = set; then
10780 echo $ECHO_N "(cached) $ECHO_C" >&6
10781else
10782 cat >conftest.$ac_ext <<_ACEOF
10783/* confdefs.h. */
10784_ACEOF
10785cat confdefs.h >>conftest.$ac_ext
10786cat >>conftest.$ac_ext <<_ACEOF
10787/* end confdefs.h. */
10788
10789int
10790main ()
10791{
10792
10793 ;
10794 return 0;
10795}
10796_ACEOF
10797rm -f conftest.$ac_objext
10798if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 10799 (eval $ac_compile) 2>conftest.er1
a848cd7e 10800 ac_status=$?
ac1cb8d3
VS
10801 grep -v '^ *+' conftest.er1 >conftest.err
10802 rm -f conftest.er1
10803 cat conftest.err >&5
a848cd7e
SC
10804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805 (exit $ac_status); } &&
ea7db9ff
DE
10806 { ac_try='test -z "$ac_c_werror_flag"
10807 || test ! -s conftest.err'
ac1cb8d3
VS
10808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10809 (eval $ac_try) 2>&5
10810 ac_status=$?
10811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812 (exit $ac_status); }; } &&
10813 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10815 (eval $ac_try) 2>&5
10816 ac_status=$?
10817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818 (exit $ac_status); }; }; then
10819 ac_cv_prog_cc_g=yes
10820else
10821 echo "$as_me: failed program was:" >&5
10822sed 's/^/| /' conftest.$ac_ext >&5
10823
10824ac_cv_prog_cc_g=no
10825fi
ac1cb8d3 10826rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
10827fi
10828echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10829echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
10830if test "$ac_test_CFLAGS" = set; then
10831 CFLAGS=$ac_save_CFLAGS
10832elif test $ac_cv_prog_cc_g = yes; then
10833 if test "$GCC" = yes; then
10834 CFLAGS="-g -O2"
10835 else
10836 CFLAGS="-g"
10837 fi
10838else
10839 if test "$GCC" = yes; then
10840 CFLAGS="-O2"
10841 else
10842 CFLAGS=
10843 fi
10844fi
10845echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10846echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10847if test "${ac_cv_prog_cc_stdc+set}" = set; then
10848 echo $ECHO_N "(cached) $ECHO_C" >&6
10849else
10850 ac_cv_prog_cc_stdc=no
10851ac_save_CC=$CC
10852cat >conftest.$ac_ext <<_ACEOF
10853/* confdefs.h. */
10854_ACEOF
10855cat confdefs.h >>conftest.$ac_ext
10856cat >>conftest.$ac_ext <<_ACEOF
10857/* end confdefs.h. */
10858#include <stdarg.h>
10859#include <stdio.h>
10860#include <sys/types.h>
10861#include <sys/stat.h>
10862/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10863struct buf { int x; };
10864FILE * (*rcsopen) (struct buf *, struct stat *, int);
10865static char *e (p, i)
10866 char **p;
10867 int i;
10868{
10869 return p[i];
10870}
10871static char *f (char * (*g) (char **, int), char **p, ...)
10872{
10873 char *s;
10874 va_list v;
10875 va_start (v,p);
10876 s = g (p, va_arg (v,int));
10877 va_end (v);
10878 return s;
10879}
ac1cb8d3
VS
10880
10881/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
10882 function prototypes and stuff, but not '\xHH' hex character constants.
10883 These don't provoke an error unfortunately, instead are silently treated
10884 as 'x'. The following induces an error, until -std1 is added to get
10885 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
10886 array size at least. It's necessary to write '\x00'==0 to get something
10887 that's true only with -std1. */
10888int osf4_cc_array ['\x00' == 0 ? 1 : -1];
10889
a848cd7e
SC
10890int test (int i, double x);
10891struct s1 {int (*f) (int a);};
10892struct s2 {int (*f) (double a);};
10893int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10894int argc;
10895char **argv;
10896int
10897main ()
10898{
10899return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10900 ;
10901 return 0;
10902}
10903_ACEOF
10904# Don't try gcc -ansi; that turns off useful extensions and
10905# breaks some systems' header files.
10906# AIX -qlanglvl=ansi
10907# Ultrix and OSF/1 -std1
10908# HP-UX 10.20 and later -Ae
10909# HP-UX older versions -Aa -D_HPUX_SOURCE
10910# SVR4 -Xc -D__EXTENSIONS__
10911for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10912do
10913 CC="$ac_save_CC $ac_arg"
10914 rm -f conftest.$ac_objext
10915if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 10916 (eval $ac_compile) 2>conftest.er1
a848cd7e 10917 ac_status=$?
ac1cb8d3
VS
10918 grep -v '^ *+' conftest.er1 >conftest.err
10919 rm -f conftest.er1
10920 cat conftest.err >&5
a848cd7e
SC
10921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922 (exit $ac_status); } &&
ea7db9ff
DE
10923 { ac_try='test -z "$ac_c_werror_flag"
10924 || test ! -s conftest.err'
ac1cb8d3
VS
10925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10926 (eval $ac_try) 2>&5
10927 ac_status=$?
10928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929 (exit $ac_status); }; } &&
10930 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10932 (eval $ac_try) 2>&5
10933 ac_status=$?
10934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935 (exit $ac_status); }; }; then
10936 ac_cv_prog_cc_stdc=$ac_arg
10937break
10938else
10939 echo "$as_me: failed program was:" >&5
10940sed 's/^/| /' conftest.$ac_ext >&5
10941
10942fi
ac1cb8d3 10943rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
10944done
10945rm -f conftest.$ac_ext conftest.$ac_objext
10946CC=$ac_save_CC
10947
10948fi
10949
10950case "x$ac_cv_prog_cc_stdc" in
10951 x|xno)
10952 echo "$as_me:$LINENO: result: none needed" >&5
10953echo "${ECHO_T}none needed" >&6 ;;
10954 *)
10955 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10956echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10957 CC="$CC $ac_cv_prog_cc_stdc" ;;
10958esac
10959
10960# Some people use a C++ compiler to compile C. Since we use `exit',
10961# in C++ we need to declare it. In case someone uses the same compiler
10962# for both compiling C and C++ we need to have the C++ compiler decide
10963# the declaration of exit, since it's the most demanding environment.
10964cat >conftest.$ac_ext <<_ACEOF
10965#ifndef __cplusplus
10966 choke me
10967#endif
10968_ACEOF
10969rm -f conftest.$ac_objext
10970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 10971 (eval $ac_compile) 2>conftest.er1
a848cd7e 10972 ac_status=$?
ac1cb8d3
VS
10973 grep -v '^ *+' conftest.er1 >conftest.err
10974 rm -f conftest.er1
10975 cat conftest.err >&5
a848cd7e
SC
10976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10977 (exit $ac_status); } &&
ea7db9ff
DE
10978 { ac_try='test -z "$ac_c_werror_flag"
10979 || test ! -s conftest.err'
ac1cb8d3
VS
10980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10981 (eval $ac_try) 2>&5
10982 ac_status=$?
10983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984 (exit $ac_status); }; } &&
10985 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10987 (eval $ac_try) 2>&5
10988 ac_status=$?
10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); }; }; then
10991 for ac_declaration in \
ac1cb8d3 10992 '' \
a848cd7e
SC
10993 'extern "C" void std::exit (int) throw (); using std::exit;' \
10994 'extern "C" void std::exit (int); using std::exit;' \
10995 'extern "C" void exit (int) throw ();' \
10996 'extern "C" void exit (int);' \
10997 'void exit (int);'
10998do
10999 cat >conftest.$ac_ext <<_ACEOF
11000/* confdefs.h. */
11001_ACEOF
11002cat confdefs.h >>conftest.$ac_ext
11003cat >>conftest.$ac_ext <<_ACEOF
11004/* end confdefs.h. */
de59c161 11005$ac_declaration
ac1cb8d3 11006#include <stdlib.h>
a848cd7e
SC
11007int
11008main ()
11009{
11010exit (42);
11011 ;
11012 return 0;
11013}
11014_ACEOF
11015rm -f conftest.$ac_objext
11016if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11017 (eval $ac_compile) 2>conftest.er1
a848cd7e 11018 ac_status=$?
ac1cb8d3
VS
11019 grep -v '^ *+' conftest.er1 >conftest.err
11020 rm -f conftest.er1
11021 cat conftest.err >&5
a848cd7e
SC
11022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023 (exit $ac_status); } &&
ea7db9ff
DE
11024 { ac_try='test -z "$ac_c_werror_flag"
11025 || test ! -s conftest.err'
ac1cb8d3
VS
11026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11027 (eval $ac_try) 2>&5
11028 ac_status=$?
11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); }; } &&
11031 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11033 (eval $ac_try) 2>&5
11034 ac_status=$?
11035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036 (exit $ac_status); }; }; then
11037 :
11038else
11039 echo "$as_me: failed program was:" >&5
11040sed 's/^/| /' conftest.$ac_ext >&5
11041
11042continue
11043fi
ac1cb8d3 11044rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11045 cat >conftest.$ac_ext <<_ACEOF
11046/* confdefs.h. */
11047_ACEOF
11048cat confdefs.h >>conftest.$ac_ext
11049cat >>conftest.$ac_ext <<_ACEOF
11050/* end confdefs.h. */
11051$ac_declaration
11052int
11053main ()
11054{
11055exit (42);
11056 ;
11057 return 0;
11058}
11059_ACEOF
11060rm -f conftest.$ac_objext
11061if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11062 (eval $ac_compile) 2>conftest.er1
a848cd7e 11063 ac_status=$?
ac1cb8d3
VS
11064 grep -v '^ *+' conftest.er1 >conftest.err
11065 rm -f conftest.er1
11066 cat conftest.err >&5
a848cd7e
SC
11067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068 (exit $ac_status); } &&
ea7db9ff
DE
11069 { ac_try='test -z "$ac_c_werror_flag"
11070 || test ! -s conftest.err'
ac1cb8d3
VS
11071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11072 (eval $ac_try) 2>&5
11073 ac_status=$?
11074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075 (exit $ac_status); }; } &&
11076 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11078 (eval $ac_try) 2>&5
11079 ac_status=$?
11080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); }; }; then
11082 break
11083else
11084 echo "$as_me: failed program was:" >&5
11085sed 's/^/| /' conftest.$ac_ext >&5
11086
11087fi
ac1cb8d3 11088rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11089done
11090rm -f conftest*
11091if test -n "$ac_declaration"; then
11092 echo '#ifdef __cplusplus' >>confdefs.h
11093 echo $ac_declaration >>confdefs.h
11094 echo '#endif' >>confdefs.h
11095fi
11096
11097else
11098 echo "$as_me: failed program was:" >&5
11099sed 's/^/| /' conftest.$ac_ext >&5
11100
11101fi
ac1cb8d3 11102rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11103ac_ext=c
11104ac_cpp='$CPP $CPPFLAGS'
11105ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11106ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11107ac_compiler_gnu=$ac_cv_c_compiler_gnu
11108
11109
11110
11111ac_ext=c
11112ac_cpp='$CPP $CPPFLAGS'
11113ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11114ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11115ac_compiler_gnu=$ac_cv_c_compiler_gnu
11116echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11117echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11118# On Suns, sometimes $CPP names a directory.
11119if test -n "$CPP" && test -d "$CPP"; then
11120 CPP=
11121fi
11122if test -z "$CPP"; then
11123 if test "${ac_cv_prog_CPP+set}" = set; then
11124 echo $ECHO_N "(cached) $ECHO_C" >&6
11125else
11126 # Double quotes because CPP needs to be expanded
11127 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11128 do
11129 ac_preproc_ok=false
11130for ac_c_preproc_warn_flag in '' yes
11131do
11132 # Use a header file that comes with gcc, so configuring glibc
11133 # with a fresh cross-compiler works.
11134 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11135 # <limits.h> exists even on freestanding compilers.
11136 # On the NeXT, cc -E runs the code through the compiler's parser,
11137 # not just through cpp. "Syntax error" is here to catch this case.
11138 cat >conftest.$ac_ext <<_ACEOF
11139/* confdefs.h. */
11140_ACEOF
11141cat confdefs.h >>conftest.$ac_ext
11142cat >>conftest.$ac_ext <<_ACEOF
11143/* end confdefs.h. */
11144#ifdef __STDC__
11145# include <limits.h>
11146#else
11147# include <assert.h>
11148#endif
ac1cb8d3 11149 Syntax error
a848cd7e
SC
11150_ACEOF
11151if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11152 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11153 ac_status=$?
11154 grep -v '^ *+' conftest.er1 >conftest.err
11155 rm -f conftest.er1
11156 cat conftest.err >&5
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); } >/dev/null; then
11159 if test -s conftest.err; then
11160 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11161 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11162 else
11163 ac_cpp_err=
11164 fi
11165else
11166 ac_cpp_err=yes
11167fi
11168if test -z "$ac_cpp_err"; then
11169 :
11170else
11171 echo "$as_me: failed program was:" >&5
11172sed 's/^/| /' conftest.$ac_ext >&5
11173
11174 # Broken: fails on valid input.
11175continue
11176fi
11177rm -f conftest.err conftest.$ac_ext
11178
11179 # OK, works on sane cases. Now check whether non-existent headers
11180 # can be detected and how.
11181 cat >conftest.$ac_ext <<_ACEOF
11182/* confdefs.h. */
11183_ACEOF
11184cat confdefs.h >>conftest.$ac_ext
11185cat >>conftest.$ac_ext <<_ACEOF
11186/* end confdefs.h. */
11187#include <ac_nonexistent.h>
11188_ACEOF
11189if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11190 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11191 ac_status=$?
11192 grep -v '^ *+' conftest.er1 >conftest.err
11193 rm -f conftest.er1
11194 cat conftest.err >&5
11195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196 (exit $ac_status); } >/dev/null; then
11197 if test -s conftest.err; then
11198 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11199 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11200 else
11201 ac_cpp_err=
11202 fi
11203else
11204 ac_cpp_err=yes
11205fi
11206if test -z "$ac_cpp_err"; then
11207 # Broken: success on invalid input.
11208continue
11209else
11210 echo "$as_me: failed program was:" >&5
11211sed 's/^/| /' conftest.$ac_ext >&5
11212
11213 # Passes both tests.
11214ac_preproc_ok=:
11215break
11216fi
11217rm -f conftest.err conftest.$ac_ext
11218
11219done
11220# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11221rm -f conftest.err conftest.$ac_ext
11222if $ac_preproc_ok; then
11223 break
11224fi
11225
11226 done
11227 ac_cv_prog_CPP=$CPP
11228
11229fi
11230 CPP=$ac_cv_prog_CPP
11231else
11232 ac_cv_prog_CPP=$CPP
11233fi
11234echo "$as_me:$LINENO: result: $CPP" >&5
11235echo "${ECHO_T}$CPP" >&6
11236ac_preproc_ok=false
11237for ac_c_preproc_warn_flag in '' yes
11238do
11239 # Use a header file that comes with gcc, so configuring glibc
11240 # with a fresh cross-compiler works.
11241 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11242 # <limits.h> exists even on freestanding compilers.
11243 # On the NeXT, cc -E runs the code through the compiler's parser,
11244 # not just through cpp. "Syntax error" is here to catch this case.
11245 cat >conftest.$ac_ext <<_ACEOF
11246/* confdefs.h. */
11247_ACEOF
11248cat confdefs.h >>conftest.$ac_ext
11249cat >>conftest.$ac_ext <<_ACEOF
11250/* end confdefs.h. */
11251#ifdef __STDC__
11252# include <limits.h>
11253#else
11254# include <assert.h>
11255#endif
ac1cb8d3 11256 Syntax error
a848cd7e
SC
11257_ACEOF
11258if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11259 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11260 ac_status=$?
11261 grep -v '^ *+' conftest.er1 >conftest.err
11262 rm -f conftest.er1
11263 cat conftest.err >&5
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); } >/dev/null; then
11266 if test -s conftest.err; then
11267 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11268 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11269 else
11270 ac_cpp_err=
11271 fi
11272else
11273 ac_cpp_err=yes
11274fi
11275if test -z "$ac_cpp_err"; then
11276 :
11277else
11278 echo "$as_me: failed program was:" >&5
11279sed 's/^/| /' conftest.$ac_ext >&5
11280
11281 # Broken: fails on valid input.
11282continue
11283fi
11284rm -f conftest.err conftest.$ac_ext
11285
11286 # OK, works on sane cases. Now check whether non-existent headers
11287 # can be detected and how.
11288 cat >conftest.$ac_ext <<_ACEOF
11289/* confdefs.h. */
11290_ACEOF
11291cat confdefs.h >>conftest.$ac_ext
11292cat >>conftest.$ac_ext <<_ACEOF
11293/* end confdefs.h. */
11294#include <ac_nonexistent.h>
11295_ACEOF
11296if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11297 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11298 ac_status=$?
11299 grep -v '^ *+' conftest.er1 >conftest.err
11300 rm -f conftest.er1
11301 cat conftest.err >&5
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); } >/dev/null; then
11304 if test -s conftest.err; then
11305 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11306 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11307 else
11308 ac_cpp_err=
11309 fi
11310else
11311 ac_cpp_err=yes
11312fi
11313if test -z "$ac_cpp_err"; then
11314 # Broken: success on invalid input.
11315continue
11316else
11317 echo "$as_me: failed program was:" >&5
11318sed 's/^/| /' conftest.$ac_ext >&5
11319
11320 # Passes both tests.
11321ac_preproc_ok=:
11322break
11323fi
11324rm -f conftest.err conftest.$ac_ext
11325
11326done
11327# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11328rm -f conftest.err conftest.$ac_ext
11329if $ac_preproc_ok; then
11330 :
11331else
11332 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11333See \`config.log' for more details." >&5
11334echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11335See \`config.log' for more details." >&2;}
11336 { (exit 1); exit 1; }; }
11337fi
11338
11339ac_ext=c
11340ac_cpp='$CPP $CPPFLAGS'
11341ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11342ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11343ac_compiler_gnu=$ac_cv_c_compiler_gnu
11344
11345
11346echo "$as_me:$LINENO: checking for egrep" >&5
11347echo $ECHO_N "checking for egrep... $ECHO_C" >&6
11348if test "${ac_cv_prog_egrep+set}" = set; then
11349 echo $ECHO_N "(cached) $ECHO_C" >&6
11350else
11351 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
11352 then ac_cv_prog_egrep='grep -E'
11353 else ac_cv_prog_egrep='egrep'
11354 fi
11355fi
11356echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
11357echo "${ECHO_T}$ac_cv_prog_egrep" >&6
11358 EGREP=$ac_cv_prog_egrep
11359
11360
11361if test $ac_cv_c_compiler_gnu = yes; then
11362 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11363echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11364if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11365 echo $ECHO_N "(cached) $ECHO_C" >&6
11366else
11367 ac_pattern="Autoconf.*'x'"
11368 cat >conftest.$ac_ext <<_ACEOF
11369/* confdefs.h. */
11370_ACEOF
11371cat confdefs.h >>conftest.$ac_ext
11372cat >>conftest.$ac_ext <<_ACEOF
11373/* end confdefs.h. */
11374#include <sgtty.h>
11375Autoconf TIOCGETP
11376_ACEOF
11377if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11378 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11379 ac_cv_prog_gcc_traditional=yes
11380else
11381 ac_cv_prog_gcc_traditional=no
11382fi
11383rm -f conftest*
11384
11385
11386 if test $ac_cv_prog_gcc_traditional = no; then
11387 cat >conftest.$ac_ext <<_ACEOF
11388/* confdefs.h. */
11389_ACEOF
11390cat confdefs.h >>conftest.$ac_ext
11391cat >>conftest.$ac_ext <<_ACEOF
11392/* end confdefs.h. */
11393#include <termio.h>
11394Autoconf TCGETA
11395_ACEOF
11396if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11397 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11398 ac_cv_prog_gcc_traditional=yes
11399fi
11400rm -f conftest*
11401
11402 fi
11403fi
11404echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11405echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
11406 if test $ac_cv_prog_gcc_traditional = yes; then
11407 CC="$CC -traditional"
11408 fi
11409fi
11410
11411
11412
11413
11414ac_ext=cc
11415ac_cpp='$CXXCPP $CPPFLAGS'
11416ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11417ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11418ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11419
11420
11421CXXFLAGS=${CXXFLAGS:=}
11422ac_ext=cc
11423ac_cpp='$CXXCPP $CPPFLAGS'
11424ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11425ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11426ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11427if test -n "$ac_tool_prefix"; then
11428 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11429 do
11430 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11431set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11432echo "$as_me:$LINENO: checking for $ac_word" >&5
11433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11434if test "${ac_cv_prog_CXX+set}" = set; then
11435 echo $ECHO_N "(cached) $ECHO_C" >&6
11436else
11437 if test -n "$CXX"; then
11438 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11439else
11440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11441for as_dir in $PATH
11442do
11443 IFS=$as_save_IFS
11444 test -z "$as_dir" && as_dir=.
11445 for ac_exec_ext in '' $ac_executable_extensions; do
11446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11447 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11449 break 2
11450 fi
11451done
11452done
11453
11454fi
11455fi
11456CXX=$ac_cv_prog_CXX
11457if test -n "$CXX"; then
11458 echo "$as_me:$LINENO: result: $CXX" >&5
11459echo "${ECHO_T}$CXX" >&6
11460else
11461 echo "$as_me:$LINENO: result: no" >&5
11462echo "${ECHO_T}no" >&6
11463fi
11464
11465 test -n "$CXX" && break
11466 done
11467fi
11468if test -z "$CXX"; then
11469 ac_ct_CXX=$CXX
11470 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11471do
11472 # Extract the first word of "$ac_prog", so it can be a program name with args.
11473set dummy $ac_prog; ac_word=$2
11474echo "$as_me:$LINENO: checking for $ac_word" >&5
11475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11476if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11477 echo $ECHO_N "(cached) $ECHO_C" >&6
11478else
11479 if test -n "$ac_ct_CXX"; then
11480 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11481else
11482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11483for as_dir in $PATH
11484do
11485 IFS=$as_save_IFS
11486 test -z "$as_dir" && as_dir=.
11487 for ac_exec_ext in '' $ac_executable_extensions; do
11488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11489 ac_cv_prog_ac_ct_CXX="$ac_prog"
11490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11491 break 2
11492 fi
11493done
11494done
11495
11496fi
11497fi
11498ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11499if test -n "$ac_ct_CXX"; then
11500 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11501echo "${ECHO_T}$ac_ct_CXX" >&6
11502else
11503 echo "$as_me:$LINENO: result: no" >&5
11504echo "${ECHO_T}no" >&6
11505fi
11506
11507 test -n "$ac_ct_CXX" && break
11508done
11509test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11510
11511 CXX=$ac_ct_CXX
11512fi
11513
11514
11515# Provide some information about the compiler.
11516echo "$as_me:$LINENO:" \
11517 "checking for C++ compiler version" >&5
11518ac_compiler=`set X $ac_compile; echo $2`
11519{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11520 (eval $ac_compiler --version </dev/null >&5) 2>&5
11521 ac_status=$?
11522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523 (exit $ac_status); }
11524{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11525 (eval $ac_compiler -v </dev/null >&5) 2>&5
11526 ac_status=$?
11527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528 (exit $ac_status); }
11529{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11530 (eval $ac_compiler -V </dev/null >&5) 2>&5
11531 ac_status=$?
11532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533 (exit $ac_status); }
11534
11535echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11536echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11537if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11538 echo $ECHO_N "(cached) $ECHO_C" >&6
11539else
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
11547int
11548main ()
11549{
11550#ifndef __GNUC__
11551 choke me
11552#endif
11553
11554 ;
11555 return 0;
11556}
11557_ACEOF
11558rm -f conftest.$ac_objext
11559if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11560 (eval $ac_compile) 2>conftest.er1
a848cd7e 11561 ac_status=$?
ac1cb8d3
VS
11562 grep -v '^ *+' conftest.er1 >conftest.err
11563 rm -f conftest.er1
11564 cat conftest.err >&5
a848cd7e
SC
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); } &&
ea7db9ff
DE
11567 { ac_try='test -z "$ac_cxx_werror_flag"
11568 || test ! -s conftest.err'
ac1cb8d3
VS
11569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11570 (eval $ac_try) 2>&5
11571 ac_status=$?
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); }; } &&
11574 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11576 (eval $ac_try) 2>&5
11577 ac_status=$?
11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579 (exit $ac_status); }; }; then
11580 ac_compiler_gnu=yes
11581else
11582 echo "$as_me: failed program was:" >&5
11583sed 's/^/| /' conftest.$ac_ext >&5
11584
11585ac_compiler_gnu=no
11586fi
ac1cb8d3 11587rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11588ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11589
11590fi
11591echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11592echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11593GXX=`test $ac_compiler_gnu = yes && echo yes`
11594ac_test_CXXFLAGS=${CXXFLAGS+set}
11595ac_save_CXXFLAGS=$CXXFLAGS
11596CXXFLAGS="-g"
11597echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11598echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11599if test "${ac_cv_prog_cxx_g+set}" = set; then
11600 echo $ECHO_N "(cached) $ECHO_C" >&6
11601else
11602 cat >conftest.$ac_ext <<_ACEOF
11603/* confdefs.h. */
11604_ACEOF
11605cat confdefs.h >>conftest.$ac_ext
11606cat >>conftest.$ac_ext <<_ACEOF
11607/* end confdefs.h. */
11608
11609int
11610main ()
11611{
11612
11613 ;
11614 return 0;
11615}
11616_ACEOF
11617rm -f conftest.$ac_objext
11618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11619 (eval $ac_compile) 2>conftest.er1
a848cd7e 11620 ac_status=$?
ac1cb8d3
VS
11621 grep -v '^ *+' conftest.er1 >conftest.err
11622 rm -f conftest.er1
11623 cat conftest.err >&5
a848cd7e
SC
11624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625 (exit $ac_status); } &&
ea7db9ff
DE
11626 { ac_try='test -z "$ac_cxx_werror_flag"
11627 || test ! -s conftest.err'
ac1cb8d3
VS
11628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11629 (eval $ac_try) 2>&5
11630 ac_status=$?
11631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632 (exit $ac_status); }; } &&
11633 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11635 (eval $ac_try) 2>&5
11636 ac_status=$?
11637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638 (exit $ac_status); }; }; then
11639 ac_cv_prog_cxx_g=yes
11640else
11641 echo "$as_me: failed program was:" >&5
11642sed 's/^/| /' conftest.$ac_ext >&5
11643
11644ac_cv_prog_cxx_g=no
11645fi
ac1cb8d3 11646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11647fi
11648echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11649echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
11650if test "$ac_test_CXXFLAGS" = set; then
11651 CXXFLAGS=$ac_save_CXXFLAGS
11652elif test $ac_cv_prog_cxx_g = yes; then
11653 if test "$GXX" = yes; then
11654 CXXFLAGS="-g -O2"
11655 else
11656 CXXFLAGS="-g"
11657 fi
11658else
11659 if test "$GXX" = yes; then
11660 CXXFLAGS="-O2"
11661 else
11662 CXXFLAGS=
11663 fi
11664fi
11665for ac_declaration in \
ac1cb8d3 11666 '' \
a848cd7e
SC
11667 'extern "C" void std::exit (int) throw (); using std::exit;' \
11668 'extern "C" void std::exit (int); using std::exit;' \
11669 'extern "C" void exit (int) throw ();' \
11670 'extern "C" void exit (int);' \
11671 'void exit (int);'
11672do
11673 cat >conftest.$ac_ext <<_ACEOF
11674/* confdefs.h. */
11675_ACEOF
11676cat confdefs.h >>conftest.$ac_ext
11677cat >>conftest.$ac_ext <<_ACEOF
11678/* end confdefs.h. */
de59c161 11679$ac_declaration
ac1cb8d3 11680#include <stdlib.h>
a848cd7e
SC
11681int
11682main ()
11683{
11684exit (42);
11685 ;
11686 return 0;
11687}
11688_ACEOF
11689rm -f conftest.$ac_objext
11690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11691 (eval $ac_compile) 2>conftest.er1
a848cd7e 11692 ac_status=$?
ac1cb8d3
VS
11693 grep -v '^ *+' conftest.er1 >conftest.err
11694 rm -f conftest.er1
11695 cat conftest.err >&5
a848cd7e
SC
11696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697 (exit $ac_status); } &&
ea7db9ff
DE
11698 { ac_try='test -z "$ac_cxx_werror_flag"
11699 || test ! -s conftest.err'
ac1cb8d3
VS
11700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11701 (eval $ac_try) 2>&5
11702 ac_status=$?
11703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704 (exit $ac_status); }; } &&
11705 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11707 (eval $ac_try) 2>&5
11708 ac_status=$?
11709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710 (exit $ac_status); }; }; then
11711 :
11712else
11713 echo "$as_me: failed program was:" >&5
11714sed 's/^/| /' conftest.$ac_ext >&5
11715
11716continue
11717fi
ac1cb8d3 11718rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11719 cat >conftest.$ac_ext <<_ACEOF
11720/* confdefs.h. */
11721_ACEOF
11722cat confdefs.h >>conftest.$ac_ext
11723cat >>conftest.$ac_ext <<_ACEOF
11724/* end confdefs.h. */
11725$ac_declaration
11726int
11727main ()
11728{
11729exit (42);
11730 ;
11731 return 0;
11732}
11733_ACEOF
11734rm -f conftest.$ac_objext
11735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11736 (eval $ac_compile) 2>conftest.er1
a848cd7e 11737 ac_status=$?
ac1cb8d3
VS
11738 grep -v '^ *+' conftest.er1 >conftest.err
11739 rm -f conftest.er1
11740 cat conftest.err >&5
a848cd7e
SC
11741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742 (exit $ac_status); } &&
ea7db9ff
DE
11743 { ac_try='test -z "$ac_cxx_werror_flag"
11744 || test ! -s conftest.err'
ac1cb8d3
VS
11745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11746 (eval $ac_try) 2>&5
11747 ac_status=$?
11748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749 (exit $ac_status); }; } &&
11750 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11752 (eval $ac_try) 2>&5
11753 ac_status=$?
11754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755 (exit $ac_status); }; }; then
11756 break
11757else
11758 echo "$as_me: failed program was:" >&5
11759sed 's/^/| /' conftest.$ac_ext >&5
11760
11761fi
ac1cb8d3 11762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11763done
11764rm -f conftest*
11765if test -n "$ac_declaration"; then
11766 echo '#ifdef __cplusplus' >>confdefs.h
11767 echo $ac_declaration >>confdefs.h
11768 echo '#endif' >>confdefs.h
11769fi
11770
11771ac_ext=cc
11772ac_cpp='$CXXCPP $CPPFLAGS'
11773ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11774ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11775ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11776
11777
11778ac_ext=c
11779ac_cpp='$CPP $CPPFLAGS'
11780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11782ac_compiler_gnu=$ac_cv_c_compiler_gnu
11783
11784
a848cd7e
SC
11785if test -n "$ac_tool_prefix"; then
11786 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11787set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11788echo "$as_me:$LINENO: checking for $ac_word" >&5
11789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11790if test "${ac_cv_prog_RANLIB+set}" = set; then
11791 echo $ECHO_N "(cached) $ECHO_C" >&6
11792else
11793 if test -n "$RANLIB"; then
11794 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11795else
11796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11797for as_dir in $PATH
11798do
11799 IFS=$as_save_IFS
11800 test -z "$as_dir" && as_dir=.
11801 for ac_exec_ext in '' $ac_executable_extensions; do
11802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11803 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11805 break 2
11806 fi
11807done
11808done
11809
11810fi
11811fi
11812RANLIB=$ac_cv_prog_RANLIB
11813if test -n "$RANLIB"; then
11814 echo "$as_me:$LINENO: result: $RANLIB" >&5
11815echo "${ECHO_T}$RANLIB" >&6
11816else
11817 echo "$as_me:$LINENO: result: no" >&5
11818echo "${ECHO_T}no" >&6
11819fi
11820
11821fi
11822if test -z "$ac_cv_prog_RANLIB"; then
11823 ac_ct_RANLIB=$RANLIB
11824 # Extract the first word of "ranlib", so it can be a program name with args.
11825set dummy ranlib; ac_word=$2
11826echo "$as_me:$LINENO: checking for $ac_word" >&5
11827echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11828if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11829 echo $ECHO_N "(cached) $ECHO_C" >&6
11830else
11831 if test -n "$ac_ct_RANLIB"; then
11832 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11833else
11834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11835for as_dir in $PATH
11836do
11837 IFS=$as_save_IFS
11838 test -z "$as_dir" && as_dir=.
11839 for ac_exec_ext in '' $ac_executable_extensions; do
11840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11841 ac_cv_prog_ac_ct_RANLIB="ranlib"
11842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11843 break 2
11844 fi
11845done
11846done
11847
11848 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11849fi
11850fi
11851ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11852if test -n "$ac_ct_RANLIB"; then
11853 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11854echo "${ECHO_T}$ac_ct_RANLIB" >&6
11855else
11856 echo "$as_me:$LINENO: result: no" >&5
11857echo "${ECHO_T}no" >&6
11858fi
11859
11860 RANLIB=$ac_ct_RANLIB
11861else
11862 RANLIB="$ac_cv_prog_RANLIB"
11863fi
11864
11865
11866# Extract the first word of "ar", so it can be a program name with args.
11867set dummy ar; ac_word=$2
11868echo "$as_me:$LINENO: checking for $ac_word" >&5
11869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11870if test "${ac_cv_prog_AR+set}" = set; then
11871 echo $ECHO_N "(cached) $ECHO_C" >&6
11872else
11873 if test -n "$AR"; then
11874 ac_cv_prog_AR="$AR" # Let the user override the test.
11875else
11876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11877for as_dir in $PATH
11878do
11879 IFS=$as_save_IFS
11880 test -z "$as_dir" && as_dir=.
11881 for ac_exec_ext in '' $ac_executable_extensions; do
11882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11883 ac_cv_prog_AR="ar"
11884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11885 break 2
11886 fi
11887done
11888done
11889
11890fi
11891fi
11892AR=$ac_cv_prog_AR
11893if test -n "$AR"; then
11894 echo "$as_me:$LINENO: result: $AR" >&5
11895echo "${ECHO_T}$AR" >&6
11896else
11897 echo "$as_me:$LINENO: result: no" >&5
11898echo "${ECHO_T}no" >&6
11899fi
11900
11901if test "x$AR" = "x" ; then
77ffb593
JS
11902 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
11903echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
11904 { (exit 1); exit 1; }; }
11905fi
11906
11907# Find a good install program. We prefer a C program (faster),
11908# so one script is as good as another. But avoid the broken or
11909# incompatible versions:
11910# SysV /etc/install, /usr/sbin/install
11911# SunOS /usr/etc/install
11912# IRIX /sbin/install
11913# AIX /bin/install
11914# AmigaOS /C/install, which installs bootblocks on floppy discs
11915# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11916# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11917# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 11918# OS/2's system install, which has a completely different semantic
a848cd7e
SC
11919# ./install, which can be erroneously created by make from ./install.sh.
11920echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11921echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11922if test -z "$INSTALL"; then
11923if test "${ac_cv_path_install+set}" = set; then
11924 echo $ECHO_N "(cached) $ECHO_C" >&6
11925else
11926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11927for as_dir in $PATH
11928do
11929 IFS=$as_save_IFS
11930 test -z "$as_dir" && as_dir=.
11931 # Account for people who put trailing slashes in PATH elements.
11932case $as_dir/ in
11933 ./ | .// | /cC/* | \
11934 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 11935 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
11936 /usr/ucb/* ) ;;
11937 *)
11938 # OSF1 and SCO ODT 3.0 have their own names for install.
11939 # Don't use installbsd from OSF since it installs stuff as root
11940 # by default.
11941 for ac_prog in ginstall scoinst install; do
11942 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
11943 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11944 if test $ac_prog = install &&
11945 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11946 # AIX install. It has an incompatible calling convention.
11947 :
11948 elif test $ac_prog = install &&
11949 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11950 # program-specific install script used by HP pwplus--don't use.
11951 :
11952 else
11953 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11954 break 3
11955 fi
11956 fi
a848cd7e
SC
11957 done
11958 done
11959 ;;
11960esac
11961done
11962
11963
11964fi
11965 if test "${ac_cv_path_install+set}" = set; then
11966 INSTALL=$ac_cv_path_install
11967 else
11968 # As a last resort, use the slow shell script. We don't cache a
11969 # path for INSTALL within a source directory, because that will
11970 # break other packages using the cache if that directory is
11971 # removed, or if the path is relative.
11972 INSTALL=$ac_install_sh
11973 fi
11974fi
11975echo "$as_me:$LINENO: result: $INSTALL" >&5
11976echo "${ECHO_T}$INSTALL" >&6
11977
11978# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11979# It thinks the first close brace ends the variable substitution.
11980test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11981
11982test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11983
11984test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11985
11986
11987case ${INSTALL} in
11988 /* ) # Absolute
11989 ;;
11990 ?:* ) # Drive letter, considered as absolute.
11991 ;;
11992 *)
11993 INSTALL=`pwd`/${INSTALL} ;;
11994esac
11995
11996case ${host} in
11997 *-hp-hpux* )
11998 INSTALL_DIR="mkdir"
11999 ;;
12000
12001 *) INSTALL_DIR="$INSTALL -d"
12002 ;;
12003esac
12004
12005
12006case "${host}" in
12007
12008 powerpc-*-darwin* )
12009 INSTALL_PROGRAM="cp -fp"
12010 INSTALL_DATA="cp -fp"
12011 ;;
12012 *)
12013 ;;
12014esac
12015
12016# Extract the first word of "strip", so it can be a program name with args.
12017set dummy strip; ac_word=$2
12018echo "$as_me:$LINENO: checking for $ac_word" >&5
12019echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12020if test "${ac_cv_prog_STRIP+set}" = set; then
12021 echo $ECHO_N "(cached) $ECHO_C" >&6
12022else
12023 if test -n "$STRIP"; then
12024 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12025else
12026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12027for as_dir in $PATH
12028do
12029 IFS=$as_save_IFS
12030 test -z "$as_dir" && as_dir=.
12031 for ac_exec_ext in '' $ac_executable_extensions; do
12032 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12033 ac_cv_prog_STRIP="strip"
12034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12035 break 2
12036 fi
12037done
12038done
12039
12040 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
12041fi
12042fi
12043STRIP=$ac_cv_prog_STRIP
12044if test -n "$STRIP"; then
12045 echo "$as_me:$LINENO: result: $STRIP" >&5
12046echo "${ECHO_T}$STRIP" >&6
12047else
12048 echo "$as_me:$LINENO: result: no" >&5
12049echo "${ECHO_T}no" >&6
12050fi
12051
12052
12053echo "$as_me:$LINENO: checking if make is GNU make" >&5
12054echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
12055if test "${wx_cv_prog_makeisgnu+set}" = set; then
12056 echo $ECHO_N "(cached) $ECHO_C" >&6
12057else
12058
12059 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
12060 egrep -s GNU > /dev/null); then
12061 wx_cv_prog_makeisgnu="yes"
12062 else
12063 wx_cv_prog_makeisgnu="no"
12064 fi
12065
12066fi
12067echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
12068echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
12069
12070if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
12071 IF_GNU_MAKE=""
12072else
12073 IF_GNU_MAKE="#"
12074fi
12075
12076
12077
12078if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
12079echo "$as_me:$LINENO: checking if make supports VPATH" >&5
12080echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
12081if test "${wx_cv_prog_makevpath+set}" = set; then
12082 echo $ECHO_N "(cached) $ECHO_C" >&6
12083else
12084
12085cat - << EOF > confMake
12086check : file
12087 cp \$? \$@
12088 cp \$? final_file
12089EOF
12090
12091if test ! -d sub ; then
12092 mkdir sub
12093fi
12094echo dummy > sub/file
12095${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
12096RESULT=$?
12097rm -f sub/file check final_file confMake
12098rmdir sub
12099if test "$RESULT" = 0; then
12100 wx_cv_prog_makevpath="yes"
12101else
12102 wx_cv_prog_makevpath="no"
12103fi
12104
12105fi
12106echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
12107echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
12108
12109if test "x$wx_cv_prog_makevpath" != "xyes"; then
12110{ { echo "$as_me:$LINENO: error:
12111You need a make-utility that is able to use the variable
12112VPATH correctly.
12113If your version of make does not support VPATH correctly,
12114please install GNU-make (possibly as gmake), and start
12115configure with the following command:
12116export MAKE=gmake; ./configure for sh-type shells
12117setenv MAKE gmake; ./configure for csh-type shells
12118Also please do remember to use gmake in this case every time
12119you are trying to compile.
12120" >&5
12121echo "$as_me: error:
12122You need a make-utility that is able to use the variable
12123VPATH correctly.
12124If your version of make does not support VPATH correctly,
12125please install GNU-make (possibly as gmake), and start
12126configure with the following command:
12127export MAKE=gmake; ./configure for sh-type shells
12128setenv MAKE gmake; ./configure for csh-type shells
12129Also please do remember to use gmake in this case every time
12130you are trying to compile.
12131" >&2;}
12132 { (exit 1); exit 1; }; }
12133fi fi
12134echo "$as_me:$LINENO: checking whether ln -s works" >&5
12135echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
12136LN_S=$as_ln_s
12137if test "$LN_S" = "ln -s"; then
12138 echo "$as_me:$LINENO: result: yes" >&5
12139echo "${ECHO_T}yes" >&6
12140else
12141 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
12142echo "${ECHO_T}no, using $LN_S" >&6
12143fi
12144
12145
12146
12147case "${host}" in
12148 *-pc-os2_emx | *-pc-os2-emx )
12149 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
12150 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
12151echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
12152if test "${ac_cv_lib_cExt_drand48+set}" = set; then
12153 echo $ECHO_N "(cached) $ECHO_C" >&6
12154else
12155 ac_check_lib_save_LIBS=$LIBS
12156LIBS="-lcExt $LIBS"
12157cat >conftest.$ac_ext <<_ACEOF
12158/* confdefs.h. */
12159_ACEOF
12160cat confdefs.h >>conftest.$ac_ext
12161cat >>conftest.$ac_ext <<_ACEOF
12162/* end confdefs.h. */
12163
12164/* Override any gcc2 internal prototype to avoid an error. */
12165#ifdef __cplusplus
12166extern "C"
12167#endif
12168/* We use char because int might match the return type of a gcc2
12169 builtin and then its argument prototype would still apply. */
12170char drand48 ();
12171int
12172main ()
12173{
12174drand48 ();
12175 ;
12176 return 0;
12177}
12178_ACEOF
12179rm -f conftest.$ac_objext conftest$ac_exeext
12180if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12181 (eval $ac_link) 2>conftest.er1
a848cd7e 12182 ac_status=$?
ac1cb8d3
VS
12183 grep -v '^ *+' conftest.er1 >conftest.err
12184 rm -f conftest.er1
12185 cat conftest.err >&5
a848cd7e
SC
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); } &&
ea7db9ff
DE
12188 { ac_try='test -z "$ac_c_werror_flag"
12189 || test ! -s conftest.err'
ac1cb8d3
VS
12190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12191 (eval $ac_try) 2>&5
12192 ac_status=$?
12193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194 (exit $ac_status); }; } &&
12195 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12197 (eval $ac_try) 2>&5
12198 ac_status=$?
12199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200 (exit $ac_status); }; }; then
12201 ac_cv_lib_cExt_drand48=yes
12202else
12203 echo "$as_me: failed program was:" >&5
12204sed 's/^/| /' conftest.$ac_ext >&5
12205
12206ac_cv_lib_cExt_drand48=no
12207fi
ac1cb8d3
VS
12208rm -f conftest.err conftest.$ac_objext \
12209 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12210LIBS=$ac_check_lib_save_LIBS
12211fi
12212echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
12213echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
12214if test $ac_cv_lib_cExt_drand48 = yes; then
12215 LIBS="$LIBS -lcExt"
12216fi
12217
12218 else
12219 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
12220 fi
12221 echo "$as_me:$LINENO: checking for gcc version" >&5
12222echo $ECHO_N "checking for gcc version... $ECHO_C" >&6
12223if test "${wx_cv_gccversion+set}" = set; then
12224 echo $ECHO_N "(cached) $ECHO_C" >&6
12225else
12226
12227 cat >conftest.$ac_ext <<_ACEOF
12228/* confdefs.h. */
12229_ACEOF
12230cat confdefs.h >>conftest.$ac_ext
12231cat >>conftest.$ac_ext <<_ACEOF
12232/* end confdefs.h. */
12233
12234int
12235main ()
12236{
12237
12238 #if (__GNUC__ < 3)
12239 #error old gcc
12240 #endif
12241
12242 ;
12243 return 0;
12244}
12245_ACEOF
12246rm -f conftest.$ac_objext
12247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12248 (eval $ac_compile) 2>conftest.er1
a848cd7e 12249 ac_status=$?
ac1cb8d3
VS
12250 grep -v '^ *+' conftest.er1 >conftest.err
12251 rm -f conftest.er1
12252 cat conftest.err >&5
a848cd7e
SC
12253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254 (exit $ac_status); } &&
ea7db9ff
DE
12255 { ac_try='test -z "$ac_c_werror_flag"
12256 || test ! -s conftest.err'
ac1cb8d3
VS
12257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12258 (eval $ac_try) 2>&5
12259 ac_status=$?
12260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12261 (exit $ac_status); }; } &&
12262 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12264 (eval $ac_try) 2>&5
12265 ac_status=$?
12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267 (exit $ac_status); }; }; then
12268
12269 cat >conftest.$ac_ext <<_ACEOF
12270/* confdefs.h. */
12271_ACEOF
12272cat confdefs.h >>conftest.$ac_ext
12273cat >>conftest.$ac_ext <<_ACEOF
12274/* end confdefs.h. */
12275
12276int
12277main ()
12278{
12279
12280 #if (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
12281 #error intermediate gcc
12282 #endif
12283
12284 ;
12285 return 0;
12286}
12287_ACEOF
12288rm -f conftest.$ac_objext
12289if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12290 (eval $ac_compile) 2>conftest.er1
a848cd7e 12291 ac_status=$?
ac1cb8d3
VS
12292 grep -v '^ *+' conftest.er1 >conftest.err
12293 rm -f conftest.er1
12294 cat conftest.err >&5
a848cd7e
SC
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); } &&
ea7db9ff
DE
12297 { ac_try='test -z "$ac_c_werror_flag"
12298 || test ! -s conftest.err'
ac1cb8d3
VS
12299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12300 (eval $ac_try) 2>&5
12301 ac_status=$?
12302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303 (exit $ac_status); }; } &&
12304 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12306 (eval $ac_try) 2>&5
12307 ac_status=$?
12308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309 (exit $ac_status); }; }; then
12310
12311 wx_cv_gccversion=Innotek
12312
12313else
12314 echo "$as_me: failed program was:" >&5
12315sed 's/^/| /' conftest.$ac_ext >&5
12316
12317
12318 wx_cv_gccversion=3
12319
12320
12321fi
ac1cb8d3 12322rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12323
12324else
12325 echo "$as_me: failed program was:" >&5
12326sed 's/^/| /' conftest.$ac_ext >&5
12327
12328
12329 wx_cv_gccversion=2
12330
12331
12332fi
ac1cb8d3 12333rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12334
12335fi
12336echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
12337echo "${ECHO_T}$wx_cv_gccversion" >&6
12338 if test "$wx_cv_gccversion" = "2"; then
12339 LIBS="$LIBS -lstdcpp"
12340 LDFLAGS="$LDFLAGS -Zsysv-signals"
12341 else
12342 if test "$wx_cv_gccversion" = "3"; then
12343 LIBS="$LIBS -lstdcxx"
12344 LDFLAGS="$LDFLAGS -Zsysv-signals"
12345 else
12346 LIBS="$LIBS -lstdc++"
12347 fi
12348 fi
12349 if test "$wxUSE_OMF" = "yes"; then
de59c161 12350 LDFLAGS="$LDFLAGS -Zomf -Zlinker /PMTYPE:PM -Zlinker /EXEPACK"
a848cd7e
SC
12351 fi
12352 ;;
12353 *)
12354
12355
12356
12357 ac_ext=cc
12358ac_cpp='$CXXCPP $CPPFLAGS'
12359ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12360ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12361ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12362
12363
12364
12365echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
12366echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
12367if test "${ac_cv_string_strcasecmp+set}" = set; then
12368 echo $ECHO_N "(cached) $ECHO_C" >&6
12369else
12370
12371 cat >conftest.$ac_ext <<_ACEOF
12372/* confdefs.h. */
12373_ACEOF
12374cat confdefs.h >>conftest.$ac_ext
12375cat >>conftest.$ac_ext <<_ACEOF
12376/* end confdefs.h. */
12377
12378 #include <string.h>
12379
12380int
12381main ()
12382{
12383
12384 strcasecmp("foo", "bar");
12385
12386 ;
12387 return 0;
12388}
12389_ACEOF
12390rm -f conftest.$ac_objext conftest$ac_exeext
12391if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12392 (eval $ac_link) 2>conftest.er1
a848cd7e 12393 ac_status=$?
ac1cb8d3
VS
12394 grep -v '^ *+' conftest.er1 >conftest.err
12395 rm -f conftest.er1
12396 cat conftest.err >&5
a848cd7e
SC
12397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398 (exit $ac_status); } &&
ea7db9ff
DE
12399 { ac_try='test -z "$ac_cxx_werror_flag"
12400 || test ! -s conftest.err'
ac1cb8d3
VS
12401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12402 (eval $ac_try) 2>&5
12403 ac_status=$?
12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 (exit $ac_status); }; } &&
12406 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12408 (eval $ac_try) 2>&5
12409 ac_status=$?
12410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411 (exit $ac_status); }; }; then
12412 ac_cv_string_strcasecmp=yes
12413else
12414 echo "$as_me: failed program was:" >&5
12415sed 's/^/| /' conftest.$ac_ext >&5
12416
12417ac_cv_string_strcasecmp=no
12418
12419fi
ac1cb8d3
VS
12420rm -f conftest.err conftest.$ac_objext \
12421 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12422
12423fi
12424echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
12425echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
12426
12427 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12428 cat >>confdefs.h <<\_ACEOF
12429#define HAVE_STRCASECMP_IN_STRING_H 1
12430_ACEOF
12431
12432 else
12433 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
12434echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
12435if test "${ac_cv_strings_strcasecmp+set}" = set; then
12436 echo $ECHO_N "(cached) $ECHO_C" >&6
12437else
12438
12439 cat >conftest.$ac_ext <<_ACEOF
12440/* confdefs.h. */
12441_ACEOF
12442cat confdefs.h >>conftest.$ac_ext
12443cat >>conftest.$ac_ext <<_ACEOF
12444/* end confdefs.h. */
12445
12446 #include <strings.h>
12447
12448int
12449main ()
12450{
12451
12452 strcasecmp("foo", "bar");
12453
12454 ;
12455 return 0;
12456}
12457_ACEOF
12458rm -f conftest.$ac_objext conftest$ac_exeext
12459if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12460 (eval $ac_link) 2>conftest.er1
a848cd7e 12461 ac_status=$?
ac1cb8d3
VS
12462 grep -v '^ *+' conftest.er1 >conftest.err
12463 rm -f conftest.er1
12464 cat conftest.err >&5
a848cd7e
SC
12465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466 (exit $ac_status); } &&
ea7db9ff
DE
12467 { ac_try='test -z "$ac_cxx_werror_flag"
12468 || test ! -s conftest.err'
ac1cb8d3
VS
12469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12470 (eval $ac_try) 2>&5
12471 ac_status=$?
12472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473 (exit $ac_status); }; } &&
12474 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12476 (eval $ac_try) 2>&5
12477 ac_status=$?
12478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479 (exit $ac_status); }; }; then
12480 ac_cv_strings_strcasecmp=yes
12481else
12482 echo "$as_me: failed program was:" >&5
12483sed 's/^/| /' conftest.$ac_ext >&5
12484
12485ac_cv_strings_strcasecmp=no
12486
12487fi
ac1cb8d3
VS
12488rm -f conftest.err conftest.$ac_objext \
12489 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12490
12491fi
12492echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
12493echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
12494
12495 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12496 cat >>confdefs.h <<\_ACEOF
12497#define HAVE_STRCASECMP_IN_STRINGS_H 1
12498_ACEOF
12499
12500 else
12501 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
12502echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
12503 { (exit 1); exit 1; }; }
12504 fi
12505 fi
12506
12507 ac_ext=c
12508ac_cpp='$CPP $CPPFLAGS'
12509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12511ac_compiler_gnu=$ac_cv_c_compiler_gnu
12512
12513 ;;
12514esac
12515
12516
12517echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12518echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12519if test "${ac_cv_header_stdc+set}" = set; then
12520 echo $ECHO_N "(cached) $ECHO_C" >&6
12521else
12522 cat >conftest.$ac_ext <<_ACEOF
12523/* confdefs.h. */
12524_ACEOF
12525cat confdefs.h >>conftest.$ac_ext
12526cat >>conftest.$ac_ext <<_ACEOF
12527/* end confdefs.h. */
12528#include <stdlib.h>
12529#include <stdarg.h>
12530#include <string.h>
12531#include <float.h>
12532
12533int
12534main ()
12535{
12536
12537 ;
12538 return 0;
12539}
12540_ACEOF
12541rm -f conftest.$ac_objext
12542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12543 (eval $ac_compile) 2>conftest.er1
a848cd7e 12544 ac_status=$?
ac1cb8d3
VS
12545 grep -v '^ *+' conftest.er1 >conftest.err
12546 rm -f conftest.er1
12547 cat conftest.err >&5
a848cd7e
SC
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); } &&
ea7db9ff
DE
12550 { ac_try='test -z "$ac_c_werror_flag"
12551 || test ! -s conftest.err'
ac1cb8d3
VS
12552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12553 (eval $ac_try) 2>&5
12554 ac_status=$?
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); }; } &&
12557 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12559 (eval $ac_try) 2>&5
12560 ac_status=$?
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); }; }; then
12563 ac_cv_header_stdc=yes
12564else
12565 echo "$as_me: failed program was:" >&5
12566sed 's/^/| /' conftest.$ac_ext >&5
12567
12568ac_cv_header_stdc=no
12569fi
ac1cb8d3 12570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12571
12572if test $ac_cv_header_stdc = yes; then
12573 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12574 cat >conftest.$ac_ext <<_ACEOF
12575/* confdefs.h. */
12576_ACEOF
12577cat confdefs.h >>conftest.$ac_ext
12578cat >>conftest.$ac_ext <<_ACEOF
12579/* end confdefs.h. */
12580#include <string.h>
12581
12582_ACEOF
12583if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12584 $EGREP "memchr" >/dev/null 2>&1; then
12585 :
12586else
12587 ac_cv_header_stdc=no
12588fi
12589rm -f conftest*
12590
12591fi
12592
12593if test $ac_cv_header_stdc = yes; then
12594 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12595 cat >conftest.$ac_ext <<_ACEOF
12596/* confdefs.h. */
12597_ACEOF
12598cat confdefs.h >>conftest.$ac_ext
12599cat >>conftest.$ac_ext <<_ACEOF
12600/* end confdefs.h. */
12601#include <stdlib.h>
12602
12603_ACEOF
12604if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12605 $EGREP "free" >/dev/null 2>&1; then
12606 :
12607else
12608 ac_cv_header_stdc=no
12609fi
12610rm -f conftest*
12611
12612fi
12613
12614if test $ac_cv_header_stdc = yes; then
12615 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12616 if test "$cross_compiling" = yes; then
12617 :
12618else
12619 cat >conftest.$ac_ext <<_ACEOF
12620/* confdefs.h. */
12621_ACEOF
12622cat confdefs.h >>conftest.$ac_ext
12623cat >>conftest.$ac_ext <<_ACEOF
12624/* end confdefs.h. */
12625#include <ctype.h>
12626#if ((' ' & 0x0FF) == 0x020)
12627# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12628# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12629#else
12630# define ISLOWER(c) \
ac1cb8d3
VS
12631 (('a' <= (c) && (c) <= 'i') \
12632 || ('j' <= (c) && (c) <= 'r') \
12633 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
12634# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12635#endif
12636
12637#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12638int
12639main ()
12640{
12641 int i;
12642 for (i = 0; i < 256; i++)
12643 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 12644 || toupper (i) != TOUPPER (i))
a848cd7e
SC
12645 exit(2);
12646 exit (0);
12647}
12648_ACEOF
12649rm -f conftest$ac_exeext
12650if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12651 (eval $ac_link) 2>&5
12652 ac_status=$?
12653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12656 (eval $ac_try) 2>&5
12657 ac_status=$?
12658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659 (exit $ac_status); }; }; then
12660 :
12661else
12662 echo "$as_me: program exited with status $ac_status" >&5
12663echo "$as_me: failed program was:" >&5
12664sed 's/^/| /' conftest.$ac_ext >&5
12665
12666( exit $ac_status )
12667ac_cv_header_stdc=no
12668fi
ac1cb8d3 12669rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12670fi
12671fi
12672fi
12673echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12674echo "${ECHO_T}$ac_cv_header_stdc" >&6
12675if test $ac_cv_header_stdc = yes; then
12676
12677cat >>confdefs.h <<\_ACEOF
12678#define STDC_HEADERS 1
12679_ACEOF
12680
12681fi
12682
12683# On IRIX 5.3, sys/types and inttypes.h are conflicting.
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 12694 inttypes.h stdint.h unistd.h
a848cd7e
SC
12695do
12696as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12697echo "$as_me:$LINENO: checking for $ac_header" >&5
12698echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12699if eval "test \"\${$as_ac_Header+set}\" = set"; then
12700 echo $ECHO_N "(cached) $ECHO_C" >&6
12701else
12702 cat >conftest.$ac_ext <<_ACEOF
12703/* confdefs.h. */
12704_ACEOF
12705cat confdefs.h >>conftest.$ac_ext
12706cat >>conftest.$ac_ext <<_ACEOF
12707/* end confdefs.h. */
12708$ac_includes_default
12709
12710#include <$ac_header>
12711_ACEOF
12712rm -f conftest.$ac_objext
12713if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12714 (eval $ac_compile) 2>conftest.er1
a848cd7e 12715 ac_status=$?
ac1cb8d3
VS
12716 grep -v '^ *+' conftest.er1 >conftest.err
12717 rm -f conftest.er1
12718 cat conftest.err >&5
a848cd7e
SC
12719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720 (exit $ac_status); } &&
ea7db9ff
DE
12721 { ac_try='test -z "$ac_c_werror_flag"
12722 || test ! -s conftest.err'
ac1cb8d3
VS
12723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12724 (eval $ac_try) 2>&5
12725 ac_status=$?
12726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727 (exit $ac_status); }; } &&
12728 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12730 (eval $ac_try) 2>&5
12731 ac_status=$?
12732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733 (exit $ac_status); }; }; then
12734 eval "$as_ac_Header=yes"
12735else
12736 echo "$as_me: failed program was:" >&5
12737sed 's/^/| /' conftest.$ac_ext >&5
12738
12739eval "$as_ac_Header=no"
12740fi
ac1cb8d3 12741rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12742fi
12743echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12744echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12745if test `eval echo '${'$as_ac_Header'}'` = yes; then
12746 cat >>confdefs.h <<_ACEOF
12747#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12748_ACEOF
12749
12750fi
12751
12752done
12753
12754
12755
12756for ac_header in stdlib.h
12757do
12758as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12759if eval "test \"\${$as_ac_Header+set}\" = set"; then
12760 echo "$as_me:$LINENO: checking for $ac_header" >&5
12761echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12762if eval "test \"\${$as_ac_Header+set}\" = set"; then
12763 echo $ECHO_N "(cached) $ECHO_C" >&6
12764fi
12765echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12766echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12767else
12768 # Is the header compilable?
12769echo "$as_me:$LINENO: checking $ac_header usability" >&5
12770echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12771cat >conftest.$ac_ext <<_ACEOF
12772/* confdefs.h. */
12773_ACEOF
12774cat confdefs.h >>conftest.$ac_ext
12775cat >>conftest.$ac_ext <<_ACEOF
12776/* end confdefs.h. */
12777$ac_includes_default
12778#include <$ac_header>
12779_ACEOF
12780rm -f conftest.$ac_objext
12781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12782 (eval $ac_compile) 2>conftest.er1
a848cd7e 12783 ac_status=$?
ac1cb8d3
VS
12784 grep -v '^ *+' conftest.er1 >conftest.err
12785 rm -f conftest.er1
12786 cat conftest.err >&5
a848cd7e
SC
12787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788 (exit $ac_status); } &&
ea7db9ff
DE
12789 { ac_try='test -z "$ac_c_werror_flag"
12790 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
12796 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12798 (eval $ac_try) 2>&5
12799 ac_status=$?
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); }; }; then
12802 ac_header_compiler=yes
12803else
12804 echo "$as_me: failed program was:" >&5
12805sed 's/^/| /' conftest.$ac_ext >&5
12806
12807ac_header_compiler=no
12808fi
ac1cb8d3 12809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12810echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12811echo "${ECHO_T}$ac_header_compiler" >&6
12812
12813# Is the header present?
12814echo "$as_me:$LINENO: checking $ac_header presence" >&5
12815echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12816cat >conftest.$ac_ext <<_ACEOF
12817/* confdefs.h. */
12818_ACEOF
12819cat confdefs.h >>conftest.$ac_ext
12820cat >>conftest.$ac_ext <<_ACEOF
12821/* end confdefs.h. */
12822#include <$ac_header>
12823_ACEOF
12824if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12825 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12826 ac_status=$?
12827 grep -v '^ *+' conftest.er1 >conftest.err
12828 rm -f conftest.er1
12829 cat conftest.err >&5
12830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12831 (exit $ac_status); } >/dev/null; then
12832 if test -s conftest.err; then
12833 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12834 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12835 else
12836 ac_cpp_err=
12837 fi
12838else
12839 ac_cpp_err=yes
12840fi
12841if test -z "$ac_cpp_err"; then
12842 ac_header_preproc=yes
12843else
12844 echo "$as_me: failed program was:" >&5
12845sed 's/^/| /' conftest.$ac_ext >&5
12846
12847 ac_header_preproc=no
12848fi
12849rm -f conftest.err conftest.$ac_ext
12850echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12851echo "${ECHO_T}$ac_header_preproc" >&6
12852
12853# So? What about this header?
ac1cb8d3
VS
12854case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12855 yes:no: )
a848cd7e
SC
12856 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12857echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
12858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12859echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12860 ac_header_preproc=yes
a848cd7e 12861 ;;
ac1cb8d3 12862 no:yes:* )
a848cd7e
SC
12863 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12864echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
12865 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12866echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12867 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12868echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12869 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12870echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
12871 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12872echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
12873 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12874echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
12875 (
12876 cat <<\_ASBOX
ac1cb8d3
VS
12877## ----------------------------------------- ##
12878## Report this to wx-dev@lists.wxwidgets.org ##
12879## ----------------------------------------- ##
a848cd7e
SC
12880_ASBOX
12881 ) |
12882 sed "s/^/$as_me: WARNING: /" >&2
12883 ;;
12884esac
12885echo "$as_me:$LINENO: checking for $ac_header" >&5
12886echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12887if eval "test \"\${$as_ac_Header+set}\" = set"; then
12888 echo $ECHO_N "(cached) $ECHO_C" >&6
12889else
ac1cb8d3 12890 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
12891fi
12892echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12893echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12894
12895fi
12896if test `eval echo '${'$as_ac_Header'}'` = yes; then
12897 cat >>confdefs.h <<_ACEOF
12898#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12899_ACEOF
12900
12901fi
12902
12903done
12904
12905
12906for ac_header in malloc.h
12907do
12908as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12909if eval "test \"\${$as_ac_Header+set}\" = set"; then
12910 echo "$as_me:$LINENO: checking for $ac_header" >&5
12911echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12912if eval "test \"\${$as_ac_Header+set}\" = set"; then
12913 echo $ECHO_N "(cached) $ECHO_C" >&6
12914fi
12915echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12916echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12917else
12918 # Is the header compilable?
12919echo "$as_me:$LINENO: checking $ac_header usability" >&5
12920echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12921cat >conftest.$ac_ext <<_ACEOF
12922/* confdefs.h. */
12923_ACEOF
12924cat confdefs.h >>conftest.$ac_ext
12925cat >>conftest.$ac_ext <<_ACEOF
12926/* end confdefs.h. */
12927$ac_includes_default
12928#include <$ac_header>
12929_ACEOF
12930rm -f conftest.$ac_objext
12931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12932 (eval $ac_compile) 2>conftest.er1
a848cd7e 12933 ac_status=$?
ac1cb8d3
VS
12934 grep -v '^ *+' conftest.er1 >conftest.err
12935 rm -f conftest.er1
12936 cat conftest.err >&5
a848cd7e
SC
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); } &&
ea7db9ff
DE
12939 { ac_try='test -z "$ac_c_werror_flag"
12940 || test ! -s conftest.err'
ac1cb8d3
VS
12941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12942 (eval $ac_try) 2>&5
12943 ac_status=$?
12944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12945 (exit $ac_status); }; } &&
12946 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12948 (eval $ac_try) 2>&5
12949 ac_status=$?
12950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951 (exit $ac_status); }; }; then
12952 ac_header_compiler=yes
12953else
12954 echo "$as_me: failed program was:" >&5
12955sed 's/^/| /' conftest.$ac_ext >&5
12956
12957ac_header_compiler=no
12958fi
ac1cb8d3 12959rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12960echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12961echo "${ECHO_T}$ac_header_compiler" >&6
12962
12963# Is the header present?
12964echo "$as_me:$LINENO: checking $ac_header presence" >&5
12965echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12966cat >conftest.$ac_ext <<_ACEOF
12967/* confdefs.h. */
12968_ACEOF
12969cat confdefs.h >>conftest.$ac_ext
12970cat >>conftest.$ac_ext <<_ACEOF
12971/* end confdefs.h. */
12972#include <$ac_header>
12973_ACEOF
12974if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12975 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12976 ac_status=$?
12977 grep -v '^ *+' conftest.er1 >conftest.err
12978 rm -f conftest.er1
12979 cat conftest.err >&5
12980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981 (exit $ac_status); } >/dev/null; then
12982 if test -s conftest.err; then
12983 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12984 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12985 else
12986 ac_cpp_err=
12987 fi
12988else
12989 ac_cpp_err=yes
12990fi
12991if test -z "$ac_cpp_err"; then
12992 ac_header_preproc=yes
12993else
12994 echo "$as_me: failed program was:" >&5
12995sed 's/^/| /' conftest.$ac_ext >&5
12996
12997 ac_header_preproc=no
12998fi
12999rm -f conftest.err conftest.$ac_ext
13000echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13001echo "${ECHO_T}$ac_header_preproc" >&6
13002
13003# So? What about this header?
ac1cb8d3
VS
13004case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13005 yes:no: )
a848cd7e
SC
13006 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13007echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13008 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13009echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13010 ac_header_preproc=yes
a848cd7e 13011 ;;
ac1cb8d3 13012 no:yes:* )
a848cd7e
SC
13013 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13014echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13015 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13016echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13017 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13018echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13019 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13020echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13022echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13023 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13024echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13025 (
13026 cat <<\_ASBOX
ac1cb8d3
VS
13027## ----------------------------------------- ##
13028## Report this to wx-dev@lists.wxwidgets.org ##
13029## ----------------------------------------- ##
a848cd7e
SC
13030_ASBOX
13031 ) |
13032 sed "s/^/$as_me: WARNING: /" >&2
13033 ;;
13034esac
13035echo "$as_me:$LINENO: checking for $ac_header" >&5
13036echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13037if eval "test \"\${$as_ac_Header+set}\" = set"; then
13038 echo $ECHO_N "(cached) $ECHO_C" >&6
13039else
ac1cb8d3 13040 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13041fi
13042echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13043echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13044
13045fi
13046if test `eval echo '${'$as_ac_Header'}'` = yes; then
13047 cat >>confdefs.h <<_ACEOF
13048#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13049_ACEOF
13050
13051fi
13052
13053done
13054
13055
13056for ac_header in unistd.h
13057do
13058as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13059if eval "test \"\${$as_ac_Header+set}\" = set"; then
13060 echo "$as_me:$LINENO: checking for $ac_header" >&5
13061echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13062if eval "test \"\${$as_ac_Header+set}\" = set"; then
13063 echo $ECHO_N "(cached) $ECHO_C" >&6
13064fi
13065echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13066echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13067else
13068 # Is the header compilable?
13069echo "$as_me:$LINENO: checking $ac_header usability" >&5
13070echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13071cat >conftest.$ac_ext <<_ACEOF
13072/* confdefs.h. */
13073_ACEOF
13074cat confdefs.h >>conftest.$ac_ext
13075cat >>conftest.$ac_ext <<_ACEOF
13076/* end confdefs.h. */
13077$ac_includes_default
13078#include <$ac_header>
13079_ACEOF
13080rm -f conftest.$ac_objext
13081if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13082 (eval $ac_compile) 2>conftest.er1
a848cd7e 13083 ac_status=$?
ac1cb8d3
VS
13084 grep -v '^ *+' conftest.er1 >conftest.err
13085 rm -f conftest.er1
13086 cat conftest.err >&5
a848cd7e
SC
13087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088 (exit $ac_status); } &&
ea7db9ff
DE
13089 { ac_try='test -z "$ac_c_werror_flag"
13090 || test ! -s conftest.err'
ac1cb8d3
VS
13091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13092 (eval $ac_try) 2>&5
13093 ac_status=$?
13094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095 (exit $ac_status); }; } &&
13096 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13098 (eval $ac_try) 2>&5
13099 ac_status=$?
13100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13101 (exit $ac_status); }; }; then
13102 ac_header_compiler=yes
13103else
13104 echo "$as_me: failed program was:" >&5
13105sed 's/^/| /' conftest.$ac_ext >&5
13106
13107ac_header_compiler=no
13108fi
ac1cb8d3 13109rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13110echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13111echo "${ECHO_T}$ac_header_compiler" >&6
13112
13113# Is the header present?
13114echo "$as_me:$LINENO: checking $ac_header presence" >&5
13115echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13116cat >conftest.$ac_ext <<_ACEOF
13117/* confdefs.h. */
13118_ACEOF
13119cat confdefs.h >>conftest.$ac_ext
13120cat >>conftest.$ac_ext <<_ACEOF
13121/* end confdefs.h. */
13122#include <$ac_header>
13123_ACEOF
13124if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13125 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13126 ac_status=$?
13127 grep -v '^ *+' conftest.er1 >conftest.err
13128 rm -f conftest.er1
13129 cat conftest.err >&5
13130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131 (exit $ac_status); } >/dev/null; then
13132 if test -s conftest.err; then
13133 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13134 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13135 else
13136 ac_cpp_err=
13137 fi
13138else
13139 ac_cpp_err=yes
13140fi
13141if test -z "$ac_cpp_err"; then
13142 ac_header_preproc=yes
13143else
13144 echo "$as_me: failed program was:" >&5
13145sed 's/^/| /' conftest.$ac_ext >&5
13146
13147 ac_header_preproc=no
13148fi
13149rm -f conftest.err conftest.$ac_ext
13150echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13151echo "${ECHO_T}$ac_header_preproc" >&6
13152
13153# So? What about this header?
ac1cb8d3
VS
13154case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13155 yes:no: )
a848cd7e
SC
13156 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13157echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13158 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13159echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13160 ac_header_preproc=yes
a848cd7e 13161 ;;
ac1cb8d3 13162 no:yes:* )
a848cd7e
SC
13163 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13164echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13165 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13166echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13167 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13168echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13169 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13170echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13172echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13173 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13174echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13175 (
13176 cat <<\_ASBOX
ac1cb8d3
VS
13177## ----------------------------------------- ##
13178## Report this to wx-dev@lists.wxwidgets.org ##
13179## ----------------------------------------- ##
a848cd7e
SC
13180_ASBOX
13181 ) |
13182 sed "s/^/$as_me: WARNING: /" >&2
13183 ;;
13184esac
13185echo "$as_me:$LINENO: checking for $ac_header" >&5
13186echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13187if eval "test \"\${$as_ac_Header+set}\" = set"; then
13188 echo $ECHO_N "(cached) $ECHO_C" >&6
13189else
ac1cb8d3 13190 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13191fi
13192echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13193echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13194
13195fi
13196if test `eval echo '${'$as_ac_Header'}'` = yes; then
13197 cat >>confdefs.h <<_ACEOF
13198#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13199_ACEOF
13200
13201fi
13202
13203done
13204
13205
13206for ac_header in wchar.h
13207do
13208as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13209if eval "test \"\${$as_ac_Header+set}\" = set"; then
13210 echo "$as_me:$LINENO: checking for $ac_header" >&5
13211echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13212if eval "test \"\${$as_ac_Header+set}\" = set"; then
13213 echo $ECHO_N "(cached) $ECHO_C" >&6
13214fi
13215echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13216echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13217else
13218 # Is the header compilable?
13219echo "$as_me:$LINENO: checking $ac_header usability" >&5
13220echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13221cat >conftest.$ac_ext <<_ACEOF
13222/* confdefs.h. */
13223_ACEOF
13224cat confdefs.h >>conftest.$ac_ext
13225cat >>conftest.$ac_ext <<_ACEOF
13226/* end confdefs.h. */
13227$ac_includes_default
13228#include <$ac_header>
13229_ACEOF
13230rm -f conftest.$ac_objext
13231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13232 (eval $ac_compile) 2>conftest.er1
a848cd7e 13233 ac_status=$?
ac1cb8d3
VS
13234 grep -v '^ *+' conftest.er1 >conftest.err
13235 rm -f conftest.er1
13236 cat conftest.err >&5
a848cd7e
SC
13237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238 (exit $ac_status); } &&
ea7db9ff
DE
13239 { ac_try='test -z "$ac_c_werror_flag"
13240 || test ! -s conftest.err'
ac1cb8d3
VS
13241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13242 (eval $ac_try) 2>&5
13243 ac_status=$?
13244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245 (exit $ac_status); }; } &&
13246 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13248 (eval $ac_try) 2>&5
13249 ac_status=$?
13250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251 (exit $ac_status); }; }; then
13252 ac_header_compiler=yes
13253else
13254 echo "$as_me: failed program was:" >&5
13255sed 's/^/| /' conftest.$ac_ext >&5
13256
13257ac_header_compiler=no
13258fi
ac1cb8d3 13259rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13260echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13261echo "${ECHO_T}$ac_header_compiler" >&6
13262
13263# Is the header present?
13264echo "$as_me:$LINENO: checking $ac_header presence" >&5
13265echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13266cat >conftest.$ac_ext <<_ACEOF
13267/* confdefs.h. */
13268_ACEOF
13269cat confdefs.h >>conftest.$ac_ext
13270cat >>conftest.$ac_ext <<_ACEOF
13271/* end confdefs.h. */
13272#include <$ac_header>
13273_ACEOF
13274if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13275 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13276 ac_status=$?
13277 grep -v '^ *+' conftest.er1 >conftest.err
13278 rm -f conftest.er1
13279 cat conftest.err >&5
13280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13281 (exit $ac_status); } >/dev/null; then
13282 if test -s conftest.err; then
13283 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13284 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13285 else
13286 ac_cpp_err=
13287 fi
13288else
13289 ac_cpp_err=yes
13290fi
13291if test -z "$ac_cpp_err"; then
13292 ac_header_preproc=yes
13293else
13294 echo "$as_me: failed program was:" >&5
13295sed 's/^/| /' conftest.$ac_ext >&5
13296
13297 ac_header_preproc=no
13298fi
13299rm -f conftest.err conftest.$ac_ext
13300echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13301echo "${ECHO_T}$ac_header_preproc" >&6
13302
13303# So? What about this header?
ac1cb8d3
VS
13304case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13305 yes:no: )
a848cd7e
SC
13306 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13307echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13309echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13310 ac_header_preproc=yes
a848cd7e 13311 ;;
ac1cb8d3 13312 no:yes:* )
a848cd7e
SC
13313 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13314echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13315 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13316echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13317 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13318echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13319 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13320echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13322echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13323 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13324echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13325 (
13326 cat <<\_ASBOX
ac1cb8d3
VS
13327## ----------------------------------------- ##
13328## Report this to wx-dev@lists.wxwidgets.org ##
13329## ----------------------------------------- ##
a848cd7e
SC
13330_ASBOX
13331 ) |
13332 sed "s/^/$as_me: WARNING: /" >&2
13333 ;;
13334esac
13335echo "$as_me:$LINENO: checking for $ac_header" >&5
13336echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13337if eval "test \"\${$as_ac_Header+set}\" = set"; then
13338 echo $ECHO_N "(cached) $ECHO_C" >&6
13339else
ac1cb8d3 13340 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13341fi
13342echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13343echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13344
13345fi
13346if test `eval echo '${'$as_ac_Header'}'` = yes; then
13347 cat >>confdefs.h <<_ACEOF
13348#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13349_ACEOF
13350
13351fi
13352
13353done
13354
13355
13356if test "$ac_cv_header_wchar_h" != "yes"; then
13357
13358for ac_header in wcstr.h
13359do
13360as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13361if eval "test \"\${$as_ac_Header+set}\" = set"; then
13362 echo "$as_me:$LINENO: checking for $ac_header" >&5
13363echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13364if eval "test \"\${$as_ac_Header+set}\" = set"; then
13365 echo $ECHO_N "(cached) $ECHO_C" >&6
13366fi
13367echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13368echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13369else
13370 # Is the header compilable?
13371echo "$as_me:$LINENO: checking $ac_header usability" >&5
13372echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13373cat >conftest.$ac_ext <<_ACEOF
13374/* confdefs.h. */
13375_ACEOF
13376cat confdefs.h >>conftest.$ac_ext
13377cat >>conftest.$ac_ext <<_ACEOF
13378/* end confdefs.h. */
13379$ac_includes_default
13380#include <$ac_header>
13381_ACEOF
13382rm -f conftest.$ac_objext
13383if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13384 (eval $ac_compile) 2>conftest.er1
a848cd7e 13385 ac_status=$?
ac1cb8d3
VS
13386 grep -v '^ *+' conftest.er1 >conftest.err
13387 rm -f conftest.er1
13388 cat conftest.err >&5
a848cd7e
SC
13389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390 (exit $ac_status); } &&
ea7db9ff
DE
13391 { ac_try='test -z "$ac_c_werror_flag"
13392 || test ! -s conftest.err'
ac1cb8d3
VS
13393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13394 (eval $ac_try) 2>&5
13395 ac_status=$?
13396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397 (exit $ac_status); }; } &&
13398 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13400 (eval $ac_try) 2>&5
13401 ac_status=$?
13402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13403 (exit $ac_status); }; }; then
13404 ac_header_compiler=yes
13405else
13406 echo "$as_me: failed program was:" >&5
13407sed 's/^/| /' conftest.$ac_ext >&5
13408
13409ac_header_compiler=no
13410fi
ac1cb8d3 13411rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13412echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13413echo "${ECHO_T}$ac_header_compiler" >&6
13414
13415# Is the header present?
13416echo "$as_me:$LINENO: checking $ac_header presence" >&5
13417echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13418cat >conftest.$ac_ext <<_ACEOF
13419/* confdefs.h. */
13420_ACEOF
13421cat confdefs.h >>conftest.$ac_ext
13422cat >>conftest.$ac_ext <<_ACEOF
13423/* end confdefs.h. */
13424#include <$ac_header>
13425_ACEOF
13426if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13427 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13428 ac_status=$?
13429 grep -v '^ *+' conftest.er1 >conftest.err
13430 rm -f conftest.er1
13431 cat conftest.err >&5
13432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433 (exit $ac_status); } >/dev/null; then
13434 if test -s conftest.err; then
13435 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13436 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13437 else
13438 ac_cpp_err=
13439 fi
13440else
13441 ac_cpp_err=yes
13442fi
13443if test -z "$ac_cpp_err"; then
13444 ac_header_preproc=yes
13445else
13446 echo "$as_me: failed program was:" >&5
13447sed 's/^/| /' conftest.$ac_ext >&5
13448
13449 ac_header_preproc=no
13450fi
13451rm -f conftest.err conftest.$ac_ext
13452echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13453echo "${ECHO_T}$ac_header_preproc" >&6
13454
13455# So? What about this header?
ac1cb8d3
VS
13456case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13457 yes:no: )
a848cd7e
SC
13458 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13459echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13461echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13462 ac_header_preproc=yes
a848cd7e 13463 ;;
ac1cb8d3 13464 no:yes:* )
a848cd7e
SC
13465 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13466echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13467 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13468echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13469 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13470echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13471 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13472echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13474echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13475 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13476echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13477 (
13478 cat <<\_ASBOX
ac1cb8d3
VS
13479## ----------------------------------------- ##
13480## Report this to wx-dev@lists.wxwidgets.org ##
13481## ----------------------------------------- ##
a848cd7e
SC
13482_ASBOX
13483 ) |
13484 sed "s/^/$as_me: WARNING: /" >&2
13485 ;;
13486esac
13487echo "$as_me:$LINENO: checking for $ac_header" >&5
13488echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13489if eval "test \"\${$as_ac_Header+set}\" = set"; then
13490 echo $ECHO_N "(cached) $ECHO_C" >&6
13491else
ac1cb8d3 13492 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13493fi
13494echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13495echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13496
13497fi
13498if test `eval echo '${'$as_ac_Header'}'` = yes; then
13499 cat >>confdefs.h <<_ACEOF
13500#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13501_ACEOF
13502
13503fi
13504
13505done
13506
13507fi
13508
13509
13510for ac_header in fnmatch.h
13511do
13512as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13513if eval "test \"\${$as_ac_Header+set}\" = set"; then
13514 echo "$as_me:$LINENO: checking for $ac_header" >&5
13515echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13516if eval "test \"\${$as_ac_Header+set}\" = set"; then
13517 echo $ECHO_N "(cached) $ECHO_C" >&6
13518fi
13519echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13520echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13521else
13522 # Is the header compilable?
13523echo "$as_me:$LINENO: checking $ac_header usability" >&5
13524echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13525cat >conftest.$ac_ext <<_ACEOF
13526/* confdefs.h. */
13527_ACEOF
13528cat confdefs.h >>conftest.$ac_ext
13529cat >>conftest.$ac_ext <<_ACEOF
13530/* end confdefs.h. */
13531$ac_includes_default
13532#include <$ac_header>
13533_ACEOF
13534rm -f conftest.$ac_objext
13535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13536 (eval $ac_compile) 2>conftest.er1
a848cd7e 13537 ac_status=$?
ac1cb8d3
VS
13538 grep -v '^ *+' conftest.er1 >conftest.err
13539 rm -f conftest.er1
13540 cat conftest.err >&5
a848cd7e
SC
13541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542 (exit $ac_status); } &&
ea7db9ff
DE
13543 { ac_try='test -z "$ac_c_werror_flag"
13544 || test ! -s conftest.err'
ac1cb8d3
VS
13545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13546 (eval $ac_try) 2>&5
13547 ac_status=$?
13548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549 (exit $ac_status); }; } &&
13550 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13552 (eval $ac_try) 2>&5
13553 ac_status=$?
13554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555 (exit $ac_status); }; }; then
13556 ac_header_compiler=yes
13557else
13558 echo "$as_me: failed program was:" >&5
13559sed 's/^/| /' conftest.$ac_ext >&5
13560
13561ac_header_compiler=no
13562fi
ac1cb8d3 13563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13564echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13565echo "${ECHO_T}$ac_header_compiler" >&6
13566
13567# Is the header present?
13568echo "$as_me:$LINENO: checking $ac_header presence" >&5
13569echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13570cat >conftest.$ac_ext <<_ACEOF
13571/* confdefs.h. */
13572_ACEOF
13573cat confdefs.h >>conftest.$ac_ext
13574cat >>conftest.$ac_ext <<_ACEOF
13575/* end confdefs.h. */
13576#include <$ac_header>
13577_ACEOF
13578if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13579 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13580 ac_status=$?
13581 grep -v '^ *+' conftest.er1 >conftest.err
13582 rm -f conftest.er1
13583 cat conftest.err >&5
13584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585 (exit $ac_status); } >/dev/null; then
13586 if test -s conftest.err; then
13587 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13588 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13589 else
13590 ac_cpp_err=
13591 fi
13592else
13593 ac_cpp_err=yes
13594fi
13595if test -z "$ac_cpp_err"; then
13596 ac_header_preproc=yes
13597else
13598 echo "$as_me: failed program was:" >&5
13599sed 's/^/| /' conftest.$ac_ext >&5
13600
13601 ac_header_preproc=no
13602fi
13603rm -f conftest.err conftest.$ac_ext
13604echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13605echo "${ECHO_T}$ac_header_preproc" >&6
13606
13607# So? What about this header?
ac1cb8d3
VS
13608case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13609 yes:no: )
a848cd7e
SC
13610 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13611echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13612 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13613echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13614 ac_header_preproc=yes
a848cd7e 13615 ;;
ac1cb8d3 13616 no:yes:* )
a848cd7e
SC
13617 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13618echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13619 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13620echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13621 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13622echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13623 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13624echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13625 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13626echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13627 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13628echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13629 (
13630 cat <<\_ASBOX
ac1cb8d3
VS
13631## ----------------------------------------- ##
13632## Report this to wx-dev@lists.wxwidgets.org ##
13633## ----------------------------------------- ##
a848cd7e
SC
13634_ASBOX
13635 ) |
13636 sed "s/^/$as_me: WARNING: /" >&2
13637 ;;
13638esac
13639echo "$as_me:$LINENO: checking for $ac_header" >&5
13640echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13641if eval "test \"\${$as_ac_Header+set}\" = set"; then
13642 echo $ECHO_N "(cached) $ECHO_C" >&6
13643else
ac1cb8d3 13644 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13645fi
13646echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13647echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13648
13649fi
13650if test `eval echo '${'$as_ac_Header'}'` = yes; then
13651 cat >>confdefs.h <<_ACEOF
13652#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13653_ACEOF
13654
13655fi
13656
13657done
13658
13659
13660if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
13661
13662for ac_func in fnmatch
13663do
13664as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13665echo "$as_me:$LINENO: checking for $ac_func" >&5
13666echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13667if eval "test \"\${$as_ac_var+set}\" = set"; then
13668 echo $ECHO_N "(cached) $ECHO_C" >&6
13669else
13670 cat >conftest.$ac_ext <<_ACEOF
13671/* confdefs.h. */
13672_ACEOF
13673cat confdefs.h >>conftest.$ac_ext
13674cat >>conftest.$ac_ext <<_ACEOF
13675/* end confdefs.h. */
ac1cb8d3
VS
13676/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13677 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13678#define $ac_func innocuous_$ac_func
13679
a848cd7e
SC
13680/* System header to define __stub macros and hopefully few prototypes,
13681 which can conflict with char $ac_func (); below.
13682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13683 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 13684
a848cd7e
SC
13685#ifdef __STDC__
13686# include <limits.h>
13687#else
13688# include <assert.h>
13689#endif
ac1cb8d3
VS
13690
13691#undef $ac_func
13692
a848cd7e
SC
13693/* Override any gcc2 internal prototype to avoid an error. */
13694#ifdef __cplusplus
13695extern "C"
13696{
13697#endif
13698/* We use char because int might match the return type of a gcc2
13699 builtin and then its argument prototype would still apply. */
13700char $ac_func ();
13701/* The GNU C library defines this for functions which it implements
13702 to always fail with ENOSYS. Some functions are actually named
13703 something starting with __ and the normal name is an alias. */
13704#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13705choke me
13706#else
13707char (*f) () = $ac_func;
13708#endif
13709#ifdef __cplusplus
13710}
13711#endif
13712
13713int
13714main ()
13715{
13716return f != $ac_func;
13717 ;
13718 return 0;
13719}
13720_ACEOF
13721rm -f conftest.$ac_objext conftest$ac_exeext
13722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13723 (eval $ac_link) 2>conftest.er1
a848cd7e 13724 ac_status=$?
ac1cb8d3
VS
13725 grep -v '^ *+' conftest.er1 >conftest.err
13726 rm -f conftest.er1
13727 cat conftest.err >&5
a848cd7e
SC
13728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729 (exit $ac_status); } &&
ea7db9ff
DE
13730 { ac_try='test -z "$ac_c_werror_flag"
13731 || test ! -s conftest.err'
ac1cb8d3
VS
13732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13733 (eval $ac_try) 2>&5
13734 ac_status=$?
13735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 (exit $ac_status); }; } &&
13737 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13739 (eval $ac_try) 2>&5
13740 ac_status=$?
13741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742 (exit $ac_status); }; }; then
13743 eval "$as_ac_var=yes"
13744else
13745 echo "$as_me: failed program was:" >&5
13746sed 's/^/| /' conftest.$ac_ext >&5
13747
13748eval "$as_ac_var=no"
13749fi
ac1cb8d3
VS
13750rm -f conftest.err conftest.$ac_objext \
13751 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13752fi
13753echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13754echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13755if test `eval echo '${'$as_ac_var'}'` = yes; then
13756 cat >>confdefs.h <<_ACEOF
13757#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13758_ACEOF
13759
13760fi
13761done
13762
13763fi
13764
13765
13766for ac_header in langinfo.h
13767do
13768as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13769if eval "test \"\${$as_ac_Header+set}\" = set"; then
13770 echo "$as_me:$LINENO: checking for $ac_header" >&5
13771echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13772if eval "test \"\${$as_ac_Header+set}\" = set"; then
13773 echo $ECHO_N "(cached) $ECHO_C" >&6
13774fi
13775echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13776echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13777else
13778 # Is the header compilable?
13779echo "$as_me:$LINENO: checking $ac_header usability" >&5
13780echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13781cat >conftest.$ac_ext <<_ACEOF
13782/* confdefs.h. */
13783_ACEOF
13784cat confdefs.h >>conftest.$ac_ext
13785cat >>conftest.$ac_ext <<_ACEOF
13786/* end confdefs.h. */
13787$ac_includes_default
13788#include <$ac_header>
13789_ACEOF
13790rm -f conftest.$ac_objext
13791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13792 (eval $ac_compile) 2>conftest.er1
a848cd7e 13793 ac_status=$?
ac1cb8d3
VS
13794 grep -v '^ *+' conftest.er1 >conftest.err
13795 rm -f conftest.er1
13796 cat conftest.err >&5
a848cd7e
SC
13797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798 (exit $ac_status); } &&
ea7db9ff
DE
13799 { ac_try='test -z "$ac_c_werror_flag"
13800 || test ! -s conftest.err'
ac1cb8d3
VS
13801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13802 (eval $ac_try) 2>&5
13803 ac_status=$?
13804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805 (exit $ac_status); }; } &&
13806 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13808 (eval $ac_try) 2>&5
13809 ac_status=$?
13810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13811 (exit $ac_status); }; }; then
13812 ac_header_compiler=yes
13813else
13814 echo "$as_me: failed program was:" >&5
13815sed 's/^/| /' conftest.$ac_ext >&5
13816
13817ac_header_compiler=no
13818fi
ac1cb8d3 13819rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13820echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13821echo "${ECHO_T}$ac_header_compiler" >&6
13822
13823# Is the header present?
13824echo "$as_me:$LINENO: checking $ac_header presence" >&5
13825echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13826cat >conftest.$ac_ext <<_ACEOF
13827/* confdefs.h. */
13828_ACEOF
13829cat confdefs.h >>conftest.$ac_ext
13830cat >>conftest.$ac_ext <<_ACEOF
13831/* end confdefs.h. */
13832#include <$ac_header>
13833_ACEOF
13834if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13835 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13836 ac_status=$?
13837 grep -v '^ *+' conftest.er1 >conftest.err
13838 rm -f conftest.er1
13839 cat conftest.err >&5
13840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13841 (exit $ac_status); } >/dev/null; then
13842 if test -s conftest.err; then
13843 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13844 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13845 else
13846 ac_cpp_err=
13847 fi
13848else
13849 ac_cpp_err=yes
13850fi
13851if test -z "$ac_cpp_err"; then
13852 ac_header_preproc=yes
13853else
13854 echo "$as_me: failed program was:" >&5
13855sed 's/^/| /' conftest.$ac_ext >&5
13856
13857 ac_header_preproc=no
13858fi
13859rm -f conftest.err conftest.$ac_ext
13860echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13861echo "${ECHO_T}$ac_header_preproc" >&6
13862
13863# So? What about this header?
ac1cb8d3
VS
13864case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13865 yes:no: )
a848cd7e
SC
13866 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13867echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13868 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13869echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13870 ac_header_preproc=yes
a848cd7e 13871 ;;
ac1cb8d3 13872 no:yes:* )
a848cd7e
SC
13873 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13874echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13875 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13876echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13877 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13878echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13879 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13880echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13881 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13882echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13883 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13884echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13885 (
13886 cat <<\_ASBOX
ac1cb8d3
VS
13887## ----------------------------------------- ##
13888## Report this to wx-dev@lists.wxwidgets.org ##
13889## ----------------------------------------- ##
a848cd7e
SC
13890_ASBOX
13891 ) |
13892 sed "s/^/$as_me: WARNING: /" >&2
13893 ;;
13894esac
13895echo "$as_me:$LINENO: checking for $ac_header" >&5
13896echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13897if eval "test \"\${$as_ac_Header+set}\" = set"; then
13898 echo $ECHO_N "(cached) $ECHO_C" >&6
13899else
ac1cb8d3 13900 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13901fi
13902echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13903echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13904
13905fi
13906if test `eval echo '${'$as_ac_Header'}'` = yes; then
13907 cat >>confdefs.h <<_ACEOF
13908#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13909_ACEOF
13910
13911fi
13912
13913done
13914
13915
13916case "${host}" in
13917 *-pc-os2_emx | *-pc-os2-emx )
13918 if test $ac_cv_header_langinfo_h = "yes"; then
13919 LIBS="$LIBS -lintl"
13920 fi
13921 ;;
13922esac
13923
13924if test "$wxUSE_GUI" = "yes"; then
13925 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
13926
13927for ac_header in X11/Xlib.h
13928do
13929as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13930if eval "test \"\${$as_ac_Header+set}\" = set"; then
13931 echo "$as_me:$LINENO: checking for $ac_header" >&5
13932echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13933if eval "test \"\${$as_ac_Header+set}\" = set"; then
13934 echo $ECHO_N "(cached) $ECHO_C" >&6
13935fi
13936echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13937echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13938else
13939 # Is the header compilable?
13940echo "$as_me:$LINENO: checking $ac_header usability" >&5
13941echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13942cat >conftest.$ac_ext <<_ACEOF
13943/* confdefs.h. */
13944_ACEOF
13945cat confdefs.h >>conftest.$ac_ext
13946cat >>conftest.$ac_ext <<_ACEOF
13947/* end confdefs.h. */
13948$ac_includes_default
13949#include <$ac_header>
13950_ACEOF
13951rm -f conftest.$ac_objext
13952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13953 (eval $ac_compile) 2>conftest.er1
a848cd7e 13954 ac_status=$?
ac1cb8d3
VS
13955 grep -v '^ *+' conftest.er1 >conftest.err
13956 rm -f conftest.er1
13957 cat conftest.err >&5
a848cd7e
SC
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); } &&
ea7db9ff
DE
13960 { ac_try='test -z "$ac_c_werror_flag"
13961 || test ! -s conftest.err'
ac1cb8d3
VS
13962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13963 (eval $ac_try) 2>&5
13964 ac_status=$?
13965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13966 (exit $ac_status); }; } &&
13967 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13969 (eval $ac_try) 2>&5
13970 ac_status=$?
13971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972 (exit $ac_status); }; }; then
13973 ac_header_compiler=yes
13974else
13975 echo "$as_me: failed program was:" >&5
13976sed 's/^/| /' conftest.$ac_ext >&5
13977
13978ac_header_compiler=no
13979fi
ac1cb8d3 13980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13981echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13982echo "${ECHO_T}$ac_header_compiler" >&6
13983
13984# Is the header present?
13985echo "$as_me:$LINENO: checking $ac_header presence" >&5
13986echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13987cat >conftest.$ac_ext <<_ACEOF
13988/* confdefs.h. */
13989_ACEOF
13990cat confdefs.h >>conftest.$ac_ext
13991cat >>conftest.$ac_ext <<_ACEOF
13992/* end confdefs.h. */
13993#include <$ac_header>
13994_ACEOF
13995if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13996 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13997 ac_status=$?
13998 grep -v '^ *+' conftest.er1 >conftest.err
13999 rm -f conftest.er1
14000 cat conftest.err >&5
14001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); } >/dev/null; then
14003 if test -s conftest.err; then
14004 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14005 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14006 else
14007 ac_cpp_err=
14008 fi
14009else
14010 ac_cpp_err=yes
14011fi
14012if test -z "$ac_cpp_err"; then
14013 ac_header_preproc=yes
14014else
14015 echo "$as_me: failed program was:" >&5
14016sed 's/^/| /' conftest.$ac_ext >&5
14017
14018 ac_header_preproc=no
14019fi
14020rm -f conftest.err conftest.$ac_ext
14021echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14022echo "${ECHO_T}$ac_header_preproc" >&6
14023
14024# So? What about this header?
ac1cb8d3
VS
14025case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14026 yes:no: )
a848cd7e
SC
14027 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14028echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14030echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14031 ac_header_preproc=yes
a848cd7e 14032 ;;
ac1cb8d3 14033 no:yes:* )
a848cd7e
SC
14034 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14035echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14036 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14037echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14038 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14039echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14040 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14041echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14043echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14044 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14045echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14046 (
14047 cat <<\_ASBOX
ac1cb8d3
VS
14048## ----------------------------------------- ##
14049## Report this to wx-dev@lists.wxwidgets.org ##
14050## ----------------------------------------- ##
a848cd7e
SC
14051_ASBOX
14052 ) |
14053 sed "s/^/$as_me: WARNING: /" >&2
14054 ;;
14055esac
14056echo "$as_me:$LINENO: checking for $ac_header" >&5
14057echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14058if eval "test \"\${$as_ac_Header+set}\" = set"; then
14059 echo $ECHO_N "(cached) $ECHO_C" >&6
14060else
ac1cb8d3 14061 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14062fi
14063echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14064echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14065
14066fi
14067if test `eval echo '${'$as_ac_Header'}'` = yes; then
14068 cat >>confdefs.h <<_ACEOF
14069#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14070_ACEOF
14071
14072fi
14073
14074done
14075
14076
14077for ac_header in X11/XKBlib.h
14078do
14079as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14080echo "$as_me:$LINENO: checking for $ac_header" >&5
14081echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14082if eval "test \"\${$as_ac_Header+set}\" = set"; then
14083 echo $ECHO_N "(cached) $ECHO_C" >&6
14084else
14085 cat >conftest.$ac_ext <<_ACEOF
14086/* confdefs.h. */
14087_ACEOF
14088cat confdefs.h >>conftest.$ac_ext
14089cat >>conftest.$ac_ext <<_ACEOF
14090/* end confdefs.h. */
14091
14092 #if HAVE_X11_XLIB_H
14093 #include <X11/Xlib.h>
14094 #endif
14095
14096
14097#include <$ac_header>
14098_ACEOF
14099rm -f conftest.$ac_objext
14100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14101 (eval $ac_compile) 2>conftest.er1
a848cd7e 14102 ac_status=$?
ac1cb8d3
VS
14103 grep -v '^ *+' conftest.er1 >conftest.err
14104 rm -f conftest.er1
14105 cat conftest.err >&5
a848cd7e
SC
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); } &&
ea7db9ff
DE
14108 { ac_try='test -z "$ac_c_werror_flag"
14109 || test ! -s conftest.err'
ac1cb8d3
VS
14110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14111 (eval $ac_try) 2>&5
14112 ac_status=$?
14113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114 (exit $ac_status); }; } &&
14115 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14117 (eval $ac_try) 2>&5
14118 ac_status=$?
14119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14120 (exit $ac_status); }; }; then
14121 eval "$as_ac_Header=yes"
14122else
14123 echo "$as_me: failed program was:" >&5
14124sed 's/^/| /' conftest.$ac_ext >&5
14125
14126eval "$as_ac_Header=no"
14127fi
ac1cb8d3 14128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14129fi
14130echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14131echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14132if test `eval echo '${'$as_ac_Header'}'` = yes; then
14133 cat >>confdefs.h <<_ACEOF
14134#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14135_ACEOF
14136
14137fi
14138
14139done
14140
14141 fi
14142fi
14143
14144
14145echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14146echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14147if test "${ac_cv_c_const+set}" = set; then
14148 echo $ECHO_N "(cached) $ECHO_C" >&6
14149else
14150 cat >conftest.$ac_ext <<_ACEOF
14151/* confdefs.h. */
14152_ACEOF
14153cat confdefs.h >>conftest.$ac_ext
14154cat >>conftest.$ac_ext <<_ACEOF
14155/* end confdefs.h. */
14156
14157int
14158main ()
14159{
14160/* FIXME: Include the comments suggested by Paul. */
14161#ifndef __cplusplus
14162 /* Ultrix mips cc rejects this. */
14163 typedef int charset[2];
14164 const charset x;
14165 /* SunOS 4.1.1 cc rejects this. */
14166 char const *const *ccp;
14167 char **p;
14168 /* NEC SVR4.0.2 mips cc rejects this. */
14169 struct point {int x, y;};
14170 static struct point const zero = {0,0};
14171 /* AIX XL C 1.02.0.0 rejects this.
14172 It does not let you subtract one const X* pointer from another in
14173 an arm of an if-expression whose if-part is not a constant
14174 expression */
14175 const char *g = "string";
14176 ccp = &g + (g ? g-g : 0);
14177 /* HPUX 7.0 cc rejects these. */
14178 ++ccp;
14179 p = (char**) ccp;
14180 ccp = (char const *const *) p;
14181 { /* SCO 3.2v4 cc rejects this. */
14182 char *t;
14183 char const *s = 0 ? (char *) 0 : (char const *) 0;
14184
14185 *t++ = 0;
14186 }
14187 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14188 int x[] = {25, 17};
14189 const int *foo = &x[0];
14190 ++foo;
14191 }
14192 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14193 typedef const int *iptr;
14194 iptr p = 0;
14195 ++p;
14196 }
14197 { /* AIX XL C 1.02.0.0 rejects this saying
14198 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14199 struct s { int j; const int *ap[3]; };
14200 struct s *b; b->j = 5;
14201 }
14202 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14203 const int foo = 10;
14204 }
14205#endif
14206
14207 ;
14208 return 0;
14209}
14210_ACEOF
14211rm -f conftest.$ac_objext
14212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14213 (eval $ac_compile) 2>conftest.er1
a848cd7e 14214 ac_status=$?
ac1cb8d3
VS
14215 grep -v '^ *+' conftest.er1 >conftest.err
14216 rm -f conftest.er1
14217 cat conftest.err >&5
a848cd7e
SC
14218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219 (exit $ac_status); } &&
ea7db9ff
DE
14220 { ac_try='test -z "$ac_c_werror_flag"
14221 || test ! -s conftest.err'
ac1cb8d3
VS
14222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14223 (eval $ac_try) 2>&5
14224 ac_status=$?
14225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226 (exit $ac_status); }; } &&
14227 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14229 (eval $ac_try) 2>&5
14230 ac_status=$?
14231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14232 (exit $ac_status); }; }; then
14233 ac_cv_c_const=yes
14234else
14235 echo "$as_me: failed program was:" >&5
14236sed 's/^/| /' conftest.$ac_ext >&5
14237
14238ac_cv_c_const=no
14239fi
ac1cb8d3 14240rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14241fi
14242echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14243echo "${ECHO_T}$ac_cv_c_const" >&6
14244if test $ac_cv_c_const = no; then
14245
14246cat >>confdefs.h <<\_ACEOF
14247#define const
14248_ACEOF
14249
14250fi
14251
14252echo "$as_me:$LINENO: checking for inline" >&5
14253echo $ECHO_N "checking for inline... $ECHO_C" >&6
14254if test "${ac_cv_c_inline+set}" = set; then
14255 echo $ECHO_N "(cached) $ECHO_C" >&6
14256else
14257 ac_cv_c_inline=no
14258for ac_kw in inline __inline__ __inline; do
14259 cat >conftest.$ac_ext <<_ACEOF
14260/* confdefs.h. */
14261_ACEOF
14262cat confdefs.h >>conftest.$ac_ext
14263cat >>conftest.$ac_ext <<_ACEOF
14264/* end confdefs.h. */
14265#ifndef __cplusplus
14266typedef int foo_t;
14267static $ac_kw foo_t static_foo () {return 0; }
14268$ac_kw foo_t foo () {return 0; }
14269#endif
14270
14271_ACEOF
14272rm -f conftest.$ac_objext
14273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14274 (eval $ac_compile) 2>conftest.er1
a848cd7e 14275 ac_status=$?
ac1cb8d3
VS
14276 grep -v '^ *+' conftest.er1 >conftest.err
14277 rm -f conftest.er1
14278 cat conftest.err >&5
a848cd7e
SC
14279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); } &&
ea7db9ff
DE
14281 { ac_try='test -z "$ac_c_werror_flag"
14282 || test ! -s conftest.err'
ac1cb8d3
VS
14283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14284 (eval $ac_try) 2>&5
14285 ac_status=$?
14286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287 (exit $ac_status); }; } &&
14288 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14290 (eval $ac_try) 2>&5
14291 ac_status=$?
14292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14293 (exit $ac_status); }; }; then
14294 ac_cv_c_inline=$ac_kw; break
14295else
14296 echo "$as_me: failed program was:" >&5
14297sed 's/^/| /' conftest.$ac_ext >&5
14298
14299fi
ac1cb8d3 14300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14301done
14302
14303fi
14304echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14305echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
14306
14307
a848cd7e
SC
14308case $ac_cv_c_inline in
14309 inline | yes) ;;
ac1cb8d3
VS
14310 *)
14311 case $ac_cv_c_inline in
14312 no) ac_val=;;
14313 *) ac_val=$ac_cv_c_inline;;
14314 esac
14315 cat >>confdefs.h <<_ACEOF
14316#ifndef __cplusplus
14317#define inline $ac_val
14318#endif
de59c161 14319_ACEOF
ac1cb8d3 14320 ;;
a848cd7e
SC
14321esac
14322
14323
14324echo "$as_me:$LINENO: checking for char" >&5
14325echo $ECHO_N "checking for char... $ECHO_C" >&6
14326if test "${ac_cv_type_char+set}" = set; then
14327 echo $ECHO_N "(cached) $ECHO_C" >&6
14328else
14329 cat >conftest.$ac_ext <<_ACEOF
14330/* confdefs.h. */
14331_ACEOF
14332cat confdefs.h >>conftest.$ac_ext
14333cat >>conftest.$ac_ext <<_ACEOF
14334/* end confdefs.h. */
14335$ac_includes_default
14336int
14337main ()
14338{
14339if ((char *) 0)
14340 return 0;
14341if (sizeof (char))
14342 return 0;
14343 ;
14344 return 0;
14345}
14346_ACEOF
14347rm -f conftest.$ac_objext
14348if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14349 (eval $ac_compile) 2>conftest.er1
a848cd7e 14350 ac_status=$?
ac1cb8d3
VS
14351 grep -v '^ *+' conftest.er1 >conftest.err
14352 rm -f conftest.er1
14353 cat conftest.err >&5
a848cd7e
SC
14354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14355 (exit $ac_status); } &&
ea7db9ff
DE
14356 { ac_try='test -z "$ac_c_werror_flag"
14357 || test ! -s conftest.err'
ac1cb8d3
VS
14358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14359 (eval $ac_try) 2>&5
14360 ac_status=$?
14361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362 (exit $ac_status); }; } &&
14363 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14365 (eval $ac_try) 2>&5
14366 ac_status=$?
14367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14368 (exit $ac_status); }; }; then
14369 ac_cv_type_char=yes
14370else
14371 echo "$as_me: failed program was:" >&5
14372sed 's/^/| /' conftest.$ac_ext >&5
14373
14374ac_cv_type_char=no
14375fi
ac1cb8d3 14376rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14377fi
14378echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14379echo "${ECHO_T}$ac_cv_type_char" >&6
14380
14381echo "$as_me:$LINENO: checking size of char" >&5
14382echo $ECHO_N "checking size of char... $ECHO_C" >&6
14383if test "${ac_cv_sizeof_char+set}" = set; then
14384 echo $ECHO_N "(cached) $ECHO_C" >&6
14385else
14386 if test "$ac_cv_type_char" = yes; then
14387 # The cast to unsigned long works around a bug in the HP C Compiler
14388 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14389 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14390 # This bug is HP SR number 8606223364.
14391 if test "$cross_compiling" = yes; then
14392 # Depending upon the size, compute the lo and hi bounds.
14393cat >conftest.$ac_ext <<_ACEOF
14394/* confdefs.h. */
14395_ACEOF
14396cat confdefs.h >>conftest.$ac_ext
14397cat >>conftest.$ac_ext <<_ACEOF
14398/* end confdefs.h. */
14399$ac_includes_default
14400int
14401main ()
14402{
14403static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14404test_array [0] = 0
14405
14406 ;
14407 return 0;
14408}
14409_ACEOF
14410rm -f conftest.$ac_objext
14411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14412 (eval $ac_compile) 2>conftest.er1
a848cd7e 14413 ac_status=$?
ac1cb8d3
VS
14414 grep -v '^ *+' conftest.er1 >conftest.err
14415 rm -f conftest.er1
14416 cat conftest.err >&5
a848cd7e
SC
14417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418 (exit $ac_status); } &&
ea7db9ff
DE
14419 { ac_try='test -z "$ac_c_werror_flag"
14420 || test ! -s conftest.err'
ac1cb8d3
VS
14421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14422 (eval $ac_try) 2>&5
14423 ac_status=$?
14424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425 (exit $ac_status); }; } &&
14426 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14428 (eval $ac_try) 2>&5
14429 ac_status=$?
14430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431 (exit $ac_status); }; }; then
14432 ac_lo=0 ac_mid=0
14433 while :; do
14434 cat >conftest.$ac_ext <<_ACEOF
14435/* confdefs.h. */
14436_ACEOF
14437cat confdefs.h >>conftest.$ac_ext
14438cat >>conftest.$ac_ext <<_ACEOF
14439/* end confdefs.h. */
14440$ac_includes_default
14441int
14442main ()
14443{
14444static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14445test_array [0] = 0
14446
14447 ;
14448 return 0;
14449}
14450_ACEOF
14451rm -f conftest.$ac_objext
14452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14453 (eval $ac_compile) 2>conftest.er1
a848cd7e 14454 ac_status=$?
ac1cb8d3
VS
14455 grep -v '^ *+' conftest.er1 >conftest.err
14456 rm -f conftest.er1
14457 cat conftest.err >&5
a848cd7e
SC
14458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459 (exit $ac_status); } &&
ea7db9ff
DE
14460 { ac_try='test -z "$ac_c_werror_flag"
14461 || test ! -s conftest.err'
ac1cb8d3
VS
14462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14463 (eval $ac_try) 2>&5
14464 ac_status=$?
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); }; } &&
14467 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14469 (eval $ac_try) 2>&5
14470 ac_status=$?
14471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472 (exit $ac_status); }; }; then
14473 ac_hi=$ac_mid; break
14474else
14475 echo "$as_me: failed program was:" >&5
14476sed 's/^/| /' conftest.$ac_ext >&5
14477
14478ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
14479 if test $ac_lo -le $ac_mid; then
14480 ac_lo= ac_hi=
14481 break
14482 fi
14483 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 14484fi
ac1cb8d3 14485rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14486 done
14487else
14488 echo "$as_me: failed program was:" >&5
14489sed 's/^/| /' conftest.$ac_ext >&5
14490
14491cat >conftest.$ac_ext <<_ACEOF
14492/* confdefs.h. */
14493_ACEOF
14494cat confdefs.h >>conftest.$ac_ext
14495cat >>conftest.$ac_ext <<_ACEOF
14496/* end confdefs.h. */
14497$ac_includes_default
14498int
14499main ()
14500{
14501static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14502test_array [0] = 0
14503
14504 ;
14505 return 0;
14506}
14507_ACEOF
14508rm -f conftest.$ac_objext
14509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14510 (eval $ac_compile) 2>conftest.er1
a848cd7e 14511 ac_status=$?
ac1cb8d3
VS
14512 grep -v '^ *+' conftest.er1 >conftest.err
14513 rm -f conftest.er1
14514 cat conftest.err >&5
a848cd7e
SC
14515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14516 (exit $ac_status); } &&
ea7db9ff
DE
14517 { ac_try='test -z "$ac_c_werror_flag"
14518 || test ! -s conftest.err'
ac1cb8d3
VS
14519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14520 (eval $ac_try) 2>&5
14521 ac_status=$?
14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); }; } &&
14524 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14526 (eval $ac_try) 2>&5
14527 ac_status=$?
14528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529 (exit $ac_status); }; }; then
14530 ac_hi=-1 ac_mid=-1
14531 while :; do
14532 cat >conftest.$ac_ext <<_ACEOF
14533/* confdefs.h. */
14534_ACEOF
14535cat confdefs.h >>conftest.$ac_ext
14536cat >>conftest.$ac_ext <<_ACEOF
14537/* end confdefs.h. */
14538$ac_includes_default
14539int
14540main ()
14541{
14542static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14543test_array [0] = 0
14544
14545 ;
14546 return 0;
14547}
14548_ACEOF
14549rm -f conftest.$ac_objext
14550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14551 (eval $ac_compile) 2>conftest.er1
a848cd7e 14552 ac_status=$?
ac1cb8d3
VS
14553 grep -v '^ *+' conftest.er1 >conftest.err
14554 rm -f conftest.er1
14555 cat conftest.err >&5
a848cd7e
SC
14556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557 (exit $ac_status); } &&
ea7db9ff
DE
14558 { ac_try='test -z "$ac_c_werror_flag"
14559 || test ! -s conftest.err'
ac1cb8d3
VS
14560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14561 (eval $ac_try) 2>&5
14562 ac_status=$?
14563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564 (exit $ac_status); }; } &&
14565 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14567 (eval $ac_try) 2>&5
14568 ac_status=$?
14569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14570 (exit $ac_status); }; }; then
14571 ac_lo=$ac_mid; break
14572else
14573 echo "$as_me: failed program was:" >&5
14574sed 's/^/| /' conftest.$ac_ext >&5
14575
14576ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
14577 if test $ac_mid -le $ac_hi; then
14578 ac_lo= ac_hi=
14579 break
14580 fi
14581 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 14582fi
ac1cb8d3 14583rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14584 done
14585else
14586 echo "$as_me: failed program was:" >&5
14587sed 's/^/| /' conftest.$ac_ext >&5
14588
14589ac_lo= ac_hi=
14590fi
ac1cb8d3 14591rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 14592fi
ac1cb8d3 14593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14594# Binary search between lo and hi bounds.
14595while test "x$ac_lo" != "x$ac_hi"; do
14596 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14597 cat >conftest.$ac_ext <<_ACEOF
14598/* confdefs.h. */
14599_ACEOF
14600cat confdefs.h >>conftest.$ac_ext
14601cat >>conftest.$ac_ext <<_ACEOF
14602/* end confdefs.h. */
14603$ac_includes_default
14604int
14605main ()
14606{
14607static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14608test_array [0] = 0
14609
14610 ;
14611 return 0;
14612}
14613_ACEOF
14614rm -f conftest.$ac_objext
14615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14616 (eval $ac_compile) 2>conftest.er1
a848cd7e 14617 ac_status=$?
ac1cb8d3
VS
14618 grep -v '^ *+' conftest.er1 >conftest.err
14619 rm -f conftest.er1
14620 cat conftest.err >&5
a848cd7e
SC
14621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622 (exit $ac_status); } &&
ea7db9ff
DE
14623 { ac_try='test -z "$ac_c_werror_flag"
14624 || test ! -s conftest.err'
ac1cb8d3
VS
14625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14626 (eval $ac_try) 2>&5
14627 ac_status=$?
14628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629 (exit $ac_status); }; } &&
14630 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14632 (eval $ac_try) 2>&5
14633 ac_status=$?
14634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635 (exit $ac_status); }; }; then
14636 ac_hi=$ac_mid
14637else
14638 echo "$as_me: failed program was:" >&5
14639sed 's/^/| /' conftest.$ac_ext >&5
14640
14641ac_lo=`expr '(' $ac_mid ')' + 1`
14642fi
ac1cb8d3 14643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14644done
14645case $ac_lo in
14646?*) ac_cv_sizeof_char=$ac_lo;;
14647'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14648See \`config.log' for more details." >&5
14649echo "$as_me: error: cannot compute sizeof (char), 77
14650See \`config.log' for more details." >&2;}
14651 { (exit 1); exit 1; }; } ;;
14652esac
14653else
14654 if test "$cross_compiling" = yes; then
ea7db9ff
DE
14655 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14656See \`config.log' for more details." >&5
14657echo "$as_me: error: cannot run test program while cross compiling
14658See \`config.log' for more details." >&2;}
a848cd7e
SC
14659 { (exit 1); exit 1; }; }
14660else
14661 cat >conftest.$ac_ext <<_ACEOF
14662/* confdefs.h. */
14663_ACEOF
14664cat confdefs.h >>conftest.$ac_ext
14665cat >>conftest.$ac_ext <<_ACEOF
14666/* end confdefs.h. */
14667$ac_includes_default
14668long longval () { return (long) (sizeof (char)); }
14669unsigned long ulongval () { return (long) (sizeof (char)); }
14670#include <stdio.h>
14671#include <stdlib.h>
14672int
14673main ()
14674{
14675
14676 FILE *f = fopen ("conftest.val", "w");
14677 if (! f)
14678 exit (1);
14679 if (((long) (sizeof (char))) < 0)
14680 {
14681 long i = longval ();
14682 if (i != ((long) (sizeof (char))))
14683 exit (1);
14684 fprintf (f, "%ld\n", i);
14685 }
14686 else
14687 {
14688 unsigned long i = ulongval ();
14689 if (i != ((long) (sizeof (char))))
14690 exit (1);
14691 fprintf (f, "%lu\n", i);
14692 }
14693 exit (ferror (f) || fclose (f) != 0);
14694
14695 ;
14696 return 0;
14697}
14698_ACEOF
14699rm -f conftest$ac_exeext
14700if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14701 (eval $ac_link) 2>&5
14702 ac_status=$?
14703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14706 (eval $ac_try) 2>&5
14707 ac_status=$?
14708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709 (exit $ac_status); }; }; then
14710 ac_cv_sizeof_char=`cat conftest.val`
14711else
14712 echo "$as_me: program exited with status $ac_status" >&5
14713echo "$as_me: failed program was:" >&5
14714sed 's/^/| /' conftest.$ac_ext >&5
14715
14716( exit $ac_status )
14717{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14718See \`config.log' for more details." >&5
14719echo "$as_me: error: cannot compute sizeof (char), 77
14720See \`config.log' for more details." >&2;}
14721 { (exit 1); exit 1; }; }
14722fi
ac1cb8d3 14723rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14724fi
14725fi
14726rm -f conftest.val
14727else
14728 ac_cv_sizeof_char=0
14729fi
14730fi
14731echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14732echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14733cat >>confdefs.h <<_ACEOF
14734#define SIZEOF_CHAR $ac_cv_sizeof_char
14735_ACEOF
14736
14737
14738echo "$as_me:$LINENO: checking for short" >&5
14739echo $ECHO_N "checking for short... $ECHO_C" >&6
14740if test "${ac_cv_type_short+set}" = set; then
14741 echo $ECHO_N "(cached) $ECHO_C" >&6
14742else
14743 cat >conftest.$ac_ext <<_ACEOF
14744/* confdefs.h. */
14745_ACEOF
14746cat confdefs.h >>conftest.$ac_ext
14747cat >>conftest.$ac_ext <<_ACEOF
14748/* end confdefs.h. */
14749$ac_includes_default
14750int
14751main ()
14752{
14753if ((short *) 0)
14754 return 0;
14755if (sizeof (short))
14756 return 0;
14757 ;
14758 return 0;
14759}
14760_ACEOF
14761rm -f conftest.$ac_objext
14762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14763 (eval $ac_compile) 2>conftest.er1
a848cd7e 14764 ac_status=$?
ac1cb8d3
VS
14765 grep -v '^ *+' conftest.er1 >conftest.err
14766 rm -f conftest.er1
14767 cat conftest.err >&5
a848cd7e
SC
14768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14769 (exit $ac_status); } &&
ea7db9ff
DE
14770 { ac_try='test -z "$ac_c_werror_flag"
14771 || test ! -s conftest.err'
ac1cb8d3
VS
14772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14773 (eval $ac_try) 2>&5
14774 ac_status=$?
14775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14776 (exit $ac_status); }; } &&
14777 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14779 (eval $ac_try) 2>&5
14780 ac_status=$?
14781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782 (exit $ac_status); }; }; then
14783 ac_cv_type_short=yes
14784else
14785 echo "$as_me: failed program was:" >&5
14786sed 's/^/| /' conftest.$ac_ext >&5
14787
14788ac_cv_type_short=no
14789fi
ac1cb8d3 14790rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14791fi
14792echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14793echo "${ECHO_T}$ac_cv_type_short" >&6
14794
14795echo "$as_me:$LINENO: checking size of short" >&5
14796echo $ECHO_N "checking size of short... $ECHO_C" >&6
14797if test "${ac_cv_sizeof_short+set}" = set; then
14798 echo $ECHO_N "(cached) $ECHO_C" >&6
14799else
14800 if test "$ac_cv_type_short" = yes; then
14801 # The cast to unsigned long works around a bug in the HP C Compiler
14802 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14803 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14804 # This bug is HP SR number 8606223364.
14805 if test "$cross_compiling" = yes; then
14806 # Depending upon the size, compute the lo and hi bounds.
14807cat >conftest.$ac_ext <<_ACEOF
14808/* confdefs.h. */
14809_ACEOF
14810cat confdefs.h >>conftest.$ac_ext
14811cat >>conftest.$ac_ext <<_ACEOF
14812/* end confdefs.h. */
14813$ac_includes_default
14814int
14815main ()
14816{
14817static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14818test_array [0] = 0
14819
14820 ;
14821 return 0;
14822}
14823_ACEOF
14824rm -f conftest.$ac_objext
14825if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14826 (eval $ac_compile) 2>conftest.er1
a848cd7e 14827 ac_status=$?
ac1cb8d3
VS
14828 grep -v '^ *+' conftest.er1 >conftest.err
14829 rm -f conftest.er1
14830 cat conftest.err >&5
a848cd7e
SC
14831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832 (exit $ac_status); } &&
ea7db9ff
DE
14833 { ac_try='test -z "$ac_c_werror_flag"
14834 || test ! -s conftest.err'
ac1cb8d3
VS
14835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14836 (eval $ac_try) 2>&5
14837 ac_status=$?
14838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839 (exit $ac_status); }; } &&
14840 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14842 (eval $ac_try) 2>&5
14843 ac_status=$?
14844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845 (exit $ac_status); }; }; then
14846 ac_lo=0 ac_mid=0
14847 while :; do
14848 cat >conftest.$ac_ext <<_ACEOF
14849/* confdefs.h. */
14850_ACEOF
14851cat confdefs.h >>conftest.$ac_ext
14852cat >>conftest.$ac_ext <<_ACEOF
14853/* end confdefs.h. */
14854$ac_includes_default
14855int
14856main ()
14857{
14858static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14859test_array [0] = 0
14860
14861 ;
14862 return 0;
14863}
14864_ACEOF
14865rm -f conftest.$ac_objext
14866if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14867 (eval $ac_compile) 2>conftest.er1
a848cd7e 14868 ac_status=$?
ac1cb8d3
VS
14869 grep -v '^ *+' conftest.er1 >conftest.err
14870 rm -f conftest.er1
14871 cat conftest.err >&5
a848cd7e
SC
14872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873 (exit $ac_status); } &&
ea7db9ff
DE
14874 { ac_try='test -z "$ac_c_werror_flag"
14875 || test ! -s conftest.err'
ac1cb8d3
VS
14876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14877 (eval $ac_try) 2>&5
14878 ac_status=$?
14879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880 (exit $ac_status); }; } &&
14881 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14883 (eval $ac_try) 2>&5
14884 ac_status=$?
14885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886 (exit $ac_status); }; }; then
14887 ac_hi=$ac_mid; break
14888else
14889 echo "$as_me: failed program was:" >&5
14890sed 's/^/| /' conftest.$ac_ext >&5
14891
14892ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
14893 if test $ac_lo -le $ac_mid; then
14894 ac_lo= ac_hi=
14895 break
14896 fi
14897 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 14898fi
ac1cb8d3 14899rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14900 done
14901else
14902 echo "$as_me: failed program was:" >&5
14903sed 's/^/| /' conftest.$ac_ext >&5
14904
14905cat >conftest.$ac_ext <<_ACEOF
14906/* confdefs.h. */
14907_ACEOF
14908cat confdefs.h >>conftest.$ac_ext
14909cat >>conftest.$ac_ext <<_ACEOF
14910/* end confdefs.h. */
14911$ac_includes_default
14912int
14913main ()
14914{
14915static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14916test_array [0] = 0
14917
14918 ;
14919 return 0;
14920}
14921_ACEOF
14922rm -f conftest.$ac_objext
14923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14924 (eval $ac_compile) 2>conftest.er1
a848cd7e 14925 ac_status=$?
ac1cb8d3
VS
14926 grep -v '^ *+' conftest.er1 >conftest.err
14927 rm -f conftest.er1
14928 cat conftest.err >&5
a848cd7e
SC
14929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14930 (exit $ac_status); } &&
ea7db9ff
DE
14931 { ac_try='test -z "$ac_c_werror_flag"
14932 || test ! -s conftest.err'
ac1cb8d3
VS
14933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14934 (eval $ac_try) 2>&5
14935 ac_status=$?
14936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14937 (exit $ac_status); }; } &&
14938 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14940 (eval $ac_try) 2>&5
14941 ac_status=$?
14942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14943 (exit $ac_status); }; }; then
14944 ac_hi=-1 ac_mid=-1
14945 while :; do
14946 cat >conftest.$ac_ext <<_ACEOF
14947/* confdefs.h. */
14948_ACEOF
14949cat confdefs.h >>conftest.$ac_ext
14950cat >>conftest.$ac_ext <<_ACEOF
14951/* end confdefs.h. */
14952$ac_includes_default
14953int
14954main ()
14955{
14956static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14957test_array [0] = 0
14958
14959 ;
14960 return 0;
14961}
14962_ACEOF
14963rm -f conftest.$ac_objext
14964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14965 (eval $ac_compile) 2>conftest.er1
a848cd7e 14966 ac_status=$?
ac1cb8d3
VS
14967 grep -v '^ *+' conftest.er1 >conftest.err
14968 rm -f conftest.er1
14969 cat conftest.err >&5
a848cd7e
SC
14970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971 (exit $ac_status); } &&
ea7db9ff
DE
14972 { ac_try='test -z "$ac_c_werror_flag"
14973 || test ! -s conftest.err'
ac1cb8d3
VS
14974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14975 (eval $ac_try) 2>&5
14976 ac_status=$?
14977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978 (exit $ac_status); }; } &&
14979 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14981 (eval $ac_try) 2>&5
14982 ac_status=$?
14983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984 (exit $ac_status); }; }; then
14985 ac_lo=$ac_mid; break
14986else
14987 echo "$as_me: failed program was:" >&5
14988sed 's/^/| /' conftest.$ac_ext >&5
14989
14990ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
14991 if test $ac_mid -le $ac_hi; then
14992 ac_lo= ac_hi=
14993 break
14994 fi
14995 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 14996fi
ac1cb8d3 14997rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14998 done
14999else
15000 echo "$as_me: failed program was:" >&5
15001sed 's/^/| /' conftest.$ac_ext >&5
15002
15003ac_lo= ac_hi=
15004fi
ac1cb8d3 15005rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15006fi
ac1cb8d3 15007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15008# Binary search between lo and hi bounds.
15009while test "x$ac_lo" != "x$ac_hi"; do
15010 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15011 cat >conftest.$ac_ext <<_ACEOF
15012/* confdefs.h. */
15013_ACEOF
15014cat confdefs.h >>conftest.$ac_ext
15015cat >>conftest.$ac_ext <<_ACEOF
15016/* end confdefs.h. */
15017$ac_includes_default
15018int
15019main ()
15020{
15021static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15022test_array [0] = 0
15023
15024 ;
15025 return 0;
15026}
15027_ACEOF
15028rm -f conftest.$ac_objext
15029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15030 (eval $ac_compile) 2>conftest.er1
a848cd7e 15031 ac_status=$?
ac1cb8d3
VS
15032 grep -v '^ *+' conftest.er1 >conftest.err
15033 rm -f conftest.er1
15034 cat conftest.err >&5
a848cd7e
SC
15035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036 (exit $ac_status); } &&
ea7db9ff
DE
15037 { ac_try='test -z "$ac_c_werror_flag"
15038 || test ! -s conftest.err'
ac1cb8d3
VS
15039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15040 (eval $ac_try) 2>&5
15041 ac_status=$?
15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 (exit $ac_status); }; } &&
15044 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
15050 ac_hi=$ac_mid
15051else
15052 echo "$as_me: failed program was:" >&5
15053sed 's/^/| /' conftest.$ac_ext >&5
15054
15055ac_lo=`expr '(' $ac_mid ')' + 1`
15056fi
ac1cb8d3 15057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15058done
15059case $ac_lo in
15060?*) ac_cv_sizeof_short=$ac_lo;;
15061'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15062See \`config.log' for more details." >&5
15063echo "$as_me: error: cannot compute sizeof (short), 77
15064See \`config.log' for more details." >&2;}
15065 { (exit 1); exit 1; }; } ;;
15066esac
15067else
15068 if test "$cross_compiling" = yes; then
ea7db9ff
DE
15069 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15070See \`config.log' for more details." >&5
15071echo "$as_me: error: cannot run test program while cross compiling
15072See \`config.log' for more details." >&2;}
a848cd7e
SC
15073 { (exit 1); exit 1; }; }
15074else
15075 cat >conftest.$ac_ext <<_ACEOF
15076/* confdefs.h. */
15077_ACEOF
15078cat confdefs.h >>conftest.$ac_ext
15079cat >>conftest.$ac_ext <<_ACEOF
15080/* end confdefs.h. */
15081$ac_includes_default
15082long longval () { return (long) (sizeof (short)); }
15083unsigned long ulongval () { return (long) (sizeof (short)); }
15084#include <stdio.h>
15085#include <stdlib.h>
15086int
15087main ()
15088{
15089
15090 FILE *f = fopen ("conftest.val", "w");
15091 if (! f)
15092 exit (1);
15093 if (((long) (sizeof (short))) < 0)
15094 {
15095 long i = longval ();
15096 if (i != ((long) (sizeof (short))))
15097 exit (1);
15098 fprintf (f, "%ld\n", i);
15099 }
15100 else
15101 {
15102 unsigned long i = ulongval ();
15103 if (i != ((long) (sizeof (short))))
15104 exit (1);
15105 fprintf (f, "%lu\n", i);
15106 }
15107 exit (ferror (f) || fclose (f) != 0);
15108
15109 ;
15110 return 0;
15111}
15112_ACEOF
15113rm -f conftest$ac_exeext
15114if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15115 (eval $ac_link) 2>&5
15116 ac_status=$?
15117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15120 (eval $ac_try) 2>&5
15121 ac_status=$?
15122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15123 (exit $ac_status); }; }; then
15124 ac_cv_sizeof_short=`cat conftest.val`
15125else
15126 echo "$as_me: program exited with status $ac_status" >&5
15127echo "$as_me: failed program was:" >&5
15128sed 's/^/| /' conftest.$ac_ext >&5
15129
15130( exit $ac_status )
15131{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15132See \`config.log' for more details." >&5
15133echo "$as_me: error: cannot compute sizeof (short), 77
15134See \`config.log' for more details." >&2;}
15135 { (exit 1); exit 1; }; }
15136fi
ac1cb8d3 15137rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15138fi
15139fi
15140rm -f conftest.val
15141else
15142 ac_cv_sizeof_short=0
15143fi
15144fi
15145echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15146echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15147cat >>confdefs.h <<_ACEOF
15148#define SIZEOF_SHORT $ac_cv_sizeof_short
15149_ACEOF
15150
15151
15152echo "$as_me:$LINENO: checking for void *" >&5
15153echo $ECHO_N "checking for void *... $ECHO_C" >&6
15154if test "${ac_cv_type_void_p+set}" = set; then
15155 echo $ECHO_N "(cached) $ECHO_C" >&6
15156else
15157 cat >conftest.$ac_ext <<_ACEOF
15158/* confdefs.h. */
15159_ACEOF
15160cat confdefs.h >>conftest.$ac_ext
15161cat >>conftest.$ac_ext <<_ACEOF
15162/* end confdefs.h. */
15163$ac_includes_default
15164int
15165main ()
15166{
15167if ((void * *) 0)
15168 return 0;
15169if (sizeof (void *))
15170 return 0;
15171 ;
15172 return 0;
15173}
15174_ACEOF
15175rm -f conftest.$ac_objext
15176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15177 (eval $ac_compile) 2>conftest.er1
a848cd7e 15178 ac_status=$?
ac1cb8d3
VS
15179 grep -v '^ *+' conftest.er1 >conftest.err
15180 rm -f conftest.er1
15181 cat conftest.err >&5
a848cd7e
SC
15182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183 (exit $ac_status); } &&
ea7db9ff
DE
15184 { ac_try='test -z "$ac_c_werror_flag"
15185 || test ! -s conftest.err'
ac1cb8d3
VS
15186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15187 (eval $ac_try) 2>&5
15188 ac_status=$?
15189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15190 (exit $ac_status); }; } &&
15191 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15193 (eval $ac_try) 2>&5
15194 ac_status=$?
15195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15196 (exit $ac_status); }; }; then
15197 ac_cv_type_void_p=yes
15198else
15199 echo "$as_me: failed program was:" >&5
15200sed 's/^/| /' conftest.$ac_ext >&5
15201
15202ac_cv_type_void_p=no
15203fi
ac1cb8d3 15204rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15205fi
15206echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
15207echo "${ECHO_T}$ac_cv_type_void_p" >&6
15208
15209echo "$as_me:$LINENO: checking size of void *" >&5
15210echo $ECHO_N "checking size of void *... $ECHO_C" >&6
15211if test "${ac_cv_sizeof_void_p+set}" = set; then
15212 echo $ECHO_N "(cached) $ECHO_C" >&6
15213else
15214 if test "$ac_cv_type_void_p" = yes; then
15215 # The cast to unsigned long works around a bug in the HP C Compiler
15216 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15217 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15218 # This bug is HP SR number 8606223364.
15219 if test "$cross_compiling" = yes; then
15220 # Depending upon the size, compute the lo and hi bounds.
15221cat >conftest.$ac_ext <<_ACEOF
15222/* confdefs.h. */
15223_ACEOF
15224cat confdefs.h >>conftest.$ac_ext
15225cat >>conftest.$ac_ext <<_ACEOF
15226/* end confdefs.h. */
15227$ac_includes_default
15228int
15229main ()
15230{
15231static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
15232test_array [0] = 0
15233
15234 ;
15235 return 0;
15236}
15237_ACEOF
15238rm -f conftest.$ac_objext
15239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15240 (eval $ac_compile) 2>conftest.er1
a848cd7e 15241 ac_status=$?
ac1cb8d3
VS
15242 grep -v '^ *+' conftest.er1 >conftest.err
15243 rm -f conftest.er1
15244 cat conftest.err >&5
a848cd7e
SC
15245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246 (exit $ac_status); } &&
ea7db9ff
DE
15247 { ac_try='test -z "$ac_c_werror_flag"
15248 || test ! -s conftest.err'
ac1cb8d3
VS
15249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15250 (eval $ac_try) 2>&5
15251 ac_status=$?
15252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253 (exit $ac_status); }; } &&
15254 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15256 (eval $ac_try) 2>&5
15257 ac_status=$?
15258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259 (exit $ac_status); }; }; then
15260 ac_lo=0 ac_mid=0
15261 while :; do
15262 cat >conftest.$ac_ext <<_ACEOF
15263/* confdefs.h. */
15264_ACEOF
15265cat confdefs.h >>conftest.$ac_ext
15266cat >>conftest.$ac_ext <<_ACEOF
15267/* end confdefs.h. */
15268$ac_includes_default
15269int
15270main ()
15271{
15272static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15273test_array [0] = 0
15274
15275 ;
15276 return 0;
15277}
15278_ACEOF
15279rm -f conftest.$ac_objext
15280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15281 (eval $ac_compile) 2>conftest.er1
a848cd7e 15282 ac_status=$?
ac1cb8d3
VS
15283 grep -v '^ *+' conftest.er1 >conftest.err
15284 rm -f conftest.er1
15285 cat conftest.err >&5
a848cd7e
SC
15286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287 (exit $ac_status); } &&
ea7db9ff
DE
15288 { ac_try='test -z "$ac_c_werror_flag"
15289 || test ! -s conftest.err'
ac1cb8d3
VS
15290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15291 (eval $ac_try) 2>&5
15292 ac_status=$?
15293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15294 (exit $ac_status); }; } &&
15295 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15297 (eval $ac_try) 2>&5
15298 ac_status=$?
15299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15300 (exit $ac_status); }; }; then
15301 ac_hi=$ac_mid; break
15302else
15303 echo "$as_me: failed program was:" >&5
15304sed 's/^/| /' conftest.$ac_ext >&5
15305
15306ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15307 if test $ac_lo -le $ac_mid; then
15308 ac_lo= ac_hi=
15309 break
15310 fi
15311 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15312fi
ac1cb8d3 15313rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15314 done
15315else
15316 echo "$as_me: failed program was:" >&5
15317sed 's/^/| /' conftest.$ac_ext >&5
15318
15319cat >conftest.$ac_ext <<_ACEOF
15320/* confdefs.h. */
15321_ACEOF
15322cat confdefs.h >>conftest.$ac_ext
15323cat >>conftest.$ac_ext <<_ACEOF
15324/* end confdefs.h. */
15325$ac_includes_default
15326int
15327main ()
15328{
15329static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15330test_array [0] = 0
15331
15332 ;
15333 return 0;
15334}
15335_ACEOF
15336rm -f conftest.$ac_objext
15337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15338 (eval $ac_compile) 2>conftest.er1
a848cd7e 15339 ac_status=$?
ac1cb8d3
VS
15340 grep -v '^ *+' conftest.er1 >conftest.err
15341 rm -f conftest.er1
15342 cat conftest.err >&5
a848cd7e
SC
15343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344 (exit $ac_status); } &&
ea7db9ff
DE
15345 { ac_try='test -z "$ac_c_werror_flag"
15346 || test ! -s conftest.err'
ac1cb8d3
VS
15347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15348 (eval $ac_try) 2>&5
15349 ac_status=$?
15350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351 (exit $ac_status); }; } &&
15352 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15354 (eval $ac_try) 2>&5
15355 ac_status=$?
15356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357 (exit $ac_status); }; }; then
15358 ac_hi=-1 ac_mid=-1
15359 while :; do
15360 cat >conftest.$ac_ext <<_ACEOF
15361/* confdefs.h. */
15362_ACEOF
15363cat confdefs.h >>conftest.$ac_ext
15364cat >>conftest.$ac_ext <<_ACEOF
15365/* end confdefs.h. */
15366$ac_includes_default
15367int
15368main ()
15369{
15370static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15371test_array [0] = 0
15372
15373 ;
15374 return 0;
15375}
15376_ACEOF
15377rm -f conftest.$ac_objext
15378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15379 (eval $ac_compile) 2>conftest.er1
a848cd7e 15380 ac_status=$?
ac1cb8d3
VS
15381 grep -v '^ *+' conftest.er1 >conftest.err
15382 rm -f conftest.er1
15383 cat conftest.err >&5
a848cd7e
SC
15384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15385 (exit $ac_status); } &&
ea7db9ff
DE
15386 { ac_try='test -z "$ac_c_werror_flag"
15387 || test ! -s conftest.err'
ac1cb8d3
VS
15388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15389 (eval $ac_try) 2>&5
15390 ac_status=$?
15391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392 (exit $ac_status); }; } &&
15393 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15395 (eval $ac_try) 2>&5
15396 ac_status=$?
15397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398 (exit $ac_status); }; }; then
15399 ac_lo=$ac_mid; break
15400else
15401 echo "$as_me: failed program was:" >&5
15402sed 's/^/| /' conftest.$ac_ext >&5
15403
15404ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15405 if test $ac_mid -le $ac_hi; then
15406 ac_lo= ac_hi=
15407 break
15408 fi
15409 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15410fi
ac1cb8d3 15411rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15412 done
15413else
15414 echo "$as_me: failed program was:" >&5
15415sed 's/^/| /' conftest.$ac_ext >&5
15416
15417ac_lo= ac_hi=
15418fi
ac1cb8d3 15419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15420fi
ac1cb8d3 15421rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15422# Binary search between lo and hi bounds.
15423while test "x$ac_lo" != "x$ac_hi"; do
15424 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15425 cat >conftest.$ac_ext <<_ACEOF
15426/* confdefs.h. */
15427_ACEOF
15428cat confdefs.h >>conftest.$ac_ext
15429cat >>conftest.$ac_ext <<_ACEOF
15430/* end confdefs.h. */
15431$ac_includes_default
15432int
15433main ()
15434{
15435static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15436test_array [0] = 0
15437
15438 ;
15439 return 0;
15440}
15441_ACEOF
15442rm -f conftest.$ac_objext
15443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15444 (eval $ac_compile) 2>conftest.er1
a848cd7e 15445 ac_status=$?
ac1cb8d3
VS
15446 grep -v '^ *+' conftest.er1 >conftest.err
15447 rm -f conftest.er1
15448 cat conftest.err >&5
a848cd7e
SC
15449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450 (exit $ac_status); } &&
ea7db9ff
DE
15451 { ac_try='test -z "$ac_c_werror_flag"
15452 || test ! -s conftest.err'
ac1cb8d3
VS
15453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15454 (eval $ac_try) 2>&5
15455 ac_status=$?
15456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457 (exit $ac_status); }; } &&
15458 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15460 (eval $ac_try) 2>&5
15461 ac_status=$?
15462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463 (exit $ac_status); }; }; then
15464 ac_hi=$ac_mid
15465else
15466 echo "$as_me: failed program was:" >&5
15467sed 's/^/| /' conftest.$ac_ext >&5
15468
15469ac_lo=`expr '(' $ac_mid ')' + 1`
15470fi
ac1cb8d3 15471rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15472done
15473case $ac_lo in
15474?*) ac_cv_sizeof_void_p=$ac_lo;;
15475'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15476See \`config.log' for more details." >&5
15477echo "$as_me: error: cannot compute sizeof (void *), 77
15478See \`config.log' for more details." >&2;}
15479 { (exit 1); exit 1; }; } ;;
15480esac
15481else
15482 if test "$cross_compiling" = yes; then
ea7db9ff
DE
15483 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15484See \`config.log' for more details." >&5
15485echo "$as_me: error: cannot run test program while cross compiling
15486See \`config.log' for more details." >&2;}
a848cd7e
SC
15487 { (exit 1); exit 1; }; }
15488else
15489 cat >conftest.$ac_ext <<_ACEOF
15490/* confdefs.h. */
15491_ACEOF
15492cat confdefs.h >>conftest.$ac_ext
15493cat >>conftest.$ac_ext <<_ACEOF
15494/* end confdefs.h. */
15495$ac_includes_default
15496long longval () { return (long) (sizeof (void *)); }
15497unsigned long ulongval () { return (long) (sizeof (void *)); }
15498#include <stdio.h>
15499#include <stdlib.h>
15500int
15501main ()
15502{
15503
15504 FILE *f = fopen ("conftest.val", "w");
15505 if (! f)
15506 exit (1);
15507 if (((long) (sizeof (void *))) < 0)
15508 {
15509 long i = longval ();
15510 if (i != ((long) (sizeof (void *))))
15511 exit (1);
15512 fprintf (f, "%ld\n", i);
15513 }
15514 else
15515 {
15516 unsigned long i = ulongval ();
15517 if (i != ((long) (sizeof (void *))))
15518 exit (1);
15519 fprintf (f, "%lu\n", i);
15520 }
15521 exit (ferror (f) || fclose (f) != 0);
15522
15523 ;
15524 return 0;
15525}
15526_ACEOF
15527rm -f conftest$ac_exeext
15528if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15529 (eval $ac_link) 2>&5
15530 ac_status=$?
15531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15532 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15534 (eval $ac_try) 2>&5
15535 ac_status=$?
15536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537 (exit $ac_status); }; }; then
15538 ac_cv_sizeof_void_p=`cat conftest.val`
15539else
15540 echo "$as_me: program exited with status $ac_status" >&5
15541echo "$as_me: failed program was:" >&5
15542sed 's/^/| /' conftest.$ac_ext >&5
15543
15544( exit $ac_status )
15545{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15546See \`config.log' for more details." >&5
15547echo "$as_me: error: cannot compute sizeof (void *), 77
15548See \`config.log' for more details." >&2;}
15549 { (exit 1); exit 1; }; }
15550fi
ac1cb8d3 15551rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15552fi
15553fi
15554rm -f conftest.val
15555else
15556 ac_cv_sizeof_void_p=0
15557fi
15558fi
15559echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15560echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15561cat >>confdefs.h <<_ACEOF
15562#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15563_ACEOF
15564
15565
15566echo "$as_me:$LINENO: checking for int" >&5
15567echo $ECHO_N "checking for int... $ECHO_C" >&6
15568if test "${ac_cv_type_int+set}" = set; then
15569 echo $ECHO_N "(cached) $ECHO_C" >&6
15570else
15571 cat >conftest.$ac_ext <<_ACEOF
15572/* confdefs.h. */
15573_ACEOF
15574cat confdefs.h >>conftest.$ac_ext
15575cat >>conftest.$ac_ext <<_ACEOF
15576/* end confdefs.h. */
15577$ac_includes_default
15578int
15579main ()
15580{
15581if ((int *) 0)
15582 return 0;
15583if (sizeof (int))
15584 return 0;
15585 ;
15586 return 0;
15587}
15588_ACEOF
15589rm -f conftest.$ac_objext
15590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15591 (eval $ac_compile) 2>conftest.er1
a848cd7e 15592 ac_status=$?
ac1cb8d3
VS
15593 grep -v '^ *+' conftest.er1 >conftest.err
15594 rm -f conftest.er1
15595 cat conftest.err >&5
a848cd7e
SC
15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); } &&
ea7db9ff
DE
15598 { ac_try='test -z "$ac_c_werror_flag"
15599 || test ! -s conftest.err'
ac1cb8d3
VS
15600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15601 (eval $ac_try) 2>&5
15602 ac_status=$?
15603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604 (exit $ac_status); }; } &&
15605 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15607 (eval $ac_try) 2>&5
15608 ac_status=$?
15609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15610 (exit $ac_status); }; }; then
15611 ac_cv_type_int=yes
15612else
15613 echo "$as_me: failed program was:" >&5
15614sed 's/^/| /' conftest.$ac_ext >&5
15615
15616ac_cv_type_int=no
15617fi
ac1cb8d3 15618rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15619fi
15620echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15621echo "${ECHO_T}$ac_cv_type_int" >&6
15622
15623echo "$as_me:$LINENO: checking size of int" >&5
15624echo $ECHO_N "checking size of int... $ECHO_C" >&6
15625if test "${ac_cv_sizeof_int+set}" = set; then
15626 echo $ECHO_N "(cached) $ECHO_C" >&6
15627else
15628 if test "$ac_cv_type_int" = yes; then
15629 # The cast to unsigned long works around a bug in the HP C Compiler
15630 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15631 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15632 # This bug is HP SR number 8606223364.
15633 if test "$cross_compiling" = yes; then
15634 # Depending upon the size, compute the lo and hi bounds.
15635cat >conftest.$ac_ext <<_ACEOF
15636/* confdefs.h. */
15637_ACEOF
15638cat confdefs.h >>conftest.$ac_ext
15639cat >>conftest.$ac_ext <<_ACEOF
15640/* end confdefs.h. */
15641$ac_includes_default
15642int
15643main ()
15644{
15645static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15646test_array [0] = 0
15647
15648 ;
15649 return 0;
15650}
15651_ACEOF
15652rm -f conftest.$ac_objext
15653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15654 (eval $ac_compile) 2>conftest.er1
a848cd7e 15655 ac_status=$?
ac1cb8d3
VS
15656 grep -v '^ *+' conftest.er1 >conftest.err
15657 rm -f conftest.er1
15658 cat conftest.err >&5
a848cd7e
SC
15659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15660 (exit $ac_status); } &&
ea7db9ff
DE
15661 { ac_try='test -z "$ac_c_werror_flag"
15662 || test ! -s conftest.err'
ac1cb8d3
VS
15663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15664 (eval $ac_try) 2>&5
15665 ac_status=$?
15666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667 (exit $ac_status); }; } &&
15668 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15670 (eval $ac_try) 2>&5
15671 ac_status=$?
15672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15673 (exit $ac_status); }; }; then
15674 ac_lo=0 ac_mid=0
15675 while :; do
15676 cat >conftest.$ac_ext <<_ACEOF
15677/* confdefs.h. */
15678_ACEOF
15679cat confdefs.h >>conftest.$ac_ext
15680cat >>conftest.$ac_ext <<_ACEOF
15681/* end confdefs.h. */
15682$ac_includes_default
15683int
15684main ()
15685{
15686static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15687test_array [0] = 0
15688
15689 ;
15690 return 0;
15691}
15692_ACEOF
15693rm -f conftest.$ac_objext
15694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15695 (eval $ac_compile) 2>conftest.er1
a848cd7e 15696 ac_status=$?
ac1cb8d3
VS
15697 grep -v '^ *+' conftest.er1 >conftest.err
15698 rm -f conftest.er1
15699 cat conftest.err >&5
a848cd7e
SC
15700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701 (exit $ac_status); } &&
ea7db9ff
DE
15702 { ac_try='test -z "$ac_c_werror_flag"
15703 || test ! -s conftest.err'
ac1cb8d3
VS
15704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15705 (eval $ac_try) 2>&5
15706 ac_status=$?
15707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708 (exit $ac_status); }; } &&
15709 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15711 (eval $ac_try) 2>&5
15712 ac_status=$?
15713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714 (exit $ac_status); }; }; then
15715 ac_hi=$ac_mid; break
15716else
15717 echo "$as_me: failed program was:" >&5
15718sed 's/^/| /' conftest.$ac_ext >&5
15719
15720ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15721 if test $ac_lo -le $ac_mid; then
15722 ac_lo= ac_hi=
15723 break
15724 fi
15725 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15726fi
ac1cb8d3 15727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15728 done
15729else
15730 echo "$as_me: failed program was:" >&5
15731sed 's/^/| /' conftest.$ac_ext >&5
15732
15733cat >conftest.$ac_ext <<_ACEOF
15734/* confdefs.h. */
15735_ACEOF
15736cat confdefs.h >>conftest.$ac_ext
15737cat >>conftest.$ac_ext <<_ACEOF
15738/* end confdefs.h. */
15739$ac_includes_default
15740int
15741main ()
15742{
15743static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15744test_array [0] = 0
15745
15746 ;
15747 return 0;
15748}
15749_ACEOF
15750rm -f conftest.$ac_objext
15751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15752 (eval $ac_compile) 2>conftest.er1
a848cd7e 15753 ac_status=$?
ac1cb8d3
VS
15754 grep -v '^ *+' conftest.er1 >conftest.err
15755 rm -f conftest.er1
15756 cat conftest.err >&5
a848cd7e
SC
15757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15758 (exit $ac_status); } &&
ea7db9ff
DE
15759 { ac_try='test -z "$ac_c_werror_flag"
15760 || test ! -s conftest.err'
ac1cb8d3
VS
15761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15762 (eval $ac_try) 2>&5
15763 ac_status=$?
15764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765 (exit $ac_status); }; } &&
15766 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15768 (eval $ac_try) 2>&5
15769 ac_status=$?
15770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15771 (exit $ac_status); }; }; then
15772 ac_hi=-1 ac_mid=-1
15773 while :; do
15774 cat >conftest.$ac_ext <<_ACEOF
15775/* confdefs.h. */
15776_ACEOF
15777cat confdefs.h >>conftest.$ac_ext
15778cat >>conftest.$ac_ext <<_ACEOF
15779/* end confdefs.h. */
15780$ac_includes_default
15781int
15782main ()
15783{
15784static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15785test_array [0] = 0
15786
15787 ;
15788 return 0;
15789}
15790_ACEOF
15791rm -f conftest.$ac_objext
15792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15793 (eval $ac_compile) 2>conftest.er1
a848cd7e 15794 ac_status=$?
ac1cb8d3
VS
15795 grep -v '^ *+' conftest.er1 >conftest.err
15796 rm -f conftest.er1
15797 cat conftest.err >&5
a848cd7e
SC
15798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799 (exit $ac_status); } &&
ea7db9ff
DE
15800 { ac_try='test -z "$ac_c_werror_flag"
15801 || test ! -s conftest.err'
ac1cb8d3
VS
15802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15803 (eval $ac_try) 2>&5
15804 ac_status=$?
15805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15806 (exit $ac_status); }; } &&
15807 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15809 (eval $ac_try) 2>&5
15810 ac_status=$?
15811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15812 (exit $ac_status); }; }; then
15813 ac_lo=$ac_mid; break
15814else
15815 echo "$as_me: failed program was:" >&5
15816sed 's/^/| /' conftest.$ac_ext >&5
15817
15818ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15819 if test $ac_mid -le $ac_hi; then
15820 ac_lo= ac_hi=
15821 break
15822 fi
15823 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15824fi
ac1cb8d3 15825rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15826 done
15827else
15828 echo "$as_me: failed program was:" >&5
15829sed 's/^/| /' conftest.$ac_ext >&5
15830
15831ac_lo= ac_hi=
15832fi
ac1cb8d3 15833rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15834fi
ac1cb8d3 15835rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15836# Binary search between lo and hi bounds.
15837while test "x$ac_lo" != "x$ac_hi"; do
15838 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15839 cat >conftest.$ac_ext <<_ACEOF
15840/* confdefs.h. */
15841_ACEOF
15842cat confdefs.h >>conftest.$ac_ext
15843cat >>conftest.$ac_ext <<_ACEOF
15844/* end confdefs.h. */
15845$ac_includes_default
15846int
15847main ()
15848{
15849static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15850test_array [0] = 0
15851
15852 ;
15853 return 0;
15854}
15855_ACEOF
15856rm -f conftest.$ac_objext
15857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15858 (eval $ac_compile) 2>conftest.er1
a848cd7e 15859 ac_status=$?
ac1cb8d3
VS
15860 grep -v '^ *+' conftest.er1 >conftest.err
15861 rm -f conftest.er1
15862 cat conftest.err >&5
a848cd7e
SC
15863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864 (exit $ac_status); } &&
ea7db9ff
DE
15865 { ac_try='test -z "$ac_c_werror_flag"
15866 || test ! -s conftest.err'
ac1cb8d3
VS
15867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15868 (eval $ac_try) 2>&5
15869 ac_status=$?
15870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15871 (exit $ac_status); }; } &&
15872 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15874 (eval $ac_try) 2>&5
15875 ac_status=$?
15876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877 (exit $ac_status); }; }; then
15878 ac_hi=$ac_mid
15879else
15880 echo "$as_me: failed program was:" >&5
15881sed 's/^/| /' conftest.$ac_ext >&5
15882
15883ac_lo=`expr '(' $ac_mid ')' + 1`
15884fi
ac1cb8d3 15885rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15886done
15887case $ac_lo in
15888?*) ac_cv_sizeof_int=$ac_lo;;
15889'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15890See \`config.log' for more details." >&5
15891echo "$as_me: error: cannot compute sizeof (int), 77
15892See \`config.log' for more details." >&2;}
15893 { (exit 1); exit 1; }; } ;;
15894esac
15895else
15896 if test "$cross_compiling" = yes; then
ea7db9ff
DE
15897 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15898See \`config.log' for more details." >&5
15899echo "$as_me: error: cannot run test program while cross compiling
15900See \`config.log' for more details." >&2;}
a848cd7e
SC
15901 { (exit 1); exit 1; }; }
15902else
15903 cat >conftest.$ac_ext <<_ACEOF
15904/* confdefs.h. */
15905_ACEOF
15906cat confdefs.h >>conftest.$ac_ext
15907cat >>conftest.$ac_ext <<_ACEOF
15908/* end confdefs.h. */
15909$ac_includes_default
15910long longval () { return (long) (sizeof (int)); }
15911unsigned long ulongval () { return (long) (sizeof (int)); }
15912#include <stdio.h>
15913#include <stdlib.h>
15914int
15915main ()
15916{
15917
15918 FILE *f = fopen ("conftest.val", "w");
15919 if (! f)
15920 exit (1);
15921 if (((long) (sizeof (int))) < 0)
15922 {
15923 long i = longval ();
15924 if (i != ((long) (sizeof (int))))
15925 exit (1);
15926 fprintf (f, "%ld\n", i);
15927 }
15928 else
15929 {
15930 unsigned long i = ulongval ();
15931 if (i != ((long) (sizeof (int))))
15932 exit (1);
15933 fprintf (f, "%lu\n", i);
15934 }
15935 exit (ferror (f) || fclose (f) != 0);
15936
15937 ;
15938 return 0;
15939}
15940_ACEOF
15941rm -f conftest$ac_exeext
15942if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15943 (eval $ac_link) 2>&5
15944 ac_status=$?
15945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15948 (eval $ac_try) 2>&5
15949 ac_status=$?
15950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15951 (exit $ac_status); }; }; then
15952 ac_cv_sizeof_int=`cat conftest.val`
15953else
15954 echo "$as_me: program exited with status $ac_status" >&5
15955echo "$as_me: failed program was:" >&5
15956sed 's/^/| /' conftest.$ac_ext >&5
15957
15958( exit $ac_status )
15959{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15960See \`config.log' for more details." >&5
15961echo "$as_me: error: cannot compute sizeof (int), 77
15962See \`config.log' for more details." >&2;}
15963 { (exit 1); exit 1; }; }
15964fi
ac1cb8d3 15965rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15966fi
15967fi
15968rm -f conftest.val
15969else
15970 ac_cv_sizeof_int=0
15971fi
15972fi
15973echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15974echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15975cat >>confdefs.h <<_ACEOF
15976#define SIZEOF_INT $ac_cv_sizeof_int
15977_ACEOF
15978
15979
15980echo "$as_me:$LINENO: checking for long" >&5
15981echo $ECHO_N "checking for long... $ECHO_C" >&6
15982if test "${ac_cv_type_long+set}" = set; then
15983 echo $ECHO_N "(cached) $ECHO_C" >&6
15984else
15985 cat >conftest.$ac_ext <<_ACEOF
15986/* confdefs.h. */
15987_ACEOF
15988cat confdefs.h >>conftest.$ac_ext
15989cat >>conftest.$ac_ext <<_ACEOF
15990/* end confdefs.h. */
15991$ac_includes_default
15992int
15993main ()
15994{
15995if ((long *) 0)
15996 return 0;
15997if (sizeof (long))
15998 return 0;
15999 ;
16000 return 0;
16001}
16002_ACEOF
16003rm -f conftest.$ac_objext
16004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16005 (eval $ac_compile) 2>conftest.er1
a848cd7e 16006 ac_status=$?
ac1cb8d3
VS
16007 grep -v '^ *+' conftest.er1 >conftest.err
16008 rm -f conftest.er1
16009 cat conftest.err >&5
a848cd7e
SC
16010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16011 (exit $ac_status); } &&
ea7db9ff
DE
16012 { ac_try='test -z "$ac_c_werror_flag"
16013 || test ! -s conftest.err'
ac1cb8d3
VS
16014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16015 (eval $ac_try) 2>&5
16016 ac_status=$?
16017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018 (exit $ac_status); }; } &&
16019 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16021 (eval $ac_try) 2>&5
16022 ac_status=$?
16023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16024 (exit $ac_status); }; }; then
16025 ac_cv_type_long=yes
16026else
16027 echo "$as_me: failed program was:" >&5
16028sed 's/^/| /' conftest.$ac_ext >&5
16029
16030ac_cv_type_long=no
16031fi
ac1cb8d3 16032rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16033fi
16034echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
16035echo "${ECHO_T}$ac_cv_type_long" >&6
16036
16037echo "$as_me:$LINENO: checking size of long" >&5
16038echo $ECHO_N "checking size of long... $ECHO_C" >&6
16039if test "${ac_cv_sizeof_long+set}" = set; then
16040 echo $ECHO_N "(cached) $ECHO_C" >&6
16041else
16042 if test "$ac_cv_type_long" = yes; then
16043 # The cast to unsigned long works around a bug in the HP C Compiler
16044 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16045 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16046 # This bug is HP SR number 8606223364.
16047 if test "$cross_compiling" = yes; then
16048 # Depending upon the size, compute the lo and hi bounds.
16049cat >conftest.$ac_ext <<_ACEOF
16050/* confdefs.h. */
16051_ACEOF
16052cat confdefs.h >>conftest.$ac_ext
16053cat >>conftest.$ac_ext <<_ACEOF
16054/* end confdefs.h. */
16055$ac_includes_default
16056int
16057main ()
16058{
16059static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
16060test_array [0] = 0
16061
16062 ;
16063 return 0;
16064}
16065_ACEOF
16066rm -f conftest.$ac_objext
16067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16068 (eval $ac_compile) 2>conftest.er1
a848cd7e 16069 ac_status=$?
ac1cb8d3
VS
16070 grep -v '^ *+' conftest.er1 >conftest.err
16071 rm -f conftest.er1
16072 cat conftest.err >&5
a848cd7e
SC
16073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074 (exit $ac_status); } &&
ea7db9ff
DE
16075 { ac_try='test -z "$ac_c_werror_flag"
16076 || test ! -s conftest.err'
ac1cb8d3
VS
16077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16078 (eval $ac_try) 2>&5
16079 ac_status=$?
16080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16081 (exit $ac_status); }; } &&
16082 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16084 (eval $ac_try) 2>&5
16085 ac_status=$?
16086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087 (exit $ac_status); }; }; then
16088 ac_lo=0 ac_mid=0
16089 while :; do
16090 cat >conftest.$ac_ext <<_ACEOF
16091/* confdefs.h. */
16092_ACEOF
16093cat confdefs.h >>conftest.$ac_ext
16094cat >>conftest.$ac_ext <<_ACEOF
16095/* end confdefs.h. */
16096$ac_includes_default
16097int
16098main ()
16099{
16100static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16101test_array [0] = 0
16102
16103 ;
16104 return 0;
16105}
16106_ACEOF
16107rm -f conftest.$ac_objext
16108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16109 (eval $ac_compile) 2>conftest.er1
a848cd7e 16110 ac_status=$?
ac1cb8d3
VS
16111 grep -v '^ *+' conftest.er1 >conftest.err
16112 rm -f conftest.er1
16113 cat conftest.err >&5
a848cd7e
SC
16114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115 (exit $ac_status); } &&
ea7db9ff
DE
16116 { ac_try='test -z "$ac_c_werror_flag"
16117 || test ! -s conftest.err'
ac1cb8d3
VS
16118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16119 (eval $ac_try) 2>&5
16120 ac_status=$?
16121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16122 (exit $ac_status); }; } &&
16123 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16125 (eval $ac_try) 2>&5
16126 ac_status=$?
16127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16128 (exit $ac_status); }; }; then
16129 ac_hi=$ac_mid; break
16130else
16131 echo "$as_me: failed program was:" >&5
16132sed 's/^/| /' conftest.$ac_ext >&5
16133
16134ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16135 if test $ac_lo -le $ac_mid; then
16136 ac_lo= ac_hi=
16137 break
16138 fi
16139 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16140fi
ac1cb8d3 16141rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16142 done
16143else
16144 echo "$as_me: failed program was:" >&5
16145sed 's/^/| /' conftest.$ac_ext >&5
16146
16147cat >conftest.$ac_ext <<_ACEOF
16148/* confdefs.h. */
16149_ACEOF
16150cat confdefs.h >>conftest.$ac_ext
16151cat >>conftest.$ac_ext <<_ACEOF
16152/* end confdefs.h. */
16153$ac_includes_default
16154int
16155main ()
16156{
16157static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
16158test_array [0] = 0
16159
16160 ;
16161 return 0;
16162}
16163_ACEOF
16164rm -f conftest.$ac_objext
16165if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16166 (eval $ac_compile) 2>conftest.er1
a848cd7e 16167 ac_status=$?
ac1cb8d3
VS
16168 grep -v '^ *+' conftest.er1 >conftest.err
16169 rm -f conftest.er1
16170 cat conftest.err >&5
a848cd7e
SC
16171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16172 (exit $ac_status); } &&
ea7db9ff
DE
16173 { ac_try='test -z "$ac_c_werror_flag"
16174 || test ! -s conftest.err'
ac1cb8d3
VS
16175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16176 (eval $ac_try) 2>&5
16177 ac_status=$?
16178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16179 (exit $ac_status); }; } &&
16180 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16182 (eval $ac_try) 2>&5
16183 ac_status=$?
16184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185 (exit $ac_status); }; }; then
16186 ac_hi=-1 ac_mid=-1
16187 while :; do
16188 cat >conftest.$ac_ext <<_ACEOF
16189/* confdefs.h. */
16190_ACEOF
16191cat confdefs.h >>conftest.$ac_ext
16192cat >>conftest.$ac_ext <<_ACEOF
16193/* end confdefs.h. */
16194$ac_includes_default
16195int
16196main ()
16197{
16198static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
16199test_array [0] = 0
16200
16201 ;
16202 return 0;
16203}
16204_ACEOF
16205rm -f conftest.$ac_objext
16206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16207 (eval $ac_compile) 2>conftest.er1
a848cd7e 16208 ac_status=$?
ac1cb8d3
VS
16209 grep -v '^ *+' conftest.er1 >conftest.err
16210 rm -f conftest.er1
16211 cat conftest.err >&5
a848cd7e
SC
16212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213 (exit $ac_status); } &&
ea7db9ff
DE
16214 { ac_try='test -z "$ac_c_werror_flag"
16215 || test ! -s conftest.err'
ac1cb8d3
VS
16216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16217 (eval $ac_try) 2>&5
16218 ac_status=$?
16219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16220 (exit $ac_status); }; } &&
16221 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16223 (eval $ac_try) 2>&5
16224 ac_status=$?
16225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226 (exit $ac_status); }; }; then
16227 ac_lo=$ac_mid; break
16228else
16229 echo "$as_me: failed program was:" >&5
16230sed 's/^/| /' conftest.$ac_ext >&5
16231
16232ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16233 if test $ac_mid -le $ac_hi; then
16234 ac_lo= ac_hi=
16235 break
16236 fi
16237 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16238fi
ac1cb8d3 16239rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16240 done
16241else
16242 echo "$as_me: failed program was:" >&5
16243sed 's/^/| /' conftest.$ac_ext >&5
16244
16245ac_lo= ac_hi=
16246fi
ac1cb8d3 16247rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16248fi
ac1cb8d3 16249rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16250# Binary search between lo and hi bounds.
16251while test "x$ac_lo" != "x$ac_hi"; do
16252 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16253 cat >conftest.$ac_ext <<_ACEOF
16254/* confdefs.h. */
16255_ACEOF
16256cat confdefs.h >>conftest.$ac_ext
16257cat >>conftest.$ac_ext <<_ACEOF
16258/* end confdefs.h. */
16259$ac_includes_default
16260int
16261main ()
16262{
16263static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16264test_array [0] = 0
16265
16266 ;
16267 return 0;
16268}
16269_ACEOF
16270rm -f conftest.$ac_objext
16271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16272 (eval $ac_compile) 2>conftest.er1
a848cd7e 16273 ac_status=$?
ac1cb8d3
VS
16274 grep -v '^ *+' conftest.er1 >conftest.err
16275 rm -f conftest.er1
16276 cat conftest.err >&5
a848cd7e
SC
16277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16278 (exit $ac_status); } &&
ea7db9ff
DE
16279 { ac_try='test -z "$ac_c_werror_flag"
16280 || test ! -s conftest.err'
ac1cb8d3
VS
16281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16282 (eval $ac_try) 2>&5
16283 ac_status=$?
16284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16285 (exit $ac_status); }; } &&
16286 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16288 (eval $ac_try) 2>&5
16289 ac_status=$?
16290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291 (exit $ac_status); }; }; then
16292 ac_hi=$ac_mid
16293else
16294 echo "$as_me: failed program was:" >&5
16295sed 's/^/| /' conftest.$ac_ext >&5
16296
16297ac_lo=`expr '(' $ac_mid ')' + 1`
16298fi
ac1cb8d3 16299rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16300done
16301case $ac_lo in
16302?*) ac_cv_sizeof_long=$ac_lo;;
16303'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16304See \`config.log' for more details." >&5
16305echo "$as_me: error: cannot compute sizeof (long), 77
16306See \`config.log' for more details." >&2;}
16307 { (exit 1); exit 1; }; } ;;
16308esac
16309else
16310 if test "$cross_compiling" = yes; then
ea7db9ff
DE
16311 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16312See \`config.log' for more details." >&5
16313echo "$as_me: error: cannot run test program while cross compiling
16314See \`config.log' for more details." >&2;}
a848cd7e
SC
16315 { (exit 1); exit 1; }; }
16316else
16317 cat >conftest.$ac_ext <<_ACEOF
16318/* confdefs.h. */
16319_ACEOF
16320cat confdefs.h >>conftest.$ac_ext
16321cat >>conftest.$ac_ext <<_ACEOF
16322/* end confdefs.h. */
16323$ac_includes_default
16324long longval () { return (long) (sizeof (long)); }
16325unsigned long ulongval () { return (long) (sizeof (long)); }
16326#include <stdio.h>
16327#include <stdlib.h>
16328int
16329main ()
16330{
16331
16332 FILE *f = fopen ("conftest.val", "w");
16333 if (! f)
16334 exit (1);
16335 if (((long) (sizeof (long))) < 0)
16336 {
16337 long i = longval ();
16338 if (i != ((long) (sizeof (long))))
16339 exit (1);
16340 fprintf (f, "%ld\n", i);
16341 }
16342 else
16343 {
16344 unsigned long i = ulongval ();
16345 if (i != ((long) (sizeof (long))))
16346 exit (1);
16347 fprintf (f, "%lu\n", i);
16348 }
16349 exit (ferror (f) || fclose (f) != 0);
16350
16351 ;
16352 return 0;
16353}
16354_ACEOF
16355rm -f conftest$ac_exeext
16356if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16357 (eval $ac_link) 2>&5
16358 ac_status=$?
16359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16360 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16362 (eval $ac_try) 2>&5
16363 ac_status=$?
16364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365 (exit $ac_status); }; }; then
16366 ac_cv_sizeof_long=`cat conftest.val`
16367else
16368 echo "$as_me: program exited with status $ac_status" >&5
16369echo "$as_me: failed program was:" >&5
16370sed 's/^/| /' conftest.$ac_ext >&5
16371
16372( exit $ac_status )
16373{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16374See \`config.log' for more details." >&5
16375echo "$as_me: error: cannot compute sizeof (long), 77
16376See \`config.log' for more details." >&2;}
16377 { (exit 1); exit 1; }; }
16378fi
ac1cb8d3 16379rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16380fi
16381fi
16382rm -f conftest.val
16383else
16384 ac_cv_sizeof_long=0
16385fi
16386fi
16387echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
16388echo "${ECHO_T}$ac_cv_sizeof_long" >&6
16389cat >>confdefs.h <<_ACEOF
16390#define SIZEOF_LONG $ac_cv_sizeof_long
16391_ACEOF
16392
16393
16394echo "$as_me:$LINENO: checking for size_t" >&5
16395echo $ECHO_N "checking for size_t... $ECHO_C" >&6
16396if test "${ac_cv_type_size_t+set}" = set; then
16397 echo $ECHO_N "(cached) $ECHO_C" >&6
16398else
16399 cat >conftest.$ac_ext <<_ACEOF
16400/* confdefs.h. */
16401_ACEOF
16402cat confdefs.h >>conftest.$ac_ext
16403cat >>conftest.$ac_ext <<_ACEOF
16404/* end confdefs.h. */
16405$ac_includes_default
16406int
16407main ()
16408{
16409if ((size_t *) 0)
16410 return 0;
16411if (sizeof (size_t))
16412 return 0;
16413 ;
16414 return 0;
16415}
16416_ACEOF
16417rm -f conftest.$ac_objext
16418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16419 (eval $ac_compile) 2>conftest.er1
a848cd7e 16420 ac_status=$?
ac1cb8d3
VS
16421 grep -v '^ *+' conftest.er1 >conftest.err
16422 rm -f conftest.er1
16423 cat conftest.err >&5
a848cd7e
SC
16424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16425 (exit $ac_status); } &&
ea7db9ff
DE
16426 { ac_try='test -z "$ac_c_werror_flag"
16427 || test ! -s conftest.err'
ac1cb8d3
VS
16428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16429 (eval $ac_try) 2>&5
16430 ac_status=$?
16431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16432 (exit $ac_status); }; } &&
16433 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16435 (eval $ac_try) 2>&5
16436 ac_status=$?
16437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16438 (exit $ac_status); }; }; then
16439 ac_cv_type_size_t=yes
16440else
16441 echo "$as_me: failed program was:" >&5
16442sed 's/^/| /' conftest.$ac_ext >&5
16443
16444ac_cv_type_size_t=no
16445fi
ac1cb8d3 16446rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16447fi
16448echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16449echo "${ECHO_T}$ac_cv_type_size_t" >&6
16450
16451echo "$as_me:$LINENO: checking size of size_t" >&5
16452echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
16453if test "${ac_cv_sizeof_size_t+set}" = set; then
16454 echo $ECHO_N "(cached) $ECHO_C" >&6
16455else
16456 if test "$ac_cv_type_size_t" = yes; then
16457 # The cast to unsigned long works around a bug in the HP C Compiler
16458 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16459 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16460 # This bug is HP SR number 8606223364.
16461 if test "$cross_compiling" = yes; then
16462 # Depending upon the size, compute the lo and hi bounds.
16463cat >conftest.$ac_ext <<_ACEOF
16464/* confdefs.h. */
16465_ACEOF
16466cat confdefs.h >>conftest.$ac_ext
16467cat >>conftest.$ac_ext <<_ACEOF
16468/* end confdefs.h. */
16469$ac_includes_default
16470int
16471main ()
16472{
16473static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
16474test_array [0] = 0
16475
16476 ;
16477 return 0;
16478}
16479_ACEOF
16480rm -f conftest.$ac_objext
16481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16482 (eval $ac_compile) 2>conftest.er1
a848cd7e 16483 ac_status=$?
ac1cb8d3
VS
16484 grep -v '^ *+' conftest.er1 >conftest.err
16485 rm -f conftest.er1
16486 cat conftest.err >&5
a848cd7e
SC
16487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16488 (exit $ac_status); } &&
ea7db9ff
DE
16489 { ac_try='test -z "$ac_c_werror_flag"
16490 || test ! -s conftest.err'
ac1cb8d3
VS
16491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16492 (eval $ac_try) 2>&5
16493 ac_status=$?
16494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16495 (exit $ac_status); }; } &&
16496 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16498 (eval $ac_try) 2>&5
16499 ac_status=$?
16500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501 (exit $ac_status); }; }; then
16502 ac_lo=0 ac_mid=0
16503 while :; do
16504 cat >conftest.$ac_ext <<_ACEOF
16505/* confdefs.h. */
16506_ACEOF
16507cat confdefs.h >>conftest.$ac_ext
16508cat >>conftest.$ac_ext <<_ACEOF
16509/* end confdefs.h. */
16510$ac_includes_default
16511int
16512main ()
16513{
16514static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16515test_array [0] = 0
16516
16517 ;
16518 return 0;
16519}
16520_ACEOF
16521rm -f conftest.$ac_objext
16522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16523 (eval $ac_compile) 2>conftest.er1
a848cd7e 16524 ac_status=$?
ac1cb8d3
VS
16525 grep -v '^ *+' conftest.er1 >conftest.err
16526 rm -f conftest.er1
16527 cat conftest.err >&5
a848cd7e
SC
16528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529 (exit $ac_status); } &&
ea7db9ff
DE
16530 { ac_try='test -z "$ac_c_werror_flag"
16531 || test ! -s conftest.err'
ac1cb8d3
VS
16532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16533 (eval $ac_try) 2>&5
16534 ac_status=$?
16535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16536 (exit $ac_status); }; } &&
16537 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16539 (eval $ac_try) 2>&5
16540 ac_status=$?
16541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542 (exit $ac_status); }; }; then
16543 ac_hi=$ac_mid; break
16544else
16545 echo "$as_me: failed program was:" >&5
16546sed 's/^/| /' conftest.$ac_ext >&5
16547
16548ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16549 if test $ac_lo -le $ac_mid; then
16550 ac_lo= ac_hi=
16551 break
16552 fi
16553 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16554fi
ac1cb8d3 16555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16556 done
16557else
16558 echo "$as_me: failed program was:" >&5
16559sed 's/^/| /' conftest.$ac_ext >&5
16560
16561cat >conftest.$ac_ext <<_ACEOF
16562/* confdefs.h. */
16563_ACEOF
16564cat confdefs.h >>conftest.$ac_ext
16565cat >>conftest.$ac_ext <<_ACEOF
16566/* end confdefs.h. */
16567$ac_includes_default
16568int
16569main ()
16570{
16571static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
16572test_array [0] = 0
16573
16574 ;
16575 return 0;
16576}
16577_ACEOF
16578rm -f conftest.$ac_objext
16579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16580 (eval $ac_compile) 2>conftest.er1
a848cd7e 16581 ac_status=$?
ac1cb8d3
VS
16582 grep -v '^ *+' conftest.er1 >conftest.err
16583 rm -f conftest.er1
16584 cat conftest.err >&5
a848cd7e
SC
16585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16586 (exit $ac_status); } &&
ea7db9ff
DE
16587 { ac_try='test -z "$ac_c_werror_flag"
16588 || test ! -s conftest.err'
ac1cb8d3
VS
16589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16590 (eval $ac_try) 2>&5
16591 ac_status=$?
16592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593 (exit $ac_status); }; } &&
16594 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16596 (eval $ac_try) 2>&5
16597 ac_status=$?
16598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599 (exit $ac_status); }; }; then
16600 ac_hi=-1 ac_mid=-1
16601 while :; do
16602 cat >conftest.$ac_ext <<_ACEOF
16603/* confdefs.h. */
16604_ACEOF
16605cat confdefs.h >>conftest.$ac_ext
16606cat >>conftest.$ac_ext <<_ACEOF
16607/* end confdefs.h. */
16608$ac_includes_default
16609int
16610main ()
16611{
16612static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
16613test_array [0] = 0
16614
16615 ;
16616 return 0;
16617}
16618_ACEOF
16619rm -f conftest.$ac_objext
16620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16621 (eval $ac_compile) 2>conftest.er1
a848cd7e 16622 ac_status=$?
ac1cb8d3
VS
16623 grep -v '^ *+' conftest.er1 >conftest.err
16624 rm -f conftest.er1
16625 cat conftest.err >&5
a848cd7e
SC
16626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627 (exit $ac_status); } &&
ea7db9ff
DE
16628 { ac_try='test -z "$ac_c_werror_flag"
16629 || test ! -s conftest.err'
ac1cb8d3
VS
16630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16631 (eval $ac_try) 2>&5
16632 ac_status=$?
16633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16634 (exit $ac_status); }; } &&
16635 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16637 (eval $ac_try) 2>&5
16638 ac_status=$?
16639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16640 (exit $ac_status); }; }; then
16641 ac_lo=$ac_mid; break
16642else
16643 echo "$as_me: failed program was:" >&5
16644sed 's/^/| /' conftest.$ac_ext >&5
16645
16646ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16647 if test $ac_mid -le $ac_hi; then
16648 ac_lo= ac_hi=
16649 break
16650 fi
16651 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16652fi
ac1cb8d3 16653rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16654 done
16655else
16656 echo "$as_me: failed program was:" >&5
16657sed 's/^/| /' conftest.$ac_ext >&5
16658
16659ac_lo= ac_hi=
16660fi
ac1cb8d3 16661rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16662fi
ac1cb8d3 16663rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16664# Binary search between lo and hi bounds.
16665while test "x$ac_lo" != "x$ac_hi"; do
16666 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16667 cat >conftest.$ac_ext <<_ACEOF
16668/* confdefs.h. */
16669_ACEOF
16670cat confdefs.h >>conftest.$ac_ext
16671cat >>conftest.$ac_ext <<_ACEOF
16672/* end confdefs.h. */
16673$ac_includes_default
16674int
16675main ()
16676{
16677static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16678test_array [0] = 0
16679
16680 ;
16681 return 0;
16682}
16683_ACEOF
16684rm -f conftest.$ac_objext
16685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16686 (eval $ac_compile) 2>conftest.er1
a848cd7e 16687 ac_status=$?
ac1cb8d3
VS
16688 grep -v '^ *+' conftest.er1 >conftest.err
16689 rm -f conftest.er1
16690 cat conftest.err >&5
a848cd7e
SC
16691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692 (exit $ac_status); } &&
ea7db9ff
DE
16693 { ac_try='test -z "$ac_c_werror_flag"
16694 || test ! -s conftest.err'
ac1cb8d3
VS
16695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16696 (eval $ac_try) 2>&5
16697 ac_status=$?
16698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16699 (exit $ac_status); }; } &&
16700 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16702 (eval $ac_try) 2>&5
16703 ac_status=$?
16704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705 (exit $ac_status); }; }; then
16706 ac_hi=$ac_mid
16707else
16708 echo "$as_me: failed program was:" >&5
16709sed 's/^/| /' conftest.$ac_ext >&5
16710
16711ac_lo=`expr '(' $ac_mid ')' + 1`
16712fi
ac1cb8d3 16713rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16714done
16715case $ac_lo in
16716?*) ac_cv_sizeof_size_t=$ac_lo;;
16717'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16718See \`config.log' for more details." >&5
16719echo "$as_me: error: cannot compute sizeof (size_t), 77
16720See \`config.log' for more details." >&2;}
16721 { (exit 1); exit 1; }; } ;;
16722esac
16723else
16724 if test "$cross_compiling" = yes; then
ea7db9ff
DE
16725 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16726See \`config.log' for more details." >&5
16727echo "$as_me: error: cannot run test program while cross compiling
16728See \`config.log' for more details." >&2;}
a848cd7e
SC
16729 { (exit 1); exit 1; }; }
16730else
16731 cat >conftest.$ac_ext <<_ACEOF
16732/* confdefs.h. */
16733_ACEOF
16734cat confdefs.h >>conftest.$ac_ext
16735cat >>conftest.$ac_ext <<_ACEOF
16736/* end confdefs.h. */
16737$ac_includes_default
16738long longval () { return (long) (sizeof (size_t)); }
16739unsigned long ulongval () { return (long) (sizeof (size_t)); }
16740#include <stdio.h>
16741#include <stdlib.h>
16742int
16743main ()
16744{
16745
16746 FILE *f = fopen ("conftest.val", "w");
16747 if (! f)
16748 exit (1);
16749 if (((long) (sizeof (size_t))) < 0)
16750 {
16751 long i = longval ();
16752 if (i != ((long) (sizeof (size_t))))
16753 exit (1);
16754 fprintf (f, "%ld\n", i);
16755 }
16756 else
16757 {
16758 unsigned long i = ulongval ();
16759 if (i != ((long) (sizeof (size_t))))
16760 exit (1);
16761 fprintf (f, "%lu\n", i);
16762 }
16763 exit (ferror (f) || fclose (f) != 0);
16764
16765 ;
16766 return 0;
16767}
16768_ACEOF
16769rm -f conftest$ac_exeext
16770if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16771 (eval $ac_link) 2>&5
16772 ac_status=$?
16773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16774 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16776 (eval $ac_try) 2>&5
16777 ac_status=$?
16778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779 (exit $ac_status); }; }; then
16780 ac_cv_sizeof_size_t=`cat conftest.val`
16781else
16782 echo "$as_me: program exited with status $ac_status" >&5
16783echo "$as_me: failed program was:" >&5
16784sed 's/^/| /' conftest.$ac_ext >&5
16785
16786( exit $ac_status )
16787{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16788See \`config.log' for more details." >&5
16789echo "$as_me: error: cannot compute sizeof (size_t), 77
16790See \`config.log' for more details." >&2;}
16791 { (exit 1); exit 1; }; }
16792fi
ac1cb8d3 16793rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16794fi
16795fi
16796rm -f conftest.val
16797else
16798 ac_cv_sizeof_size_t=0
16799fi
16800fi
16801echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
16802echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
16803cat >>confdefs.h <<_ACEOF
16804#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
16805_ACEOF
16806
16807
16808
16809case "${host}" in
16810 arm-*-linux* )
16811 echo "$as_me:$LINENO: checking for long long" >&5
16812echo $ECHO_N "checking for long long... $ECHO_C" >&6
16813if test "${ac_cv_type_long_long+set}" = set; then
16814 echo $ECHO_N "(cached) $ECHO_C" >&6
16815else
16816 cat >conftest.$ac_ext <<_ACEOF
16817/* confdefs.h. */
16818_ACEOF
16819cat confdefs.h >>conftest.$ac_ext
16820cat >>conftest.$ac_ext <<_ACEOF
16821/* end confdefs.h. */
16822$ac_includes_default
16823int
16824main ()
16825{
16826if ((long long *) 0)
16827 return 0;
16828if (sizeof (long long))
16829 return 0;
16830 ;
16831 return 0;
16832}
16833_ACEOF
16834rm -f conftest.$ac_objext
16835if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16836 (eval $ac_compile) 2>conftest.er1
a848cd7e 16837 ac_status=$?
ac1cb8d3
VS
16838 grep -v '^ *+' conftest.er1 >conftest.err
16839 rm -f conftest.er1
16840 cat conftest.err >&5
a848cd7e
SC
16841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842 (exit $ac_status); } &&
ea7db9ff
DE
16843 { ac_try='test -z "$ac_c_werror_flag"
16844 || test ! -s conftest.err'
ac1cb8d3
VS
16845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16846 (eval $ac_try) 2>&5
16847 ac_status=$?
16848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849 (exit $ac_status); }; } &&
16850 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16852 (eval $ac_try) 2>&5
16853 ac_status=$?
16854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16855 (exit $ac_status); }; }; then
16856 ac_cv_type_long_long=yes
16857else
16858 echo "$as_me: failed program was:" >&5
16859sed 's/^/| /' conftest.$ac_ext >&5
16860
16861ac_cv_type_long_long=no
16862fi
ac1cb8d3 16863rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16864fi
16865echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16866echo "${ECHO_T}$ac_cv_type_long_long" >&6
16867
16868echo "$as_me:$LINENO: checking size of long long" >&5
16869echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16870if test "${ac_cv_sizeof_long_long+set}" = set; then
16871 echo $ECHO_N "(cached) $ECHO_C" >&6
16872else
16873 if test "$ac_cv_type_long_long" = yes; then
16874 # The cast to unsigned long works around a bug in the HP C Compiler
16875 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16876 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16877 # This bug is HP SR number 8606223364.
16878 if test "$cross_compiling" = yes; then
16879 # Depending upon the size, compute the lo and hi bounds.
16880cat >conftest.$ac_ext <<_ACEOF
16881/* confdefs.h. */
16882_ACEOF
16883cat confdefs.h >>conftest.$ac_ext
16884cat >>conftest.$ac_ext <<_ACEOF
16885/* end confdefs.h. */
16886$ac_includes_default
16887int
16888main ()
16889{
16890static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16891test_array [0] = 0
16892
16893 ;
16894 return 0;
16895}
16896_ACEOF
16897rm -f conftest.$ac_objext
16898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16899 (eval $ac_compile) 2>conftest.er1
a848cd7e 16900 ac_status=$?
ac1cb8d3
VS
16901 grep -v '^ *+' conftest.er1 >conftest.err
16902 rm -f conftest.er1
16903 cat conftest.err >&5
a848cd7e
SC
16904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905 (exit $ac_status); } &&
ea7db9ff
DE
16906 { ac_try='test -z "$ac_c_werror_flag"
16907 || test ! -s conftest.err'
ac1cb8d3
VS
16908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16909 (eval $ac_try) 2>&5
16910 ac_status=$?
16911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912 (exit $ac_status); }; } &&
16913 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16915 (eval $ac_try) 2>&5
16916 ac_status=$?
16917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918 (exit $ac_status); }; }; then
16919 ac_lo=0 ac_mid=0
16920 while :; do
16921 cat >conftest.$ac_ext <<_ACEOF
16922/* confdefs.h. */
16923_ACEOF
16924cat confdefs.h >>conftest.$ac_ext
16925cat >>conftest.$ac_ext <<_ACEOF
16926/* end confdefs.h. */
16927$ac_includes_default
16928int
16929main ()
16930{
16931static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16932test_array [0] = 0
16933
16934 ;
16935 return 0;
16936}
16937_ACEOF
16938rm -f conftest.$ac_objext
16939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16940 (eval $ac_compile) 2>conftest.er1
a848cd7e 16941 ac_status=$?
ac1cb8d3
VS
16942 grep -v '^ *+' conftest.er1 >conftest.err
16943 rm -f conftest.er1
16944 cat conftest.err >&5
a848cd7e
SC
16945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16946 (exit $ac_status); } &&
ea7db9ff
DE
16947 { ac_try='test -z "$ac_c_werror_flag"
16948 || test ! -s conftest.err'
ac1cb8d3
VS
16949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16950 (eval $ac_try) 2>&5
16951 ac_status=$?
16952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953 (exit $ac_status); }; } &&
16954 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16956 (eval $ac_try) 2>&5
16957 ac_status=$?
16958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959 (exit $ac_status); }; }; then
16960 ac_hi=$ac_mid; break
16961else
16962 echo "$as_me: failed program was:" >&5
16963sed 's/^/| /' conftest.$ac_ext >&5
16964
16965ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16966 if test $ac_lo -le $ac_mid; then
16967 ac_lo= ac_hi=
16968 break
16969 fi
16970 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16971fi
ac1cb8d3 16972rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16973 done
16974else
16975 echo "$as_me: failed program was:" >&5
16976sed 's/^/| /' conftest.$ac_ext >&5
16977
16978cat >conftest.$ac_ext <<_ACEOF
16979/* confdefs.h. */
16980_ACEOF
16981cat confdefs.h >>conftest.$ac_ext
16982cat >>conftest.$ac_ext <<_ACEOF
16983/* end confdefs.h. */
16984$ac_includes_default
16985int
16986main ()
16987{
16988static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16989test_array [0] = 0
16990
16991 ;
16992 return 0;
16993}
16994_ACEOF
16995rm -f conftest.$ac_objext
16996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16997 (eval $ac_compile) 2>conftest.er1
a848cd7e 16998 ac_status=$?
ac1cb8d3
VS
16999 grep -v '^ *+' conftest.er1 >conftest.err
17000 rm -f conftest.er1
17001 cat conftest.err >&5
a848cd7e
SC
17002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003 (exit $ac_status); } &&
ea7db9ff
DE
17004 { ac_try='test -z "$ac_c_werror_flag"
17005 || test ! -s conftest.err'
ac1cb8d3
VS
17006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17007 (eval $ac_try) 2>&5
17008 ac_status=$?
17009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17010 (exit $ac_status); }; } &&
17011 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17013 (eval $ac_try) 2>&5
17014 ac_status=$?
17015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016 (exit $ac_status); }; }; then
17017 ac_hi=-1 ac_mid=-1
17018 while :; do
17019 cat >conftest.$ac_ext <<_ACEOF
17020/* confdefs.h. */
17021_ACEOF
17022cat confdefs.h >>conftest.$ac_ext
17023cat >>conftest.$ac_ext <<_ACEOF
17024/* end confdefs.h. */
17025$ac_includes_default
17026int
17027main ()
17028{
17029static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17030test_array [0] = 0
17031
17032 ;
17033 return 0;
17034}
17035_ACEOF
17036rm -f conftest.$ac_objext
17037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17038 (eval $ac_compile) 2>conftest.er1
a848cd7e 17039 ac_status=$?
ac1cb8d3
VS
17040 grep -v '^ *+' conftest.er1 >conftest.err
17041 rm -f conftest.er1
17042 cat conftest.err >&5
a848cd7e
SC
17043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044 (exit $ac_status); } &&
ea7db9ff
DE
17045 { ac_try='test -z "$ac_c_werror_flag"
17046 || test ! -s conftest.err'
ac1cb8d3
VS
17047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17048 (eval $ac_try) 2>&5
17049 ac_status=$?
17050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17051 (exit $ac_status); }; } &&
17052 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17054 (eval $ac_try) 2>&5
17055 ac_status=$?
17056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057 (exit $ac_status); }; }; then
17058 ac_lo=$ac_mid; break
17059else
17060 echo "$as_me: failed program was:" >&5
17061sed 's/^/| /' conftest.$ac_ext >&5
17062
17063ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17064 if test $ac_mid -le $ac_hi; then
17065 ac_lo= ac_hi=
17066 break
17067 fi
17068 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17069fi
ac1cb8d3 17070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17071 done
17072else
17073 echo "$as_me: failed program was:" >&5
17074sed 's/^/| /' conftest.$ac_ext >&5
17075
17076ac_lo= ac_hi=
17077fi
ac1cb8d3 17078rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17079fi
ac1cb8d3 17080rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17081# Binary search between lo and hi bounds.
17082while test "x$ac_lo" != "x$ac_hi"; do
17083 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17084 cat >conftest.$ac_ext <<_ACEOF
17085/* confdefs.h. */
17086_ACEOF
17087cat confdefs.h >>conftest.$ac_ext
17088cat >>conftest.$ac_ext <<_ACEOF
17089/* end confdefs.h. */
17090$ac_includes_default
17091int
17092main ()
17093{
17094static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17095test_array [0] = 0
17096
17097 ;
17098 return 0;
17099}
17100_ACEOF
17101rm -f conftest.$ac_objext
17102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17103 (eval $ac_compile) 2>conftest.er1
a848cd7e 17104 ac_status=$?
ac1cb8d3
VS
17105 grep -v '^ *+' conftest.er1 >conftest.err
17106 rm -f conftest.er1
17107 cat conftest.err >&5
a848cd7e
SC
17108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17109 (exit $ac_status); } &&
ea7db9ff
DE
17110 { ac_try='test -z "$ac_c_werror_flag"
17111 || test ! -s conftest.err'
ac1cb8d3
VS
17112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17113 (eval $ac_try) 2>&5
17114 ac_status=$?
17115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17116 (exit $ac_status); }; } &&
17117 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
17123 ac_hi=$ac_mid
17124else
17125 echo "$as_me: failed program was:" >&5
17126sed 's/^/| /' conftest.$ac_ext >&5
17127
17128ac_lo=`expr '(' $ac_mid ')' + 1`
17129fi
ac1cb8d3 17130rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17131done
17132case $ac_lo in
17133?*) ac_cv_sizeof_long_long=$ac_lo;;
17134'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17135See \`config.log' for more details." >&5
17136echo "$as_me: error: cannot compute sizeof (long long), 77
17137See \`config.log' for more details." >&2;}
17138 { (exit 1); exit 1; }; } ;;
17139esac
17140else
17141 if test "$cross_compiling" = yes; then
ea7db9ff
DE
17142 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17143See \`config.log' for more details." >&5
17144echo "$as_me: error: cannot run test program while cross compiling
17145See \`config.log' for more details." >&2;}
a848cd7e
SC
17146 { (exit 1); exit 1; }; }
17147else
17148 cat >conftest.$ac_ext <<_ACEOF
17149/* confdefs.h. */
17150_ACEOF
17151cat confdefs.h >>conftest.$ac_ext
17152cat >>conftest.$ac_ext <<_ACEOF
17153/* end confdefs.h. */
17154$ac_includes_default
17155long longval () { return (long) (sizeof (long long)); }
17156unsigned long ulongval () { return (long) (sizeof (long long)); }
17157#include <stdio.h>
17158#include <stdlib.h>
17159int
17160main ()
17161{
17162
17163 FILE *f = fopen ("conftest.val", "w");
17164 if (! f)
17165 exit (1);
17166 if (((long) (sizeof (long long))) < 0)
17167 {
17168 long i = longval ();
17169 if (i != ((long) (sizeof (long long))))
17170 exit (1);
17171 fprintf (f, "%ld\n", i);
17172 }
17173 else
17174 {
17175 unsigned long i = ulongval ();
17176 if (i != ((long) (sizeof (long long))))
17177 exit (1);
17178 fprintf (f, "%lu\n", i);
17179 }
17180 exit (ferror (f) || fclose (f) != 0);
17181
17182 ;
17183 return 0;
17184}
17185_ACEOF
17186rm -f conftest$ac_exeext
17187if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17188 (eval $ac_link) 2>&5
17189 ac_status=$?
17190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17193 (eval $ac_try) 2>&5
17194 ac_status=$?
17195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196 (exit $ac_status); }; }; then
17197 ac_cv_sizeof_long_long=`cat conftest.val`
17198else
17199 echo "$as_me: program exited with status $ac_status" >&5
17200echo "$as_me: failed program was:" >&5
17201sed 's/^/| /' conftest.$ac_ext >&5
17202
17203( exit $ac_status )
17204{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17205See \`config.log' for more details." >&5
17206echo "$as_me: error: cannot compute sizeof (long long), 77
17207See \`config.log' for more details." >&2;}
17208 { (exit 1); exit 1; }; }
17209fi
ac1cb8d3 17210rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17211fi
17212fi
17213rm -f conftest.val
17214else
17215 ac_cv_sizeof_long_long=0
17216fi
17217fi
17218echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17219echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17220cat >>confdefs.h <<_ACEOF
17221#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17222_ACEOF
17223
17224
17225 ;;
17226 *-hp-hpux* )
17227 echo "$as_me:$LINENO: checking for long long" >&5
17228echo $ECHO_N "checking for long long... $ECHO_C" >&6
17229if test "${ac_cv_type_long_long+set}" = set; then
17230 echo $ECHO_N "(cached) $ECHO_C" >&6
17231else
17232 cat >conftest.$ac_ext <<_ACEOF
17233/* confdefs.h. */
17234_ACEOF
17235cat confdefs.h >>conftest.$ac_ext
17236cat >>conftest.$ac_ext <<_ACEOF
17237/* end confdefs.h. */
17238$ac_includes_default
17239int
17240main ()
17241{
17242if ((long long *) 0)
17243 return 0;
17244if (sizeof (long long))
17245 return 0;
17246 ;
17247 return 0;
17248}
17249_ACEOF
17250rm -f conftest.$ac_objext
17251if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17252 (eval $ac_compile) 2>conftest.er1
a848cd7e 17253 ac_status=$?
ac1cb8d3
VS
17254 grep -v '^ *+' conftest.er1 >conftest.err
17255 rm -f conftest.er1
17256 cat conftest.err >&5
a848cd7e
SC
17257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17258 (exit $ac_status); } &&
ea7db9ff
DE
17259 { ac_try='test -z "$ac_c_werror_flag"
17260 || test ! -s conftest.err'
ac1cb8d3
VS
17261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17262 (eval $ac_try) 2>&5
17263 ac_status=$?
17264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265 (exit $ac_status); }; } &&
17266 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17268 (eval $ac_try) 2>&5
17269 ac_status=$?
17270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271 (exit $ac_status); }; }; then
17272 ac_cv_type_long_long=yes
17273else
17274 echo "$as_me: failed program was:" >&5
17275sed 's/^/| /' conftest.$ac_ext >&5
17276
17277ac_cv_type_long_long=no
17278fi
ac1cb8d3 17279rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17280fi
17281echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17282echo "${ECHO_T}$ac_cv_type_long_long" >&6
17283
17284echo "$as_me:$LINENO: checking size of long long" >&5
17285echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17286if test "${ac_cv_sizeof_long_long+set}" = set; then
17287 echo $ECHO_N "(cached) $ECHO_C" >&6
17288else
17289 if test "$ac_cv_type_long_long" = yes; then
17290 # The cast to unsigned long works around a bug in the HP C Compiler
17291 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17292 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17293 # This bug is HP SR number 8606223364.
17294 if test "$cross_compiling" = yes; then
17295 # Depending upon the size, compute the lo and hi bounds.
17296cat >conftest.$ac_ext <<_ACEOF
17297/* confdefs.h. */
17298_ACEOF
17299cat confdefs.h >>conftest.$ac_ext
17300cat >>conftest.$ac_ext <<_ACEOF
17301/* end confdefs.h. */
17302$ac_includes_default
17303int
17304main ()
17305{
17306static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17307test_array [0] = 0
17308
17309 ;
17310 return 0;
17311}
17312_ACEOF
17313rm -f conftest.$ac_objext
17314if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17315 (eval $ac_compile) 2>conftest.er1
a848cd7e 17316 ac_status=$?
ac1cb8d3
VS
17317 grep -v '^ *+' conftest.er1 >conftest.err
17318 rm -f conftest.er1
17319 cat conftest.err >&5
a848cd7e
SC
17320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321 (exit $ac_status); } &&
ea7db9ff
DE
17322 { ac_try='test -z "$ac_c_werror_flag"
17323 || test ! -s conftest.err'
ac1cb8d3
VS
17324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17325 (eval $ac_try) 2>&5
17326 ac_status=$?
17327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328 (exit $ac_status); }; } &&
17329 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17331 (eval $ac_try) 2>&5
17332 ac_status=$?
17333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17334 (exit $ac_status); }; }; then
17335 ac_lo=0 ac_mid=0
17336 while :; do
17337 cat >conftest.$ac_ext <<_ACEOF
17338/* confdefs.h. */
17339_ACEOF
17340cat confdefs.h >>conftest.$ac_ext
17341cat >>conftest.$ac_ext <<_ACEOF
17342/* end confdefs.h. */
17343$ac_includes_default
17344int
17345main ()
17346{
17347static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17348test_array [0] = 0
17349
17350 ;
17351 return 0;
17352}
17353_ACEOF
17354rm -f conftest.$ac_objext
17355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17356 (eval $ac_compile) 2>conftest.er1
a848cd7e 17357 ac_status=$?
ac1cb8d3
VS
17358 grep -v '^ *+' conftest.er1 >conftest.err
17359 rm -f conftest.er1
17360 cat conftest.err >&5
a848cd7e
SC
17361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17362 (exit $ac_status); } &&
ea7db9ff
DE
17363 { ac_try='test -z "$ac_c_werror_flag"
17364 || test ! -s conftest.err'
ac1cb8d3
VS
17365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17366 (eval $ac_try) 2>&5
17367 ac_status=$?
17368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369 (exit $ac_status); }; } &&
17370 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17372 (eval $ac_try) 2>&5
17373 ac_status=$?
17374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17375 (exit $ac_status); }; }; then
17376 ac_hi=$ac_mid; break
17377else
17378 echo "$as_me: failed program was:" >&5
17379sed 's/^/| /' conftest.$ac_ext >&5
17380
17381ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17382 if test $ac_lo -le $ac_mid; then
17383 ac_lo= ac_hi=
17384 break
17385 fi
17386 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17387fi
ac1cb8d3 17388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17389 done
17390else
17391 echo "$as_me: failed program was:" >&5
17392sed 's/^/| /' conftest.$ac_ext >&5
17393
17394cat >conftest.$ac_ext <<_ACEOF
17395/* confdefs.h. */
17396_ACEOF
17397cat confdefs.h >>conftest.$ac_ext
17398cat >>conftest.$ac_ext <<_ACEOF
17399/* end confdefs.h. */
17400$ac_includes_default
17401int
17402main ()
17403{
17404static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17405test_array [0] = 0
17406
17407 ;
17408 return 0;
17409}
17410_ACEOF
17411rm -f conftest.$ac_objext
17412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17413 (eval $ac_compile) 2>conftest.er1
a848cd7e 17414 ac_status=$?
ac1cb8d3
VS
17415 grep -v '^ *+' conftest.er1 >conftest.err
17416 rm -f conftest.er1
17417 cat conftest.err >&5
a848cd7e
SC
17418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17419 (exit $ac_status); } &&
ea7db9ff
DE
17420 { ac_try='test -z "$ac_c_werror_flag"
17421 || test ! -s conftest.err'
ac1cb8d3
VS
17422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17423 (eval $ac_try) 2>&5
17424 ac_status=$?
17425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426 (exit $ac_status); }; } &&
17427 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17429 (eval $ac_try) 2>&5
17430 ac_status=$?
17431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432 (exit $ac_status); }; }; then
17433 ac_hi=-1 ac_mid=-1
17434 while :; do
17435 cat >conftest.$ac_ext <<_ACEOF
17436/* confdefs.h. */
17437_ACEOF
17438cat confdefs.h >>conftest.$ac_ext
17439cat >>conftest.$ac_ext <<_ACEOF
17440/* end confdefs.h. */
17441$ac_includes_default
17442int
17443main ()
17444{
17445static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17446test_array [0] = 0
17447
17448 ;
17449 return 0;
17450}
17451_ACEOF
17452rm -f conftest.$ac_objext
17453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17454 (eval $ac_compile) 2>conftest.er1
a848cd7e 17455 ac_status=$?
ac1cb8d3
VS
17456 grep -v '^ *+' conftest.er1 >conftest.err
17457 rm -f conftest.er1
17458 cat conftest.err >&5
a848cd7e
SC
17459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17460 (exit $ac_status); } &&
ea7db9ff
DE
17461 { ac_try='test -z "$ac_c_werror_flag"
17462 || test ! -s conftest.err'
ac1cb8d3
VS
17463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17464 (eval $ac_try) 2>&5
17465 ac_status=$?
17466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467 (exit $ac_status); }; } &&
17468 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17470 (eval $ac_try) 2>&5
17471 ac_status=$?
17472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473 (exit $ac_status); }; }; then
17474 ac_lo=$ac_mid; break
17475else
17476 echo "$as_me: failed program was:" >&5
17477sed 's/^/| /' conftest.$ac_ext >&5
17478
17479ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17480 if test $ac_mid -le $ac_hi; then
17481 ac_lo= ac_hi=
17482 break
17483 fi
17484 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17485fi
ac1cb8d3 17486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17487 done
17488else
17489 echo "$as_me: failed program was:" >&5
17490sed 's/^/| /' conftest.$ac_ext >&5
17491
17492ac_lo= ac_hi=
17493fi
ac1cb8d3 17494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17495fi
ac1cb8d3 17496rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17497# Binary search between lo and hi bounds.
17498while test "x$ac_lo" != "x$ac_hi"; do
17499 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17500 cat >conftest.$ac_ext <<_ACEOF
17501/* confdefs.h. */
17502_ACEOF
17503cat confdefs.h >>conftest.$ac_ext
17504cat >>conftest.$ac_ext <<_ACEOF
17505/* end confdefs.h. */
17506$ac_includes_default
17507int
17508main ()
17509{
17510static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17511test_array [0] = 0
17512
17513 ;
17514 return 0;
17515}
17516_ACEOF
17517rm -f conftest.$ac_objext
17518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17519 (eval $ac_compile) 2>conftest.er1
a848cd7e 17520 ac_status=$?
ac1cb8d3
VS
17521 grep -v '^ *+' conftest.er1 >conftest.err
17522 rm -f conftest.er1
17523 cat conftest.err >&5
a848cd7e
SC
17524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17525 (exit $ac_status); } &&
ea7db9ff
DE
17526 { ac_try='test -z "$ac_c_werror_flag"
17527 || test ! -s conftest.err'
ac1cb8d3
VS
17528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17529 (eval $ac_try) 2>&5
17530 ac_status=$?
17531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532 (exit $ac_status); }; } &&
17533 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17535 (eval $ac_try) 2>&5
17536 ac_status=$?
17537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538 (exit $ac_status); }; }; then
17539 ac_hi=$ac_mid
17540else
17541 echo "$as_me: failed program was:" >&5
17542sed 's/^/| /' conftest.$ac_ext >&5
17543
17544ac_lo=`expr '(' $ac_mid ')' + 1`
17545fi
ac1cb8d3 17546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17547done
17548case $ac_lo in
17549?*) ac_cv_sizeof_long_long=$ac_lo;;
17550'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17551See \`config.log' for more details." >&5
17552echo "$as_me: error: cannot compute sizeof (long long), 77
17553See \`config.log' for more details." >&2;}
17554 { (exit 1); exit 1; }; } ;;
17555esac
17556else
17557 if test "$cross_compiling" = yes; then
ea7db9ff
DE
17558 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17559See \`config.log' for more details." >&5
17560echo "$as_me: error: cannot run test program while cross compiling
17561See \`config.log' for more details." >&2;}
a848cd7e
SC
17562 { (exit 1); exit 1; }; }
17563else
17564 cat >conftest.$ac_ext <<_ACEOF
17565/* confdefs.h. */
17566_ACEOF
17567cat confdefs.h >>conftest.$ac_ext
17568cat >>conftest.$ac_ext <<_ACEOF
17569/* end confdefs.h. */
17570$ac_includes_default
17571long longval () { return (long) (sizeof (long long)); }
17572unsigned long ulongval () { return (long) (sizeof (long long)); }
17573#include <stdio.h>
17574#include <stdlib.h>
17575int
17576main ()
17577{
17578
17579 FILE *f = fopen ("conftest.val", "w");
17580 if (! f)
17581 exit (1);
17582 if (((long) (sizeof (long long))) < 0)
17583 {
17584 long i = longval ();
17585 if (i != ((long) (sizeof (long long))))
17586 exit (1);
17587 fprintf (f, "%ld\n", i);
17588 }
17589 else
17590 {
17591 unsigned long i = ulongval ();
17592 if (i != ((long) (sizeof (long long))))
17593 exit (1);
17594 fprintf (f, "%lu\n", i);
17595 }
17596 exit (ferror (f) || fclose (f) != 0);
17597
17598 ;
17599 return 0;
17600}
17601_ACEOF
17602rm -f conftest$ac_exeext
17603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17604 (eval $ac_link) 2>&5
17605 ac_status=$?
17606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17609 (eval $ac_try) 2>&5
17610 ac_status=$?
17611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612 (exit $ac_status); }; }; then
17613 ac_cv_sizeof_long_long=`cat conftest.val`
17614else
17615 echo "$as_me: program exited with status $ac_status" >&5
17616echo "$as_me: failed program was:" >&5
17617sed 's/^/| /' conftest.$ac_ext >&5
17618
17619( exit $ac_status )
17620{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17621See \`config.log' for more details." >&5
17622echo "$as_me: error: cannot compute sizeof (long long), 77
17623See \`config.log' for more details." >&2;}
17624 { (exit 1); exit 1; }; }
17625fi
ac1cb8d3 17626rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17627fi
17628fi
17629rm -f conftest.val
17630else
17631 ac_cv_sizeof_long_long=0
17632fi
17633fi
17634echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17635echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17636cat >>confdefs.h <<_ACEOF
17637#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17638_ACEOF
17639
17640
17641 if test "$ac_cv_sizeof_long_long" != "0"; then
17642 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
17643 fi
17644 ;;
17645 * )
17646 echo "$as_me:$LINENO: checking for long long" >&5
17647echo $ECHO_N "checking for long long... $ECHO_C" >&6
17648if test "${ac_cv_type_long_long+set}" = set; then
17649 echo $ECHO_N "(cached) $ECHO_C" >&6
17650else
17651 cat >conftest.$ac_ext <<_ACEOF
17652/* confdefs.h. */
17653_ACEOF
17654cat confdefs.h >>conftest.$ac_ext
17655cat >>conftest.$ac_ext <<_ACEOF
17656/* end confdefs.h. */
17657$ac_includes_default
17658int
17659main ()
17660{
17661if ((long long *) 0)
17662 return 0;
17663if (sizeof (long long))
17664 return 0;
17665 ;
17666 return 0;
17667}
17668_ACEOF
17669rm -f conftest.$ac_objext
17670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17671 (eval $ac_compile) 2>conftest.er1
a848cd7e 17672 ac_status=$?
ac1cb8d3
VS
17673 grep -v '^ *+' conftest.er1 >conftest.err
17674 rm -f conftest.er1
17675 cat conftest.err >&5
a848cd7e
SC
17676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17677 (exit $ac_status); } &&
ea7db9ff
DE
17678 { ac_try='test -z "$ac_c_werror_flag"
17679 || test ! -s conftest.err'
ac1cb8d3
VS
17680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17681 (eval $ac_try) 2>&5
17682 ac_status=$?
17683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684 (exit $ac_status); }; } &&
17685 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
17691 ac_cv_type_long_long=yes
17692else
17693 echo "$as_me: failed program was:" >&5
17694sed 's/^/| /' conftest.$ac_ext >&5
17695
17696ac_cv_type_long_long=no
17697fi
ac1cb8d3 17698rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17699fi
17700echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17701echo "${ECHO_T}$ac_cv_type_long_long" >&6
17702
17703echo "$as_me:$LINENO: checking size of long long" >&5
17704echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17705if test "${ac_cv_sizeof_long_long+set}" = set; then
17706 echo $ECHO_N "(cached) $ECHO_C" >&6
17707else
17708 if test "$ac_cv_type_long_long" = yes; then
17709 # The cast to unsigned long works around a bug in the HP C Compiler
17710 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17711 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17712 # This bug is HP SR number 8606223364.
17713 if test "$cross_compiling" = yes; then
17714 # Depending upon the size, compute the lo and hi bounds.
17715cat >conftest.$ac_ext <<_ACEOF
17716/* confdefs.h. */
17717_ACEOF
17718cat confdefs.h >>conftest.$ac_ext
17719cat >>conftest.$ac_ext <<_ACEOF
17720/* end confdefs.h. */
17721$ac_includes_default
17722int
17723main ()
17724{
17725static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17726test_array [0] = 0
17727
17728 ;
17729 return 0;
17730}
17731_ACEOF
17732rm -f conftest.$ac_objext
17733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17734 (eval $ac_compile) 2>conftest.er1
a848cd7e 17735 ac_status=$?
ac1cb8d3
VS
17736 grep -v '^ *+' conftest.er1 >conftest.err
17737 rm -f conftest.er1
17738 cat conftest.err >&5
a848cd7e
SC
17739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17740 (exit $ac_status); } &&
ea7db9ff
DE
17741 { ac_try='test -z "$ac_c_werror_flag"
17742 || test ! -s conftest.err'
ac1cb8d3
VS
17743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17744 (eval $ac_try) 2>&5
17745 ac_status=$?
17746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747 (exit $ac_status); }; } &&
17748 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17750 (eval $ac_try) 2>&5
17751 ac_status=$?
17752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17753 (exit $ac_status); }; }; then
17754 ac_lo=0 ac_mid=0
17755 while :; do
17756 cat >conftest.$ac_ext <<_ACEOF
17757/* confdefs.h. */
17758_ACEOF
17759cat confdefs.h >>conftest.$ac_ext
17760cat >>conftest.$ac_ext <<_ACEOF
17761/* end confdefs.h. */
17762$ac_includes_default
17763int
17764main ()
17765{
17766static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17767test_array [0] = 0
17768
17769 ;
17770 return 0;
17771}
17772_ACEOF
17773rm -f conftest.$ac_objext
17774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17775 (eval $ac_compile) 2>conftest.er1
a848cd7e 17776 ac_status=$?
ac1cb8d3
VS
17777 grep -v '^ *+' conftest.er1 >conftest.err
17778 rm -f conftest.er1
17779 cat conftest.err >&5
a848cd7e
SC
17780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781 (exit $ac_status); } &&
ea7db9ff
DE
17782 { ac_try='test -z "$ac_c_werror_flag"
17783 || test ! -s conftest.err'
ac1cb8d3
VS
17784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17785 (eval $ac_try) 2>&5
17786 ac_status=$?
17787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788 (exit $ac_status); }; } &&
17789 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17791 (eval $ac_try) 2>&5
17792 ac_status=$?
17793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794 (exit $ac_status); }; }; then
17795 ac_hi=$ac_mid; break
17796else
17797 echo "$as_me: failed program was:" >&5
17798sed 's/^/| /' conftest.$ac_ext >&5
17799
17800ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17801 if test $ac_lo -le $ac_mid; then
17802 ac_lo= ac_hi=
17803 break
17804 fi
17805 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17806fi
ac1cb8d3 17807rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17808 done
17809else
17810 echo "$as_me: failed program was:" >&5
17811sed 's/^/| /' conftest.$ac_ext >&5
17812
17813cat >conftest.$ac_ext <<_ACEOF
17814/* confdefs.h. */
17815_ACEOF
17816cat confdefs.h >>conftest.$ac_ext
17817cat >>conftest.$ac_ext <<_ACEOF
17818/* end confdefs.h. */
17819$ac_includes_default
17820int
17821main ()
17822{
17823static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17824test_array [0] = 0
17825
17826 ;
17827 return 0;
17828}
17829_ACEOF
17830rm -f conftest.$ac_objext
17831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17832 (eval $ac_compile) 2>conftest.er1
a848cd7e 17833 ac_status=$?
ac1cb8d3
VS
17834 grep -v '^ *+' conftest.er1 >conftest.err
17835 rm -f conftest.er1
17836 cat conftest.err >&5
a848cd7e
SC
17837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17838 (exit $ac_status); } &&
ea7db9ff
DE
17839 { ac_try='test -z "$ac_c_werror_flag"
17840 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
17846 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17848 (eval $ac_try) 2>&5
17849 ac_status=$?
17850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17851 (exit $ac_status); }; }; then
17852 ac_hi=-1 ac_mid=-1
17853 while :; do
17854 cat >conftest.$ac_ext <<_ACEOF
17855/* confdefs.h. */
17856_ACEOF
17857cat confdefs.h >>conftest.$ac_ext
17858cat >>conftest.$ac_ext <<_ACEOF
17859/* end confdefs.h. */
17860$ac_includes_default
17861int
17862main ()
17863{
17864static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17865test_array [0] = 0
17866
17867 ;
17868 return 0;
17869}
17870_ACEOF
17871rm -f conftest.$ac_objext
17872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17873 (eval $ac_compile) 2>conftest.er1
a848cd7e 17874 ac_status=$?
ac1cb8d3
VS
17875 grep -v '^ *+' conftest.er1 >conftest.err
17876 rm -f conftest.er1
17877 cat conftest.err >&5
a848cd7e
SC
17878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17879 (exit $ac_status); } &&
ea7db9ff
DE
17880 { ac_try='test -z "$ac_c_werror_flag"
17881 || test ! -s conftest.err'
ac1cb8d3
VS
17882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17883 (eval $ac_try) 2>&5
17884 ac_status=$?
17885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886 (exit $ac_status); }; } &&
17887 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17889 (eval $ac_try) 2>&5
17890 ac_status=$?
17891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892 (exit $ac_status); }; }; then
17893 ac_lo=$ac_mid; break
17894else
17895 echo "$as_me: failed program was:" >&5
17896sed 's/^/| /' conftest.$ac_ext >&5
17897
17898ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17899 if test $ac_mid -le $ac_hi; then
17900 ac_lo= ac_hi=
17901 break
17902 fi
17903 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17904fi
ac1cb8d3 17905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17906 done
17907else
17908 echo "$as_me: failed program was:" >&5
17909sed 's/^/| /' conftest.$ac_ext >&5
17910
17911ac_lo= ac_hi=
17912fi
ac1cb8d3 17913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17914fi
ac1cb8d3 17915rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17916# Binary search between lo and hi bounds.
17917while test "x$ac_lo" != "x$ac_hi"; do
17918 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17919 cat >conftest.$ac_ext <<_ACEOF
17920/* confdefs.h. */
17921_ACEOF
17922cat confdefs.h >>conftest.$ac_ext
17923cat >>conftest.$ac_ext <<_ACEOF
17924/* end confdefs.h. */
17925$ac_includes_default
17926int
17927main ()
17928{
17929static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17930test_array [0] = 0
17931
17932 ;
17933 return 0;
17934}
17935_ACEOF
17936rm -f conftest.$ac_objext
17937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17938 (eval $ac_compile) 2>conftest.er1
a848cd7e 17939 ac_status=$?
ac1cb8d3
VS
17940 grep -v '^ *+' conftest.er1 >conftest.err
17941 rm -f conftest.er1
17942 cat conftest.err >&5
a848cd7e
SC
17943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944 (exit $ac_status); } &&
ea7db9ff
DE
17945 { ac_try='test -z "$ac_c_werror_flag"
17946 || test ! -s conftest.err'
ac1cb8d3
VS
17947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17948 (eval $ac_try) 2>&5
17949 ac_status=$?
17950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17951 (exit $ac_status); }; } &&
17952 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17954 (eval $ac_try) 2>&5
17955 ac_status=$?
17956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17957 (exit $ac_status); }; }; then
17958 ac_hi=$ac_mid
17959else
17960 echo "$as_me: failed program was:" >&5
17961sed 's/^/| /' conftest.$ac_ext >&5
17962
17963ac_lo=`expr '(' $ac_mid ')' + 1`
17964fi
ac1cb8d3 17965rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17966done
17967case $ac_lo in
17968?*) ac_cv_sizeof_long_long=$ac_lo;;
17969'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17970See \`config.log' for more details." >&5
17971echo "$as_me: error: cannot compute sizeof (long long), 77
17972See \`config.log' for more details." >&2;}
17973 { (exit 1); exit 1; }; } ;;
17974esac
17975else
17976 if test "$cross_compiling" = yes; then
ea7db9ff
DE
17977 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17978See \`config.log' for more details." >&5
17979echo "$as_me: error: cannot run test program while cross compiling
17980See \`config.log' for more details." >&2;}
a848cd7e
SC
17981 { (exit 1); exit 1; }; }
17982else
17983 cat >conftest.$ac_ext <<_ACEOF
17984/* confdefs.h. */
17985_ACEOF
17986cat confdefs.h >>conftest.$ac_ext
17987cat >>conftest.$ac_ext <<_ACEOF
17988/* end confdefs.h. */
17989$ac_includes_default
17990long longval () { return (long) (sizeof (long long)); }
17991unsigned long ulongval () { return (long) (sizeof (long long)); }
17992#include <stdio.h>
17993#include <stdlib.h>
17994int
17995main ()
17996{
17997
17998 FILE *f = fopen ("conftest.val", "w");
17999 if (! f)
18000 exit (1);
18001 if (((long) (sizeof (long long))) < 0)
18002 {
18003 long i = longval ();
18004 if (i != ((long) (sizeof (long long))))
18005 exit (1);
18006 fprintf (f, "%ld\n", i);
18007 }
18008 else
18009 {
18010 unsigned long i = ulongval ();
18011 if (i != ((long) (sizeof (long long))))
18012 exit (1);
18013 fprintf (f, "%lu\n", i);
18014 }
18015 exit (ferror (f) || fclose (f) != 0);
18016
18017 ;
18018 return 0;
18019}
18020_ACEOF
18021rm -f conftest$ac_exeext
18022if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18023 (eval $ac_link) 2>&5
18024 ac_status=$?
18025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18026 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18028 (eval $ac_try) 2>&5
18029 ac_status=$?
18030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18031 (exit $ac_status); }; }; then
18032 ac_cv_sizeof_long_long=`cat conftest.val`
18033else
18034 echo "$as_me: program exited with status $ac_status" >&5
18035echo "$as_me: failed program was:" >&5
18036sed 's/^/| /' conftest.$ac_ext >&5
18037
18038( exit $ac_status )
18039{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18040See \`config.log' for more details." >&5
18041echo "$as_me: error: cannot compute sizeof (long long), 77
18042See \`config.log' for more details." >&2;}
18043 { (exit 1); exit 1; }; }
18044fi
ac1cb8d3 18045rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18046fi
18047fi
18048rm -f conftest.val
18049else
18050 ac_cv_sizeof_long_long=0
18051fi
18052fi
18053echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18054echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18055cat >>confdefs.h <<_ACEOF
18056#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18057_ACEOF
18058
18059
18060esac
18061
18062echo "$as_me:$LINENO: checking size of wchar_t" >&5
18063echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
18064if test "${wx_cv_sizeof_wchar_t+set}" = set; then
18065 echo $ECHO_N "(cached) $ECHO_C" >&6
18066else
18067
18068 if test "$cross_compiling" = yes; then
18069
18070 case "${host}" in
18071 *-pc-msdosdjgpp )
18072 wx_cv_sizeof_wchar_t=0
18073 ;;
18074 * )
18075 wx_cv_sizeof_wchar_t=4
18076 ;;
18077 esac
18078
18079
18080else
18081 cat >conftest.$ac_ext <<_ACEOF
18082/* confdefs.h. */
18083_ACEOF
18084cat confdefs.h >>conftest.$ac_ext
18085cat >>conftest.$ac_ext <<_ACEOF
18086/* end confdefs.h. */
18087
18088 /* DJGPP only has fake wchar_t: */
18089 #ifdef __DJGPP__
18090 # error "fake wchar_t"
18091 #endif
18092 #ifdef HAVE_WCHAR_H
18093 # ifdef __CYGWIN__
18094 # include <stddef.h>
18095 # endif
18096 # include <wchar.h>
18097 #endif
18098 #ifdef HAVE_STDLIB_H
18099 # include <stdlib.h>
18100 #endif
18101 #include <stdio.h>
18102 int main()
18103 {
18104 FILE *f=fopen("conftestval", "w");
18105 if (!f) exit(1);
18106 fprintf(f, "%i", sizeof(wchar_t));
18107 exit(0);
18108 }
18109
18110_ACEOF
18111rm -f conftest$ac_exeext
18112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18113 (eval $ac_link) 2>&5
18114 ac_status=$?
18115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18118 (eval $ac_try) 2>&5
18119 ac_status=$?
18120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18121 (exit $ac_status); }; }; then
18122 wx_cv_sizeof_wchar_t=`cat conftestval`
18123else
18124 echo "$as_me: program exited with status $ac_status" >&5
18125echo "$as_me: failed program was:" >&5
18126sed 's/^/| /' conftest.$ac_ext >&5
18127
18128( exit $ac_status )
18129wx_cv_sizeof_wchar_t=0
18130fi
ac1cb8d3 18131rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18132fi
18133
18134fi
18135echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
18136echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
18137
18138cat >>confdefs.h <<_ACEOF
18139#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
18140_ACEOF
18141
18142
18143# Check whether --enable-largefile or --disable-largefile was given.
18144if test "${enable_largefile+set}" = set; then
18145 enableval="$enable_largefile"
18146
18147fi;
18148if test "$enable_largefile" != no; then
18149 wx_largefile=no
18150
18151 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18152echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
18153if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18154 echo $ECHO_N "(cached) $ECHO_C" >&6
18155else
18156
18157 cat >conftest.$ac_ext <<_ACEOF
18158/* confdefs.h. */
18159_ACEOF
18160cat confdefs.h >>conftest.$ac_ext
18161cat >>conftest.$ac_ext <<_ACEOF
18162/* end confdefs.h. */
18163#define _FILE_OFFSET_BITS 64
18164 #include <sys/types.h>
18165int
18166main ()
18167{
18168typedef struct {
18169 unsigned int field: sizeof(off_t) == 8;
18170} wxlf;
18171
18172 ;
18173 return 0;
18174}
18175_ACEOF
18176rm -f conftest.$ac_objext
18177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18178 (eval $ac_compile) 2>conftest.er1
a848cd7e 18179 ac_status=$?
ac1cb8d3
VS
18180 grep -v '^ *+' conftest.er1 >conftest.err
18181 rm -f conftest.er1
18182 cat conftest.err >&5
a848cd7e
SC
18183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18184 (exit $ac_status); } &&
ea7db9ff
DE
18185 { ac_try='test -z "$ac_c_werror_flag"
18186 || test ! -s conftest.err'
ac1cb8d3
VS
18187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18188 (eval $ac_try) 2>&5
18189 ac_status=$?
18190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18191 (exit $ac_status); }; } &&
18192 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18194 (eval $ac_try) 2>&5
18195 ac_status=$?
18196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18197 (exit $ac_status); }; }; then
18198 ac_cv_sys_file_offset_bits=64
18199else
18200 echo "$as_me: failed program was:" >&5
18201sed 's/^/| /' conftest.$ac_ext >&5
18202
18203ac_cv_sys_file_offset_bits=no
18204fi
ac1cb8d3 18205rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18206
18207
18208fi
18209echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18210echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
18211
18212 if test "$ac_cv_sys_file_offset_bits" != no; then
18213 wx_largefile=yes
18214 cat >>confdefs.h <<_ACEOF
18215#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18216_ACEOF
18217
18218 fi
18219
18220 if test "x$wx_largefile" != "xyes"; then
18221
18222 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18223echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
18224if test "${ac_cv_sys_large_files+set}" = set; then
18225 echo $ECHO_N "(cached) $ECHO_C" >&6
18226else
18227
18228 cat >conftest.$ac_ext <<_ACEOF
18229/* confdefs.h. */
18230_ACEOF
18231cat confdefs.h >>conftest.$ac_ext
18232cat >>conftest.$ac_ext <<_ACEOF
18233/* end confdefs.h. */
18234#define _LARGE_FILES 1
18235 #include <sys/types.h>
18236int
18237main ()
18238{
18239typedef struct {
18240 unsigned int field: sizeof(off_t) == 8;
18241} wxlf;
18242
18243 ;
18244 return 0;
18245}
18246_ACEOF
18247rm -f conftest.$ac_objext
18248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18249 (eval $ac_compile) 2>conftest.er1
a848cd7e 18250 ac_status=$?
ac1cb8d3
VS
18251 grep -v '^ *+' conftest.er1 >conftest.err
18252 rm -f conftest.er1
18253 cat conftest.err >&5
a848cd7e
SC
18254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255 (exit $ac_status); } &&
ea7db9ff
DE
18256 { ac_try='test -z "$ac_c_werror_flag"
18257 || test ! -s conftest.err'
ac1cb8d3
VS
18258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18259 (eval $ac_try) 2>&5
18260 ac_status=$?
18261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18262 (exit $ac_status); }; } &&
18263 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18265 (eval $ac_try) 2>&5
18266 ac_status=$?
18267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18268 (exit $ac_status); }; }; then
18269 ac_cv_sys_large_files=1
18270else
18271 echo "$as_me: failed program was:" >&5
18272sed 's/^/| /' conftest.$ac_ext >&5
18273
18274ac_cv_sys_large_files=no
18275fi
ac1cb8d3 18276rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18277
18278
18279fi
18280echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18281echo "${ECHO_T}$ac_cv_sys_large_files" >&6
18282
18283 if test "$ac_cv_sys_large_files" != no; then
18284 wx_largefile=yes
18285 cat >>confdefs.h <<_ACEOF
18286#define _LARGE_FILES $ac_cv_sys_large_files
18287_ACEOF
18288
18289 fi
18290
18291 fi
18292
18293 echo "$as_me:$LINENO: checking if large file support is available" >&5
18294echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
18295 if test "x$wx_largefile" = "xyes"; then
18296 cat >>confdefs.h <<\_ACEOF
18297#define HAVE_LARGEFILE_SUPPORT 1
18298_ACEOF
18299
18300 fi
18301 echo "$as_me:$LINENO: result: $wx_largefile" >&5
18302echo "${ECHO_T}$wx_largefile" >&6
18303fi
18304
18305
18306if test "x$wx_largefile" = "xyes"; then
18307 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
18308 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
18309 else
18310 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
18311 fi
18312 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
18313fi
18314
18315echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
18316echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
18317if test "${ac_cv_c_bigendian+set}" = set; then
18318 echo $ECHO_N "(cached) $ECHO_C" >&6
18319else
18320 ac_cv_c_bigendian=unknown
18321# See if sys/param.h defines the BYTE_ORDER macro.
18322cat >conftest.$ac_ext <<_ACEOF
18323/* confdefs.h. */
18324_ACEOF
18325cat confdefs.h >>conftest.$ac_ext
18326cat >>conftest.$ac_ext <<_ACEOF
18327/* end confdefs.h. */
18328#include <sys/types.h>
18329#include <sys/param.h>
18330int
18331main ()
18332{
18333
18334#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
18335 bogus endian macros
18336#endif
18337 ;
18338 return 0;
18339}
18340_ACEOF
18341rm -f conftest.$ac_objext
18342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18343 (eval $ac_compile) 2>conftest.er1
a848cd7e 18344 ac_status=$?
ac1cb8d3
VS
18345 grep -v '^ *+' conftest.er1 >conftest.err
18346 rm -f conftest.er1
18347 cat conftest.err >&5
a848cd7e
SC
18348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18349 (exit $ac_status); } &&
ea7db9ff
DE
18350 { ac_try='test -z "$ac_c_werror_flag"
18351 || test ! -s conftest.err'
ac1cb8d3
VS
18352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18353 (eval $ac_try) 2>&5
18354 ac_status=$?
18355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356 (exit $ac_status); }; } &&
18357 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18359 (eval $ac_try) 2>&5
18360 ac_status=$?
18361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18362 (exit $ac_status); }; }; then
18363 # It does; now see whether it defined to BIG_ENDIAN or not.
18364cat >conftest.$ac_ext <<_ACEOF
18365/* confdefs.h. */
18366_ACEOF
18367cat confdefs.h >>conftest.$ac_ext
18368cat >>conftest.$ac_ext <<_ACEOF
18369/* end confdefs.h. */
18370#include <sys/types.h>
18371#include <sys/param.h>
18372int
18373main ()
18374{
18375
18376#if BYTE_ORDER != BIG_ENDIAN
18377 not big endian
18378#endif
18379 ;
18380 return 0;
18381}
18382_ACEOF
18383rm -f conftest.$ac_objext
18384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18385 (eval $ac_compile) 2>conftest.er1
a848cd7e 18386 ac_status=$?
ac1cb8d3
VS
18387 grep -v '^ *+' conftest.er1 >conftest.err
18388 rm -f conftest.er1
18389 cat conftest.err >&5
a848cd7e
SC
18390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18391 (exit $ac_status); } &&
ea7db9ff
DE
18392 { ac_try='test -z "$ac_c_werror_flag"
18393 || test ! -s conftest.err'
ac1cb8d3
VS
18394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18395 (eval $ac_try) 2>&5
18396 ac_status=$?
18397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398 (exit $ac_status); }; } &&
18399 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18401 (eval $ac_try) 2>&5
18402 ac_status=$?
18403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18404 (exit $ac_status); }; }; then
18405 ac_cv_c_bigendian=yes
18406else
18407 echo "$as_me: failed program was:" >&5
18408sed 's/^/| /' conftest.$ac_ext >&5
18409
18410ac_cv_c_bigendian=no
18411fi
ac1cb8d3 18412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18413else
18414 echo "$as_me: failed program was:" >&5
18415sed 's/^/| /' conftest.$ac_ext >&5
18416
18417fi
ac1cb8d3 18418rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18419if test $ac_cv_c_bigendian = unknown; then
18420if test "$cross_compiling" = yes; then
18421 ac_cv_c_bigendian=unknown
18422else
18423 cat >conftest.$ac_ext <<_ACEOF
18424/* confdefs.h. */
18425_ACEOF
18426cat confdefs.h >>conftest.$ac_ext
18427cat >>conftest.$ac_ext <<_ACEOF
18428/* end confdefs.h. */
18429main () {
18430 /* Are we little or big endian? From Harbison&Steele. */
18431 union
18432 {
18433 long l;
18434 char c[sizeof (long)];
18435 } u;
18436 u.l = 1;
18437 exit (u.c[sizeof (long) - 1] == 1);
18438}
18439_ACEOF
18440rm -f conftest$ac_exeext
18441if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18442 (eval $ac_link) 2>&5
18443 ac_status=$?
18444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18445 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18447 (eval $ac_try) 2>&5
18448 ac_status=$?
18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); }; }; then
18451 ac_cv_c_bigendian=no
18452else
18453 echo "$as_me: program exited with status $ac_status" >&5
18454echo "$as_me: failed program was:" >&5
18455sed 's/^/| /' conftest.$ac_ext >&5
18456
18457( exit $ac_status )
18458ac_cv_c_bigendian=yes
18459fi
ac1cb8d3 18460rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18461fi
18462fi
18463fi
18464echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
18465echo "${ECHO_T}$ac_cv_c_bigendian" >&6
18466if test $ac_cv_c_bigendian = unknown; then
18467 { 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
18468echo "$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;}
18469fi
18470if test $ac_cv_c_bigendian = yes; then
18471 cat >>confdefs.h <<\_ACEOF
18472#define WORDS_BIGENDIAN 1
18473_ACEOF
18474
18475fi
18476
18477
18478ac_ext=cc
18479ac_cpp='$CXXCPP $CPPFLAGS'
18480ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18481ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18482ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18483echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
18484echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
18485if test -z "$CXXCPP"; then
18486 if test "${ac_cv_prog_CXXCPP+set}" = set; then
18487 echo $ECHO_N "(cached) $ECHO_C" >&6
18488else
18489 # Double quotes because CXXCPP needs to be expanded
18490 for CXXCPP in "$CXX -E" "/lib/cpp"
18491 do
18492 ac_preproc_ok=false
18493for ac_cxx_preproc_warn_flag in '' yes
18494do
18495 # Use a header file that comes with gcc, so configuring glibc
18496 # with a fresh cross-compiler works.
18497 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18498 # <limits.h> exists even on freestanding compilers.
18499 # On the NeXT, cc -E runs the code through the compiler's parser,
18500 # not just through cpp. "Syntax error" is here to catch this case.
18501 cat >conftest.$ac_ext <<_ACEOF
18502/* confdefs.h. */
18503_ACEOF
18504cat confdefs.h >>conftest.$ac_ext
18505cat >>conftest.$ac_ext <<_ACEOF
18506/* end confdefs.h. */
18507#ifdef __STDC__
18508# include <limits.h>
18509#else
18510# include <assert.h>
18511#endif
ac1cb8d3 18512 Syntax error
a848cd7e
SC
18513_ACEOF
18514if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18515 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18516 ac_status=$?
18517 grep -v '^ *+' conftest.er1 >conftest.err
18518 rm -f conftest.er1
18519 cat conftest.err >&5
18520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18521 (exit $ac_status); } >/dev/null; then
18522 if test -s conftest.err; then
18523 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18524 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18525 else
18526 ac_cpp_err=
18527 fi
18528else
18529 ac_cpp_err=yes
18530fi
18531if test -z "$ac_cpp_err"; then
18532 :
18533else
18534 echo "$as_me: failed program was:" >&5
18535sed 's/^/| /' conftest.$ac_ext >&5
18536
18537 # Broken: fails on valid input.
18538continue
18539fi
18540rm -f conftest.err conftest.$ac_ext
18541
18542 # OK, works on sane cases. Now check whether non-existent headers
18543 # can be detected and how.
18544 cat >conftest.$ac_ext <<_ACEOF
18545/* confdefs.h. */
18546_ACEOF
18547cat confdefs.h >>conftest.$ac_ext
18548cat >>conftest.$ac_ext <<_ACEOF
18549/* end confdefs.h. */
18550#include <ac_nonexistent.h>
18551_ACEOF
18552if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18553 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18554 ac_status=$?
18555 grep -v '^ *+' conftest.er1 >conftest.err
18556 rm -f conftest.er1
18557 cat conftest.err >&5
18558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18559 (exit $ac_status); } >/dev/null; then
18560 if test -s conftest.err; then
18561 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18562 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18563 else
18564 ac_cpp_err=
18565 fi
18566else
18567 ac_cpp_err=yes
18568fi
18569if test -z "$ac_cpp_err"; then
18570 # Broken: success on invalid input.
18571continue
18572else
18573 echo "$as_me: failed program was:" >&5
18574sed 's/^/| /' conftest.$ac_ext >&5
18575
18576 # Passes both tests.
18577ac_preproc_ok=:
18578break
18579fi
18580rm -f conftest.err conftest.$ac_ext
18581
18582done
18583# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18584rm -f conftest.err conftest.$ac_ext
18585if $ac_preproc_ok; then
18586 break
18587fi
18588
18589 done
18590 ac_cv_prog_CXXCPP=$CXXCPP
18591
18592fi
18593 CXXCPP=$ac_cv_prog_CXXCPP
18594else
18595 ac_cv_prog_CXXCPP=$CXXCPP
18596fi
18597echo "$as_me:$LINENO: result: $CXXCPP" >&5
18598echo "${ECHO_T}$CXXCPP" >&6
18599ac_preproc_ok=false
18600for ac_cxx_preproc_warn_flag in '' yes
18601do
18602 # Use a header file that comes with gcc, so configuring glibc
18603 # with a fresh cross-compiler works.
18604 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18605 # <limits.h> exists even on freestanding compilers.
18606 # On the NeXT, cc -E runs the code through the compiler's parser,
18607 # not just through cpp. "Syntax error" is here to catch this case.
18608 cat >conftest.$ac_ext <<_ACEOF
18609/* confdefs.h. */
18610_ACEOF
18611cat confdefs.h >>conftest.$ac_ext
18612cat >>conftest.$ac_ext <<_ACEOF
18613/* end confdefs.h. */
18614#ifdef __STDC__
18615# include <limits.h>
18616#else
18617# include <assert.h>
18618#endif
ac1cb8d3 18619 Syntax error
a848cd7e
SC
18620_ACEOF
18621if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18622 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18623 ac_status=$?
18624 grep -v '^ *+' conftest.er1 >conftest.err
18625 rm -f conftest.er1
18626 cat conftest.err >&5
18627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18628 (exit $ac_status); } >/dev/null; then
18629 if test -s conftest.err; then
18630 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18631 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18632 else
18633 ac_cpp_err=
18634 fi
18635else
18636 ac_cpp_err=yes
18637fi
18638if test -z "$ac_cpp_err"; then
18639 :
18640else
18641 echo "$as_me: failed program was:" >&5
18642sed 's/^/| /' conftest.$ac_ext >&5
18643
18644 # Broken: fails on valid input.
18645continue
18646fi
18647rm -f conftest.err conftest.$ac_ext
18648
18649 # OK, works on sane cases. Now check whether non-existent headers
18650 # can be detected and how.
18651 cat >conftest.$ac_ext <<_ACEOF
18652/* confdefs.h. */
18653_ACEOF
18654cat confdefs.h >>conftest.$ac_ext
18655cat >>conftest.$ac_ext <<_ACEOF
18656/* end confdefs.h. */
18657#include <ac_nonexistent.h>
18658_ACEOF
18659if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18660 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18661 ac_status=$?
18662 grep -v '^ *+' conftest.er1 >conftest.err
18663 rm -f conftest.er1
18664 cat conftest.err >&5
18665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18666 (exit $ac_status); } >/dev/null; then
18667 if test -s conftest.err; then
18668 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18669 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18670 else
18671 ac_cpp_err=
18672 fi
18673else
18674 ac_cpp_err=yes
18675fi
18676if test -z "$ac_cpp_err"; then
18677 # Broken: success on invalid input.
18678continue
18679else
18680 echo "$as_me: failed program was:" >&5
18681sed 's/^/| /' conftest.$ac_ext >&5
18682
18683 # Passes both tests.
18684ac_preproc_ok=:
18685break
18686fi
18687rm -f conftest.err conftest.$ac_ext
18688
18689done
18690# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18691rm -f conftest.err conftest.$ac_ext
18692if $ac_preproc_ok; then
18693 :
18694else
18695 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18696See \`config.log' for more details." >&5
18697echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18698See \`config.log' for more details." >&2;}
18699 { (exit 1); exit 1; }; }
18700fi
18701
18702ac_ext=cc
18703ac_cpp='$CXXCPP $CPPFLAGS'
18704ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18705ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18706ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18707
18708
18709
18710
18711
18712 ac_ext=cc
18713ac_cpp='$CXXCPP $CPPFLAGS'
18714ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18715ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18716ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18717
18718
18719
18720for ac_header in iostream
18721do
18722as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18723if eval "test \"\${$as_ac_Header+set}\" = set"; then
18724 echo "$as_me:$LINENO: checking for $ac_header" >&5
18725echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18726if eval "test \"\${$as_ac_Header+set}\" = set"; then
18727 echo $ECHO_N "(cached) $ECHO_C" >&6
18728fi
18729echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18730echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18731else
18732 # Is the header compilable?
18733echo "$as_me:$LINENO: checking $ac_header usability" >&5
18734echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18735cat >conftest.$ac_ext <<_ACEOF
18736/* confdefs.h. */
18737_ACEOF
18738cat confdefs.h >>conftest.$ac_ext
18739cat >>conftest.$ac_ext <<_ACEOF
18740/* end confdefs.h. */
18741$ac_includes_default
18742#include <$ac_header>
18743_ACEOF
18744rm -f conftest.$ac_objext
18745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18746 (eval $ac_compile) 2>conftest.er1
a848cd7e 18747 ac_status=$?
ac1cb8d3
VS
18748 grep -v '^ *+' conftest.er1 >conftest.err
18749 rm -f conftest.er1
18750 cat conftest.err >&5
a848cd7e
SC
18751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18752 (exit $ac_status); } &&
ea7db9ff
DE
18753 { ac_try='test -z "$ac_cxx_werror_flag"
18754 || test ! -s conftest.err'
ac1cb8d3
VS
18755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18756 (eval $ac_try) 2>&5
18757 ac_status=$?
18758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18759 (exit $ac_status); }; } &&
18760 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18762 (eval $ac_try) 2>&5
18763 ac_status=$?
18764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18765 (exit $ac_status); }; }; then
18766 ac_header_compiler=yes
18767else
18768 echo "$as_me: failed program was:" >&5
18769sed 's/^/| /' conftest.$ac_ext >&5
18770
18771ac_header_compiler=no
18772fi
ac1cb8d3 18773rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18774echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18775echo "${ECHO_T}$ac_header_compiler" >&6
18776
18777# Is the header present?
18778echo "$as_me:$LINENO: checking $ac_header presence" >&5
18779echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18780cat >conftest.$ac_ext <<_ACEOF
18781/* confdefs.h. */
18782_ACEOF
18783cat confdefs.h >>conftest.$ac_ext
18784cat >>conftest.$ac_ext <<_ACEOF
18785/* end confdefs.h. */
18786#include <$ac_header>
18787_ACEOF
18788if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18789 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18790 ac_status=$?
18791 grep -v '^ *+' conftest.er1 >conftest.err
18792 rm -f conftest.er1
18793 cat conftest.err >&5
18794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18795 (exit $ac_status); } >/dev/null; then
18796 if test -s conftest.err; then
18797 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18798 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18799 else
18800 ac_cpp_err=
18801 fi
18802else
18803 ac_cpp_err=yes
18804fi
18805if test -z "$ac_cpp_err"; then
18806 ac_header_preproc=yes
18807else
18808 echo "$as_me: failed program was:" >&5
18809sed 's/^/| /' conftest.$ac_ext >&5
18810
18811 ac_header_preproc=no
18812fi
18813rm -f conftest.err conftest.$ac_ext
18814echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18815echo "${ECHO_T}$ac_header_preproc" >&6
18816
18817# So? What about this header?
ac1cb8d3
VS
18818case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
18819 yes:no: )
a848cd7e
SC
18820 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18821echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
18822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18823echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18824 ac_header_preproc=yes
a848cd7e 18825 ;;
ac1cb8d3 18826 no:yes:* )
a848cd7e
SC
18827 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18828echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
18829 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18830echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18831 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18832echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18833 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18834echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
18835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18836echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
18837 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18838echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
18839 (
18840 cat <<\_ASBOX
ac1cb8d3
VS
18841## ----------------------------------------- ##
18842## Report this to wx-dev@lists.wxwidgets.org ##
18843## ----------------------------------------- ##
a848cd7e
SC
18844_ASBOX
18845 ) |
18846 sed "s/^/$as_me: WARNING: /" >&2
18847 ;;
18848esac
18849echo "$as_me:$LINENO: checking for $ac_header" >&5
18850echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18851if eval "test \"\${$as_ac_Header+set}\" = set"; then
18852 echo $ECHO_N "(cached) $ECHO_C" >&6
18853else
ac1cb8d3 18854 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
18855fi
18856echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18857echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18858
18859fi
18860if test `eval echo '${'$as_ac_Header'}'` = yes; then
18861 cat >>confdefs.h <<_ACEOF
18862#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18863_ACEOF
18864
18865fi
18866
18867done
18868
18869
18870 if test "$ac_cv_header_iostream" = "yes" ; then
18871 :
18872 else
18873 cat >>confdefs.h <<\_ACEOF
18874#define wxUSE_IOSTREAMH 1
18875_ACEOF
18876
18877 fi
18878
18879 ac_ext=c
18880ac_cpp='$CPP $CPPFLAGS'
18881ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18882ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18883ac_compiler_gnu=$ac_cv_c_compiler_gnu
18884
18885
18886
18887
18888 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
18889echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
18890if test "${wx_cv_cpp_bool+set}" = set; then
18891 echo $ECHO_N "(cached) $ECHO_C" >&6
18892else
18893
18894
18895
18896 ac_ext=cc
18897ac_cpp='$CXXCPP $CPPFLAGS'
18898ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18899ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18900ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18901
18902
18903 cat >conftest.$ac_ext <<_ACEOF
18904/* confdefs.h. */
18905_ACEOF
18906cat confdefs.h >>conftest.$ac_ext
18907cat >>conftest.$ac_ext <<_ACEOF
18908/* end confdefs.h. */
18909
18910
18911int
18912main ()
18913{
18914
18915 bool b = true;
18916
18917 return 0;
18918
18919 ;
18920 return 0;
18921}
18922_ACEOF
18923rm -f conftest.$ac_objext
18924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18925 (eval $ac_compile) 2>conftest.er1
a848cd7e 18926 ac_status=$?
ac1cb8d3
VS
18927 grep -v '^ *+' conftest.er1 >conftest.err
18928 rm -f conftest.er1
18929 cat conftest.err >&5
a848cd7e
SC
18930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18931 (exit $ac_status); } &&
ea7db9ff
DE
18932 { ac_try='test -z "$ac_cxx_werror_flag"
18933 || test ! -s conftest.err'
ac1cb8d3
VS
18934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18935 (eval $ac_try) 2>&5
18936 ac_status=$?
18937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18938 (exit $ac_status); }; } &&
18939 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18941 (eval $ac_try) 2>&5
18942 ac_status=$?
18943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944 (exit $ac_status); }; }; then
18945
18946 wx_cv_cpp_bool=yes
18947
18948else
18949 echo "$as_me: failed program was:" >&5
18950sed 's/^/| /' conftest.$ac_ext >&5
18951
18952
18953 wx_cv_cpp_bool=no
18954
18955
18956fi
ac1cb8d3 18957rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18958
18959 ac_ext=c
18960ac_cpp='$CPP $CPPFLAGS'
18961ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18962ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18963ac_compiler_gnu=$ac_cv_c_compiler_gnu
18964
18965
18966fi
18967echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
18968echo "${ECHO_T}$wx_cv_cpp_bool" >&6
18969
18970 if test "$wx_cv_cpp_bool" = "yes"; then
18971 cat >>confdefs.h <<\_ACEOF
18972#define HAVE_BOOL 1
18973_ACEOF
18974
18975 fi
18976
18977
18978
18979 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
18980echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
18981if test "${wx_cv_explicit+set}" = set; then
18982 echo $ECHO_N "(cached) $ECHO_C" >&6
18983else
18984
18985
18986
18987 ac_ext=cc
18988ac_cpp='$CXXCPP $CPPFLAGS'
18989ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18990ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18991ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18992
18993
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
19001 class Foo { public: explicit Foo(int) {} };
19002
19003int
19004main ()
19005{
19006
19007 return 0;
19008
19009 ;
19010 return 0;
19011}
19012_ACEOF
19013rm -f conftest.$ac_objext
19014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19015 (eval $ac_compile) 2>conftest.er1
a848cd7e 19016 ac_status=$?
ac1cb8d3
VS
19017 grep -v '^ *+' conftest.er1 >conftest.err
19018 rm -f conftest.er1
19019 cat conftest.err >&5
a848cd7e
SC
19020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19021 (exit $ac_status); } &&
ea7db9ff
DE
19022 { ac_try='test -z "$ac_cxx_werror_flag"
19023 || test ! -s conftest.err'
ac1cb8d3
VS
19024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19025 (eval $ac_try) 2>&5
19026 ac_status=$?
19027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028 (exit $ac_status); }; } &&
19029 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19031 (eval $ac_try) 2>&5
19032 ac_status=$?
19033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19034 (exit $ac_status); }; }; then
19035
19036 cat >conftest.$ac_ext <<_ACEOF
19037/* confdefs.h. */
19038_ACEOF
19039cat confdefs.h >>conftest.$ac_ext
19040cat >>conftest.$ac_ext <<_ACEOF
19041/* end confdefs.h. */
19042
19043 class Foo { public: explicit Foo(int) {} };
19044 static void TakeFoo(const Foo& foo) { }
19045
19046int
19047main ()
19048{
19049
19050 TakeFoo(17);
19051 return 0;
19052
19053 ;
19054 return 0;
19055}
19056_ACEOF
19057rm -f conftest.$ac_objext
19058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19059 (eval $ac_compile) 2>conftest.er1
a848cd7e 19060 ac_status=$?
ac1cb8d3
VS
19061 grep -v '^ *+' conftest.er1 >conftest.err
19062 rm -f conftest.er1
19063 cat conftest.err >&5
a848cd7e
SC
19064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19065 (exit $ac_status); } &&
ea7db9ff
DE
19066 { ac_try='test -z "$ac_cxx_werror_flag"
19067 || test ! -s conftest.err'
ac1cb8d3
VS
19068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19069 (eval $ac_try) 2>&5
19070 ac_status=$?
19071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072 (exit $ac_status); }; } &&
19073 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19075 (eval $ac_try) 2>&5
19076 ac_status=$?
19077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078 (exit $ac_status); }; }; then
19079 wx_cv_explicit=no
19080else
19081 echo "$as_me: failed program was:" >&5
19082sed 's/^/| /' conftest.$ac_ext >&5
19083
19084wx_cv_explicit=yes
19085
19086fi
ac1cb8d3 19087rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19088
19089else
19090 echo "$as_me: failed program was:" >&5
19091sed 's/^/| /' conftest.$ac_ext >&5
19092
19093wx_cv_explicit=no
19094
19095fi
ac1cb8d3 19096rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19097
19098 ac_ext=c
19099ac_cpp='$CPP $CPPFLAGS'
19100ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19101ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19102ac_compiler_gnu=$ac_cv_c_compiler_gnu
19103
19104
19105fi
19106echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
19107echo "${ECHO_T}$wx_cv_explicit" >&6
19108
19109 if test "$wx_cv_explicit" = "yes"; then
19110 cat >>confdefs.h <<\_ACEOF
19111#define HAVE_EXPLICIT 1
19112_ACEOF
19113
19114 fi
19115
19116
19117echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
19118echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
19119if test "${ac_cv_cxx_const_cast+set}" = set; then
19120 echo $ECHO_N "(cached) $ECHO_C" >&6
19121else
19122
19123
19124 ac_ext=cc
19125ac_cpp='$CXXCPP $CPPFLAGS'
19126ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19127ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19128ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19129
19130 cat >conftest.$ac_ext <<_ACEOF
19131/* confdefs.h. */
19132_ACEOF
19133cat confdefs.h >>conftest.$ac_ext
19134cat >>conftest.$ac_ext <<_ACEOF
19135/* end confdefs.h. */
19136
19137int
19138main ()
19139{
19140int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
19141 ;
19142 return 0;
19143}
19144_ACEOF
19145rm -f conftest.$ac_objext
19146if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19147 (eval $ac_compile) 2>conftest.er1
a848cd7e 19148 ac_status=$?
ac1cb8d3
VS
19149 grep -v '^ *+' conftest.er1 >conftest.err
19150 rm -f conftest.er1
19151 cat conftest.err >&5
a848cd7e
SC
19152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153 (exit $ac_status); } &&
ea7db9ff
DE
19154 { ac_try='test -z "$ac_cxx_werror_flag"
19155 || test ! -s conftest.err'
ac1cb8d3
VS
19156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19157 (eval $ac_try) 2>&5
19158 ac_status=$?
19159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160 (exit $ac_status); }; } &&
19161 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19163 (eval $ac_try) 2>&5
19164 ac_status=$?
19165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19166 (exit $ac_status); }; }; then
19167 ac_cv_cxx_const_cast=yes
19168else
19169 echo "$as_me: failed program was:" >&5
19170sed 's/^/| /' conftest.$ac_ext >&5
19171
19172ac_cv_cxx_const_cast=no
19173fi
ac1cb8d3 19174rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19175 ac_ext=c
19176ac_cpp='$CPP $CPPFLAGS'
19177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19179ac_compiler_gnu=$ac_cv_c_compiler_gnu
19180
19181
19182fi
19183echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
19184echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
19185if test "$ac_cv_cxx_const_cast" = yes; then
19186
19187cat >>confdefs.h <<\_ACEOF
19188#define HAVE_CONST_CAST
19189_ACEOF
19190
19191fi
19192
19193echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
19194echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
19195if test "${ac_cv_cxx_static_cast+set}" = set; then
19196 echo $ECHO_N "(cached) $ECHO_C" >&6
19197else
19198
19199
19200 ac_ext=cc
19201ac_cpp='$CXXCPP $CPPFLAGS'
19202ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19203ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19204ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19205
19206 cat >conftest.$ac_ext <<_ACEOF
19207/* confdefs.h. */
19208_ACEOF
19209cat confdefs.h >>conftest.$ac_ext
19210cat >>conftest.$ac_ext <<_ACEOF
19211/* end confdefs.h. */
19212#include <typeinfo>
19213class Base { public : Base () {} virtual void f () = 0; };
19214class Derived : public Base { public : Derived () {} virtual void f () {} };
19215int g (Derived&) { return 0; }
19216int
19217main ()
19218{
19219
19220Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
19221 ;
19222 return 0;
19223}
19224_ACEOF
19225rm -f conftest.$ac_objext
19226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19227 (eval $ac_compile) 2>conftest.er1
a848cd7e 19228 ac_status=$?
ac1cb8d3
VS
19229 grep -v '^ *+' conftest.er1 >conftest.err
19230 rm -f conftest.er1
19231 cat conftest.err >&5
a848cd7e
SC
19232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19233 (exit $ac_status); } &&
ea7db9ff
DE
19234 { ac_try='test -z "$ac_cxx_werror_flag"
19235 || test ! -s conftest.err'
ac1cb8d3
VS
19236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19237 (eval $ac_try) 2>&5
19238 ac_status=$?
19239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19240 (exit $ac_status); }; } &&
19241 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19243 (eval $ac_try) 2>&5
19244 ac_status=$?
19245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246 (exit $ac_status); }; }; then
19247 ac_cv_cxx_static_cast=yes
19248else
19249 echo "$as_me: failed program was:" >&5
19250sed 's/^/| /' conftest.$ac_ext >&5
19251
19252ac_cv_cxx_static_cast=no
19253fi
ac1cb8d3 19254rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19255 ac_ext=c
19256ac_cpp='$CPP $CPPFLAGS'
19257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19259ac_compiler_gnu=$ac_cv_c_compiler_gnu
19260
19261
19262fi
19263echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
19264echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
19265if test "$ac_cv_cxx_static_cast" = yes; then
19266
19267cat >>confdefs.h <<\_ACEOF
19268#define HAVE_STATIC_CAST
19269_ACEOF
19270
19271fi
19272
19273
19274if test "$wxUSE_STL" = "yes"; then
19275 ac_ext=cc
19276ac_cpp='$CXXCPP $CPPFLAGS'
19277ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19278ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19279ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19280
19281
19282 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
19283echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
19284 cat >conftest.$ac_ext <<_ACEOF
19285/* confdefs.h. */
19286_ACEOF
19287cat confdefs.h >>conftest.$ac_ext
19288cat >>conftest.$ac_ext <<_ACEOF
19289/* end confdefs.h. */
19290#include <string>
19291 #include <functional>
19292 #include <algorithm>
19293 #include <vector>
19294 #include <list>
19295int
19296main ()
19297{
19298std::vector<int> moo;
19299 std::list<int> foo;
19300 std::vector<int>::iterator it =
19301 std::find_if(moo.begin(), moo.end(),
19302 std::bind2nd(std::less<int>(), 3));
19303 ;
19304 return 0;
19305}
19306_ACEOF
19307rm -f conftest.$ac_objext
19308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19309 (eval $ac_compile) 2>conftest.er1
a848cd7e 19310 ac_status=$?
ac1cb8d3
VS
19311 grep -v '^ *+' conftest.er1 >conftest.err
19312 rm -f conftest.er1
19313 cat conftest.err >&5
a848cd7e
SC
19314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19315 (exit $ac_status); } &&
ea7db9ff
DE
19316 { ac_try='test -z "$ac_cxx_werror_flag"
19317 || test ! -s conftest.err'
ac1cb8d3
VS
19318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19319 (eval $ac_try) 2>&5
19320 ac_status=$?
19321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19322 (exit $ac_status); }; } &&
19323 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19325 (eval $ac_try) 2>&5
19326 ac_status=$?
19327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328 (exit $ac_status); }; }; then
19329 echo "$as_me:$LINENO: result: yes" >&5
19330echo "${ECHO_T}yes" >&6
19331else
19332 echo "$as_me: failed program was:" >&5
19333sed 's/^/| /' conftest.$ac_ext >&5
19334
19335echo "$as_me:$LINENO: result: no" >&5
19336echo "${ECHO_T}no" >&6
19337 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
19338echo "$as_me: error: Basic STL functionality missing" >&2;}
19339 { (exit 1); exit 1; }; }
19340fi
ac1cb8d3 19341rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19342
19343 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
19344echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
19345 cat >conftest.$ac_ext <<_ACEOF
19346/* confdefs.h. */
19347_ACEOF
19348cat confdefs.h >>conftest.$ac_ext
19349cat >>conftest.$ac_ext <<_ACEOF
19350/* end confdefs.h. */
19351#include <string>
19352int
19353main ()
19354{
19355std::wstring foo;
19356 ;
19357 return 0;
19358}
19359_ACEOF
19360rm -f conftest.$ac_objext
19361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19362 (eval $ac_compile) 2>conftest.er1
a848cd7e 19363 ac_status=$?
ac1cb8d3
VS
19364 grep -v '^ *+' conftest.er1 >conftest.err
19365 rm -f conftest.er1
19366 cat conftest.err >&5
a848cd7e
SC
19367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19368 (exit $ac_status); } &&
ea7db9ff
DE
19369 { ac_try='test -z "$ac_cxx_werror_flag"
19370 || test ! -s conftest.err'
ac1cb8d3
VS
19371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19372 (eval $ac_try) 2>&5
19373 ac_status=$?
19374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19375 (exit $ac_status); }; } &&
19376 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19378 (eval $ac_try) 2>&5
19379 ac_status=$?
19380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381 (exit $ac_status); }; }; then
19382 echo "$as_me:$LINENO: result: yes" >&5
19383echo "${ECHO_T}yes" >&6
19384 cat >>confdefs.h <<\_ACEOF
19385#define HAVE_STD_WSTRING 1
19386_ACEOF
19387
19388else
19389 echo "$as_me: failed program was:" >&5
19390sed 's/^/| /' conftest.$ac_ext >&5
19391
19392echo "$as_me:$LINENO: result: no" >&5
19393echo "${ECHO_T}no" >&6
19394fi
ac1cb8d3 19395rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19396
19397 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
19398echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
19399 cat >conftest.$ac_ext <<_ACEOF
19400/* confdefs.h. */
19401_ACEOF
19402cat confdefs.h >>conftest.$ac_ext
19403cat >>conftest.$ac_ext <<_ACEOF
19404/* end confdefs.h. */
19405#include <string>
19406int
19407main ()
19408{
19409std::string foo, bar;
19410 foo.compare(bar);
19411 foo.compare(1, 1, bar);
19412 foo.compare(1, 1, bar, 1, 1);
19413 foo.compare("");
19414 foo.compare(1, 1, "");
19415 foo.compare(1, 1, "", 2);
19416 ;
19417 return 0;
19418}
19419_ACEOF
19420rm -f conftest.$ac_objext
19421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19422 (eval $ac_compile) 2>conftest.er1
a848cd7e 19423 ac_status=$?
ac1cb8d3
VS
19424 grep -v '^ *+' conftest.er1 >conftest.err
19425 rm -f conftest.er1
19426 cat conftest.err >&5
a848cd7e
SC
19427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428 (exit $ac_status); } &&
ea7db9ff
DE
19429 { ac_try='test -z "$ac_cxx_werror_flag"
19430 || test ! -s conftest.err'
ac1cb8d3
VS
19431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19432 (eval $ac_try) 2>&5
19433 ac_status=$?
19434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435 (exit $ac_status); }; } &&
19436 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19438 (eval $ac_try) 2>&5
19439 ac_status=$?
19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441 (exit $ac_status); }; }; then
19442 echo "$as_me:$LINENO: result: yes" >&5
19443echo "${ECHO_T}yes" >&6
19444 cat >>confdefs.h <<\_ACEOF
19445#define HAVE_STD_STRING_COMPARE 1
19446_ACEOF
19447
19448else
19449 echo "$as_me: failed program was:" >&5
19450sed 's/^/| /' conftest.$ac_ext >&5
19451
19452echo "$as_me:$LINENO: result: no" >&5
19453echo "${ECHO_T}no" >&6
19454fi
ac1cb8d3 19455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19456
19457 if test "${ac_cv_header_hash_map+set}" = set; then
19458 echo "$as_me:$LINENO: checking for hash_map" >&5
19459echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
19460if test "${ac_cv_header_hash_map+set}" = set; then
19461 echo $ECHO_N "(cached) $ECHO_C" >&6
19462fi
19463echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
19464echo "${ECHO_T}$ac_cv_header_hash_map" >&6
19465else
19466 # Is the header compilable?
19467echo "$as_me:$LINENO: checking hash_map usability" >&5
19468echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
19469cat >conftest.$ac_ext <<_ACEOF
19470/* confdefs.h. */
19471_ACEOF
19472cat confdefs.h >>conftest.$ac_ext
19473cat >>conftest.$ac_ext <<_ACEOF
19474/* end confdefs.h. */
19475$ac_includes_default
19476#include <hash_map>
19477_ACEOF
19478rm -f conftest.$ac_objext
19479if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19480 (eval $ac_compile) 2>conftest.er1
bdcade0a 19481 ac_status=$?
ac1cb8d3
VS
19482 grep -v '^ *+' conftest.er1 >conftest.err
19483 rm -f conftest.er1
19484 cat conftest.err >&5
bdcade0a
MB
19485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19486 (exit $ac_status); } &&
ea7db9ff
DE
19487 { ac_try='test -z "$ac_cxx_werror_flag"
19488 || test ! -s conftest.err'
ac1cb8d3
VS
19489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19490 (eval $ac_try) 2>&5
19491 ac_status=$?
19492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19493 (exit $ac_status); }; } &&
19494 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19496 (eval $ac_try) 2>&5
19497 ac_status=$?
19498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499 (exit $ac_status); }; }; then
19500 ac_header_compiler=yes
19501else
19502 echo "$as_me: failed program was:" >&5
19503sed 's/^/| /' conftest.$ac_ext >&5
19504
19505ac_header_compiler=no
19506fi
ac1cb8d3 19507rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19508echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19509echo "${ECHO_T}$ac_header_compiler" >&6
19510
19511# Is the header present?
19512echo "$as_me:$LINENO: checking hash_map presence" >&5
19513echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
19514cat >conftest.$ac_ext <<_ACEOF
19515/* confdefs.h. */
19516_ACEOF
19517cat confdefs.h >>conftest.$ac_ext
19518cat >>conftest.$ac_ext <<_ACEOF
19519/* end confdefs.h. */
19520#include <hash_map>
19521_ACEOF
19522if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19523 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19524 ac_status=$?
19525 grep -v '^ *+' conftest.er1 >conftest.err
19526 rm -f conftest.er1
19527 cat conftest.err >&5
19528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19529 (exit $ac_status); } >/dev/null; then
19530 if test -s conftest.err; then
19531 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19532 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
19533 else
19534 ac_cpp_err=
19535 fi
19536else
19537 ac_cpp_err=yes
19538fi
19539if test -z "$ac_cpp_err"; then
19540 ac_header_preproc=yes
19541else
19542 echo "$as_me: failed program was:" >&5
19543sed 's/^/| /' conftest.$ac_ext >&5
19544
19545 ac_header_preproc=no
19546fi
19547rm -f conftest.err conftest.$ac_ext
19548echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19549echo "${ECHO_T}$ac_header_preproc" >&6
19550
19551# So? What about this header?
ac1cb8d3
VS
19552case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19553 yes:no: )
bdcade0a
MB
19554 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
19555echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
19556 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
19557echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
19558 ac_header_preproc=yes
bdcade0a 19559 ;;
ac1cb8d3 19560 no:yes:* )
bdcade0a
MB
19561 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
19562echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
19563 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
19564echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
19565 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
19566echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
19567 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
19568echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
19569 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
19570echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
19571 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
19572echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
19573 (
19574 cat <<\_ASBOX
ac1cb8d3
VS
19575## ----------------------------------------- ##
19576## Report this to wx-dev@lists.wxwidgets.org ##
19577## ----------------------------------------- ##
bdcade0a
MB
19578_ASBOX
19579 ) |
19580 sed "s/^/$as_me: WARNING: /" >&2
19581 ;;
19582esac
19583echo "$as_me:$LINENO: checking for hash_map" >&5
19584echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
19585if test "${ac_cv_header_hash_map+set}" = set; then
19586 echo $ECHO_N "(cached) $ECHO_C" >&6
19587else
19588 ac_cv_header_hash_map=$ac_header_preproc
19589fi
19590echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
19591echo "${ECHO_T}$ac_cv_header_hash_map" >&6
19592
19593fi
19594if test $ac_cv_header_hash_map = yes; then
19595 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
19596echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
19597 cat >conftest.$ac_ext <<_ACEOF
19598/* confdefs.h. */
19599_ACEOF
19600cat confdefs.h >>conftest.$ac_ext
19601cat >>conftest.$ac_ext <<_ACEOF
19602/* end confdefs.h. */
19603#include <hash_map>
19604 #include <hash_set>
19605int
19606main ()
19607{
19608std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
19609 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
19610 ;
19611 return 0;
19612}
19613_ACEOF
19614rm -f conftest.$ac_objext
19615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19616 (eval $ac_compile) 2>conftest.er1
bdcade0a 19617 ac_status=$?
ac1cb8d3
VS
19618 grep -v '^ *+' conftest.er1 >conftest.err
19619 rm -f conftest.er1
19620 cat conftest.err >&5
bdcade0a
MB
19621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19622 (exit $ac_status); } &&
ea7db9ff
DE
19623 { ac_try='test -z "$ac_cxx_werror_flag"
19624 || test ! -s conftest.err'
ac1cb8d3
VS
19625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19626 (eval $ac_try) 2>&5
19627 ac_status=$?
19628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19629 (exit $ac_status); }; } &&
19630 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19632 (eval $ac_try) 2>&5
19633 ac_status=$?
19634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19635 (exit $ac_status); }; }; then
19636 echo "$as_me:$LINENO: result: yes" >&5
19637echo "${ECHO_T}yes" >&6
19638 cat >>confdefs.h <<\_ACEOF
19639#define HAVE_HASH_MAP 1
19640_ACEOF
19641
19642 cat >>confdefs.h <<\_ACEOF
19643#define HAVE_STD_HASH_MAP 1
19644_ACEOF
19645
19646else
19647 echo "$as_me: failed program was:" >&5
19648sed 's/^/| /' conftest.$ac_ext >&5
19649
19650echo "$as_me:$LINENO: result: no" >&5
19651echo "${ECHO_T}no" >&6
19652fi
ac1cb8d3 19653rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19654
19655fi
19656
19657
19658
19659 if test "${ac_cv_header_ext_hash_map+set}" = set; then
19660 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
19661echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
19662if test "${ac_cv_header_ext_hash_map+set}" = set; then
19663 echo $ECHO_N "(cached) $ECHO_C" >&6
19664fi
19665echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
19666echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
19667else
19668 # Is the header compilable?
19669echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
19670echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
19671cat >conftest.$ac_ext <<_ACEOF
19672/* confdefs.h. */
19673_ACEOF
19674cat confdefs.h >>conftest.$ac_ext
19675cat >>conftest.$ac_ext <<_ACEOF
19676/* end confdefs.h. */
19677$ac_includes_default
19678#include <ext/hash_map>
19679_ACEOF
19680rm -f conftest.$ac_objext
19681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19682 (eval $ac_compile) 2>conftest.er1
bdcade0a 19683 ac_status=$?
ac1cb8d3
VS
19684 grep -v '^ *+' conftest.er1 >conftest.err
19685 rm -f conftest.er1
19686 cat conftest.err >&5
bdcade0a
MB
19687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19688 (exit $ac_status); } &&
ea7db9ff
DE
19689 { ac_try='test -z "$ac_cxx_werror_flag"
19690 || test ! -s conftest.err'
ac1cb8d3
VS
19691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19692 (eval $ac_try) 2>&5
19693 ac_status=$?
19694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695 (exit $ac_status); }; } &&
19696 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19698 (eval $ac_try) 2>&5
19699 ac_status=$?
19700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701 (exit $ac_status); }; }; then
19702 ac_header_compiler=yes
19703else
19704 echo "$as_me: failed program was:" >&5
19705sed 's/^/| /' conftest.$ac_ext >&5
19706
19707ac_header_compiler=no
19708fi
ac1cb8d3 19709rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19710echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19711echo "${ECHO_T}$ac_header_compiler" >&6
19712
19713# Is the header present?
19714echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
19715echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
19716cat >conftest.$ac_ext <<_ACEOF
19717/* confdefs.h. */
19718_ACEOF
19719cat confdefs.h >>conftest.$ac_ext
19720cat >>conftest.$ac_ext <<_ACEOF
19721/* end confdefs.h. */
19722#include <ext/hash_map>
19723_ACEOF
19724if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19725 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19726 ac_status=$?
19727 grep -v '^ *+' conftest.er1 >conftest.err
19728 rm -f conftest.er1
19729 cat conftest.err >&5
19730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731 (exit $ac_status); } >/dev/null; then
19732 if test -s conftest.err; then
19733 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19734 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
19735 else
19736 ac_cpp_err=
19737 fi
19738else
19739 ac_cpp_err=yes
19740fi
19741if test -z "$ac_cpp_err"; then
19742 ac_header_preproc=yes
19743else
19744 echo "$as_me: failed program was:" >&5
19745sed 's/^/| /' conftest.$ac_ext >&5
19746
19747 ac_header_preproc=no
19748fi
19749rm -f conftest.err conftest.$ac_ext
19750echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19751echo "${ECHO_T}$ac_header_preproc" >&6
19752
19753# So? What about this header?
ac1cb8d3
VS
19754case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19755 yes:no: )
bdcade0a
MB
19756 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
19757echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
19758 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
19759echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
19760 ac_header_preproc=yes
bdcade0a 19761 ;;
ac1cb8d3 19762 no:yes:* )
bdcade0a
MB
19763 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
19764echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
19765 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
19766echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
19767 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
19768echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
19769 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
19770echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
19771 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
19772echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
19773 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
19774echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
19775 (
19776 cat <<\_ASBOX
ac1cb8d3
VS
19777## ----------------------------------------- ##
19778## Report this to wx-dev@lists.wxwidgets.org ##
19779## ----------------------------------------- ##
bdcade0a
MB
19780_ASBOX
19781 ) |
19782 sed "s/^/$as_me: WARNING: /" >&2
19783 ;;
19784esac
19785echo "$as_me:$LINENO: checking for ext/hash_map" >&5
19786echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
19787if test "${ac_cv_header_ext_hash_map+set}" = set; then
19788 echo $ECHO_N "(cached) $ECHO_C" >&6
19789else
19790 ac_cv_header_ext_hash_map=$ac_header_preproc
19791fi
19792echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
19793echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
19794
19795fi
19796if test $ac_cv_header_ext_hash_map = yes; then
19797 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
19798echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
19799 cat >conftest.$ac_ext <<_ACEOF
19800/* confdefs.h. */
19801_ACEOF
19802cat confdefs.h >>conftest.$ac_ext
19803cat >>conftest.$ac_ext <<_ACEOF
19804/* end confdefs.h. */
19805#include <ext/hash_map>
19806 #include <ext/hash_set>
19807int
19808main ()
19809{
19810__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
19811 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
19812 ;
19813 return 0;
19814}
19815_ACEOF
19816rm -f conftest.$ac_objext
19817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19818 (eval $ac_compile) 2>conftest.er1
bdcade0a 19819 ac_status=$?
ac1cb8d3
VS
19820 grep -v '^ *+' conftest.er1 >conftest.err
19821 rm -f conftest.er1
19822 cat conftest.err >&5
bdcade0a
MB
19823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824 (exit $ac_status); } &&
ea7db9ff
DE
19825 { ac_try='test -z "$ac_cxx_werror_flag"
19826 || test ! -s conftest.err'
ac1cb8d3
VS
19827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19828 (eval $ac_try) 2>&5
19829 ac_status=$?
19830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831 (exit $ac_status); }; } &&
19832 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19834 (eval $ac_try) 2>&5
19835 ac_status=$?
19836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19837 (exit $ac_status); }; }; then
19838 echo "$as_me:$LINENO: result: yes" >&5
19839echo "${ECHO_T}yes" >&6
19840 cat >>confdefs.h <<\_ACEOF
19841#define HAVE_EXT_HASH_MAP 1
19842_ACEOF
19843
19844 cat >>confdefs.h <<\_ACEOF
19845#define HAVE_GNU_CXX_HASH_MAP 1
19846_ACEOF
19847
19848else
19849 echo "$as_me: failed program was:" >&5
19850sed 's/^/| /' conftest.$ac_ext >&5
19851
19852echo "$as_me:$LINENO: result: no" >&5
19853echo "${ECHO_T}no" >&6
19854fi
ac1cb8d3 19855rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19856
19857fi
19858
19859
a848cd7e
SC
19860
19861 ac_ext=c
19862ac_cpp='$CPP $CPPFLAGS'
19863ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19864ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19865ac_compiler_gnu=$ac_cv_c_compiler_gnu
19866
19867fi
19868
19869
19870SEARCH_INCLUDE="\
19871 /usr/local/include \
19872 \
19873 /usr/Motif-2.1/include \
19874 /usr/Motif-1.2/include \
19875 /usr/include/Motif1.2 \
19876 /opt/xpm/include/X11 \
19877 /opt/GBxpm/include/ \
19878 /opt/GBxpm/X11/include/ \
19879 \
19880 /usr/dt/include \
19881 /usr/openwin/include \
19882 \
19883 /usr/include/Xm \
19884 \
19885 /usr/X11R6/include \
19886 /usr/X11R6.4/include \
19887 /usr/X11R5/include \
19888 /usr/X11R4/include \
19889 \
19890 /usr/include/X11R6 \
19891 /usr/include/X11R5 \
19892 /usr/include/X11R4 \
19893 \
19894 /usr/local/X11R6/include \
19895 /usr/local/X11R5/include \
19896 /usr/local/X11R4/include \
19897 \
19898 /usr/local/include/X11R6 \
19899 /usr/local/include/X11R5 \
19900 /usr/local/include/X11R4 \
19901 \
19902 /usr/X11/include \
19903 /usr/include/X11 \
19904 /usr/local/X11/include \
19905 /usr/local/include/X11 \
19906 \
19907 /usr/X386/include \
19908 /usr/x386/include \
19909 /usr/XFree86/include/X11 \
19910 \
19911 X:/XFree86/include \
19912 X:/XFree86/include/X11 \
19913 \
19914 /usr/include/gtk \
19915 /usr/local/include/gtk \
19916 /usr/include/glib \
19917 /usr/local/include/glib \
19918 \
19919 /usr/include/qt \
19920 /usr/local/include/qt \
19921 \
19922 /usr/local/arm/3.3.2/include \
19923 \
19924 /usr/include/windows \
19925 /usr/include/wine \
19926 /usr/local/include/wine \
19927 \
19928 /usr/unsupported/include \
19929 /usr/athena/include \
19930 /usr/local/x11r5/include \
19931 /usr/lpp/Xamples/include \
19932 \
19933 /usr/openwin/share/include"
19934
19935SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64"
19936
19937
19938cat >confcache <<\_ACEOF
19939# This file is a shell script that caches the results of configure
19940# tests run on this system so they can be shared between configure
19941# scripts and configure runs, see configure's option --config-cache.
19942# It is not useful on other systems. If it contains results you don't
19943# want to keep, you may remove or edit it.
19944#
19945# config.status only pays attention to the cache file if you give it
19946# the --recheck option to rerun configure.
19947#
19948# `ac_cv_env_foo' variables (set or unset) will be overridden when
19949# loading this file, other *unset* `ac_cv_foo' will be assigned the
19950# following values.
19951
19952_ACEOF
19953
19954# The following way of writing the cache mishandles newlines in values,
19955# but we know of no workaround that is simple, portable, and efficient.
19956# So, don't put newlines in cache variables' values.
19957# Ultrix sh set writes to stderr and can't be redirected directly,
19958# and sets the high bit in the cache file unless we assign to the vars.
19959{
19960 (set) 2>&1 |
19961 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19962 *ac_space=\ *)
19963 # `set' does not quote correctly, so add quotes (double-quote
19964 # substitution turns \\\\ into \\, and sed turns \\ into \).
19965 sed -n \
ac1cb8d3
VS
19966 "s/'/'\\\\''/g;
19967 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
19968 ;;
19969 *)
19970 # `set' quotes correctly as required by POSIX, so do not add quotes.
19971 sed -n \
ac1cb8d3 19972 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
19973 ;;
19974 esac;
19975} |
19976 sed '
19977 t clear
19978 : clear
19979 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19980 t end
19981 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19982 : end' >>confcache
19983if diff $cache_file confcache >/dev/null 2>&1; then :; else
19984 if test -w $cache_file; then
19985 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19986 cat confcache >$cache_file
19987 else
19988 echo "not updating unwritable cache $cache_file"
19989 fi
19990fi
19991rm -f confcache
19992
19993if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
19994 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
19995echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
19996if test "${wx_cv_lib_glibc21+set}" = set; then
19997 echo $ECHO_N "(cached) $ECHO_C" >&6
19998else
19999
20000 cat >conftest.$ac_ext <<_ACEOF
20001/* confdefs.h. */
20002_ACEOF
20003cat confdefs.h >>conftest.$ac_ext
20004cat >>conftest.$ac_ext <<_ACEOF
20005/* end confdefs.h. */
20006#include <features.h>
20007int
20008main ()
20009{
20010
20011 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
20012 #error not glibc2.1
20013 #endif
20014
20015 ;
20016 return 0;
20017}
20018_ACEOF
20019rm -f conftest.$ac_objext
20020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20021 (eval $ac_compile) 2>conftest.er1
a848cd7e 20022 ac_status=$?
ac1cb8d3
VS
20023 grep -v '^ *+' conftest.er1 >conftest.err
20024 rm -f conftest.er1
20025 cat conftest.err >&5
a848cd7e
SC
20026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20027 (exit $ac_status); } &&
ea7db9ff
DE
20028 { ac_try='test -z "$ac_c_werror_flag"
20029 || test ! -s conftest.err'
ac1cb8d3
VS
20030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20031 (eval $ac_try) 2>&5
20032 ac_status=$?
20033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20034 (exit $ac_status); }; } &&
20035 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20037 (eval $ac_try) 2>&5
20038 ac_status=$?
20039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20040 (exit $ac_status); }; }; then
20041
20042 wx_cv_lib_glibc21=yes
20043
20044else
20045 echo "$as_me: failed program was:" >&5
20046sed 's/^/| /' conftest.$ac_ext >&5
20047
20048
20049 wx_cv_lib_glibc21=no
20050
20051
20052fi
ac1cb8d3 20053rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20054
20055fi
20056echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
20057echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
20058 if test "$wx_cv_lib_glibc21" = "yes"; then
20059 cat >>confdefs.h <<\_ACEOF
20060#define wxHAVE_GLIBC2 1
20061_ACEOF
20062
20063 fi
20064fi
20065
20066if test "x$wx_cv_lib_glibc21" = "xyes"; then
20067 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
20068 cat >>confdefs.h <<\_ACEOF
20069#define _GNU_SOURCE 1
20070_ACEOF
20071
20072 fi
20073fi
20074
20075
20076
20077if test "$wxUSE_REGEX" != "no"; then
20078 cat >>confdefs.h <<\_ACEOF
20079#define wxUSE_REGEX 1
20080_ACEOF
20081
20082
20083 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
20084 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
20085echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
20086 wxUSE_REGEX=builtin
20087 fi
20088
20089 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
20090 if test "${ac_cv_header_regex_h+set}" = set; then
20091 echo "$as_me:$LINENO: checking for regex.h" >&5
20092echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20093if test "${ac_cv_header_regex_h+set}" = set; then
20094 echo $ECHO_N "(cached) $ECHO_C" >&6
20095fi
20096echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20097echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20098else
20099 # Is the header compilable?
20100echo "$as_me:$LINENO: checking regex.h usability" >&5
20101echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
20102cat >conftest.$ac_ext <<_ACEOF
20103/* confdefs.h. */
20104_ACEOF
20105cat confdefs.h >>conftest.$ac_ext
20106cat >>conftest.$ac_ext <<_ACEOF
20107/* end confdefs.h. */
20108$ac_includes_default
20109#include <regex.h>
20110_ACEOF
20111rm -f conftest.$ac_objext
20112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20113 (eval $ac_compile) 2>conftest.er1
a848cd7e 20114 ac_status=$?
ac1cb8d3
VS
20115 grep -v '^ *+' conftest.er1 >conftest.err
20116 rm -f conftest.er1
20117 cat conftest.err >&5
a848cd7e
SC
20118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20119 (exit $ac_status); } &&
ea7db9ff
DE
20120 { ac_try='test -z "$ac_c_werror_flag"
20121 || test ! -s conftest.err'
ac1cb8d3
VS
20122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20123 (eval $ac_try) 2>&5
20124 ac_status=$?
20125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20126 (exit $ac_status); }; } &&
20127 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20129 (eval $ac_try) 2>&5
20130 ac_status=$?
20131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20132 (exit $ac_status); }; }; then
20133 ac_header_compiler=yes
20134else
20135 echo "$as_me: failed program was:" >&5
20136sed 's/^/| /' conftest.$ac_ext >&5
20137
20138ac_header_compiler=no
20139fi
ac1cb8d3 20140rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20141echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20142echo "${ECHO_T}$ac_header_compiler" >&6
20143
20144# Is the header present?
20145echo "$as_me:$LINENO: checking regex.h presence" >&5
20146echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
20147cat >conftest.$ac_ext <<_ACEOF
20148/* confdefs.h. */
20149_ACEOF
20150cat confdefs.h >>conftest.$ac_ext
20151cat >>conftest.$ac_ext <<_ACEOF
20152/* end confdefs.h. */
20153#include <regex.h>
20154_ACEOF
20155if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20156 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20157 ac_status=$?
20158 grep -v '^ *+' conftest.er1 >conftest.err
20159 rm -f conftest.er1
20160 cat conftest.err >&5
20161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162 (exit $ac_status); } >/dev/null; then
20163 if test -s conftest.err; then
20164 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20165 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20166 else
20167 ac_cpp_err=
20168 fi
20169else
20170 ac_cpp_err=yes
20171fi
20172if test -z "$ac_cpp_err"; then
20173 ac_header_preproc=yes
20174else
20175 echo "$as_me: failed program was:" >&5
20176sed 's/^/| /' conftest.$ac_ext >&5
20177
20178 ac_header_preproc=no
20179fi
20180rm -f conftest.err conftest.$ac_ext
20181echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20182echo "${ECHO_T}$ac_header_preproc" >&6
20183
20184# So? What about this header?
ac1cb8d3
VS
20185case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20186 yes:no: )
a848cd7e
SC
20187 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
20188echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20189 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
20190echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
20191 ac_header_preproc=yes
a848cd7e 20192 ;;
ac1cb8d3 20193 no:yes:* )
a848cd7e
SC
20194 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
20195echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20196 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
20197echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
20198 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
20199echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
20200 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
20201echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20202 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
20203echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20204 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
20205echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20206 (
20207 cat <<\_ASBOX
ac1cb8d3
VS
20208## ----------------------------------------- ##
20209## Report this to wx-dev@lists.wxwidgets.org ##
20210## ----------------------------------------- ##
a848cd7e
SC
20211_ASBOX
20212 ) |
20213 sed "s/^/$as_me: WARNING: /" >&2
20214 ;;
20215esac
20216echo "$as_me:$LINENO: checking for regex.h" >&5
20217echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20218if test "${ac_cv_header_regex_h+set}" = set; then
20219 echo $ECHO_N "(cached) $ECHO_C" >&6
20220else
20221 ac_cv_header_regex_h=$ac_header_preproc
20222fi
20223echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20224echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20225
20226fi
20227if test $ac_cv_header_regex_h = yes; then
20228
20229for ac_func in regcomp
20230do
20231as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20232echo "$as_me:$LINENO: checking for $ac_func" >&5
20233echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20234if eval "test \"\${$as_ac_var+set}\" = set"; then
20235 echo $ECHO_N "(cached) $ECHO_C" >&6
20236else
20237 cat >conftest.$ac_ext <<_ACEOF
20238/* confdefs.h. */
20239_ACEOF
20240cat confdefs.h >>conftest.$ac_ext
20241cat >>conftest.$ac_ext <<_ACEOF
20242/* end confdefs.h. */
ac1cb8d3
VS
20243/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20244 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20245#define $ac_func innocuous_$ac_func
20246
a848cd7e
SC
20247/* System header to define __stub macros and hopefully few prototypes,
20248 which can conflict with char $ac_func (); below.
20249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20250 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 20251
a848cd7e
SC
20252#ifdef __STDC__
20253# include <limits.h>
20254#else
20255# include <assert.h>
20256#endif
ac1cb8d3
VS
20257
20258#undef $ac_func
20259
a848cd7e
SC
20260/* Override any gcc2 internal prototype to avoid an error. */
20261#ifdef __cplusplus
20262extern "C"
20263{
20264#endif
20265/* We use char because int might match the return type of a gcc2
20266 builtin and then its argument prototype would still apply. */
20267char $ac_func ();
20268/* The GNU C library defines this for functions which it implements
20269 to always fail with ENOSYS. Some functions are actually named
20270 something starting with __ and the normal name is an alias. */
20271#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20272choke me
20273#else
20274char (*f) () = $ac_func;
20275#endif
20276#ifdef __cplusplus
20277}
20278#endif
20279
20280int
20281main ()
20282{
20283return f != $ac_func;
20284 ;
20285 return 0;
20286}
20287_ACEOF
20288rm -f conftest.$ac_objext conftest$ac_exeext
20289if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20290 (eval $ac_link) 2>conftest.er1
a848cd7e 20291 ac_status=$?
ac1cb8d3
VS
20292 grep -v '^ *+' conftest.er1 >conftest.err
20293 rm -f conftest.er1
20294 cat conftest.err >&5
a848cd7e
SC
20295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296 (exit $ac_status); } &&
ea7db9ff
DE
20297 { ac_try='test -z "$ac_c_werror_flag"
20298 || test ! -s conftest.err'
ac1cb8d3
VS
20299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20300 (eval $ac_try) 2>&5
20301 ac_status=$?
20302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20303 (exit $ac_status); }; } &&
20304 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20306 (eval $ac_try) 2>&5
20307 ac_status=$?
20308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309 (exit $ac_status); }; }; then
20310 eval "$as_ac_var=yes"
20311else
20312 echo "$as_me: failed program was:" >&5
20313sed 's/^/| /' conftest.$ac_ext >&5
20314
20315eval "$as_ac_var=no"
20316fi
ac1cb8d3
VS
20317rm -f conftest.err conftest.$ac_objext \
20318 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20319fi
20320echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20321echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20322if test `eval echo '${'$as_ac_var'}'` = yes; then
20323 cat >>confdefs.h <<_ACEOF
20324#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20325_ACEOF
20326
20327fi
20328done
20329
20330fi
20331
20332
20333
20334 if test "x$ac_cv_func_regcomp" != "xyes"; then
20335 if test "$wxUSE_REGEX" = "sys" ; then
20336 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
20337echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
20338 { (exit 1); exit 1; }; }
20339 else
20340 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
20341echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
20342 wxUSE_REGEX=builtin
20343 fi
20344 else
20345 wxUSE_REGEX=sys
20346 cat >>confdefs.h <<\_ACEOF
20347#define WX_NO_REGEX_ADVANCED 1
20348_ACEOF
20349
20350 fi
20351 fi
20352fi
20353
20354
20355ZLIB_LINK=
20356if test "$wxUSE_ZLIB" != "no" ; then
20357 cat >>confdefs.h <<\_ACEOF
20358#define wxUSE_ZLIB 1
20359_ACEOF
20360
20361
20362 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
20363 if test "$USE_DARWIN" = 1; then
20364 system_zlib_h_ok="yes"
20365 else
20366 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
20367echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
20368if test "${ac_cv_header_zlib_h+set}" = set; then
20369 echo $ECHO_N "(cached) $ECHO_C" >&6
20370else
20371 if test "$cross_compiling" = yes; then
20372 unset ac_cv_header_zlib_h
20373
20374else
20375 cat >conftest.$ac_ext <<_ACEOF
20376/* confdefs.h. */
20377_ACEOF
20378cat confdefs.h >>conftest.$ac_ext
20379cat >>conftest.$ac_ext <<_ACEOF
20380/* end confdefs.h. */
20381
20382 #include <zlib.h>
20383 #include <stdio.h>
20384
20385 int main()
20386 {
20387 FILE *f=fopen("conftestval", "w");
20388 if (!f) exit(1);
20389 fprintf(f, "%s",
20390 ZLIB_VERSION[0] == '1' &&
20391 (ZLIB_VERSION[2] > '1' ||
20392 (ZLIB_VERSION[2] == '1' &&
20393 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
20394 exit(0);
20395 }
20396
20397_ACEOF
20398rm -f conftest$ac_exeext
20399if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20400 (eval $ac_link) 2>&5
20401 ac_status=$?
20402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20405 (eval $ac_try) 2>&5
20406 ac_status=$?
20407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20408 (exit $ac_status); }; }; then
20409 ac_cv_header_zlib_h=`cat conftestval`
20410else
20411 echo "$as_me: program exited with status $ac_status" >&5
20412echo "$as_me: failed program was:" >&5
20413sed 's/^/| /' conftest.$ac_ext >&5
20414
20415( exit $ac_status )
20416ac_cv_header_zlib_h=no
20417fi
ac1cb8d3 20418rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20419fi
20420
20421fi
20422echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20423echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20424 if test "${ac_cv_header_zlib_h+set}" = set; then
20425 echo "$as_me:$LINENO: checking for zlib.h" >&5
20426echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
20427if test "${ac_cv_header_zlib_h+set}" = set; then
20428 echo $ECHO_N "(cached) $ECHO_C" >&6
20429fi
20430echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20431echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20432else
20433 # Is the header compilable?
20434echo "$as_me:$LINENO: checking zlib.h usability" >&5
20435echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
20436cat >conftest.$ac_ext <<_ACEOF
20437/* confdefs.h. */
20438_ACEOF
20439cat confdefs.h >>conftest.$ac_ext
20440cat >>conftest.$ac_ext <<_ACEOF
20441/* end confdefs.h. */
20442$ac_includes_default
20443#include <zlib.h>
20444_ACEOF
20445rm -f conftest.$ac_objext
20446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20447 (eval $ac_compile) 2>conftest.er1
a848cd7e 20448 ac_status=$?
ac1cb8d3
VS
20449 grep -v '^ *+' conftest.er1 >conftest.err
20450 rm -f conftest.er1
20451 cat conftest.err >&5
a848cd7e
SC
20452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20453 (exit $ac_status); } &&
ea7db9ff
DE
20454 { ac_try='test -z "$ac_c_werror_flag"
20455 || test ! -s conftest.err'
ac1cb8d3
VS
20456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20457 (eval $ac_try) 2>&5
20458 ac_status=$?
20459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20460 (exit $ac_status); }; } &&
20461 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20463 (eval $ac_try) 2>&5
20464 ac_status=$?
20465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466 (exit $ac_status); }; }; then
20467 ac_header_compiler=yes
20468else
20469 echo "$as_me: failed program was:" >&5
20470sed 's/^/| /' conftest.$ac_ext >&5
20471
20472ac_header_compiler=no
20473fi
ac1cb8d3 20474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20475echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20476echo "${ECHO_T}$ac_header_compiler" >&6
20477
20478# Is the header present?
20479echo "$as_me:$LINENO: checking zlib.h presence" >&5
20480echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
20481cat >conftest.$ac_ext <<_ACEOF
20482/* confdefs.h. */
20483_ACEOF
20484cat confdefs.h >>conftest.$ac_ext
20485cat >>conftest.$ac_ext <<_ACEOF
20486/* end confdefs.h. */
20487#include <zlib.h>
20488_ACEOF
20489if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20490 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20491 ac_status=$?
20492 grep -v '^ *+' conftest.er1 >conftest.err
20493 rm -f conftest.er1
20494 cat conftest.err >&5
20495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20496 (exit $ac_status); } >/dev/null; then
20497 if test -s conftest.err; then
20498 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20499 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20500 else
20501 ac_cpp_err=
20502 fi
20503else
20504 ac_cpp_err=yes
20505fi
20506if test -z "$ac_cpp_err"; then
20507 ac_header_preproc=yes
20508else
20509 echo "$as_me: failed program was:" >&5
20510sed 's/^/| /' conftest.$ac_ext >&5
20511
20512 ac_header_preproc=no
20513fi
20514rm -f conftest.err conftest.$ac_ext
20515echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20516echo "${ECHO_T}$ac_header_preproc" >&6
20517
20518# So? What about this header?
ac1cb8d3
VS
20519case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20520 yes:no: )
a848cd7e
SC
20521 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
20522echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20523 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
20524echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
20525 ac_header_preproc=yes
a848cd7e 20526 ;;
ac1cb8d3 20527 no:yes:* )
a848cd7e
SC
20528 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
20529echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20530 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
20531echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
20532 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
20533echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
20534 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
20535echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20536 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
20537echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20538 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
20539echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20540 (
20541 cat <<\_ASBOX
ac1cb8d3
VS
20542## ----------------------------------------- ##
20543## Report this to wx-dev@lists.wxwidgets.org ##
20544## ----------------------------------------- ##
a848cd7e
SC
20545_ASBOX
20546 ) |
20547 sed "s/^/$as_me: WARNING: /" >&2
20548 ;;
20549esac
20550echo "$as_me:$LINENO: checking for zlib.h" >&5
20551echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
20552if test "${ac_cv_header_zlib_h+set}" = set; then
20553 echo $ECHO_N "(cached) $ECHO_C" >&6
20554else
20555 ac_cv_header_zlib_h=$ac_header_preproc
20556fi
20557echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20558echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20559
20560fi
20561
20562
20563
20564 system_zlib_h_ok=$ac_cv_header_zlib_h
20565 fi
20566
20567 if test "$system_zlib_h_ok" = "yes"; then
20568 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
20569echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
20570if test "${ac_cv_lib_z_deflate+set}" = set; then
20571 echo $ECHO_N "(cached) $ECHO_C" >&6
20572else
20573 ac_check_lib_save_LIBS=$LIBS
20574LIBS="-lz $LIBS"
20575cat >conftest.$ac_ext <<_ACEOF
20576/* confdefs.h. */
20577_ACEOF
20578cat confdefs.h >>conftest.$ac_ext
20579cat >>conftest.$ac_ext <<_ACEOF
20580/* end confdefs.h. */
20581
20582/* Override any gcc2 internal prototype to avoid an error. */
20583#ifdef __cplusplus
20584extern "C"
20585#endif
20586/* We use char because int might match the return type of a gcc2
20587 builtin and then its argument prototype would still apply. */
20588char deflate ();
20589int
20590main ()
20591{
20592deflate ();
20593 ;
20594 return 0;
20595}
20596_ACEOF
20597rm -f conftest.$ac_objext conftest$ac_exeext
20598if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20599 (eval $ac_link) 2>conftest.er1
a848cd7e 20600 ac_status=$?
ac1cb8d3
VS
20601 grep -v '^ *+' conftest.er1 >conftest.err
20602 rm -f conftest.er1
20603 cat conftest.err >&5
a848cd7e
SC
20604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20605 (exit $ac_status); } &&
ea7db9ff
DE
20606 { ac_try='test -z "$ac_c_werror_flag"
20607 || test ! -s conftest.err'
ac1cb8d3
VS
20608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20609 (eval $ac_try) 2>&5
20610 ac_status=$?
20611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20612 (exit $ac_status); }; } &&
20613 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20615 (eval $ac_try) 2>&5
20616 ac_status=$?
20617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20618 (exit $ac_status); }; }; then
20619 ac_cv_lib_z_deflate=yes
20620else
20621 echo "$as_me: failed program was:" >&5
20622sed 's/^/| /' conftest.$ac_ext >&5
20623
20624ac_cv_lib_z_deflate=no
20625fi
ac1cb8d3
VS
20626rm -f conftest.err conftest.$ac_objext \
20627 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20628LIBS=$ac_check_lib_save_LIBS
20629fi
20630echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
20631echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
20632if test $ac_cv_lib_z_deflate = yes; then
20633 ZLIB_LINK=" -lz"
20634fi
20635
20636 fi
20637
20638 if test "x$ZLIB_LINK" = "x" ; then
20639 if test "$wxUSE_ZLIB" = "sys" ; then
20640 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
20641echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
20642 { (exit 1); exit 1; }; }
20643 else
20644 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
20645echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
20646 wxUSE_ZLIB=builtin
20647 fi
20648 else
20649 wxUSE_ZLIB=sys
20650 fi
20651 fi
20652fi
20653
20654
20655PNG_LINK=
20656if test "$wxUSE_LIBPNG" != "no" ; then
20657 cat >>confdefs.h <<\_ACEOF
20658#define wxUSE_LIBPNG 1
20659_ACEOF
20660
20661
20662 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
20663 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
20664echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
20665 wxUSE_LIBPNG=sys
20666 fi
20667
20668 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
20669 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
20670echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
20671 wxUSE_LIBPNG=builtin
20672 fi
20673
20674 if test "$wxUSE_MGL" != 1 ; then
20675 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
20676 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
20677echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
20678if test "${ac_cv_header_png_h+set}" = set; then
20679 echo $ECHO_N "(cached) $ECHO_C" >&6
20680else
20681 if test "$cross_compiling" = yes; then
20682 unset ac_cv_header_png_h
20683
20684else
20685 cat >conftest.$ac_ext <<_ACEOF
20686/* confdefs.h. */
20687_ACEOF
20688cat confdefs.h >>conftest.$ac_ext
20689cat >>conftest.$ac_ext <<_ACEOF
20690/* end confdefs.h. */
20691
20692 #include <png.h>
20693 #include <stdio.h>
20694
20695 int main()
20696 {
20697 FILE *f=fopen("conftestval", "w");
20698 if (!f) exit(1);
20699 fprintf(f, "%s",
20700 PNG_LIBPNG_VER > 90 ? "yes" : "no");
20701 exit(0);
20702 }
20703
20704_ACEOF
20705rm -f conftest$ac_exeext
20706if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20707 (eval $ac_link) 2>&5
20708 ac_status=$?
20709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20710 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20712 (eval $ac_try) 2>&5
20713 ac_status=$?
20714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20715 (exit $ac_status); }; }; then
20716 ac_cv_header_png_h=`cat conftestval`
20717else
20718 echo "$as_me: program exited with status $ac_status" >&5
20719echo "$as_me: failed program was:" >&5
20720sed 's/^/| /' conftest.$ac_ext >&5
20721
20722( exit $ac_status )
20723ac_cv_header_png_h=no
20724fi
ac1cb8d3 20725rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20726fi
20727
20728fi
20729echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20730echo "${ECHO_T}$ac_cv_header_png_h" >&6
20731 if test "${ac_cv_header_png_h+set}" = set; then
20732 echo "$as_me:$LINENO: checking for png.h" >&5
20733echo $ECHO_N "checking for png.h... $ECHO_C" >&6
20734if test "${ac_cv_header_png_h+set}" = set; then
20735 echo $ECHO_N "(cached) $ECHO_C" >&6
20736fi
20737echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20738echo "${ECHO_T}$ac_cv_header_png_h" >&6
20739else
20740 # Is the header compilable?
20741echo "$as_me:$LINENO: checking png.h usability" >&5
20742echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
20743cat >conftest.$ac_ext <<_ACEOF
20744/* confdefs.h. */
20745_ACEOF
20746cat confdefs.h >>conftest.$ac_ext
20747cat >>conftest.$ac_ext <<_ACEOF
20748/* end confdefs.h. */
20749$ac_includes_default
20750#include <png.h>
20751_ACEOF
20752rm -f conftest.$ac_objext
20753if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20754 (eval $ac_compile) 2>conftest.er1
a848cd7e 20755 ac_status=$?
ac1cb8d3
VS
20756 grep -v '^ *+' conftest.er1 >conftest.err
20757 rm -f conftest.er1
20758 cat conftest.err >&5
a848cd7e
SC
20759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20760 (exit $ac_status); } &&
ea7db9ff
DE
20761 { ac_try='test -z "$ac_c_werror_flag"
20762 || test ! -s conftest.err'
ac1cb8d3
VS
20763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20764 (eval $ac_try) 2>&5
20765 ac_status=$?
20766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20767 (exit $ac_status); }; } &&
20768 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20770 (eval $ac_try) 2>&5
20771 ac_status=$?
20772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20773 (exit $ac_status); }; }; then
20774 ac_header_compiler=yes
20775else
20776 echo "$as_me: failed program was:" >&5
20777sed 's/^/| /' conftest.$ac_ext >&5
20778
20779ac_header_compiler=no
20780fi
ac1cb8d3 20781rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20782echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20783echo "${ECHO_T}$ac_header_compiler" >&6
20784
20785# Is the header present?
20786echo "$as_me:$LINENO: checking png.h presence" >&5
20787echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
20788cat >conftest.$ac_ext <<_ACEOF
20789/* confdefs.h. */
20790_ACEOF
20791cat confdefs.h >>conftest.$ac_ext
20792cat >>conftest.$ac_ext <<_ACEOF
20793/* end confdefs.h. */
20794#include <png.h>
20795_ACEOF
20796if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20797 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20798 ac_status=$?
20799 grep -v '^ *+' conftest.er1 >conftest.err
20800 rm -f conftest.er1
20801 cat conftest.err >&5
20802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20803 (exit $ac_status); } >/dev/null; then
20804 if test -s conftest.err; then
20805 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20806 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20807 else
20808 ac_cpp_err=
20809 fi
20810else
20811 ac_cpp_err=yes
20812fi
20813if test -z "$ac_cpp_err"; then
20814 ac_header_preproc=yes
20815else
20816 echo "$as_me: failed program was:" >&5
20817sed 's/^/| /' conftest.$ac_ext >&5
20818
20819 ac_header_preproc=no
20820fi
20821rm -f conftest.err conftest.$ac_ext
20822echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20823echo "${ECHO_T}$ac_header_preproc" >&6
20824
20825# So? What about this header?
ac1cb8d3
VS
20826case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20827 yes:no: )
a848cd7e
SC
20828 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
20829echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20830 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
20831echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
20832 ac_header_preproc=yes
a848cd7e 20833 ;;
ac1cb8d3 20834 no:yes:* )
a848cd7e
SC
20835 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
20836echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20837 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
20838echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
20839 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
20840echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
20841 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
20842echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20843 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
20844echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20845 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
20846echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20847 (
20848 cat <<\_ASBOX
ac1cb8d3
VS
20849## ----------------------------------------- ##
20850## Report this to wx-dev@lists.wxwidgets.org ##
20851## ----------------------------------------- ##
a848cd7e
SC
20852_ASBOX
20853 ) |
20854 sed "s/^/$as_me: WARNING: /" >&2
20855 ;;
20856esac
20857echo "$as_me:$LINENO: checking for png.h" >&5
20858echo $ECHO_N "checking for png.h... $ECHO_C" >&6
20859if test "${ac_cv_header_png_h+set}" = set; then
20860 echo $ECHO_N "(cached) $ECHO_C" >&6
20861else
20862 ac_cv_header_png_h=$ac_header_preproc
20863fi
20864echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20865echo "${ECHO_T}$ac_cv_header_png_h" >&6
20866
20867fi
20868
20869
20870
20871 if test "$ac_cv_header_png_h" = "yes"; then
20872 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
20873echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
20874if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
20875 echo $ECHO_N "(cached) $ECHO_C" >&6
20876else
20877 ac_check_lib_save_LIBS=$LIBS
20878LIBS="-lpng -lz -lm $LIBS"
20879cat >conftest.$ac_ext <<_ACEOF
20880/* confdefs.h. */
20881_ACEOF
20882cat confdefs.h >>conftest.$ac_ext
20883cat >>conftest.$ac_ext <<_ACEOF
20884/* end confdefs.h. */
20885
20886/* Override any gcc2 internal prototype to avoid an error. */
20887#ifdef __cplusplus
20888extern "C"
20889#endif
20890/* We use char because int might match the return type of a gcc2
20891 builtin and then its argument prototype would still apply. */
20892char png_check_sig ();
20893int
20894main ()
20895{
20896png_check_sig ();
20897 ;
20898 return 0;
20899}
20900_ACEOF
20901rm -f conftest.$ac_objext conftest$ac_exeext
20902if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20903 (eval $ac_link) 2>conftest.er1
a848cd7e 20904 ac_status=$?
ac1cb8d3
VS
20905 grep -v '^ *+' conftest.er1 >conftest.err
20906 rm -f conftest.er1
20907 cat conftest.err >&5
a848cd7e
SC
20908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20909 (exit $ac_status); } &&
ea7db9ff
DE
20910 { ac_try='test -z "$ac_c_werror_flag"
20911 || test ! -s conftest.err'
ac1cb8d3
VS
20912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20913 (eval $ac_try) 2>&5
20914 ac_status=$?
20915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20916 (exit $ac_status); }; } &&
20917 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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_lib_png_png_check_sig=yes
20924else
20925 echo "$as_me: failed program was:" >&5
20926sed 's/^/| /' conftest.$ac_ext >&5
20927
20928ac_cv_lib_png_png_check_sig=no
20929fi
ac1cb8d3
VS
20930rm -f conftest.err conftest.$ac_objext \
20931 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20932LIBS=$ac_check_lib_save_LIBS
20933fi
20934echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
20935echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
20936if test $ac_cv_lib_png_png_check_sig = yes; then
20937 PNG_LINK=" -lpng -lz"
20938fi
20939
20940 fi
20941
20942 if test "x$PNG_LINK" = "x" ; then
20943 if test "$wxUSE_LIBPNG" = "sys" ; then
20944 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
20945echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
20946 { (exit 1); exit 1; }; }
20947 else
20948 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
20949echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
20950 wxUSE_LIBPNG=builtin
20951 fi
20952 else
20953 wxUSE_LIBPNG=sys
20954 fi
20955 fi
20956 fi
20957
20958 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
20959fi
20960
20961
20962JPEG_LINK=
20963if test "$wxUSE_LIBJPEG" != "no" ; then
20964 cat >>confdefs.h <<\_ACEOF
20965#define wxUSE_LIBJPEG 1
20966_ACEOF
20967
20968
20969 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
20970 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
20971echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
20972 wxUSE_LIBJPEG=sys
20973 fi
20974
20975 if test "$wxUSE_MGL" != 1 ; then
20976 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
20977 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
20978echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
20979 if test "${ac_cv_header_jpeglib_h+set}" = set; then
20980 echo $ECHO_N "(cached) $ECHO_C" >&6
20981else
20982 cat >conftest.$ac_ext <<_ACEOF
20983/* confdefs.h. */
20984_ACEOF
20985cat confdefs.h >>conftest.$ac_ext
20986cat >>conftest.$ac_ext <<_ACEOF
20987/* end confdefs.h. */
20988
20989 #undef HAVE_STDLIB_H
20990 #include <stdio.h>
20991 #include <jpeglib.h>
20992
20993int
20994main ()
20995{
20996
20997
20998 ;
20999 return 0;
21000}
21001_ACEOF
21002rm -f conftest.$ac_objext
21003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21004 (eval $ac_compile) 2>conftest.er1
a848cd7e 21005 ac_status=$?
ac1cb8d3
VS
21006 grep -v '^ *+' conftest.er1 >conftest.err
21007 rm -f conftest.er1
21008 cat conftest.err >&5
a848cd7e
SC
21009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010 (exit $ac_status); } &&
ea7db9ff
DE
21011 { ac_try='test -z "$ac_c_werror_flag"
21012 || test ! -s conftest.err'
ac1cb8d3
VS
21013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21014 (eval $ac_try) 2>&5
21015 ac_status=$?
21016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017 (exit $ac_status); }; } &&
21018 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21020 (eval $ac_try) 2>&5
21021 ac_status=$?
21022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21023 (exit $ac_status); }; }; then
21024 ac_cv_header_jpeglib_h=yes
21025else
21026 echo "$as_me: failed program was:" >&5
21027sed 's/^/| /' conftest.$ac_ext >&5
21028
21029ac_cv_header_jpeglib_h=no
21030
21031fi
ac1cb8d3 21032rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21033
21034fi
21035
21036 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
21037echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
21038
21039 if test "$ac_cv_header_jpeglib_h" = "yes"; then
21040 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
21041echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
21042if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
21043 echo $ECHO_N "(cached) $ECHO_C" >&6
21044else
21045 ac_check_lib_save_LIBS=$LIBS
21046LIBS="-ljpeg $LIBS"
21047cat >conftest.$ac_ext <<_ACEOF
21048/* confdefs.h. */
21049_ACEOF
21050cat confdefs.h >>conftest.$ac_ext
21051cat >>conftest.$ac_ext <<_ACEOF
21052/* end confdefs.h. */
21053
21054/* Override any gcc2 internal prototype to avoid an error. */
21055#ifdef __cplusplus
21056extern "C"
21057#endif
21058/* We use char because int might match the return type of a gcc2
21059 builtin and then its argument prototype would still apply. */
21060char jpeg_read_header ();
21061int
21062main ()
21063{
21064jpeg_read_header ();
21065 ;
21066 return 0;
21067}
21068_ACEOF
21069rm -f conftest.$ac_objext conftest$ac_exeext
21070if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21071 (eval $ac_link) 2>conftest.er1
a848cd7e 21072 ac_status=$?
ac1cb8d3
VS
21073 grep -v '^ *+' conftest.er1 >conftest.err
21074 rm -f conftest.er1
21075 cat conftest.err >&5
a848cd7e
SC
21076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21077 (exit $ac_status); } &&
ea7db9ff
DE
21078 { ac_try='test -z "$ac_c_werror_flag"
21079 || test ! -s conftest.err'
ac1cb8d3
VS
21080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21081 (eval $ac_try) 2>&5
21082 ac_status=$?
21083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084 (exit $ac_status); }; } &&
21085 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21087 (eval $ac_try) 2>&5
21088 ac_status=$?
21089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21090 (exit $ac_status); }; }; then
21091 ac_cv_lib_jpeg_jpeg_read_header=yes
21092else
21093 echo "$as_me: failed program was:" >&5
21094sed 's/^/| /' conftest.$ac_ext >&5
21095
21096ac_cv_lib_jpeg_jpeg_read_header=no
21097fi
ac1cb8d3
VS
21098rm -f conftest.err conftest.$ac_objext \
21099 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21100LIBS=$ac_check_lib_save_LIBS
21101fi
21102echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
21103echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
21104if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21105 JPEG_LINK=" -ljpeg"
21106fi
21107
21108 fi
21109
21110 if test "x$JPEG_LINK" = "x" ; then
21111 if test "$wxUSE_LIBJPEG" = "sys" ; then
21112 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
21113echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
21114 { (exit 1); exit 1; }; }
21115 else
21116 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
21117echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21118 wxUSE_LIBJPEG=builtin
21119 fi
21120 else
21121 wxUSE_LIBJPEG=sys
21122 fi
21123 fi
21124 fi
21125fi
21126
21127
21128TIFF_LINK=
21129TIFF_PREREQ_LINKS=-lm
21130if test "$wxUSE_LIBTIFF" != "no" ; then
21131 cat >>confdefs.h <<\_ACEOF
21132#define wxUSE_LIBTIFF 1
21133_ACEOF
21134
21135
21136 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
21137 if test "$wxUSE_LIBJPEG" = "sys"; then
21138 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
21139 fi
21140 if test "$wxUSE_ZLIB" = "sys"; then
21141 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
21142 fi
21143 if test "${ac_cv_header_tiffio_h+set}" = set; then
21144 echo "$as_me:$LINENO: checking for tiffio.h" >&5
21145echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21146if test "${ac_cv_header_tiffio_h+set}" = set; then
21147 echo $ECHO_N "(cached) $ECHO_C" >&6
21148fi
21149echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21150echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21151else
21152 # Is the header compilable?
21153echo "$as_me:$LINENO: checking tiffio.h usability" >&5
21154echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
21155cat >conftest.$ac_ext <<_ACEOF
21156/* confdefs.h. */
21157_ACEOF
21158cat confdefs.h >>conftest.$ac_ext
21159cat >>conftest.$ac_ext <<_ACEOF
21160/* end confdefs.h. */
21161$ac_includes_default
21162#include <tiffio.h>
21163_ACEOF
21164rm -f conftest.$ac_objext
21165if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21166 (eval $ac_compile) 2>conftest.er1
a848cd7e 21167 ac_status=$?
ac1cb8d3
VS
21168 grep -v '^ *+' conftest.er1 >conftest.err
21169 rm -f conftest.er1
21170 cat conftest.err >&5
a848cd7e
SC
21171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21172 (exit $ac_status); } &&
ea7db9ff
DE
21173 { ac_try='test -z "$ac_c_werror_flag"
21174 || test ! -s conftest.err'
ac1cb8d3
VS
21175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21176 (eval $ac_try) 2>&5
21177 ac_status=$?
21178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21179 (exit $ac_status); }; } &&
21180 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21182 (eval $ac_try) 2>&5
21183 ac_status=$?
21184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21185 (exit $ac_status); }; }; then
21186 ac_header_compiler=yes
21187else
21188 echo "$as_me: failed program was:" >&5
21189sed 's/^/| /' conftest.$ac_ext >&5
21190
21191ac_header_compiler=no
21192fi
ac1cb8d3 21193rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21194echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21195echo "${ECHO_T}$ac_header_compiler" >&6
21196
21197# Is the header present?
21198echo "$as_me:$LINENO: checking tiffio.h presence" >&5
21199echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
21200cat >conftest.$ac_ext <<_ACEOF
21201/* confdefs.h. */
21202_ACEOF
21203cat confdefs.h >>conftest.$ac_ext
21204cat >>conftest.$ac_ext <<_ACEOF
21205/* end confdefs.h. */
21206#include <tiffio.h>
21207_ACEOF
21208if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21209 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21210 ac_status=$?
21211 grep -v '^ *+' conftest.er1 >conftest.err
21212 rm -f conftest.er1
21213 cat conftest.err >&5
21214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21215 (exit $ac_status); } >/dev/null; then
21216 if test -s conftest.err; then
21217 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21218 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21219 else
21220 ac_cpp_err=
21221 fi
21222else
21223 ac_cpp_err=yes
21224fi
21225if test -z "$ac_cpp_err"; then
21226 ac_header_preproc=yes
21227else
21228 echo "$as_me: failed program was:" >&5
21229sed 's/^/| /' conftest.$ac_ext >&5
21230
21231 ac_header_preproc=no
21232fi
21233rm -f conftest.err conftest.$ac_ext
21234echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21235echo "${ECHO_T}$ac_header_preproc" >&6
21236
21237# So? What about this header?
ac1cb8d3
VS
21238case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21239 yes:no: )
a848cd7e
SC
21240 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
21241echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21242 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
21243echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
21244 ac_header_preproc=yes
a848cd7e 21245 ;;
ac1cb8d3 21246 no:yes:* )
a848cd7e
SC
21247 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
21248echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21249 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
21250echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
21251 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
21252echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
21253 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
21254echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21255 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
21256echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21257 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
21258echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21259 (
21260 cat <<\_ASBOX
ac1cb8d3
VS
21261## ----------------------------------------- ##
21262## Report this to wx-dev@lists.wxwidgets.org ##
21263## ----------------------------------------- ##
a848cd7e
SC
21264_ASBOX
21265 ) |
21266 sed "s/^/$as_me: WARNING: /" >&2
21267 ;;
21268esac
21269echo "$as_me:$LINENO: checking for tiffio.h" >&5
21270echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21271if test "${ac_cv_header_tiffio_h+set}" = set; then
21272 echo $ECHO_N "(cached) $ECHO_C" >&6
21273else
21274 ac_cv_header_tiffio_h=$ac_header_preproc
21275fi
21276echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21277echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21278
21279fi
21280if test $ac_cv_header_tiffio_h = yes; then
21281
21282 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
21283echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
21284if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
21285 echo $ECHO_N "(cached) $ECHO_C" >&6
21286else
21287 ac_check_lib_save_LIBS=$LIBS
21288LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
21289cat >conftest.$ac_ext <<_ACEOF
21290/* confdefs.h. */
21291_ACEOF
21292cat confdefs.h >>conftest.$ac_ext
21293cat >>conftest.$ac_ext <<_ACEOF
21294/* end confdefs.h. */
21295
21296/* Override any gcc2 internal prototype to avoid an error. */
21297#ifdef __cplusplus
21298extern "C"
21299#endif
21300/* We use char because int might match the return type of a gcc2
21301 builtin and then its argument prototype would still apply. */
21302char TIFFError ();
21303int
21304main ()
21305{
21306TIFFError ();
21307 ;
21308 return 0;
21309}
21310_ACEOF
21311rm -f conftest.$ac_objext conftest$ac_exeext
21312if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21313 (eval $ac_link) 2>conftest.er1
a848cd7e 21314 ac_status=$?
ac1cb8d3
VS
21315 grep -v '^ *+' conftest.er1 >conftest.err
21316 rm -f conftest.er1
21317 cat conftest.err >&5
a848cd7e
SC
21318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21319 (exit $ac_status); } &&
ea7db9ff
DE
21320 { ac_try='test -z "$ac_c_werror_flag"
21321 || test ! -s conftest.err'
ac1cb8d3
VS
21322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21323 (eval $ac_try) 2>&5
21324 ac_status=$?
21325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21326 (exit $ac_status); }; } &&
21327 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21329 (eval $ac_try) 2>&5
21330 ac_status=$?
21331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21332 (exit $ac_status); }; }; then
21333 ac_cv_lib_tiff_TIFFError=yes
21334else
21335 echo "$as_me: failed program was:" >&5
21336sed 's/^/| /' conftest.$ac_ext >&5
21337
21338ac_cv_lib_tiff_TIFFError=no
21339fi
ac1cb8d3
VS
21340rm -f conftest.err conftest.$ac_objext \
21341 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21342LIBS=$ac_check_lib_save_LIBS
21343fi
21344echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
21345echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
21346if test $ac_cv_lib_tiff_TIFFError = yes; then
21347 TIFF_LINK=" -ltiff"
21348fi
21349
21350
21351
21352fi
21353
21354
21355
21356 if test "x$TIFF_LINK" = "x" ; then
21357 if test "$wxUSE_LIBTIFF" = "sys" ; then
21358 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
21359echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
21360 { (exit 1); exit 1; }; }
21361 else
21362 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
21363echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
21364 wxUSE_LIBTIFF=builtin
21365 fi
21366 else
21367 wxUSE_LIBTIFF=sys
21368 fi
21369 fi
21370fi
21371
21372
21373if test "$wxUSE_EXPAT" != "no"; then
21374 wxUSE_XML=yes
21375 cat >>confdefs.h <<\_ACEOF
21376#define wxUSE_EXPAT 1
21377_ACEOF
21378
21379 cat >>confdefs.h <<\_ACEOF
21380#define wxUSE_XML 1
21381_ACEOF
21382
21383
21384 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
21385 if test "${ac_cv_header_expat_h+set}" = set; then
21386 echo "$as_me:$LINENO: checking for expat.h" >&5
21387echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
21388if test "${ac_cv_header_expat_h+set}" = set; then
21389 echo $ECHO_N "(cached) $ECHO_C" >&6
21390fi
21391echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
21392echo "${ECHO_T}$ac_cv_header_expat_h" >&6
21393else
21394 # Is the header compilable?
21395echo "$as_me:$LINENO: checking expat.h usability" >&5
21396echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
21397cat >conftest.$ac_ext <<_ACEOF
21398/* confdefs.h. */
21399_ACEOF
21400cat confdefs.h >>conftest.$ac_ext
21401cat >>conftest.$ac_ext <<_ACEOF
21402/* end confdefs.h. */
21403$ac_includes_default
21404#include <expat.h>
21405_ACEOF
21406rm -f conftest.$ac_objext
21407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21408 (eval $ac_compile) 2>conftest.er1
a848cd7e 21409 ac_status=$?
ac1cb8d3
VS
21410 grep -v '^ *+' conftest.er1 >conftest.err
21411 rm -f conftest.er1
21412 cat conftest.err >&5
a848cd7e
SC
21413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21414 (exit $ac_status); } &&
ea7db9ff
DE
21415 { ac_try='test -z "$ac_c_werror_flag"
21416 || test ! -s conftest.err'
ac1cb8d3
VS
21417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21418 (eval $ac_try) 2>&5
21419 ac_status=$?
21420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21421 (exit $ac_status); }; } &&
21422 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21424 (eval $ac_try) 2>&5
21425 ac_status=$?
21426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21427 (exit $ac_status); }; }; then
21428 ac_header_compiler=yes
21429else
21430 echo "$as_me: failed program was:" >&5
21431sed 's/^/| /' conftest.$ac_ext >&5
21432
21433ac_header_compiler=no
21434fi
ac1cb8d3 21435rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21436echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21437echo "${ECHO_T}$ac_header_compiler" >&6
21438
21439# Is the header present?
21440echo "$as_me:$LINENO: checking expat.h presence" >&5
21441echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
21442cat >conftest.$ac_ext <<_ACEOF
21443/* confdefs.h. */
21444_ACEOF
21445cat confdefs.h >>conftest.$ac_ext
21446cat >>conftest.$ac_ext <<_ACEOF
21447/* end confdefs.h. */
21448#include <expat.h>
21449_ACEOF
21450if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21451 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21452 ac_status=$?
21453 grep -v '^ *+' conftest.er1 >conftest.err
21454 rm -f conftest.er1
21455 cat conftest.err >&5
21456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21457 (exit $ac_status); } >/dev/null; then
21458 if test -s conftest.err; then
21459 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21460 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21461 else
21462 ac_cpp_err=
21463 fi
21464else
21465 ac_cpp_err=yes
21466fi
21467if test -z "$ac_cpp_err"; then
21468 ac_header_preproc=yes
21469else
21470 echo "$as_me: failed program was:" >&5
21471sed 's/^/| /' conftest.$ac_ext >&5
21472
21473 ac_header_preproc=no
21474fi
21475rm -f conftest.err conftest.$ac_ext
21476echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21477echo "${ECHO_T}$ac_header_preproc" >&6
21478
21479# So? What about this header?
ac1cb8d3
VS
21480case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21481 yes:no: )
a848cd7e
SC
21482 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
21483echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21484 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
21485echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
21486 ac_header_preproc=yes
a848cd7e 21487 ;;
ac1cb8d3 21488 no:yes:* )
a848cd7e
SC
21489 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
21490echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21491 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
21492echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
21493 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
21494echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
21495 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
21496echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21497 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
21498echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21499 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
21500echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21501 (
21502 cat <<\_ASBOX
ac1cb8d3
VS
21503## ----------------------------------------- ##
21504## Report this to wx-dev@lists.wxwidgets.org ##
21505## ----------------------------------------- ##
a848cd7e
SC
21506_ASBOX
21507 ) |
21508 sed "s/^/$as_me: WARNING: /" >&2
21509 ;;
21510esac
21511echo "$as_me:$LINENO: checking for expat.h" >&5
21512echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
21513if test "${ac_cv_header_expat_h+set}" = set; then
21514 echo $ECHO_N "(cached) $ECHO_C" >&6
21515else
21516 ac_cv_header_expat_h=$ac_header_preproc
21517fi
21518echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
21519echo "${ECHO_T}$ac_cv_header_expat_h" >&6
21520
21521fi
21522if test $ac_cv_header_expat_h = yes; then
21523 found_expat_h=1
21524fi
21525
21526
21527 if test "x$found_expat_h" = "x1"; then
21528 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
21529echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
21530if test "${wx_cv_expat_is_not_broken+set}" = set; then
21531 echo $ECHO_N "(cached) $ECHO_C" >&6
21532else
21533
21534
21535
21536 ac_ext=cc
21537ac_cpp='$CXXCPP $CPPFLAGS'
21538ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21539ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21540ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21541
21542 cat >conftest.$ac_ext <<_ACEOF
21543/* confdefs.h. */
21544_ACEOF
21545cat confdefs.h >>conftest.$ac_ext
21546cat >>conftest.$ac_ext <<_ACEOF
21547/* end confdefs.h. */
21548#include <expat.h>
21549int
21550main ()
21551{
21552
21553 ;
21554 return 0;
21555}
21556_ACEOF
21557rm -f conftest.$ac_objext
21558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21559 (eval $ac_compile) 2>conftest.er1
a848cd7e 21560 ac_status=$?
ac1cb8d3
VS
21561 grep -v '^ *+' conftest.er1 >conftest.err
21562 rm -f conftest.er1
21563 cat conftest.err >&5
a848cd7e
SC
21564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21565 (exit $ac_status); } &&
ea7db9ff
DE
21566 { ac_try='test -z "$ac_cxx_werror_flag"
21567 || test ! -s conftest.err'
ac1cb8d3
VS
21568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21569 (eval $ac_try) 2>&5
21570 ac_status=$?
21571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21572 (exit $ac_status); }; } &&
21573 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21575 (eval $ac_try) 2>&5
21576 ac_status=$?
21577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21578 (exit $ac_status); }; }; then
21579 wx_cv_expat_is_not_broken=yes
21580else
21581 echo "$as_me: failed program was:" >&5
21582sed 's/^/| /' conftest.$ac_ext >&5
21583
21584wx_cv_expat_is_not_broken=no
21585
21586fi
ac1cb8d3 21587rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21588 ac_ext=c
21589ac_cpp='$CPP $CPPFLAGS'
21590ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21591ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21592ac_compiler_gnu=$ac_cv_c_compiler_gnu
21593
21594
21595
21596fi
21597echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
21598echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
21599 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
21600 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
21601echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
21602if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
21603 echo $ECHO_N "(cached) $ECHO_C" >&6
21604else
21605 ac_check_lib_save_LIBS=$LIBS
21606LIBS="-lexpat $LIBS"
21607cat >conftest.$ac_ext <<_ACEOF
21608/* confdefs.h. */
21609_ACEOF
21610cat confdefs.h >>conftest.$ac_ext
21611cat >>conftest.$ac_ext <<_ACEOF
21612/* end confdefs.h. */
21613
21614/* Override any gcc2 internal prototype to avoid an error. */
21615#ifdef __cplusplus
21616extern "C"
21617#endif
21618/* We use char because int might match the return type of a gcc2
21619 builtin and then its argument prototype would still apply. */
21620char XML_ParserCreate ();
21621int
21622main ()
21623{
21624XML_ParserCreate ();
21625 ;
21626 return 0;
21627}
21628_ACEOF
21629rm -f conftest.$ac_objext conftest$ac_exeext
21630if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21631 (eval $ac_link) 2>conftest.er1
a848cd7e 21632 ac_status=$?
ac1cb8d3
VS
21633 grep -v '^ *+' conftest.er1 >conftest.err
21634 rm -f conftest.er1
21635 cat conftest.err >&5
a848cd7e
SC
21636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21637 (exit $ac_status); } &&
ea7db9ff
DE
21638 { ac_try='test -z "$ac_c_werror_flag"
21639 || test ! -s conftest.err'
ac1cb8d3
VS
21640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21641 (eval $ac_try) 2>&5
21642 ac_status=$?
21643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21644 (exit $ac_status); }; } &&
21645 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21647 (eval $ac_try) 2>&5
21648 ac_status=$?
21649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21650 (exit $ac_status); }; }; then
21651 ac_cv_lib_expat_XML_ParserCreate=yes
21652else
21653 echo "$as_me: failed program was:" >&5
21654sed 's/^/| /' conftest.$ac_ext >&5
21655
21656ac_cv_lib_expat_XML_ParserCreate=no
21657fi
ac1cb8d3
VS
21658rm -f conftest.err conftest.$ac_objext \
21659 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21660LIBS=$ac_check_lib_save_LIBS
21661fi
21662echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
21663echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
21664if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
21665 EXPAT_LINK=" -lexpat"
21666fi
21667
21668 fi
21669 fi
21670 if test "x$EXPAT_LINK" = "x" ; then
21671 if test "$wxUSE_EXPAT" = "sys" ; then
21672 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
21673echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
21674 { (exit 1); exit 1; }; }
21675 else
21676 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
21677echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
21678 wxUSE_EXPAT=builtin
21679 fi
21680 else
21681 wxUSE_EXPAT=sys
21682 fi
21683 fi
21684 if test "$wxUSE_EXPAT" = "builtin" ; then
21685
21686
21687subdirs="$subdirs src/expat"
21688
21689 fi
21690fi
21691
21692
21693
21694if test "$wxUSE_LIBMSPACK" != "no"; then
21695
21696 if test "${ac_cv_header_mspack_h+set}" = set; then
21697 echo "$as_me:$LINENO: checking for mspack.h" >&5
21698echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
21699if test "${ac_cv_header_mspack_h+set}" = set; then
21700 echo $ECHO_N "(cached) $ECHO_C" >&6
21701fi
21702echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
21703echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
21704else
21705 # Is the header compilable?
21706echo "$as_me:$LINENO: checking mspack.h usability" >&5
21707echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
21708cat >conftest.$ac_ext <<_ACEOF
21709/* confdefs.h. */
21710_ACEOF
21711cat confdefs.h >>conftest.$ac_ext
21712cat >>conftest.$ac_ext <<_ACEOF
21713/* end confdefs.h. */
21714$ac_includes_default
21715#include <mspack.h>
21716_ACEOF
21717rm -f conftest.$ac_objext
21718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21719 (eval $ac_compile) 2>conftest.er1
a848cd7e 21720 ac_status=$?
ac1cb8d3
VS
21721 grep -v '^ *+' conftest.er1 >conftest.err
21722 rm -f conftest.er1
21723 cat conftest.err >&5
a848cd7e
SC
21724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21725 (exit $ac_status); } &&
ea7db9ff
DE
21726 { ac_try='test -z "$ac_c_werror_flag"
21727 || test ! -s conftest.err'
ac1cb8d3
VS
21728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21729 (eval $ac_try) 2>&5
21730 ac_status=$?
21731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21732 (exit $ac_status); }; } &&
21733 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21735 (eval $ac_try) 2>&5
21736 ac_status=$?
21737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21738 (exit $ac_status); }; }; then
21739 ac_header_compiler=yes
21740else
21741 echo "$as_me: failed program was:" >&5
21742sed 's/^/| /' conftest.$ac_ext >&5
21743
21744ac_header_compiler=no
21745fi
ac1cb8d3 21746rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21747echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21748echo "${ECHO_T}$ac_header_compiler" >&6
21749
21750# Is the header present?
21751echo "$as_me:$LINENO: checking mspack.h presence" >&5
21752echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
21753cat >conftest.$ac_ext <<_ACEOF
21754/* confdefs.h. */
21755_ACEOF
21756cat confdefs.h >>conftest.$ac_ext
21757cat >>conftest.$ac_ext <<_ACEOF
21758/* end confdefs.h. */
21759#include <mspack.h>
21760_ACEOF
21761if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21762 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21763 ac_status=$?
21764 grep -v '^ *+' conftest.er1 >conftest.err
21765 rm -f conftest.er1
21766 cat conftest.err >&5
21767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21768 (exit $ac_status); } >/dev/null; then
21769 if test -s conftest.err; then
21770 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21771 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21772 else
21773 ac_cpp_err=
21774 fi
21775else
21776 ac_cpp_err=yes
21777fi
21778if test -z "$ac_cpp_err"; then
21779 ac_header_preproc=yes
21780else
21781 echo "$as_me: failed program was:" >&5
21782sed 's/^/| /' conftest.$ac_ext >&5
21783
21784 ac_header_preproc=no
21785fi
21786rm -f conftest.err conftest.$ac_ext
21787echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21788echo "${ECHO_T}$ac_header_preproc" >&6
21789
21790# So? What about this header?
ac1cb8d3
VS
21791case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21792 yes:no: )
a848cd7e
SC
21793 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
21794echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21795 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
21796echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
21797 ac_header_preproc=yes
a848cd7e 21798 ;;
ac1cb8d3 21799 no:yes:* )
a848cd7e
SC
21800 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
21801echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21802 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
21803echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
21804 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
21805echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
21806 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
21807echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21808 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
21809echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21810 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
21811echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21812 (
21813 cat <<\_ASBOX
ac1cb8d3
VS
21814## ----------------------------------------- ##
21815## Report this to wx-dev@lists.wxwidgets.org ##
21816## ----------------------------------------- ##
a848cd7e
SC
21817_ASBOX
21818 ) |
21819 sed "s/^/$as_me: WARNING: /" >&2
21820 ;;
21821esac
21822echo "$as_me:$LINENO: checking for mspack.h" >&5
21823echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
21824if test "${ac_cv_header_mspack_h+set}" = set; then
21825 echo $ECHO_N "(cached) $ECHO_C" >&6
21826else
21827 ac_cv_header_mspack_h=$ac_header_preproc
21828fi
21829echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
21830echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
21831
21832fi
21833if test $ac_cv_header_mspack_h = yes; then
21834 found_mspack_h=1
21835fi
21836
21837
21838 if test "x$found_mspack_h" = "x1"; then
21839 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
21840echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
21841if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
21842 echo $ECHO_N "(cached) $ECHO_C" >&6
21843else
21844 ac_check_lib_save_LIBS=$LIBS
21845LIBS="-lmspack $LIBS"
21846cat >conftest.$ac_ext <<_ACEOF
21847/* confdefs.h. */
21848_ACEOF
21849cat confdefs.h >>conftest.$ac_ext
21850cat >>conftest.$ac_ext <<_ACEOF
21851/* end confdefs.h. */
21852
21853/* Override any gcc2 internal prototype to avoid an error. */
21854#ifdef __cplusplus
21855extern "C"
21856#endif
21857/* We use char because int might match the return type of a gcc2
21858 builtin and then its argument prototype would still apply. */
21859char mspack_create_chm_decompressor ();
21860int
21861main ()
21862{
21863mspack_create_chm_decompressor ();
21864 ;
21865 return 0;
21866}
21867_ACEOF
21868rm -f conftest.$ac_objext conftest$ac_exeext
21869if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21870 (eval $ac_link) 2>conftest.er1
a848cd7e 21871 ac_status=$?
ac1cb8d3
VS
21872 grep -v '^ *+' conftest.er1 >conftest.err
21873 rm -f conftest.er1
21874 cat conftest.err >&5
a848cd7e
SC
21875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21876 (exit $ac_status); } &&
ea7db9ff
DE
21877 { ac_try='test -z "$ac_c_werror_flag"
21878 || test ! -s conftest.err'
ac1cb8d3
VS
21879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21880 (eval $ac_try) 2>&5
21881 ac_status=$?
21882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21883 (exit $ac_status); }; } &&
21884 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21886 (eval $ac_try) 2>&5
21887 ac_status=$?
21888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21889 (exit $ac_status); }; }; then
21890 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
21891else
21892 echo "$as_me: failed program was:" >&5
21893sed 's/^/| /' conftest.$ac_ext >&5
21894
21895ac_cv_lib_mspack_mspack_create_chm_decompressor=no
21896fi
ac1cb8d3
VS
21897rm -f conftest.err conftest.$ac_objext \
21898 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21899LIBS=$ac_check_lib_save_LIBS
21900fi
21901echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
21902echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
21903if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
21904 MSPACK_LINK=" -lmspack"
21905fi
21906
21907 fi
21908 if test "x$MSPACK_LINK" = "x" ; then
21909 wxUSE_LIBMSPACK=no
21910 else
21911 cat >>confdefs.h <<\_ACEOF
21912#define wxUSE_LIBMSPACK 1
21913_ACEOF
21914
21915 fi
21916fi
21917
21918
21919
21920AFMINSTALL=
21921WIN32INSTALL=
21922
21923TOOLKIT=
21924TOOLKIT_INCLUDE=
21925WIDGET_SET=
21926
21927if test "$USE_WIN32" = 1 ; then
21928
21929for ac_header in w32api.h
21930do
21931as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21932if eval "test \"\${$as_ac_Header+set}\" = set"; then
21933 echo "$as_me:$LINENO: checking for $ac_header" >&5
21934echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21935if eval "test \"\${$as_ac_Header+set}\" = set"; then
21936 echo $ECHO_N "(cached) $ECHO_C" >&6
21937fi
21938echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21939echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21940else
21941 # Is the header compilable?
21942echo "$as_me:$LINENO: checking $ac_header usability" >&5
21943echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21944cat >conftest.$ac_ext <<_ACEOF
21945/* confdefs.h. */
21946_ACEOF
21947cat confdefs.h >>conftest.$ac_ext
21948cat >>conftest.$ac_ext <<_ACEOF
21949/* end confdefs.h. */
21950$ac_includes_default
21951#include <$ac_header>
21952_ACEOF
21953rm -f conftest.$ac_objext
21954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21955 (eval $ac_compile) 2>conftest.er1
a848cd7e 21956 ac_status=$?
ac1cb8d3
VS
21957 grep -v '^ *+' conftest.er1 >conftest.err
21958 rm -f conftest.er1
21959 cat conftest.err >&5
a848cd7e
SC
21960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21961 (exit $ac_status); } &&
ea7db9ff
DE
21962 { ac_try='test -z "$ac_c_werror_flag"
21963 || test ! -s conftest.err'
ac1cb8d3
VS
21964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21965 (eval $ac_try) 2>&5
21966 ac_status=$?
21967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21968 (exit $ac_status); }; } &&
21969 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21971 (eval $ac_try) 2>&5
21972 ac_status=$?
21973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21974 (exit $ac_status); }; }; then
21975 ac_header_compiler=yes
21976else
21977 echo "$as_me: failed program was:" >&5
21978sed 's/^/| /' conftest.$ac_ext >&5
21979
21980ac_header_compiler=no
21981fi
ac1cb8d3 21982rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21983echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21984echo "${ECHO_T}$ac_header_compiler" >&6
21985
21986# Is the header present?
21987echo "$as_me:$LINENO: checking $ac_header presence" >&5
21988echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21989cat >conftest.$ac_ext <<_ACEOF
21990/* confdefs.h. */
21991_ACEOF
21992cat confdefs.h >>conftest.$ac_ext
21993cat >>conftest.$ac_ext <<_ACEOF
21994/* end confdefs.h. */
21995#include <$ac_header>
21996_ACEOF
21997if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21998 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21999 ac_status=$?
22000 grep -v '^ *+' conftest.er1 >conftest.err
22001 rm -f conftest.er1
22002 cat conftest.err >&5
22003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22004 (exit $ac_status); } >/dev/null; then
22005 if test -s conftest.err; then
22006 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22007 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22008 else
22009 ac_cpp_err=
22010 fi
22011else
22012 ac_cpp_err=yes
22013fi
22014if test -z "$ac_cpp_err"; then
22015 ac_header_preproc=yes
22016else
22017 echo "$as_me: failed program was:" >&5
22018sed 's/^/| /' conftest.$ac_ext >&5
22019
22020 ac_header_preproc=no
22021fi
22022rm -f conftest.err conftest.$ac_ext
22023echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22024echo "${ECHO_T}$ac_header_preproc" >&6
22025
22026# So? What about this header?
ac1cb8d3
VS
22027case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22028 yes:no: )
a848cd7e
SC
22029 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22030echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22032echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22033 ac_header_preproc=yes
a848cd7e 22034 ;;
ac1cb8d3 22035 no:yes:* )
a848cd7e
SC
22036 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22037echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22038 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22039echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22040 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22041echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22042 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22043echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22045echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22046 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22047echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22048 (
22049 cat <<\_ASBOX
ac1cb8d3
VS
22050## ----------------------------------------- ##
22051## Report this to wx-dev@lists.wxwidgets.org ##
22052## ----------------------------------------- ##
a848cd7e
SC
22053_ASBOX
22054 ) |
22055 sed "s/^/$as_me: WARNING: /" >&2
22056 ;;
22057esac
22058echo "$as_me:$LINENO: checking for $ac_header" >&5
22059echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22060if eval "test \"\${$as_ac_Header+set}\" = set"; then
22061 echo $ECHO_N "(cached) $ECHO_C" >&6
22062else
ac1cb8d3 22063 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
22064fi
22065echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22066echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22067
22068fi
22069if test `eval echo '${'$as_ac_Header'}'` = yes; then
22070 cat >>confdefs.h <<_ACEOF
22071#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22072_ACEOF
22073
22074fi
22075
22076done
22077
22078 if test "${ac_cv_header_windows_h+set}" = set; then
22079 echo "$as_me:$LINENO: checking for windows.h" >&5
22080echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
22081if test "${ac_cv_header_windows_h+set}" = set; then
22082 echo $ECHO_N "(cached) $ECHO_C" >&6
22083fi
22084echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
22085echo "${ECHO_T}$ac_cv_header_windows_h" >&6
22086else
22087 # Is the header compilable?
22088echo "$as_me:$LINENO: checking windows.h usability" >&5
22089echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
22090cat >conftest.$ac_ext <<_ACEOF
22091/* confdefs.h. */
22092_ACEOF
22093cat confdefs.h >>conftest.$ac_ext
22094cat >>conftest.$ac_ext <<_ACEOF
22095/* end confdefs.h. */
22096$ac_includes_default
22097#include <windows.h>
22098_ACEOF
22099rm -f conftest.$ac_objext
22100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22101 (eval $ac_compile) 2>conftest.er1
a848cd7e 22102 ac_status=$?
ac1cb8d3
VS
22103 grep -v '^ *+' conftest.er1 >conftest.err
22104 rm -f conftest.er1
22105 cat conftest.err >&5
a848cd7e
SC
22106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22107 (exit $ac_status); } &&
ea7db9ff
DE
22108 { ac_try='test -z "$ac_c_werror_flag"
22109 || test ! -s conftest.err'
ac1cb8d3
VS
22110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22111 (eval $ac_try) 2>&5
22112 ac_status=$?
22113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22114 (exit $ac_status); }; } &&
22115 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22117 (eval $ac_try) 2>&5
22118 ac_status=$?
22119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22120 (exit $ac_status); }; }; then
22121 ac_header_compiler=yes
22122else
22123 echo "$as_me: failed program was:" >&5
22124sed 's/^/| /' conftest.$ac_ext >&5
22125
22126ac_header_compiler=no
22127fi
ac1cb8d3 22128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22129echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22130echo "${ECHO_T}$ac_header_compiler" >&6
22131
22132# Is the header present?
22133echo "$as_me:$LINENO: checking windows.h presence" >&5
22134echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
22135cat >conftest.$ac_ext <<_ACEOF
22136/* confdefs.h. */
22137_ACEOF
22138cat confdefs.h >>conftest.$ac_ext
22139cat >>conftest.$ac_ext <<_ACEOF
22140/* end confdefs.h. */
22141#include <windows.h>
22142_ACEOF
22143if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22144 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22145 ac_status=$?
22146 grep -v '^ *+' conftest.er1 >conftest.err
22147 rm -f conftest.er1
22148 cat conftest.err >&5
22149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22150 (exit $ac_status); } >/dev/null; then
22151 if test -s conftest.err; then
22152 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22153 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22154 else
22155 ac_cpp_err=
22156 fi
22157else
22158 ac_cpp_err=yes
22159fi
22160if test -z "$ac_cpp_err"; then
22161 ac_header_preproc=yes
22162else
22163 echo "$as_me: failed program was:" >&5
22164sed 's/^/| /' conftest.$ac_ext >&5
22165
22166 ac_header_preproc=no
22167fi
22168rm -f conftest.err conftest.$ac_ext
22169echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22170echo "${ECHO_T}$ac_header_preproc" >&6
22171
22172# So? What about this header?
ac1cb8d3
VS
22173case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22174 yes:no: )
a848cd7e
SC
22175 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
22176echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22177 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
22178echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
22179 ac_header_preproc=yes
a848cd7e 22180 ;;
ac1cb8d3 22181 no:yes:* )
a848cd7e
SC
22182 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
22183echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22184 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
22185echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
22186 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
22187echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
22188 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
22189echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22190 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
22191echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22192 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
22193echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22194 (
22195 cat <<\_ASBOX
ac1cb8d3
VS
22196## ----------------------------------------- ##
22197## Report this to wx-dev@lists.wxwidgets.org ##
22198## ----------------------------------------- ##
a848cd7e
SC
22199_ASBOX
22200 ) |
22201 sed "s/^/$as_me: WARNING: /" >&2
22202 ;;
22203esac
22204echo "$as_me:$LINENO: checking for windows.h" >&5
22205echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
22206if test "${ac_cv_header_windows_h+set}" = set; then
22207 echo $ECHO_N "(cached) $ECHO_C" >&6
22208else
22209 ac_cv_header_windows_h=$ac_header_preproc
22210fi
22211echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
22212echo "${ECHO_T}$ac_cv_header_windows_h" >&6
22213
22214fi
22215if test $ac_cv_header_windows_h = yes; then
22216 :
22217else
22218
22219 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
22220echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
22221 { (exit 1); exit 1; }; }
22222
22223fi
22224
22225
22226
22227 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
22228
22229 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
22230 LIBS="$LIBS -loleacc"
22231 fi
22232
22233 case "${host}" in
22234 *-*-cygwin* )
22235 LIBS="$LIBS -lkernel32 -luser32"
22236 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
22237 esac
22238
22239 if test "$wxUSE_ODBC" = "sys" ; then
22240 wxUSE_ODBC = "yes"
22241 fi
22242 if test "$wxUSE_ODBC" = "yes" ; then
22243 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
22244 cat >>confdefs.h <<\_ACEOF
22245#define wxUSE_ODBC 1
22246_ACEOF
22247
22248 fi
22249
22250 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
22251 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
22252
22253 WIN32INSTALL=win32install
22254fi
22255
22256if test "$wxUSE_GUI" = "yes"; then
22257 USE_GUI=1
22258
22259 GUI_TK_LIBRARY=
22260
22261 WXGTK12=
22262 WXGTK127=
22263 WXGTK20=
22264 WXGPE=
22265
22266 if test "$wxUSE_MSW" = 1 ; then
22267 TOOLKIT=MSW
22268 GUIDIST=MSW_DIST
22269
22270 case "${host}" in
22271 *-*-mingw32* )
22272 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
22273 esac
22274 fi
22275
22276 if test "$wxUSE_GTK" = 1; then
22277 echo "$as_me:$LINENO: checking for GTK+ version" >&5
22278echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
22279
22280 gtk_version_cached=1
22281 if test "${wx_cv_lib_gtk+set}" = set; then
22282 echo $ECHO_N "(cached) $ECHO_C" >&6
22283else
22284
22285 gtk_version_cached=0
22286 echo "$as_me:$LINENO: result: " >&5
22287echo "${ECHO_T}" >&6
22288
22289 GTK_MODULES=
22290 if test "$wxUSE_THREADS" = "yes"; then
22291 GTK_MODULES=gthread
22292 fi
22293
22294 wx_cv_lib_gtk=
22295 if test "x$wxUSE_GTK2" = "xyes"; then
22296 # Check whether --enable-gtktest or --disable-gtktest was given.
22297if test "${enable_gtktest+set}" = set; then
22298 enableval="$enable_gtktest"
22299
22300else
22301 enable_gtktest=yes
22302fi;
22303
22304 pkg_config_args=gtk+-2.0
22305 for module in . $GTK_MODULES
22306 do
22307 case "$module" in
22308 gthread)
22309 pkg_config_args="$pkg_config_args gthread-2.0"
22310 ;;
22311 esac
22312 done
22313
22314 no_gtk=""
22315
22316 # Extract the first word of "pkg-config", so it can be a program name with args.
22317set dummy pkg-config; ac_word=$2
22318echo "$as_me:$LINENO: checking for $ac_word" >&5
22319echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22320if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22321 echo $ECHO_N "(cached) $ECHO_C" >&6
22322else
22323 case $PKG_CONFIG in
22324 [\\/]* | ?:[\\/]*)
22325 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22326 ;;
22327 *)
22328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22329for as_dir in $PATH
22330do
22331 IFS=$as_save_IFS
22332 test -z "$as_dir" && as_dir=.
22333 for ac_exec_ext in '' $ac_executable_extensions; do
22334 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22335 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22337 break 2
22338 fi
22339done
22340done
22341
22342 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22343 ;;
22344esac
22345fi
22346PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22347
22348if test -n "$PKG_CONFIG"; then
22349 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22350echo "${ECHO_T}$PKG_CONFIG" >&6
22351else
22352 echo "$as_me:$LINENO: result: no" >&5
22353echo "${ECHO_T}no" >&6
22354fi
22355
22356
22357 if test x$PKG_CONFIG != xno ; then
22358 if pkg-config --atleast-pkgconfig-version 0.7 ; then
22359 :
22360 else
c2218763 22361 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
22362 no_gtk=yes
22363 PKG_CONFIG=no
22364 fi
22365 else
22366 no_gtk=yes
22367 fi
22368
22369 min_gtk_version=2.0.0
22370 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
22371echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
22372
22373 if test x$PKG_CONFIG != xno ; then
22374 ## don't try to run the test against uninstalled libtool libs
22375 if $PKG_CONFIG --uninstalled $pkg_config_args; then
22376 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
22377 enable_gtktest=no
22378 fi
22379
22380 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
22381 :
22382 else
22383 no_gtk=yes
22384 fi
22385 fi
22386
22387 if test x"$no_gtk" = x ; then
22388 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
22389 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
22390 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22391 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22392 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22393 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22394 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22395 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22396 if test "x$enable_gtktest" = "xyes" ; then
22397 ac_save_CFLAGS="$CFLAGS"
22398 ac_save_LIBS="$LIBS"
22399 CFLAGS="$CFLAGS $GTK_CFLAGS"
22400 LIBS="$GTK_LIBS $LIBS"
22401 rm -f conf.gtktest
22402 if test "$cross_compiling" = yes; then
22403 echo $ac_n "cross compiling; assumed OK... $ac_c"
22404else
22405 cat >conftest.$ac_ext <<_ACEOF
22406/* confdefs.h. */
22407_ACEOF
22408cat confdefs.h >>conftest.$ac_ext
22409cat >>conftest.$ac_ext <<_ACEOF
22410/* end confdefs.h. */
22411
22412#include <gtk/gtk.h>
22413#include <stdio.h>
22414#include <stdlib.h>
22415
22416int
22417main ()
22418{
22419 int major, minor, micro;
22420 char *tmp_version;
22421
22422 system ("touch conf.gtktest");
22423
22424 /* HP/UX 9 (%@#!) writes to sscanf strings */
22425 tmp_version = g_strdup("$min_gtk_version");
22426 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22427 printf("%s, bad version string\n", "$min_gtk_version");
22428 exit(1);
22429 }
22430
22431 if ((gtk_major_version != $gtk_config_major_version) ||
22432 (gtk_minor_version != $gtk_config_minor_version) ||
22433 (gtk_micro_version != $gtk_config_micro_version))
22434 {
22435 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
22436 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22437 gtk_major_version, gtk_minor_version, gtk_micro_version);
22438 printf ("*** was found! If pkg-config was correct, then it is best\n");
22439 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22440 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22441 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22442 printf("*** required on your system.\n");
22443 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
22444 printf("*** to point to the correct configuration files\n");
22445 }
22446 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22447 (gtk_minor_version != GTK_MINOR_VERSION) ||
22448 (gtk_micro_version != GTK_MICRO_VERSION))
22449 {
22450 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22451 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22452 printf("*** library (version %d.%d.%d)\n",
22453 gtk_major_version, gtk_minor_version, gtk_micro_version);
22454 }
22455 else
22456 {
22457 if ((gtk_major_version > major) ||
22458 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22459 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22460 {
22461 return 0;
22462 }
22463 else
22464 {
22465 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22466 gtk_major_version, gtk_minor_version, gtk_micro_version);
22467 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22468 major, minor, micro);
22469 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22470 printf("***\n");
22471 printf("*** If you have already installed a sufficiently new version, this error\n");
22472 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
22473 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22474 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
22475 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
22476 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22477 printf("*** so that the correct libraries are found at run-time))\n");
22478 }
22479 }
22480 return 1;
22481}
22482
22483_ACEOF
22484rm -f conftest$ac_exeext
22485if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22486 (eval $ac_link) 2>&5
22487 ac_status=$?
22488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22489 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22491 (eval $ac_try) 2>&5
22492 ac_status=$?
22493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22494 (exit $ac_status); }; }; then
22495 :
22496else
22497 echo "$as_me: program exited with status $ac_status" >&5
22498echo "$as_me: failed program was:" >&5
22499sed 's/^/| /' conftest.$ac_ext >&5
22500
22501( exit $ac_status )
22502no_gtk=yes
22503fi
ac1cb8d3 22504rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22505fi
22506 CFLAGS="$ac_save_CFLAGS"
22507 LIBS="$ac_save_LIBS"
22508 fi
22509 fi
22510 if test "x$no_gtk" = x ; then
22511 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
22512echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
22513 wx_cv_lib_gtk=2.0
22514 else
22515 echo "$as_me:$LINENO: result: no" >&5
22516echo "${ECHO_T}no" >&6
22517 if test "$PKG_CONFIG" = "no" ; then
22518 echo "*** A new enough version of pkg-config was not found."
22519 echo "*** See http://pkgconfig.sourceforge.net"
22520 else
22521 if test -f conf.gtktest ; then
22522 :
22523 else
22524 echo "*** Could not run GTK+ test program, checking why..."
22525 ac_save_CFLAGS="$CFLAGS"
22526 ac_save_LIBS="$LIBS"
22527 CFLAGS="$CFLAGS $GTK_CFLAGS"
22528 LIBS="$LIBS $GTK_LIBS"
22529 cat >conftest.$ac_ext <<_ACEOF
22530/* confdefs.h. */
22531_ACEOF
22532cat confdefs.h >>conftest.$ac_ext
22533cat >>conftest.$ac_ext <<_ACEOF
22534/* end confdefs.h. */
22535
22536#include <gtk/gtk.h>
22537#include <stdio.h>
22538
22539int
22540main ()
22541{
22542 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22543 ;
22544 return 0;
22545}
22546_ACEOF
22547rm -f conftest.$ac_objext conftest$ac_exeext
22548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22549 (eval $ac_link) 2>conftest.er1
a848cd7e 22550 ac_status=$?
ac1cb8d3
VS
22551 grep -v '^ *+' conftest.er1 >conftest.err
22552 rm -f conftest.er1
22553 cat conftest.err >&5
a848cd7e
SC
22554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22555 (exit $ac_status); } &&
ea7db9ff
DE
22556 { ac_try='test -z "$ac_c_werror_flag"
22557 || test ! -s conftest.err'
ac1cb8d3
VS
22558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22559 (eval $ac_try) 2>&5
22560 ac_status=$?
22561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22562 (exit $ac_status); }; } &&
22563 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22565 (eval $ac_try) 2>&5
22566 ac_status=$?
22567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22568 (exit $ac_status); }; }; then
22569 echo "*** The test program compiled, but did not run. This usually means"
22570 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
22571 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
22572 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22573 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22574 echo "*** is required on your system"
22575 echo "***"
22576 echo "*** If you have an old version installed, it is best to remove it, although"
22577 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22578else
22579 echo "$as_me: failed program was:" >&5
22580sed 's/^/| /' conftest.$ac_ext >&5
22581
22582 echo "*** The test program failed to compile or link. See the file config.log for the"
22583 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
22584fi
ac1cb8d3
VS
22585rm -f conftest.err conftest.$ac_objext \
22586 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22587 CFLAGS="$ac_save_CFLAGS"
22588 LIBS="$ac_save_LIBS"
22589 fi
22590 fi
22591 GTK_CFLAGS=""
22592 GTK_LIBS=""
22593 :
22594 fi
22595
22596
22597 rm -f conf.gtktest
22598
22599 else
22600
22601# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
22602if test "${with_gtk_prefix+set}" = set; then
22603 withval="$with_gtk_prefix"
22604 gtk_config_prefix="$withval"
22605else
22606 gtk_config_prefix=""
22607fi;
22608
22609# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
22610if test "${with_gtk_exec_prefix+set}" = set; then
22611 withval="$with_gtk_exec_prefix"
22612 gtk_config_exec_prefix="$withval"
22613else
22614 gtk_config_exec_prefix=""
22615fi;
22616# Check whether --enable-gtktest or --disable-gtktest was given.
22617if test "${enable_gtktest+set}" = set; then
22618 enableval="$enable_gtktest"
22619
22620else
22621 enable_gtktest=yes
22622fi;
22623
22624 for module in . $GTK_MODULES
22625 do
22626 case "$module" in
22627 gthread)
22628 gtk_config_args="$gtk_config_args gthread"
22629 ;;
22630 esac
22631 done
22632
22633 if test x$gtk_config_exec_prefix != x ; then
22634 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
22635 if test x${GTK_CONFIG+set} != xset ; then
22636 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
22637 fi
22638 fi
22639 if test x$gtk_config_prefix != x ; then
22640 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
22641 if test x${GTK_CONFIG+set} != xset ; then
22642 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
22643 fi
22644 fi
22645
22646 # Extract the first word of "gtk-config", so it can be a program name with args.
22647set dummy gtk-config; ac_word=$2
22648echo "$as_me:$LINENO: checking for $ac_word" >&5
22649echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22650if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
22651 echo $ECHO_N "(cached) $ECHO_C" >&6
22652else
22653 case $GTK_CONFIG in
22654 [\\/]* | ?:[\\/]*)
22655 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
22656 ;;
22657 *)
22658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22659for as_dir in $PATH
22660do
22661 IFS=$as_save_IFS
22662 test -z "$as_dir" && as_dir=.
22663 for ac_exec_ext in '' $ac_executable_extensions; do
22664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22665 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22667 break 2
22668 fi
22669done
22670done
22671
22672 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
22673 ;;
22674esac
22675fi
22676GTK_CONFIG=$ac_cv_path_GTK_CONFIG
22677
22678if test -n "$GTK_CONFIG"; then
22679 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
22680echo "${ECHO_T}$GTK_CONFIG" >&6
22681else
22682 echo "$as_me:$LINENO: result: no" >&5
22683echo "${ECHO_T}no" >&6
22684fi
22685
22686 min_gtk_version=1.2.7
22687 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
22688echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
22689 no_gtk=""
22690 if test "$GTK_CONFIG" = "no" ; then
22691 no_gtk=yes
22692 else
22693 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
22694 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
22695 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
22696 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22697 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
22698 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22699 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
22700 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22701 if test "x$enable_gtktest" = "xyes" ; then
22702 ac_save_CFLAGS="$CFLAGS"
22703 ac_save_LIBS="$LIBS"
22704 CFLAGS="$CFLAGS $GTK_CFLAGS"
22705 LIBS="$GTK_LIBS $LIBS"
22706 rm -f conf.gtktest
22707 if test "$cross_compiling" = yes; then
22708 echo $ac_n "cross compiling; assumed OK... $ac_c"
22709else
22710 cat >conftest.$ac_ext <<_ACEOF
22711/* confdefs.h. */
22712_ACEOF
22713cat confdefs.h >>conftest.$ac_ext
22714cat >>conftest.$ac_ext <<_ACEOF
22715/* end confdefs.h. */
22716
22717#include <gtk/gtk.h>
22718#include <stdio.h>
22719#include <stdlib.h>
22720
22721int
22722main ()
22723{
22724 int major, minor, micro;
22725 char *tmp_version;
22726
22727 system ("touch conf.gtktest");
22728
22729 /* HP/UX 9 (%@#!) writes to sscanf strings */
22730 tmp_version = g_strdup("$min_gtk_version");
22731 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22732 printf("%s, bad version string\n", "$min_gtk_version");
22733 exit(1);
22734 }
22735
22736 if ((gtk_major_version != $gtk_config_major_version) ||
22737 (gtk_minor_version != $gtk_config_minor_version) ||
22738 (gtk_micro_version != $gtk_config_micro_version))
22739 {
22740 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
22741 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22742 gtk_major_version, gtk_minor_version, gtk_micro_version);
22743 printf ("*** was found! If gtk-config was correct, then it is best\n");
22744 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22745 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22746 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22747 printf("*** required on your system.\n");
22748 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
22749 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
22750 printf("*** before re-running configure\n");
22751 }
22752#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
22753 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22754 (gtk_minor_version != GTK_MINOR_VERSION) ||
22755 (gtk_micro_version != GTK_MICRO_VERSION))
22756 {
22757 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22758 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22759 printf("*** library (version %d.%d.%d)\n",
22760 gtk_major_version, gtk_minor_version, gtk_micro_version);
22761 }
22762#endif /* defined (GTK_MAJOR_VERSION) ... */
22763 else
22764 {
22765 if ((gtk_major_version > major) ||
22766 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22767 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22768 {
22769 return 0;
22770 }
22771 else
22772 {
22773 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22774 gtk_major_version, gtk_minor_version, gtk_micro_version);
22775 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22776 major, minor, micro);
22777 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22778 printf("***\n");
22779 printf("*** If you have already installed a sufficiently new version, this error\n");
22780 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
22781 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22782 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
22783 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
22784 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22785 printf("*** so that the correct libraries are found at run-time))\n");
22786 }
22787 }
22788 return 1;
22789}
22790
22791_ACEOF
22792rm -f conftest$ac_exeext
22793if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22794 (eval $ac_link) 2>&5
22795 ac_status=$?
22796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22797 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22799 (eval $ac_try) 2>&5
22800 ac_status=$?
22801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22802 (exit $ac_status); }; }; then
22803 :
22804else
22805 echo "$as_me: program exited with status $ac_status" >&5
22806echo "$as_me: failed program was:" >&5
22807sed 's/^/| /' conftest.$ac_ext >&5
22808
22809( exit $ac_status )
22810no_gtk=yes
22811fi
ac1cb8d3 22812rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22813fi
22814 CFLAGS="$ac_save_CFLAGS"
22815 LIBS="$ac_save_LIBS"
22816 fi
22817 fi
22818 if test "x$no_gtk" = x ; then
22819 echo "$as_me:$LINENO: result: yes" >&5
22820echo "${ECHO_T}yes" >&6
22821 wx_cv_lib_gtk=1.2.7
22822 else
22823 echo "$as_me:$LINENO: result: no" >&5
22824echo "${ECHO_T}no" >&6
22825 if test "$GTK_CONFIG" = "no" ; then
22826 echo "*** The gtk-config script installed by GTK could not be found"
22827 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
22828 echo "*** your path, or set the GTK_CONFIG environment variable to the"
22829 echo "*** full path to gtk-config."
22830 else
22831 if test -f conf.gtktest ; then
22832 :
22833 else
22834 echo "*** Could not run GTK test program, checking why..."
22835 CFLAGS="$CFLAGS $GTK_CFLAGS"
22836 LIBS="$LIBS $GTK_LIBS"
22837 cat >conftest.$ac_ext <<_ACEOF
22838/* confdefs.h. */
22839_ACEOF
22840cat confdefs.h >>conftest.$ac_ext
22841cat >>conftest.$ac_ext <<_ACEOF
22842/* end confdefs.h. */
22843
22844#include <gtk/gtk.h>
22845#include <stdio.h>
22846
22847int
22848main ()
22849{
22850 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22851 ;
22852 return 0;
22853}
22854_ACEOF
22855rm -f conftest.$ac_objext conftest$ac_exeext
22856if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22857 (eval $ac_link) 2>conftest.er1
a848cd7e 22858 ac_status=$?
ac1cb8d3
VS
22859 grep -v '^ *+' conftest.er1 >conftest.err
22860 rm -f conftest.er1
22861 cat conftest.err >&5
a848cd7e
SC
22862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22863 (exit $ac_status); } &&
ea7db9ff
DE
22864 { ac_try='test -z "$ac_c_werror_flag"
22865 || test ! -s conftest.err'
ac1cb8d3
VS
22866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22867 (eval $ac_try) 2>&5
22868 ac_status=$?
22869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22870 (exit $ac_status); }; } &&
22871 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22873 (eval $ac_try) 2>&5
22874 ac_status=$?
22875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22876 (exit $ac_status); }; }; then
22877 echo "*** The test program compiled, but did not run. This usually means"
22878 echo "*** that the run-time linker is not finding GTK or finding the wrong"
22879 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
22880 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22881 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22882 echo "*** is required on your system"
22883 echo "***"
22884 echo "*** If you have an old version installed, it is best to remove it, although"
22885 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22886 echo "***"
22887 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
22888 echo "*** came with the system with the command"
22889 echo "***"
22890 echo "*** rpm --erase --nodeps gtk gtk-devel"
22891else
22892 echo "$as_me: failed program was:" >&5
22893sed 's/^/| /' conftest.$ac_ext >&5
22894
22895 echo "*** The test program failed to compile or link. See the file config.log for the"
22896 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
22897 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
22898 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
22899fi
ac1cb8d3
VS
22900rm -f conftest.err conftest.$ac_objext \
22901 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22902 CFLAGS="$ac_save_CFLAGS"
22903 LIBS="$ac_save_LIBS"
22904 fi
22905 fi
22906 GTK_CFLAGS=""
22907 GTK_LIBS=""
22908 :
22909 fi
22910
22911
22912 rm -f conf.gtktest
22913
22914
22915 if test -z "$wx_cv_lib_gtk"; then
22916
22917# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
22918if test "${with_gtk_prefix+set}" = set; then
22919 withval="$with_gtk_prefix"
22920 gtk_config_prefix="$withval"
22921else
22922 gtk_config_prefix=""
22923fi;
22924
22925# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
22926if test "${with_gtk_exec_prefix+set}" = set; then
22927 withval="$with_gtk_exec_prefix"
22928 gtk_config_exec_prefix="$withval"
22929else
22930 gtk_config_exec_prefix=""
22931fi;
22932# Check whether --enable-gtktest or --disable-gtktest was given.
22933if test "${enable_gtktest+set}" = set; then
22934 enableval="$enable_gtktest"
22935
22936else
22937 enable_gtktest=yes
22938fi;
22939
22940 for module in . $GTK_MODULES
22941 do
22942 case "$module" in
22943 gthread)
22944 gtk_config_args="$gtk_config_args gthread"
22945 ;;
22946 esac
22947 done
22948
22949 if test x$gtk_config_exec_prefix != x ; then
22950 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
22951 if test x${GTK_CONFIG+set} != xset ; then
22952 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
22953 fi
22954 fi
22955 if test x$gtk_config_prefix != x ; then
22956 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
22957 if test x${GTK_CONFIG+set} != xset ; then
22958 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
22959 fi
22960 fi
22961
22962 # Extract the first word of "gtk-config", so it can be a program name with args.
22963set dummy gtk-config; ac_word=$2
22964echo "$as_me:$LINENO: checking for $ac_word" >&5
22965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22966if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
22967 echo $ECHO_N "(cached) $ECHO_C" >&6
22968else
22969 case $GTK_CONFIG in
22970 [\\/]* | ?:[\\/]*)
22971 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
22972 ;;
22973 *)
22974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22975for as_dir in $PATH
22976do
22977 IFS=$as_save_IFS
22978 test -z "$as_dir" && as_dir=.
22979 for ac_exec_ext in '' $ac_executable_extensions; do
22980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22981 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22983 break 2
22984 fi
22985done
22986done
22987
22988 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
22989 ;;
22990esac
22991fi
22992GTK_CONFIG=$ac_cv_path_GTK_CONFIG
22993
22994if test -n "$GTK_CONFIG"; then
22995 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
22996echo "${ECHO_T}$GTK_CONFIG" >&6
22997else
22998 echo "$as_me:$LINENO: result: no" >&5
22999echo "${ECHO_T}no" >&6
23000fi
23001
23002 min_gtk_version=1.2.3
23003 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
23004echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
23005 no_gtk=""
23006 if test "$GTK_CONFIG" = "no" ; then
23007 no_gtk=yes
23008 else
23009 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
23010 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
23011 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
23012 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
23013 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
23014 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
23015 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
23016 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
23017 if test "x$enable_gtktest" = "xyes" ; then
23018 ac_save_CFLAGS="$CFLAGS"
23019 ac_save_LIBS="$LIBS"
23020 CFLAGS="$CFLAGS $GTK_CFLAGS"
23021 LIBS="$GTK_LIBS $LIBS"
23022 rm -f conf.gtktest
23023 if test "$cross_compiling" = yes; then
23024 echo $ac_n "cross compiling; assumed OK... $ac_c"
23025else
23026 cat >conftest.$ac_ext <<_ACEOF
23027/* confdefs.h. */
23028_ACEOF
23029cat confdefs.h >>conftest.$ac_ext
23030cat >>conftest.$ac_ext <<_ACEOF
23031/* end confdefs.h. */
23032
23033#include <gtk/gtk.h>
23034#include <stdio.h>
23035#include <stdlib.h>
23036
23037int
23038main ()
23039{
23040 int major, minor, micro;
23041 char *tmp_version;
23042
23043 system ("touch conf.gtktest");
23044
23045 /* HP/UX 9 (%@#!) writes to sscanf strings */
23046 tmp_version = g_strdup("$min_gtk_version");
23047 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
23048 printf("%s, bad version string\n", "$min_gtk_version");
23049 exit(1);
23050 }
23051
23052 if ((gtk_major_version != $gtk_config_major_version) ||
23053 (gtk_minor_version != $gtk_config_minor_version) ||
23054 (gtk_micro_version != $gtk_config_micro_version))
23055 {
23056 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
23057 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
23058 gtk_major_version, gtk_minor_version, gtk_micro_version);
23059 printf ("*** was found! If gtk-config was correct, then it is best\n");
23060 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
23061 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
23062 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
23063 printf("*** required on your system.\n");
23064 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
23065 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
23066 printf("*** before re-running configure\n");
23067 }
23068#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
23069 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
23070 (gtk_minor_version != GTK_MINOR_VERSION) ||
23071 (gtk_micro_version != GTK_MICRO_VERSION))
23072 {
23073 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
23074 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
23075 printf("*** library (version %d.%d.%d)\n",
23076 gtk_major_version, gtk_minor_version, gtk_micro_version);
23077 }
23078#endif /* defined (GTK_MAJOR_VERSION) ... */
23079 else
23080 {
23081 if ((gtk_major_version > major) ||
23082 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
23083 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
23084 {
23085 return 0;
23086 }
23087 else
23088 {
23089 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
23090 gtk_major_version, gtk_minor_version, gtk_micro_version);
23091 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
23092 major, minor, micro);
23093 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
23094 printf("***\n");
23095 printf("*** If you have already installed a sufficiently new version, this error\n");
23096 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
23097 printf("*** being found. The easiest way to fix this is to remove the old version\n");
23098 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
23099 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
23100 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
23101 printf("*** so that the correct libraries are found at run-time))\n");
23102 }
23103 }
23104 return 1;
23105}
23106
23107_ACEOF
23108rm -f conftest$ac_exeext
23109if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23110 (eval $ac_link) 2>&5
23111 ac_status=$?
23112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23113 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23115 (eval $ac_try) 2>&5
23116 ac_status=$?
23117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23118 (exit $ac_status); }; }; then
23119 :
23120else
23121 echo "$as_me: program exited with status $ac_status" >&5
23122echo "$as_me: failed program was:" >&5
23123sed 's/^/| /' conftest.$ac_ext >&5
23124
23125( exit $ac_status )
23126no_gtk=yes
23127fi
ac1cb8d3 23128rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23129fi
23130 CFLAGS="$ac_save_CFLAGS"
23131 LIBS="$ac_save_LIBS"
23132 fi
23133 fi
23134 if test "x$no_gtk" = x ; then
23135 echo "$as_me:$LINENO: result: yes" >&5
23136echo "${ECHO_T}yes" >&6
23137 wx_cv_lib_gtk=1.2.3
23138 else
23139 echo "$as_me:$LINENO: result: no" >&5
23140echo "${ECHO_T}no" >&6
23141 if test "$GTK_CONFIG" = "no" ; then
23142 echo "*** The gtk-config script installed by GTK could not be found"
23143 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
23144 echo "*** your path, or set the GTK_CONFIG environment variable to the"
23145 echo "*** full path to gtk-config."
23146 else
23147 if test -f conf.gtktest ; then
23148 :
23149 else
23150 echo "*** Could not run GTK test program, checking why..."
23151 CFLAGS="$CFLAGS $GTK_CFLAGS"
23152 LIBS="$LIBS $GTK_LIBS"
23153 cat >conftest.$ac_ext <<_ACEOF
23154/* confdefs.h. */
23155_ACEOF
23156cat confdefs.h >>conftest.$ac_ext
23157cat >>conftest.$ac_ext <<_ACEOF
23158/* end confdefs.h. */
23159
23160#include <gtk/gtk.h>
23161#include <stdio.h>
23162
23163int
23164main ()
23165{
23166 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23167 ;
23168 return 0;
23169}
23170_ACEOF
23171rm -f conftest.$ac_objext conftest$ac_exeext
23172if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23173 (eval $ac_link) 2>conftest.er1
a848cd7e 23174 ac_status=$?
ac1cb8d3
VS
23175 grep -v '^ *+' conftest.er1 >conftest.err
23176 rm -f conftest.er1
23177 cat conftest.err >&5
a848cd7e
SC
23178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23179 (exit $ac_status); } &&
ea7db9ff
DE
23180 { ac_try='test -z "$ac_c_werror_flag"
23181 || test ! -s conftest.err'
ac1cb8d3
VS
23182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23183 (eval $ac_try) 2>&5
23184 ac_status=$?
23185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23186 (exit $ac_status); }; } &&
23187 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23189 (eval $ac_try) 2>&5
23190 ac_status=$?
23191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23192 (exit $ac_status); }; }; then
23193 echo "*** The test program compiled, but did not run. This usually means"
23194 echo "*** that the run-time linker is not finding GTK or finding the wrong"
23195 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
23196 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23197 echo "*** to the installed location Also, make sure you have run ldconfig if that"
23198 echo "*** is required on your system"
23199 echo "***"
23200 echo "*** If you have an old version installed, it is best to remove it, although"
23201 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23202 echo "***"
23203 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
23204 echo "*** came with the system with the command"
23205 echo "***"
23206 echo "*** rpm --erase --nodeps gtk gtk-devel"
23207else
23208 echo "$as_me: failed program was:" >&5
23209sed 's/^/| /' conftest.$ac_ext >&5
23210
23211 echo "*** The test program failed to compile or link. See the file config.log for the"
23212 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
23213 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
23214 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
23215fi
ac1cb8d3
VS
23216rm -f conftest.err conftest.$ac_objext \
23217 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23218 CFLAGS="$ac_save_CFLAGS"
23219 LIBS="$ac_save_LIBS"
23220 fi
23221 fi
23222 GTK_CFLAGS=""
23223 GTK_LIBS=""
23224 :
23225 fi
23226
23227
23228 rm -f conf.gtktest
23229
23230 fi
23231 fi
23232
23233 if test -z "$wx_cv_lib_gtk"; then
23234 wx_cv_lib_gtk=none
23235 else
23236 wx_cv_cflags_gtk=$GTK_CFLAGS
23237 wx_cv_libs_gtk=$GTK_LIBS
23238 fi
23239
23240
23241fi
23242
23243
23244 if test "$gtk_version_cached" = 1; then
23245 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
23246echo "${ECHO_T}$wx_cv_lib_gtk" >&6
23247 fi
23248
23249 case "$wx_cv_lib_gtk" in
23250 2.0) WXGTK20=1
23251 TOOLKIT_VERSION=2
23252 ;;
23253 1.2.7) WXGTK127=1
23254 WXGTK12=1
23255 ;;
23256 1.2.3) WXGTK12=1
23257 ;;
23258 *) { { echo "$as_me:$LINENO: error:
23259Please check that gtk-config is in path, the directory
23260where GTK+ libraries are installed (returned by
23261'gtk-config --libs' command) is in LD_LIBRARY_PATH or
23262equivalent variable and GTK+ is version 1.2.3 or above.
23263 " >&5
23264echo "$as_me: error:
23265Please check that gtk-config is in path, the directory
23266where GTK+ libraries are installed (returned by
23267'gtk-config --libs' command) is in LD_LIBRARY_PATH or
23268equivalent variable and GTK+ is version 1.2.3 or above.
23269 " >&2;}
23270 { (exit 1); exit 1; }; }
23271 ;;
23272 esac
23273
23274 if test "$WXGTK20" = 1; then
23275 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
23276
23277 succeeded=no
23278
23279 if test -z "$PKG_CONFIG"; then
23280 # Extract the first word of "pkg-config", so it can be a program name with args.
23281set dummy pkg-config; ac_word=$2
23282echo "$as_me:$LINENO: checking for $ac_word" >&5
23283echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23284if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23285 echo $ECHO_N "(cached) $ECHO_C" >&6
23286else
23287 case $PKG_CONFIG in
23288 [\\/]* | ?:[\\/]*)
23289 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23290 ;;
23291 *)
23292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23293for as_dir in $PATH
23294do
23295 IFS=$as_save_IFS
23296 test -z "$as_dir" && as_dir=.
23297 for ac_exec_ext in '' $ac_executable_extensions; do
23298 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23299 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23301 break 2
23302 fi
23303done
23304done
23305
23306 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23307 ;;
23308esac
23309fi
23310PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23311
23312if test -n "$PKG_CONFIG"; then
23313 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23314echo "${ECHO_T}$PKG_CONFIG" >&6
23315else
23316 echo "$as_me:$LINENO: result: no" >&5
23317echo "${ECHO_T}no" >&6
23318fi
23319
23320 fi
23321
23322 if test "$PKG_CONFIG" = "no" ; then
23323 echo "*** The pkg-config script could not be found. Make sure it is"
23324 echo "*** in your path, or set the PKG_CONFIG environment variable"
23325 echo "*** to the full path to pkg-config."
23326 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23327 else
23328 PKG_CONFIG_MIN_VERSION=0.9.0
23329 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23330 echo "$as_me:$LINENO: checking for pangoft2" >&5
23331echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
23332
23333 if $PKG_CONFIG --exists "pangoft2" ; then
23334 echo "$as_me:$LINENO: result: yes" >&5
23335echo "${ECHO_T}yes" >&6
23336 succeeded=yes
23337
23338 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
23339echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
23340 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
23341 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
23342echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
23343
23344 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
23345echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
23346 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
23347 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
23348echo "${ECHO_T}$PANGOFT2_LIBS" >&6
23349 else
23350 PANGOFT2_CFLAGS=""
23351 PANGOFT2_LIBS=""
23352 ## If we have a custom action on failure, don't print errors, but
23353 ## do set a variable so people can do so.
23354 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
23355
23356 fi
23357
23358
23359
23360 else
23361 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23362 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23363 fi
23364 fi
23365
23366 if test $succeeded = yes; then
23367
23368 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
23369 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
23370
23371 else
23372
23373 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
23374echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
23375 wxUSE_PRINTING_ARCHITECTURE="no"
23376
23377
23378 fi
23379
23380 fi
304205f1
VS
23381
23382 save_CFLAGS="$CFLAGS"
23383 save_LIBS="$LIBS"
23384 CFLAGS="$CFLAGS $GTK_CFLAGS"
23385 LIBS="$LIBS $GTK_LIBS"
23386
23387for ac_func in pango_font_family_is_monospace
23388do
23389as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23390echo "$as_me:$LINENO: checking for $ac_func" >&5
23391echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23392if eval "test \"\${$as_ac_var+set}\" = set"; then
23393 echo $ECHO_N "(cached) $ECHO_C" >&6
23394else
23395 cat >conftest.$ac_ext <<_ACEOF
23396/* confdefs.h. */
23397_ACEOF
23398cat confdefs.h >>conftest.$ac_ext
23399cat >>conftest.$ac_ext <<_ACEOF
23400/* end confdefs.h. */
23401/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23402 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23403#define $ac_func innocuous_$ac_func
23404
23405/* System header to define __stub macros and hopefully few prototypes,
23406 which can conflict with char $ac_func (); below.
23407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23408 <limits.h> exists even on freestanding compilers. */
23409
23410#ifdef __STDC__
23411# include <limits.h>
23412#else
23413# include <assert.h>
23414#endif
23415
23416#undef $ac_func
23417
23418/* Override any gcc2 internal prototype to avoid an error. */
23419#ifdef __cplusplus
23420extern "C"
23421{
23422#endif
23423/* We use char because int might match the return type of a gcc2
23424 builtin and then its argument prototype would still apply. */
23425char $ac_func ();
23426/* The GNU C library defines this for functions which it implements
23427 to always fail with ENOSYS. Some functions are actually named
23428 something starting with __ and the normal name is an alias. */
23429#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23430choke me
23431#else
23432char (*f) () = $ac_func;
23433#endif
23434#ifdef __cplusplus
23435}
23436#endif
23437
23438int
23439main ()
23440{
23441return f != $ac_func;
23442 ;
23443 return 0;
23444}
23445_ACEOF
23446rm -f conftest.$ac_objext conftest$ac_exeext
23447if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23448 (eval $ac_link) 2>conftest.er1
23449 ac_status=$?
23450 grep -v '^ *+' conftest.er1 >conftest.err
23451 rm -f conftest.er1
23452 cat conftest.err >&5
23453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23454 (exit $ac_status); } &&
ea7db9ff
DE
23455 { ac_try='test -z "$ac_c_werror_flag"
23456 || test ! -s conftest.err'
304205f1
VS
23457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23458 (eval $ac_try) 2>&5
23459 ac_status=$?
23460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23461 (exit $ac_status); }; } &&
23462 { ac_try='test -s conftest$ac_exeext'
23463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23464 (eval $ac_try) 2>&5
23465 ac_status=$?
23466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23467 (exit $ac_status); }; }; then
23468 eval "$as_ac_var=yes"
23469else
23470 echo "$as_me: failed program was:" >&5
23471sed 's/^/| /' conftest.$ac_ext >&5
23472
23473eval "$as_ac_var=no"
23474fi
23475rm -f conftest.err conftest.$ac_objext \
23476 conftest$ac_exeext conftest.$ac_ext
23477fi
23478echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23479echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23480if test `eval echo '${'$as_ac_var'}'` = yes; then
23481 cat >>confdefs.h <<_ACEOF
23482#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23483_ACEOF
23484
23485fi
23486done
23487
23488 CFLAGS="$save_CFLAGS"
23489 LIBS="$save_LIBS"
a848cd7e
SC
23490 else
23491 if test "$wxUSE_UNICODE" = "yes"; then
23492 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
23493echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
23494 wxUSE_UNICODE=no
23495 fi
23496 fi
23497
23498 if test "$USE_DARWIN" != 1; then
23499
23500for ac_func in poll
23501do
23502as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23503echo "$as_me:$LINENO: checking for $ac_func" >&5
23504echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23505if eval "test \"\${$as_ac_var+set}\" = set"; then
23506 echo $ECHO_N "(cached) $ECHO_C" >&6
23507else
23508 cat >conftest.$ac_ext <<_ACEOF
23509/* confdefs.h. */
23510_ACEOF
23511cat confdefs.h >>conftest.$ac_ext
23512cat >>conftest.$ac_ext <<_ACEOF
23513/* end confdefs.h. */
ac1cb8d3
VS
23514/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23515 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23516#define $ac_func innocuous_$ac_func
23517
a848cd7e
SC
23518/* System header to define __stub macros and hopefully few prototypes,
23519 which can conflict with char $ac_func (); below.
23520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23521 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 23522
a848cd7e
SC
23523#ifdef __STDC__
23524# include <limits.h>
23525#else
23526# include <assert.h>
23527#endif
ac1cb8d3
VS
23528
23529#undef $ac_func
23530
a848cd7e
SC
23531/* Override any gcc2 internal prototype to avoid an error. */
23532#ifdef __cplusplus
23533extern "C"
23534{
23535#endif
23536/* We use char because int might match the return type of a gcc2
23537 builtin and then its argument prototype would still apply. */
23538char $ac_func ();
23539/* The GNU C library defines this for functions which it implements
23540 to always fail with ENOSYS. Some functions are actually named
23541 something starting with __ and the normal name is an alias. */
23542#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23543choke me
23544#else
23545char (*f) () = $ac_func;
23546#endif
23547#ifdef __cplusplus
23548}
23549#endif
23550
23551int
23552main ()
23553{
23554return f != $ac_func;
23555 ;
23556 return 0;
23557}
23558_ACEOF
23559rm -f conftest.$ac_objext conftest$ac_exeext
23560if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23561 (eval $ac_link) 2>conftest.er1
a848cd7e 23562 ac_status=$?
ac1cb8d3
VS
23563 grep -v '^ *+' conftest.er1 >conftest.err
23564 rm -f conftest.er1
23565 cat conftest.err >&5
a848cd7e
SC
23566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23567 (exit $ac_status); } &&
ea7db9ff
DE
23568 { ac_try='test -z "$ac_c_werror_flag"
23569 || test ! -s conftest.err'
ac1cb8d3
VS
23570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23571 (eval $ac_try) 2>&5
23572 ac_status=$?
23573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23574 (exit $ac_status); }; } &&
23575 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23577 (eval $ac_try) 2>&5
23578 ac_status=$?
23579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23580 (exit $ac_status); }; }; then
23581 eval "$as_ac_var=yes"
23582else
23583 echo "$as_me: failed program was:" >&5
23584sed 's/^/| /' conftest.$ac_ext >&5
23585
23586eval "$as_ac_var=no"
23587fi
ac1cb8d3
VS
23588rm -f conftest.err conftest.$ac_objext \
23589 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23590fi
23591echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23592echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23593if test `eval echo '${'$as_ac_var'}'` = yes; then
23594 cat >>confdefs.h <<_ACEOF
23595#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23596_ACEOF
23597
23598fi
23599done
23600
23601 fi
23602
23603 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
23604 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
23605
23606 AFMINSTALL=afminstall
23607 TOOLKIT=GTK
23608 GUIDIST=GTK_DIST
23609
23610 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
23611echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
23612if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
23613 echo $ECHO_N "(cached) $ECHO_C" >&6
23614else
23615 ac_check_lib_save_LIBS=$LIBS
23616LIBS="-lgdk $LIBS"
23617cat >conftest.$ac_ext <<_ACEOF
23618/* confdefs.h. */
23619_ACEOF
23620cat confdefs.h >>conftest.$ac_ext
23621cat >>conftest.$ac_ext <<_ACEOF
23622/* end confdefs.h. */
23623
23624/* Override any gcc2 internal prototype to avoid an error. */
23625#ifdef __cplusplus
23626extern "C"
23627#endif
23628/* We use char because int might match the return type of a gcc2
23629 builtin and then its argument prototype would still apply. */
23630char gdk_im_open ();
23631int
23632main ()
23633{
23634gdk_im_open ();
23635 ;
23636 return 0;
23637}
23638_ACEOF
23639rm -f conftest.$ac_objext conftest$ac_exeext
23640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23641 (eval $ac_link) 2>conftest.er1
a848cd7e 23642 ac_status=$?
ac1cb8d3
VS
23643 grep -v '^ *+' conftest.er1 >conftest.err
23644 rm -f conftest.er1
23645 cat conftest.err >&5
a848cd7e
SC
23646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23647 (exit $ac_status); } &&
ea7db9ff
DE
23648 { ac_try='test -z "$ac_c_werror_flag"
23649 || test ! -s conftest.err'
ac1cb8d3
VS
23650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23651 (eval $ac_try) 2>&5
23652 ac_status=$?
23653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23654 (exit $ac_status); }; } &&
23655 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23657 (eval $ac_try) 2>&5
23658 ac_status=$?
23659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23660 (exit $ac_status); }; }; then
23661 ac_cv_lib_gdk_gdk_im_open=yes
23662else
23663 echo "$as_me: failed program was:" >&5
23664sed 's/^/| /' conftest.$ac_ext >&5
23665
23666ac_cv_lib_gdk_gdk_im_open=no
23667fi
ac1cb8d3
VS
23668rm -f conftest.err conftest.$ac_objext \
23669 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23670LIBS=$ac_check_lib_save_LIBS
23671fi
23672echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
23673echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
23674if test $ac_cv_lib_gdk_gdk_im_open = yes; then
23675 cat >>confdefs.h <<\_ACEOF
23676#define HAVE_XIM 1
23677_ACEOF
23678
23679fi
23680
23681
23682
23683 if test "$wxUSE_GPE" = "yes"; then
23684 echo "$as_me:$LINENO: checking for gpewidget library" >&5
23685echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
23686
23687ac_find_libraries=
23688for ac_dir in $SEARCH_LIB /usr/lib;
23689 do
23690 for ac_extension in a so sl dylib; do
23691 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
23692 ac_find_libraries=$ac_dir
23693 break 2
23694 fi
23695 done
23696 done
23697
23698 if test "$ac_find_libraries" != "" ; then
23699
23700 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
23701 result=$?
23702 if test $result = 0; then
23703 ac_path_to_link=""
23704 else
23705 ac_path_to_link=" -L$ac_find_libraries"
23706 fi
23707
23708 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
23709 WXGPE=1
23710 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
23711echo "${ECHO_T}found at $ac_find_libraries" >&6
23712 else
23713 echo "$as_me:$LINENO: result: not found" >&5
23714echo "${ECHO_T}not found" >&6
23715 fi
23716
23717 fi
23718 fi
23719
23720 if test "$wxUSE_MGL" = 1; then
23721 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
23722echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
23723 if test "x$MGL_ROOT" = x ; then
23724 echo "$as_me:$LINENO: result: not found" >&5
23725echo "${ECHO_T}not found" >&6
23726 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
23727echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
23728 { (exit 1); exit 1; }; }
23729 else
23730 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
23731echo "${ECHO_T}$MGL_ROOT" >&6
23732 fi
23733
23734 echo "$as_me:$LINENO: checking for libmgl location" >&5
23735echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
23736 case "${host}" in
23737 *-*-linux* )
23738 if test "x$wxUSE_SHARED" = xyes ; then
23739 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
23740 else
23741 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
23742 fi
23743 ;;
23744 *-pc-msdosdjgpp )
23745 mgl_os_candidates="dos32/dj2"
23746 ;;
23747 *)
23748 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
23749echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
23750 { (exit 1); exit 1; }; }
23751 esac
23752
23753 mgl_lib_type=""
23754 mgl_os=""
23755
23756 for mgl_os_i in $mgl_os_candidates ; do
23757 if test "x$mgl_os" = x ; then
23758 if test "$wxUSE_DEBUG_FLAG" = yes ; then
23759 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
23760 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
23761 mgl_lib_type=debug
23762 mgl_os=$mgl_os_i
23763 fi
23764 fi
23765 if test "x$mgl_lib_type" = x ; then
23766 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
23767 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
23768 mgl_lib_type=release
23769 mgl_os=$mgl_os_i
23770 fi
23771 fi
23772 fi
23773 done
23774
23775 if test "x$mgl_os" = x ; then
23776 echo "$as_me:$LINENO: result: not found" >&5
23777echo "${ECHO_T}not found" >&6
23778 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
23779echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
23780 { (exit 1); exit 1; }; }
23781 fi
23782 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
23783echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
23784
23785 wxUSE_UNIVERSAL="yes"
23786
23787 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
23788 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
23789
23790 AFMINSTALL=afminstall
23791 TOOLKIT=MGL
23792 GUIDIST=MGL_DIST
23793 fi
23794
23795 if test "$wxUSE_MICROWIN" = 1; then
23796 echo "$as_me:$LINENO: checking for MicroWindows" >&5
23797echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
23798 if test "x$MICROWINDOWS" = x ; then
23799 echo "$as_me:$LINENO: result: not found" >&5
23800echo "${ECHO_T}not found" >&6
23801 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
23802echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
23803 { (exit 1); exit 1; }; }
23804 else
23805 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
23806echo "${ECHO_T}$MICROWINDOWS" >&6
23807 fi
23808
23809 if test -f $MICROWINDOWS/lib/libmwin.a; then
23810 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
23811echo "${ECHO_T}MicroWindows' libraries found." >&6
23812 else
23813 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
23814echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
23815 { (exit 1); exit 1; }; }
23816 fi
23817
23818 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
23819 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
23820
23821 wxUSE_UNIVERSAL="yes"
23822
23823 AFMINSTALL=afminstall
23824 TOOLKIT=MICROWIN
23825 GUIDIST=MICROWIN_DIST
23826
23827 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
23828 fi
23829
74b84332 23830 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
ea7db9ff 23831 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
23832echo $ECHO_N "checking for X... $ECHO_C" >&6
23833
23834
23835# Check whether --with-x or --without-x was given.
23836if test "${with_x+set}" = set; then
23837 withval="$with_x"
23838
23839fi;
23840# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
23841if test "x$with_x" = xno; then
23842 # The user explicitly disabled X.
23843 have_x=disabled
23844else
23845 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
23846 # Both variables are already set.
23847 have_x=yes
23848 else
23849 if test "${ac_cv_have_x+set}" = set; then
23850 echo $ECHO_N "(cached) $ECHO_C" >&6
23851else
23852 # One or both of the vars are not set, and there is no cached value.
23853ac_x_includes=no ac_x_libraries=no
23854rm -fr conftest.dir
23855if mkdir conftest.dir; then
23856 cd conftest.dir
23857 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
23858 cat >Imakefile <<'_ACEOF'
23859acfindx:
23860 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
23861_ACEOF
23862 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
23863 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23864 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
23865 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
23866 for ac_extension in a so sl; do
23867 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
23868 test -f $ac_im_libdir/libX11.$ac_extension; then
23869 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
23870 fi
23871 done
23872 # Screen out bogus values from the imake configuration. They are
23873 # bogus both because they are the default anyway, and because
23874 # using them would break gcc on systems where it needs fixed includes.
23875 case $ac_im_incroot in
23876 /usr/include) ;;
23877 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
23878 esac
23879 case $ac_im_usrlibdir in
23880 /usr/lib | /lib) ;;
23881 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
23882 esac
23883 fi
23884 cd ..
23885 rm -fr conftest.dir
23886fi
23887
23888# Standard set of common directories for X headers.
23889# Check X11 before X11Rn because it is often a symlink to the current release.
23890ac_x_header_dirs='
23891/usr/X11/include
23892/usr/X11R6/include
23893/usr/X11R5/include
23894/usr/X11R4/include
23895
23896/usr/include/X11
23897/usr/include/X11R6
23898/usr/include/X11R5
23899/usr/include/X11R4
23900
23901/usr/local/X11/include
23902/usr/local/X11R6/include
23903/usr/local/X11R5/include
23904/usr/local/X11R4/include
23905
23906/usr/local/include/X11
23907/usr/local/include/X11R6
23908/usr/local/include/X11R5
23909/usr/local/include/X11R4
23910
23911/usr/X386/include
23912/usr/x386/include
23913/usr/XFree86/include/X11
23914
23915/usr/include
23916/usr/local/include
23917/usr/unsupported/include
23918/usr/athena/include
23919/usr/local/x11r5/include
23920/usr/lpp/Xamples/include
23921
23922/usr/openwin/include
23923/usr/openwin/share/include'
23924
23925if test "$ac_x_includes" = no; then
ea7db9ff 23926 # Guess where to find include files, by looking for Intrinsic.h.
a848cd7e
SC
23927 # First, try using that file with no special directory specified.
23928 cat >conftest.$ac_ext <<_ACEOF
23929/* confdefs.h. */
23930_ACEOF
23931cat confdefs.h >>conftest.$ac_ext
23932cat >>conftest.$ac_ext <<_ACEOF
23933/* end confdefs.h. */
23934#include <X11/Intrinsic.h>
23935_ACEOF
23936if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23937 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23938 ac_status=$?
23939 grep -v '^ *+' conftest.er1 >conftest.err
23940 rm -f conftest.er1
23941 cat conftest.err >&5
23942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23943 (exit $ac_status); } >/dev/null; then
23944 if test -s conftest.err; then
23945 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23946 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23947 else
23948 ac_cpp_err=
23949 fi
23950else
23951 ac_cpp_err=yes
23952fi
23953if test -z "$ac_cpp_err"; then
23954 # We can compile using X headers with no special include directory.
23955ac_x_includes=
23956else
23957 echo "$as_me: failed program was:" >&5
23958sed 's/^/| /' conftest.$ac_ext >&5
23959
23960 for ac_dir in $ac_x_header_dirs; do
23961 if test -r "$ac_dir/X11/Intrinsic.h"; then
23962 ac_x_includes=$ac_dir
23963 break
23964 fi
23965done
23966fi
23967rm -f conftest.err conftest.$ac_ext
23968fi # $ac_x_includes = no
23969
23970if test "$ac_x_libraries" = no; then
23971 # Check for the libraries.
23972 # See if we find them without any special options.
23973 # Don't add to $LIBS permanently.
23974 ac_save_LIBS=$LIBS
23975 LIBS="-lXt $LIBS"
23976 cat >conftest.$ac_ext <<_ACEOF
23977/* confdefs.h. */
23978_ACEOF
23979cat confdefs.h >>conftest.$ac_ext
23980cat >>conftest.$ac_ext <<_ACEOF
23981/* end confdefs.h. */
23982#include <X11/Intrinsic.h>
23983int
23984main ()
23985{
23986XtMalloc (0)
23987 ;
23988 return 0;
23989}
23990_ACEOF
23991rm -f conftest.$ac_objext conftest$ac_exeext
23992if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23993 (eval $ac_link) 2>conftest.er1
a848cd7e 23994 ac_status=$?
ac1cb8d3
VS
23995 grep -v '^ *+' conftest.er1 >conftest.err
23996 rm -f conftest.er1
23997 cat conftest.err >&5
a848cd7e
SC
23998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23999 (exit $ac_status); } &&
ea7db9ff
DE
24000 { ac_try='test -z "$ac_c_werror_flag"
24001 || test ! -s conftest.err'
ac1cb8d3
VS
24002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24003 (eval $ac_try) 2>&5
24004 ac_status=$?
24005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24006 (exit $ac_status); }; } &&
24007 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24009 (eval $ac_try) 2>&5
24010 ac_status=$?
24011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24012 (exit $ac_status); }; }; then
24013 LIBS=$ac_save_LIBS
24014# We can link X programs with no special library path.
24015ac_x_libraries=
24016else
24017 echo "$as_me: failed program was:" >&5
24018sed 's/^/| /' conftest.$ac_ext >&5
24019
24020LIBS=$ac_save_LIBS
24021for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24022do
24023 # Don't even attempt the hair of trying to link an X program!
24024 for ac_extension in a so sl; do
24025 if test -r $ac_dir/libXt.$ac_extension; then
24026 ac_x_libraries=$ac_dir
24027 break 2
24028 fi
24029 done
24030done
24031fi
ac1cb8d3
VS
24032rm -f conftest.err conftest.$ac_objext \
24033 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24034fi # $ac_x_libraries = no
24035
24036if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
24037 # Didn't find X anywhere. Cache the known absence of X.
24038 ac_cv_have_x="have_x=no"
24039else
24040 # Record where we found X for the cache.
24041 ac_cv_have_x="have_x=yes \
ac1cb8d3 24042 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
24043fi
24044fi
24045
24046 fi
24047 eval "$ac_cv_have_x"
24048fi # $with_x != no
24049
24050if test "$have_x" != yes; then
24051 echo "$as_me:$LINENO: result: $have_x" >&5
24052echo "${ECHO_T}$have_x" >&6
24053 no_x=yes
24054else
24055 # If each of the values was on the command line, it overrides each guess.
24056 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24057 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24058 # Update the cache value to reflect the command line values.
24059 ac_cv_have_x="have_x=yes \
24060 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
ea7db9ff
DE
24061 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
24062echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
a848cd7e
SC
24063fi
24064
24065if test "$no_x" = yes; then
24066 # Not all programs may use this symbol, but it does not hurt to define it.
24067
24068cat >>confdefs.h <<\_ACEOF
24069#define X_DISPLAY_MISSING 1
24070_ACEOF
24071
24072 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24073else
24074 if test -n "$x_includes"; then
24075 X_CFLAGS="$X_CFLAGS -I$x_includes"
24076 fi
24077
24078 # It would also be nice to do this for all -L options, not just this one.
24079 if test -n "$x_libraries"; then
24080 X_LIBS="$X_LIBS -L$x_libraries"
24081 # For Solaris; some versions of Sun CC require a space after -R and
24082 # others require no space. Words are not sufficient . . . .
24083 case `(uname -sr) 2>/dev/null` in
24084 "SunOS 5"*)
24085 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
24086echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
24087 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24088 cat >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
24095int
24096main ()
24097{
24098
24099 ;
24100 return 0;
24101}
24102_ACEOF
24103rm -f conftest.$ac_objext conftest$ac_exeext
24104if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24105 (eval $ac_link) 2>conftest.er1
a848cd7e 24106 ac_status=$?
ac1cb8d3
VS
24107 grep -v '^ *+' conftest.er1 >conftest.err
24108 rm -f conftest.er1
24109 cat conftest.err >&5
a848cd7e
SC
24110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24111 (exit $ac_status); } &&
ea7db9ff
DE
24112 { ac_try='test -z "$ac_c_werror_flag"
24113 || test ! -s conftest.err'
ac1cb8d3
VS
24114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24115 (eval $ac_try) 2>&5
24116 ac_status=$?
24117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24118 (exit $ac_status); }; } &&
24119 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
24125 ac_R_nospace=yes
24126else
24127 echo "$as_me: failed program was:" >&5
24128sed 's/^/| /' conftest.$ac_ext >&5
24129
24130ac_R_nospace=no
24131fi
ac1cb8d3
VS
24132rm -f conftest.err conftest.$ac_objext \
24133 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24134 if test $ac_R_nospace = yes; then
24135 echo "$as_me:$LINENO: result: no" >&5
24136echo "${ECHO_T}no" >&6
24137 X_LIBS="$X_LIBS -R$x_libraries"
24138 else
24139 LIBS="$ac_xsave_LIBS -R $x_libraries"
24140 cat >conftest.$ac_ext <<_ACEOF
24141/* confdefs.h. */
24142_ACEOF
24143cat confdefs.h >>conftest.$ac_ext
24144cat >>conftest.$ac_ext <<_ACEOF
24145/* end confdefs.h. */
24146
24147int
24148main ()
24149{
24150
24151 ;
24152 return 0;
24153}
24154_ACEOF
24155rm -f conftest.$ac_objext conftest$ac_exeext
24156if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24157 (eval $ac_link) 2>conftest.er1
a848cd7e 24158 ac_status=$?
ac1cb8d3
VS
24159 grep -v '^ *+' conftest.er1 >conftest.err
24160 rm -f conftest.er1
24161 cat conftest.err >&5
a848cd7e
SC
24162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24163 (exit $ac_status); } &&
ea7db9ff
DE
24164 { ac_try='test -z "$ac_c_werror_flag"
24165 || test ! -s conftest.err'
ac1cb8d3
VS
24166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24167 (eval $ac_try) 2>&5
24168 ac_status=$?
24169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24170 (exit $ac_status); }; } &&
24171 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24173 (eval $ac_try) 2>&5
24174 ac_status=$?
24175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24176 (exit $ac_status); }; }; then
24177 ac_R_space=yes
24178else
24179 echo "$as_me: failed program was:" >&5
24180sed 's/^/| /' conftest.$ac_ext >&5
24181
24182ac_R_space=no
24183fi
ac1cb8d3
VS
24184rm -f conftest.err conftest.$ac_objext \
24185 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24186 if test $ac_R_space = yes; then
24187 echo "$as_me:$LINENO: result: yes" >&5
24188echo "${ECHO_T}yes" >&6
24189 X_LIBS="$X_LIBS -R $x_libraries"
24190 else
24191 echo "$as_me:$LINENO: result: neither works" >&5
24192echo "${ECHO_T}neither works" >&6
24193 fi
24194 fi
24195 LIBS=$ac_xsave_LIBS
24196 esac
24197 fi
24198
24199 # Check for system-dependent libraries X programs must link with.
24200 # Do this before checking for the system-independent R6 libraries
24201 # (-lICE), since we may need -lsocket or whatever for X linking.
24202
24203 if test "$ISC" = yes; then
24204 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24205 else
24206 # Martyn Johnson says this is needed for Ultrix, if the X
24207 # libraries were built with DECnet support. And Karl Berry says
24208 # the Alpha needs dnet_stub (dnet does not exist).
24209 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24210 cat >conftest.$ac_ext <<_ACEOF
24211/* confdefs.h. */
24212_ACEOF
24213cat confdefs.h >>conftest.$ac_ext
24214cat >>conftest.$ac_ext <<_ACEOF
24215/* end confdefs.h. */
24216
24217/* Override any gcc2 internal prototype to avoid an error. */
24218#ifdef __cplusplus
24219extern "C"
24220#endif
24221/* We use char because int might match the return type of a gcc2
24222 builtin and then its argument prototype would still apply. */
24223char XOpenDisplay ();
24224int
24225main ()
24226{
24227XOpenDisplay ();
24228 ;
24229 return 0;
24230}
24231_ACEOF
24232rm -f conftest.$ac_objext conftest$ac_exeext
24233if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24234 (eval $ac_link) 2>conftest.er1
a848cd7e 24235 ac_status=$?
ac1cb8d3
VS
24236 grep -v '^ *+' conftest.er1 >conftest.err
24237 rm -f conftest.er1
24238 cat conftest.err >&5
a848cd7e
SC
24239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24240 (exit $ac_status); } &&
ea7db9ff
DE
24241 { ac_try='test -z "$ac_c_werror_flag"
24242 || test ! -s conftest.err'
ac1cb8d3
VS
24243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24244 (eval $ac_try) 2>&5
24245 ac_status=$?
24246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24247 (exit $ac_status); }; } &&
24248 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24250 (eval $ac_try) 2>&5
24251 ac_status=$?
24252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24253 (exit $ac_status); }; }; then
24254 :
24255else
24256 echo "$as_me: failed program was:" >&5
24257sed 's/^/| /' conftest.$ac_ext >&5
24258
24259echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
24260echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
24261if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
24262 echo $ECHO_N "(cached) $ECHO_C" >&6
24263else
24264 ac_check_lib_save_LIBS=$LIBS
24265LIBS="-ldnet $LIBS"
24266cat >conftest.$ac_ext <<_ACEOF
24267/* confdefs.h. */
24268_ACEOF
24269cat confdefs.h >>conftest.$ac_ext
24270cat >>conftest.$ac_ext <<_ACEOF
24271/* end confdefs.h. */
24272
24273/* Override any gcc2 internal prototype to avoid an error. */
24274#ifdef __cplusplus
24275extern "C"
24276#endif
24277/* We use char because int might match the return type of a gcc2
24278 builtin and then its argument prototype would still apply. */
24279char dnet_ntoa ();
24280int
24281main ()
24282{
24283dnet_ntoa ();
24284 ;
24285 return 0;
24286}
24287_ACEOF
24288rm -f conftest.$ac_objext conftest$ac_exeext
24289if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24290 (eval $ac_link) 2>conftest.er1
a848cd7e 24291 ac_status=$?
ac1cb8d3
VS
24292 grep -v '^ *+' conftest.er1 >conftest.err
24293 rm -f conftest.er1
24294 cat conftest.err >&5
a848cd7e
SC
24295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24296 (exit $ac_status); } &&
ea7db9ff
DE
24297 { ac_try='test -z "$ac_c_werror_flag"
24298 || test ! -s conftest.err'
ac1cb8d3
VS
24299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24300 (eval $ac_try) 2>&5
24301 ac_status=$?
24302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24303 (exit $ac_status); }; } &&
24304 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24306 (eval $ac_try) 2>&5
24307 ac_status=$?
24308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24309 (exit $ac_status); }; }; then
24310 ac_cv_lib_dnet_dnet_ntoa=yes
24311else
24312 echo "$as_me: failed program was:" >&5
24313sed 's/^/| /' conftest.$ac_ext >&5
24314
24315ac_cv_lib_dnet_dnet_ntoa=no
24316fi
ac1cb8d3
VS
24317rm -f conftest.err conftest.$ac_objext \
24318 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24319LIBS=$ac_check_lib_save_LIBS
24320fi
24321echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24322echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
24323if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
24324 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24325fi
24326
24327 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24328 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
24329echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
24330if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
24331 echo $ECHO_N "(cached) $ECHO_C" >&6
24332else
24333 ac_check_lib_save_LIBS=$LIBS
24334LIBS="-ldnet_stub $LIBS"
24335cat >conftest.$ac_ext <<_ACEOF
24336/* confdefs.h. */
24337_ACEOF
24338cat confdefs.h >>conftest.$ac_ext
24339cat >>conftest.$ac_ext <<_ACEOF
24340/* end confdefs.h. */
24341
24342/* Override any gcc2 internal prototype to avoid an error. */
24343#ifdef __cplusplus
24344extern "C"
24345#endif
24346/* We use char because int might match the return type of a gcc2
24347 builtin and then its argument prototype would still apply. */
24348char dnet_ntoa ();
24349int
24350main ()
24351{
24352dnet_ntoa ();
24353 ;
24354 return 0;
24355}
24356_ACEOF
24357rm -f conftest.$ac_objext conftest$ac_exeext
24358if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24359 (eval $ac_link) 2>conftest.er1
a848cd7e 24360 ac_status=$?
ac1cb8d3
VS
24361 grep -v '^ *+' conftest.er1 >conftest.err
24362 rm -f conftest.er1
24363 cat conftest.err >&5
a848cd7e
SC
24364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24365 (exit $ac_status); } &&
ea7db9ff
DE
24366 { ac_try='test -z "$ac_c_werror_flag"
24367 || test ! -s conftest.err'
ac1cb8d3
VS
24368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24369 (eval $ac_try) 2>&5
24370 ac_status=$?
24371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24372 (exit $ac_status); }; } &&
24373 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24375 (eval $ac_try) 2>&5
24376 ac_status=$?
24377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24378 (exit $ac_status); }; }; then
24379 ac_cv_lib_dnet_stub_dnet_ntoa=yes
24380else
24381 echo "$as_me: failed program was:" >&5
24382sed 's/^/| /' conftest.$ac_ext >&5
24383
24384ac_cv_lib_dnet_stub_dnet_ntoa=no
24385fi
ac1cb8d3
VS
24386rm -f conftest.err conftest.$ac_objext \
24387 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24388LIBS=$ac_check_lib_save_LIBS
24389fi
24390echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24391echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
24392if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
24393 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24394fi
24395
24396 fi
24397fi
ac1cb8d3
VS
24398rm -f conftest.err conftest.$ac_objext \
24399 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24400 LIBS="$ac_xsave_LIBS"
24401
24402 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24403 # to get the SysV transport functions.
24404 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24405 # needs -lnsl.
24406 # The nsl library prevents programs from opening the X display
24407 # on Irix 5.2, according to T.E. Dickey.
24408 # The functions gethostbyname, getservbyname, and inet_addr are
24409 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24410 echo "$as_me:$LINENO: checking for gethostbyname" >&5
24411echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
24412if test "${ac_cv_func_gethostbyname+set}" = set; then
24413 echo $ECHO_N "(cached) $ECHO_C" >&6
24414else
24415 cat >conftest.$ac_ext <<_ACEOF
24416/* confdefs.h. */
24417_ACEOF
24418cat confdefs.h >>conftest.$ac_ext
24419cat >>conftest.$ac_ext <<_ACEOF
24420/* end confdefs.h. */
ac1cb8d3
VS
24421/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
24422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24423#define gethostbyname innocuous_gethostbyname
24424
a848cd7e
SC
24425/* System header to define __stub macros and hopefully few prototypes,
24426 which can conflict with char gethostbyname (); below.
24427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24428 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24429
a848cd7e
SC
24430#ifdef __STDC__
24431# include <limits.h>
24432#else
24433# include <assert.h>
24434#endif
ac1cb8d3
VS
24435
24436#undef gethostbyname
24437
a848cd7e
SC
24438/* Override any gcc2 internal prototype to avoid an error. */
24439#ifdef __cplusplus
24440extern "C"
24441{
24442#endif
24443/* We use char because int might match the return type of a gcc2
24444 builtin and then its argument prototype would still apply. */
24445char gethostbyname ();
24446/* The GNU C library defines this for functions which it implements
24447 to always fail with ENOSYS. Some functions are actually named
24448 something starting with __ and the normal name is an alias. */
24449#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
24450choke me
24451#else
24452char (*f) () = gethostbyname;
24453#endif
24454#ifdef __cplusplus
24455}
24456#endif
24457
24458int
24459main ()
24460{
24461return f != gethostbyname;
24462 ;
24463 return 0;
24464}
24465_ACEOF
24466rm -f conftest.$ac_objext conftest$ac_exeext
24467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24468 (eval $ac_link) 2>conftest.er1
a848cd7e 24469 ac_status=$?
ac1cb8d3
VS
24470 grep -v '^ *+' conftest.er1 >conftest.err
24471 rm -f conftest.er1
24472 cat conftest.err >&5
a848cd7e
SC
24473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24474 (exit $ac_status); } &&
ea7db9ff
DE
24475 { ac_try='test -z "$ac_c_werror_flag"
24476 || test ! -s conftest.err'
ac1cb8d3
VS
24477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24478 (eval $ac_try) 2>&5
24479 ac_status=$?
24480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24481 (exit $ac_status); }; } &&
24482 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24484 (eval $ac_try) 2>&5
24485 ac_status=$?
24486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24487 (exit $ac_status); }; }; then
24488 ac_cv_func_gethostbyname=yes
24489else
24490 echo "$as_me: failed program was:" >&5
24491sed 's/^/| /' conftest.$ac_ext >&5
24492
24493ac_cv_func_gethostbyname=no
24494fi
ac1cb8d3
VS
24495rm -f conftest.err conftest.$ac_objext \
24496 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24497fi
24498echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
24499echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
24500
24501 if test $ac_cv_func_gethostbyname = no; then
24502 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
24503echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
24504if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
24505 echo $ECHO_N "(cached) $ECHO_C" >&6
24506else
24507 ac_check_lib_save_LIBS=$LIBS
24508LIBS="-lnsl $LIBS"
24509cat >conftest.$ac_ext <<_ACEOF
24510/* confdefs.h. */
24511_ACEOF
24512cat confdefs.h >>conftest.$ac_ext
24513cat >>conftest.$ac_ext <<_ACEOF
24514/* end confdefs.h. */
24515
24516/* Override any gcc2 internal prototype to avoid an error. */
24517#ifdef __cplusplus
24518extern "C"
24519#endif
24520/* We use char because int might match the return type of a gcc2
24521 builtin and then its argument prototype would still apply. */
24522char gethostbyname ();
24523int
24524main ()
24525{
24526gethostbyname ();
24527 ;
24528 return 0;
24529}
24530_ACEOF
24531rm -f conftest.$ac_objext conftest$ac_exeext
24532if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
24533 (eval $ac_link) 2>conftest.er1
24534 ac_status=$?
24535 grep -v '^ *+' conftest.er1 >conftest.err
24536 rm -f conftest.er1
24537 cat conftest.err >&5
24538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24539 (exit $ac_status); } &&
ea7db9ff
DE
24540 { ac_try='test -z "$ac_c_werror_flag"
24541 || test ! -s conftest.err'
ac1cb8d3
VS
24542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24543 (eval $ac_try) 2>&5
24544 ac_status=$?
24545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24546 (exit $ac_status); }; } &&
24547 { ac_try='test -s conftest$ac_exeext'
24548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24549 (eval $ac_try) 2>&5
24550 ac_status=$?
24551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24552 (exit $ac_status); }; }; then
24553 ac_cv_lib_nsl_gethostbyname=yes
24554else
24555 echo "$as_me: failed program was:" >&5
24556sed 's/^/| /' conftest.$ac_ext >&5
24557
24558ac_cv_lib_nsl_gethostbyname=no
24559fi
24560rm -f conftest.err conftest.$ac_objext \
24561 conftest$ac_exeext conftest.$ac_ext
24562LIBS=$ac_check_lib_save_LIBS
24563fi
24564echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
24565echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
24566if test $ac_cv_lib_nsl_gethostbyname = yes; then
24567 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24568fi
24569
24570 if test $ac_cv_lib_nsl_gethostbyname = no; then
24571 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
24572echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
24573if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
24574 echo $ECHO_N "(cached) $ECHO_C" >&6
24575else
24576 ac_check_lib_save_LIBS=$LIBS
24577LIBS="-lbsd $LIBS"
24578cat >conftest.$ac_ext <<_ACEOF
24579/* confdefs.h. */
24580_ACEOF
24581cat confdefs.h >>conftest.$ac_ext
24582cat >>conftest.$ac_ext <<_ACEOF
24583/* end confdefs.h. */
24584
24585/* Override any gcc2 internal prototype to avoid an error. */
24586#ifdef __cplusplus
24587extern "C"
24588#endif
24589/* We use char because int might match the return type of a gcc2
24590 builtin and then its argument prototype would still apply. */
24591char gethostbyname ();
24592int
24593main ()
24594{
24595gethostbyname ();
24596 ;
24597 return 0;
24598}
24599_ACEOF
24600rm -f conftest.$ac_objext conftest$ac_exeext
24601if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24602 (eval $ac_link) 2>conftest.er1
a848cd7e 24603 ac_status=$?
ac1cb8d3
VS
24604 grep -v '^ *+' conftest.er1 >conftest.err
24605 rm -f conftest.er1
24606 cat conftest.err >&5
a848cd7e
SC
24607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24608 (exit $ac_status); } &&
ea7db9ff
DE
24609 { ac_try='test -z "$ac_c_werror_flag"
24610 || test ! -s conftest.err'
a848cd7e
SC
24611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24612 (eval $ac_try) 2>&5
24613 ac_status=$?
24614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
24615 (exit $ac_status); }; } &&
24616 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24618 (eval $ac_try) 2>&5
24619 ac_status=$?
24620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24621 (exit $ac_status); }; }; then
24622 ac_cv_lib_bsd_gethostbyname=yes
24623else
24624 echo "$as_me: failed program was:" >&5
24625sed 's/^/| /' conftest.$ac_ext >&5
24626
24627ac_cv_lib_bsd_gethostbyname=no
24628fi
ac1cb8d3
VS
24629rm -f conftest.err conftest.$ac_objext \
24630 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24631LIBS=$ac_check_lib_save_LIBS
24632fi
24633echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
24634echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
24635if test $ac_cv_lib_bsd_gethostbyname = yes; then
24636 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24637fi
24638
24639 fi
24640 fi
24641
24642 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24643 # socket/setsockopt and other routines are undefined under SCO ODT
24644 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
24645 # on later versions), says Simon Leinen: it contains gethostby*
24646 # variants that don't use the name server (or something). -lsocket
24647 # must be given before -lnsl if both are needed. We assume that
24648 # if connect needs -lnsl, so does gethostbyname.
24649 echo "$as_me:$LINENO: checking for connect" >&5
24650echo $ECHO_N "checking for connect... $ECHO_C" >&6
24651if test "${ac_cv_func_connect+set}" = set; then
24652 echo $ECHO_N "(cached) $ECHO_C" >&6
24653else
24654 cat >conftest.$ac_ext <<_ACEOF
24655/* confdefs.h. */
24656_ACEOF
24657cat confdefs.h >>conftest.$ac_ext
24658cat >>conftest.$ac_ext <<_ACEOF
24659/* end confdefs.h. */
ac1cb8d3
VS
24660/* Define connect to an innocuous variant, in case <limits.h> declares connect.
24661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24662#define connect innocuous_connect
24663
a848cd7e
SC
24664/* System header to define __stub macros and hopefully few prototypes,
24665 which can conflict with char connect (); below.
24666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24667 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24668
a848cd7e
SC
24669#ifdef __STDC__
24670# include <limits.h>
24671#else
24672# include <assert.h>
24673#endif
ac1cb8d3
VS
24674
24675#undef connect
24676
a848cd7e
SC
24677/* Override any gcc2 internal prototype to avoid an error. */
24678#ifdef __cplusplus
24679extern "C"
24680{
24681#endif
24682/* We use char because int might match the return type of a gcc2
24683 builtin and then its argument prototype would still apply. */
24684char connect ();
24685/* The GNU C library defines this for functions which it implements
24686 to always fail with ENOSYS. Some functions are actually named
24687 something starting with __ and the normal name is an alias. */
24688#if defined (__stub_connect) || defined (__stub___connect)
24689choke me
24690#else
24691char (*f) () = connect;
24692#endif
24693#ifdef __cplusplus
24694}
24695#endif
24696
24697int
24698main ()
24699{
24700return f != connect;
24701 ;
24702 return 0;
24703}
24704_ACEOF
24705rm -f conftest.$ac_objext conftest$ac_exeext
24706if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24707 (eval $ac_link) 2>conftest.er1
a848cd7e 24708 ac_status=$?
ac1cb8d3
VS
24709 grep -v '^ *+' conftest.er1 >conftest.err
24710 rm -f conftest.er1
24711 cat conftest.err >&5
a848cd7e
SC
24712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24713 (exit $ac_status); } &&
ea7db9ff
DE
24714 { ac_try='test -z "$ac_c_werror_flag"
24715 || test ! -s conftest.err'
ac1cb8d3
VS
24716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24717 (eval $ac_try) 2>&5
24718 ac_status=$?
24719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24720 (exit $ac_status); }; } &&
24721 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24723 (eval $ac_try) 2>&5
24724 ac_status=$?
24725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24726 (exit $ac_status); }; }; then
24727 ac_cv_func_connect=yes
24728else
24729 echo "$as_me: failed program was:" >&5
24730sed 's/^/| /' conftest.$ac_ext >&5
24731
24732ac_cv_func_connect=no
24733fi
ac1cb8d3
VS
24734rm -f conftest.err conftest.$ac_objext \
24735 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24736fi
24737echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
24738echo "${ECHO_T}$ac_cv_func_connect" >&6
24739
24740 if test $ac_cv_func_connect = no; then
24741 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
24742echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
24743if test "${ac_cv_lib_socket_connect+set}" = set; then
24744 echo $ECHO_N "(cached) $ECHO_C" >&6
24745else
24746 ac_check_lib_save_LIBS=$LIBS
24747LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24748cat >conftest.$ac_ext <<_ACEOF
24749/* confdefs.h. */
24750_ACEOF
24751cat confdefs.h >>conftest.$ac_ext
24752cat >>conftest.$ac_ext <<_ACEOF
24753/* end confdefs.h. */
24754
24755/* Override any gcc2 internal prototype to avoid an error. */
24756#ifdef __cplusplus
24757extern "C"
24758#endif
24759/* We use char because int might match the return type of a gcc2
24760 builtin and then its argument prototype would still apply. */
24761char connect ();
24762int
24763main ()
24764{
24765connect ();
24766 ;
24767 return 0;
24768}
24769_ACEOF
24770rm -f conftest.$ac_objext conftest$ac_exeext
24771if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24772 (eval $ac_link) 2>conftest.er1
a848cd7e 24773 ac_status=$?
ac1cb8d3
VS
24774 grep -v '^ *+' conftest.er1 >conftest.err
24775 rm -f conftest.er1
24776 cat conftest.err >&5
a848cd7e
SC
24777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24778 (exit $ac_status); } &&
ea7db9ff
DE
24779 { ac_try='test -z "$ac_c_werror_flag"
24780 || test ! -s conftest.err'
ac1cb8d3
VS
24781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24782 (eval $ac_try) 2>&5
24783 ac_status=$?
24784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24785 (exit $ac_status); }; } &&
24786 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24788 (eval $ac_try) 2>&5
24789 ac_status=$?
24790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24791 (exit $ac_status); }; }; then
24792 ac_cv_lib_socket_connect=yes
24793else
24794 echo "$as_me: failed program was:" >&5
24795sed 's/^/| /' conftest.$ac_ext >&5
24796
24797ac_cv_lib_socket_connect=no
24798fi
ac1cb8d3
VS
24799rm -f conftest.err conftest.$ac_objext \
24800 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24801LIBS=$ac_check_lib_save_LIBS
24802fi
24803echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
24804echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
24805if test $ac_cv_lib_socket_connect = yes; then
24806 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24807fi
24808
24809 fi
24810
24811 # Guillermo Gomez says -lposix is necessary on A/UX.
24812 echo "$as_me:$LINENO: checking for remove" >&5
24813echo $ECHO_N "checking for remove... $ECHO_C" >&6
24814if test "${ac_cv_func_remove+set}" = set; then
24815 echo $ECHO_N "(cached) $ECHO_C" >&6
24816else
24817 cat >conftest.$ac_ext <<_ACEOF
24818/* confdefs.h. */
24819_ACEOF
24820cat confdefs.h >>conftest.$ac_ext
24821cat >>conftest.$ac_ext <<_ACEOF
24822/* end confdefs.h. */
ac1cb8d3
VS
24823/* Define remove to an innocuous variant, in case <limits.h> declares remove.
24824 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24825#define remove innocuous_remove
24826
a848cd7e
SC
24827/* System header to define __stub macros and hopefully few prototypes,
24828 which can conflict with char remove (); below.
24829 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24830 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24831
a848cd7e
SC
24832#ifdef __STDC__
24833# include <limits.h>
24834#else
24835# include <assert.h>
24836#endif
ac1cb8d3
VS
24837
24838#undef remove
24839
a848cd7e
SC
24840/* Override any gcc2 internal prototype to avoid an error. */
24841#ifdef __cplusplus
24842extern "C"
24843{
24844#endif
24845/* We use char because int might match the return type of a gcc2
24846 builtin and then its argument prototype would still apply. */
24847char remove ();
24848/* The GNU C library defines this for functions which it implements
24849 to always fail with ENOSYS. Some functions are actually named
24850 something starting with __ and the normal name is an alias. */
24851#if defined (__stub_remove) || defined (__stub___remove)
24852choke me
24853#else
24854char (*f) () = remove;
24855#endif
24856#ifdef __cplusplus
24857}
24858#endif
24859
24860int
24861main ()
24862{
24863return f != remove;
24864 ;
24865 return 0;
24866}
24867_ACEOF
24868rm -f conftest.$ac_objext conftest$ac_exeext
24869if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24870 (eval $ac_link) 2>conftest.er1
a848cd7e 24871 ac_status=$?
ac1cb8d3
VS
24872 grep -v '^ *+' conftest.er1 >conftest.err
24873 rm -f conftest.er1
24874 cat conftest.err >&5
a848cd7e
SC
24875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24876 (exit $ac_status); } &&
ea7db9ff
DE
24877 { ac_try='test -z "$ac_c_werror_flag"
24878 || test ! -s conftest.err'
ac1cb8d3
VS
24879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24880 (eval $ac_try) 2>&5
24881 ac_status=$?
24882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24883 (exit $ac_status); }; } &&
24884 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24886 (eval $ac_try) 2>&5
24887 ac_status=$?
24888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24889 (exit $ac_status); }; }; then
24890 ac_cv_func_remove=yes
24891else
24892 echo "$as_me: failed program was:" >&5
24893sed 's/^/| /' conftest.$ac_ext >&5
24894
24895ac_cv_func_remove=no
24896fi
ac1cb8d3
VS
24897rm -f conftest.err conftest.$ac_objext \
24898 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24899fi
24900echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
24901echo "${ECHO_T}$ac_cv_func_remove" >&6
24902
24903 if test $ac_cv_func_remove = no; then
24904 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
24905echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
24906if test "${ac_cv_lib_posix_remove+set}" = set; then
24907 echo $ECHO_N "(cached) $ECHO_C" >&6
24908else
24909 ac_check_lib_save_LIBS=$LIBS
24910LIBS="-lposix $LIBS"
24911cat >conftest.$ac_ext <<_ACEOF
24912/* confdefs.h. */
24913_ACEOF
24914cat confdefs.h >>conftest.$ac_ext
24915cat >>conftest.$ac_ext <<_ACEOF
24916/* end confdefs.h. */
24917
24918/* Override any gcc2 internal prototype to avoid an error. */
24919#ifdef __cplusplus
24920extern "C"
24921#endif
24922/* We use char because int might match the return type of a gcc2
24923 builtin and then its argument prototype would still apply. */
24924char remove ();
24925int
24926main ()
24927{
24928remove ();
24929 ;
24930 return 0;
24931}
24932_ACEOF
24933rm -f conftest.$ac_objext conftest$ac_exeext
24934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24935 (eval $ac_link) 2>conftest.er1
a848cd7e 24936 ac_status=$?
ac1cb8d3
VS
24937 grep -v '^ *+' conftest.er1 >conftest.err
24938 rm -f conftest.er1
24939 cat conftest.err >&5
a848cd7e
SC
24940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24941 (exit $ac_status); } &&
ea7db9ff
DE
24942 { ac_try='test -z "$ac_c_werror_flag"
24943 || test ! -s conftest.err'
ac1cb8d3
VS
24944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24945 (eval $ac_try) 2>&5
24946 ac_status=$?
24947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24948 (exit $ac_status); }; } &&
24949 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24951 (eval $ac_try) 2>&5
24952 ac_status=$?
24953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24954 (exit $ac_status); }; }; then
24955 ac_cv_lib_posix_remove=yes
24956else
24957 echo "$as_me: failed program was:" >&5
24958sed 's/^/| /' conftest.$ac_ext >&5
24959
24960ac_cv_lib_posix_remove=no
24961fi
ac1cb8d3
VS
24962rm -f conftest.err conftest.$ac_objext \
24963 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24964LIBS=$ac_check_lib_save_LIBS
24965fi
24966echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
24967echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
24968if test $ac_cv_lib_posix_remove = yes; then
24969 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24970fi
24971
24972 fi
24973
24974 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24975 echo "$as_me:$LINENO: checking for shmat" >&5
24976echo $ECHO_N "checking for shmat... $ECHO_C" >&6
24977if test "${ac_cv_func_shmat+set}" = set; then
24978 echo $ECHO_N "(cached) $ECHO_C" >&6
24979else
24980 cat >conftest.$ac_ext <<_ACEOF
24981/* confdefs.h. */
24982_ACEOF
24983cat confdefs.h >>conftest.$ac_ext
24984cat >>conftest.$ac_ext <<_ACEOF
24985/* end confdefs.h. */
ac1cb8d3
VS
24986/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
24987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24988#define shmat innocuous_shmat
24989
a848cd7e
SC
24990/* System header to define __stub macros and hopefully few prototypes,
24991 which can conflict with char shmat (); below.
24992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24993 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24994
a848cd7e
SC
24995#ifdef __STDC__
24996# include <limits.h>
24997#else
24998# include <assert.h>
24999#endif
ac1cb8d3
VS
25000
25001#undef shmat
25002
a848cd7e
SC
25003/* Override any gcc2 internal prototype to avoid an error. */
25004#ifdef __cplusplus
25005extern "C"
25006{
25007#endif
25008/* We use char because int might match the return type of a gcc2
25009 builtin and then its argument prototype would still apply. */
25010char shmat ();
25011/* The GNU C library defines this for functions which it implements
25012 to always fail with ENOSYS. Some functions are actually named
25013 something starting with __ and the normal name is an alias. */
25014#if defined (__stub_shmat) || defined (__stub___shmat)
25015choke me
25016#else
25017char (*f) () = shmat;
25018#endif
25019#ifdef __cplusplus
25020}
25021#endif
25022
25023int
25024main ()
25025{
25026return f != shmat;
25027 ;
25028 return 0;
25029}
25030_ACEOF
25031rm -f conftest.$ac_objext conftest$ac_exeext
25032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25033 (eval $ac_link) 2>conftest.er1
a848cd7e 25034 ac_status=$?
ac1cb8d3
VS
25035 grep -v '^ *+' conftest.er1 >conftest.err
25036 rm -f conftest.er1
25037 cat conftest.err >&5
a848cd7e
SC
25038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25039 (exit $ac_status); } &&
ea7db9ff
DE
25040 { ac_try='test -z "$ac_c_werror_flag"
25041 || test ! -s conftest.err'
ac1cb8d3
VS
25042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25043 (eval $ac_try) 2>&5
25044 ac_status=$?
25045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25046 (exit $ac_status); }; } &&
25047 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25049 (eval $ac_try) 2>&5
25050 ac_status=$?
25051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25052 (exit $ac_status); }; }; then
25053 ac_cv_func_shmat=yes
25054else
25055 echo "$as_me: failed program was:" >&5
25056sed 's/^/| /' conftest.$ac_ext >&5
25057
25058ac_cv_func_shmat=no
25059fi
ac1cb8d3
VS
25060rm -f conftest.err conftest.$ac_objext \
25061 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25062fi
25063echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
25064echo "${ECHO_T}$ac_cv_func_shmat" >&6
25065
25066 if test $ac_cv_func_shmat = no; then
25067 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
25068echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
25069if test "${ac_cv_lib_ipc_shmat+set}" = set; then
25070 echo $ECHO_N "(cached) $ECHO_C" >&6
25071else
25072 ac_check_lib_save_LIBS=$LIBS
25073LIBS="-lipc $LIBS"
25074cat >conftest.$ac_ext <<_ACEOF
25075/* confdefs.h. */
25076_ACEOF
25077cat confdefs.h >>conftest.$ac_ext
25078cat >>conftest.$ac_ext <<_ACEOF
25079/* end confdefs.h. */
25080
25081/* Override any gcc2 internal prototype to avoid an error. */
25082#ifdef __cplusplus
25083extern "C"
25084#endif
25085/* We use char because int might match the return type of a gcc2
25086 builtin and then its argument prototype would still apply. */
25087char shmat ();
25088int
25089main ()
25090{
25091shmat ();
25092 ;
25093 return 0;
25094}
25095_ACEOF
25096rm -f conftest.$ac_objext conftest$ac_exeext
25097if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25098 (eval $ac_link) 2>conftest.er1
a848cd7e 25099 ac_status=$?
ac1cb8d3
VS
25100 grep -v '^ *+' conftest.er1 >conftest.err
25101 rm -f conftest.er1
25102 cat conftest.err >&5
a848cd7e
SC
25103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25104 (exit $ac_status); } &&
ea7db9ff
DE
25105 { ac_try='test -z "$ac_c_werror_flag"
25106 || test ! -s conftest.err'
ac1cb8d3
VS
25107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25108 (eval $ac_try) 2>&5
25109 ac_status=$?
25110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25111 (exit $ac_status); }; } &&
25112 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25114 (eval $ac_try) 2>&5
25115 ac_status=$?
25116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25117 (exit $ac_status); }; }; then
25118 ac_cv_lib_ipc_shmat=yes
25119else
25120 echo "$as_me: failed program was:" >&5
25121sed 's/^/| /' conftest.$ac_ext >&5
25122
25123ac_cv_lib_ipc_shmat=no
25124fi
ac1cb8d3
VS
25125rm -f conftest.err conftest.$ac_objext \
25126 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25127LIBS=$ac_check_lib_save_LIBS
25128fi
25129echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
25130echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
25131if test $ac_cv_lib_ipc_shmat = yes; then
25132 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25133fi
25134
25135 fi
25136 fi
25137
25138 # Check for libraries that X11R6 Xt/Xaw programs need.
25139 ac_save_LDFLAGS=$LDFLAGS
25140 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25141 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25142 # check for ICE first), but we must link in the order -lSM -lICE or
25143 # we get undefined symbols. So assume we have SM if we have ICE.
25144 # These have to be linked with before -lX11, unlike the other
25145 # libraries we check for below, so use a different variable.
25146 # John Interrante, Karl Berry
25147 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
25148echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
25149if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
25150 echo $ECHO_N "(cached) $ECHO_C" >&6
25151else
25152 ac_check_lib_save_LIBS=$LIBS
25153LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25154cat >conftest.$ac_ext <<_ACEOF
25155/* confdefs.h. */
25156_ACEOF
25157cat confdefs.h >>conftest.$ac_ext
25158cat >>conftest.$ac_ext <<_ACEOF
25159/* end confdefs.h. */
25160
25161/* Override any gcc2 internal prototype to avoid an error. */
25162#ifdef __cplusplus
25163extern "C"
25164#endif
25165/* We use char because int might match the return type of a gcc2
25166 builtin and then its argument prototype would still apply. */
25167char IceConnectionNumber ();
25168int
25169main ()
25170{
25171IceConnectionNumber ();
25172 ;
25173 return 0;
25174}
25175_ACEOF
25176rm -f conftest.$ac_objext conftest$ac_exeext
25177if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25178 (eval $ac_link) 2>conftest.er1
a848cd7e 25179 ac_status=$?
ac1cb8d3
VS
25180 grep -v '^ *+' conftest.er1 >conftest.err
25181 rm -f conftest.er1
25182 cat conftest.err >&5
a848cd7e
SC
25183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25184 (exit $ac_status); } &&
ea7db9ff
DE
25185 { ac_try='test -z "$ac_c_werror_flag"
25186 || test ! -s conftest.err'
ac1cb8d3
VS
25187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25188 (eval $ac_try) 2>&5
25189 ac_status=$?
25190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25191 (exit $ac_status); }; } &&
25192 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25194 (eval $ac_try) 2>&5
25195 ac_status=$?
25196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25197 (exit $ac_status); }; }; then
25198 ac_cv_lib_ICE_IceConnectionNumber=yes
25199else
25200 echo "$as_me: failed program was:" >&5
25201sed 's/^/| /' conftest.$ac_ext >&5
25202
25203ac_cv_lib_ICE_IceConnectionNumber=no
25204fi
ac1cb8d3
VS
25205rm -f conftest.err conftest.$ac_objext \
25206 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25207LIBS=$ac_check_lib_save_LIBS
25208fi
25209echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25210echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
25211if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
25212 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25213fi
25214
25215 LDFLAGS=$ac_save_LDFLAGS
25216
25217fi
25218
25219
25220 if test "$no_x" = "yes"; then
25221 { { echo "$as_me:$LINENO: error: X11 not found" >&5
25222echo "$as_me: error: X11 not found" >&2;}
25223 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
25224 fi
25225
74b84332
VS
25226 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
25227 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
25228 AFMINSTALL=afminstall
25229 COMPILED_X_PROGRAM=0
25230
74b84332
VS
25231 fi
25232
25233 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
25234 if test "$wxUSE_NANOX" = "yes"; then
25235 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
25236echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
25237 if test "x$MICROWIN" = x ; then
25238 echo "$as_me:$LINENO: result: not found" >&5
25239echo "${ECHO_T}not found" >&6
25240 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
25241echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
25242 { (exit 1); exit 1; }; }
25243 else
25244 echo "$as_me:$LINENO: result: $MICROWIN" >&5
25245echo "${ECHO_T}$MICROWIN" >&6
25246 cat >>confdefs.h <<\_ACEOF
25247#define wxUSE_NANOX 1
25248_ACEOF
25249
25250 fi
25251 fi
25252
25253 if test "$wxUSE_UNICODE" = "yes"; then
25254
25255 succeeded=no
25256
25257 if test -z "$PKG_CONFIG"; then
25258 # Extract the first word of "pkg-config", so it can be a program name with args.
25259set dummy pkg-config; ac_word=$2
25260echo "$as_me:$LINENO: checking for $ac_word" >&5
25261echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25262if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25263 echo $ECHO_N "(cached) $ECHO_C" >&6
25264else
25265 case $PKG_CONFIG in
25266 [\\/]* | ?:[\\/]*)
25267 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25268 ;;
25269 *)
25270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25271for as_dir in $PATH
25272do
25273 IFS=$as_save_IFS
25274 test -z "$as_dir" && as_dir=.
25275 for ac_exec_ext in '' $ac_executable_extensions; do
25276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25277 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25279 break 2
25280 fi
25281done
25282done
25283
25284 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25285 ;;
25286esac
25287fi
25288PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25289
25290if test -n "$PKG_CONFIG"; then
25291 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25292echo "${ECHO_T}$PKG_CONFIG" >&6
25293else
25294 echo "$as_me:$LINENO: result: no" >&5
25295echo "${ECHO_T}no" >&6
25296fi
25297
25298 fi
25299
25300 if test "$PKG_CONFIG" = "no" ; then
25301 echo "*** The pkg-config script could not be found. Make sure it is"
25302 echo "*** in your path, or set the PKG_CONFIG environment variable"
25303 echo "*** to the full path to pkg-config."
25304 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25305 else
25306 PKG_CONFIG_MIN_VERSION=0.9.0
25307 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25308 echo "$as_me:$LINENO: checking for pangox" >&5
25309echo $ECHO_N "checking for pangox... $ECHO_C" >&6
25310
25311 if $PKG_CONFIG --exists "pangox" ; then
25312 echo "$as_me:$LINENO: result: yes" >&5
25313echo "${ECHO_T}yes" >&6
25314 succeeded=yes
25315
25316 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
25317echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
25318 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
25319 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
25320echo "${ECHO_T}$PANGOX_CFLAGS" >&6
25321
25322 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
25323echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
25324 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
25325 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
25326echo "${ECHO_T}$PANGOX_LIBS" >&6
25327 else
25328 PANGOX_CFLAGS=""
25329 PANGOX_LIBS=""
25330 ## If we have a custom action on failure, don't print errors, but
25331 ## do set a variable so people can do so.
25332 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
25333
25334 fi
25335
25336
25337
25338 else
25339 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25340 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25341 fi
25342 fi
25343
25344 if test $succeeded = yes; then
25345
25346 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
25347 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
25348
25349 else
25350
25351 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
25352echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
25353 { (exit 1); exit 1; }; }
25354
25355
25356 fi
25357
25358
25359 succeeded=no
25360
25361 if test -z "$PKG_CONFIG"; then
25362 # Extract the first word of "pkg-config", so it can be a program name with args.
25363set dummy pkg-config; ac_word=$2
25364echo "$as_me:$LINENO: checking for $ac_word" >&5
25365echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25366if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25367 echo $ECHO_N "(cached) $ECHO_C" >&6
25368else
25369 case $PKG_CONFIG in
25370 [\\/]* | ?:[\\/]*)
25371 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25372 ;;
25373 *)
25374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25375for as_dir in $PATH
25376do
25377 IFS=$as_save_IFS
25378 test -z "$as_dir" && as_dir=.
25379 for ac_exec_ext in '' $ac_executable_extensions; do
25380 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25381 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25383 break 2
25384 fi
25385done
25386done
25387
25388 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25389 ;;
25390esac
25391fi
25392PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25393
25394if test -n "$PKG_CONFIG"; then
25395 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25396echo "${ECHO_T}$PKG_CONFIG" >&6
25397else
25398 echo "$as_me:$LINENO: result: no" >&5
25399echo "${ECHO_T}no" >&6
25400fi
25401
25402 fi
25403
25404 if test "$PKG_CONFIG" = "no" ; then
25405 echo "*** The pkg-config script could not be found. Make sure it is"
25406 echo "*** in your path, or set the PKG_CONFIG environment variable"
25407 echo "*** to the full path to pkg-config."
25408 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25409 else
25410 PKG_CONFIG_MIN_VERSION=0.9.0
25411 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25412 echo "$as_me:$LINENO: checking for pangoft2" >&5
25413echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
25414
25415 if $PKG_CONFIG --exists "pangoft2" ; then
25416 echo "$as_me:$LINENO: result: yes" >&5
25417echo "${ECHO_T}yes" >&6
25418 succeeded=yes
25419
25420 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
25421echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
25422 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
25423 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
25424echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
25425
25426 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
25427echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
25428 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
25429 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
25430echo "${ECHO_T}$PANGOFT2_LIBS" >&6
25431 else
25432 PANGOFT2_CFLAGS=""
25433 PANGOFT2_LIBS=""
25434 ## If we have a custom action on failure, don't print errors, but
25435 ## do set a variable so people can do so.
25436 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
25437
25438 fi
25439
25440
25441
25442 else
25443 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25444 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25445 fi
25446 fi
25447
25448 if test $succeeded = yes; then
25449
25450 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
25451 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
25452
25453 else
25454
25455 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
25456echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
25457 wxUSE_PRINTING_ARCHITECTURE="no"
25458
25459
25460 fi
25461
25462
25463 succeeded=no
25464
25465 if test -z "$PKG_CONFIG"; then
25466 # Extract the first word of "pkg-config", so it can be a program name with args.
25467set dummy pkg-config; ac_word=$2
25468echo "$as_me:$LINENO: checking for $ac_word" >&5
25469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25470if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25471 echo $ECHO_N "(cached) $ECHO_C" >&6
25472else
25473 case $PKG_CONFIG in
25474 [\\/]* | ?:[\\/]*)
25475 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25476 ;;
25477 *)
25478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25479for as_dir in $PATH
25480do
25481 IFS=$as_save_IFS
25482 test -z "$as_dir" && as_dir=.
25483 for ac_exec_ext in '' $ac_executable_extensions; do
25484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25485 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25487 break 2
25488 fi
25489done
25490done
25491
25492 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25493 ;;
25494esac
25495fi
25496PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25497
25498if test -n "$PKG_CONFIG"; then
25499 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25500echo "${ECHO_T}$PKG_CONFIG" >&6
25501else
25502 echo "$as_me:$LINENO: result: no" >&5
25503echo "${ECHO_T}no" >&6
25504fi
25505
25506 fi
25507
25508 if test "$PKG_CONFIG" = "no" ; then
25509 echo "*** The pkg-config script could not be found. Make sure it is"
25510 echo "*** in your path, or set the PKG_CONFIG environment variable"
25511 echo "*** to the full path to pkg-config."
25512 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25513 else
25514 PKG_CONFIG_MIN_VERSION=0.9.0
25515 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25516 echo "$as_me:$LINENO: checking for pangoxft" >&5
25517echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
25518
25519 if $PKG_CONFIG --exists "pangoxft" ; then
25520 echo "$as_me:$LINENO: result: yes" >&5
25521echo "${ECHO_T}yes" >&6
25522 succeeded=yes
25523
25524 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
25525echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
25526 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
25527 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
25528echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
25529
25530 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
25531echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
25532 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
25533 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
25534echo "${ECHO_T}$PANGOXFT_LIBS" >&6
25535 else
25536 PANGOXFT_CFLAGS=""
25537 PANGOXFT_LIBS=""
25538 ## If we have a custom action on failure, don't print errors, but
25539 ## do set a variable so people can do so.
25540 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
25541
25542 fi
25543
25544
25545
25546 else
25547 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25548 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25549 fi
25550 fi
25551
25552 if test $succeeded = yes; then
25553
25554 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
25555 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
25556
25557 else
25558
25559 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
25560echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
25561
25562
25563 fi
25564
304205f1
VS
25565 save_CFLAGS="$CFLAGS"
25566 save_LIBS="$LIBS"
25567 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
25568 LIBS="$LIBS $PANGOX_LIBS"
25569
25570for ac_func in pango_font_family_is_monospace
25571do
25572as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25573echo "$as_me:$LINENO: checking for $ac_func" >&5
25574echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25575if eval "test \"\${$as_ac_var+set}\" = set"; then
25576 echo $ECHO_N "(cached) $ECHO_C" >&6
25577else
25578 cat >conftest.$ac_ext <<_ACEOF
25579/* confdefs.h. */
25580_ACEOF
25581cat confdefs.h >>conftest.$ac_ext
25582cat >>conftest.$ac_ext <<_ACEOF
25583/* end confdefs.h. */
25584/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25586#define $ac_func innocuous_$ac_func
25587
25588/* System header to define __stub macros and hopefully few prototypes,
25589 which can conflict with char $ac_func (); below.
25590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25591 <limits.h> exists even on freestanding compilers. */
25592
25593#ifdef __STDC__
25594# include <limits.h>
25595#else
25596# include <assert.h>
25597#endif
25598
25599#undef $ac_func
25600
25601/* Override any gcc2 internal prototype to avoid an error. */
25602#ifdef __cplusplus
25603extern "C"
25604{
25605#endif
25606/* We use char because int might match the return type of a gcc2
25607 builtin and then its argument prototype would still apply. */
25608char $ac_func ();
25609/* The GNU C library defines this for functions which it implements
25610 to always fail with ENOSYS. Some functions are actually named
25611 something starting with __ and the normal name is an alias. */
25612#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25613choke me
25614#else
25615char (*f) () = $ac_func;
25616#endif
25617#ifdef __cplusplus
25618}
25619#endif
25620
25621int
25622main ()
25623{
25624return f != $ac_func;
25625 ;
25626 return 0;
25627}
25628_ACEOF
25629rm -f conftest.$ac_objext conftest$ac_exeext
25630if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25631 (eval $ac_link) 2>conftest.er1
25632 ac_status=$?
25633 grep -v '^ *+' conftest.er1 >conftest.err
25634 rm -f conftest.er1
25635 cat conftest.err >&5
25636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25637 (exit $ac_status); } &&
ea7db9ff
DE
25638 { ac_try='test -z "$ac_c_werror_flag"
25639 || test ! -s conftest.err'
304205f1
VS
25640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25641 (eval $ac_try) 2>&5
25642 ac_status=$?
25643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25644 (exit $ac_status); }; } &&
25645 { ac_try='test -s conftest$ac_exeext'
25646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25647 (eval $ac_try) 2>&5
25648 ac_status=$?
25649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25650 (exit $ac_status); }; }; then
25651 eval "$as_ac_var=yes"
25652else
25653 echo "$as_me: failed program was:" >&5
25654sed 's/^/| /' conftest.$ac_ext >&5
25655
25656eval "$as_ac_var=no"
25657fi
25658rm -f conftest.err conftest.$ac_objext \
25659 conftest$ac_exeext conftest.$ac_ext
25660fi
25661echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25662echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25663if test `eval echo '${'$as_ac_var'}'` = yes; then
25664 cat >>confdefs.h <<_ACEOF
25665#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25666_ACEOF
25667
25668fi
25669done
25670
25671 CFLAGS="$save_CFLAGS"
25672 LIBS="$save_LIBS"
a848cd7e
SC
25673 fi
25674
25675 wxUSE_UNIVERSAL="yes"
25676
25677 if test "$wxUSE_NANOX" = "yes"; then
25678 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
25679 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"
25680 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
25681 else
25682 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
25683 fi
25684
25685 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
25686 TOOLKIT=X11
25687 GUIDIST=X11_DIST
25688 fi
25689
25690 if test "$wxUSE_MOTIF" = 1; then
74b84332
VS
25691 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
25692echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 25693
74b84332
VS
25694ac_find_includes=
25695for ac_dir in $SEARCH_INCLUDE /usr/include;
25696 do
25697 if test -f "$ac_dir/Xm/Xm.h"; then
25698 ac_find_includes=$ac_dir
25699 break
25700 fi
25701 done
a848cd7e 25702
74b84332
VS
25703 if test "$ac_find_includes" != "" ; then
25704 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
25705echo "${ECHO_T}found in $ac_find_includes" >&6
25706
25707 if test "x$ac_find_includes" = "x/usr/include"; then
25708 ac_path_to_include=""
25709 else
25710 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
25711 result=$?
25712 if test $result = 0; then
25713 ac_path_to_include=""
25714 else
25715 ac_path_to_include=" -I$ac_find_includes"
25716 fi
a848cd7e
SC
25717 fi
25718
74b84332
VS
25719 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
25720 else
25721 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
25722/* confdefs.h. */
25723_ACEOF
25724cat confdefs.h >>conftest.$ac_ext
25725cat >>conftest.$ac_ext <<_ACEOF
25726/* end confdefs.h. */
25727
74b84332
VS
25728 #include <Xm/Xm.h>
25729
a848cd7e
SC
25730int
25731main ()
25732{
25733
74b84332
VS
25734 int version;
25735 version = xmUseVersion;
25736
a848cd7e
SC
25737 ;
25738 return 0;
25739}
25740_ACEOF
74b84332
VS
25741rm -f conftest.$ac_objext
25742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25743 (eval $ac_compile) 2>conftest.er1
a848cd7e 25744 ac_status=$?
ac1cb8d3
VS
25745 grep -v '^ *+' conftest.er1 >conftest.err
25746 rm -f conftest.er1
25747 cat conftest.err >&5
a848cd7e
SC
25748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25749 (exit $ac_status); } &&
ea7db9ff
DE
25750 { ac_try='test -z "$ac_c_werror_flag"
25751 || test ! -s conftest.err'
ac1cb8d3
VS
25752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25753 (eval $ac_try) 2>&5
25754 ac_status=$?
25755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25756 (exit $ac_status); }; } &&
74b84332 25757 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25759 (eval $ac_try) 2>&5
25760 ac_status=$?
25761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25762 (exit $ac_status); }; }; then
74b84332
VS
25763
25764 echo "$as_me:$LINENO: result: found in default search path" >&5
25765echo "${ECHO_T}found in default search path" >&6
25766 COMPILED_X_PROGRAM=1
25767
a848cd7e
SC
25768else
25769 echo "$as_me: failed program was:" >&5
25770sed 's/^/| /' conftest.$ac_ext >&5
25771
a848cd7e 25772
74b84332
VS
25773 echo "$as_me:$LINENO: result: no" >&5
25774echo "${ECHO_T}no" >&6
25775 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
25776echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
25777 { (exit 1); exit 1; }; }
a848cd7e 25778
a848cd7e 25779
a848cd7e 25780fi
74b84332
VS
25781rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25782 fi
25783
25784 if test "$COMPILED_X_PROGRAM" = 0; then
25785 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
25786echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
25787
25788ac_find_libraries=
25789for ac_dir in $SEARCH_LIB /usr/lib;
25790 do
25791 for ac_extension in a so sl dylib; do
25792 if test -f "$ac_dir/libXm.$ac_extension"; then
25793 ac_find_libraries=$ac_dir
25794 break 2
a848cd7e 25795 fi
74b84332
VS
25796 done
25797 done
a848cd7e 25798
74b84332
VS
25799 if test "$ac_find_libraries" != "" ; then
25800 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
25801echo "${ECHO_T}found at $ac_find_libraries" >&6
a848cd7e 25802
74b84332
VS
25803
25804 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
25805 result=$?
25806 if test $result = 0; then
25807 ac_path_to_link=""
a848cd7e 25808 else
74b84332
VS
25809 ac_path_to_link=" -L$ac_find_libraries"
25810 fi
25811
25812 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
25813 else
25814 save_CFLAGS=$CFLAGS
25815 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25816
25817 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
25818/* confdefs.h. */
25819_ACEOF
25820cat confdefs.h >>conftest.$ac_ext
25821cat >>conftest.$ac_ext <<_ACEOF
25822/* end confdefs.h. */
25823
74b84332
VS
25824 #include <Xm/Xm.h>
25825
a848cd7e
SC
25826int
25827main ()
25828{
74b84332
VS
25829
25830 int version;
25831 version = xmUseVersion;
25832
a848cd7e
SC
25833 ;
25834 return 0;
25835}
25836_ACEOF
74b84332
VS
25837rm -f conftest.$ac_objext
25838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25839 (eval $ac_compile) 2>conftest.er1
a848cd7e 25840 ac_status=$?
ac1cb8d3
VS
25841 grep -v '^ *+' conftest.er1 >conftest.err
25842 rm -f conftest.er1
25843 cat conftest.err >&5
a848cd7e
SC
25844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25845 (exit $ac_status); } &&
ea7db9ff
DE
25846 { ac_try='test -z "$ac_c_werror_flag"
25847 || test ! -s conftest.err'
ac1cb8d3
VS
25848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25849 (eval $ac_try) 2>&5
25850 ac_status=$?
25851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25852 (exit $ac_status); }; } &&
74b84332 25853 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25855 (eval $ac_try) 2>&5
25856 ac_status=$?
25857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25858 (exit $ac_status); }; }; then
74b84332
VS
25859
25860 echo "$as_me:$LINENO: result: found in default search path" >&5
25861echo "${ECHO_T}found in default search path" >&6
25862 COMPILED_X_PROGRAM=1
25863
a848cd7e
SC
25864else
25865 echo "$as_me: failed program was:" >&5
25866sed 's/^/| /' conftest.$ac_ext >&5
25867
74b84332
VS
25868
25869 echo "$as_me:$LINENO: result: no" >&5
25870echo "${ECHO_T}no" >&6
25871 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
25872echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
25873 { (exit 1); exit 1; }; }
25874
25875
25876fi
25877rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25878
25879 CFLAGS=$save_CFLAGS
25880 fi
25881 fi
25882
25883 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
25884echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
25885 libp_link=""
25886 libsm_ice_link=""
25887 libs_found=0
25888 for libp in "" " -lXp"; do
25889 if test "$libs_found" = "0"; then
25890 for libsm_ice in "" " -lSM -lICE"; do
25891 if test "$libs_found" = "0"; then
25892 save_LIBS="$LIBS"
25893 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
25894 save_CFLAGS=$CFLAGS
25895 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25896
25897 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
25898/* confdefs.h. */
25899_ACEOF
25900cat confdefs.h >>conftest.$ac_ext
25901cat >>conftest.$ac_ext <<_ACEOF
25902/* end confdefs.h. */
25903
74b84332
VS
25904 #include <Xm/Xm.h>
25905 #include <Xm/List.h>
25906
a848cd7e
SC
25907int
25908main ()
25909{
74b84332
VS
25910
25911 XmString string = NULL;
25912 Widget w = NULL;
25913 int position = 0;
25914 XmListAddItem(w, string, position);
25915
a848cd7e
SC
25916 ;
25917 return 0;
25918}
25919_ACEOF
25920rm -f conftest.$ac_objext conftest$ac_exeext
25921if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25922 (eval $ac_link) 2>conftest.er1
a848cd7e 25923 ac_status=$?
ac1cb8d3
VS
25924 grep -v '^ *+' conftest.er1 >conftest.err
25925 rm -f conftest.er1
25926 cat conftest.err >&5
a848cd7e
SC
25927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25928 (exit $ac_status); } &&
ea7db9ff
DE
25929 { ac_try='test -z "$ac_c_werror_flag"
25930 || test ! -s conftest.err'
ac1cb8d3
VS
25931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25932 (eval $ac_try) 2>&5
25933 ac_status=$?
25934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25935 (exit $ac_status); }; } &&
25936 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25938 (eval $ac_try) 2>&5
25939 ac_status=$?
25940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25941 (exit $ac_status); }; }; then
25942
25943 libp_link="$libp"
25944 libsm_ice_link="$libsm_ice"
25945 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
25946echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
25947 libs_found=1
25948
25949else
25950 echo "$as_me: failed program was:" >&5
25951sed 's/^/| /' conftest.$ac_ext >&5
25952
25953
25954
25955fi
ac1cb8d3
VS
25956rm -f conftest.err conftest.$ac_objext \
25957 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25958
25959 LIBS="$save_LIBS"
25960 CFLAGS=$save_CFLAGS
25961 fi
25962 done
25963 fi
25964 done
25965
25966 if test "$libs_found" = "0"; then
25967 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
25968echo "${ECHO_T}can't find the right libraries" >&6
25969 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
25970echo "$as_me: error: can't link a simple motif program" >&2;}
25971 { (exit 1); exit 1; }; }
25972 fi
25973
25974 save_CFLAGS=$CFLAGS
25975 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25976 echo "$as_me:$LINENO: checking for Motif 2" >&5
25977echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
25978 cat >conftest.$ac_ext <<_ACEOF
25979/* confdefs.h. */
25980_ACEOF
25981cat confdefs.h >>conftest.$ac_ext
25982cat >>conftest.$ac_ext <<_ACEOF
25983/* end confdefs.h. */
25984
25985 #include <Xm/Xm.h>
25986
25987int
25988main ()
25989{
25990
25991 #if XmVersion < 2000
25992 #error "Not Motif 2"
25993 #endif
25994
25995 ;
25996 return 0;
25997}
25998_ACEOF
25999rm -f conftest.$ac_objext
26000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26001 (eval $ac_compile) 2>conftest.er1
a848cd7e 26002 ac_status=$?
ac1cb8d3
VS
26003 grep -v '^ *+' conftest.er1 >conftest.err
26004 rm -f conftest.er1
26005 cat conftest.err >&5
a848cd7e
SC
26006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26007 (exit $ac_status); } &&
ea7db9ff
DE
26008 { ac_try='test -z "$ac_c_werror_flag"
26009 || test ! -s conftest.err'
ac1cb8d3
VS
26010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26011 (eval $ac_try) 2>&5
26012 ac_status=$?
26013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26014 (exit $ac_status); }; } &&
26015 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26017 (eval $ac_try) 2>&5
26018 ac_status=$?
26019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26020 (exit $ac_status); }; }; then
26021
26022 cat >>confdefs.h <<\_ACEOF
26023#define __WXMOTIF20__ 1
26024_ACEOF
26025
26026 echo "$as_me:$LINENO: result: found" >&5
26027echo "${ECHO_T}found" >&6
26028
26029else
26030 echo "$as_me: failed program was:" >&5
26031sed 's/^/| /' conftest.$ac_ext >&5
26032
26033
26034 cat >>confdefs.h <<\_ACEOF
26035#define __WXMOTIF20__ 0
26036_ACEOF
26037
26038 echo "$as_me:$LINENO: result: not found" >&5
26039echo "${ECHO_T}not found" >&6
26040
26041fi
ac1cb8d3 26042rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26043 CFLAGS=$save_CFLAGS
26044
26045 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
26046 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
26047 TOOLKIT=MOTIF
26048 GUIDIST=MOTIF_DIST
26049 fi
26050
74b84332 26051 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
26052 if test "$wxUSE_LIBXPM" = "sys"; then
26053 echo "$as_me:$LINENO: checking for Xpm library" >&5
26054echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
26055
26056ac_find_libraries=
26057for ac_dir in $SEARCH_LIB /usr/lib;
26058 do
26059 for ac_extension in a so sl dylib; do
26060 if test -f "$ac_dir/libXpm.$ac_extension"; then
26061 ac_find_libraries=$ac_dir
26062 break 2
26063 fi
26064 done
26065 done
26066
26067 if test "$ac_find_libraries" != "" ; then
26068
26069 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26070 result=$?
26071 if test $result = 0; then
26072 ac_path_to_link=""
26073 else
26074 ac_path_to_link=" -L$ac_find_libraries"
26075 fi
26076
26077 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26078 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26079echo "${ECHO_T}found at $ac_find_libraries" >&6
26080
26081 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
26082echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
26083if test "${wx_cv_x11_xpm_h+set}" = set; then
26084 echo $ECHO_N "(cached) $ECHO_C" >&6
26085else
26086
26087 save_CFLAGS=$CFLAGS
26088 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26089
26090 cat >conftest.$ac_ext <<_ACEOF
26091/* confdefs.h. */
26092_ACEOF
26093cat confdefs.h >>conftest.$ac_ext
26094cat >>conftest.$ac_ext <<_ACEOF
26095/* end confdefs.h. */
26096
26097 #include <X11/xpm.h>
26098
26099int
26100main ()
26101{
26102
26103 int version;
26104 version = XpmLibraryVersion();
26105
26106 ;
26107 return 0;
26108}
26109_ACEOF
26110rm -f conftest.$ac_objext
26111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26112 (eval $ac_compile) 2>conftest.er1
a848cd7e 26113 ac_status=$?
ac1cb8d3
VS
26114 grep -v '^ *+' conftest.er1 >conftest.err
26115 rm -f conftest.er1
26116 cat conftest.err >&5
a848cd7e
SC
26117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26118 (exit $ac_status); } &&
ea7db9ff
DE
26119 { ac_try='test -z "$ac_c_werror_flag"
26120 || test ! -s conftest.err'
ac1cb8d3
VS
26121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26122 (eval $ac_try) 2>&5
26123 ac_status=$?
26124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26125 (exit $ac_status); }; } &&
26126 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26128 (eval $ac_try) 2>&5
26129 ac_status=$?
26130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26131 (exit $ac_status); }; }; then
26132 wx_cv_x11_xpm_h=yes
26133else
26134 echo "$as_me: failed program was:" >&5
26135sed 's/^/| /' conftest.$ac_ext >&5
26136
26137wx_cv_x11_xpm_h=no
26138
26139fi
ac1cb8d3 26140rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26141
26142 CFLAGS=$save_CFLAGS
26143
26144
26145fi
26146echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
26147echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
26148
26149 if test $wx_cv_x11_xpm_h = "yes"; then
26150 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
26151 cat >>confdefs.h <<\_ACEOF
26152#define wxHAVE_LIB_XPM 1
26153_ACEOF
26154
26155 else
26156 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
26157echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
26158 fi
26159 fi
26160
26161 fi
26162
26163 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
26164echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
26165if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
26166 echo $ECHO_N "(cached) $ECHO_C" >&6
26167else
26168 ac_check_lib_save_LIBS=$LIBS
26169LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
26170cat >conftest.$ac_ext <<_ACEOF
26171/* confdefs.h. */
26172_ACEOF
26173cat confdefs.h >>conftest.$ac_ext
26174cat >>conftest.$ac_ext <<_ACEOF
26175/* end confdefs.h. */
26176
26177/* Override any gcc2 internal prototype to avoid an error. */
26178#ifdef __cplusplus
26179extern "C"
26180#endif
26181/* We use char because int might match the return type of a gcc2
26182 builtin and then its argument prototype would still apply. */
26183char XShapeQueryExtension ();
26184int
26185main ()
26186{
26187XShapeQueryExtension ();
26188 ;
26189 return 0;
26190}
26191_ACEOF
26192rm -f conftest.$ac_objext conftest$ac_exeext
26193if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26194 (eval $ac_link) 2>conftest.er1
a848cd7e 26195 ac_status=$?
ac1cb8d3
VS
26196 grep -v '^ *+' conftest.er1 >conftest.err
26197 rm -f conftest.er1
26198 cat conftest.err >&5
a848cd7e
SC
26199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26200 (exit $ac_status); } &&
ea7db9ff
DE
26201 { ac_try='test -z "$ac_c_werror_flag"
26202 || test ! -s conftest.err'
ac1cb8d3
VS
26203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26204 (eval $ac_try) 2>&5
26205 ac_status=$?
26206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26207 (exit $ac_status); }; } &&
26208 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26210 (eval $ac_try) 2>&5
26211 ac_status=$?
26212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26213 (exit $ac_status); }; }; then
26214 ac_cv_lib_Xext_XShapeQueryExtension=yes
26215else
26216 echo "$as_me: failed program was:" >&5
26217sed 's/^/| /' conftest.$ac_ext >&5
26218
26219ac_cv_lib_Xext_XShapeQueryExtension=no
26220fi
ac1cb8d3
VS
26221rm -f conftest.err conftest.$ac_objext \
26222 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26223LIBS=$ac_check_lib_save_LIBS
26224fi
26225echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
26226echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
26227if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
26228
26229 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
26230 wxHAVE_XEXT_LIB=1
26231
26232fi
26233
26234
26235 if test "$wxHAVE_XEXT_LIB" = 1; then
26236 save_CFLAGS="$CFLAGS"
26237 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26238
26239 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
26240echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
26241 cat >conftest.$ac_ext <<_ACEOF
26242/* confdefs.h. */
26243_ACEOF
26244cat confdefs.h >>conftest.$ac_ext
26245cat >>conftest.$ac_ext <<_ACEOF
26246/* end confdefs.h. */
26247
26248 #include <X11/Xlib.h>
26249 #include <X11/extensions/shape.h>
26250
26251int
26252main ()
26253{
26254
26255 int dummy1, dummy2;
26256 XShapeQueryExtension((Display*)NULL,
26257 (int*)NULL, (int*)NULL);
26258
26259 ;
26260 return 0;
26261}
26262_ACEOF
26263rm -f conftest.$ac_objext
26264if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26265 (eval $ac_compile) 2>conftest.er1
a848cd7e 26266 ac_status=$?
ac1cb8d3
VS
26267 grep -v '^ *+' conftest.er1 >conftest.err
26268 rm -f conftest.er1
26269 cat conftest.err >&5
a848cd7e
SC
26270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26271 (exit $ac_status); } &&
ea7db9ff
DE
26272 { ac_try='test -z "$ac_c_werror_flag"
26273 || test ! -s conftest.err'
ac1cb8d3
VS
26274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26275 (eval $ac_try) 2>&5
26276 ac_status=$?
26277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26278 (exit $ac_status); }; } &&
26279 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26281 (eval $ac_try) 2>&5
26282 ac_status=$?
26283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26284 (exit $ac_status); }; }; then
26285
26286 cat >>confdefs.h <<\_ACEOF
26287#define HAVE_XSHAPE 1
26288_ACEOF
26289
26290 echo "$as_me:$LINENO: result: found" >&5
26291echo "${ECHO_T}found" >&6
26292
26293else
26294 echo "$as_me: failed program was:" >&5
26295sed 's/^/| /' conftest.$ac_ext >&5
26296
26297
26298 echo "$as_me:$LINENO: result: not found" >&5
26299echo "${ECHO_T}not found" >&6
26300
26301fi
ac1cb8d3 26302rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26303 CFLAGS="$save_CFLAGS"
26304
26305 fi
26306 fi
26307
26308 if test "$wxUSE_MAC" = 1; then
26309 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
26310echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
26311 if test "$GCC" = yes; then
26312 echo "$as_me:$LINENO: result: gcc" >&5
26313echo "${ECHO_T}gcc" >&6
26314 CPPFLAGS_PASCAL="-fpascal-strings"
26315 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
26316 echo "$as_me:$LINENO: result: xlc" >&5
26317echo "${ECHO_T}xlc" >&6
26318 CPPFLAGS_PASCAL="-qmacpstr"
26319 else
26320 echo "$as_me:$LINENO: result: none" >&5
26321echo "${ECHO_T}none" >&6
26322 fi
26323
26324 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
26325
26326 TOOLKIT_VPATH="\${top_srcdir}/src/mac/carbon${PATH_IFS}\${top_srcdir}/src/mac/carbon/morefilex"
26327 TOOLKIT=MAC
26328 GUIDIST=MACX_DIST
26329 WXBASEPORT="_carbon"
26330 fi
26331
26332 if test "$wxUSE_COCOA" = 1; then
26333 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
26334 TOOLKIT=COCOA
26335 GUIDIST=COCOA_DIST
26336 fi
26337
26338 if test "$wxUSE_PM" = 1; then
26339 TOOLKIT=PM
de59c161
RD
26340 GUIDIST=PM_DIST
26341 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
26342echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
26343if test "${wx_cv_spbcdata+set}" = set; then
26344 echo $ECHO_N "(cached) $ECHO_C" >&6
26345else
26346
26347 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
26348/* confdefs.h. */
26349_ACEOF
26350cat confdefs.h >>conftest.$ac_ext
26351cat >>conftest.$ac_ext <<_ACEOF
26352/* end confdefs.h. */
26353
26354 #define INCL_PM
26355 #include <os2.h>
26356
26357int
26358main ()
26359{
26360
26361 SPBCDATA test;
26362
26363 ;
26364 return 0;
26365}
26366_ACEOF
26367rm -f conftest.$ac_objext
26368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26369 (eval $ac_compile) 2>conftest.er1
de59c161 26370 ac_status=$?
ac1cb8d3
VS
26371 grep -v '^ *+' conftest.er1 >conftest.err
26372 rm -f conftest.er1
26373 cat conftest.err >&5
de59c161
RD
26374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26375 (exit $ac_status); } &&
ea7db9ff
DE
26376 { ac_try='test -z "$ac_c_werror_flag"
26377 || test ! -s conftest.err'
ac1cb8d3
VS
26378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26379 (eval $ac_try) 2>&5
26380 ac_status=$?
26381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26382 (exit $ac_status); }; } &&
26383 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
26384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26385 (eval $ac_try) 2>&5
26386 ac_status=$?
26387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26388 (exit $ac_status); }; }; then
26389 wx_cv_spbcdata=yes
26390else
26391 echo "$as_me: failed program was:" >&5
26392sed 's/^/| /' conftest.$ac_ext >&5
26393
26394wx_cv_spbcdata=no
26395
26396fi
ac1cb8d3 26397rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
26398
26399
26400fi
26401echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
26402echo "${ECHO_T}$wx_cv_spbcdata" >&6
26403
26404 if test $wx_cv_spbcdata = "yes"; then
26405 cat >>confdefs.h <<\_ACEOF
26406#define HAVE_SPBCDATA 1
26407_ACEOF
26408
26409 fi
a848cd7e
SC
26410 fi
26411
26412 if test "$TOOLKIT" = "PM" ; then
26413 TOOLKIT_DIR="os2"
26414 else
26415 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
26416 fi
26417
26418 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
26419
26420 if test "$wxUSE_UNIVERSAL" = "yes"; then
26421 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
26422
26423 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
26424 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
26425
26426 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
26427 if test "$wxUSE_X11" = 1; then
26428 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
26429 else
26430 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
26431 fi
26432 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
26433 WIDGET_SET=univ
26434 else
26435 ALL_OBJECTS="\$(GUIOBJS)"
26436 ALL_SOURCES="\$(ALL_SOURCES)"
26437 ALL_HEADERS="\$(ALL_HEADERS)"
26438 fi
26439
26440 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
26441
26442 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
26443 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
26444 fi
26445
26446 if test "$wxUSE_HTML" = "yes"; then
26447 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
26448 fi
26449
26450 if test "$wxUSE_LIBJPEG" = "builtin" ; then
26451 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
26452 fi
26453 if test "$wxUSE_LIBTIFF" = "builtin" ; then
26454 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
26455 fi
26456 if test "$wxUSE_LIBPNG" = "builtin" ; then
26457 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
26458 fi
26459
26460 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
26461 DISTDIR="wx\$(TOOLKIT)"
26462else
26463 USE_GUI=0
26464
26465 TOOLKIT_DIR="base"
26466
26467 if test "$USE_WIN32" = 1 ; then
26468 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
26469 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
26470
26471 TOOLKIT="MSW"
26472 else
26473 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
26474 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
26475 fi
26476
26477 ALL_SOURCES="\$(ALL_SOURCES)"
26478 ALL_HEADERS="\$(ALL_HEADERS)"
26479
26480 PORT_FILES="\${top_srcdir}/src/files.lst"
26481
26482 GUIDIST="BASE_DIST"
26483 DISTDIR="wxBase"
26484fi
26485
26486
26487
26488
26489IODBC_C_SRC=""
26490
26491
26492if test "$TOOLKIT" != "MSW" ; then
26493
26494 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
26495
26496 if test "${ac_cv_header_sql_h+set}" = set; then
26497 echo "$as_me:$LINENO: checking for sql.h" >&5
26498echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26499if test "${ac_cv_header_sql_h+set}" = set; then
26500 echo $ECHO_N "(cached) $ECHO_C" >&6
26501fi
26502echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26503echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26504else
26505 # Is the header compilable?
26506echo "$as_me:$LINENO: checking sql.h usability" >&5
26507echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
26508cat >conftest.$ac_ext <<_ACEOF
26509/* confdefs.h. */
26510_ACEOF
26511cat confdefs.h >>conftest.$ac_ext
26512cat >>conftest.$ac_ext <<_ACEOF
26513/* end confdefs.h. */
26514$ac_includes_default
26515#include <sql.h>
26516_ACEOF
26517rm -f conftest.$ac_objext
26518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26519 (eval $ac_compile) 2>conftest.er1
a848cd7e 26520 ac_status=$?
ac1cb8d3
VS
26521 grep -v '^ *+' conftest.er1 >conftest.err
26522 rm -f conftest.er1
26523 cat conftest.err >&5
a848cd7e
SC
26524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26525 (exit $ac_status); } &&
ea7db9ff
DE
26526 { ac_try='test -z "$ac_c_werror_flag"
26527 || test ! -s conftest.err'
ac1cb8d3
VS
26528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26529 (eval $ac_try) 2>&5
26530 ac_status=$?
26531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26532 (exit $ac_status); }; } &&
26533 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26535 (eval $ac_try) 2>&5
26536 ac_status=$?
26537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26538 (exit $ac_status); }; }; then
26539 ac_header_compiler=yes
26540else
26541 echo "$as_me: failed program was:" >&5
26542sed 's/^/| /' conftest.$ac_ext >&5
26543
26544ac_header_compiler=no
26545fi
ac1cb8d3 26546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26547echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26548echo "${ECHO_T}$ac_header_compiler" >&6
26549
26550# Is the header present?
26551echo "$as_me:$LINENO: checking sql.h presence" >&5
26552echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
26553cat >conftest.$ac_ext <<_ACEOF
26554/* confdefs.h. */
26555_ACEOF
26556cat confdefs.h >>conftest.$ac_ext
26557cat >>conftest.$ac_ext <<_ACEOF
26558/* end confdefs.h. */
26559#include <sql.h>
26560_ACEOF
26561if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26562 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26563 ac_status=$?
26564 grep -v '^ *+' conftest.er1 >conftest.err
26565 rm -f conftest.er1
26566 cat conftest.err >&5
26567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26568 (exit $ac_status); } >/dev/null; then
26569 if test -s conftest.err; then
26570 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 26571 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
26572 else
26573 ac_cpp_err=
26574 fi
26575else
26576 ac_cpp_err=yes
26577fi
26578if test -z "$ac_cpp_err"; then
26579 ac_header_preproc=yes
26580else
26581 echo "$as_me: failed program was:" >&5
26582sed 's/^/| /' conftest.$ac_ext >&5
26583
26584 ac_header_preproc=no
26585fi
26586rm -f conftest.err conftest.$ac_ext
26587echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26588echo "${ECHO_T}$ac_header_preproc" >&6
26589
26590# So? What about this header?
ac1cb8d3
VS
26591case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26592 yes:no: )
a848cd7e
SC
26593 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
26594echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26595 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
26596echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
26597 ac_header_preproc=yes
a848cd7e 26598 ;;
ac1cb8d3 26599 no:yes:* )
a848cd7e
SC
26600 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
26601echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26602 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
26603echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
26604 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
26605echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
26606 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
26607echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26608 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
26609echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26610 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
26611echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26612 (
26613 cat <<\_ASBOX
ac1cb8d3
VS
26614## ----------------------------------------- ##
26615## Report this to wx-dev@lists.wxwidgets.org ##
26616## ----------------------------------------- ##
a848cd7e
SC
26617_ASBOX
26618 ) |
26619 sed "s/^/$as_me: WARNING: /" >&2
26620 ;;
26621esac
26622echo "$as_me:$LINENO: checking for sql.h" >&5
26623echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26624if test "${ac_cv_header_sql_h+set}" = set; then
26625 echo $ECHO_N "(cached) $ECHO_C" >&6
26626else
26627 ac_cv_header_sql_h=$ac_header_preproc
26628fi
26629echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26630echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26631
26632fi
26633if test $ac_cv_header_sql_h = yes; then
26634 found_sql_h=1
26635fi
26636
26637
26638 if test "x$found_sql_h" = "x1" ; then
26639 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
26640echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
26641if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
26642 echo $ECHO_N "(cached) $ECHO_C" >&6
26643else
26644 ac_check_lib_save_LIBS=$LIBS
26645LIBS="-liodbc $LIBS"
26646cat >conftest.$ac_ext <<_ACEOF
26647/* confdefs.h. */
26648_ACEOF
26649cat confdefs.h >>conftest.$ac_ext
26650cat >>conftest.$ac_ext <<_ACEOF
26651/* end confdefs.h. */
26652
26653/* Override any gcc2 internal prototype to avoid an error. */
26654#ifdef __cplusplus
26655extern "C"
26656#endif
26657/* We use char because int might match the return type of a gcc2
26658 builtin and then its argument prototype would still apply. */
26659char SQLAllocEnv ();
26660int
26661main ()
26662{
26663SQLAllocEnv ();
26664 ;
26665 return 0;
26666}
26667_ACEOF
26668rm -f conftest.$ac_objext conftest$ac_exeext
26669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26670 (eval $ac_link) 2>conftest.er1
a848cd7e 26671 ac_status=$?
ac1cb8d3
VS
26672 grep -v '^ *+' conftest.er1 >conftest.err
26673 rm -f conftest.er1
26674 cat conftest.err >&5
a848cd7e
SC
26675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26676 (exit $ac_status); } &&
ea7db9ff
DE
26677 { ac_try='test -z "$ac_c_werror_flag"
26678 || test ! -s conftest.err'
ac1cb8d3
VS
26679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26680 (eval $ac_try) 2>&5
26681 ac_status=$?
26682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26683 (exit $ac_status); }; } &&
26684 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26686 (eval $ac_try) 2>&5
26687 ac_status=$?
26688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26689 (exit $ac_status); }; }; then
26690 ac_cv_lib_iodbc_SQLAllocEnv=yes
26691else
26692 echo "$as_me: failed program was:" >&5
26693sed 's/^/| /' conftest.$ac_ext >&5
26694
26695ac_cv_lib_iodbc_SQLAllocEnv=no
26696fi
ac1cb8d3
VS
26697rm -f conftest.err conftest.$ac_objext \
26698 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26699LIBS=$ac_check_lib_save_LIBS
26700fi
26701echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
26702echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
26703if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
26704 ODBC_LINK=" -liodbc"
26705else
26706
26707 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
26708echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
26709if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
26710 echo $ECHO_N "(cached) $ECHO_C" >&6
26711else
26712 ac_check_lib_save_LIBS=$LIBS
26713LIBS="-lunixodbc $LIBS"
26714cat >conftest.$ac_ext <<_ACEOF
26715/* confdefs.h. */
26716_ACEOF
26717cat confdefs.h >>conftest.$ac_ext
26718cat >>conftest.$ac_ext <<_ACEOF
26719/* end confdefs.h. */
26720
26721/* Override any gcc2 internal prototype to avoid an error. */
26722#ifdef __cplusplus
26723extern "C"
26724#endif
26725/* We use char because int might match the return type of a gcc2
26726 builtin and then its argument prototype would still apply. */
26727char SQLAllocEnv ();
26728int
26729main ()
26730{
26731SQLAllocEnv ();
26732 ;
26733 return 0;
26734}
26735_ACEOF
26736rm -f conftest.$ac_objext conftest$ac_exeext
26737if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26738 (eval $ac_link) 2>conftest.er1
a848cd7e 26739 ac_status=$?
ac1cb8d3
VS
26740 grep -v '^ *+' conftest.er1 >conftest.err
26741 rm -f conftest.er1
26742 cat conftest.err >&5
a848cd7e
SC
26743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26744 (exit $ac_status); } &&
ea7db9ff
DE
26745 { ac_try='test -z "$ac_c_werror_flag"
26746 || test ! -s conftest.err'
ac1cb8d3
VS
26747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26748 (eval $ac_try) 2>&5
26749 ac_status=$?
26750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26751 (exit $ac_status); }; } &&
26752 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26754 (eval $ac_try) 2>&5
26755 ac_status=$?
26756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26757 (exit $ac_status); }; }; then
26758 ac_cv_lib_unixodbc_SQLAllocEnv=yes
26759else
26760 echo "$as_me: failed program was:" >&5
26761sed 's/^/| /' conftest.$ac_ext >&5
26762
26763ac_cv_lib_unixodbc_SQLAllocEnv=no
26764fi
ac1cb8d3
VS
26765rm -f conftest.err conftest.$ac_objext \
26766 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26767LIBS=$ac_check_lib_save_LIBS
26768fi
26769echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
26770echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
26771if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
26772 ODBC_LINK=" -lunixodbc"
26773else
26774
26775 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
26776echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
26777if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
26778 echo $ECHO_N "(cached) $ECHO_C" >&6
26779else
26780 ac_check_lib_save_LIBS=$LIBS
26781LIBS="-lodbc $LIBS"
26782cat >conftest.$ac_ext <<_ACEOF
26783/* confdefs.h. */
26784_ACEOF
26785cat confdefs.h >>conftest.$ac_ext
26786cat >>conftest.$ac_ext <<_ACEOF
26787/* end confdefs.h. */
26788
26789/* Override any gcc2 internal prototype to avoid an error. */
26790#ifdef __cplusplus
26791extern "C"
26792#endif
26793/* We use char because int might match the return type of a gcc2
26794 builtin and then its argument prototype would still apply. */
26795char SQLAllocEnv ();
26796int
26797main ()
26798{
26799SQLAllocEnv ();
26800 ;
26801 return 0;
26802}
26803_ACEOF
26804rm -f conftest.$ac_objext conftest$ac_exeext
26805if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26806 (eval $ac_link) 2>conftest.er1
a848cd7e 26807 ac_status=$?
ac1cb8d3
VS
26808 grep -v '^ *+' conftest.er1 >conftest.err
26809 rm -f conftest.er1
26810 cat conftest.err >&5
a848cd7e
SC
26811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26812 (exit $ac_status); } &&
ea7db9ff
DE
26813 { ac_try='test -z "$ac_c_werror_flag"
26814 || test ! -s conftest.err'
ac1cb8d3
VS
26815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26816 (eval $ac_try) 2>&5
26817 ac_status=$?
26818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26819 (exit $ac_status); }; } &&
26820 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26822 (eval $ac_try) 2>&5
26823 ac_status=$?
26824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26825 (exit $ac_status); }; }; then
26826 ac_cv_lib_odbc_SQLAllocEnv=yes
26827else
26828 echo "$as_me: failed program was:" >&5
26829sed 's/^/| /' conftest.$ac_ext >&5
26830
26831ac_cv_lib_odbc_SQLAllocEnv=no
26832fi
ac1cb8d3
VS
26833rm -f conftest.err conftest.$ac_objext \
26834 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26835LIBS=$ac_check_lib_save_LIBS
26836fi
26837echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
26838echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
26839if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
26840 ODBC_LINK=" -lodbc"
26841fi
26842
26843
26844fi
26845
26846
26847fi
26848
26849 fi
26850 if test "x$ODBC_LINK" = "x" ; then
26851 if test "$wxUSE_ODBC" = "sys" ; then
26852 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
26853echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
26854 { (exit 1); exit 1; }; }
26855 else
26856 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
26857echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
26858 wxUSE_ODBC=builtin
26859 fi
26860 else
26861 wxUSE_ODBC=sys
26862 fi
26863 fi
26864 if test "$wxUSE_ODBC" != "no" ; then
26865 cat >>confdefs.h <<\_ACEOF
26866#define wxUSE_ODBC 1
26867_ACEOF
26868
26869 if test "$wxUSE_ODBC" = "builtin" ; then
26870 cat >>confdefs.h <<\_ACEOF
26871#define wxUSE_BUILTIN_IODBC 1
26872_ACEOF
26873
26874 fi
26875 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
26876
26877 WXODBCFLAG="-D_IODBC_"
26878 fi
26879fi
26880
26881if test "$wxUSE_REGEX" = "builtin" ; then
26882 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
26883fi
26884if test "$wxUSE_ZLIB" = "builtin" ; then
26885 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
26886fi
26887
01cb68df 26888
a848cd7e 26889if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 26890 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
26891 echo "$as_me:$LINENO: checking for Xinerama" >&5
26892echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
26893
26894ac_find_libraries=
26895for ac_dir in $SEARCH_LIB /usr/lib;
26896 do
26897 for ac_extension in a so sl dylib; do
26898 if test -f "$ac_dir/libXinerama.$ac_extension"; then
26899 ac_find_libraries=$ac_dir
26900 break 2
26901 fi
26902 done
26903 done
26904
26905 if test "$ac_find_libraries" != "" ; then
26906
26907 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
26908 result=$?
26909 if test $result = 0; then
26910 ac_path_to_link=""
26911 else
26912 ac_path_to_link=" -L$ac_find_libraries"
26913 fi
26914
26915 if test "$ac_path_to_link" != " -L/usr/lib" ; then
26916 LDFLAGS="$LDFLAGS $ac_path_to_link"
26917 fi
26918 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
26919 echo "$as_me:$LINENO: result: yes" >&5
26920echo "${ECHO_T}yes" >&6
26921
26922 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
26923echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
26924
26925ac_find_libraries=
26926for ac_dir in $SEARCH_LIB /usr/lib;
26927 do
26928 for ac_extension in a so sl dylib; do
26929 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
26930 ac_find_libraries=$ac_dir
26931 break 2
26932 fi
26933 done
26934 done
26935
26936 if test "$ac_find_libraries" != "" ; then
26937 echo "$as_me:$LINENO: result: yes" >&5
26938echo "${ECHO_T}yes" >&6
26939
26940for ac_header in X11/extensions/xf86vmode.h
26941do
26942as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26943echo "$as_me:$LINENO: checking for $ac_header" >&5
26944echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26945if eval "test \"\${$as_ac_Header+set}\" = set"; then
26946 echo $ECHO_N "(cached) $ECHO_C" >&6
26947else
26948 cat >conftest.$ac_ext <<_ACEOF
26949/* confdefs.h. */
26950_ACEOF
26951cat confdefs.h >>conftest.$ac_ext
26952cat >>conftest.$ac_ext <<_ACEOF
26953/* end confdefs.h. */
26954
26955 #if HAVE_X11_XLIB_H
26956 #include <X11/Xlib.h>
26957 #endif
26958
26959
26960#include <$ac_header>
26961_ACEOF
26962rm -f conftest.$ac_objext
26963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26964 (eval $ac_compile) 2>conftest.er1
a848cd7e 26965 ac_status=$?
ac1cb8d3
VS
26966 grep -v '^ *+' conftest.er1 >conftest.err
26967 rm -f conftest.er1
26968 cat conftest.err >&5
a848cd7e
SC
26969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26970 (exit $ac_status); } &&
ea7db9ff
DE
26971 { ac_try='test -z "$ac_c_werror_flag"
26972 || test ! -s conftest.err'
ac1cb8d3
VS
26973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26974 (eval $ac_try) 2>&5
26975 ac_status=$?
26976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26977 (exit $ac_status); }; } &&
26978 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26980 (eval $ac_try) 2>&5
26981 ac_status=$?
26982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26983 (exit $ac_status); }; }; then
26984 eval "$as_ac_Header=yes"
26985else
26986 echo "$as_me: failed program was:" >&5
26987sed 's/^/| /' conftest.$ac_ext >&5
26988
26989eval "$as_ac_Header=no"
26990fi
ac1cb8d3 26991rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26992fi
26993echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26994echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26995if test `eval echo '${'$as_ac_Header'}'` = yes; then
26996 cat >>confdefs.h <<_ACEOF
26997#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26998_ACEOF
26999
27000 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
27001
27002fi
27003
27004done
27005
27006 else
27007 echo "$as_me:$LINENO: result: no" >&5
27008echo "${ECHO_T}no" >&6
27009 fi
27010
27011 else
27012 echo "$as_me:$LINENO: result: no" >&5
27013echo "${ECHO_T}no" >&6
dcc1b6ad
VS
27014 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
27015echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
27016 wxUSE_DISPLAY="no"
27017 fi
01cb68df
RG
27018 elif test "$wxUSE_MSW" = 1; then
27019
27020
27021for ac_header in multimon.h ddraw.h
27022do
27023as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27024if eval "test \"\${$as_ac_Header+set}\" = set"; then
27025 echo "$as_me:$LINENO: checking for $ac_header" >&5
27026echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27027if eval "test \"\${$as_ac_Header+set}\" = set"; then
27028 echo $ECHO_N "(cached) $ECHO_C" >&6
27029fi
27030echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27031echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27032else
27033 # Is the header compilable?
27034echo "$as_me:$LINENO: checking $ac_header usability" >&5
27035echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27036cat >conftest.$ac_ext <<_ACEOF
27037/* confdefs.h. */
27038_ACEOF
27039cat confdefs.h >>conftest.$ac_ext
27040cat >>conftest.$ac_ext <<_ACEOF
27041/* end confdefs.h. */
27042$ac_includes_default
27043#include <$ac_header>
27044_ACEOF
27045rm -f conftest.$ac_objext
27046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27047 (eval $ac_compile) 2>conftest.er1
01cb68df 27048 ac_status=$?
ac1cb8d3
VS
27049 grep -v '^ *+' conftest.er1 >conftest.err
27050 rm -f conftest.er1
27051 cat conftest.err >&5
01cb68df
RG
27052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27053 (exit $ac_status); } &&
ea7db9ff
DE
27054 { ac_try='test -z "$ac_c_werror_flag"
27055 || test ! -s conftest.err'
ac1cb8d3
VS
27056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27057 (eval $ac_try) 2>&5
27058 ac_status=$?
27059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27060 (exit $ac_status); }; } &&
27061 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
27062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27063 (eval $ac_try) 2>&5
27064 ac_status=$?
27065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27066 (exit $ac_status); }; }; then
27067 ac_header_compiler=yes
27068else
27069 echo "$as_me: failed program was:" >&5
27070sed 's/^/| /' conftest.$ac_ext >&5
27071
27072ac_header_compiler=no
27073fi
ac1cb8d3 27074rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
27075echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27076echo "${ECHO_T}$ac_header_compiler" >&6
27077
27078# Is the header present?
27079echo "$as_me:$LINENO: checking $ac_header presence" >&5
27080echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27081cat >conftest.$ac_ext <<_ACEOF
27082/* confdefs.h. */
27083_ACEOF
27084cat confdefs.h >>conftest.$ac_ext
27085cat >>conftest.$ac_ext <<_ACEOF
27086/* end confdefs.h. */
27087#include <$ac_header>
27088_ACEOF
27089if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27090 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27091 ac_status=$?
27092 grep -v '^ *+' conftest.er1 >conftest.err
27093 rm -f conftest.er1
27094 cat conftest.err >&5
27095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27096 (exit $ac_status); } >/dev/null; then
27097 if test -s conftest.err; then
27098 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27099 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
01cb68df
RG
27100 else
27101 ac_cpp_err=
27102 fi
27103else
27104 ac_cpp_err=yes
27105fi
27106if test -z "$ac_cpp_err"; then
27107 ac_header_preproc=yes
27108else
27109 echo "$as_me: failed program was:" >&5
27110sed 's/^/| /' conftest.$ac_ext >&5
27111
27112 ac_header_preproc=no
27113fi
27114rm -f conftest.err conftest.$ac_ext
27115echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27116echo "${ECHO_T}$ac_header_preproc" >&6
27117
27118# So? What about this header?
ac1cb8d3
VS
27119case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27120 yes:no: )
01cb68df
RG
27121 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27122echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27124echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27125 ac_header_preproc=yes
01cb68df 27126 ;;
ac1cb8d3 27127 no:yes:* )
01cb68df
RG
27128 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27129echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27130 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27131echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27132 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27133echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27134 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27135echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
01cb68df
RG
27136 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27137echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27138 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27139echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
01cb68df
RG
27140 (
27141 cat <<\_ASBOX
ac1cb8d3
VS
27142## ----------------------------------------- ##
27143## Report this to wx-dev@lists.wxwidgets.org ##
27144## ----------------------------------------- ##
01cb68df
RG
27145_ASBOX
27146 ) |
27147 sed "s/^/$as_me: WARNING: /" >&2
27148 ;;
27149esac
27150echo "$as_me:$LINENO: checking for $ac_header" >&5
27151echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27152if eval "test \"\${$as_ac_Header+set}\" = set"; then
27153 echo $ECHO_N "(cached) $ECHO_C" >&6
27154else
ac1cb8d3 27155 eval "$as_ac_Header=\$ac_header_preproc"
01cb68df
RG
27156fi
27157echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27158echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27159
27160fi
27161if test `eval echo '${'$as_ac_Header'}'` = yes; then
27162 cat >>confdefs.h <<_ACEOF
27163#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27164_ACEOF
27165
27166else
27167
27168 wxUSE_DISPLAY="no"
dcc1b6ad
VS
27169 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
27170echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
27171
27172fi
27173
27174done
27175
a848cd7e
SC
27176 fi
27177fi
27178
27179
27180USE_OPENGL=0
27181if test "$wxUSE_OPENGL" = "yes"; then
27182 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27183 OPENGL_LIBS="-framework OpenGL -framework AGL"
27184 elif test "$wxUSE_MSW" = 1; then
27185 OPENGL_LIBS="-lopengl32 -lglu32"
27186 else
27187
27188
27189ac_find_includes=
27190for ac_dir in $SEARCH_INCLUDE /usr/include;
27191 do
27192 if test -f "$ac_dir/GL/gl.h"; then
27193 ac_find_includes=$ac_dir
27194 break
27195 fi
27196 done
27197
27198 if test "$ac_find_includes" != "" ; then
27199 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
27200echo "${ECHO_T}found in $ac_find_includes" >&6
27201
27202 if test "x$ac_find_includes" = "x/usr/include"; then
27203 ac_path_to_include=""
27204 else
27205 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
27206 result=$?
27207 if test $result = 0; then
27208 ac_path_to_include=""
27209 else
27210 ac_path_to_include=" -I$ac_find_includes"
27211 fi
27212 fi
27213
27214 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
27215 fi
27216
27217 if test "${ac_cv_header_GL_gl_h+set}" = set; then
27218 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27219echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27220if test "${ac_cv_header_GL_gl_h+set}" = set; then
27221 echo $ECHO_N "(cached) $ECHO_C" >&6
27222fi
27223echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27224echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27225else
27226 # Is the header compilable?
27227echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
27228echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
27229cat >conftest.$ac_ext <<_ACEOF
27230/* confdefs.h. */
27231_ACEOF
27232cat confdefs.h >>conftest.$ac_ext
27233cat >>conftest.$ac_ext <<_ACEOF
27234/* end confdefs.h. */
27235$ac_includes_default
27236#include <GL/gl.h>
27237_ACEOF
27238rm -f conftest.$ac_objext
27239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27240 (eval $ac_compile) 2>conftest.er1
a848cd7e 27241 ac_status=$?
ac1cb8d3
VS
27242 grep -v '^ *+' conftest.er1 >conftest.err
27243 rm -f conftest.er1
27244 cat conftest.err >&5
a848cd7e
SC
27245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27246 (exit $ac_status); } &&
ea7db9ff
DE
27247 { ac_try='test -z "$ac_c_werror_flag"
27248 || test ! -s conftest.err'
ac1cb8d3
VS
27249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27250 (eval $ac_try) 2>&5
27251 ac_status=$?
27252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27253 (exit $ac_status); }; } &&
27254 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27256 (eval $ac_try) 2>&5
27257 ac_status=$?
27258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27259 (exit $ac_status); }; }; then
27260 ac_header_compiler=yes
27261else
27262 echo "$as_me: failed program was:" >&5
27263sed 's/^/| /' conftest.$ac_ext >&5
27264
27265ac_header_compiler=no
27266fi
ac1cb8d3 27267rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27268echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27269echo "${ECHO_T}$ac_header_compiler" >&6
27270
27271# Is the header present?
27272echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
27273echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
27274cat >conftest.$ac_ext <<_ACEOF
27275/* confdefs.h. */
27276_ACEOF
27277cat confdefs.h >>conftest.$ac_ext
27278cat >>conftest.$ac_ext <<_ACEOF
27279/* end confdefs.h. */
27280#include <GL/gl.h>
27281_ACEOF
27282if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27283 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27284 ac_status=$?
27285 grep -v '^ *+' conftest.er1 >conftest.err
27286 rm -f conftest.er1
27287 cat conftest.err >&5
27288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27289 (exit $ac_status); } >/dev/null; then
27290 if test -s conftest.err; then
27291 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27292 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
27293 else
27294 ac_cpp_err=
27295 fi
27296else
27297 ac_cpp_err=yes
27298fi
27299if test -z "$ac_cpp_err"; then
27300 ac_header_preproc=yes
27301else
27302 echo "$as_me: failed program was:" >&5
27303sed 's/^/| /' conftest.$ac_ext >&5
27304
27305 ac_header_preproc=no
27306fi
27307rm -f conftest.err conftest.$ac_ext
27308echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27309echo "${ECHO_T}$ac_header_preproc" >&6
27310
27311# So? What about this header?
ac1cb8d3
VS
27312case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27313 yes:no: )
a848cd7e
SC
27314 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27315echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27316 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
27317echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
27318 ac_header_preproc=yes
a848cd7e 27319 ;;
ac1cb8d3 27320 no:yes:* )
a848cd7e
SC
27321 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
27322echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27323 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
27324echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
27325 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
27326echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
27327 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
27328echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27329 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
27330echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27331 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
27332echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27333 (
27334 cat <<\_ASBOX
ac1cb8d3
VS
27335## ----------------------------------------- ##
27336## Report this to wx-dev@lists.wxwidgets.org ##
27337## ----------------------------------------- ##
a848cd7e
SC
27338_ASBOX
27339 ) |
27340 sed "s/^/$as_me: WARNING: /" >&2
27341 ;;
27342esac
27343echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27344echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27345if test "${ac_cv_header_GL_gl_h+set}" = set; then
27346 echo $ECHO_N "(cached) $ECHO_C" >&6
27347else
27348 ac_cv_header_GL_gl_h=$ac_header_preproc
27349fi
27350echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27351echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27352
27353fi
27354if test $ac_cv_header_GL_gl_h = yes; then
27355
27356 found_gl=0
27357
27358 echo "$as_me:$LINENO: checking for -lGL" >&5
27359echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
27360
27361ac_find_libraries=
27362for ac_dir in $SEARCH_LIB /usr/lib;
27363 do
27364 for ac_extension in a so sl dylib; do
27365 if test -f "$ac_dir/libGL.$ac_extension"; then
27366 ac_find_libraries=$ac_dir
27367 break 2
27368 fi
27369 done
27370 done
27371
27372 if test "$ac_find_libraries" != "" ; then
27373
27374 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27375 result=$?
27376 if test $result = 0; then
27377 ac_path_to_link=""
27378 else
27379 ac_path_to_link=" -L$ac_find_libraries"
27380 fi
27381
27382 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27383 LDFLAGS_GL="$ac_path_to_link"
27384 fi
27385
27386
27387ac_find_libraries=
27388for ac_dir in $SEARCH_LIB /usr/lib;
27389 do
27390 for ac_extension in a so sl dylib; do
27391 if test -f "$ac_dir/libGLU.$ac_extension"; then
27392 ac_find_libraries=$ac_dir
27393 break 2
27394 fi
27395 done
27396 done
27397
27398 if test "$ac_find_libraries" != "" ; then
27399
27400 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27401 result=$?
27402 if test $result = 0; then
27403 ac_path_to_link=""
27404 else
27405 ac_path_to_link=" -L$ac_find_libraries"
27406 fi
27407
27408 if test "$ac_path_to_link" != " -L/usr/lib" -a \
27409 "$ac_path_to_link" != "$LDFLAGS_GL"; then
27410 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
27411 fi
27412
27413 found_gl=1
27414 OPENGL_LIBS="-lGL -lGLU"
27415 echo "$as_me:$LINENO: result: yes" >&5
27416echo "${ECHO_T}yes" >&6
27417 fi
27418 fi
27419
27420 if test "$found_gl" != 1; then
27421 echo "$as_me:$LINENO: result: no" >&5
27422echo "${ECHO_T}no" >&6
27423 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
27424echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
27425
27426ac_find_libraries=
27427for ac_dir in $SEARCH_LIB /usr/lib;
27428 do
27429 for ac_extension in a so sl dylib; do
27430 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
27431 ac_find_libraries=$ac_dir
27432 break 2
27433 fi
27434 done
27435 done
27436
27437 if test "$ac_find_libraries" != "" ; then
27438
27439 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27440 result=$?
27441 if test $result = 0; then
27442 ac_path_to_link=""
27443 else
27444 ac_path_to_link=" -L$ac_find_libraries"
27445 fi
27446
27447 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
27448 OPENGL_LIBS="-lMesaGL -lMesaGLU"
27449 echo "$as_me:$LINENO: result: yes" >&5
27450echo "${ECHO_T}yes" >&6
27451 else
27452 echo "$as_me:$LINENO: result: no" >&5
27453echo "${ECHO_T}no" >&6
27454 fi
27455 fi
27456
27457fi
27458
27459
27460
27461 if test "x$OPENGL_LIBS" = "x"; then
27462 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
27463echo "$as_me: error: OpenGL libraries not available" >&2;}
27464 { (exit 1); exit 1; }; }
27465 fi
27466 fi
27467
27468 if test "$wxUSE_OPENGL" = "yes"; then
27469 USE_OPENGL=1
27470 cat >>confdefs.h <<\_ACEOF
27471#define wxUSE_OPENGL 1
27472_ACEOF
27473
27474 cat >>confdefs.h <<\_ACEOF
27475#define wxUSE_GLCANVAS 1
27476_ACEOF
27477
27478 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
27479 fi
27480fi
27481
27482if test -z "$TOOLKIT_VPATH" ; then
27483 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
27484fi
27485
27486if test -n "$TOOLKIT" ; then
27487 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
27488fi
27489
27490UNICODE=0
27491lib_unicode_suffix=
48112931 27492wxconfig_filename_unicode="ansi"
a848cd7e
SC
27493if test "$wxUSE_UNICODE" = "yes"; then
27494 lib_unicode_suffix=u
48112931 27495 wxconfig_filename_unicode="unicode"
a848cd7e
SC
27496 UNICODE=1
27497fi
27498
27499lib_debug_suffix=
48112931 27500wxconfig_filename_debug="release"
a848cd7e
SC
27501DEBUG_FLAG=0
27502if test "$wxUSE_DEBUG_FLAG" = "yes"; then
27503 lib_debug_suffix=d
48112931 27504 wxconfig_filename_debug="debug"
a848cd7e
SC
27505 DEBUG_FLAG=1
27506fi
27507
27508DEBUG_INFO=0
27509if test "$wxUSE_DEBUG_INFO" = "yes"; then
27510 DEBUG_INFO=1
27511fi
27512
27513WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
27514
27515TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
27516TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
27517
48112931
VS
27518WXCONFIG_DATA_FILE="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${wxconfig_filename_unicode}-${wxconfig_filename_debug}-${WX_RELEASE}"
27519
a848cd7e
SC
27520if test "$cross_compiling" = "yes"; then
27521 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
27522 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
48112931 27523 WXCONFIG_DATA_FILE="${WXCONFIG_DATA_FILE}-${host_alias}"
a848cd7e
SC
27524 HOST_SUFFIX="-${host_alias}"
27525fi
27526
27527WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
27528WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
27529WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}"
27530WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
27531
27532WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
27533WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
27534
27535WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
27536WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
27537WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
27538WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27539
27540case "${host}" in
27541 *-*-cygwin* | *-*-mingw32* )
27542 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
27543 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27544 ;;
27545
27546 *-*-darwin* )
27547
27548 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
27549 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
27550
27551 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
27552 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
27553 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
27554 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27555
27556 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27557 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
27558 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
27559 fi
27560 ;;
27561esac
27562
27563WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
27564WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
27565
27566WXCONFIG_LIBS="-l${WX_LIBRARY}"
27567WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
27568
27569if test "$wxUSE_OPENGL" = "yes"; then
27570 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
27571 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
27572fi
27573
27574
27575
27576if test "$wxUSE_SHARED" = "yes"; then
27577 case "${host}" in
27578 *-pc-msdosdjgpp )
27579 wxUSE_SHARED=no
27580 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
27581echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
27582 ;;
27583 esac
27584fi
27585
27586SHARED=0
27587if test "$wxUSE_SHARED" = "yes"; then
27588 SHARED=1
27589
27590
27591 found_versioning=no
27592
27593
27594 if test $found_versioning = no ; then
27595 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
27596echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
27597if test "${wx_cv_version_script+set}" = set; then
27598 echo $ECHO_N "(cached) $ECHO_C" >&6
27599else
27600
27601 echo "VER_1 { *; };" >conftest.sym
27602 echo "int main() { return 0; }" >conftest.cpp
27603
27604 if { ac_try='
27605 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
27606 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
27607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27608 (eval $ac_try) 2>&5
27609 ac_status=$?
27610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27611 (exit $ac_status); }; } ; then
27612 if test -s conftest.stderr ; then
27613 wx_cv_version_script=no
27614 else
27615 wx_cv_version_script=yes
27616 fi
27617 else
27618 wx_cv_version_script=no
27619 fi
27620 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
27621
27622fi
27623echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
27624echo "${ECHO_T}$wx_cv_version_script" >&6
27625 if test $wx_cv_version_script = yes ; then
27626 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
27627 fi
27628 fi
27629
27630
27631 case "${host}" in
27632 *-*-linux* | *-*-gnu* )
27633 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
27634 ;;
27635
27636 *-*-solaris2* )
27637 if test "$GCC" = yes ; then
27638 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
27639
27640 saveLdflags="$LDFLAGS"
27641 LDFLAGS="$saveLdflags -Wl,-rpath,/"
27642 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
27643echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
27644 cat >conftest.$ac_ext <<_ACEOF
27645/* confdefs.h. */
27646_ACEOF
27647cat confdefs.h >>conftest.$ac_ext
27648cat >>conftest.$ac_ext <<_ACEOF
27649/* end confdefs.h. */
27650
27651int
27652main ()
27653{
27654
27655 ;
27656 return 0;
27657}
27658_ACEOF
27659rm -f conftest.$ac_objext conftest$ac_exeext
27660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27661 (eval $ac_link) 2>conftest.er1
a848cd7e 27662 ac_status=$?
ac1cb8d3
VS
27663 grep -v '^ *+' conftest.er1 >conftest.err
27664 rm -f conftest.er1
27665 cat conftest.err >&5
a848cd7e
SC
27666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27667 (exit $ac_status); } &&
ea7db9ff
DE
27668 { ac_try='test -z "$ac_c_werror_flag"
27669 || test ! -s conftest.err'
ac1cb8d3
VS
27670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27671 (eval $ac_try) 2>&5
27672 ac_status=$?
27673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27674 (exit $ac_status); }; } &&
27675 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27677 (eval $ac_try) 2>&5
27678 ac_status=$?
27679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27680 (exit $ac_status); }; }; then
27681
27682 echo "$as_me:$LINENO: result: yes" >&5
27683echo "${ECHO_T}yes" >&6
27684 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
27685
27686else
27687 echo "$as_me: failed program was:" >&5
27688sed 's/^/| /' conftest.$ac_ext >&5
27689
27690
27691 echo "$as_me:$LINENO: result: no" >&5
27692echo "${ECHO_T}no" >&6
27693 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
27694echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
27695 LDFLAGS="$saveLdflags -Wl,-R,/"
27696 cat >conftest.$ac_ext <<_ACEOF
27697/* confdefs.h. */
27698_ACEOF
27699cat confdefs.h >>conftest.$ac_ext
27700cat >>conftest.$ac_ext <<_ACEOF
27701/* end confdefs.h. */
27702
27703int
27704main ()
27705{
27706
27707 ;
27708 return 0;
27709}
27710_ACEOF
27711rm -f conftest.$ac_objext conftest$ac_exeext
27712if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27713 (eval $ac_link) 2>conftest.er1
a848cd7e 27714 ac_status=$?
ac1cb8d3
VS
27715 grep -v '^ *+' conftest.er1 >conftest.err
27716 rm -f conftest.er1
27717 cat conftest.err >&5
a848cd7e
SC
27718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27719 (exit $ac_status); } &&
ea7db9ff
DE
27720 { ac_try='test -z "$ac_c_werror_flag"
27721 || test ! -s conftest.err'
ac1cb8d3
VS
27722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27723 (eval $ac_try) 2>&5
27724 ac_status=$?
27725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27726 (exit $ac_status); }; } &&
27727 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27729 (eval $ac_try) 2>&5
27730 ac_status=$?
27731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27732 (exit $ac_status); }; }; then
27733
27734 echo "$as_me:$LINENO: result: yes" >&5
27735echo "${ECHO_T}yes" >&6
27736 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
27737else
27738 echo "$as_me: failed program was:" >&5
27739sed 's/^/| /' conftest.$ac_ext >&5
27740
27741
27742 echo "$as_me:$LINENO: result: no" >&5
27743echo "${ECHO_T}no" >&6
27744
27745fi
ac1cb8d3
VS
27746rm -f conftest.err conftest.$ac_objext \
27747 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27748
27749fi
ac1cb8d3
VS
27750rm -f conftest.err conftest.$ac_objext \
27751 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27752 LDFLAGS="$saveLdflags"
27753 else
27754 SHARED_LD="${CXX} -G -o"
27755 PIC_FLAG="-KPIC"
27756 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
27757 fi
27758 ;;
27759
27760 powerpc-*-darwin* )
27761 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
27762 cat <<EOF >change-install-names
27763#!/bin/sh
27764libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
27765inst_cmd="install_name_tool "
27766for i in \${libnames} ; do
27767 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
27768done
27769\${inst_cmd} \${3}
27770EOF
27771 chmod +x change-install-names
27772 ;;
27773
27774 *-*-cygwin* | *-*-mingw32* )
27775 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
27776 ;;
27777
27778 esac
27779
27780 if test "x$WX_TARGET_LIBRARY" = "x"; then
27781 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
27782 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
27783 fi
27784
27785 WX_TARGET_LIBRARY_TYPE="so"
27786 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
27787fi
27788
27789if test "$wxUSE_SHARED" = "no"; then
27790
27791 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
27792 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
27793 fi
27794
27795 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
27796 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
27797 fi
27798
27799 if test "$wxUSE_OPENGL" = "yes"; then
27800 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
27801 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
27802 else
27803 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
27804 fi
27805
27806 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
27807 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
27808
27809 WX_TARGET_LIBRARY_TYPE="a"
27810 INSTALL_LIBRARY='$(INSTALL_DATA)'
27811
27812 STATIC_FLAG="yes"
27813else
27814 STATIC_FLAG="no"
27815fi
27816
27817if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
27818 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
27819 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
27820 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
27821
27822 # Extract the first word of "Rez", so it can be a program name with args.
27823set dummy Rez; ac_word=$2
27824echo "$as_me:$LINENO: checking for $ac_word" >&5
27825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27826if test "${ac_cv_prog_RESCOMP+set}" = set; then
27827 echo $ECHO_N "(cached) $ECHO_C" >&6
27828else
27829 if test -n "$RESCOMP"; then
27830 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
27831else
27832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27833for as_dir in $PATH
27834do
27835 IFS=$as_save_IFS
27836 test -z "$as_dir" && as_dir=.
27837 for ac_exec_ext in '' $ac_executable_extensions; do
27838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27839 ac_cv_prog_RESCOMP="Rez"
27840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27841 break 2
27842 fi
27843done
27844done
27845
27846 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
27847fi
27848fi
27849RESCOMP=$ac_cv_prog_RESCOMP
27850if test -n "$RESCOMP"; then
27851 echo "$as_me:$LINENO: result: $RESCOMP" >&5
27852echo "${ECHO_T}$RESCOMP" >&6
27853else
27854 echo "$as_me:$LINENO: result: no" >&5
27855echo "${ECHO_T}no" >&6
27856fi
27857
27858 # Extract the first word of "DeRez", so it can be a program name with args.
27859set dummy DeRez; ac_word=$2
27860echo "$as_me:$LINENO: checking for $ac_word" >&5
27861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27862if test "${ac_cv_prog_DEREZ+set}" = set; then
27863 echo $ECHO_N "(cached) $ECHO_C" >&6
27864else
27865 if test -n "$DEREZ"; then
27866 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
27867else
27868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27869for as_dir in $PATH
27870do
27871 IFS=$as_save_IFS
27872 test -z "$as_dir" && as_dir=.
27873 for ac_exec_ext in '' $ac_executable_extensions; do
27874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27875 ac_cv_prog_DEREZ="DeRez"
27876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27877 break 2
27878 fi
27879done
27880done
27881
27882 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
27883fi
27884fi
27885DEREZ=$ac_cv_prog_DEREZ
27886if test -n "$DEREZ"; then
27887 echo "$as_me:$LINENO: result: $DEREZ" >&5
27888echo "${ECHO_T}$DEREZ" >&6
27889else
27890 echo "$as_me:$LINENO: result: no" >&5
27891echo "${ECHO_T}no" >&6
27892fi
27893
27894 # Extract the first word of "SetFile", so it can be a program name with args.
27895set dummy SetFile; ac_word=$2
27896echo "$as_me:$LINENO: checking for $ac_word" >&5
27897echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27898if test "${ac_cv_prog_SETFILE+set}" = set; then
27899 echo $ECHO_N "(cached) $ECHO_C" >&6
27900else
27901 if test -n "$SETFILE"; then
27902 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
27903else
27904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27905for as_dir in $PATH
27906do
27907 IFS=$as_save_IFS
27908 test -z "$as_dir" && as_dir=.
27909 for ac_exec_ext in '' $ac_executable_extensions; do
27910 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27911 ac_cv_prog_SETFILE="SetFile"
27912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27913 break 2
27914 fi
27915done
27916done
27917
27918 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
27919fi
27920fi
27921SETFILE=$ac_cv_prog_SETFILE
27922if test -n "$SETFILE"; then
27923 echo "$as_me:$LINENO: result: $SETFILE" >&5
27924echo "${ECHO_T}$SETFILE" >&6
27925else
27926 echo "$as_me:$LINENO: result: no" >&5
27927echo "${ECHO_T}no" >&6
27928fi
27929
27930
27931 MACSETFILE="\$(SETFILE)"
27932
27933 if test "$wxUSE_MAC" = 1; then
27934 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
27935
27936 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
27937 else
27938 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
27939 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
27940 fi
27941else
27942 MACSETFILE="@#"
27943 MACRESWXCONFIG="#"
27944
27945 if test "$wxUSE_PM" = 1; then
27946 MACRESCOMP="emxbind -ep"
27947 else
27948 MACRESCOMP="@#"
27949 fi
27950fi
27951
27952
27953
27954echo "$as_me:$LINENO: checking for mode_t" >&5
27955echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
27956if test "${ac_cv_type_mode_t+set}" = set; then
27957 echo $ECHO_N "(cached) $ECHO_C" >&6
27958else
27959 cat >conftest.$ac_ext <<_ACEOF
27960/* confdefs.h. */
27961_ACEOF
27962cat confdefs.h >>conftest.$ac_ext
27963cat >>conftest.$ac_ext <<_ACEOF
27964/* end confdefs.h. */
27965$ac_includes_default
27966int
27967main ()
27968{
27969if ((mode_t *) 0)
27970 return 0;
27971if (sizeof (mode_t))
27972 return 0;
27973 ;
27974 return 0;
27975}
27976_ACEOF
27977rm -f conftest.$ac_objext
27978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27979 (eval $ac_compile) 2>conftest.er1
a848cd7e 27980 ac_status=$?
ac1cb8d3
VS
27981 grep -v '^ *+' conftest.er1 >conftest.err
27982 rm -f conftest.er1
27983 cat conftest.err >&5
a848cd7e
SC
27984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27985 (exit $ac_status); } &&
ea7db9ff
DE
27986 { ac_try='test -z "$ac_c_werror_flag"
27987 || test ! -s conftest.err'
ac1cb8d3
VS
27988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27989 (eval $ac_try) 2>&5
27990 ac_status=$?
27991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27992 (exit $ac_status); }; } &&
27993 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27995 (eval $ac_try) 2>&5
27996 ac_status=$?
27997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27998 (exit $ac_status); }; }; then
27999 ac_cv_type_mode_t=yes
28000else
28001 echo "$as_me: failed program was:" >&5
28002sed 's/^/| /' conftest.$ac_ext >&5
28003
28004ac_cv_type_mode_t=no
28005fi
ac1cb8d3 28006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28007fi
28008echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
28009echo "${ECHO_T}$ac_cv_type_mode_t" >&6
28010if test $ac_cv_type_mode_t = yes; then
28011 :
28012else
28013
28014cat >>confdefs.h <<_ACEOF
28015#define mode_t int
28016_ACEOF
28017
28018fi
28019
28020echo "$as_me:$LINENO: checking for off_t" >&5
28021echo $ECHO_N "checking for off_t... $ECHO_C" >&6
28022if test "${ac_cv_type_off_t+set}" = set; then
28023 echo $ECHO_N "(cached) $ECHO_C" >&6
28024else
28025 cat >conftest.$ac_ext <<_ACEOF
28026/* confdefs.h. */
28027_ACEOF
28028cat confdefs.h >>conftest.$ac_ext
28029cat >>conftest.$ac_ext <<_ACEOF
28030/* end confdefs.h. */
28031$ac_includes_default
28032int
28033main ()
28034{
28035if ((off_t *) 0)
28036 return 0;
28037if (sizeof (off_t))
28038 return 0;
28039 ;
28040 return 0;
28041}
28042_ACEOF
28043rm -f conftest.$ac_objext
28044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28045 (eval $ac_compile) 2>conftest.er1
a848cd7e 28046 ac_status=$?
ac1cb8d3
VS
28047 grep -v '^ *+' conftest.er1 >conftest.err
28048 rm -f conftest.er1
28049 cat conftest.err >&5
a848cd7e
SC
28050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28051 (exit $ac_status); } &&
ea7db9ff
DE
28052 { ac_try='test -z "$ac_c_werror_flag"
28053 || test ! -s conftest.err'
ac1cb8d3
VS
28054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28055 (eval $ac_try) 2>&5
28056 ac_status=$?
28057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28058 (exit $ac_status); }; } &&
28059 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28061 (eval $ac_try) 2>&5
28062 ac_status=$?
28063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28064 (exit $ac_status); }; }; then
28065 ac_cv_type_off_t=yes
28066else
28067 echo "$as_me: failed program was:" >&5
28068sed 's/^/| /' conftest.$ac_ext >&5
28069
28070ac_cv_type_off_t=no
28071fi
ac1cb8d3 28072rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28073fi
28074echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
28075echo "${ECHO_T}$ac_cv_type_off_t" >&6
28076if test $ac_cv_type_off_t = yes; then
28077 :
28078else
28079
28080cat >>confdefs.h <<_ACEOF
28081#define off_t long
28082_ACEOF
28083
28084fi
28085
28086echo "$as_me:$LINENO: checking for pid_t" >&5
28087echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
28088if test "${ac_cv_type_pid_t+set}" = set; then
28089 echo $ECHO_N "(cached) $ECHO_C" >&6
28090else
28091 cat >conftest.$ac_ext <<_ACEOF
28092/* confdefs.h. */
28093_ACEOF
28094cat confdefs.h >>conftest.$ac_ext
28095cat >>conftest.$ac_ext <<_ACEOF
28096/* end confdefs.h. */
28097$ac_includes_default
28098int
28099main ()
28100{
28101if ((pid_t *) 0)
28102 return 0;
28103if (sizeof (pid_t))
28104 return 0;
28105 ;
28106 return 0;
28107}
28108_ACEOF
28109rm -f conftest.$ac_objext
28110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28111 (eval $ac_compile) 2>conftest.er1
a848cd7e 28112 ac_status=$?
ac1cb8d3
VS
28113 grep -v '^ *+' conftest.er1 >conftest.err
28114 rm -f conftest.er1
28115 cat conftest.err >&5
a848cd7e
SC
28116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28117 (exit $ac_status); } &&
ea7db9ff
DE
28118 { ac_try='test -z "$ac_c_werror_flag"
28119 || test ! -s conftest.err'
ac1cb8d3
VS
28120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28121 (eval $ac_try) 2>&5
28122 ac_status=$?
28123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28124 (exit $ac_status); }; } &&
28125 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28127 (eval $ac_try) 2>&5
28128 ac_status=$?
28129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28130 (exit $ac_status); }; }; then
28131 ac_cv_type_pid_t=yes
28132else
28133 echo "$as_me: failed program was:" >&5
28134sed 's/^/| /' conftest.$ac_ext >&5
28135
28136ac_cv_type_pid_t=no
28137fi
ac1cb8d3 28138rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28139fi
28140echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28141echo "${ECHO_T}$ac_cv_type_pid_t" >&6
28142if test $ac_cv_type_pid_t = yes; then
28143 :
28144else
28145
28146cat >>confdefs.h <<_ACEOF
28147#define pid_t int
28148_ACEOF
28149
28150fi
28151
28152echo "$as_me:$LINENO: checking for size_t" >&5
28153echo $ECHO_N "checking for size_t... $ECHO_C" >&6
28154if test "${ac_cv_type_size_t+set}" = set; then
28155 echo $ECHO_N "(cached) $ECHO_C" >&6
28156else
28157 cat >conftest.$ac_ext <<_ACEOF
28158/* confdefs.h. */
28159_ACEOF
28160cat confdefs.h >>conftest.$ac_ext
28161cat >>conftest.$ac_ext <<_ACEOF
28162/* end confdefs.h. */
28163$ac_includes_default
28164int
28165main ()
28166{
28167if ((size_t *) 0)
28168 return 0;
28169if (sizeof (size_t))
28170 return 0;
28171 ;
28172 return 0;
28173}
28174_ACEOF
28175rm -f conftest.$ac_objext
28176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28177 (eval $ac_compile) 2>conftest.er1
a848cd7e 28178 ac_status=$?
ac1cb8d3
VS
28179 grep -v '^ *+' conftest.er1 >conftest.err
28180 rm -f conftest.er1
28181 cat conftest.err >&5
a848cd7e
SC
28182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28183 (exit $ac_status); } &&
ea7db9ff
DE
28184 { ac_try='test -z "$ac_c_werror_flag"
28185 || test ! -s conftest.err'
ac1cb8d3
VS
28186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28187 (eval $ac_try) 2>&5
28188 ac_status=$?
28189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28190 (exit $ac_status); }; } &&
28191 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28193 (eval $ac_try) 2>&5
28194 ac_status=$?
28195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28196 (exit $ac_status); }; }; then
28197 ac_cv_type_size_t=yes
28198else
28199 echo "$as_me: failed program was:" >&5
28200sed 's/^/| /' conftest.$ac_ext >&5
28201
28202ac_cv_type_size_t=no
28203fi
ac1cb8d3 28204rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28205fi
28206echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28207echo "${ECHO_T}$ac_cv_type_size_t" >&6
28208if test $ac_cv_type_size_t = yes; then
28209 :
28210else
28211
28212cat >>confdefs.h <<_ACEOF
28213#define size_t unsigned
28214_ACEOF
28215
28216fi
28217
28218echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
28219echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
28220if test "${ac_cv_type_uid_t+set}" = set; then
28221 echo $ECHO_N "(cached) $ECHO_C" >&6
28222else
28223 cat >conftest.$ac_ext <<_ACEOF
28224/* confdefs.h. */
28225_ACEOF
28226cat confdefs.h >>conftest.$ac_ext
28227cat >>conftest.$ac_ext <<_ACEOF
28228/* end confdefs.h. */
28229#include <sys/types.h>
28230
28231_ACEOF
28232if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28233 $EGREP "uid_t" >/dev/null 2>&1; then
28234 ac_cv_type_uid_t=yes
28235else
28236 ac_cv_type_uid_t=no
28237fi
28238rm -f conftest*
28239
28240fi
28241echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
28242echo "${ECHO_T}$ac_cv_type_uid_t" >&6
28243if test $ac_cv_type_uid_t = no; then
28244
28245cat >>confdefs.h <<\_ACEOF
28246#define uid_t int
28247_ACEOF
28248
28249
28250cat >>confdefs.h <<\_ACEOF
28251#define gid_t int
28252_ACEOF
28253
28254fi
28255
28256
28257
28258
28259ac_ext=cc
28260ac_cpp='$CXXCPP $CPPFLAGS'
28261ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28262ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28263ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28264
28265echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
28266echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
28267if test "${wx_cv_size_t_is_uint+set}" = set; then
28268 echo $ECHO_N "(cached) $ECHO_C" >&6
28269else
28270
28271 cat >conftest.$ac_ext <<_ACEOF
28272/* confdefs.h. */
28273_ACEOF
28274cat confdefs.h >>conftest.$ac_ext
28275cat >>conftest.$ac_ext <<_ACEOF
28276/* end confdefs.h. */
28277#include <stddef.h>
28278int
28279main ()
28280{
28281
28282 return 0; }
28283
28284 struct Foo { void foo(size_t); void foo(unsigned int); };
28285
28286 int bar() {
28287
28288 ;
28289 return 0;
28290}
28291_ACEOF
28292rm -f conftest.$ac_objext
28293if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28294 (eval $ac_compile) 2>conftest.er1
a848cd7e 28295 ac_status=$?
ac1cb8d3
VS
28296 grep -v '^ *+' conftest.er1 >conftest.err
28297 rm -f conftest.er1
28298 cat conftest.err >&5
a848cd7e
SC
28299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28300 (exit $ac_status); } &&
ea7db9ff
DE
28301 { ac_try='test -z "$ac_cxx_werror_flag"
28302 || test ! -s conftest.err'
ac1cb8d3
VS
28303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28304 (eval $ac_try) 2>&5
28305 ac_status=$?
28306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28307 (exit $ac_status); }; } &&
28308 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28310 (eval $ac_try) 2>&5
28311 ac_status=$?
28312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28313 (exit $ac_status); }; }; then
28314 wx_cv_size_t_is_uint=no
28315else
28316 echo "$as_me: failed program was:" >&5
28317sed 's/^/| /' conftest.$ac_ext >&5
28318
28319wx_cv_size_t_is_uint=yes
28320
28321fi
ac1cb8d3 28322rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28323
28324
28325fi
28326echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
28327echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
28328
28329if test "$wx_cv_size_t_is_uint" = "yes"; then
28330 cat >>confdefs.h <<\_ACEOF
28331#define wxSIZE_T_IS_UINT 1
28332_ACEOF
28333
28334else
28335 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
28336echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
28337if test "${wx_cv_size_t_is_ulong+set}" = set; then
28338 echo $ECHO_N "(cached) $ECHO_C" >&6
28339else
28340 cat >conftest.$ac_ext <<_ACEOF
28341/* confdefs.h. */
28342_ACEOF
28343cat confdefs.h >>conftest.$ac_ext
28344cat >>conftest.$ac_ext <<_ACEOF
28345/* end confdefs.h. */
28346#include <stddef.h>
28347int
28348main ()
28349{
28350
28351 return 0; }
28352
28353 struct Foo { void foo(size_t); void foo(unsigned long); };
28354
28355 int bar() {
28356
28357 ;
28358 return 0;
28359}
28360_ACEOF
28361rm -f conftest.$ac_objext
28362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28363 (eval $ac_compile) 2>conftest.er1
a848cd7e 28364 ac_status=$?
ac1cb8d3
VS
28365 grep -v '^ *+' conftest.er1 >conftest.err
28366 rm -f conftest.er1
28367 cat conftest.err >&5
a848cd7e
SC
28368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28369 (exit $ac_status); } &&
ea7db9ff
DE
28370 { ac_try='test -z "$ac_cxx_werror_flag"
28371 || test ! -s conftest.err'
ac1cb8d3
VS
28372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28373 (eval $ac_try) 2>&5
28374 ac_status=$?
28375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28376 (exit $ac_status); }; } &&
28377 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28379 (eval $ac_try) 2>&5
28380 ac_status=$?
28381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28382 (exit $ac_status); }; }; then
28383 wx_cv_size_t_is_ulong=no
28384else
28385 echo "$as_me: failed program was:" >&5
28386sed 's/^/| /' conftest.$ac_ext >&5
28387
28388wx_cv_size_t_is_ulong=yes
28389
28390fi
ac1cb8d3 28391rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28392
28393fi
28394echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
28395echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
28396
28397 if test "$wx_cv_size_t_is_ulong" = "yes"; then
28398 cat >>confdefs.h <<\_ACEOF
28399#define wxSIZE_T_IS_ULONG 1
28400_ACEOF
28401
28402 fi
28403fi
28404
28405ac_ext=c
28406ac_cpp='$CPP $CPPFLAGS'
28407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28409ac_compiler_gnu=$ac_cv_c_compiler_gnu
28410
28411
28412
28413echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
28414echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
28415if test "${wx_cv_struct_pw_gecos+set}" = set; then
28416 echo $ECHO_N "(cached) $ECHO_C" >&6
28417else
28418
28419 cat >conftest.$ac_ext <<_ACEOF
28420/* confdefs.h. */
28421_ACEOF
28422cat confdefs.h >>conftest.$ac_ext
28423cat >>conftest.$ac_ext <<_ACEOF
28424/* end confdefs.h. */
28425#include <pwd.h>
28426int
28427main ()
28428{
28429
28430 char *p;
28431 struct passwd *pw;
28432 p = pw->pw_gecos;
28433
28434 ;
28435 return 0;
28436}
28437_ACEOF
28438rm -f conftest.$ac_objext
28439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28440 (eval $ac_compile) 2>conftest.er1
a848cd7e 28441 ac_status=$?
ac1cb8d3
VS
28442 grep -v '^ *+' conftest.er1 >conftest.err
28443 rm -f conftest.er1
28444 cat conftest.err >&5
a848cd7e
SC
28445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28446 (exit $ac_status); } &&
ea7db9ff
DE
28447 { ac_try='test -z "$ac_c_werror_flag"
28448 || test ! -s conftest.err'
ac1cb8d3
VS
28449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28450 (eval $ac_try) 2>&5
28451 ac_status=$?
28452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28453 (exit $ac_status); }; } &&
28454 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28456 (eval $ac_try) 2>&5
28457 ac_status=$?
28458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28459 (exit $ac_status); }; }; then
28460
28461 wx_cv_struct_pw_gecos=yes
28462
28463else
28464 echo "$as_me: failed program was:" >&5
28465sed 's/^/| /' conftest.$ac_ext >&5
28466
28467
28468 wx_cv_struct_pw_gecos=no
28469
28470
28471fi
ac1cb8d3 28472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28473
28474
28475fi
28476echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
28477echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
28478
28479if test "$wx_cv_struct_pw_gecos" = "yes"; then
28480 cat >>confdefs.h <<\_ACEOF
28481#define HAVE_PW_GECOS 1
28482_ACEOF
28483
28484fi
28485
28486
28487if test "$wx_cv_sizeof_wchar_t" != "0"; then
28488 cat >>confdefs.h <<\_ACEOF
28489#define wxUSE_WCHAR_T 1
28490_ACEOF
28491
28492
28493 WCSLEN_FOUND=0
28494 WCHAR_LINK=
28495
28496for ac_func in wcslen
28497do
28498as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28499echo "$as_me:$LINENO: checking for $ac_func" >&5
28500echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28501if eval "test \"\${$as_ac_var+set}\" = set"; then
28502 echo $ECHO_N "(cached) $ECHO_C" >&6
28503else
28504 cat >conftest.$ac_ext <<_ACEOF
28505/* confdefs.h. */
28506_ACEOF
28507cat confdefs.h >>conftest.$ac_ext
28508cat >>conftest.$ac_ext <<_ACEOF
28509/* end confdefs.h. */
ac1cb8d3
VS
28510/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28511 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28512#define $ac_func innocuous_$ac_func
28513
a848cd7e
SC
28514/* System header to define __stub macros and hopefully few prototypes,
28515 which can conflict with char $ac_func (); below.
28516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28517 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28518
a848cd7e
SC
28519#ifdef __STDC__
28520# include <limits.h>
28521#else
28522# include <assert.h>
28523#endif
ac1cb8d3
VS
28524
28525#undef $ac_func
28526
a848cd7e
SC
28527/* Override any gcc2 internal prototype to avoid an error. */
28528#ifdef __cplusplus
28529extern "C"
28530{
28531#endif
28532/* We use char because int might match the return type of a gcc2
28533 builtin and then its argument prototype would still apply. */
28534char $ac_func ();
28535/* The GNU C library defines this for functions which it implements
28536 to always fail with ENOSYS. Some functions are actually named
28537 something starting with __ and the normal name is an alias. */
28538#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28539choke me
28540#else
28541char (*f) () = $ac_func;
28542#endif
28543#ifdef __cplusplus
28544}
28545#endif
28546
28547int
28548main ()
28549{
28550return f != $ac_func;
28551 ;
28552 return 0;
28553}
28554_ACEOF
28555rm -f conftest.$ac_objext conftest$ac_exeext
28556if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28557 (eval $ac_link) 2>conftest.er1
a848cd7e 28558 ac_status=$?
ac1cb8d3
VS
28559 grep -v '^ *+' conftest.er1 >conftest.err
28560 rm -f conftest.er1
28561 cat conftest.err >&5
a848cd7e
SC
28562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28563 (exit $ac_status); } &&
ea7db9ff
DE
28564 { ac_try='test -z "$ac_c_werror_flag"
28565 || test ! -s conftest.err'
ac1cb8d3
VS
28566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28567 (eval $ac_try) 2>&5
28568 ac_status=$?
28569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28570 (exit $ac_status); }; } &&
28571 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28573 (eval $ac_try) 2>&5
28574 ac_status=$?
28575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28576 (exit $ac_status); }; }; then
28577 eval "$as_ac_var=yes"
28578else
28579 echo "$as_me: failed program was:" >&5
28580sed 's/^/| /' conftest.$ac_ext >&5
28581
28582eval "$as_ac_var=no"
28583fi
ac1cb8d3
VS
28584rm -f conftest.err conftest.$ac_objext \
28585 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28586fi
28587echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28588echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28589if test `eval echo '${'$as_ac_var'}'` = yes; then
28590 cat >>confdefs.h <<_ACEOF
28591#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28592_ACEOF
28593 WCSLEN_FOUND=1
28594fi
28595done
28596
28597
28598 if test "$WCSLEN_FOUND" = 0; then
28599 if test "$TOOLKIT" = "MSW"; then
28600 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
28601echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
28602if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
28603 echo $ECHO_N "(cached) $ECHO_C" >&6
28604else
28605 ac_check_lib_save_LIBS=$LIBS
28606LIBS="-lmsvcrt $LIBS"
28607cat >conftest.$ac_ext <<_ACEOF
28608/* confdefs.h. */
28609_ACEOF
28610cat confdefs.h >>conftest.$ac_ext
28611cat >>conftest.$ac_ext <<_ACEOF
28612/* end confdefs.h. */
28613
28614/* Override any gcc2 internal prototype to avoid an error. */
28615#ifdef __cplusplus
28616extern "C"
28617#endif
28618/* We use char because int might match the return type of a gcc2
28619 builtin and then its argument prototype would still apply. */
28620char wcslen ();
28621int
28622main ()
28623{
28624wcslen ();
28625 ;
28626 return 0;
28627}
28628_ACEOF
28629rm -f conftest.$ac_objext conftest$ac_exeext
28630if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28631 (eval $ac_link) 2>conftest.er1
a848cd7e 28632 ac_status=$?
ac1cb8d3
VS
28633 grep -v '^ *+' conftest.er1 >conftest.err
28634 rm -f conftest.er1
28635 cat conftest.err >&5
a848cd7e
SC
28636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28637 (exit $ac_status); } &&
ea7db9ff
DE
28638 { ac_try='test -z "$ac_c_werror_flag"
28639 || test ! -s conftest.err'
ac1cb8d3
VS
28640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28641 (eval $ac_try) 2>&5
28642 ac_status=$?
28643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28644 (exit $ac_status); }; } &&
28645 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28647 (eval $ac_try) 2>&5
28648 ac_status=$?
28649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28650 (exit $ac_status); }; }; then
28651 ac_cv_lib_msvcrt_wcslen=yes
28652else
28653 echo "$as_me: failed program was:" >&5
28654sed 's/^/| /' conftest.$ac_ext >&5
28655
28656ac_cv_lib_msvcrt_wcslen=no
28657fi
ac1cb8d3
VS
28658rm -f conftest.err conftest.$ac_objext \
28659 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28660LIBS=$ac_check_lib_save_LIBS
28661fi
28662echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
28663echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
28664if test $ac_cv_lib_msvcrt_wcslen = yes; then
28665 WCHAR_OK=1
28666fi
28667
28668 else
28669 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
28670echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
28671if test "${ac_cv_lib_w_wcslen+set}" = set; then
28672 echo $ECHO_N "(cached) $ECHO_C" >&6
28673else
28674 ac_check_lib_save_LIBS=$LIBS
28675LIBS="-lw $LIBS"
28676cat >conftest.$ac_ext <<_ACEOF
28677/* confdefs.h. */
28678_ACEOF
28679cat confdefs.h >>conftest.$ac_ext
28680cat >>conftest.$ac_ext <<_ACEOF
28681/* end confdefs.h. */
28682
28683/* Override any gcc2 internal prototype to avoid an error. */
28684#ifdef __cplusplus
28685extern "C"
28686#endif
28687/* We use char because int might match the return type of a gcc2
28688 builtin and then its argument prototype would still apply. */
28689char wcslen ();
28690int
28691main ()
28692{
28693wcslen ();
28694 ;
28695 return 0;
28696}
28697_ACEOF
28698rm -f conftest.$ac_objext conftest$ac_exeext
28699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28700 (eval $ac_link) 2>conftest.er1
a848cd7e 28701 ac_status=$?
ac1cb8d3
VS
28702 grep -v '^ *+' conftest.er1 >conftest.err
28703 rm -f conftest.er1
28704 cat conftest.err >&5
a848cd7e
SC
28705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28706 (exit $ac_status); } &&
ea7db9ff
DE
28707 { ac_try='test -z "$ac_c_werror_flag"
28708 || test ! -s conftest.err'
ac1cb8d3
VS
28709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28710 (eval $ac_try) 2>&5
28711 ac_status=$?
28712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28713 (exit $ac_status); }; } &&
28714 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28716 (eval $ac_try) 2>&5
28717 ac_status=$?
28718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28719 (exit $ac_status); }; }; then
28720 ac_cv_lib_w_wcslen=yes
28721else
28722 echo "$as_me: failed program was:" >&5
28723sed 's/^/| /' conftest.$ac_ext >&5
28724
28725ac_cv_lib_w_wcslen=no
28726fi
ac1cb8d3
VS
28727rm -f conftest.err conftest.$ac_objext \
28728 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28729LIBS=$ac_check_lib_save_LIBS
28730fi
28731echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
28732echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
28733if test $ac_cv_lib_w_wcslen = yes; then
28734
28735 WCHAR_LINK=" -lw"
28736 WCSLEN_FOUND=1
28737
28738fi
28739
28740 fi
28741 fi
28742
28743 if test "$WCSLEN_FOUND" = 1; then
28744 cat >>confdefs.h <<\_ACEOF
28745#define HAVE_WCSLEN 1
28746_ACEOF
28747
28748 fi
28749
473276a9
VS
28750 if test "$USE_HPUX" = 1 -a "x$GCC" != "xyes"; then
28751 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
28752 fi
28753
a848cd7e
SC
28754
28755for ac_func in wcsrtombs
28756do
28757as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28758echo "$as_me:$LINENO: checking for $ac_func" >&5
28759echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28760if eval "test \"\${$as_ac_var+set}\" = set"; then
28761 echo $ECHO_N "(cached) $ECHO_C" >&6
28762else
28763 cat >conftest.$ac_ext <<_ACEOF
28764/* confdefs.h. */
28765_ACEOF
28766cat confdefs.h >>conftest.$ac_ext
28767cat >>conftest.$ac_ext <<_ACEOF
28768/* end confdefs.h. */
ac1cb8d3
VS
28769/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28771#define $ac_func innocuous_$ac_func
28772
a848cd7e
SC
28773/* System header to define __stub macros and hopefully few prototypes,
28774 which can conflict with char $ac_func (); below.
28775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28776 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28777
a848cd7e
SC
28778#ifdef __STDC__
28779# include <limits.h>
28780#else
28781# include <assert.h>
28782#endif
ac1cb8d3
VS
28783
28784#undef $ac_func
28785
a848cd7e
SC
28786/* Override any gcc2 internal prototype to avoid an error. */
28787#ifdef __cplusplus
28788extern "C"
28789{
28790#endif
28791/* We use char because int might match the return type of a gcc2
28792 builtin and then its argument prototype would still apply. */
28793char $ac_func ();
28794/* The GNU C library defines this for functions which it implements
28795 to always fail with ENOSYS. Some functions are actually named
28796 something starting with __ and the normal name is an alias. */
28797#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28798choke me
28799#else
28800char (*f) () = $ac_func;
28801#endif
28802#ifdef __cplusplus
28803}
28804#endif
28805
28806int
28807main ()
28808{
28809return f != $ac_func;
28810 ;
28811 return 0;
28812}
28813_ACEOF
28814rm -f conftest.$ac_objext conftest$ac_exeext
28815if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28816 (eval $ac_link) 2>conftest.er1
a848cd7e 28817 ac_status=$?
ac1cb8d3
VS
28818 grep -v '^ *+' conftest.er1 >conftest.err
28819 rm -f conftest.er1
28820 cat conftest.err >&5
a848cd7e
SC
28821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28822 (exit $ac_status); } &&
ea7db9ff
DE
28823 { ac_try='test -z "$ac_c_werror_flag"
28824 || test ! -s conftest.err'
ac1cb8d3
VS
28825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28826 (eval $ac_try) 2>&5
28827 ac_status=$?
28828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28829 (exit $ac_status); }; } &&
28830 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28832 (eval $ac_try) 2>&5
28833 ac_status=$?
28834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28835 (exit $ac_status); }; }; then
28836 eval "$as_ac_var=yes"
28837else
28838 echo "$as_me: failed program was:" >&5
28839sed 's/^/| /' conftest.$ac_ext >&5
28840
28841eval "$as_ac_var=no"
28842fi
ac1cb8d3
VS
28843rm -f conftest.err conftest.$ac_objext \
28844 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28845fi
28846echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28847echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28848if test `eval echo '${'$as_ac_var'}'` = yes; then
28849 cat >>confdefs.h <<_ACEOF
28850#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28851_ACEOF
28852
28853fi
28854done
28855
28856else
28857 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
28858echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
28859fi
28860
28861
28862
28863ac_ext=cc
28864ac_cpp='$CXXCPP $CPPFLAGS'
28865ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28866ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28867ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28868
28869
28870
28871for ac_func in vsnprintf
28872do
28873as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28874echo "$as_me:$LINENO: checking for $ac_func" >&5
28875echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28876if eval "test \"\${$as_ac_var+set}\" = set"; then
28877 echo $ECHO_N "(cached) $ECHO_C" >&6
28878else
28879 cat >conftest.$ac_ext <<_ACEOF
28880/* confdefs.h. */
28881_ACEOF
28882cat confdefs.h >>conftest.$ac_ext
28883cat >>conftest.$ac_ext <<_ACEOF
28884/* end confdefs.h. */
ac1cb8d3
VS
28885/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28887#define $ac_func innocuous_$ac_func
28888
a848cd7e
SC
28889/* System header to define __stub macros and hopefully few prototypes,
28890 which can conflict with char $ac_func (); below.
28891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28892 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28893
a848cd7e
SC
28894#ifdef __STDC__
28895# include <limits.h>
28896#else
28897# include <assert.h>
28898#endif
ac1cb8d3
VS
28899
28900#undef $ac_func
28901
a848cd7e
SC
28902/* Override any gcc2 internal prototype to avoid an error. */
28903#ifdef __cplusplus
28904extern "C"
28905{
28906#endif
28907/* We use char because int might match the return type of a gcc2
28908 builtin and then its argument prototype would still apply. */
28909char $ac_func ();
28910/* The GNU C library defines this for functions which it implements
28911 to always fail with ENOSYS. Some functions are actually named
28912 something starting with __ and the normal name is an alias. */
28913#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28914choke me
28915#else
28916char (*f) () = $ac_func;
28917#endif
28918#ifdef __cplusplus
28919}
28920#endif
28921
28922int
28923main ()
28924{
28925return f != $ac_func;
28926 ;
28927 return 0;
28928}
28929_ACEOF
28930rm -f conftest.$ac_objext conftest$ac_exeext
28931if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28932 (eval $ac_link) 2>conftest.er1
a848cd7e 28933 ac_status=$?
ac1cb8d3
VS
28934 grep -v '^ *+' conftest.er1 >conftest.err
28935 rm -f conftest.er1
28936 cat conftest.err >&5
a848cd7e
SC
28937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28938 (exit $ac_status); } &&
ea7db9ff
DE
28939 { ac_try='test -z "$ac_cxx_werror_flag"
28940 || test ! -s conftest.err'
ac1cb8d3
VS
28941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28942 (eval $ac_try) 2>&5
28943 ac_status=$?
28944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28945 (exit $ac_status); }; } &&
28946 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28948 (eval $ac_try) 2>&5
28949 ac_status=$?
28950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28951 (exit $ac_status); }; }; then
28952 eval "$as_ac_var=yes"
28953else
28954 echo "$as_me: failed program was:" >&5
28955sed 's/^/| /' conftest.$ac_ext >&5
28956
28957eval "$as_ac_var=no"
28958fi
ac1cb8d3
VS
28959rm -f conftest.err conftest.$ac_objext \
28960 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28961fi
28962echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28963echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28964if test `eval echo '${'$as_ac_var'}'` = yes; then
28965 cat >>confdefs.h <<_ACEOF
28966#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28967_ACEOF
28968
28969fi
28970done
28971
28972
28973if test "$ac_cv_func_vsnprintf" = "yes"; then
28974 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
28975echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
28976if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
28977 echo $ECHO_N "(cached) $ECHO_C" >&6
28978else
28979
28980 cat >conftest.$ac_ext <<_ACEOF
28981/* confdefs.h. */
28982_ACEOF
28983cat confdefs.h >>conftest.$ac_ext
28984cat >>conftest.$ac_ext <<_ACEOF
28985/* end confdefs.h. */
28986
28987 #include <stdio.h>
28988 #include <stdarg.h>
28989
28990int
28991main ()
28992{
28993
28994 char *buf;
28995 va_list ap;
28996 vsnprintf(buf, 10u, "%s", ap);
28997
28998 ;
28999 return 0;
29000}
29001_ACEOF
29002rm -f conftest.$ac_objext
29003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29004 (eval $ac_compile) 2>conftest.er1
a848cd7e 29005 ac_status=$?
ac1cb8d3
VS
29006 grep -v '^ *+' conftest.er1 >conftest.err
29007 rm -f conftest.er1
29008 cat conftest.err >&5
a848cd7e
SC
29009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29010 (exit $ac_status); } &&
ea7db9ff
DE
29011 { ac_try='test -z "$ac_cxx_werror_flag"
29012 || test ! -s conftest.err'
ac1cb8d3
VS
29013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29014 (eval $ac_try) 2>&5
29015 ac_status=$?
29016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29017 (exit $ac_status); }; } &&
29018 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29020 (eval $ac_try) 2>&5
29021 ac_status=$?
29022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29023 (exit $ac_status); }; }; then
29024 wx_cv_func_vsnprintf_decl=yes
29025else
29026 echo "$as_me: failed program was:" >&5
29027sed 's/^/| /' conftest.$ac_ext >&5
29028
29029wx_cv_func_vsnprintf_decl=no
29030
29031fi
ac1cb8d3 29032rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29033
29034
29035fi
29036echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
29037echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
29038
29039 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
29040 cat >>confdefs.h <<\_ACEOF
29041#define HAVE_VSNPRINTF_DECL 1
29042_ACEOF
29043
29044 fi
29045fi
29046
29047if test "$wxUSE_UNICODE" = yes; then
29048
29049
29050
fbe47c7b
VS
29051
29052
29053
29054for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
29055do
29056as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29057echo "$as_me:$LINENO: checking for $ac_func" >&5
29058echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29059if eval "test \"\${$as_ac_var+set}\" = set"; then
29060 echo $ECHO_N "(cached) $ECHO_C" >&6
29061else
29062 cat >conftest.$ac_ext <<_ACEOF
29063/* confdefs.h. */
29064_ACEOF
29065cat confdefs.h >>conftest.$ac_ext
29066cat >>conftest.$ac_ext <<_ACEOF
29067/* end confdefs.h. */
ac1cb8d3
VS
29068/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29069 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29070#define $ac_func innocuous_$ac_func
29071
a848cd7e
SC
29072/* System header to define __stub macros and hopefully few prototypes,
29073 which can conflict with char $ac_func (); below.
29074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29075 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29076
a848cd7e
SC
29077#ifdef __STDC__
29078# include <limits.h>
29079#else
29080# include <assert.h>
29081#endif
ac1cb8d3
VS
29082
29083#undef $ac_func
29084
a848cd7e
SC
29085/* Override any gcc2 internal prototype to avoid an error. */
29086#ifdef __cplusplus
29087extern "C"
29088{
29089#endif
29090/* We use char because int might match the return type of a gcc2
29091 builtin and then its argument prototype would still apply. */
29092char $ac_func ();
29093/* The GNU C library defines this for functions which it implements
29094 to always fail with ENOSYS. Some functions are actually named
29095 something starting with __ and the normal name is an alias. */
29096#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29097choke me
29098#else
29099char (*f) () = $ac_func;
29100#endif
29101#ifdef __cplusplus
29102}
29103#endif
29104
29105int
29106main ()
29107{
29108return f != $ac_func;
29109 ;
29110 return 0;
29111}
29112_ACEOF
29113rm -f conftest.$ac_objext conftest$ac_exeext
29114if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29115 (eval $ac_link) 2>conftest.er1
a848cd7e 29116 ac_status=$?
ac1cb8d3
VS
29117 grep -v '^ *+' conftest.er1 >conftest.err
29118 rm -f conftest.er1
29119 cat conftest.err >&5
a848cd7e
SC
29120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29121 (exit $ac_status); } &&
ea7db9ff
DE
29122 { ac_try='test -z "$ac_cxx_werror_flag"
29123 || test ! -s conftest.err'
ac1cb8d3
VS
29124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29125 (eval $ac_try) 2>&5
29126 ac_status=$?
29127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29128 (exit $ac_status); }; } &&
29129 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29131 (eval $ac_try) 2>&5
29132 ac_status=$?
29133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29134 (exit $ac_status); }; }; then
29135 eval "$as_ac_var=yes"
29136else
29137 echo "$as_me: failed program was:" >&5
29138sed 's/^/| /' conftest.$ac_ext >&5
29139
29140eval "$as_ac_var=no"
29141fi
ac1cb8d3
VS
29142rm -f conftest.err conftest.$ac_objext \
29143 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29144fi
29145echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29146echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29147if test `eval echo '${'$as_ac_var'}'` = yes; then
29148 cat >>confdefs.h <<_ACEOF
29149#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29150_ACEOF
29151
29152fi
29153done
29154
29155
29156 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
29157echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
29158 cat >conftest.$ac_ext <<_ACEOF
29159/* confdefs.h. */
29160_ACEOF
29161cat confdefs.h >>conftest.$ac_ext
29162cat >>conftest.$ac_ext <<_ACEOF
29163/* end confdefs.h. */
29164#include <wchar.h>
29165int
29166main ()
29167{
29168&_vsnwprintf;
29169 ;
29170 return 0;
29171}
29172_ACEOF
29173rm -f conftest.$ac_objext
29174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29175 (eval $ac_compile) 2>conftest.er1
a848cd7e 29176 ac_status=$?
ac1cb8d3
VS
29177 grep -v '^ *+' conftest.er1 >conftest.err
29178 rm -f conftest.er1
29179 cat conftest.err >&5
a848cd7e
SC
29180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29181 (exit $ac_status); } &&
ea7db9ff
DE
29182 { ac_try='test -z "$ac_cxx_werror_flag"
29183 || test ! -s conftest.err'
ac1cb8d3
VS
29184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29185 (eval $ac_try) 2>&5
29186 ac_status=$?
29187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29188 (exit $ac_status); }; } &&
29189 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29191 (eval $ac_try) 2>&5
29192 ac_status=$?
29193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29194 (exit $ac_status); }; }; then
29195 echo "$as_me:$LINENO: result: yes" >&5
29196echo "${ECHO_T}yes" >&6
29197 cat >>confdefs.h <<\_ACEOF
29198#define HAVE__VSNWPRINTF 1
29199_ACEOF
29200
29201else
29202 echo "$as_me: failed program was:" >&5
29203sed 's/^/| /' conftest.$ac_ext >&5
29204
29205echo "$as_me:$LINENO: result: no" >&5
29206echo "${ECHO_T}no" >&6
29207fi
ac1cb8d3 29208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
29209fi
29210
29211ac_ext=c
29212ac_cpp='$CPP $CPPFLAGS'
29213ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29214ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29215ac_compiler_gnu=$ac_cv_c_compiler_gnu
29216
29217
29218
29219
29220if test "$TOOLKIT" != "MSW"; then
29221
29222
29223
29224
29225ac_ext=cc
29226ac_cpp='$CXXCPP $CPPFLAGS'
29227ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29228ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29229ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29230
29231
29232
29233
29234# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
29235if test "${with_libiconv_prefix+set}" = set; then
29236 withval="$with_libiconv_prefix"
29237
29238 for dir in `echo "$withval" | tr : ' '`; do
29239 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
29240 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
29241 done
29242
29243fi;
29244
29245 echo "$as_me:$LINENO: checking for iconv" >&5
29246echo $ECHO_N "checking for iconv... $ECHO_C" >&6
29247if test "${am_cv_func_iconv+set}" = set; then
29248 echo $ECHO_N "(cached) $ECHO_C" >&6
29249else
29250
29251 am_cv_func_iconv="no, consider installing GNU libiconv"
29252 am_cv_lib_iconv=no
29253 cat >conftest.$ac_ext <<_ACEOF
29254/* confdefs.h. */
29255_ACEOF
29256cat confdefs.h >>conftest.$ac_ext
29257cat >>conftest.$ac_ext <<_ACEOF
29258/* end confdefs.h. */
29259#include <stdlib.h>
29260#include <iconv.h>
29261int
29262main ()
29263{
29264iconv_t cd = iconv_open("","");
29265 iconv(cd,NULL,NULL,NULL,NULL);
29266 iconv_close(cd);
29267 ;
29268 return 0;
29269}
29270_ACEOF
29271rm -f conftest.$ac_objext conftest$ac_exeext
29272if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29273 (eval $ac_link) 2>conftest.er1
a848cd7e 29274 ac_status=$?
ac1cb8d3
VS
29275 grep -v '^ *+' conftest.er1 >conftest.err
29276 rm -f conftest.er1
29277 cat conftest.err >&5
a848cd7e
SC
29278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29279 (exit $ac_status); } &&
ea7db9ff
DE
29280 { ac_try='test -z "$ac_cxx_werror_flag"
29281 || test ! -s conftest.err'
ac1cb8d3
VS
29282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29283 (eval $ac_try) 2>&5
29284 ac_status=$?
29285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29286 (exit $ac_status); }; } &&
29287 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29289 (eval $ac_try) 2>&5
29290 ac_status=$?
29291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29292 (exit $ac_status); }; }; then
29293 am_cv_func_iconv=yes
29294else
29295 echo "$as_me: failed program was:" >&5
29296sed 's/^/| /' conftest.$ac_ext >&5
29297
29298fi
ac1cb8d3
VS
29299rm -f conftest.err conftest.$ac_objext \
29300 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29301 if test "$am_cv_func_iconv" != yes; then
29302 am_save_LIBS="$LIBS"
29303 LIBS="$LIBS -liconv"
29304 cat >conftest.$ac_ext <<_ACEOF
29305/* confdefs.h. */
29306_ACEOF
29307cat confdefs.h >>conftest.$ac_ext
29308cat >>conftest.$ac_ext <<_ACEOF
29309/* end confdefs.h. */
29310#include <stdlib.h>
29311#include <iconv.h>
29312int
29313main ()
29314{
29315iconv_t cd = iconv_open("","");
29316 iconv(cd,NULL,NULL,NULL,NULL);
29317 iconv_close(cd);
29318 ;
29319 return 0;
29320}
29321_ACEOF
29322rm -f conftest.$ac_objext conftest$ac_exeext
29323if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29324 (eval $ac_link) 2>conftest.er1
a848cd7e 29325 ac_status=$?
ac1cb8d3
VS
29326 grep -v '^ *+' conftest.er1 >conftest.err
29327 rm -f conftest.er1
29328 cat conftest.err >&5
a848cd7e
SC
29329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29330 (exit $ac_status); } &&
ea7db9ff
DE
29331 { ac_try='test -z "$ac_cxx_werror_flag"
29332 || test ! -s conftest.err'
ac1cb8d3
VS
29333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29334 (eval $ac_try) 2>&5
29335 ac_status=$?
29336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29337 (exit $ac_status); }; } &&
29338 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29340 (eval $ac_try) 2>&5
29341 ac_status=$?
29342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29343 (exit $ac_status); }; }; then
29344 am_cv_lib_iconv=yes
29345 am_cv_func_iconv=yes
29346else
29347 echo "$as_me: failed program was:" >&5
29348sed 's/^/| /' conftest.$ac_ext >&5
29349
29350fi
ac1cb8d3
VS
29351rm -f conftest.err conftest.$ac_objext \
29352 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29353 LIBS="$am_save_LIBS"
29354 fi
29355
29356fi
29357echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
29358echo "${ECHO_T}$am_cv_func_iconv" >&6
29359 if test "$am_cv_func_iconv" = yes; then
29360
29361cat >>confdefs.h <<\_ACEOF
29362#define HAVE_ICONV 1
29363_ACEOF
29364
29365 echo "$as_me:$LINENO: checking if iconv needs const" >&5
29366echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
29367if test "${wx_cv_func_iconv_const+set}" = set; then
29368 echo $ECHO_N "(cached) $ECHO_C" >&6
29369else
29370 cat >conftest.$ac_ext <<_ACEOF
29371/* confdefs.h. */
29372_ACEOF
29373cat confdefs.h >>conftest.$ac_ext
29374cat >>conftest.$ac_ext <<_ACEOF
29375/* end confdefs.h. */
29376
29377#include <stdlib.h>
29378#include <iconv.h>
29379extern
29380#ifdef __cplusplus
29381"C"
29382#endif
29383#if defined(__STDC__) || defined(__cplusplus)
29384size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
29385#else
29386size_t iconv();
29387#endif
29388
29389int
29390main ()
29391{
29392
29393 ;
29394 return 0;
29395}
29396_ACEOF
29397rm -f conftest.$ac_objext
29398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29399 (eval $ac_compile) 2>conftest.er1
a848cd7e 29400 ac_status=$?
ac1cb8d3
VS
29401 grep -v '^ *+' conftest.er1 >conftest.err
29402 rm -f conftest.er1
29403 cat conftest.err >&5
a848cd7e
SC
29404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29405 (exit $ac_status); } &&
ea7db9ff
DE
29406 { ac_try='test -z "$ac_cxx_werror_flag"
29407 || test ! -s conftest.err'
ac1cb8d3
VS
29408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29409 (eval $ac_try) 2>&5
29410 ac_status=$?
29411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29412 (exit $ac_status); }; } &&
29413 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29415 (eval $ac_try) 2>&5
29416 ac_status=$?
29417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29418 (exit $ac_status); }; }; then
29419 wx_cv_func_iconv_const="no"
29420else
29421 echo "$as_me: failed program was:" >&5
29422sed 's/^/| /' conftest.$ac_ext >&5
29423
29424wx_cv_func_iconv_const="yes"
29425
29426fi
ac1cb8d3 29427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29428
29429fi
29430echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
29431echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
29432
29433 iconv_const=
29434 if test "x$wx_cv_func_iconv_const" = "xyes"; then
29435 iconv_const="const"
29436 fi
29437
29438
29439cat >>confdefs.h <<_ACEOF
29440#define ICONV_CONST $iconv_const
29441_ACEOF
29442
29443 fi
29444 LIBICONV=
29445 if test "$am_cv_lib_iconv" = yes; then
29446 LIBICONV="-liconv"
29447 fi
29448
29449
29450LIBS="$LIBICONV $LIBS"
29451ac_ext=c
29452ac_cpp='$CPP $CPPFLAGS'
29453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29455ac_compiler_gnu=$ac_cv_c_compiler_gnu
29456
29457
29458if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
29459
29460for ac_func in sigaction
29461do
29462as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29463echo "$as_me:$LINENO: checking for $ac_func" >&5
29464echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29465if eval "test \"\${$as_ac_var+set}\" = set"; then
29466 echo $ECHO_N "(cached) $ECHO_C" >&6
29467else
29468 cat >conftest.$ac_ext <<_ACEOF
29469/* confdefs.h. */
29470_ACEOF
29471cat confdefs.h >>conftest.$ac_ext
29472cat >>conftest.$ac_ext <<_ACEOF
29473/* end confdefs.h. */
ac1cb8d3
VS
29474/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29476#define $ac_func innocuous_$ac_func
29477
a848cd7e
SC
29478/* System header to define __stub macros and hopefully few prototypes,
29479 which can conflict with char $ac_func (); below.
29480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29481 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29482
a848cd7e
SC
29483#ifdef __STDC__
29484# include <limits.h>
29485#else
29486# include <assert.h>
29487#endif
ac1cb8d3
VS
29488
29489#undef $ac_func
29490
a848cd7e
SC
29491/* Override any gcc2 internal prototype to avoid an error. */
29492#ifdef __cplusplus
29493extern "C"
29494{
29495#endif
29496/* We use char because int might match the return type of a gcc2
29497 builtin and then its argument prototype would still apply. */
29498char $ac_func ();
29499/* The GNU C library defines this for functions which it implements
29500 to always fail with ENOSYS. Some functions are actually named
29501 something starting with __ and the normal name is an alias. */
29502#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29503choke me
29504#else
29505char (*f) () = $ac_func;
29506#endif
29507#ifdef __cplusplus
29508}
29509#endif
29510
29511int
29512main ()
29513{
29514return f != $ac_func;
29515 ;
29516 return 0;
29517}
29518_ACEOF
29519rm -f conftest.$ac_objext conftest$ac_exeext
29520if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29521 (eval $ac_link) 2>conftest.er1
a848cd7e 29522 ac_status=$?
ac1cb8d3
VS
29523 grep -v '^ *+' conftest.er1 >conftest.err
29524 rm -f conftest.er1
29525 cat conftest.err >&5
a848cd7e
SC
29526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29527 (exit $ac_status); } &&
ea7db9ff
DE
29528 { ac_try='test -z "$ac_c_werror_flag"
29529 || test ! -s conftest.err'
ac1cb8d3
VS
29530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29531 (eval $ac_try) 2>&5
29532 ac_status=$?
29533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29534 (exit $ac_status); }; } &&
29535 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29537 (eval $ac_try) 2>&5
29538 ac_status=$?
29539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29540 (exit $ac_status); }; }; then
29541 eval "$as_ac_var=yes"
29542else
29543 echo "$as_me: failed program was:" >&5
29544sed 's/^/| /' conftest.$ac_ext >&5
29545
29546eval "$as_ac_var=no"
29547fi
ac1cb8d3
VS
29548rm -f conftest.err conftest.$ac_objext \
29549 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29550fi
29551echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29552echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29553if test `eval echo '${'$as_ac_var'}'` = yes; then
29554 cat >>confdefs.h <<_ACEOF
29555#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29556_ACEOF
29557
29558fi
29559done
29560
29561
29562 if test "$ac_cv_func_sigaction" = "no"; then
29563 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
29564echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
29565 wxUSE_ON_FATAL_EXCEPTION=no
29566 fi
29567
29568 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
29569
29570
29571 ac_ext=cc
29572ac_cpp='$CXXCPP $CPPFLAGS'
29573ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29574ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29575ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29576
29577
29578 echo "$as_me:$LINENO: checking for sa_handler type" >&5
29579echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
29580if test "${wx_cv_type_sa_handler+set}" = set; then
29581 echo $ECHO_N "(cached) $ECHO_C" >&6
29582else
29583
29584 cat >conftest.$ac_ext <<_ACEOF
29585/* confdefs.h. */
29586_ACEOF
29587cat confdefs.h >>conftest.$ac_ext
29588cat >>conftest.$ac_ext <<_ACEOF
29589/* end confdefs.h. */
29590#include <signal.h>
29591int
29592main ()
29593{
29594
29595 extern void testSigHandler(int);
29596
29597 struct sigaction sa;
29598 sa.sa_handler = testSigHandler;
29599
29600 ;
29601 return 0;
29602}
29603_ACEOF
29604rm -f conftest.$ac_objext
29605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29606 (eval $ac_compile) 2>conftest.er1
a848cd7e 29607 ac_status=$?
ac1cb8d3
VS
29608 grep -v '^ *+' conftest.er1 >conftest.err
29609 rm -f conftest.er1
29610 cat conftest.err >&5
a848cd7e
SC
29611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29612 (exit $ac_status); } &&
ea7db9ff
DE
29613 { ac_try='test -z "$ac_cxx_werror_flag"
29614 || test ! -s conftest.err'
ac1cb8d3
VS
29615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29616 (eval $ac_try) 2>&5
29617 ac_status=$?
29618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29619 (exit $ac_status); }; } &&
29620 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29622 (eval $ac_try) 2>&5
29623 ac_status=$?
29624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29625 (exit $ac_status); }; }; then
29626
29627 wx_cv_type_sa_handler=int
29628
29629else
29630 echo "$as_me: failed program was:" >&5
29631sed 's/^/| /' conftest.$ac_ext >&5
29632
29633
29634 wx_cv_type_sa_handler=void
29635
29636fi
ac1cb8d3 29637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29638
29639fi
29640echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
29641echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
29642
29643 ac_ext=c
29644ac_cpp='$CPP $CPPFLAGS'
29645ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29646ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29647ac_compiler_gnu=$ac_cv_c_compiler_gnu
29648
29649
29650 cat >>confdefs.h <<_ACEOF
29651#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
29652_ACEOF
29653
29654 fi
29655fi
29656
29657
29658
29659for ac_func in mkstemp mktemp
29660do
29661as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29662echo "$as_me:$LINENO: checking for $ac_func" >&5
29663echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29664if eval "test \"\${$as_ac_var+set}\" = set"; then
29665 echo $ECHO_N "(cached) $ECHO_C" >&6
29666else
29667 cat >conftest.$ac_ext <<_ACEOF
29668/* confdefs.h. */
29669_ACEOF
29670cat confdefs.h >>conftest.$ac_ext
29671cat >>conftest.$ac_ext <<_ACEOF
29672/* end confdefs.h. */
ac1cb8d3
VS
29673/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29674 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29675#define $ac_func innocuous_$ac_func
29676
a848cd7e
SC
29677/* System header to define __stub macros and hopefully few prototypes,
29678 which can conflict with char $ac_func (); below.
29679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29680 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29681
a848cd7e
SC
29682#ifdef __STDC__
29683# include <limits.h>
29684#else
29685# include <assert.h>
29686#endif
ac1cb8d3
VS
29687
29688#undef $ac_func
29689
a848cd7e
SC
29690/* Override any gcc2 internal prototype to avoid an error. */
29691#ifdef __cplusplus
29692extern "C"
29693{
29694#endif
29695/* We use char because int might match the return type of a gcc2
29696 builtin and then its argument prototype would still apply. */
29697char $ac_func ();
29698/* The GNU C library defines this for functions which it implements
29699 to always fail with ENOSYS. Some functions are actually named
29700 something starting with __ and the normal name is an alias. */
29701#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29702choke me
29703#else
29704char (*f) () = $ac_func;
29705#endif
29706#ifdef __cplusplus
29707}
29708#endif
29709
29710int
29711main ()
29712{
29713return f != $ac_func;
29714 ;
29715 return 0;
29716}
29717_ACEOF
29718rm -f conftest.$ac_objext conftest$ac_exeext
29719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29720 (eval $ac_link) 2>conftest.er1
a848cd7e 29721 ac_status=$?
ac1cb8d3
VS
29722 grep -v '^ *+' conftest.er1 >conftest.err
29723 rm -f conftest.er1
29724 cat conftest.err >&5
a848cd7e
SC
29725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29726 (exit $ac_status); } &&
ea7db9ff
DE
29727 { ac_try='test -z "$ac_c_werror_flag"
29728 || test ! -s conftest.err'
ac1cb8d3
VS
29729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29730 (eval $ac_try) 2>&5
29731 ac_status=$?
29732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29733 (exit $ac_status); }; } &&
29734 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29736 (eval $ac_try) 2>&5
29737 ac_status=$?
29738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29739 (exit $ac_status); }; }; then
29740 eval "$as_ac_var=yes"
29741else
29742 echo "$as_me: failed program was:" >&5
29743sed 's/^/| /' conftest.$ac_ext >&5
29744
29745eval "$as_ac_var=no"
29746fi
ac1cb8d3
VS
29747rm -f conftest.err conftest.$ac_objext \
29748 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29749fi
29750echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29751echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29752if test `eval echo '${'$as_ac_var'}'` = yes; then
29753 cat >>confdefs.h <<_ACEOF
29754#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29755_ACEOF
29756 break
29757fi
29758done
29759
29760
29761echo "$as_me:$LINENO: checking for statfs" >&5
29762echo $ECHO_N "checking for statfs... $ECHO_C" >&6
29763if test "${wx_cv_func_statfs+set}" = set; then
29764 echo $ECHO_N "(cached) $ECHO_C" >&6
29765else
29766 cat >conftest.$ac_ext <<_ACEOF
29767/* confdefs.h. */
29768_ACEOF
29769cat confdefs.h >>conftest.$ac_ext
29770cat >>conftest.$ac_ext <<_ACEOF
29771/* end confdefs.h. */
29772
29773 #if defined(__BSD__)
29774 #include <sys/param.h>
29775 #include <sys/mount.h>
29776 #else
29777 #include <sys/vfs.h>
29778 #endif
29779
29780int
29781main ()
29782{
29783
29784 long l;
29785 struct statfs fs;
29786 statfs("/", &fs);
29787 l = fs.f_bsize;
29788 l += fs.f_blocks;
29789 l += fs.f_bavail;
29790
29791 ;
29792 return 0;
29793}
29794_ACEOF
29795rm -f conftest.$ac_objext
29796if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29797 (eval $ac_compile) 2>conftest.er1
a848cd7e 29798 ac_status=$?
ac1cb8d3
VS
29799 grep -v '^ *+' conftest.er1 >conftest.err
29800 rm -f conftest.er1
29801 cat conftest.err >&5
a848cd7e
SC
29802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29803 (exit $ac_status); } &&
ea7db9ff
DE
29804 { ac_try='test -z "$ac_c_werror_flag"
29805 || test ! -s conftest.err'
ac1cb8d3
VS
29806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29807 (eval $ac_try) 2>&5
29808 ac_status=$?
29809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29810 (exit $ac_status); }; } &&
29811 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29813 (eval $ac_try) 2>&5
29814 ac_status=$?
29815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29816 (exit $ac_status); }; }; then
29817
29818 wx_cv_func_statfs=yes
29819
29820else
29821 echo "$as_me: failed program was:" >&5
29822sed 's/^/| /' conftest.$ac_ext >&5
29823
29824
29825 wx_cv_func_statfs=no
29826
29827
29828fi
ac1cb8d3 29829rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29830
29831fi
29832echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
29833echo "${ECHO_T}$wx_cv_func_statfs" >&6
29834
29835if test "$wx_cv_func_statfs" = "yes"; then
29836 wx_cv_type_statvfs_t="struct statfs"
29837 cat >>confdefs.h <<\_ACEOF
29838#define HAVE_STATFS 1
29839_ACEOF
29840
29841else
29842 echo "$as_me:$LINENO: checking for statvfs" >&5
29843echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
29844if test "${wx_cv_func_statvfs+set}" = set; then
29845 echo $ECHO_N "(cached) $ECHO_C" >&6
29846else
29847 cat >conftest.$ac_ext <<_ACEOF
29848/* confdefs.h. */
29849_ACEOF
29850cat confdefs.h >>conftest.$ac_ext
29851cat >>conftest.$ac_ext <<_ACEOF
29852/* end confdefs.h. */
29853
29854 #include <stddef.h>
29855 #include <sys/statvfs.h>
29856
29857int
29858main ()
29859{
29860
29861 statvfs("/", NULL);
29862
29863 ;
29864 return 0;
29865}
29866_ACEOF
29867rm -f conftest.$ac_objext
29868if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29869 (eval $ac_compile) 2>conftest.er1
a848cd7e 29870 ac_status=$?
ac1cb8d3
VS
29871 grep -v '^ *+' conftest.er1 >conftest.err
29872 rm -f conftest.er1
29873 cat conftest.err >&5
a848cd7e
SC
29874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29875 (exit $ac_status); } &&
ea7db9ff
DE
29876 { ac_try='test -z "$ac_c_werror_flag"
29877 || test ! -s conftest.err'
ac1cb8d3
VS
29878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29879 (eval $ac_try) 2>&5
29880 ac_status=$?
29881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29882 (exit $ac_status); }; } &&
29883 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29885 (eval $ac_try) 2>&5
29886 ac_status=$?
29887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29888 (exit $ac_status); }; }; then
29889 wx_cv_func_statvfs=yes
29890else
29891 echo "$as_me: failed program was:" >&5
29892sed 's/^/| /' conftest.$ac_ext >&5
29893
29894wx_cv_func_statvfs=no
29895
29896fi
ac1cb8d3 29897rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29898
29899fi
29900echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
29901echo "${ECHO_T}$wx_cv_func_statvfs" >&6
29902
29903 if test "$wx_cv_func_statvfs" = "yes"; then
29904
29905
29906 ac_ext=cc
29907ac_cpp='$CXXCPP $CPPFLAGS'
29908ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29909ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29910ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29911
29912
29913 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
29914echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
29915if test "${wx_cv_type_statvfs_t+set}" = set; then
29916 echo $ECHO_N "(cached) $ECHO_C" >&6
29917else
29918 cat >conftest.$ac_ext <<_ACEOF
29919/* confdefs.h. */
29920_ACEOF
29921cat confdefs.h >>conftest.$ac_ext
29922cat >>conftest.$ac_ext <<_ACEOF
29923/* end confdefs.h. */
29924
29925 #include <sys/statvfs.h>
29926
29927int
29928main ()
29929{
29930
29931 long l;
29932 statvfs_t fs;
29933 statvfs("/", &fs);
29934 l = fs.f_bsize;
29935 l += fs.f_blocks;
29936 l += fs.f_bavail;
29937
29938 ;
29939 return 0;
29940}
29941_ACEOF
29942rm -f conftest.$ac_objext
29943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29944 (eval $ac_compile) 2>conftest.er1
a848cd7e 29945 ac_status=$?
ac1cb8d3
VS
29946 grep -v '^ *+' conftest.er1 >conftest.err
29947 rm -f conftest.er1
29948 cat conftest.err >&5
a848cd7e
SC
29949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29950 (exit $ac_status); } &&
ea7db9ff
DE
29951 { ac_try='test -z "$ac_cxx_werror_flag"
29952 || test ! -s conftest.err'
ac1cb8d3
VS
29953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29954 (eval $ac_try) 2>&5
29955 ac_status=$?
29956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29957 (exit $ac_status); }; } &&
29958 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
29964 wx_cv_type_statvfs_t=statvfs_t
29965else
29966 echo "$as_me: failed program was:" >&5
29967sed 's/^/| /' conftest.$ac_ext >&5
29968
29969
29970 cat >conftest.$ac_ext <<_ACEOF
29971/* confdefs.h. */
29972_ACEOF
29973cat confdefs.h >>conftest.$ac_ext
29974cat >>conftest.$ac_ext <<_ACEOF
29975/* end confdefs.h. */
29976
29977 #include <sys/statvfs.h>
29978
29979int
29980main ()
29981{
29982
29983 long l;
29984 struct statvfs fs;
29985 statvfs("/", &fs);
29986 l = fs.f_bsize;
29987 l += fs.f_blocks;
29988 l += fs.f_bavail;
29989
29990 ;
29991 return 0;
29992}
29993_ACEOF
29994rm -f conftest.$ac_objext
29995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29996 (eval $ac_compile) 2>conftest.er1
a848cd7e 29997 ac_status=$?
ac1cb8d3
VS
29998 grep -v '^ *+' conftest.er1 >conftest.err
29999 rm -f conftest.er1
30000 cat conftest.err >&5
a848cd7e
SC
30001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30002 (exit $ac_status); } &&
ea7db9ff
DE
30003 { ac_try='test -z "$ac_cxx_werror_flag"
30004 || test ! -s conftest.err'
ac1cb8d3
VS
30005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30006 (eval $ac_try) 2>&5
30007 ac_status=$?
30008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30009 (exit $ac_status); }; } &&
30010 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30012 (eval $ac_try) 2>&5
30013 ac_status=$?
30014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30015 (exit $ac_status); }; }; then
30016 wx_cv_type_statvfs_t="struct statvfs"
30017else
30018 echo "$as_me: failed program was:" >&5
30019sed 's/^/| /' conftest.$ac_ext >&5
30020
30021wx_cv_type_statvfs_t="unknown"
30022
30023fi
ac1cb8d3 30024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30025
30026
30027fi
ac1cb8d3 30028rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30029
30030fi
30031echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
30032echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
30033
30034 ac_ext=c
30035ac_cpp='$CPP $CPPFLAGS'
30036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30038ac_compiler_gnu=$ac_cv_c_compiler_gnu
30039
30040
30041 if test "$wx_cv_type_statvfs_t" != "unknown"; then
30042 cat >>confdefs.h <<\_ACEOF
30043#define HAVE_STATVFS 1
30044_ACEOF
30045
30046 fi
30047 else
30048 wx_cv_type_statvfs_t="unknown"
30049 fi
30050fi
30051
30052if test "$wx_cv_type_statvfs_t" != "unknown"; then
30053 cat >>confdefs.h <<_ACEOF
30054#define WX_STATFS_T $wx_cv_type_statvfs_t
30055_ACEOF
30056
30057else
30058 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
30059echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
30060fi
30061
30062if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
30063
30064
30065for ac_func in fcntl flock
30066do
30067as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30068echo "$as_me:$LINENO: checking for $ac_func" >&5
30069echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30070if eval "test \"\${$as_ac_var+set}\" = set"; then
30071 echo $ECHO_N "(cached) $ECHO_C" >&6
30072else
30073 cat >conftest.$ac_ext <<_ACEOF
30074/* confdefs.h. */
30075_ACEOF
30076cat confdefs.h >>conftest.$ac_ext
30077cat >>conftest.$ac_ext <<_ACEOF
30078/* end confdefs.h. */
ac1cb8d3
VS
30079/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30080 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30081#define $ac_func innocuous_$ac_func
30082
a848cd7e
SC
30083/* System header to define __stub macros and hopefully few prototypes,
30084 which can conflict with char $ac_func (); below.
30085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30086 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30087
a848cd7e
SC
30088#ifdef __STDC__
30089# include <limits.h>
30090#else
30091# include <assert.h>
30092#endif
ac1cb8d3
VS
30093
30094#undef $ac_func
30095
a848cd7e
SC
30096/* Override any gcc2 internal prototype to avoid an error. */
30097#ifdef __cplusplus
30098extern "C"
30099{
30100#endif
30101/* We use char because int might match the return type of a gcc2
30102 builtin and then its argument prototype would still apply. */
30103char $ac_func ();
30104/* The GNU C library defines this for functions which it implements
30105 to always fail with ENOSYS. Some functions are actually named
30106 something starting with __ and the normal name is an alias. */
30107#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30108choke me
30109#else
30110char (*f) () = $ac_func;
30111#endif
30112#ifdef __cplusplus
30113}
30114#endif
30115
30116int
30117main ()
30118{
30119return f != $ac_func;
30120 ;
30121 return 0;
30122}
30123_ACEOF
30124rm -f conftest.$ac_objext conftest$ac_exeext
30125if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30126 (eval $ac_link) 2>conftest.er1
a848cd7e 30127 ac_status=$?
ac1cb8d3
VS
30128 grep -v '^ *+' conftest.er1 >conftest.err
30129 rm -f conftest.er1
30130 cat conftest.err >&5
a848cd7e
SC
30131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30132 (exit $ac_status); } &&
ea7db9ff
DE
30133 { ac_try='test -z "$ac_c_werror_flag"
30134 || test ! -s conftest.err'
ac1cb8d3
VS
30135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30136 (eval $ac_try) 2>&5
30137 ac_status=$?
30138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30139 (exit $ac_status); }; } &&
30140 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30142 (eval $ac_try) 2>&5
30143 ac_status=$?
30144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30145 (exit $ac_status); }; }; then
30146 eval "$as_ac_var=yes"
30147else
30148 echo "$as_me: failed program was:" >&5
30149sed 's/^/| /' conftest.$ac_ext >&5
30150
30151eval "$as_ac_var=no"
30152fi
ac1cb8d3
VS
30153rm -f conftest.err conftest.$ac_objext \
30154 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30155fi
30156echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30157echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30158if test `eval echo '${'$as_ac_var'}'` = yes; then
30159 cat >>confdefs.h <<_ACEOF
30160#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30161_ACEOF
30162 break
30163fi
30164done
30165
30166
30167 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
30168 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
30169echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
30170 wxUSE_SNGLINST_CHECKER=no
30171 fi
30172fi
30173
30174
30175for ac_func in timegm
30176do
30177as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30178echo "$as_me:$LINENO: checking for $ac_func" >&5
30179echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30180if eval "test \"\${$as_ac_var+set}\" = set"; then
30181 echo $ECHO_N "(cached) $ECHO_C" >&6
30182else
30183 cat >conftest.$ac_ext <<_ACEOF
30184/* confdefs.h. */
30185_ACEOF
30186cat confdefs.h >>conftest.$ac_ext
30187cat >>conftest.$ac_ext <<_ACEOF
30188/* end confdefs.h. */
ac1cb8d3
VS
30189/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30191#define $ac_func innocuous_$ac_func
30192
a848cd7e
SC
30193/* System header to define __stub macros and hopefully few prototypes,
30194 which can conflict with char $ac_func (); below.
30195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30196 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30197
a848cd7e
SC
30198#ifdef __STDC__
30199# include <limits.h>
30200#else
30201# include <assert.h>
30202#endif
ac1cb8d3
VS
30203
30204#undef $ac_func
30205
a848cd7e
SC
30206/* Override any gcc2 internal prototype to avoid an error. */
30207#ifdef __cplusplus
30208extern "C"
30209{
30210#endif
30211/* We use char because int might match the return type of a gcc2
30212 builtin and then its argument prototype would still apply. */
30213char $ac_func ();
30214/* The GNU C library defines this for functions which it implements
30215 to always fail with ENOSYS. Some functions are actually named
30216 something starting with __ and the normal name is an alias. */
30217#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30218choke me
30219#else
30220char (*f) () = $ac_func;
30221#endif
30222#ifdef __cplusplus
30223}
30224#endif
30225
30226int
30227main ()
30228{
30229return f != $ac_func;
30230 ;
30231 return 0;
30232}
30233_ACEOF
30234rm -f conftest.$ac_objext conftest$ac_exeext
30235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30236 (eval $ac_link) 2>conftest.er1
a848cd7e 30237 ac_status=$?
ac1cb8d3
VS
30238 grep -v '^ *+' conftest.er1 >conftest.err
30239 rm -f conftest.er1
30240 cat conftest.err >&5
a848cd7e
SC
30241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30242 (exit $ac_status); } &&
ea7db9ff
DE
30243 { ac_try='test -z "$ac_c_werror_flag"
30244 || test ! -s conftest.err'
ac1cb8d3
VS
30245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30246 (eval $ac_try) 2>&5
30247 ac_status=$?
30248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30249 (exit $ac_status); }; } &&
30250 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30252 (eval $ac_try) 2>&5
30253 ac_status=$?
30254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30255 (exit $ac_status); }; }; then
30256 eval "$as_ac_var=yes"
30257else
30258 echo "$as_me: failed program was:" >&5
30259sed 's/^/| /' conftest.$ac_ext >&5
30260
30261eval "$as_ac_var=no"
30262fi
ac1cb8d3
VS
30263rm -f conftest.err conftest.$ac_objext \
30264 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30265fi
30266echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30267echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30268if test `eval echo '${'$as_ac_var'}'` = yes; then
30269 cat >>confdefs.h <<_ACEOF
30270#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30271_ACEOF
30272
30273fi
30274done
30275
30276
30277
30278
30279for ac_func in putenv setenv
30280do
30281as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30282echo "$as_me:$LINENO: checking for $ac_func" >&5
30283echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30284if eval "test \"\${$as_ac_var+set}\" = set"; then
30285 echo $ECHO_N "(cached) $ECHO_C" >&6
30286else
30287 cat >conftest.$ac_ext <<_ACEOF
30288/* confdefs.h. */
30289_ACEOF
30290cat confdefs.h >>conftest.$ac_ext
30291cat >>conftest.$ac_ext <<_ACEOF
30292/* end confdefs.h. */
ac1cb8d3
VS
30293/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30294 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30295#define $ac_func innocuous_$ac_func
30296
a848cd7e
SC
30297/* System header to define __stub macros and hopefully few prototypes,
30298 which can conflict with char $ac_func (); below.
30299 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30300 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30301
a848cd7e
SC
30302#ifdef __STDC__
30303# include <limits.h>
30304#else
30305# include <assert.h>
30306#endif
ac1cb8d3
VS
30307
30308#undef $ac_func
30309
a848cd7e
SC
30310/* Override any gcc2 internal prototype to avoid an error. */
30311#ifdef __cplusplus
30312extern "C"
30313{
30314#endif
30315/* We use char because int might match the return type of a gcc2
30316 builtin and then its argument prototype would still apply. */
30317char $ac_func ();
30318/* The GNU C library defines this for functions which it implements
30319 to always fail with ENOSYS. Some functions are actually named
30320 something starting with __ and the normal name is an alias. */
30321#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30322choke me
30323#else
30324char (*f) () = $ac_func;
30325#endif
30326#ifdef __cplusplus
30327}
30328#endif
30329
30330int
30331main ()
30332{
30333return f != $ac_func;
30334 ;
30335 return 0;
30336}
30337_ACEOF
30338rm -f conftest.$ac_objext conftest$ac_exeext
30339if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30340 (eval $ac_link) 2>conftest.er1
a848cd7e 30341 ac_status=$?
ac1cb8d3
VS
30342 grep -v '^ *+' conftest.er1 >conftest.err
30343 rm -f conftest.er1
30344 cat conftest.err >&5
a848cd7e
SC
30345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30346 (exit $ac_status); } &&
ea7db9ff
DE
30347 { ac_try='test -z "$ac_c_werror_flag"
30348 || test ! -s conftest.err'
ac1cb8d3
VS
30349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30350 (eval $ac_try) 2>&5
30351 ac_status=$?
30352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30353 (exit $ac_status); }; } &&
30354 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30356 (eval $ac_try) 2>&5
30357 ac_status=$?
30358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30359 (exit $ac_status); }; }; then
30360 eval "$as_ac_var=yes"
30361else
30362 echo "$as_me: failed program was:" >&5
30363sed 's/^/| /' conftest.$ac_ext >&5
30364
30365eval "$as_ac_var=no"
30366fi
ac1cb8d3
VS
30367rm -f conftest.err conftest.$ac_objext \
30368 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30369fi
30370echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30371echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30372if test `eval echo '${'$as_ac_var'}'` = yes; then
30373 cat >>confdefs.h <<_ACEOF
30374#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30375_ACEOF
30376 break
30377fi
30378done
30379
30380
30381HAVE_SOME_SLEEP_FUNC=0
30382if test "$USE_BEOS" = 1; then
30383 cat >>confdefs.h <<\_ACEOF
30384#define HAVE_SLEEP 1
30385_ACEOF
30386
30387 HAVE_SOME_SLEEP_FUNC=1
30388fi
30389
30390if test "$USE_DARWIN" = 1; then
30391 cat >>confdefs.h <<\_ACEOF
30392#define HAVE_USLEEP 1
30393_ACEOF
30394
30395 HAVE_SOME_SLEEP_FUNC=1
30396fi
30397
30398if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
30399 POSIX4_LINK=
30400
30401for ac_func in nanosleep
30402do
30403as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30404echo "$as_me:$LINENO: checking for $ac_func" >&5
30405echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30406if eval "test \"\${$as_ac_var+set}\" = set"; then
30407 echo $ECHO_N "(cached) $ECHO_C" >&6
30408else
30409 cat >conftest.$ac_ext <<_ACEOF
30410/* confdefs.h. */
30411_ACEOF
30412cat confdefs.h >>conftest.$ac_ext
30413cat >>conftest.$ac_ext <<_ACEOF
30414/* end confdefs.h. */
ac1cb8d3
VS
30415/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30416 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30417#define $ac_func innocuous_$ac_func
30418
a848cd7e
SC
30419/* System header to define __stub macros and hopefully few prototypes,
30420 which can conflict with char $ac_func (); below.
30421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30422 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30423
a848cd7e
SC
30424#ifdef __STDC__
30425# include <limits.h>
30426#else
30427# include <assert.h>
30428#endif
ac1cb8d3
VS
30429
30430#undef $ac_func
30431
a848cd7e
SC
30432/* Override any gcc2 internal prototype to avoid an error. */
30433#ifdef __cplusplus
30434extern "C"
30435{
30436#endif
30437/* We use char because int might match the return type of a gcc2
30438 builtin and then its argument prototype would still apply. */
30439char $ac_func ();
30440/* The GNU C library defines this for functions which it implements
30441 to always fail with ENOSYS. Some functions are actually named
30442 something starting with __ and the normal name is an alias. */
30443#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30444choke me
30445#else
30446char (*f) () = $ac_func;
30447#endif
30448#ifdef __cplusplus
30449}
30450#endif
30451
30452int
30453main ()
30454{
30455return f != $ac_func;
30456 ;
30457 return 0;
30458}
30459_ACEOF
30460rm -f conftest.$ac_objext conftest$ac_exeext
30461if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30462 (eval $ac_link) 2>conftest.er1
a848cd7e 30463 ac_status=$?
ac1cb8d3
VS
30464 grep -v '^ *+' conftest.er1 >conftest.err
30465 rm -f conftest.er1
30466 cat conftest.err >&5
a848cd7e
SC
30467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30468 (exit $ac_status); } &&
ea7db9ff
DE
30469 { ac_try='test -z "$ac_c_werror_flag"
30470 || test ! -s conftest.err'
ac1cb8d3
VS
30471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30472 (eval $ac_try) 2>&5
30473 ac_status=$?
30474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30475 (exit $ac_status); }; } &&
30476 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30478 (eval $ac_try) 2>&5
30479 ac_status=$?
30480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30481 (exit $ac_status); }; }; then
30482 eval "$as_ac_var=yes"
30483else
30484 echo "$as_me: failed program was:" >&5
30485sed 's/^/| /' conftest.$ac_ext >&5
30486
30487eval "$as_ac_var=no"
30488fi
ac1cb8d3
VS
30489rm -f conftest.err conftest.$ac_objext \
30490 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30491fi
30492echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30493echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30494if test `eval echo '${'$as_ac_var'}'` = yes; then
30495 cat >>confdefs.h <<_ACEOF
30496#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30497_ACEOF
30498 cat >>confdefs.h <<\_ACEOF
30499#define HAVE_NANOSLEEP 1
30500_ACEOF
30501
30502else
30503
30504 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
30505echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
30506if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
30507 echo $ECHO_N "(cached) $ECHO_C" >&6
30508else
30509 ac_check_lib_save_LIBS=$LIBS
30510LIBS="-lposix4 $LIBS"
30511cat >conftest.$ac_ext <<_ACEOF
30512/* confdefs.h. */
30513_ACEOF
30514cat confdefs.h >>conftest.$ac_ext
30515cat >>conftest.$ac_ext <<_ACEOF
30516/* end confdefs.h. */
30517
30518/* Override any gcc2 internal prototype to avoid an error. */
30519#ifdef __cplusplus
30520extern "C"
30521#endif
30522/* We use char because int might match the return type of a gcc2
30523 builtin and then its argument prototype would still apply. */
30524char nanosleep ();
30525int
30526main ()
30527{
30528nanosleep ();
30529 ;
30530 return 0;
30531}
30532_ACEOF
30533rm -f conftest.$ac_objext conftest$ac_exeext
30534if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30535 (eval $ac_link) 2>conftest.er1
a848cd7e 30536 ac_status=$?
ac1cb8d3
VS
30537 grep -v '^ *+' conftest.er1 >conftest.err
30538 rm -f conftest.er1
30539 cat conftest.err >&5
a848cd7e
SC
30540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30541 (exit $ac_status); } &&
ea7db9ff
DE
30542 { ac_try='test -z "$ac_c_werror_flag"
30543 || test ! -s conftest.err'
ac1cb8d3
VS
30544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30545 (eval $ac_try) 2>&5
30546 ac_status=$?
30547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30548 (exit $ac_status); }; } &&
30549 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30551 (eval $ac_try) 2>&5
30552 ac_status=$?
30553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30554 (exit $ac_status); }; }; then
30555 ac_cv_lib_posix4_nanosleep=yes
30556else
30557 echo "$as_me: failed program was:" >&5
30558sed 's/^/| /' conftest.$ac_ext >&5
30559
30560ac_cv_lib_posix4_nanosleep=no
30561fi
ac1cb8d3
VS
30562rm -f conftest.err conftest.$ac_objext \
30563 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30564LIBS=$ac_check_lib_save_LIBS
30565fi
30566echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
30567echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
30568if test $ac_cv_lib_posix4_nanosleep = yes; then
30569
30570 cat >>confdefs.h <<\_ACEOF
30571#define HAVE_NANOSLEEP 1
30572_ACEOF
30573
30574 POSIX4_LINK=" -lposix4"
30575
30576else
30577
30578
30579for ac_func in usleep
30580do
30581as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30582echo "$as_me:$LINENO: checking for $ac_func" >&5
30583echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30584if eval "test \"\${$as_ac_var+set}\" = set"; then
30585 echo $ECHO_N "(cached) $ECHO_C" >&6
30586else
30587 cat >conftest.$ac_ext <<_ACEOF
30588/* confdefs.h. */
30589_ACEOF
30590cat confdefs.h >>conftest.$ac_ext
30591cat >>conftest.$ac_ext <<_ACEOF
30592/* end confdefs.h. */
ac1cb8d3
VS
30593/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30595#define $ac_func innocuous_$ac_func
30596
a848cd7e
SC
30597/* System header to define __stub macros and hopefully few prototypes,
30598 which can conflict with char $ac_func (); below.
30599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30600 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30601
a848cd7e
SC
30602#ifdef __STDC__
30603# include <limits.h>
30604#else
30605# include <assert.h>
30606#endif
ac1cb8d3
VS
30607
30608#undef $ac_func
30609
a848cd7e
SC
30610/* Override any gcc2 internal prototype to avoid an error. */
30611#ifdef __cplusplus
30612extern "C"
30613{
30614#endif
30615/* We use char because int might match the return type of a gcc2
30616 builtin and then its argument prototype would still apply. */
30617char $ac_func ();
30618/* The GNU C library defines this for functions which it implements
30619 to always fail with ENOSYS. Some functions are actually named
30620 something starting with __ and the normal name is an alias. */
30621#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30622choke me
30623#else
30624char (*f) () = $ac_func;
30625#endif
30626#ifdef __cplusplus
30627}
30628#endif
30629
30630int
30631main ()
30632{
30633return f != $ac_func;
30634 ;
30635 return 0;
30636}
30637_ACEOF
30638rm -f conftest.$ac_objext conftest$ac_exeext
30639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30640 (eval $ac_link) 2>conftest.er1
a848cd7e 30641 ac_status=$?
ac1cb8d3
VS
30642 grep -v '^ *+' conftest.er1 >conftest.err
30643 rm -f conftest.er1
30644 cat conftest.err >&5
a848cd7e
SC
30645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30646 (exit $ac_status); } &&
ea7db9ff
DE
30647 { ac_try='test -z "$ac_c_werror_flag"
30648 || test ! -s conftest.err'
ac1cb8d3
VS
30649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30650 (eval $ac_try) 2>&5
30651 ac_status=$?
30652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30653 (exit $ac_status); }; } &&
30654 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30656 (eval $ac_try) 2>&5
30657 ac_status=$?
30658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30659 (exit $ac_status); }; }; then
30660 eval "$as_ac_var=yes"
30661else
30662 echo "$as_me: failed program was:" >&5
30663sed 's/^/| /' conftest.$ac_ext >&5
30664
30665eval "$as_ac_var=no"
30666fi
ac1cb8d3
VS
30667rm -f conftest.err conftest.$ac_objext \
30668 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30669fi
30670echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30671echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30672if test `eval echo '${'$as_ac_var'}'` = yes; then
30673 cat >>confdefs.h <<_ACEOF
30674#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30675_ACEOF
30676 cat >>confdefs.h <<\_ACEOF
30677#define HAVE_USLEEP 1
30678_ACEOF
30679
30680else
30681 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
30682echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
30683
30684fi
30685done
30686
30687
30688
30689fi
30690
30691
30692
30693fi
30694done
30695
30696fi
30697
30698
30699
30700for ac_func in uname gethostname
30701do
30702as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30703echo "$as_me:$LINENO: checking for $ac_func" >&5
30704echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30705if eval "test \"\${$as_ac_var+set}\" = set"; then
30706 echo $ECHO_N "(cached) $ECHO_C" >&6
30707else
30708 cat >conftest.$ac_ext <<_ACEOF
30709/* confdefs.h. */
30710_ACEOF
30711cat confdefs.h >>conftest.$ac_ext
30712cat >>conftest.$ac_ext <<_ACEOF
30713/* end confdefs.h. */
ac1cb8d3
VS
30714/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30716#define $ac_func innocuous_$ac_func
30717
a848cd7e
SC
30718/* System header to define __stub macros and hopefully few prototypes,
30719 which can conflict with char $ac_func (); below.
30720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30721 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30722
a848cd7e
SC
30723#ifdef __STDC__
30724# include <limits.h>
30725#else
30726# include <assert.h>
30727#endif
ac1cb8d3
VS
30728
30729#undef $ac_func
30730
a848cd7e
SC
30731/* Override any gcc2 internal prototype to avoid an error. */
30732#ifdef __cplusplus
30733extern "C"
30734{
30735#endif
30736/* We use char because int might match the return type of a gcc2
30737 builtin and then its argument prototype would still apply. */
30738char $ac_func ();
30739/* The GNU C library defines this for functions which it implements
30740 to always fail with ENOSYS. Some functions are actually named
30741 something starting with __ and the normal name is an alias. */
30742#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30743choke me
30744#else
30745char (*f) () = $ac_func;
30746#endif
30747#ifdef __cplusplus
30748}
30749#endif
30750
30751int
30752main ()
30753{
30754return f != $ac_func;
30755 ;
30756 return 0;
30757}
30758_ACEOF
30759rm -f conftest.$ac_objext conftest$ac_exeext
30760if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30761 (eval $ac_link) 2>conftest.er1
a848cd7e 30762 ac_status=$?
ac1cb8d3
VS
30763 grep -v '^ *+' conftest.er1 >conftest.err
30764 rm -f conftest.er1
30765 cat conftest.err >&5
a848cd7e
SC
30766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30767 (exit $ac_status); } &&
ea7db9ff
DE
30768 { ac_try='test -z "$ac_c_werror_flag"
30769 || test ! -s conftest.err'
ac1cb8d3
VS
30770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30771 (eval $ac_try) 2>&5
30772 ac_status=$?
30773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30774 (exit $ac_status); }; } &&
30775 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30777 (eval $ac_try) 2>&5
30778 ac_status=$?
30779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30780 (exit $ac_status); }; }; then
30781 eval "$as_ac_var=yes"
30782else
30783 echo "$as_me: failed program was:" >&5
30784sed 's/^/| /' conftest.$ac_ext >&5
30785
30786eval "$as_ac_var=no"
30787fi
ac1cb8d3
VS
30788rm -f conftest.err conftest.$ac_objext \
30789 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30790fi
30791echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30792echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30793if test `eval echo '${'$as_ac_var'}'` = yes; then
30794 cat >>confdefs.h <<_ACEOF
30795#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30796_ACEOF
30797 break
30798fi
30799done
30800
30801
30802
30803
30804ac_ext=cc
30805ac_cpp='$CXXCPP $CPPFLAGS'
30806ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30807ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30808ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30809
30810
30811
30812for ac_func in strtok_r
30813do
30814as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30815echo "$as_me:$LINENO: checking for $ac_func" >&5
30816echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30817if eval "test \"\${$as_ac_var+set}\" = set"; then
30818 echo $ECHO_N "(cached) $ECHO_C" >&6
30819else
30820 cat >conftest.$ac_ext <<_ACEOF
30821/* confdefs.h. */
30822_ACEOF
30823cat confdefs.h >>conftest.$ac_ext
30824cat >>conftest.$ac_ext <<_ACEOF
30825/* end confdefs.h. */
ac1cb8d3
VS
30826/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30828#define $ac_func innocuous_$ac_func
30829
a848cd7e
SC
30830/* System header to define __stub macros and hopefully few prototypes,
30831 which can conflict with char $ac_func (); below.
30832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30833 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30834
a848cd7e
SC
30835#ifdef __STDC__
30836# include <limits.h>
30837#else
30838# include <assert.h>
30839#endif
ac1cb8d3
VS
30840
30841#undef $ac_func
30842
a848cd7e
SC
30843/* Override any gcc2 internal prototype to avoid an error. */
30844#ifdef __cplusplus
30845extern "C"
30846{
30847#endif
30848/* We use char because int might match the return type of a gcc2
30849 builtin and then its argument prototype would still apply. */
30850char $ac_func ();
30851/* The GNU C library defines this for functions which it implements
30852 to always fail with ENOSYS. Some functions are actually named
30853 something starting with __ and the normal name is an alias. */
30854#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30855choke me
30856#else
30857char (*f) () = $ac_func;
30858#endif
30859#ifdef __cplusplus
30860}
30861#endif
30862
30863int
30864main ()
30865{
30866return f != $ac_func;
30867 ;
30868 return 0;
30869}
30870_ACEOF
30871rm -f conftest.$ac_objext conftest$ac_exeext
30872if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30873 (eval $ac_link) 2>conftest.er1
a848cd7e 30874 ac_status=$?
ac1cb8d3
VS
30875 grep -v '^ *+' conftest.er1 >conftest.err
30876 rm -f conftest.er1
30877 cat conftest.err >&5
a848cd7e
SC
30878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30879 (exit $ac_status); } &&
ea7db9ff
DE
30880 { ac_try='test -z "$ac_cxx_werror_flag"
30881 || test ! -s conftest.err'
ac1cb8d3
VS
30882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30883 (eval $ac_try) 2>&5
30884 ac_status=$?
30885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30886 (exit $ac_status); }; } &&
30887 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30889 (eval $ac_try) 2>&5
30890 ac_status=$?
30891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30892 (exit $ac_status); }; }; then
30893 eval "$as_ac_var=yes"
30894else
30895 echo "$as_me: failed program was:" >&5
30896sed 's/^/| /' conftest.$ac_ext >&5
30897
30898eval "$as_ac_var=no"
30899fi
ac1cb8d3
VS
30900rm -f conftest.err conftest.$ac_objext \
30901 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30902fi
30903echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30904echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30905if test `eval echo '${'$as_ac_var'}'` = yes; then
30906 cat >>confdefs.h <<_ACEOF
30907#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30908_ACEOF
30909
30910fi
30911done
30912
30913
30914ac_ext=c
30915ac_cpp='$CPP $CPPFLAGS'
30916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30918ac_compiler_gnu=$ac_cv_c_compiler_gnu
30919
30920
30921INET_LINK=
30922
30923for ac_func in inet_addr
30924do
30925as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30926echo "$as_me:$LINENO: checking for $ac_func" >&5
30927echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30928if eval "test \"\${$as_ac_var+set}\" = set"; then
30929 echo $ECHO_N "(cached) $ECHO_C" >&6
30930else
30931 cat >conftest.$ac_ext <<_ACEOF
30932/* confdefs.h. */
30933_ACEOF
30934cat confdefs.h >>conftest.$ac_ext
30935cat >>conftest.$ac_ext <<_ACEOF
30936/* end confdefs.h. */
ac1cb8d3
VS
30937/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30938 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30939#define $ac_func innocuous_$ac_func
30940
a848cd7e
SC
30941/* System header to define __stub macros and hopefully few prototypes,
30942 which can conflict with char $ac_func (); below.
30943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30944 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30945
a848cd7e
SC
30946#ifdef __STDC__
30947# include <limits.h>
30948#else
30949# include <assert.h>
30950#endif
ac1cb8d3
VS
30951
30952#undef $ac_func
30953
a848cd7e
SC
30954/* Override any gcc2 internal prototype to avoid an error. */
30955#ifdef __cplusplus
30956extern "C"
30957{
30958#endif
30959/* We use char because int might match the return type of a gcc2
30960 builtin and then its argument prototype would still apply. */
30961char $ac_func ();
30962/* The GNU C library defines this for functions which it implements
30963 to always fail with ENOSYS. Some functions are actually named
30964 something starting with __ and the normal name is an alias. */
30965#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30966choke me
30967#else
30968char (*f) () = $ac_func;
30969#endif
30970#ifdef __cplusplus
30971}
30972#endif
30973
30974int
30975main ()
30976{
30977return f != $ac_func;
30978 ;
30979 return 0;
30980}
30981_ACEOF
30982rm -f conftest.$ac_objext conftest$ac_exeext
30983if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30984 (eval $ac_link) 2>conftest.er1
a848cd7e 30985 ac_status=$?
ac1cb8d3
VS
30986 grep -v '^ *+' conftest.er1 >conftest.err
30987 rm -f conftest.er1
30988 cat conftest.err >&5
a848cd7e
SC
30989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30990 (exit $ac_status); } &&
ea7db9ff
DE
30991 { ac_try='test -z "$ac_c_werror_flag"
30992 || test ! -s conftest.err'
ac1cb8d3
VS
30993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30994 (eval $ac_try) 2>&5
30995 ac_status=$?
30996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30997 (exit $ac_status); }; } &&
30998 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31000 (eval $ac_try) 2>&5
31001 ac_status=$?
31002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31003 (exit $ac_status); }; }; then
31004 eval "$as_ac_var=yes"
31005else
31006 echo "$as_me: failed program was:" >&5
31007sed 's/^/| /' conftest.$ac_ext >&5
31008
31009eval "$as_ac_var=no"
31010fi
ac1cb8d3
VS
31011rm -f conftest.err conftest.$ac_objext \
31012 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31013fi
31014echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31015echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31016if test `eval echo '${'$as_ac_var'}'` = yes; then
31017 cat >>confdefs.h <<_ACEOF
31018#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31019_ACEOF
31020 cat >>confdefs.h <<\_ACEOF
31021#define HAVE_INET_ADDR 1
31022_ACEOF
31023
31024else
31025
31026 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
31027echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
31028if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
31029 echo $ECHO_N "(cached) $ECHO_C" >&6
31030else
31031 ac_check_lib_save_LIBS=$LIBS
31032LIBS="-lnsl $LIBS"
31033cat >conftest.$ac_ext <<_ACEOF
31034/* confdefs.h. */
31035_ACEOF
31036cat confdefs.h >>conftest.$ac_ext
31037cat >>conftest.$ac_ext <<_ACEOF
31038/* end confdefs.h. */
31039
31040/* Override any gcc2 internal prototype to avoid an error. */
31041#ifdef __cplusplus
31042extern "C"
31043#endif
31044/* We use char because int might match the return type of a gcc2
31045 builtin and then its argument prototype would still apply. */
31046char inet_addr ();
31047int
31048main ()
31049{
31050inet_addr ();
31051 ;
31052 return 0;
31053}
31054_ACEOF
31055rm -f conftest.$ac_objext conftest$ac_exeext
31056if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31057 (eval $ac_link) 2>conftest.er1
a848cd7e 31058 ac_status=$?
ac1cb8d3
VS
31059 grep -v '^ *+' conftest.er1 >conftest.err
31060 rm -f conftest.er1
31061 cat conftest.err >&5
a848cd7e
SC
31062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31063 (exit $ac_status); } &&
ea7db9ff
DE
31064 { ac_try='test -z "$ac_c_werror_flag"
31065 || test ! -s conftest.err'
ac1cb8d3
VS
31066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31067 (eval $ac_try) 2>&5
31068 ac_status=$?
31069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31070 (exit $ac_status); }; } &&
31071 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31073 (eval $ac_try) 2>&5
31074 ac_status=$?
31075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31076 (exit $ac_status); }; }; then
31077 ac_cv_lib_nsl_inet_addr=yes
31078else
31079 echo "$as_me: failed program was:" >&5
31080sed 's/^/| /' conftest.$ac_ext >&5
31081
31082ac_cv_lib_nsl_inet_addr=no
31083fi
ac1cb8d3
VS
31084rm -f conftest.err conftest.$ac_objext \
31085 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31086LIBS=$ac_check_lib_save_LIBS
31087fi
31088echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
31089echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
31090if test $ac_cv_lib_nsl_inet_addr = yes; then
31091 INET_LINK="nsl"
31092else
31093
31094 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
31095echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
31096if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
31097 echo $ECHO_N "(cached) $ECHO_C" >&6
31098else
31099 ac_check_lib_save_LIBS=$LIBS
31100LIBS="-lresolv $LIBS"
31101cat >conftest.$ac_ext <<_ACEOF
31102/* confdefs.h. */
31103_ACEOF
31104cat confdefs.h >>conftest.$ac_ext
31105cat >>conftest.$ac_ext <<_ACEOF
31106/* end confdefs.h. */
31107
31108/* Override any gcc2 internal prototype to avoid an error. */
31109#ifdef __cplusplus
31110extern "C"
31111#endif
31112/* We use char because int might match the return type of a gcc2
31113 builtin and then its argument prototype would still apply. */
31114char inet_addr ();
31115int
31116main ()
31117{
31118inet_addr ();
31119 ;
31120 return 0;
31121}
31122_ACEOF
31123rm -f conftest.$ac_objext conftest$ac_exeext
31124if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31125 (eval $ac_link) 2>conftest.er1
a848cd7e 31126 ac_status=$?
ac1cb8d3
VS
31127 grep -v '^ *+' conftest.er1 >conftest.err
31128 rm -f conftest.er1
31129 cat conftest.err >&5
a848cd7e
SC
31130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31131 (exit $ac_status); } &&
ea7db9ff
DE
31132 { ac_try='test -z "$ac_c_werror_flag"
31133 || test ! -s conftest.err'
ac1cb8d3
VS
31134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31135 (eval $ac_try) 2>&5
31136 ac_status=$?
31137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31138 (exit $ac_status); }; } &&
31139 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31141 (eval $ac_try) 2>&5
31142 ac_status=$?
31143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31144 (exit $ac_status); }; }; then
31145 ac_cv_lib_resolv_inet_addr=yes
31146else
31147 echo "$as_me: failed program was:" >&5
31148sed 's/^/| /' conftest.$ac_ext >&5
31149
31150ac_cv_lib_resolv_inet_addr=no
31151fi
ac1cb8d3
VS
31152rm -f conftest.err conftest.$ac_objext \
31153 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31154LIBS=$ac_check_lib_save_LIBS
31155fi
31156echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
31157echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
31158if test $ac_cv_lib_resolv_inet_addr = yes; then
31159 INET_LINK="resolv"
31160else
31161
31162 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
31163echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
31164if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
31165 echo $ECHO_N "(cached) $ECHO_C" >&6
31166else
31167 ac_check_lib_save_LIBS=$LIBS
31168LIBS="-lsocket $LIBS"
31169cat >conftest.$ac_ext <<_ACEOF
31170/* confdefs.h. */
31171_ACEOF
31172cat confdefs.h >>conftest.$ac_ext
31173cat >>conftest.$ac_ext <<_ACEOF
31174/* end confdefs.h. */
31175
31176/* Override any gcc2 internal prototype to avoid an error. */
31177#ifdef __cplusplus
31178extern "C"
31179#endif
31180/* We use char because int might match the return type of a gcc2
31181 builtin and then its argument prototype would still apply. */
31182char inet_addr ();
31183int
31184main ()
31185{
31186inet_addr ();
31187 ;
31188 return 0;
31189}
31190_ACEOF
31191rm -f conftest.$ac_objext conftest$ac_exeext
31192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31193 (eval $ac_link) 2>conftest.er1
a848cd7e 31194 ac_status=$?
ac1cb8d3
VS
31195 grep -v '^ *+' conftest.er1 >conftest.err
31196 rm -f conftest.er1
31197 cat conftest.err >&5
a848cd7e
SC
31198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31199 (exit $ac_status); } &&
ea7db9ff
DE
31200 { ac_try='test -z "$ac_c_werror_flag"
31201 || test ! -s conftest.err'
ac1cb8d3
VS
31202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31203 (eval $ac_try) 2>&5
31204 ac_status=$?
31205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31206 (exit $ac_status); }; } &&
31207 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31209 (eval $ac_try) 2>&5
31210 ac_status=$?
31211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31212 (exit $ac_status); }; }; then
31213 ac_cv_lib_socket_inet_addr=yes
31214else
31215 echo "$as_me: failed program was:" >&5
31216sed 's/^/| /' conftest.$ac_ext >&5
31217
31218ac_cv_lib_socket_inet_addr=no
31219fi
ac1cb8d3
VS
31220rm -f conftest.err conftest.$ac_objext \
31221 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31222LIBS=$ac_check_lib_save_LIBS
31223fi
31224echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
31225echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
31226if test $ac_cv_lib_socket_inet_addr = yes; then
31227 INET_LINK="socket"
31228
31229fi
31230
31231
31232
31233fi
31234
31235
31236
31237fi
31238
31239
31240
31241fi
31242done
31243
31244
31245
31246for ac_func in inet_aton
31247do
31248as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31249echo "$as_me:$LINENO: checking for $ac_func" >&5
31250echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31251if eval "test \"\${$as_ac_var+set}\" = set"; then
31252 echo $ECHO_N "(cached) $ECHO_C" >&6
31253else
31254 cat >conftest.$ac_ext <<_ACEOF
31255/* confdefs.h. */
31256_ACEOF
31257cat confdefs.h >>conftest.$ac_ext
31258cat >>conftest.$ac_ext <<_ACEOF
31259/* end confdefs.h. */
ac1cb8d3
VS
31260/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31261 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31262#define $ac_func innocuous_$ac_func
31263
a848cd7e
SC
31264/* System header to define __stub macros and hopefully few prototypes,
31265 which can conflict with char $ac_func (); below.
31266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31267 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31268
a848cd7e
SC
31269#ifdef __STDC__
31270# include <limits.h>
31271#else
31272# include <assert.h>
31273#endif
ac1cb8d3
VS
31274
31275#undef $ac_func
31276
a848cd7e
SC
31277/* Override any gcc2 internal prototype to avoid an error. */
31278#ifdef __cplusplus
31279extern "C"
31280{
31281#endif
31282/* We use char because int might match the return type of a gcc2
31283 builtin and then its argument prototype would still apply. */
31284char $ac_func ();
31285/* The GNU C library defines this for functions which it implements
31286 to always fail with ENOSYS. Some functions are actually named
31287 something starting with __ and the normal name is an alias. */
31288#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31289choke me
31290#else
31291char (*f) () = $ac_func;
31292#endif
31293#ifdef __cplusplus
31294}
31295#endif
31296
31297int
31298main ()
31299{
31300return f != $ac_func;
31301 ;
31302 return 0;
31303}
31304_ACEOF
31305rm -f conftest.$ac_objext conftest$ac_exeext
31306if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31307 (eval $ac_link) 2>conftest.er1
a848cd7e 31308 ac_status=$?
ac1cb8d3
VS
31309 grep -v '^ *+' conftest.er1 >conftest.err
31310 rm -f conftest.er1
31311 cat conftest.err >&5
a848cd7e
SC
31312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31313 (exit $ac_status); } &&
ea7db9ff
DE
31314 { ac_try='test -z "$ac_c_werror_flag"
31315 || test ! -s conftest.err'
ac1cb8d3
VS
31316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31317 (eval $ac_try) 2>&5
31318 ac_status=$?
31319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31320 (exit $ac_status); }; } &&
31321 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31323 (eval $ac_try) 2>&5
31324 ac_status=$?
31325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31326 (exit $ac_status); }; }; then
31327 eval "$as_ac_var=yes"
31328else
31329 echo "$as_me: failed program was:" >&5
31330sed 's/^/| /' conftest.$ac_ext >&5
31331
31332eval "$as_ac_var=no"
31333fi
ac1cb8d3
VS
31334rm -f conftest.err conftest.$ac_objext \
31335 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31336fi
31337echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31338echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31339if test `eval echo '${'$as_ac_var'}'` = yes; then
31340 cat >>confdefs.h <<_ACEOF
31341#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31342_ACEOF
31343 cat >>confdefs.h <<\_ACEOF
31344#define HAVE_INET_ATON 1
31345_ACEOF
31346
31347else
31348
31349 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
31350echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
31351echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
31352if eval "test \"\${$as_ac_Lib+set}\" = set"; then
31353 echo $ECHO_N "(cached) $ECHO_C" >&6
31354else
31355 ac_check_lib_save_LIBS=$LIBS
31356LIBS="-l$INET_LINK $LIBS"
31357cat >conftest.$ac_ext <<_ACEOF
31358/* confdefs.h. */
31359_ACEOF
31360cat confdefs.h >>conftest.$ac_ext
31361cat >>conftest.$ac_ext <<_ACEOF
31362/* end confdefs.h. */
31363
31364/* Override any gcc2 internal prototype to avoid an error. */
31365#ifdef __cplusplus
31366extern "C"
31367#endif
31368/* We use char because int might match the return type of a gcc2
31369 builtin and then its argument prototype would still apply. */
31370char inet_aton ();
31371int
31372main ()
31373{
31374inet_aton ();
31375 ;
31376 return 0;
31377}
31378_ACEOF
31379rm -f conftest.$ac_objext conftest$ac_exeext
31380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31381 (eval $ac_link) 2>conftest.er1
a848cd7e 31382 ac_status=$?
ac1cb8d3
VS
31383 grep -v '^ *+' conftest.er1 >conftest.err
31384 rm -f conftest.er1
31385 cat conftest.err >&5
a848cd7e
SC
31386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31387 (exit $ac_status); } &&
ea7db9ff
DE
31388 { ac_try='test -z "$ac_c_werror_flag"
31389 || test ! -s conftest.err'
ac1cb8d3
VS
31390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31391 (eval $ac_try) 2>&5
31392 ac_status=$?
31393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31394 (exit $ac_status); }; } &&
31395 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31397 (eval $ac_try) 2>&5
31398 ac_status=$?
31399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31400 (exit $ac_status); }; }; then
31401 eval "$as_ac_Lib=yes"
31402else
31403 echo "$as_me: failed program was:" >&5
31404sed 's/^/| /' conftest.$ac_ext >&5
31405
31406eval "$as_ac_Lib=no"
31407fi
ac1cb8d3
VS
31408rm -f conftest.err conftest.$ac_objext \
31409 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31410LIBS=$ac_check_lib_save_LIBS
31411fi
31412echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
31413echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
31414if test `eval echo '${'$as_ac_Lib'}'` = yes; then
31415 cat >>confdefs.h <<\_ACEOF
31416#define HAVE_INET_ATON 1
31417_ACEOF
31418
31419fi
31420
31421
31422fi
31423done
31424
31425
31426if test "x$INET_LINK" != "x"; then
31427 cat >>confdefs.h <<\_ACEOF
31428#define HAVE_INET_ADDR 1
31429_ACEOF
31430
31431 INET_LINK=" -l$INET_LINK"
31432fi
31433
31434fi
31435
31436
31437
31438EXTRALIBS_ESD=
31439echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
31440echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
31441if test "${ac_cv_lib_esd_esd_close+set}" = set; then
31442 echo $ECHO_N "(cached) $ECHO_C" >&6
31443else
31444 ac_check_lib_save_LIBS=$LIBS
31445LIBS="-lesd $LIBS"
31446cat >conftest.$ac_ext <<_ACEOF
31447/* confdefs.h. */
31448_ACEOF
31449cat confdefs.h >>conftest.$ac_ext
31450cat >>conftest.$ac_ext <<_ACEOF
31451/* end confdefs.h. */
31452
31453/* Override any gcc2 internal prototype to avoid an error. */
31454#ifdef __cplusplus
31455extern "C"
31456#endif
31457/* We use char because int might match the return type of a gcc2
31458 builtin and then its argument prototype would still apply. */
31459char esd_close ();
31460int
31461main ()
31462{
31463esd_close ();
31464 ;
31465 return 0;
31466}
31467_ACEOF
31468rm -f conftest.$ac_objext conftest$ac_exeext
31469if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31470 (eval $ac_link) 2>conftest.er1
a848cd7e 31471 ac_status=$?
ac1cb8d3
VS
31472 grep -v '^ *+' conftest.er1 >conftest.err
31473 rm -f conftest.er1
31474 cat conftest.err >&5
a848cd7e
SC
31475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31476 (exit $ac_status); } &&
ea7db9ff
DE
31477 { ac_try='test -z "$ac_c_werror_flag"
31478 || test ! -s conftest.err'
ac1cb8d3
VS
31479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31480 (eval $ac_try) 2>&5
31481 ac_status=$?
31482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31483 (exit $ac_status); }; } &&
31484 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31486 (eval $ac_try) 2>&5
31487 ac_status=$?
31488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31489 (exit $ac_status); }; }; then
31490 ac_cv_lib_esd_esd_close=yes
31491else
31492 echo "$as_me: failed program was:" >&5
31493sed 's/^/| /' conftest.$ac_ext >&5
31494
31495ac_cv_lib_esd_esd_close=no
31496fi
ac1cb8d3
VS
31497rm -f conftest.err conftest.$ac_objext \
31498 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31499LIBS=$ac_check_lib_save_LIBS
31500fi
31501echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
31502echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
31503if test $ac_cv_lib_esd_esd_close = yes; then
31504
31505
31506for ac_header in esd.h
31507do
31508as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31509if eval "test \"\${$as_ac_Header+set}\" = set"; then
31510 echo "$as_me:$LINENO: checking for $ac_header" >&5
31511echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31512if eval "test \"\${$as_ac_Header+set}\" = set"; then
31513 echo $ECHO_N "(cached) $ECHO_C" >&6
31514fi
31515echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31516echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31517else
31518 # Is the header compilable?
31519echo "$as_me:$LINENO: checking $ac_header usability" >&5
31520echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31521cat >conftest.$ac_ext <<_ACEOF
31522/* confdefs.h. */
31523_ACEOF
31524cat confdefs.h >>conftest.$ac_ext
31525cat >>conftest.$ac_ext <<_ACEOF
31526/* end confdefs.h. */
31527$ac_includes_default
31528#include <$ac_header>
31529_ACEOF
31530rm -f conftest.$ac_objext
31531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31532 (eval $ac_compile) 2>conftest.er1
a848cd7e 31533 ac_status=$?
ac1cb8d3
VS
31534 grep -v '^ *+' conftest.er1 >conftest.err
31535 rm -f conftest.er1
31536 cat conftest.err >&5
a848cd7e
SC
31537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31538 (exit $ac_status); } &&
ea7db9ff
DE
31539 { ac_try='test -z "$ac_c_werror_flag"
31540 || test ! -s conftest.err'
ac1cb8d3
VS
31541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31542 (eval $ac_try) 2>&5
31543 ac_status=$?
31544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31545 (exit $ac_status); }; } &&
31546 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31548 (eval $ac_try) 2>&5
31549 ac_status=$?
31550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31551 (exit $ac_status); }; }; then
31552 ac_header_compiler=yes
31553else
31554 echo "$as_me: failed program was:" >&5
31555sed 's/^/| /' conftest.$ac_ext >&5
31556
31557ac_header_compiler=no
31558fi
ac1cb8d3 31559rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31560echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31561echo "${ECHO_T}$ac_header_compiler" >&6
31562
31563# Is the header present?
31564echo "$as_me:$LINENO: checking $ac_header presence" >&5
31565echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31566cat >conftest.$ac_ext <<_ACEOF
31567/* confdefs.h. */
31568_ACEOF
31569cat confdefs.h >>conftest.$ac_ext
31570cat >>conftest.$ac_ext <<_ACEOF
31571/* end confdefs.h. */
31572#include <$ac_header>
31573_ACEOF
31574if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31575 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31576 ac_status=$?
31577 grep -v '^ *+' conftest.er1 >conftest.err
31578 rm -f conftest.er1
31579 cat conftest.err >&5
31580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31581 (exit $ac_status); } >/dev/null; then
31582 if test -s conftest.err; then
31583 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 31584 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
31585 else
31586 ac_cpp_err=
31587 fi
31588else
31589 ac_cpp_err=yes
31590fi
31591if test -z "$ac_cpp_err"; then
31592 ac_header_preproc=yes
31593else
31594 echo "$as_me: failed program was:" >&5
31595sed 's/^/| /' conftest.$ac_ext >&5
31596
31597 ac_header_preproc=no
31598fi
31599rm -f conftest.err conftest.$ac_ext
31600echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31601echo "${ECHO_T}$ac_header_preproc" >&6
31602
31603# So? What about this header?
ac1cb8d3
VS
31604case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31605 yes:no: )
a848cd7e
SC
31606 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31607echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
31608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31609echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31610 ac_header_preproc=yes
a848cd7e 31611 ;;
ac1cb8d3 31612 no:yes:* )
a848cd7e
SC
31613 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31614echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
31615 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31616echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31617 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31618echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31619 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31620echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
31621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31622echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
31623 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31624echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
31625 (
31626 cat <<\_ASBOX
ac1cb8d3
VS
31627## ----------------------------------------- ##
31628## Report this to wx-dev@lists.wxwidgets.org ##
31629## ----------------------------------------- ##
a848cd7e
SC
31630_ASBOX
31631 ) |
31632 sed "s/^/$as_me: WARNING: /" >&2
31633 ;;
31634esac
31635echo "$as_me:$LINENO: checking for $ac_header" >&5
31636echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31637if eval "test \"\${$as_ac_Header+set}\" = set"; then
31638 echo $ECHO_N "(cached) $ECHO_C" >&6
31639else
ac1cb8d3 31640 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
31641fi
31642echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31643echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31644
31645fi
31646if test `eval echo '${'$as_ac_Header'}'` = yes; then
31647 cat >>confdefs.h <<_ACEOF
31648#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31649_ACEOF
31650
31651 EXTRALIBS_ESD="-lesd"
31652
31653fi
31654
31655done
31656
31657
31658fi
31659
31660
31661
31662echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
31663echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
31664cat >conftest.$ac_ext <<_ACEOF
31665/* confdefs.h. */
31666_ACEOF
31667cat confdefs.h >>conftest.$ac_ext
31668cat >>conftest.$ac_ext <<_ACEOF
31669/* end confdefs.h. */
31670#ifdef __linux__
31671 #include <linux/cdrom.h>
31672 #else
31673 /* For Solaris */
31674 #include <sys/cdio.h>
31675 #endif
31676
31677int
31678main ()
31679{
31680struct cdrom_tocentry entry, old_entry;
31681 ;
31682 return 0;
31683}
31684_ACEOF
31685rm -f conftest.$ac_objext
31686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31687 (eval $ac_compile) 2>conftest.er1
a848cd7e 31688 ac_status=$?
ac1cb8d3
VS
31689 grep -v '^ *+' conftest.er1 >conftest.err
31690 rm -f conftest.er1
31691 cat conftest.err >&5
a848cd7e
SC
31692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31693 (exit $ac_status); } &&
ea7db9ff
DE
31694 { ac_try='test -z "$ac_c_werror_flag"
31695 || test ! -s conftest.err'
ac1cb8d3
VS
31696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31697 (eval $ac_try) 2>&5
31698 ac_status=$?
31699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31700 (exit $ac_status); }; } &&
31701 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31703 (eval $ac_try) 2>&5
31704 ac_status=$?
31705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31706 (exit $ac_status); }; }; then
31707 echo "$as_me:$LINENO: result: yes" >&5
31708echo "${ECHO_T}yes" >&6
31709 cat >>confdefs.h <<\_ACEOF
31710#define HAVE_KNOWN_CDROM_INTERFACE 1
31711_ACEOF
31712
31713else
31714 echo "$as_me: failed program was:" >&5
31715sed 's/^/| /' conftest.$ac_ext >&5
31716
31717echo "$as_me:$LINENO: result: no" >&5
31718echo "${ECHO_T}no" >&6
31719fi
ac1cb8d3 31720rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31721
31722
31723cat >confcache <<\_ACEOF
31724# This file is a shell script that caches the results of configure
31725# tests run on this system so they can be shared between configure
31726# scripts and configure runs, see configure's option --config-cache.
31727# It is not useful on other systems. If it contains results you don't
31728# want to keep, you may remove or edit it.
31729#
31730# config.status only pays attention to the cache file if you give it
31731# the --recheck option to rerun configure.
31732#
31733# `ac_cv_env_foo' variables (set or unset) will be overridden when
31734# loading this file, other *unset* `ac_cv_foo' will be assigned the
31735# following values.
31736
31737_ACEOF
31738
31739# The following way of writing the cache mishandles newlines in values,
31740# but we know of no workaround that is simple, portable, and efficient.
31741# So, don't put newlines in cache variables' values.
31742# Ultrix sh set writes to stderr and can't be redirected directly,
31743# and sets the high bit in the cache file unless we assign to the vars.
31744{
31745 (set) 2>&1 |
31746 case `(ac_space=' '; set | grep ac_space) 2>&1` in
31747 *ac_space=\ *)
31748 # `set' does not quote correctly, so add quotes (double-quote
31749 # substitution turns \\\\ into \\, and sed turns \\ into \).
31750 sed -n \
ac1cb8d3
VS
31751 "s/'/'\\\\''/g;
31752 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
31753 ;;
31754 *)
31755 # `set' quotes correctly as required by POSIX, so do not add quotes.
31756 sed -n \
ac1cb8d3 31757 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
31758 ;;
31759 esac;
31760} |
31761 sed '
31762 t clear
31763 : clear
31764 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31765 t end
31766 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31767 : end' >>confcache
31768if diff $cache_file confcache >/dev/null 2>&1; then :; else
31769 if test -w $cache_file; then
31770 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
31771 cat confcache >$cache_file
31772 else
31773 echo "not updating unwritable cache $cache_file"
31774 fi
31775fi
31776rm -f confcache
31777
31778
31779CPP_MT_FLAG=
31780if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
31781
31782
31783 THREADS_LINK=
31784 THREADS_CFLAGS=
31785
31786 if test "$wxUSE_THREADS" = "yes" ; then
31787 if test "$USE_BEOS" = 1; then
31788 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
31789echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
31790 wxUSE_THREADS="no"
31791 fi
31792 fi
31793
31794 if test "$wxUSE_THREADS" = "yes" ; then
31795
31796
31797 THREAD_OPTS="-pthread"
31798 case "${host}" in
31799 *-*-solaris2* | *-*-sunos4* )
31800 if test "x$GCC" = "xyes"; then
31801 THREAD_OPTS="-pthreads $THREAD_OPTS"
31802 else
31803 THREAD_OPTS="-mt $THREAD_OPTS"
31804 fi
31805 ;;
31806 *-*-freebsd*)
31807 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
31808 ;;
31809 *-*-darwin* | *-*-cygwin* )
31810 THREAD_OPTS=""
31811 ;;
31812 *-*-aix*)
31813 THREAD_OPTS="pthreads"
31814 ;;
31815 *-hp-hpux* )
31816 if test "x$GCC" != "xyes"; then
31817 THREAD_OPTS=""
31818 fi
31819 ;;
31820
31821 *-*-irix* )
31822 if test "x$GCC" = "xyes"; then
31823 THREAD_OPTS=""
31824 fi
31825 ;;
31826
31827 *-*-*UnixWare*)
31828 if test "x$GCC" != "xyes"; then
31829 THREAD_OPTS="-Ethread"
31830 fi
31831 ;;
31832 esac
31833
31834 THREAD_OPTS="$THREAD_OPTS pthread none"
31835
31836 THREADS_OK=no
31837 for flag in $THREAD_OPTS; do
31838 case $flag in
31839 none)
31840 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
31841echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
31842 ;;
31843
31844 -*)
31845 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
31846echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
31847 THREADS_CFLAGS="$flag"
31848 ;;
31849
31850 *)
31851 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
31852echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
31853 THREADS_LINK="-l$flag"
31854 ;;
31855 esac
31856
31857 save_LIBS="$LIBS"
31858 save_CFLAGS="$CFLAGS"
31859 LIBS="$THREADS_LINK $LIBS"
31860 CFLAGS="$THREADS_CFLAGS $CFLAGS"
31861
31862 cat >conftest.$ac_ext <<_ACEOF
31863/* confdefs.h. */
31864_ACEOF
31865cat confdefs.h >>conftest.$ac_ext
31866cat >>conftest.$ac_ext <<_ACEOF
31867/* end confdefs.h. */
31868#include <pthread.h>
31869int
31870main ()
31871{
31872pthread_create(0,0,0,0);
31873 ;
31874 return 0;
31875}
31876_ACEOF
31877rm -f conftest.$ac_objext conftest$ac_exeext
31878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31879 (eval $ac_link) 2>conftest.er1
a848cd7e 31880 ac_status=$?
ac1cb8d3
VS
31881 grep -v '^ *+' conftest.er1 >conftest.err
31882 rm -f conftest.er1
31883 cat conftest.err >&5
a848cd7e
SC
31884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31885 (exit $ac_status); } &&
ea7db9ff
DE
31886 { ac_try='test -z "$ac_c_werror_flag"
31887 || test ! -s conftest.err'
ac1cb8d3
VS
31888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31889 (eval $ac_try) 2>&5
31890 ac_status=$?
31891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31892 (exit $ac_status); }; } &&
31893 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31895 (eval $ac_try) 2>&5
31896 ac_status=$?
31897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31898 (exit $ac_status); }; }; then
31899 THREADS_OK=yes
31900else
31901 echo "$as_me: failed program was:" >&5
31902sed 's/^/| /' conftest.$ac_ext >&5
31903
31904fi
ac1cb8d3
VS
31905rm -f conftest.err conftest.$ac_objext \
31906 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31907
31908 LIBS="$save_LIBS"
31909 CFLAGS="$save_CFLAGS"
31910
31911 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
31912echo "${ECHO_T}$THREADS_OK" >&6
31913 if test "x$THREADS_OK" = "xyes"; then
31914 break;
31915 fi
31916
31917 THREADS_LINK=""
31918 THREADS_CFLAGS=""
31919 done
31920
31921 if test "x$THREADS_OK" != "xyes"; then
31922 wxUSE_THREADS=no
31923 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
31924echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
31925 else
31926 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
31927 LIBS="$THREADS_LINK $LIBS"
31928
31929 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
31930echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
31931 flag=no
31932 case "${host}" in
31933 *-aix*)
31934 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
31935 flag="-D_THREAD_SAFE"
31936 ;;
31937 *-freebsd*)
31938 flag="-D_THREAD_SAFE"
31939 ;;
31940 *-hp-hpux* )
31941 flag="-D_REENTRANT"
31942 if test "x$GCC" != "xyes"; then
31943 flag="$flag -D_RWSTD_MULTI_THREAD"
473276a9
VS
31944
31945 LIBS="$LIBS -lcma"
a848cd7e
SC
31946 fi
31947 ;;
31948 *solaris* | alpha*-osf*)
31949 flag="-D_REENTRANT"
31950 ;;
31951 esac
31952 echo "$as_me:$LINENO: result: ${flag}" >&5
31953echo "${ECHO_T}${flag}" >&6
31954 if test "x$flag" != xno; then
31955 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
31956 fi
31957
31958 if test "x$THREADS_CFLAGS" != "x"; then
31959 CFLAGS="$CFLAGS $THREADS_CFLAGS"
31960 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
31961 fi
31962 fi
31963 fi
31964
31965 if test "$wxUSE_THREADS" = "yes" ; then
31966
31967for ac_func in thr_setconcurrency
31968do
31969as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31970echo "$as_me:$LINENO: checking for $ac_func" >&5
31971echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31972if eval "test \"\${$as_ac_var+set}\" = set"; then
31973 echo $ECHO_N "(cached) $ECHO_C" >&6
31974else
31975 cat >conftest.$ac_ext <<_ACEOF
31976/* confdefs.h. */
31977_ACEOF
31978cat confdefs.h >>conftest.$ac_ext
31979cat >>conftest.$ac_ext <<_ACEOF
31980/* end confdefs.h. */
ac1cb8d3
VS
31981/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31982 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31983#define $ac_func innocuous_$ac_func
31984
a848cd7e
SC
31985/* System header to define __stub macros and hopefully few prototypes,
31986 which can conflict with char $ac_func (); below.
31987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31988 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31989
a848cd7e
SC
31990#ifdef __STDC__
31991# include <limits.h>
31992#else
31993# include <assert.h>
31994#endif
ac1cb8d3
VS
31995
31996#undef $ac_func
31997
a848cd7e
SC
31998/* Override any gcc2 internal prototype to avoid an error. */
31999#ifdef __cplusplus
32000extern "C"
32001{
32002#endif
32003/* We use char because int might match the return type of a gcc2
32004 builtin and then its argument prototype would still apply. */
32005char $ac_func ();
32006/* The GNU C library defines this for functions which it implements
32007 to always fail with ENOSYS. Some functions are actually named
32008 something starting with __ and the normal name is an alias. */
32009#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32010choke me
32011#else
32012char (*f) () = $ac_func;
32013#endif
32014#ifdef __cplusplus
32015}
32016#endif
32017
32018int
32019main ()
32020{
32021return f != $ac_func;
32022 ;
32023 return 0;
32024}
32025_ACEOF
32026rm -f conftest.$ac_objext conftest$ac_exeext
32027if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32028 (eval $ac_link) 2>conftest.er1
a848cd7e 32029 ac_status=$?
ac1cb8d3
VS
32030 grep -v '^ *+' conftest.er1 >conftest.err
32031 rm -f conftest.er1
32032 cat conftest.err >&5
a848cd7e
SC
32033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32034 (exit $ac_status); } &&
ea7db9ff
DE
32035 { ac_try='test -z "$ac_c_werror_flag"
32036 || test ! -s conftest.err'
ac1cb8d3
VS
32037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32038 (eval $ac_try) 2>&5
32039 ac_status=$?
32040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32041 (exit $ac_status); }; } &&
32042 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32044 (eval $ac_try) 2>&5
32045 ac_status=$?
32046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32047 (exit $ac_status); }; }; then
32048 eval "$as_ac_var=yes"
32049else
32050 echo "$as_me: failed program was:" >&5
32051sed 's/^/| /' conftest.$ac_ext >&5
32052
32053eval "$as_ac_var=no"
32054fi
ac1cb8d3
VS
32055rm -f conftest.err conftest.$ac_objext \
32056 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32057fi
32058echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32059echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32060if test `eval echo '${'$as_ac_var'}'` = yes; then
32061 cat >>confdefs.h <<_ACEOF
32062#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32063_ACEOF
32064
32065fi
32066done
32067
32068
32069
32070for ac_header in sched.h
32071do
32072as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32073if eval "test \"\${$as_ac_Header+set}\" = set"; then
32074 echo "$as_me:$LINENO: checking for $ac_header" >&5
32075echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32076if eval "test \"\${$as_ac_Header+set}\" = set"; then
32077 echo $ECHO_N "(cached) $ECHO_C" >&6
32078fi
32079echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32080echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32081else
32082 # Is the header compilable?
32083echo "$as_me:$LINENO: checking $ac_header usability" >&5
32084echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32085cat >conftest.$ac_ext <<_ACEOF
32086/* confdefs.h. */
32087_ACEOF
32088cat confdefs.h >>conftest.$ac_ext
32089cat >>conftest.$ac_ext <<_ACEOF
32090/* end confdefs.h. */
32091$ac_includes_default
32092#include <$ac_header>
32093_ACEOF
32094rm -f conftest.$ac_objext
32095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32096 (eval $ac_compile) 2>conftest.er1
a848cd7e 32097 ac_status=$?
ac1cb8d3
VS
32098 grep -v '^ *+' conftest.er1 >conftest.err
32099 rm -f conftest.er1
32100 cat conftest.err >&5
a848cd7e
SC
32101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32102 (exit $ac_status); } &&
ea7db9ff
DE
32103 { ac_try='test -z "$ac_c_werror_flag"
32104 || test ! -s conftest.err'
ac1cb8d3
VS
32105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32106 (eval $ac_try) 2>&5
32107 ac_status=$?
32108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32109 (exit $ac_status); }; } &&
32110 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32112 (eval $ac_try) 2>&5
32113 ac_status=$?
32114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32115 (exit $ac_status); }; }; then
32116 ac_header_compiler=yes
32117else
32118 echo "$as_me: failed program was:" >&5
32119sed 's/^/| /' conftest.$ac_ext >&5
32120
32121ac_header_compiler=no
32122fi
ac1cb8d3 32123rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32124echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32125echo "${ECHO_T}$ac_header_compiler" >&6
32126
32127# Is the header present?
32128echo "$as_me:$LINENO: checking $ac_header presence" >&5
32129echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32130cat >conftest.$ac_ext <<_ACEOF
32131/* confdefs.h. */
32132_ACEOF
32133cat confdefs.h >>conftest.$ac_ext
32134cat >>conftest.$ac_ext <<_ACEOF
32135/* end confdefs.h. */
32136#include <$ac_header>
32137_ACEOF
32138if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32139 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32140 ac_status=$?
32141 grep -v '^ *+' conftest.er1 >conftest.err
32142 rm -f conftest.er1
32143 cat conftest.err >&5
32144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32145 (exit $ac_status); } >/dev/null; then
32146 if test -s conftest.err; then
32147 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 32148 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
32149 else
32150 ac_cpp_err=
32151 fi
32152else
32153 ac_cpp_err=yes
32154fi
32155if test -z "$ac_cpp_err"; then
32156 ac_header_preproc=yes
32157else
32158 echo "$as_me: failed program was:" >&5
32159sed 's/^/| /' conftest.$ac_ext >&5
32160
32161 ac_header_preproc=no
32162fi
32163rm -f conftest.err conftest.$ac_ext
32164echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32165echo "${ECHO_T}$ac_header_preproc" >&6
32166
32167# So? What about this header?
ac1cb8d3
VS
32168case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32169 yes:no: )
a848cd7e
SC
32170 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32171echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32173echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32174 ac_header_preproc=yes
a848cd7e 32175 ;;
ac1cb8d3 32176 no:yes:* )
a848cd7e
SC
32177 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32178echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32179 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32180echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32181 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32182echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32183 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32184echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32186echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32187 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32188echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32189 (
32190 cat <<\_ASBOX
ac1cb8d3
VS
32191## ----------------------------------------- ##
32192## Report this to wx-dev@lists.wxwidgets.org ##
32193## ----------------------------------------- ##
a848cd7e
SC
32194_ASBOX
32195 ) |
32196 sed "s/^/$as_me: WARNING: /" >&2
32197 ;;
32198esac
32199echo "$as_me:$LINENO: checking for $ac_header" >&5
32200echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32201if eval "test \"\${$as_ac_Header+set}\" = set"; then
32202 echo $ECHO_N "(cached) $ECHO_C" >&6
32203else
ac1cb8d3 32204 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
32205fi
32206echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32207echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32208
32209fi
32210if test `eval echo '${'$as_ac_Header'}'` = yes; then
32211 cat >>confdefs.h <<_ACEOF
32212#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32213_ACEOF
32214
32215fi
32216
32217done
32218
32219 if test "$ac_cv_header_sched_h" = "yes"; then
32220 echo "$as_me:$LINENO: checking for sched_yield" >&5
32221echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
32222if test "${ac_cv_func_sched_yield+set}" = set; then
32223 echo $ECHO_N "(cached) $ECHO_C" >&6
32224else
32225 cat >conftest.$ac_ext <<_ACEOF
32226/* confdefs.h. */
32227_ACEOF
32228cat confdefs.h >>conftest.$ac_ext
32229cat >>conftest.$ac_ext <<_ACEOF
32230/* end confdefs.h. */
ac1cb8d3
VS
32231/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
32232 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32233#define sched_yield innocuous_sched_yield
32234
a848cd7e
SC
32235/* System header to define __stub macros and hopefully few prototypes,
32236 which can conflict with char sched_yield (); below.
32237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32238 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32239
a848cd7e
SC
32240#ifdef __STDC__
32241# include <limits.h>
32242#else
32243# include <assert.h>
32244#endif
ac1cb8d3
VS
32245
32246#undef sched_yield
32247
a848cd7e
SC
32248/* Override any gcc2 internal prototype to avoid an error. */
32249#ifdef __cplusplus
32250extern "C"
32251{
32252#endif
32253/* We use char because int might match the return type of a gcc2
32254 builtin and then its argument prototype would still apply. */
32255char sched_yield ();
32256/* The GNU C library defines this for functions which it implements
32257 to always fail with ENOSYS. Some functions are actually named
32258 something starting with __ and the normal name is an alias. */
32259#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
32260choke me
32261#else
32262char (*f) () = sched_yield;
32263#endif
32264#ifdef __cplusplus
32265}
32266#endif
32267
32268int
32269main ()
32270{
32271return f != sched_yield;
32272 ;
32273 return 0;
32274}
32275_ACEOF
32276rm -f conftest.$ac_objext conftest$ac_exeext
32277if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32278 (eval $ac_link) 2>conftest.er1
a848cd7e 32279 ac_status=$?
ac1cb8d3
VS
32280 grep -v '^ *+' conftest.er1 >conftest.err
32281 rm -f conftest.er1
32282 cat conftest.err >&5
a848cd7e
SC
32283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32284 (exit $ac_status); } &&
ea7db9ff
DE
32285 { ac_try='test -z "$ac_c_werror_flag"
32286 || test ! -s conftest.err'
ac1cb8d3
VS
32287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32288 (eval $ac_try) 2>&5
32289 ac_status=$?
32290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32291 (exit $ac_status); }; } &&
32292 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32294 (eval $ac_try) 2>&5
32295 ac_status=$?
32296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32297 (exit $ac_status); }; }; then
32298 ac_cv_func_sched_yield=yes
32299else
32300 echo "$as_me: failed program was:" >&5
32301sed 's/^/| /' conftest.$ac_ext >&5
32302
32303ac_cv_func_sched_yield=no
32304fi
ac1cb8d3
VS
32305rm -f conftest.err conftest.$ac_objext \
32306 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32307fi
32308echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
32309echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
32310if test $ac_cv_func_sched_yield = yes; then
32311 cat >>confdefs.h <<\_ACEOF
32312#define HAVE_SCHED_YIELD 1
32313_ACEOF
32314
32315else
32316
32317 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
32318echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
32319if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
32320 echo $ECHO_N "(cached) $ECHO_C" >&6
32321else
32322 ac_check_lib_save_LIBS=$LIBS
32323LIBS="-lposix4 $LIBS"
32324cat >conftest.$ac_ext <<_ACEOF
32325/* confdefs.h. */
32326_ACEOF
32327cat confdefs.h >>conftest.$ac_ext
32328cat >>conftest.$ac_ext <<_ACEOF
32329/* end confdefs.h. */
32330
32331/* Override any gcc2 internal prototype to avoid an error. */
32332#ifdef __cplusplus
32333extern "C"
32334#endif
32335/* We use char because int might match the return type of a gcc2
32336 builtin and then its argument prototype would still apply. */
32337char sched_yield ();
32338int
32339main ()
32340{
32341sched_yield ();
32342 ;
32343 return 0;
32344}
32345_ACEOF
32346rm -f conftest.$ac_objext conftest$ac_exeext
32347if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32348 (eval $ac_link) 2>conftest.er1
a848cd7e 32349 ac_status=$?
ac1cb8d3
VS
32350 grep -v '^ *+' conftest.er1 >conftest.err
32351 rm -f conftest.er1
32352 cat conftest.err >&5
a848cd7e
SC
32353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32354 (exit $ac_status); } &&
ea7db9ff
DE
32355 { ac_try='test -z "$ac_c_werror_flag"
32356 || test ! -s conftest.err'
ac1cb8d3
VS
32357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32358 (eval $ac_try) 2>&5
32359 ac_status=$?
32360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32361 (exit $ac_status); }; } &&
32362 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32364 (eval $ac_try) 2>&5
32365 ac_status=$?
32366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32367 (exit $ac_status); }; }; then
32368 ac_cv_lib_posix4_sched_yield=yes
32369else
32370 echo "$as_me: failed program was:" >&5
32371sed 's/^/| /' conftest.$ac_ext >&5
32372
32373ac_cv_lib_posix4_sched_yield=no
32374fi
ac1cb8d3
VS
32375rm -f conftest.err conftest.$ac_objext \
32376 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32377LIBS=$ac_check_lib_save_LIBS
32378fi
32379echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
32380echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
32381if test $ac_cv_lib_posix4_sched_yield = yes; then
32382 cat >>confdefs.h <<\_ACEOF
32383#define HAVE_SCHED_YIELD 1
32384_ACEOF
32385 POSIX4_LINK=" -lposix4"
32386else
32387 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
32388echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
32389
32390fi
32391
32392
32393
32394fi
32395
32396 fi
32397
32398 HAVE_PRIOR_FUNCS=0
32399 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
32400echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
32401if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
32402 echo $ECHO_N "(cached) $ECHO_C" >&6
32403else
32404 cat >conftest.$ac_ext <<_ACEOF
32405/* confdefs.h. */
32406_ACEOF
32407cat confdefs.h >>conftest.$ac_ext
32408cat >>conftest.$ac_ext <<_ACEOF
32409/* end confdefs.h. */
ac1cb8d3
VS
32410/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
32411 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32412#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
32413
a848cd7e
SC
32414/* System header to define __stub macros and hopefully few prototypes,
32415 which can conflict with char pthread_attr_getschedpolicy (); below.
32416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32417 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32418
a848cd7e
SC
32419#ifdef __STDC__
32420# include <limits.h>
32421#else
32422# include <assert.h>
32423#endif
ac1cb8d3
VS
32424
32425#undef pthread_attr_getschedpolicy
32426
a848cd7e
SC
32427/* Override any gcc2 internal prototype to avoid an error. */
32428#ifdef __cplusplus
32429extern "C"
32430{
32431#endif
32432/* We use char because int might match the return type of a gcc2
32433 builtin and then its argument prototype would still apply. */
32434char pthread_attr_getschedpolicy ();
32435/* The GNU C library defines this for functions which it implements
32436 to always fail with ENOSYS. Some functions are actually named
32437 something starting with __ and the normal name is an alias. */
32438#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
32439choke me
32440#else
32441char (*f) () = pthread_attr_getschedpolicy;
32442#endif
32443#ifdef __cplusplus
32444}
32445#endif
32446
32447int
32448main ()
32449{
32450return f != pthread_attr_getschedpolicy;
32451 ;
32452 return 0;
32453}
32454_ACEOF
32455rm -f conftest.$ac_objext conftest$ac_exeext
32456if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32457 (eval $ac_link) 2>conftest.er1
a848cd7e 32458 ac_status=$?
ac1cb8d3
VS
32459 grep -v '^ *+' conftest.er1 >conftest.err
32460 rm -f conftest.er1
32461 cat conftest.err >&5
a848cd7e
SC
32462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32463 (exit $ac_status); } &&
ea7db9ff
DE
32464 { ac_try='test -z "$ac_c_werror_flag"
32465 || test ! -s conftest.err'
ac1cb8d3
VS
32466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32467 (eval $ac_try) 2>&5
32468 ac_status=$?
32469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32470 (exit $ac_status); }; } &&
32471 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32473 (eval $ac_try) 2>&5
32474 ac_status=$?
32475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32476 (exit $ac_status); }; }; then
32477 ac_cv_func_pthread_attr_getschedpolicy=yes
32478else
32479 echo "$as_me: failed program was:" >&5
32480sed 's/^/| /' conftest.$ac_ext >&5
32481
32482ac_cv_func_pthread_attr_getschedpolicy=no
32483fi
ac1cb8d3
VS
32484rm -f conftest.err conftest.$ac_objext \
32485 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32486fi
32487echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
32488echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
32489if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
32490 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
32491echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
32492if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
32493 echo $ECHO_N "(cached) $ECHO_C" >&6
32494else
32495 cat >conftest.$ac_ext <<_ACEOF
32496/* confdefs.h. */
32497_ACEOF
32498cat confdefs.h >>conftest.$ac_ext
32499cat >>conftest.$ac_ext <<_ACEOF
32500/* end confdefs.h. */
ac1cb8d3
VS
32501/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
32502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32503#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
32504
a848cd7e
SC
32505/* System header to define __stub macros and hopefully few prototypes,
32506 which can conflict with char pthread_attr_setschedparam (); below.
32507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32508 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32509
a848cd7e
SC
32510#ifdef __STDC__
32511# include <limits.h>
32512#else
32513# include <assert.h>
32514#endif
ac1cb8d3
VS
32515
32516#undef pthread_attr_setschedparam
32517
a848cd7e
SC
32518/* Override any gcc2 internal prototype to avoid an error. */
32519#ifdef __cplusplus
32520extern "C"
32521{
32522#endif
32523/* We use char because int might match the return type of a gcc2
32524 builtin and then its argument prototype would still apply. */
32525char pthread_attr_setschedparam ();
32526/* The GNU C library defines this for functions which it implements
32527 to always fail with ENOSYS. Some functions are actually named
32528 something starting with __ and the normal name is an alias. */
32529#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
32530choke me
32531#else
32532char (*f) () = pthread_attr_setschedparam;
32533#endif
32534#ifdef __cplusplus
32535}
32536#endif
32537
32538int
32539main ()
32540{
32541return f != pthread_attr_setschedparam;
32542 ;
32543 return 0;
32544}
32545_ACEOF
32546rm -f conftest.$ac_objext conftest$ac_exeext
32547if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32548 (eval $ac_link) 2>conftest.er1
a848cd7e 32549 ac_status=$?
ac1cb8d3
VS
32550 grep -v '^ *+' conftest.er1 >conftest.err
32551 rm -f conftest.er1
32552 cat conftest.err >&5
a848cd7e
SC
32553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32554 (exit $ac_status); } &&
ea7db9ff
DE
32555 { ac_try='test -z "$ac_c_werror_flag"
32556 || test ! -s conftest.err'
ac1cb8d3
VS
32557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32558 (eval $ac_try) 2>&5
32559 ac_status=$?
32560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32561 (exit $ac_status); }; } &&
32562 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32564 (eval $ac_try) 2>&5
32565 ac_status=$?
32566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32567 (exit $ac_status); }; }; then
32568 ac_cv_func_pthread_attr_setschedparam=yes
32569else
32570 echo "$as_me: failed program was:" >&5
32571sed 's/^/| /' conftest.$ac_ext >&5
32572
32573ac_cv_func_pthread_attr_setschedparam=no
32574fi
ac1cb8d3
VS
32575rm -f conftest.err conftest.$ac_objext \
32576 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32577fi
32578echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
32579echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
32580if test $ac_cv_func_pthread_attr_setschedparam = yes; then
32581 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
32582echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
32583if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
32584 echo $ECHO_N "(cached) $ECHO_C" >&6
32585else
32586 cat >conftest.$ac_ext <<_ACEOF
32587/* confdefs.h. */
32588_ACEOF
32589cat confdefs.h >>conftest.$ac_ext
32590cat >>conftest.$ac_ext <<_ACEOF
32591/* end confdefs.h. */
ac1cb8d3
VS
32592/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
32593 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32594#define sched_get_priority_max innocuous_sched_get_priority_max
32595
a848cd7e
SC
32596/* System header to define __stub macros and hopefully few prototypes,
32597 which can conflict with char sched_get_priority_max (); below.
32598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32599 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32600
a848cd7e
SC
32601#ifdef __STDC__
32602# include <limits.h>
32603#else
32604# include <assert.h>
32605#endif
ac1cb8d3
VS
32606
32607#undef sched_get_priority_max
32608
a848cd7e
SC
32609/* Override any gcc2 internal prototype to avoid an error. */
32610#ifdef __cplusplus
32611extern "C"
32612{
32613#endif
32614/* We use char because int might match the return type of a gcc2
32615 builtin and then its argument prototype would still apply. */
32616char sched_get_priority_max ();
32617/* The GNU C library defines this for functions which it implements
32618 to always fail with ENOSYS. Some functions are actually named
32619 something starting with __ and the normal name is an alias. */
32620#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
32621choke me
32622#else
32623char (*f) () = sched_get_priority_max;
32624#endif
32625#ifdef __cplusplus
32626}
32627#endif
32628
32629int
32630main ()
32631{
32632return f != sched_get_priority_max;
32633 ;
32634 return 0;
32635}
32636_ACEOF
32637rm -f conftest.$ac_objext conftest$ac_exeext
32638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32639 (eval $ac_link) 2>conftest.er1
a848cd7e 32640 ac_status=$?
ac1cb8d3
VS
32641 grep -v '^ *+' conftest.er1 >conftest.err
32642 rm -f conftest.er1
32643 cat conftest.err >&5
a848cd7e
SC
32644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32645 (exit $ac_status); } &&
ea7db9ff
DE
32646 { ac_try='test -z "$ac_c_werror_flag"
32647 || test ! -s conftest.err'
ac1cb8d3
VS
32648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32649 (eval $ac_try) 2>&5
32650 ac_status=$?
32651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32652 (exit $ac_status); }; } &&
32653 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32655 (eval $ac_try) 2>&5
32656 ac_status=$?
32657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32658 (exit $ac_status); }; }; then
32659 ac_cv_func_sched_get_priority_max=yes
32660else
32661 echo "$as_me: failed program was:" >&5
32662sed 's/^/| /' conftest.$ac_ext >&5
32663
32664ac_cv_func_sched_get_priority_max=no
32665fi
ac1cb8d3
VS
32666rm -f conftest.err conftest.$ac_objext \
32667 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32668fi
32669echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
32670echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
32671if test $ac_cv_func_sched_get_priority_max = yes; then
32672 HAVE_PRIOR_FUNCS=1
32673else
32674 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
32675echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
32676if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
32677 echo $ECHO_N "(cached) $ECHO_C" >&6
32678else
32679 ac_check_lib_save_LIBS=$LIBS
32680LIBS="-lposix4 $LIBS"
32681cat >conftest.$ac_ext <<_ACEOF
32682/* confdefs.h. */
32683_ACEOF
32684cat confdefs.h >>conftest.$ac_ext
32685cat >>conftest.$ac_ext <<_ACEOF
32686/* end confdefs.h. */
32687
32688/* Override any gcc2 internal prototype to avoid an error. */
32689#ifdef __cplusplus
32690extern "C"
32691#endif
32692/* We use char because int might match the return type of a gcc2
32693 builtin and then its argument prototype would still apply. */
32694char sched_get_priority_max ();
32695int
32696main ()
32697{
32698sched_get_priority_max ();
32699 ;
32700 return 0;
32701}
32702_ACEOF
32703rm -f conftest.$ac_objext conftest$ac_exeext
32704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32705 (eval $ac_link) 2>conftest.er1
a848cd7e 32706 ac_status=$?
ac1cb8d3
VS
32707 grep -v '^ *+' conftest.er1 >conftest.err
32708 rm -f conftest.er1
32709 cat conftest.err >&5
a848cd7e
SC
32710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32711 (exit $ac_status); } &&
ea7db9ff
DE
32712 { ac_try='test -z "$ac_c_werror_flag"
32713 || test ! -s conftest.err'
ac1cb8d3
VS
32714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32715 (eval $ac_try) 2>&5
32716 ac_status=$?
32717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32718 (exit $ac_status); }; } &&
32719 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32721 (eval $ac_try) 2>&5
32722 ac_status=$?
32723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32724 (exit $ac_status); }; }; then
32725 ac_cv_lib_posix4_sched_get_priority_max=yes
32726else
32727 echo "$as_me: failed program was:" >&5
32728sed 's/^/| /' conftest.$ac_ext >&5
32729
32730ac_cv_lib_posix4_sched_get_priority_max=no
32731fi
ac1cb8d3
VS
32732rm -f conftest.err conftest.$ac_objext \
32733 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32734LIBS=$ac_check_lib_save_LIBS
32735fi
32736echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
32737echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
32738if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
32739
32740 HAVE_PRIOR_FUNCS=1
32741 POSIX4_LINK=" -lposix4"
32742
32743fi
32744
32745
32746fi
32747
32748
32749fi
32750
32751
32752fi
32753
32754
32755 if test "$HAVE_PRIOR_FUNCS" = 1; then
32756 cat >>confdefs.h <<\_ACEOF
32757#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
32758_ACEOF
32759
32760 else
32761 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
32762echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
32763 fi
32764
32765 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
32766echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
32767if test "${ac_cv_func_pthread_cancel+set}" = set; then
32768 echo $ECHO_N "(cached) $ECHO_C" >&6
32769else
32770 cat >conftest.$ac_ext <<_ACEOF
32771/* confdefs.h. */
32772_ACEOF
32773cat confdefs.h >>conftest.$ac_ext
32774cat >>conftest.$ac_ext <<_ACEOF
32775/* end confdefs.h. */
ac1cb8d3
VS
32776/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
32777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32778#define pthread_cancel innocuous_pthread_cancel
32779
a848cd7e
SC
32780/* System header to define __stub macros and hopefully few prototypes,
32781 which can conflict with char pthread_cancel (); below.
32782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32783 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32784
a848cd7e
SC
32785#ifdef __STDC__
32786# include <limits.h>
32787#else
32788# include <assert.h>
32789#endif
ac1cb8d3
VS
32790
32791#undef pthread_cancel
32792
a848cd7e
SC
32793/* Override any gcc2 internal prototype to avoid an error. */
32794#ifdef __cplusplus
32795extern "C"
32796{
32797#endif
32798/* We use char because int might match the return type of a gcc2
32799 builtin and then its argument prototype would still apply. */
32800char pthread_cancel ();
32801/* The GNU C library defines this for functions which it implements
32802 to always fail with ENOSYS. Some functions are actually named
32803 something starting with __ and the normal name is an alias. */
32804#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
32805choke me
32806#else
32807char (*f) () = pthread_cancel;
32808#endif
32809#ifdef __cplusplus
32810}
32811#endif
32812
32813int
32814main ()
32815{
32816return f != pthread_cancel;
32817 ;
32818 return 0;
32819}
32820_ACEOF
32821rm -f conftest.$ac_objext conftest$ac_exeext
32822if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32823 (eval $ac_link) 2>conftest.er1
a848cd7e 32824 ac_status=$?
ac1cb8d3
VS
32825 grep -v '^ *+' conftest.er1 >conftest.err
32826 rm -f conftest.er1
32827 cat conftest.err >&5
a848cd7e
SC
32828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32829 (exit $ac_status); } &&
ea7db9ff
DE
32830 { ac_try='test -z "$ac_c_werror_flag"
32831 || test ! -s conftest.err'
ac1cb8d3
VS
32832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32833 (eval $ac_try) 2>&5
32834 ac_status=$?
32835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32836 (exit $ac_status); }; } &&
32837 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32839 (eval $ac_try) 2>&5
32840 ac_status=$?
32841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32842 (exit $ac_status); }; }; then
32843 ac_cv_func_pthread_cancel=yes
32844else
32845 echo "$as_me: failed program was:" >&5
32846sed 's/^/| /' conftest.$ac_ext >&5
32847
32848ac_cv_func_pthread_cancel=no
32849fi
ac1cb8d3
VS
32850rm -f conftest.err conftest.$ac_objext \
32851 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32852fi
32853echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
32854echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
32855if test $ac_cv_func_pthread_cancel = yes; then
32856 cat >>confdefs.h <<\_ACEOF
32857#define HAVE_PTHREAD_CANCEL 1
32858_ACEOF
32859
32860else
32861 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
32862echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
32863fi
32864
32865
32866
32867
32868 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
32869echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
32870if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
32871 echo $ECHO_N "(cached) $ECHO_C" >&6
32872else
32873
32874 cat >conftest.$ac_ext <<_ACEOF
32875/* confdefs.h. */
32876_ACEOF
32877cat confdefs.h >>conftest.$ac_ext
32878cat >>conftest.$ac_ext <<_ACEOF
32879/* end confdefs.h. */
32880#include <pthread.h>
32881int
32882main ()
32883{
32884
32885 pthread_mutexattr_t attr;
32886 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
32887
32888 ;
32889 return 0;
32890}
32891_ACEOF
32892rm -f conftest.$ac_objext
32893if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32894 (eval $ac_compile) 2>conftest.er1
a848cd7e 32895 ac_status=$?
ac1cb8d3
VS
32896 grep -v '^ *+' conftest.er1 >conftest.err
32897 rm -f conftest.er1
32898 cat conftest.err >&5
a848cd7e
SC
32899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32900 (exit $ac_status); } &&
ea7db9ff
DE
32901 { ac_try='test -z "$ac_c_werror_flag"
32902 || test ! -s conftest.err'
ac1cb8d3
VS
32903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32904 (eval $ac_try) 2>&5
32905 ac_status=$?
32906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32907 (exit $ac_status); }; } &&
32908 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32910 (eval $ac_try) 2>&5
32911 ac_status=$?
32912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32913 (exit $ac_status); }; }; then
32914
32915 wx_cv_type_pthread_mutexattr_t=yes
32916
32917else
32918 echo "$as_me: failed program was:" >&5
32919sed 's/^/| /' conftest.$ac_ext >&5
32920
32921
32922 wx_cv_type_pthread_mutexattr_t=no
32923
32924
32925fi
ac1cb8d3 32926rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32927
32928fi
32929echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
32930echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
32931
32932 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
32933 cat >>confdefs.h <<\_ACEOF
32934#define HAVE_PTHREAD_MUTEXATTR_T 1
32935_ACEOF
32936
32937 else
32938 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
32939echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
32940if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
32941 echo $ECHO_N "(cached) $ECHO_C" >&6
32942else
32943
32944 cat >conftest.$ac_ext <<_ACEOF
32945/* confdefs.h. */
32946_ACEOF
32947cat confdefs.h >>conftest.$ac_ext
32948cat >>conftest.$ac_ext <<_ACEOF
32949/* end confdefs.h. */
32950#include <pthread.h>
32951int
32952main ()
32953{
32954
32955 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
32956
32957 ;
32958 return 0;
32959}
32960_ACEOF
32961rm -f conftest.$ac_objext
32962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32963 (eval $ac_compile) 2>conftest.er1
a848cd7e 32964 ac_status=$?
ac1cb8d3
VS
32965 grep -v '^ *+' conftest.er1 >conftest.err
32966 rm -f conftest.er1
32967 cat conftest.err >&5
a848cd7e
SC
32968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32969 (exit $ac_status); } &&
ea7db9ff
DE
32970 { ac_try='test -z "$ac_c_werror_flag"
32971 || test ! -s conftest.err'
ac1cb8d3
VS
32972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32973 (eval $ac_try) 2>&5
32974 ac_status=$?
32975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32976 (exit $ac_status); }; } &&
32977 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32979 (eval $ac_try) 2>&5
32980 ac_status=$?
32981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32982 (exit $ac_status); }; }; then
32983
32984 wx_cv_type_pthread_rec_mutex_init=yes
32985
32986else
32987 echo "$as_me: failed program was:" >&5
32988sed 's/^/| /' conftest.$ac_ext >&5
32989
32990
32991 wx_cv_type_pthread_rec_mutex_init=no
32992
32993
32994fi
ac1cb8d3 32995rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32996
32997fi
32998echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
32999echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
33000 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
33001 cat >>confdefs.h <<\_ACEOF
33002#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
33003_ACEOF
33004
33005 else
33006 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
33007echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
33008 fi
33009 fi
33010 fi
33011
33012else
33013 if test "$wxUSE_THREADS" = "yes" ; then
33014 case "${host}" in
33015 *-*-mingw32* )
33016 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
33017echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
33018if test "${wx_cv_cflags_mthread+set}" = set; then
33019 echo $ECHO_N "(cached) $ECHO_C" >&6
33020else
33021
33022 CFLAGS_OLD="$CFLAGS"
33023 CFLAGS="$CFLAGS -mthreads"
33024 cat >conftest.$ac_ext <<_ACEOF
33025/* confdefs.h. */
33026_ACEOF
33027cat confdefs.h >>conftest.$ac_ext
33028cat >>conftest.$ac_ext <<_ACEOF
33029/* end confdefs.h. */
33030
33031int
33032main ()
33033{
33034
33035 ;
33036 return 0;
33037}
33038_ACEOF
33039rm -f conftest.$ac_objext
33040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33041 (eval $ac_compile) 2>conftest.er1
a848cd7e 33042 ac_status=$?
ac1cb8d3
VS
33043 grep -v '^ *+' conftest.er1 >conftest.err
33044 rm -f conftest.er1
33045 cat conftest.err >&5
a848cd7e
SC
33046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33047 (exit $ac_status); } &&
ea7db9ff
DE
33048 { ac_try='test -z "$ac_c_werror_flag"
33049 || test ! -s conftest.err'
ac1cb8d3
VS
33050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33051 (eval $ac_try) 2>&5
33052 ac_status=$?
33053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33054 (exit $ac_status); }; } &&
33055 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33057 (eval $ac_try) 2>&5
33058 ac_status=$?
33059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33060 (exit $ac_status); }; }; then
33061 wx_cv_cflags_mthread=yes
33062else
33063 echo "$as_me: failed program was:" >&5
33064sed 's/^/| /' conftest.$ac_ext >&5
33065
33066wx_cv_cflags_mthread=no
33067
33068fi
ac1cb8d3 33069rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33070
33071
33072fi
33073echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
33074echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
33075
33076 if test "$wx_cv_cflags_mthread" = "yes"; then
33077 CXXFLAGS="$CXXFLAGS -mthreads"
33078 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
33079 LDFLAGS="$LDFLAGS -mthreads"
33080 else
33081 CFLAGS="$CFLAGS_OLD"
33082 fi
33083 ;;
33084 *-pc-os2*emx )
33085 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
33086 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
33087 LDFLAGS="$LDFLAGS -Zmt"
33088 ;;
33089 esac
33090 fi
33091fi
33092
33093if test "$wxUSE_THREADS" = "yes"; then
33094 cat >>confdefs.h <<\_ACEOF
33095#define wxUSE_THREADS 1
33096_ACEOF
33097
33098
33099 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
33100else
33101 if test "$ac_cv_func_strtok_r" = "yes"; then
33102 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
33103echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
33104 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
33105 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
33106 echo "$as_me:$LINENO: result: yes" >&5
33107echo "${ECHO_T}yes" >&6
33108 else
33109 echo "$as_me:$LINENO: result: no" >&5
33110echo "${ECHO_T}no" >&6
33111 fi
33112 fi
33113fi
33114
33115if test "$WXGTK20" = 1 ; then
33116 cat >>confdefs.h <<_ACEOF
33117#define __WXGTK20__ $WXGTK20
33118_ACEOF
33119
33120 WXGTK12=1
33121fi
33122
33123if test "$WXGTK12" = 1 ; then
33124 cat >>confdefs.h <<_ACEOF
33125#define __WXGTK12__ $WXGTK12
33126_ACEOF
33127
33128fi
33129
33130if test "$WXGTK127" = 1 ; then
33131 cat >>confdefs.h <<_ACEOF
33132#define __WXGTK127__ $WXGTK127
33133_ACEOF
33134
33135fi
33136
33137if test "$WXGPE" = 1 ; then
33138 cat >>confdefs.h <<_ACEOF
33139#define __WXGPE__ $WXGPE
33140_ACEOF
33141
33142fi
33143
33144WXDEBUG=
33145
33146if test "$wxUSE_DEBUG_INFO" = "yes" ; then
33147 WXDEBUG="-g"
33148 wxUSE_OPTIMISE=no
33149fi
33150
33151if test "$wxUSE_DEBUG_GDB" = "yes" ; then
33152 wxUSE_DEBUG_INFO=yes
33153 WXDEBUG="-ggdb"
33154fi
33155
33156if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
33157 cat >>confdefs.h <<\_ACEOF
33158#define WXDEBUG 1
33159_ACEOF
33160
33161 WXDEBUG_DEFINE="-D__WXDEBUG__"
33162else
33163 if test "$wxUSE_GTK" = 1 ; then
33164 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
33165 fi
33166fi
33167
33168if test "$wxUSE_MEM_TRACING" = "yes" ; then
33169 cat >>confdefs.h <<\_ACEOF
33170#define wxUSE_MEMORY_TRACING 1
33171_ACEOF
33172
33173 cat >>confdefs.h <<\_ACEOF
33174#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
33175_ACEOF
33176
33177 cat >>confdefs.h <<\_ACEOF
33178#define wxUSE_DEBUG_NEW_ALWAYS 1
33179_ACEOF
33180
33181 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
33182fi
33183
33184if test "$wxUSE_DMALLOC" = "yes" ; then
33185 DMALLOC_LIBS="-ldmalloc"
33186fi
33187
33188PROFILE=
33189if test "$wxUSE_PROFILE" = "yes" ; then
33190 PROFILE=" -pg"
33191fi
33192
33193CODE_GEN_FLAGS=
33194CODE_GEN_FLAGS_CXX=
33195if test "$GCC" = "yes" ; then
33196 if test "$wxUSE_NO_RTTI" = "yes" ; then
33197 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
33198 fi
33199 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
33200 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
33201 fi
33202 if test "$wxUSE_PERMISSIVE" = "yes" ; then
33203 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
33204 fi
33205
33206 case "${host}" in
33207 powerpc*-*-aix* )
33208 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
33209 ;;
33210 *-hppa* )
33211 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
33212 ;;
33213 esac
33214fi
33215
33216OPTIMISE=
33217if test "$wxUSE_OPTIMISE" = "no" ; then
33218 if test "$GCC" = yes ; then
33219 OPTIMISE="-O0"
33220 fi
33221else
33222 if test "$GCC" = yes ; then
33223 OPTIMISE="-O2"
33224
33225 case "${host}" in
33226 i586-*-*|i686-*-* )
33227 OPTIMISE="${OPTIMISE} "
33228 ;;
33229 esac
33230 else
33231 OPTIMISE="-O"
33232 fi
33233fi
33234
33235
33236if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
33237 cat >>confdefs.h <<\_ACEOF
33238#define WXWIN_COMPATIBILITY_2_2 1
33239_ACEOF
33240
33241
33242 WXWIN_COMPATIBILITY_2_4="yes"
33243fi
33244
33245if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
33246 cat >>confdefs.h <<\_ACEOF
33247#define WXWIN_COMPATIBILITY_2_4 1
33248_ACEOF
33249
33250fi
33251
33252
33253if test "$wxUSE_GUI" = "yes"; then
33254 cat >>confdefs.h <<\_ACEOF
33255#define wxUSE_GUI 1
33256_ACEOF
33257
33258
33259 else
33260 cat >>confdefs.h <<\_ACEOF
33261#define wxUSE_NOGUI 1
33262_ACEOF
33263
33264fi
33265
33266
33267if test "$wxUSE_UNIX" = "yes"; then
33268 cat >>confdefs.h <<\_ACEOF
33269#define wxUSE_UNIX 1
33270_ACEOF
33271
33272fi
33273
33274
33275if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
33276
33277 HAVE_DL_FUNCS=0
33278 HAVE_SHL_FUNCS=0
33279 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
33280 if test "$USE_DARWIN" = 1; then
33281 HAVE_DL_FUNCS=1
33282 else
33283
33284for ac_func in dlopen
33285do
33286as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33287echo "$as_me:$LINENO: checking for $ac_func" >&5
33288echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33289if eval "test \"\${$as_ac_var+set}\" = set"; then
33290 echo $ECHO_N "(cached) $ECHO_C" >&6
33291else
33292 cat >conftest.$ac_ext <<_ACEOF
33293/* confdefs.h. */
33294_ACEOF
33295cat confdefs.h >>conftest.$ac_ext
33296cat >>conftest.$ac_ext <<_ACEOF
33297/* end confdefs.h. */
ac1cb8d3
VS
33298/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33299 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33300#define $ac_func innocuous_$ac_func
33301
a848cd7e
SC
33302/* System header to define __stub macros and hopefully few prototypes,
33303 which can conflict with char $ac_func (); below.
33304 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33305 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33306
a848cd7e
SC
33307#ifdef __STDC__
33308# include <limits.h>
33309#else
33310# include <assert.h>
33311#endif
ac1cb8d3
VS
33312
33313#undef $ac_func
33314
a848cd7e
SC
33315/* Override any gcc2 internal prototype to avoid an error. */
33316#ifdef __cplusplus
33317extern "C"
33318{
33319#endif
33320/* We use char because int might match the return type of a gcc2
33321 builtin and then its argument prototype would still apply. */
33322char $ac_func ();
33323/* The GNU C library defines this for functions which it implements
33324 to always fail with ENOSYS. Some functions are actually named
33325 something starting with __ and the normal name is an alias. */
33326#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33327choke me
33328#else
33329char (*f) () = $ac_func;
33330#endif
33331#ifdef __cplusplus
33332}
33333#endif
33334
33335int
33336main ()
33337{
33338return f != $ac_func;
33339 ;
33340 return 0;
33341}
33342_ACEOF
33343rm -f conftest.$ac_objext conftest$ac_exeext
33344if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33345 (eval $ac_link) 2>conftest.er1
a848cd7e 33346 ac_status=$?
ac1cb8d3
VS
33347 grep -v '^ *+' conftest.er1 >conftest.err
33348 rm -f conftest.er1
33349 cat conftest.err >&5
a848cd7e
SC
33350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33351 (exit $ac_status); } &&
ea7db9ff
DE
33352 { ac_try='test -z "$ac_c_werror_flag"
33353 || test ! -s conftest.err'
ac1cb8d3
VS
33354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33355 (eval $ac_try) 2>&5
33356 ac_status=$?
33357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33358 (exit $ac_status); }; } &&
33359 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33361 (eval $ac_try) 2>&5
33362 ac_status=$?
33363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33364 (exit $ac_status); }; }; then
33365 eval "$as_ac_var=yes"
33366else
33367 echo "$as_me: failed program was:" >&5
33368sed 's/^/| /' conftest.$ac_ext >&5
33369
33370eval "$as_ac_var=no"
33371fi
ac1cb8d3
VS
33372rm -f conftest.err conftest.$ac_objext \
33373 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33374fi
33375echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33376echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33377if test `eval echo '${'$as_ac_var'}'` = yes; then
33378 cat >>confdefs.h <<_ACEOF
33379#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33380_ACEOF
33381
33382 cat >>confdefs.h <<\_ACEOF
33383#define HAVE_DLOPEN 1
33384_ACEOF
33385
33386 HAVE_DL_FUNCS=1
33387
33388else
33389
33390 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
33391echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
33392if test "${ac_cv_lib_dl_dlopen+set}" = set; then
33393 echo $ECHO_N "(cached) $ECHO_C" >&6
33394else
33395 ac_check_lib_save_LIBS=$LIBS
33396LIBS="-ldl $LIBS"
33397cat >conftest.$ac_ext <<_ACEOF
33398/* confdefs.h. */
33399_ACEOF
33400cat confdefs.h >>conftest.$ac_ext
33401cat >>conftest.$ac_ext <<_ACEOF
33402/* end confdefs.h. */
33403
33404/* Override any gcc2 internal prototype to avoid an error. */
33405#ifdef __cplusplus
33406extern "C"
33407#endif
33408/* We use char because int might match the return type of a gcc2
33409 builtin and then its argument prototype would still apply. */
33410char dlopen ();
33411int
33412main ()
33413{
33414dlopen ();
33415 ;
33416 return 0;
33417}
33418_ACEOF
33419rm -f conftest.$ac_objext conftest$ac_exeext
33420if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33421 (eval $ac_link) 2>conftest.er1
a848cd7e 33422 ac_status=$?
ac1cb8d3
VS
33423 grep -v '^ *+' conftest.er1 >conftest.err
33424 rm -f conftest.er1
33425 cat conftest.err >&5
a848cd7e
SC
33426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33427 (exit $ac_status); } &&
ea7db9ff
DE
33428 { ac_try='test -z "$ac_c_werror_flag"
33429 || test ! -s conftest.err'
ac1cb8d3
VS
33430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33431 (eval $ac_try) 2>&5
33432 ac_status=$?
33433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33434 (exit $ac_status); }; } &&
33435 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33437 (eval $ac_try) 2>&5
33438 ac_status=$?
33439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33440 (exit $ac_status); }; }; then
33441 ac_cv_lib_dl_dlopen=yes
33442else
33443 echo "$as_me: failed program was:" >&5
33444sed 's/^/| /' conftest.$ac_ext >&5
33445
33446ac_cv_lib_dl_dlopen=no
33447fi
ac1cb8d3
VS
33448rm -f conftest.err conftest.$ac_objext \
33449 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33450LIBS=$ac_check_lib_save_LIBS
33451fi
33452echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
33453echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
33454if test $ac_cv_lib_dl_dlopen = yes; then
33455
33456 cat >>confdefs.h <<\_ACEOF
33457#define HAVE_DLOPEN 1
33458_ACEOF
33459
33460 HAVE_DL_FUNCS=1
33461 DL_LINK=" -ldl$DL_LINK"
33462
33463else
33464
33465
33466for ac_func in shl_load
33467do
33468as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33469echo "$as_me:$LINENO: checking for $ac_func" >&5
33470echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33471if eval "test \"\${$as_ac_var+set}\" = set"; then
33472 echo $ECHO_N "(cached) $ECHO_C" >&6
33473else
33474 cat >conftest.$ac_ext <<_ACEOF
33475/* confdefs.h. */
33476_ACEOF
33477cat confdefs.h >>conftest.$ac_ext
33478cat >>conftest.$ac_ext <<_ACEOF
33479/* end confdefs.h. */
ac1cb8d3
VS
33480/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33481 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33482#define $ac_func innocuous_$ac_func
33483
a848cd7e
SC
33484/* System header to define __stub macros and hopefully few prototypes,
33485 which can conflict with char $ac_func (); below.
33486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33487 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33488
a848cd7e
SC
33489#ifdef __STDC__
33490# include <limits.h>
33491#else
33492# include <assert.h>
33493#endif
ac1cb8d3
VS
33494
33495#undef $ac_func
33496
a848cd7e
SC
33497/* Override any gcc2 internal prototype to avoid an error. */
33498#ifdef __cplusplus
33499extern "C"
33500{
33501#endif
33502/* We use char because int might match the return type of a gcc2
33503 builtin and then its argument prototype would still apply. */
33504char $ac_func ();
33505/* The GNU C library defines this for functions which it implements
33506 to always fail with ENOSYS. Some functions are actually named
33507 something starting with __ and the normal name is an alias. */
33508#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33509choke me
33510#else
33511char (*f) () = $ac_func;
33512#endif
33513#ifdef __cplusplus
33514}
33515#endif
33516
33517int
33518main ()
33519{
33520return f != $ac_func;
33521 ;
33522 return 0;
33523}
33524_ACEOF
33525rm -f conftest.$ac_objext conftest$ac_exeext
33526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33527 (eval $ac_link) 2>conftest.er1
a848cd7e 33528 ac_status=$?
ac1cb8d3
VS
33529 grep -v '^ *+' conftest.er1 >conftest.err
33530 rm -f conftest.er1
33531 cat conftest.err >&5
a848cd7e
SC
33532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33533 (exit $ac_status); } &&
ea7db9ff
DE
33534 { ac_try='test -z "$ac_c_werror_flag"
33535 || test ! -s conftest.err'
ac1cb8d3
VS
33536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33537 (eval $ac_try) 2>&5
33538 ac_status=$?
33539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33540 (exit $ac_status); }; } &&
33541 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33543 (eval $ac_try) 2>&5
33544 ac_status=$?
33545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33546 (exit $ac_status); }; }; then
33547 eval "$as_ac_var=yes"
33548else
33549 echo "$as_me: failed program was:" >&5
33550sed 's/^/| /' conftest.$ac_ext >&5
33551
33552eval "$as_ac_var=no"
33553fi
ac1cb8d3
VS
33554rm -f conftest.err conftest.$ac_objext \
33555 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33556fi
33557echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33558echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33559if test `eval echo '${'$as_ac_var'}'` = yes; then
33560 cat >>confdefs.h <<_ACEOF
33561#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33562_ACEOF
33563
33564 cat >>confdefs.h <<\_ACEOF
33565#define HAVE_SHL_LOAD 1
33566_ACEOF
33567
33568 HAVE_SHL_FUNCS=1
33569
33570else
33571
33572 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
33573echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
33574if test "${ac_cv_lib_shl_load_dld+set}" = set; then
33575 echo $ECHO_N "(cached) $ECHO_C" >&6
33576else
33577 ac_check_lib_save_LIBS=$LIBS
33578LIBS="-lshl_load $LIBS"
33579cat >conftest.$ac_ext <<_ACEOF
33580/* confdefs.h. */
33581_ACEOF
33582cat confdefs.h >>conftest.$ac_ext
33583cat >>conftest.$ac_ext <<_ACEOF
33584/* end confdefs.h. */
33585
33586/* Override any gcc2 internal prototype to avoid an error. */
33587#ifdef __cplusplus
33588extern "C"
33589#endif
33590/* We use char because int might match the return type of a gcc2
33591 builtin and then its argument prototype would still apply. */
33592char dld ();
33593int
33594main ()
33595{
33596dld ();
33597 ;
33598 return 0;
33599}
33600_ACEOF
33601rm -f conftest.$ac_objext conftest$ac_exeext
33602if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33603 (eval $ac_link) 2>conftest.er1
a848cd7e 33604 ac_status=$?
ac1cb8d3
VS
33605 grep -v '^ *+' conftest.er1 >conftest.err
33606 rm -f conftest.er1
33607 cat conftest.err >&5
a848cd7e
SC
33608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33609 (exit $ac_status); } &&
ea7db9ff
DE
33610 { ac_try='test -z "$ac_c_werror_flag"
33611 || test ! -s conftest.err'
ac1cb8d3
VS
33612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33613 (eval $ac_try) 2>&5
33614 ac_status=$?
33615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33616 (exit $ac_status); }; } &&
33617 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33619 (eval $ac_try) 2>&5
33620 ac_status=$?
33621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33622 (exit $ac_status); }; }; then
33623 ac_cv_lib_shl_load_dld=yes
33624else
33625 echo "$as_me: failed program was:" >&5
33626sed 's/^/| /' conftest.$ac_ext >&5
33627
33628ac_cv_lib_shl_load_dld=no
33629fi
ac1cb8d3
VS
33630rm -f conftest.err conftest.$ac_objext \
33631 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33632LIBS=$ac_check_lib_save_LIBS
33633fi
33634echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
33635echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
33636if test $ac_cv_lib_shl_load_dld = yes; then
33637
33638 HAVE_SHL_FUNCS=1
33639 DL_LINK=" -ldld$DL_LINK"
33640
33641fi
33642
33643
33644fi
33645done
33646
33647
33648fi
33649
33650
33651fi
33652done
33653
33654
33655 if test "$HAVE_DL_FUNCS" = 1; then
33656
33657for ac_func in dlerror
33658do
33659as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33660echo "$as_me:$LINENO: checking for $ac_func" >&5
33661echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33662if eval "test \"\${$as_ac_var+set}\" = set"; then
33663 echo $ECHO_N "(cached) $ECHO_C" >&6
33664else
33665 cat >conftest.$ac_ext <<_ACEOF
33666/* confdefs.h. */
33667_ACEOF
33668cat confdefs.h >>conftest.$ac_ext
33669cat >>conftest.$ac_ext <<_ACEOF
33670/* end confdefs.h. */
ac1cb8d3
VS
33671/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33672 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33673#define $ac_func innocuous_$ac_func
33674
a848cd7e
SC
33675/* System header to define __stub macros and hopefully few prototypes,
33676 which can conflict with char $ac_func (); below.
33677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33678 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33679
a848cd7e
SC
33680#ifdef __STDC__
33681# include <limits.h>
33682#else
33683# include <assert.h>
33684#endif
ac1cb8d3
VS
33685
33686#undef $ac_func
33687
a848cd7e
SC
33688/* Override any gcc2 internal prototype to avoid an error. */
33689#ifdef __cplusplus
33690extern "C"
33691{
33692#endif
33693/* We use char because int might match the return type of a gcc2
33694 builtin and then its argument prototype would still apply. */
33695char $ac_func ();
33696/* The GNU C library defines this for functions which it implements
33697 to always fail with ENOSYS. Some functions are actually named
33698 something starting with __ and the normal name is an alias. */
33699#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33700choke me
33701#else
33702char (*f) () = $ac_func;
33703#endif
33704#ifdef __cplusplus
33705}
33706#endif
33707
33708int
33709main ()
33710{
33711return f != $ac_func;
33712 ;
33713 return 0;
33714}
33715_ACEOF
33716rm -f conftest.$ac_objext conftest$ac_exeext
33717if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33718 (eval $ac_link) 2>conftest.er1
a848cd7e 33719 ac_status=$?
ac1cb8d3
VS
33720 grep -v '^ *+' conftest.er1 >conftest.err
33721 rm -f conftest.er1
33722 cat conftest.err >&5
a848cd7e
SC
33723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33724 (exit $ac_status); } &&
ea7db9ff
DE
33725 { ac_try='test -z "$ac_c_werror_flag"
33726 || test ! -s conftest.err'
ac1cb8d3
VS
33727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33728 (eval $ac_try) 2>&5
33729 ac_status=$?
33730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33731 (exit $ac_status); }; } &&
33732 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33734 (eval $ac_try) 2>&5
33735 ac_status=$?
33736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33737 (exit $ac_status); }; }; then
33738 eval "$as_ac_var=yes"
33739else
33740 echo "$as_me: failed program was:" >&5
33741sed 's/^/| /' conftest.$ac_ext >&5
33742
33743eval "$as_ac_var=no"
33744fi
ac1cb8d3
VS
33745rm -f conftest.err conftest.$ac_objext \
33746 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33747fi
33748echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33749echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33750if test `eval echo '${'$as_ac_var'}'` = yes; then
33751 cat >>confdefs.h <<_ACEOF
33752#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33753_ACEOF
33754 cat >>confdefs.h <<\_ACEOF
33755#define HAVE_DLERROR 1
33756_ACEOF
33757
33758else
33759
33760 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
33761echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
33762if test "${ac_cv_lib_dl_dlerror+set}" = set; then
33763 echo $ECHO_N "(cached) $ECHO_C" >&6
33764else
33765 ac_check_lib_save_LIBS=$LIBS
33766LIBS="-ldl $LIBS"
33767cat >conftest.$ac_ext <<_ACEOF
33768/* confdefs.h. */
33769_ACEOF
33770cat confdefs.h >>conftest.$ac_ext
33771cat >>conftest.$ac_ext <<_ACEOF
33772/* end confdefs.h. */
33773
33774/* Override any gcc2 internal prototype to avoid an error. */
33775#ifdef __cplusplus
33776extern "C"
33777#endif
33778/* We use char because int might match the return type of a gcc2
33779 builtin and then its argument prototype would still apply. */
33780char dlerror ();
33781int
33782main ()
33783{
33784dlerror ();
33785 ;
33786 return 0;
33787}
33788_ACEOF
33789rm -f conftest.$ac_objext conftest$ac_exeext
33790if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33791 (eval $ac_link) 2>conftest.er1
a848cd7e 33792 ac_status=$?
ac1cb8d3
VS
33793 grep -v '^ *+' conftest.er1 >conftest.err
33794 rm -f conftest.er1
33795 cat conftest.err >&5
a848cd7e
SC
33796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33797 (exit $ac_status); } &&
ea7db9ff
DE
33798 { ac_try='test -z "$ac_c_werror_flag"
33799 || test ! -s conftest.err'
ac1cb8d3
VS
33800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33801 (eval $ac_try) 2>&5
33802 ac_status=$?
33803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33804 (exit $ac_status); }; } &&
33805 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33807 (eval $ac_try) 2>&5
33808 ac_status=$?
33809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33810 (exit $ac_status); }; }; then
33811 ac_cv_lib_dl_dlerror=yes
33812else
33813 echo "$as_me: failed program was:" >&5
33814sed 's/^/| /' conftest.$ac_ext >&5
33815
33816ac_cv_lib_dl_dlerror=no
33817fi
ac1cb8d3
VS
33818rm -f conftest.err conftest.$ac_objext \
33819 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33820LIBS=$ac_check_lib_save_LIBS
33821fi
33822echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
33823echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
33824if test $ac_cv_lib_dl_dlerror = yes; then
33825 cat >>confdefs.h <<\_ACEOF
33826#define HAVE_DLERROR 1
33827_ACEOF
33828
33829fi
33830
33831
33832
33833fi
33834done
33835
33836 fi
33837 fi
33838
33839 if test "$HAVE_DL_FUNCS" = 0; then
33840 if test "$HAVE_SHL_FUNCS" = 0; then
33841 if test "$USE_UNIX" = 1; then
33842 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
33843echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
33844 wxUSE_DYNAMIC_LOADER=no
33845 wxUSE_DYNLIB_CLASS=no
33846 else
33847 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
33848echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
33849 fi
33850 fi
33851 fi
33852 fi
33853fi
33854
33855if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
33856 cat >>confdefs.h <<\_ACEOF
33857#define wxUSE_DYNAMIC_LOADER 1
33858_ACEOF
33859
33860fi
33861if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
33862 cat >>confdefs.h <<\_ACEOF
33863#define wxUSE_DYNLIB_CLASS 1
33864_ACEOF
33865
33866fi
33867
33868
33869
33870if test "$wxUSE_PLUGINS" = "yes" ; then
33871 if test "$wxUSE_SHARED" = "no" ; then
33872 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
33873echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
33874 wxUSE_PLUGINS=no
33875 fi
33876 if test "$wxUSE_MONOLITHIC" = "yes" ; then
33877 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
33878echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
33879 wxUSE_PLUGINS=no
33880 fi
33881 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
33882 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
33883echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
33884 wxUSE_PLUGINS=no
33885 fi
33886 if test "$wxUSE_PLUGINS" = "yes" ; then
33887 cat >>confdefs.h <<\_ACEOF
33888#define wxUSE_PLUGINS 1
33889_ACEOF
33890
33891 fi
33892fi
33893
33894
33895if test "$wxUSE_STL" = "yes"; then
33896 cat >>confdefs.h <<\_ACEOF
33897#define wxUSE_STL 1
33898_ACEOF
33899
33900fi
33901
33902if test "$wxUSE_APPLE_IEEE" = "yes"; then
33903 cat >>confdefs.h <<\_ACEOF
33904#define wxUSE_APPLE_IEEE 1
33905_ACEOF
33906
33907fi
33908
33909if test "$wxUSE_TIMER" = "yes"; then
33910 cat >>confdefs.h <<\_ACEOF
33911#define wxUSE_TIMER 1
33912_ACEOF
33913
33914fi
33915
33916WITH_PLUGIN_SDL=0
33917if test "$wxUSE_SOUND" = "yes"; then
33918 if test "$USE_UNIX" = "1" ; then
33919
33920for ac_header in sys/soundcard.h
33921do
33922as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33923if eval "test \"\${$as_ac_Header+set}\" = set"; then
33924 echo "$as_me:$LINENO: checking for $ac_header" >&5
33925echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33926if eval "test \"\${$as_ac_Header+set}\" = set"; then
33927 echo $ECHO_N "(cached) $ECHO_C" >&6
33928fi
33929echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33930echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33931else
33932 # Is the header compilable?
33933echo "$as_me:$LINENO: checking $ac_header usability" >&5
33934echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33935cat >conftest.$ac_ext <<_ACEOF
33936/* confdefs.h. */
33937_ACEOF
33938cat confdefs.h >>conftest.$ac_ext
33939cat >>conftest.$ac_ext <<_ACEOF
33940/* end confdefs.h. */
33941$ac_includes_default
33942#include <$ac_header>
33943_ACEOF
33944rm -f conftest.$ac_objext
33945if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33946 (eval $ac_compile) 2>conftest.er1
a848cd7e 33947 ac_status=$?
ac1cb8d3
VS
33948 grep -v '^ *+' conftest.er1 >conftest.err
33949 rm -f conftest.er1
33950 cat conftest.err >&5
a848cd7e
SC
33951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33952 (exit $ac_status); } &&
ea7db9ff
DE
33953 { ac_try='test -z "$ac_c_werror_flag"
33954 || test ! -s conftest.err'
ac1cb8d3
VS
33955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33956 (eval $ac_try) 2>&5
33957 ac_status=$?
33958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33959 (exit $ac_status); }; } &&
33960 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33962 (eval $ac_try) 2>&5
33963 ac_status=$?
33964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33965 (exit $ac_status); }; }; then
33966 ac_header_compiler=yes
33967else
33968 echo "$as_me: failed program was:" >&5
33969sed 's/^/| /' conftest.$ac_ext >&5
33970
33971ac_header_compiler=no
33972fi
ac1cb8d3 33973rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33974echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33975echo "${ECHO_T}$ac_header_compiler" >&6
33976
33977# Is the header present?
33978echo "$as_me:$LINENO: checking $ac_header presence" >&5
33979echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33980cat >conftest.$ac_ext <<_ACEOF
33981/* confdefs.h. */
33982_ACEOF
33983cat confdefs.h >>conftest.$ac_ext
33984cat >>conftest.$ac_ext <<_ACEOF
33985/* end confdefs.h. */
33986#include <$ac_header>
33987_ACEOF
33988if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33989 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33990 ac_status=$?
33991 grep -v '^ *+' conftest.er1 >conftest.err
33992 rm -f conftest.er1
33993 cat conftest.err >&5
33994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33995 (exit $ac_status); } >/dev/null; then
33996 if test -s conftest.err; then
33997 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 33998 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
33999 else
34000 ac_cpp_err=
34001 fi
34002else
34003 ac_cpp_err=yes
34004fi
34005if test -z "$ac_cpp_err"; then
34006 ac_header_preproc=yes
34007else
34008 echo "$as_me: failed program was:" >&5
34009sed 's/^/| /' conftest.$ac_ext >&5
34010
34011 ac_header_preproc=no
34012fi
34013rm -f conftest.err conftest.$ac_ext
34014echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34015echo "${ECHO_T}$ac_header_preproc" >&6
34016
34017# So? What about this header?
ac1cb8d3
VS
34018case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34019 yes:no: )
a848cd7e
SC
34020 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34021echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
34022 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34023echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34024 ac_header_preproc=yes
a848cd7e 34025 ;;
ac1cb8d3 34026 no:yes:* )
a848cd7e
SC
34027 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34028echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
34029 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34030echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34031 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34032echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34033 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34034echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
34035 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34036echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
34037 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34038echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
34039 (
34040 cat <<\_ASBOX
ac1cb8d3
VS
34041## ----------------------------------------- ##
34042## Report this to wx-dev@lists.wxwidgets.org ##
34043## ----------------------------------------- ##
a848cd7e
SC
34044_ASBOX
34045 ) |
34046 sed "s/^/$as_me: WARNING: /" >&2
34047 ;;
34048esac
34049echo "$as_me:$LINENO: checking for $ac_header" >&5
34050echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34051if eval "test \"\${$as_ac_Header+set}\" = set"; then
34052 echo $ECHO_N "(cached) $ECHO_C" >&6
34053else
ac1cb8d3 34054 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
34055fi
34056echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34057echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34058
34059fi
34060if test `eval echo '${'$as_ac_Header'}'` = yes; then
34061 cat >>confdefs.h <<_ACEOF
34062#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34063_ACEOF
34064
34065fi
34066
34067done
34068
34069
34070 if test "$wxUSE_LIBSDL" != "no"; then
34071
34072# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
34073if test "${with_sdl_prefix+set}" = set; then
34074 withval="$with_sdl_prefix"
34075 sdl_prefix="$withval"
34076else
34077 sdl_prefix=""
34078fi;
34079
34080# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
34081if test "${with_sdl_exec_prefix+set}" = set; then
34082 withval="$with_sdl_exec_prefix"
34083 sdl_exec_prefix="$withval"
34084else
34085 sdl_exec_prefix=""
34086fi;
34087# Check whether --enable-sdltest or --disable-sdltest was given.
34088if test "${enable_sdltest+set}" = set; then
34089 enableval="$enable_sdltest"
34090
34091else
34092 enable_sdltest=yes
34093fi;
34094
34095 if test x$sdl_exec_prefix != x ; then
34096 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
34097 if test x${SDL_CONFIG+set} != xset ; then
34098 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
34099 fi
34100 fi
34101 if test x$sdl_prefix != x ; then
34102 sdl_args="$sdl_args --prefix=$sdl_prefix"
34103 if test x${SDL_CONFIG+set} != xset ; then
34104 SDL_CONFIG=$sdl_prefix/bin/sdl-config
34105 fi
34106 fi
34107
34108
34109 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
34110 # Extract the first word of "sdl-config", so it can be a program name with args.
34111set dummy sdl-config; ac_word=$2
34112echo "$as_me:$LINENO: checking for $ac_word" >&5
34113echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34114if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
34115 echo $ECHO_N "(cached) $ECHO_C" >&6
34116else
34117 case $SDL_CONFIG in
34118 [\\/]* | ?:[\\/]*)
34119 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
34120 ;;
34121 *)
34122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34123for as_dir in $PATH
34124do
34125 IFS=$as_save_IFS
34126 test -z "$as_dir" && as_dir=.
34127 for ac_exec_ext in '' $ac_executable_extensions; do
34128 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34129 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34131 break 2
34132 fi
34133done
34134done
34135
34136 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
34137 ;;
34138esac
34139fi
34140SDL_CONFIG=$ac_cv_path_SDL_CONFIG
34141
34142if test -n "$SDL_CONFIG"; then
34143 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
34144echo "${ECHO_T}$SDL_CONFIG" >&6
34145else
34146 echo "$as_me:$LINENO: result: no" >&5
34147echo "${ECHO_T}no" >&6
34148fi
34149
34150 min_sdl_version=1.2.0
34151 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
34152echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
34153 no_sdl=""
34154 if test "$SDL_CONFIG" = "no" ; then
34155 no_sdl=yes
34156 else
34157 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
34158 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
34159
34160 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
34161 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
34162 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
34163 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
34164 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
34165 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
34166 if test "x$enable_sdltest" = "xyes" ; then
34167 ac_save_CFLAGS="$CFLAGS"
34168 ac_save_LIBS="$LIBS"
34169 CFLAGS="$CFLAGS $SDL_CFLAGS"
34170 LIBS="$LIBS $SDL_LIBS"
34171 rm -f conf.sdltest
34172 if test "$cross_compiling" = yes; then
34173 echo $ac_n "cross compiling; assumed OK... $ac_c"
34174else
34175 cat >conftest.$ac_ext <<_ACEOF
34176/* confdefs.h. */
34177_ACEOF
34178cat confdefs.h >>conftest.$ac_ext
34179cat >>conftest.$ac_ext <<_ACEOF
34180/* end confdefs.h. */
34181
34182#include <stdio.h>
34183#include <stdlib.h>
34184#include <string.h>
34185#include "SDL.h"
34186
34187char*
34188my_strdup (char *str)
34189{
34190 char *new_str;
34191
34192 if (str)
34193 {
34194 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
34195 strcpy (new_str, str);
34196 }
34197 else
34198 new_str = NULL;
34199
34200 return new_str;
34201}
34202
34203int main (int argc, char *argv[])
34204{
34205 int major, minor, micro;
34206 char *tmp_version;
34207
34208 /* This hangs on some systems (?)
34209 system ("touch conf.sdltest");
34210 */
34211 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
34212
34213 /* HP/UX 9 (%@#!) writes to sscanf strings */
34214 tmp_version = my_strdup("$min_sdl_version");
34215 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
34216 printf("%s, bad version string\n", "$min_sdl_version");
34217 exit(1);
34218 }
34219
34220 if (($sdl_major_version > major) ||
34221 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
34222 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
34223 {
34224 return 0;
34225 }
34226 else
34227 {
34228 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
34229 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
34230 printf("*** best to upgrade to the required version.\n");
34231 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
34232 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
34233 printf("*** config.cache before re-running configure\n");
34234 return 1;
34235 }
34236}
34237
34238
34239_ACEOF
34240rm -f conftest$ac_exeext
34241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34242 (eval $ac_link) 2>&5
34243 ac_status=$?
34244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34245 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34247 (eval $ac_try) 2>&5
34248 ac_status=$?
34249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34250 (exit $ac_status); }; }; then
34251 :
34252else
34253 echo "$as_me: program exited with status $ac_status" >&5
34254echo "$as_me: failed program was:" >&5
34255sed 's/^/| /' conftest.$ac_ext >&5
34256
34257( exit $ac_status )
34258no_sdl=yes
34259fi
ac1cb8d3 34260rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34261fi
34262 CFLAGS="$ac_save_CFLAGS"
34263 LIBS="$ac_save_LIBS"
34264 fi
34265 fi
34266 if test "x$no_sdl" = x ; then
34267 echo "$as_me:$LINENO: result: yes" >&5
34268echo "${ECHO_T}yes" >&6
34269
34270 EXTRALIBS_SDL="$SDL_LIBS"
34271 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
34272 cat >>confdefs.h <<\_ACEOF
34273#define wxUSE_LIBSDL 1
34274_ACEOF
34275
34276
34277 else
34278 echo "$as_me:$LINENO: result: no" >&5
34279echo "${ECHO_T}no" >&6
34280 if test "$SDL_CONFIG" = "no" ; then
34281 echo "*** The sdl-config script installed by SDL could not be found"
34282 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
34283 echo "*** your path, or set the SDL_CONFIG environment variable to the"
34284 echo "*** full path to sdl-config."
34285 else
34286 if test -f conf.sdltest ; then
34287 :
34288 else
34289 echo "*** Could not run SDL test program, checking why..."
34290 CFLAGS="$CFLAGS $SDL_CFLAGS"
34291 LIBS="$LIBS $SDL_LIBS"
34292 cat >conftest.$ac_ext <<_ACEOF
34293/* confdefs.h. */
34294_ACEOF
34295cat confdefs.h >>conftest.$ac_ext
34296cat >>conftest.$ac_ext <<_ACEOF
34297/* end confdefs.h. */
34298
34299#include <stdio.h>
34300#include "SDL.h"
34301
34302int main(int argc, char *argv[])
34303{ return 0; }
34304#undef main
34305#define main K_and_R_C_main
34306
34307int
34308main ()
34309{
34310 return 0;
34311 ;
34312 return 0;
34313}
34314_ACEOF
34315rm -f conftest.$ac_objext conftest$ac_exeext
34316if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34317 (eval $ac_link) 2>conftest.er1
a848cd7e 34318 ac_status=$?
ac1cb8d3
VS
34319 grep -v '^ *+' conftest.er1 >conftest.err
34320 rm -f conftest.er1
34321 cat conftest.err >&5
a848cd7e
SC
34322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34323 (exit $ac_status); } &&
ea7db9ff
DE
34324 { ac_try='test -z "$ac_c_werror_flag"
34325 || test ! -s conftest.err'
ac1cb8d3
VS
34326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34327 (eval $ac_try) 2>&5
34328 ac_status=$?
34329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34330 (exit $ac_status); }; } &&
34331 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34333 (eval $ac_try) 2>&5
34334 ac_status=$?
34335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34336 (exit $ac_status); }; }; then
34337 echo "*** The test program compiled, but did not run. This usually means"
34338 echo "*** that the run-time linker is not finding SDL or finding the wrong"
34339 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
34340 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
34341 echo "*** to the installed location Also, make sure you have run ldconfig if that"
34342 echo "*** is required on your system"
34343 echo "***"
34344 echo "*** If you have an old version installed, it is best to remove it, although"
34345 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
34346else
34347 echo "$as_me: failed program was:" >&5
34348sed 's/^/| /' conftest.$ac_ext >&5
34349
34350 echo "*** The test program failed to compile or link. See the file config.log for the"
34351 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
34352 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
34353 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
34354fi
ac1cb8d3
VS
34355rm -f conftest.err conftest.$ac_objext \
34356 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34357 CFLAGS="$ac_save_CFLAGS"
34358 LIBS="$ac_save_LIBS"
34359 fi
34360 fi
34361 SDL_CFLAGS=""
34362 SDL_LIBS=""
34363 wxUSE_LIBSDL="no"
34364 fi
34365
34366
34367 rm -f conf.sdltest
34368
34369 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
34370 WITH_PLUGIN_SDL=1
34371 fi
34372 fi
34373 fi
34374
34375 cat >>confdefs.h <<\_ACEOF
34376#define wxUSE_SOUND 1
34377_ACEOF
34378
34379 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
34380fi
34381
34382if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
34383 cat >>confdefs.h <<\_ACEOF
34384#define wxUSE_CMDLINE_PARSER 1
34385_ACEOF
34386
34387fi
34388
34389if test "$wxUSE_STOPWATCH" = "yes"; then
34390 cat >>confdefs.h <<\_ACEOF
34391#define wxUSE_STOPWATCH 1
34392_ACEOF
34393
34394fi
34395
34396if test "$wxUSE_DATETIME" = "yes"; then
34397 cat >>confdefs.h <<\_ACEOF
34398#define wxUSE_DATETIME 1
34399_ACEOF
34400
34401fi
34402
34403if test "$wxUSE_FILE" = "yes"; then
34404 cat >>confdefs.h <<\_ACEOF
34405#define wxUSE_FILE 1
34406_ACEOF
34407
34408fi
34409
34410if test "$wxUSE_FFILE" = "yes"; then
34411 cat >>confdefs.h <<\_ACEOF
34412#define wxUSE_FFILE 1
34413_ACEOF
34414
34415fi
34416
34417if test "$wxUSE_FILESYSTEM" = "yes"; then
34418 cat >>confdefs.h <<\_ACEOF
34419#define wxUSE_FILESYSTEM 1
34420_ACEOF
34421
34422fi
34423
34424if test "$wxUSE_FS_ZIP" = "yes"; then
34425 cat >>confdefs.h <<\_ACEOF
34426#define wxUSE_FS_ZIP 1
34427_ACEOF
34428
34429fi
34430
34431if test "$wxUSE_ZIPSTREAM" = "yes"; then
34432 cat >>confdefs.h <<\_ACEOF
34433#define wxUSE_ZIPSTREAM 1
34434_ACEOF
34435
34436fi
34437
a848cd7e
SC
34438if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
34439 cat >>confdefs.h <<\_ACEOF
34440#define wxUSE_ON_FATAL_EXCEPTION 1
34441_ACEOF
34442
34443fi
34444
34445if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
34446 cat >>confdefs.h <<\_ACEOF
34447#define wxUSE_SNGLINST_CHECKER 1
34448_ACEOF
34449
34450fi
34451
34452if test "$wxUSE_BUSYINFO" = "yes"; then
34453 cat >>confdefs.h <<\_ACEOF
34454#define wxUSE_BUSYINFO 1
34455_ACEOF
34456
34457fi
34458
34459if test "$wxUSE_STD_IOSTREAM" = "yes"; then
34460 cat >>confdefs.h <<\_ACEOF
34461#define wxUSE_STD_IOSTREAM 1
34462_ACEOF
34463
34464fi
34465
34466if test "$wxUSE_TEXTBUFFER" = "yes"; then
34467 cat >>confdefs.h <<\_ACEOF
34468#define wxUSE_TEXTBUFFER 1
34469_ACEOF
34470
34471fi
34472
34473if test "$wxUSE_TEXTFILE" = "yes"; then
34474 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
34475 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
34476echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
34477 else
34478 cat >>confdefs.h <<\_ACEOF
34479#define wxUSE_TEXTFILE 1
34480_ACEOF
34481
34482 fi
34483fi
34484
34485if test "$wxUSE_CONFIG" = "yes" ; then
34486 if test "$wxUSE_TEXTFILE" != "yes"; then
34487 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
34488echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
34489 else
34490 cat >>confdefs.h <<\_ACEOF
34491#define wxUSE_CONFIG 1
34492_ACEOF
34493
34494 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
34495 fi
34496fi
34497
34498if test "$wxUSE_INTL" = "yes" ; then
34499 if test "$wxUSE_FILE" != "yes"; then
34500 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
34501echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
34502 else
34503 cat >>confdefs.h <<\_ACEOF
34504#define wxUSE_INTL 1
34505_ACEOF
34506
34507 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
34508 GUIDIST="$GUIDIST INTL_DIST"
34509 fi
34510fi
34511
34512if test "$wxUSE_LOG" = "yes"; then
34513 cat >>confdefs.h <<\_ACEOF
34514#define wxUSE_LOG 1
34515_ACEOF
34516
34517
34518 if test "$wxUSE_LOGGUI" = "yes"; then
34519 cat >>confdefs.h <<\_ACEOF
34520#define wxUSE_LOGGUI 1
34521_ACEOF
34522
34523 fi
34524
34525 if test "$wxUSE_LOGWINDOW" = "yes"; then
34526 cat >>confdefs.h <<\_ACEOF
34527#define wxUSE_LOGWINDOW 1
34528_ACEOF
34529
34530 fi
34531
34532 if test "$wxUSE_LOGDIALOG" = "yes"; then
34533 cat >>confdefs.h <<\_ACEOF
34534#define wxUSE_LOG_DIALOG 1
34535_ACEOF
34536
34537 fi
34538fi
34539
34540if test "$wxUSE_LONGLONG" = "yes"; then
34541 cat >>confdefs.h <<\_ACEOF
34542#define wxUSE_LONGLONG 1
34543_ACEOF
34544
34545fi
34546
34547if test "$wxUSE_GEOMETRY" = "yes"; then
34548 cat >>confdefs.h <<\_ACEOF
34549#define wxUSE_GEOMETRY 1
34550_ACEOF
34551
34552fi
34553
34554if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
34555 cat >>confdefs.h <<\_ACEOF
34556#define wxUSE_DIALUP_MANAGER 1
34557_ACEOF
34558
34559 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
34560fi
34561
34562if test "$wxUSE_STREAMS" = "yes" ; then
34563 cat >>confdefs.h <<\_ACEOF
34564#define wxUSE_STREAMS 1
34565_ACEOF
34566
34567fi
34568
34569
34570if test "$wxUSE_DATETIME" = "yes"; then
34571
34572for ac_func in strptime
34573do
34574as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34575echo "$as_me:$LINENO: checking for $ac_func" >&5
34576echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34577if eval "test \"\${$as_ac_var+set}\" = set"; then
34578 echo $ECHO_N "(cached) $ECHO_C" >&6
34579else
34580 cat >conftest.$ac_ext <<_ACEOF
34581/* confdefs.h. */
34582_ACEOF
34583cat confdefs.h >>conftest.$ac_ext
34584cat >>conftest.$ac_ext <<_ACEOF
34585/* end confdefs.h. */
ac1cb8d3
VS
34586/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34587 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34588#define $ac_func innocuous_$ac_func
34589
a848cd7e
SC
34590/* System header to define __stub macros and hopefully few prototypes,
34591 which can conflict with char $ac_func (); below.
34592 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34593 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34594
a848cd7e
SC
34595#ifdef __STDC__
34596# include <limits.h>
34597#else
34598# include <assert.h>
34599#endif
ac1cb8d3
VS
34600
34601#undef $ac_func
34602
a848cd7e
SC
34603/* Override any gcc2 internal prototype to avoid an error. */
34604#ifdef __cplusplus
34605extern "C"
34606{
34607#endif
34608/* We use char because int might match the return type of a gcc2
34609 builtin and then its argument prototype would still apply. */
34610char $ac_func ();
34611/* The GNU C library defines this for functions which it implements
34612 to always fail with ENOSYS. Some functions are actually named
34613 something starting with __ and the normal name is an alias. */
34614#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34615choke me
34616#else
34617char (*f) () = $ac_func;
34618#endif
34619#ifdef __cplusplus
34620}
34621#endif
34622
34623int
34624main ()
34625{
34626return f != $ac_func;
34627 ;
34628 return 0;
34629}
34630_ACEOF
34631rm -f conftest.$ac_objext conftest$ac_exeext
34632if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34633 (eval $ac_link) 2>conftest.er1
a848cd7e 34634 ac_status=$?
ac1cb8d3
VS
34635 grep -v '^ *+' conftest.er1 >conftest.err
34636 rm -f conftest.er1
34637 cat conftest.err >&5
a848cd7e
SC
34638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34639 (exit $ac_status); } &&
ea7db9ff
DE
34640 { ac_try='test -z "$ac_c_werror_flag"
34641 || test ! -s conftest.err'
ac1cb8d3
VS
34642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34643 (eval $ac_try) 2>&5
34644 ac_status=$?
34645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34646 (exit $ac_status); }; } &&
34647 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34649 (eval $ac_try) 2>&5
34650 ac_status=$?
34651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34652 (exit $ac_status); }; }; then
34653 eval "$as_ac_var=yes"
34654else
34655 echo "$as_me: failed program was:" >&5
34656sed 's/^/| /' conftest.$ac_ext >&5
34657
34658eval "$as_ac_var=no"
34659fi
ac1cb8d3
VS
34660rm -f conftest.err conftest.$ac_objext \
34661 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34662fi
34663echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34664echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34665if test `eval echo '${'$as_ac_var'}'` = yes; then
34666 cat >>confdefs.h <<_ACEOF
34667#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34668_ACEOF
34669
34670fi
34671done
34672
34673
34674 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
34675echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
34676if test "${wx_cv_var_timezone+set}" = set; then
34677 echo $ECHO_N "(cached) $ECHO_C" >&6
34678else
34679
34680 cat >conftest.$ac_ext <<_ACEOF
34681/* confdefs.h. */
34682_ACEOF
34683cat confdefs.h >>conftest.$ac_ext
34684cat >>conftest.$ac_ext <<_ACEOF
34685/* end confdefs.h. */
34686
34687 #include <time.h>
34688
34689int
34690main ()
34691{
34692
34693 int tz;
34694 tz = timezone;
34695
34696 ;
34697 return 0;
34698}
34699_ACEOF
34700rm -f conftest.$ac_objext
34701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34702 (eval $ac_compile) 2>conftest.er1
a848cd7e 34703 ac_status=$?
ac1cb8d3
VS
34704 grep -v '^ *+' conftest.er1 >conftest.err
34705 rm -f conftest.er1
34706 cat conftest.err >&5
a848cd7e
SC
34707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34708 (exit $ac_status); } &&
ea7db9ff
DE
34709 { ac_try='test -z "$ac_c_werror_flag"
34710 || test ! -s conftest.err'
ac1cb8d3
VS
34711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34712 (eval $ac_try) 2>&5
34713 ac_status=$?
34714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34715 (exit $ac_status); }; } &&
34716 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34718 (eval $ac_try) 2>&5
34719 ac_status=$?
34720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34721 (exit $ac_status); }; }; then
34722
34723 wx_cv_var_timezone=timezone
34724
34725else
34726 echo "$as_me: failed program was:" >&5
34727sed 's/^/| /' conftest.$ac_ext >&5
34728
34729
34730 cat >conftest.$ac_ext <<_ACEOF
34731/* confdefs.h. */
34732_ACEOF
34733cat confdefs.h >>conftest.$ac_ext
34734cat >>conftest.$ac_ext <<_ACEOF
34735/* end confdefs.h. */
34736
34737 #include <time.h>
34738
34739int
34740main ()
34741{
34742
34743 int tz;
34744 tz = _timezone;
34745
34746 ;
34747 return 0;
34748}
34749_ACEOF
34750rm -f conftest.$ac_objext
34751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34752 (eval $ac_compile) 2>conftest.er1
a848cd7e 34753 ac_status=$?
ac1cb8d3
VS
34754 grep -v '^ *+' conftest.er1 >conftest.err
34755 rm -f conftest.er1
34756 cat conftest.err >&5
a848cd7e
SC
34757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34758 (exit $ac_status); } &&
ea7db9ff
DE
34759 { ac_try='test -z "$ac_c_werror_flag"
34760 || test ! -s conftest.err'
ac1cb8d3
VS
34761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34762 (eval $ac_try) 2>&5
34763 ac_status=$?
34764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34765 (exit $ac_status); }; } &&
34766 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34768 (eval $ac_try) 2>&5
34769 ac_status=$?
34770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34771 (exit $ac_status); }; }; then
34772
34773 wx_cv_var_timezone=_timezone
34774
34775else
34776 echo "$as_me: failed program was:" >&5
34777sed 's/^/| /' conftest.$ac_ext >&5
34778
34779
34780 cat >conftest.$ac_ext <<_ACEOF
34781/* confdefs.h. */
34782_ACEOF
34783cat confdefs.h >>conftest.$ac_ext
34784cat >>conftest.$ac_ext <<_ACEOF
34785/* end confdefs.h. */
34786
34787 #include <time.h>
34788
34789int
34790main ()
34791{
34792
34793 int tz;
34794 tz = __timezone;
34795
34796 ;
34797 return 0;
34798}
34799_ACEOF
34800rm -f conftest.$ac_objext
34801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34802 (eval $ac_compile) 2>conftest.er1
a848cd7e 34803 ac_status=$?
ac1cb8d3
VS
34804 grep -v '^ *+' conftest.er1 >conftest.err
34805 rm -f conftest.er1
34806 cat conftest.err >&5
a848cd7e
SC
34807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34808 (exit $ac_status); } &&
ea7db9ff
DE
34809 { ac_try='test -z "$ac_c_werror_flag"
34810 || test ! -s conftest.err'
ac1cb8d3
VS
34811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34812 (eval $ac_try) 2>&5
34813 ac_status=$?
34814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34815 (exit $ac_status); }; } &&
34816 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34818 (eval $ac_try) 2>&5
34819 ac_status=$?
34820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34821 (exit $ac_status); }; }; then
34822
34823 wx_cv_var_timezone=__timezone
34824
34825else
34826 echo "$as_me: failed program was:" >&5
34827sed 's/^/| /' conftest.$ac_ext >&5
34828
34829
34830 if test "$USE_DOS" = 0 ; then
34831 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
34832echo "$as_me: WARNING: no timezone variable" >&2;}
34833 fi
34834
34835
34836fi
ac1cb8d3 34837rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34838
34839
34840fi
ac1cb8d3 34841rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34842
34843
34844fi
ac1cb8d3 34845rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34846
34847
34848fi
34849echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
34850echo "${ECHO_T}$wx_cv_var_timezone" >&6
34851
34852 if test "x$wx_cv_var_timezone" != x ; then
34853 cat >>confdefs.h <<_ACEOF
34854#define WX_TIMEZONE $wx_cv_var_timezone
34855_ACEOF
34856
34857 fi
34858
34859
34860for ac_func in localtime
34861do
34862as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34863echo "$as_me:$LINENO: checking for $ac_func" >&5
34864echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34865if eval "test \"\${$as_ac_var+set}\" = set"; then
34866 echo $ECHO_N "(cached) $ECHO_C" >&6
34867else
34868 cat >conftest.$ac_ext <<_ACEOF
34869/* confdefs.h. */
34870_ACEOF
34871cat confdefs.h >>conftest.$ac_ext
34872cat >>conftest.$ac_ext <<_ACEOF
34873/* end confdefs.h. */
ac1cb8d3
VS
34874/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34876#define $ac_func innocuous_$ac_func
34877
a848cd7e
SC
34878/* System header to define __stub macros and hopefully few prototypes,
34879 which can conflict with char $ac_func (); below.
34880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34881 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34882
a848cd7e
SC
34883#ifdef __STDC__
34884# include <limits.h>
34885#else
34886# include <assert.h>
34887#endif
ac1cb8d3
VS
34888
34889#undef $ac_func
34890
a848cd7e
SC
34891/* Override any gcc2 internal prototype to avoid an error. */
34892#ifdef __cplusplus
34893extern "C"
34894{
34895#endif
34896/* We use char because int might match the return type of a gcc2
34897 builtin and then its argument prototype would still apply. */
34898char $ac_func ();
34899/* The GNU C library defines this for functions which it implements
34900 to always fail with ENOSYS. Some functions are actually named
34901 something starting with __ and the normal name is an alias. */
34902#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34903choke me
34904#else
34905char (*f) () = $ac_func;
34906#endif
34907#ifdef __cplusplus
34908}
34909#endif
34910
34911int
34912main ()
34913{
34914return f != $ac_func;
34915 ;
34916 return 0;
34917}
34918_ACEOF
34919rm -f conftest.$ac_objext conftest$ac_exeext
34920if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34921 (eval $ac_link) 2>conftest.er1
a848cd7e 34922 ac_status=$?
ac1cb8d3
VS
34923 grep -v '^ *+' conftest.er1 >conftest.err
34924 rm -f conftest.er1
34925 cat conftest.err >&5
a848cd7e
SC
34926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34927 (exit $ac_status); } &&
ea7db9ff
DE
34928 { ac_try='test -z "$ac_c_werror_flag"
34929 || test ! -s conftest.err'
ac1cb8d3
VS
34930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34931 (eval $ac_try) 2>&5
34932 ac_status=$?
34933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34934 (exit $ac_status); }; } &&
34935 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34937 (eval $ac_try) 2>&5
34938 ac_status=$?
34939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34940 (exit $ac_status); }; }; then
34941 eval "$as_ac_var=yes"
34942else
34943 echo "$as_me: failed program was:" >&5
34944sed 's/^/| /' conftest.$ac_ext >&5
34945
34946eval "$as_ac_var=no"
34947fi
ac1cb8d3
VS
34948rm -f conftest.err conftest.$ac_objext \
34949 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34950fi
34951echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34952echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34953if test `eval echo '${'$as_ac_var'}'` = yes; then
34954 cat >>confdefs.h <<_ACEOF
34955#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34956_ACEOF
34957
34958fi
34959done
34960
34961
34962 if test "$ac_cv_func_localtime" = "yes"; then
34963 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
34964echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
34965if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
34966 echo $ECHO_N "(cached) $ECHO_C" >&6
34967else
34968
34969 cat >conftest.$ac_ext <<_ACEOF
34970/* confdefs.h. */
34971_ACEOF
34972cat confdefs.h >>conftest.$ac_ext
34973cat >>conftest.$ac_ext <<_ACEOF
34974/* end confdefs.h. */
34975
34976 #include <time.h>
34977
34978int
34979main ()
34980{
34981
34982 struct tm tm;
34983 tm.tm_gmtoff++;
34984
34985 ;
34986 return 0;
34987}
34988_ACEOF
34989rm -f conftest.$ac_objext
34990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34991 (eval $ac_compile) 2>conftest.er1
a848cd7e 34992 ac_status=$?
ac1cb8d3
VS
34993 grep -v '^ *+' conftest.er1 >conftest.err
34994 rm -f conftest.er1
34995 cat conftest.err >&5
a848cd7e
SC
34996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34997 (exit $ac_status); } &&
ea7db9ff
DE
34998 { ac_try='test -z "$ac_c_werror_flag"
34999 || test ! -s conftest.err'
ac1cb8d3
VS
35000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35001 (eval $ac_try) 2>&5
35002 ac_status=$?
35003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35004 (exit $ac_status); }; } &&
35005 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35007 (eval $ac_try) 2>&5
35008 ac_status=$?
35009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35010 (exit $ac_status); }; }; then
35011
35012 wx_cv_struct_tm_has_gmtoff=yes
35013
35014else
35015 echo "$as_me: failed program was:" >&5
35016sed 's/^/| /' conftest.$ac_ext >&5
35017
35018wx_cv_struct_tm_has_gmtoff=no
35019
35020fi
ac1cb8d3 35021rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35022
35023fi
35024echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
35025echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
35026 fi
35027
35028 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
35029 cat >>confdefs.h <<\_ACEOF
35030#define WX_GMTOFF_IN_TM 1
35031_ACEOF
35032
35033 fi
35034
35035
35036
35037for ac_func in gettimeofday ftime
35038do
35039as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35040echo "$as_me:$LINENO: checking for $ac_func" >&5
35041echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35042if eval "test \"\${$as_ac_var+set}\" = set"; then
35043 echo $ECHO_N "(cached) $ECHO_C" >&6
35044else
35045 cat >conftest.$ac_ext <<_ACEOF
35046/* confdefs.h. */
35047_ACEOF
35048cat confdefs.h >>conftest.$ac_ext
35049cat >>conftest.$ac_ext <<_ACEOF
35050/* end confdefs.h. */
ac1cb8d3
VS
35051/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35052 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35053#define $ac_func innocuous_$ac_func
35054
a848cd7e
SC
35055/* System header to define __stub macros and hopefully few prototypes,
35056 which can conflict with char $ac_func (); below.
35057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35058 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35059
a848cd7e
SC
35060#ifdef __STDC__
35061# include <limits.h>
35062#else
35063# include <assert.h>
35064#endif
ac1cb8d3
VS
35065
35066#undef $ac_func
35067
a848cd7e
SC
35068/* Override any gcc2 internal prototype to avoid an error. */
35069#ifdef __cplusplus
35070extern "C"
35071{
35072#endif
35073/* We use char because int might match the return type of a gcc2
35074 builtin and then its argument prototype would still apply. */
35075char $ac_func ();
35076/* The GNU C library defines this for functions which it implements
35077 to always fail with ENOSYS. Some functions are actually named
35078 something starting with __ and the normal name is an alias. */
35079#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35080choke me
35081#else
35082char (*f) () = $ac_func;
35083#endif
35084#ifdef __cplusplus
35085}
35086#endif
35087
35088int
35089main ()
35090{
35091return f != $ac_func;
35092 ;
35093 return 0;
35094}
35095_ACEOF
35096rm -f conftest.$ac_objext conftest$ac_exeext
35097if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35098 (eval $ac_link) 2>conftest.er1
a848cd7e 35099 ac_status=$?
ac1cb8d3
VS
35100 grep -v '^ *+' conftest.er1 >conftest.err
35101 rm -f conftest.er1
35102 cat conftest.err >&5
a848cd7e
SC
35103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35104 (exit $ac_status); } &&
ea7db9ff
DE
35105 { ac_try='test -z "$ac_c_werror_flag"
35106 || test ! -s conftest.err'
ac1cb8d3
VS
35107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35108 (eval $ac_try) 2>&5
35109 ac_status=$?
35110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35111 (exit $ac_status); }; } &&
35112 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35114 (eval $ac_try) 2>&5
35115 ac_status=$?
35116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35117 (exit $ac_status); }; }; then
35118 eval "$as_ac_var=yes"
35119else
35120 echo "$as_me: failed program was:" >&5
35121sed 's/^/| /' conftest.$ac_ext >&5
35122
35123eval "$as_ac_var=no"
35124fi
ac1cb8d3
VS
35125rm -f conftest.err conftest.$ac_objext \
35126 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35127fi
35128echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35129echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35130if test `eval echo '${'$as_ac_var'}'` = yes; then
35131 cat >>confdefs.h <<_ACEOF
35132#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35133_ACEOF
35134 break
35135fi
35136done
35137
35138
35139 if test "$ac_cv_func_gettimeofday" = "yes"; then
35140 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
35141echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
35142if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
35143 echo $ECHO_N "(cached) $ECHO_C" >&6
35144else
35145
35146
35147
35148 ac_ext=cc
35149ac_cpp='$CXXCPP $CPPFLAGS'
35150ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35151ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35152ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35153
35154
35155 cat >conftest.$ac_ext <<_ACEOF
35156/* confdefs.h. */
35157_ACEOF
35158cat confdefs.h >>conftest.$ac_ext
35159cat >>conftest.$ac_ext <<_ACEOF
35160/* end confdefs.h. */
35161
35162 #include <sys/time.h>
35163 #include <unistd.h>
35164
35165int
35166main ()
35167{
35168
35169 struct timeval tv;
35170 gettimeofday(&tv, NULL);
35171
35172 ;
35173 return 0;
35174}
35175_ACEOF
35176rm -f conftest.$ac_objext
35177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35178 (eval $ac_compile) 2>conftest.er1
a848cd7e 35179 ac_status=$?
ac1cb8d3
VS
35180 grep -v '^ *+' conftest.er1 >conftest.err
35181 rm -f conftest.er1
35182 cat conftest.err >&5
a848cd7e
SC
35183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35184 (exit $ac_status); } &&
ea7db9ff
DE
35185 { ac_try='test -z "$ac_cxx_werror_flag"
35186 || test ! -s conftest.err'
ac1cb8d3
VS
35187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35188 (eval $ac_try) 2>&5
35189 ac_status=$?
35190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35191 (exit $ac_status); }; } &&
35192 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35194 (eval $ac_try) 2>&5
35195 ac_status=$?
35196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35197 (exit $ac_status); }; }; then
35198 wx_cv_func_gettimeofday_has_2_args=yes
35199else
35200 echo "$as_me: failed program was:" >&5
35201sed 's/^/| /' conftest.$ac_ext >&5
35202
35203cat >conftest.$ac_ext <<_ACEOF
35204/* confdefs.h. */
35205_ACEOF
35206cat confdefs.h >>conftest.$ac_ext
35207cat >>conftest.$ac_ext <<_ACEOF
35208/* end confdefs.h. */
35209
35210 #include <sys/time.h>
35211 #include <unistd.h>
35212
35213int
35214main ()
35215{
35216
35217 struct timeval tv;
35218 gettimeofday(&tv);
35219
35220 ;
35221 return 0;
35222}
35223_ACEOF
35224rm -f conftest.$ac_objext
35225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35226 (eval $ac_compile) 2>conftest.er1
a848cd7e 35227 ac_status=$?
ac1cb8d3
VS
35228 grep -v '^ *+' conftest.er1 >conftest.err
35229 rm -f conftest.er1
35230 cat conftest.err >&5
a848cd7e
SC
35231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35232 (exit $ac_status); } &&
ea7db9ff
DE
35233 { ac_try='test -z "$ac_cxx_werror_flag"
35234 || test ! -s conftest.err'
ac1cb8d3
VS
35235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35236 (eval $ac_try) 2>&5
35237 ac_status=$?
35238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35239 (exit $ac_status); }; } &&
35240 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35242 (eval $ac_try) 2>&5
35243 ac_status=$?
35244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35245 (exit $ac_status); }; }; then
35246 wx_cv_func_gettimeofday_has_2_args=no
35247else
35248 echo "$as_me: failed program was:" >&5
35249sed 's/^/| /' conftest.$ac_ext >&5
35250
35251
35252 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
35253echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
35254 wx_cv_func_gettimeofday_has_2_args=unknown
35255
35256
35257fi
ac1cb8d3 35258rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35259
35260fi
ac1cb8d3 35261rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35262 ac_ext=c
35263ac_cpp='$CPP $CPPFLAGS'
35264ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35265ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35266ac_compiler_gnu=$ac_cv_c_compiler_gnu
35267
35268
35269fi
35270echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
35271echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
35272
35273 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
35274 cat >>confdefs.h <<\_ACEOF
35275#define WX_GETTIMEOFDAY_NO_TZ 1
35276_ACEOF
35277
35278 fi
35279 fi
35280
35281 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
35282fi
35283
35284
35285if test "$wxUSE_SOCKETS" = "yes"; then
35286 if test "$wxUSE_MGL" = "1"; then
35287 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
35288echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
35289 wxUSE_SOCKETS="no"
35290 fi
35291fi
35292
35293if test "$wxUSE_SOCKETS" = "yes"; then
35294 if test "$TOOLKIT" != "MSW"; then
35295 echo "$as_me:$LINENO: checking for socket" >&5
35296echo $ECHO_N "checking for socket... $ECHO_C" >&6
35297if test "${ac_cv_func_socket+set}" = set; then
35298 echo $ECHO_N "(cached) $ECHO_C" >&6
35299else
35300 cat >conftest.$ac_ext <<_ACEOF
35301/* confdefs.h. */
35302_ACEOF
35303cat confdefs.h >>conftest.$ac_ext
35304cat >>conftest.$ac_ext <<_ACEOF
35305/* end confdefs.h. */
ac1cb8d3
VS
35306/* Define socket to an innocuous variant, in case <limits.h> declares socket.
35307 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35308#define socket innocuous_socket
35309
a848cd7e
SC
35310/* System header to define __stub macros and hopefully few prototypes,
35311 which can conflict with char socket (); below.
35312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35313 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35314
a848cd7e
SC
35315#ifdef __STDC__
35316# include <limits.h>
35317#else
35318# include <assert.h>
35319#endif
ac1cb8d3
VS
35320
35321#undef socket
35322
a848cd7e
SC
35323/* Override any gcc2 internal prototype to avoid an error. */
35324#ifdef __cplusplus
35325extern "C"
35326{
35327#endif
35328/* We use char because int might match the return type of a gcc2
35329 builtin and then its argument prototype would still apply. */
35330char socket ();
35331/* The GNU C library defines this for functions which it implements
35332 to always fail with ENOSYS. Some functions are actually named
35333 something starting with __ and the normal name is an alias. */
35334#if defined (__stub_socket) || defined (__stub___socket)
35335choke me
35336#else
35337char (*f) () = socket;
35338#endif
35339#ifdef __cplusplus
35340}
35341#endif
35342
35343int
35344main ()
35345{
35346return f != socket;
35347 ;
35348 return 0;
35349}
35350_ACEOF
35351rm -f conftest.$ac_objext conftest$ac_exeext
35352if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35353 (eval $ac_link) 2>conftest.er1
a848cd7e 35354 ac_status=$?
ac1cb8d3
VS
35355 grep -v '^ *+' conftest.er1 >conftest.err
35356 rm -f conftest.er1
35357 cat conftest.err >&5
a848cd7e
SC
35358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35359 (exit $ac_status); } &&
ea7db9ff
DE
35360 { ac_try='test -z "$ac_c_werror_flag"
35361 || test ! -s conftest.err'
ac1cb8d3
VS
35362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35363 (eval $ac_try) 2>&5
35364 ac_status=$?
35365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35366 (exit $ac_status); }; } &&
35367 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35369 (eval $ac_try) 2>&5
35370 ac_status=$?
35371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35372 (exit $ac_status); }; }; then
35373 ac_cv_func_socket=yes
35374else
35375 echo "$as_me: failed program was:" >&5
35376sed 's/^/| /' conftest.$ac_ext >&5
35377
35378ac_cv_func_socket=no
35379fi
ac1cb8d3
VS
35380rm -f conftest.err conftest.$ac_objext \
35381 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35382fi
35383echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
35384echo "${ECHO_T}$ac_cv_func_socket" >&6
35385if test $ac_cv_func_socket = yes; then
35386 :
35387else
35388
35389 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
35390echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
35391if test "${ac_cv_lib_socket_socket+set}" = set; then
35392 echo $ECHO_N "(cached) $ECHO_C" >&6
35393else
35394 ac_check_lib_save_LIBS=$LIBS
35395LIBS="-lsocket $LIBS"
35396cat >conftest.$ac_ext <<_ACEOF
35397/* confdefs.h. */
35398_ACEOF
35399cat confdefs.h >>conftest.$ac_ext
35400cat >>conftest.$ac_ext <<_ACEOF
35401/* end confdefs.h. */
35402
35403/* Override any gcc2 internal prototype to avoid an error. */
35404#ifdef __cplusplus
35405extern "C"
35406#endif
35407/* We use char because int might match the return type of a gcc2
35408 builtin and then its argument prototype would still apply. */
35409char socket ();
35410int
35411main ()
35412{
35413socket ();
35414 ;
35415 return 0;
35416}
35417_ACEOF
35418rm -f conftest.$ac_objext conftest$ac_exeext
35419if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35420 (eval $ac_link) 2>conftest.er1
a848cd7e 35421 ac_status=$?
ac1cb8d3
VS
35422 grep -v '^ *+' conftest.er1 >conftest.err
35423 rm -f conftest.er1
35424 cat conftest.err >&5
a848cd7e
SC
35425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35426 (exit $ac_status); } &&
ea7db9ff
DE
35427 { ac_try='test -z "$ac_c_werror_flag"
35428 || test ! -s conftest.err'
ac1cb8d3
VS
35429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35430 (eval $ac_try) 2>&5
35431 ac_status=$?
35432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35433 (exit $ac_status); }; } &&
35434 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35436 (eval $ac_try) 2>&5
35437 ac_status=$?
35438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35439 (exit $ac_status); }; }; then
35440 ac_cv_lib_socket_socket=yes
35441else
35442 echo "$as_me: failed program was:" >&5
35443sed 's/^/| /' conftest.$ac_ext >&5
35444
35445ac_cv_lib_socket_socket=no
35446fi
ac1cb8d3
VS
35447rm -f conftest.err conftest.$ac_objext \
35448 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35449LIBS=$ac_check_lib_save_LIBS
35450fi
35451echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
35452echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
35453if test $ac_cv_lib_socket_socket = yes; then
35454 if test "$INET_LINK" != " -lsocket"; then
35455 INET_LINK="$INET_LINK -lsocket"
35456 fi
35457else
35458
35459 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
35460echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
35461 wxUSE_SOCKETS=no
35462
35463
35464fi
35465
35466
35467
35468fi
35469
35470 fi
35471fi
35472
35473if test "$wxUSE_SOCKETS" = "yes" ; then
35474 if test "$TOOLKIT" != "MSW"; then
35475 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
35476echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
35477if test "${wx_cv_type_getsockname3+set}" = set; then
35478 echo $ECHO_N "(cached) $ECHO_C" >&6
35479else
35480
35481 cat >conftest.$ac_ext <<_ACEOF
35482/* confdefs.h. */
35483_ACEOF
35484cat confdefs.h >>conftest.$ac_ext
35485cat >>conftest.$ac_ext <<_ACEOF
35486/* end confdefs.h. */
35487
35488 #include <sys/types.h>
35489 #include <sys/socket.h>
35490
35491int
35492main ()
35493{
35494
35495 socklen_t len;
35496 getsockname(0, 0, &len);
35497
35498 ;
35499 return 0;
35500}
35501_ACEOF
35502rm -f conftest.$ac_objext
35503if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35504 (eval $ac_compile) 2>conftest.er1
a848cd7e 35505 ac_status=$?
ac1cb8d3
VS
35506 grep -v '^ *+' conftest.er1 >conftest.err
35507 rm -f conftest.er1
35508 cat conftest.err >&5
a848cd7e
SC
35509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35510 (exit $ac_status); } &&
ea7db9ff
DE
35511 { ac_try='test -z "$ac_c_werror_flag"
35512 || test ! -s conftest.err'
ac1cb8d3
VS
35513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35514 (eval $ac_try) 2>&5
35515 ac_status=$?
35516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35517 (exit $ac_status); }; } &&
35518 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35520 (eval $ac_try) 2>&5
35521 ac_status=$?
35522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35523 (exit $ac_status); }; }; then
35524 wx_cv_type_getsockname3=socklen_t
35525else
35526 echo "$as_me: failed program was:" >&5
35527sed 's/^/| /' conftest.$ac_ext >&5
35528
35529
35530 CFLAGS_OLD="$CFLAGS"
35531 if test "$GCC" = yes ; then
35532 CFLAGS="$CFLAGS -Werror"
35533 fi
35534
35535 cat >conftest.$ac_ext <<_ACEOF
35536/* confdefs.h. */
35537_ACEOF
35538cat confdefs.h >>conftest.$ac_ext
35539cat >>conftest.$ac_ext <<_ACEOF
35540/* end confdefs.h. */
35541
35542 #include <sys/types.h>
35543 #include <sys/socket.h>
35544
35545int
35546main ()
35547{
35548
35549 size_t len;
35550 getsockname(0, 0, &len);
35551
35552 ;
35553 return 0;
35554}
35555_ACEOF
35556rm -f conftest.$ac_objext
35557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35558 (eval $ac_compile) 2>conftest.er1
a848cd7e 35559 ac_status=$?
ac1cb8d3
VS
35560 grep -v '^ *+' conftest.er1 >conftest.err
35561 rm -f conftest.er1
35562 cat conftest.err >&5
a848cd7e
SC
35563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35564 (exit $ac_status); } &&
ea7db9ff
DE
35565 { ac_try='test -z "$ac_c_werror_flag"
35566 || test ! -s conftest.err'
ac1cb8d3
VS
35567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35568 (eval $ac_try) 2>&5
35569 ac_status=$?
35570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35571 (exit $ac_status); }; } &&
35572 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35574 (eval $ac_try) 2>&5
35575 ac_status=$?
35576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35577 (exit $ac_status); }; }; then
35578 wx_cv_type_getsockname3=size_t
35579else
35580 echo "$as_me: failed program was:" >&5
35581sed 's/^/| /' conftest.$ac_ext >&5
35582
35583cat >conftest.$ac_ext <<_ACEOF
35584/* confdefs.h. */
35585_ACEOF
35586cat confdefs.h >>conftest.$ac_ext
35587cat >>conftest.$ac_ext <<_ACEOF
35588/* end confdefs.h. */
35589
35590 #include <sys/types.h>
35591 #include <sys/socket.h>
35592
35593int
35594main ()
35595{
35596
35597 int len;
35598 getsockname(0, 0, &len);
35599
35600 ;
35601 return 0;
35602}
35603_ACEOF
35604rm -f conftest.$ac_objext
35605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35606 (eval $ac_compile) 2>conftest.er1
a848cd7e 35607 ac_status=$?
ac1cb8d3
VS
35608 grep -v '^ *+' conftest.er1 >conftest.err
35609 rm -f conftest.er1
35610 cat conftest.err >&5
a848cd7e
SC
35611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35612 (exit $ac_status); } &&
ea7db9ff
DE
35613 { ac_try='test -z "$ac_c_werror_flag"
35614 || test ! -s conftest.err'
ac1cb8d3
VS
35615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35616 (eval $ac_try) 2>&5
35617 ac_status=$?
35618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35619 (exit $ac_status); }; } &&
35620 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35622 (eval $ac_try) 2>&5
35623 ac_status=$?
35624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35625 (exit $ac_status); }; }; then
35626 wx_cv_type_getsockname3=int
35627else
35628 echo "$as_me: failed program was:" >&5
35629sed 's/^/| /' conftest.$ac_ext >&5
35630
35631wx_cv_type_getsockname3=unknown
35632
35633fi
ac1cb8d3 35634rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35635
35636fi
ac1cb8d3 35637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35638
35639 CFLAGS="$CFLAGS_OLD"
35640
35641
35642fi
ac1cb8d3 35643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35644
35645fi
35646echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
35647echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
35648
35649 if test "$wx_cv_type_getsockname3" = "unknown"; then
35650 wxUSE_SOCKETS=no
35651 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
35652echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
35653 else
35654 cat >>confdefs.h <<_ACEOF
35655#define SOCKLEN_T $wx_cv_type_getsockname3
35656_ACEOF
35657
35658 fi
35659 fi
35660fi
35661
35662if test "$wxUSE_SOCKETS" = "yes" ; then
35663 cat >>confdefs.h <<\_ACEOF
35664#define wxUSE_SOCKETS 1
35665_ACEOF
35666
35667 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
35668fi
35669
35670if test "$wxUSE_PROTOCOL" = "yes"; then
35671 if test "$wxUSE_SOCKETS" != "yes"; then
35672 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
35673echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
35674 wxUSE_PROTOCOL=no
35675 fi
35676fi
35677
35678if test "$wxUSE_PROTOCOL" = "yes"; then
35679 cat >>confdefs.h <<\_ACEOF
35680#define wxUSE_PROTOCOL 1
35681_ACEOF
35682
35683
35684 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
35685 cat >>confdefs.h <<\_ACEOF
35686#define wxUSE_PROTOCOL_HTTP 1
35687_ACEOF
35688
35689 fi
35690 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
35691 cat >>confdefs.h <<\_ACEOF
35692#define wxUSE_PROTOCOL_FTP 1
35693_ACEOF
35694
35695 fi
35696 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
35697 cat >>confdefs.h <<\_ACEOF
35698#define wxUSE_PROTOCOL_FILE 1
35699_ACEOF
35700
35701 fi
35702else
35703 if test "$wxUSE_FS_INET" = "yes"; then
35704 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
35705echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
35706 wxUSE_FS_INET="no"
35707 fi
35708fi
35709
35710if test "$wxUSE_URL" = "yes"; then
35711 if test "$wxUSE_PROTOCOL" != "yes"; then
35712 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
35713echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
35714 wxUSE_URL=no
35715 fi
35716 if test "$wxUSE_URL" = "yes"; then
35717 cat >>confdefs.h <<\_ACEOF
35718#define wxUSE_URL 1
35719_ACEOF
35720
35721 fi
35722fi
35723
35724if test "$wxUSE_FS_INET" = "yes"; then
35725 cat >>confdefs.h <<\_ACEOF
35726#define wxUSE_FS_INET 1
35727_ACEOF
35728
35729fi
35730
35731
35732if test "$wxUSE_GUI" = "yes"; then
35733
35734 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
35735 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
35736echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
35737 wxUSE_JOYSTICK=no
35738 fi
35739
35740 if test "$TOOLKIT" != "MSW"; then
35741 if test "$wxUSE_JOYSTICK" = "yes"; then
35742
35743for ac_header in linux/joystick.h
35744do
35745as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35746if eval "test \"\${$as_ac_Header+set}\" = set"; then
35747 echo "$as_me:$LINENO: checking for $ac_header" >&5
35748echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35749if eval "test \"\${$as_ac_Header+set}\" = set"; then
35750 echo $ECHO_N "(cached) $ECHO_C" >&6
35751fi
35752echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35753echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35754else
35755 # Is the header compilable?
35756echo "$as_me:$LINENO: checking $ac_header usability" >&5
35757echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35758cat >conftest.$ac_ext <<_ACEOF
35759/* confdefs.h. */
35760_ACEOF
35761cat confdefs.h >>conftest.$ac_ext
35762cat >>conftest.$ac_ext <<_ACEOF
35763/* end confdefs.h. */
35764$ac_includes_default
35765#include <$ac_header>
35766_ACEOF
35767rm -f conftest.$ac_objext
35768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35769 (eval $ac_compile) 2>conftest.er1
a848cd7e 35770 ac_status=$?
ac1cb8d3
VS
35771 grep -v '^ *+' conftest.er1 >conftest.err
35772 rm -f conftest.er1
35773 cat conftest.err >&5
a848cd7e
SC
35774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35775 (exit $ac_status); } &&
ea7db9ff
DE
35776 { ac_try='test -z "$ac_c_werror_flag"
35777 || test ! -s conftest.err'
ac1cb8d3
VS
35778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35779 (eval $ac_try) 2>&5
35780 ac_status=$?
35781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35782 (exit $ac_status); }; } &&
35783 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35785 (eval $ac_try) 2>&5
35786 ac_status=$?
35787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35788 (exit $ac_status); }; }; then
35789 ac_header_compiler=yes
35790else
35791 echo "$as_me: failed program was:" >&5
35792sed 's/^/| /' conftest.$ac_ext >&5
35793
35794ac_header_compiler=no
35795fi
ac1cb8d3 35796rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35797echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35798echo "${ECHO_T}$ac_header_compiler" >&6
35799
35800# Is the header present?
35801echo "$as_me:$LINENO: checking $ac_header presence" >&5
35802echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35803cat >conftest.$ac_ext <<_ACEOF
35804/* confdefs.h. */
35805_ACEOF
35806cat confdefs.h >>conftest.$ac_ext
35807cat >>conftest.$ac_ext <<_ACEOF
35808/* end confdefs.h. */
35809#include <$ac_header>
35810_ACEOF
35811if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35812 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35813 ac_status=$?
35814 grep -v '^ *+' conftest.er1 >conftest.err
35815 rm -f conftest.er1
35816 cat conftest.err >&5
35817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35818 (exit $ac_status); } >/dev/null; then
35819 if test -s conftest.err; then
35820 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 35821 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
35822 else
35823 ac_cpp_err=
35824 fi
35825else
35826 ac_cpp_err=yes
35827fi
35828if test -z "$ac_cpp_err"; then
35829 ac_header_preproc=yes
35830else
35831 echo "$as_me: failed program was:" >&5
35832sed 's/^/| /' conftest.$ac_ext >&5
35833
35834 ac_header_preproc=no
35835fi
35836rm -f conftest.err conftest.$ac_ext
35837echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35838echo "${ECHO_T}$ac_header_preproc" >&6
35839
35840# So? What about this header?
ac1cb8d3
VS
35841case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35842 yes:no: )
a848cd7e
SC
35843 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35844echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
35845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35846echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35847 ac_header_preproc=yes
a848cd7e 35848 ;;
ac1cb8d3 35849 no:yes:* )
a848cd7e
SC
35850 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35851echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
35852 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35853echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35854 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35855echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35856 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35857echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
35858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35859echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
35860 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35861echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
35862 (
35863 cat <<\_ASBOX
ac1cb8d3
VS
35864## ----------------------------------------- ##
35865## Report this to wx-dev@lists.wxwidgets.org ##
35866## ----------------------------------------- ##
a848cd7e
SC
35867_ASBOX
35868 ) |
35869 sed "s/^/$as_me: WARNING: /" >&2
35870 ;;
35871esac
35872echo "$as_me:$LINENO: checking for $ac_header" >&5
35873echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35874if eval "test \"\${$as_ac_Header+set}\" = set"; then
35875 echo $ECHO_N "(cached) $ECHO_C" >&6
35876else
ac1cb8d3 35877 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
35878fi
35879echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35880echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35881
35882fi
35883if test `eval echo '${'$as_ac_Header'}'` = yes; then
35884 cat >>confdefs.h <<_ACEOF
35885#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35886_ACEOF
35887
35888fi
35889
35890done
35891
35892 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
35893 wxUSE_JOYSTICK=no
35894 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
35895echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
35896 fi
35897 fi
35898 fi
35899
35900 if test "$wxUSE_JOYSTICK" = "yes"; then
35901 cat >>confdefs.h <<\_ACEOF
35902#define wxUSE_JOYSTICK 1
35903_ACEOF
35904
35905 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
35906 fi
35907fi
35908
35909
35910
35911if test "$wxUSE_FONTMAP" = "yes" ; then
35912 cat >>confdefs.h <<\_ACEOF
35913#define wxUSE_FONTMAP 1
35914_ACEOF
35915
35916fi
35917
35918if test "$wxUSE_UNICODE" = "yes" ; then
35919 cat >>confdefs.h <<\_ACEOF
35920#define wxUSE_UNICODE 1
35921_ACEOF
35922
35923
35924 if test "$USE_WIN32" != 1; then
35925 wxUSE_UNICODE_MSLU=no
35926 fi
35927
35928 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
35929 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
35930echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
35931if test "${ac_cv_lib_unicows_main+set}" = set; then
35932 echo $ECHO_N "(cached) $ECHO_C" >&6
35933else
35934 ac_check_lib_save_LIBS=$LIBS
35935LIBS="-lunicows $LIBS"
35936cat >conftest.$ac_ext <<_ACEOF
35937/* confdefs.h. */
35938_ACEOF
35939cat confdefs.h >>conftest.$ac_ext
35940cat >>conftest.$ac_ext <<_ACEOF
35941/* end confdefs.h. */
35942
35943
35944int
35945main ()
35946{
35947main ();
35948 ;
35949 return 0;
35950}
35951_ACEOF
35952rm -f conftest.$ac_objext conftest$ac_exeext
35953if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35954 (eval $ac_link) 2>conftest.er1
a848cd7e 35955 ac_status=$?
ac1cb8d3
VS
35956 grep -v '^ *+' conftest.er1 >conftest.err
35957 rm -f conftest.er1
35958 cat conftest.err >&5
a848cd7e
SC
35959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35960 (exit $ac_status); } &&
ea7db9ff
DE
35961 { ac_try='test -z "$ac_c_werror_flag"
35962 || test ! -s conftest.err'
ac1cb8d3
VS
35963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35964 (eval $ac_try) 2>&5
35965 ac_status=$?
35966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35967 (exit $ac_status); }; } &&
35968 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35970 (eval $ac_try) 2>&5
35971 ac_status=$?
35972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35973 (exit $ac_status); }; }; then
35974 ac_cv_lib_unicows_main=yes
35975else
35976 echo "$as_me: failed program was:" >&5
35977sed 's/^/| /' conftest.$ac_ext >&5
35978
35979ac_cv_lib_unicows_main=no
35980fi
ac1cb8d3
VS
35981rm -f conftest.err conftest.$ac_objext \
35982 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35983LIBS=$ac_check_lib_save_LIBS
35984fi
35985echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
35986echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
35987if test $ac_cv_lib_unicows_main = yes; then
35988
35989 cat >>confdefs.h <<\_ACEOF
35990#define wxUSE_UNICODE_MSLU 1
35991_ACEOF
35992
35993
35994else
35995
35996 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
35997 Applications will only run on Windows NT/2000/XP!" >&5
35998echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
35999 Applications will only run on Windows NT/2000/XP!" >&2;}
36000 wxUSE_UNICODE_MSLU=no
36001
36002fi
36003
36004 fi
36005fi
36006
36007if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
36008 cat >>confdefs.h <<\_ACEOF
36009#define wxUSE_EXPERIMENTAL_PRINTF 1
36010_ACEOF
36011
36012fi
36013
36014
36015if test "$wxUSE_POSTSCRIPT" = "yes" ; then
36016 cat >>confdefs.h <<\_ACEOF
36017#define wxUSE_POSTSCRIPT 1
36018_ACEOF
36019
36020fi
36021
36022cat >>confdefs.h <<\_ACEOF
36023#define wxUSE_AFM_FOR_POSTSCRIPT 1
36024_ACEOF
36025
36026
36027cat >>confdefs.h <<\_ACEOF
36028#define wxUSE_NORMALIZED_PS_FONTS 1
36029_ACEOF
36030
36031
36032
36033if test "$wxUSE_CONSTRAINTS" = "yes"; then
36034 cat >>confdefs.h <<\_ACEOF
36035#define wxUSE_CONSTRAINTS 1
36036_ACEOF
36037
36038 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
36039fi
36040
8a7b1113
VZ
36041if test "$wxUSE_MDI" = "yes"; then
36042 cat >>confdefs.h <<\_ACEOF
36043#define wxUSE_MDI 1
36044_ACEOF
36045
36046
36047 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
36048 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
36049#define wxUSE_MDI_ARCHITECTURE 1
36050_ACEOF
36051
8a7b1113
VZ
36052 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
36053 fi
a848cd7e
SC
36054fi
36055
36056if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
36057 cat >>confdefs.h <<\_ACEOF
36058#define wxUSE_DOC_VIEW_ARCHITECTURE 1
36059_ACEOF
36060
36061 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
36062 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
36063 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
36064 fi
36065fi
36066
36067if test "$wxUSE_HELP" = "yes"; then
36068 cat >>confdefs.h <<\_ACEOF
36069#define wxUSE_HELP 1
36070_ACEOF
36071
36072 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
36073
36074 if test "$wxUSE_MSW" = 1; then
36075 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
36076 cat >>confdefs.h <<\_ACEOF
36077#define wxUSE_MS_HTML_HELP 1
36078_ACEOF
36079
36080 fi
36081 fi
36082
36083 if test "$wxUSE_WXHTML_HELP" = "yes"; then
36084 if test "$wxUSE_HTML" = "yes"; then
36085 cat >>confdefs.h <<\_ACEOF
36086#define wxUSE_WXHTML_HELP 1
36087_ACEOF
36088
36089 else
36090 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
36091echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
36092 wxUSE_WXHTML_HELP=no
36093 fi
36094 fi
36095fi
36096
36097if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
36098 if test "$wxUSE_CONSTRAINTS" != "yes"; then
36099 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
36100echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
36101 else
36102 cat >>confdefs.h <<\_ACEOF
36103#define wxUSE_PRINTING_ARCHITECTURE 1
36104_ACEOF
36105
36106 fi
36107 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
36108fi
36109
36110if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
36111 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
36112echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
36113 { (exit 1); exit 1; }; }
36114fi
36115
36116
36117if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
36118 -o "$wxUSE_CLIPBOARD" = "yes" \
36119 -o "$wxUSE_OLE" = "yes" \
36120 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
36121
36122for ac_header in ole2.h
36123do
36124as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36125if eval "test \"\${$as_ac_Header+set}\" = set"; then
36126 echo "$as_me:$LINENO: checking for $ac_header" >&5
36127echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36128if eval "test \"\${$as_ac_Header+set}\" = set"; then
36129 echo $ECHO_N "(cached) $ECHO_C" >&6
36130fi
36131echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36132echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36133else
36134 # Is the header compilable?
36135echo "$as_me:$LINENO: checking $ac_header usability" >&5
36136echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36137cat >conftest.$ac_ext <<_ACEOF
36138/* confdefs.h. */
36139_ACEOF
36140cat confdefs.h >>conftest.$ac_ext
36141cat >>conftest.$ac_ext <<_ACEOF
36142/* end confdefs.h. */
36143$ac_includes_default
36144#include <$ac_header>
36145_ACEOF
36146rm -f conftest.$ac_objext
36147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36148 (eval $ac_compile) 2>conftest.er1
a848cd7e 36149 ac_status=$?
ac1cb8d3
VS
36150 grep -v '^ *+' conftest.er1 >conftest.err
36151 rm -f conftest.er1
36152 cat conftest.err >&5
a848cd7e
SC
36153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36154 (exit $ac_status); } &&
ea7db9ff
DE
36155 { ac_try='test -z "$ac_c_werror_flag"
36156 || test ! -s conftest.err'
ac1cb8d3
VS
36157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36158 (eval $ac_try) 2>&5
36159 ac_status=$?
36160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36161 (exit $ac_status); }; } &&
36162 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
36168 ac_header_compiler=yes
36169else
36170 echo "$as_me: failed program was:" >&5
36171sed 's/^/| /' conftest.$ac_ext >&5
36172
36173ac_header_compiler=no
36174fi
ac1cb8d3 36175rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36176echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36177echo "${ECHO_T}$ac_header_compiler" >&6
36178
36179# Is the header present?
36180echo "$as_me:$LINENO: checking $ac_header presence" >&5
36181echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36182cat >conftest.$ac_ext <<_ACEOF
36183/* confdefs.h. */
36184_ACEOF
36185cat confdefs.h >>conftest.$ac_ext
36186cat >>conftest.$ac_ext <<_ACEOF
36187/* end confdefs.h. */
36188#include <$ac_header>
36189_ACEOF
36190if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36191 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36192 ac_status=$?
36193 grep -v '^ *+' conftest.er1 >conftest.err
36194 rm -f conftest.er1
36195 cat conftest.err >&5
36196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36197 (exit $ac_status); } >/dev/null; then
36198 if test -s conftest.err; then
36199 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36200 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36201 else
36202 ac_cpp_err=
36203 fi
36204else
36205 ac_cpp_err=yes
36206fi
36207if test -z "$ac_cpp_err"; then
36208 ac_header_preproc=yes
36209else
36210 echo "$as_me: failed program was:" >&5
36211sed 's/^/| /' conftest.$ac_ext >&5
36212
36213 ac_header_preproc=no
36214fi
36215rm -f conftest.err conftest.$ac_ext
36216echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36217echo "${ECHO_T}$ac_header_preproc" >&6
36218
36219# So? What about this header?
ac1cb8d3
VS
36220case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36221 yes:no: )
a848cd7e
SC
36222 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36223echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36224 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36225echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36226 ac_header_preproc=yes
a848cd7e 36227 ;;
ac1cb8d3 36228 no:yes:* )
a848cd7e
SC
36229 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36230echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36231 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36232echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36233 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36234echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36235 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36236echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36237 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36238echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36239 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36240echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36241 (
36242 cat <<\_ASBOX
ac1cb8d3
VS
36243## ----------------------------------------- ##
36244## Report this to wx-dev@lists.wxwidgets.org ##
36245## ----------------------------------------- ##
a848cd7e
SC
36246_ASBOX
36247 ) |
36248 sed "s/^/$as_me: WARNING: /" >&2
36249 ;;
36250esac
36251echo "$as_me:$LINENO: checking for $ac_header" >&5
36252echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36253if eval "test \"\${$as_ac_Header+set}\" = set"; then
36254 echo $ECHO_N "(cached) $ECHO_C" >&6
36255else
ac1cb8d3 36256 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36257fi
36258echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36259echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36260
36261fi
36262if test `eval echo '${'$as_ac_Header'}'` = yes; then
36263 cat >>confdefs.h <<_ACEOF
36264#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36265_ACEOF
36266
36267fi
36268
36269done
36270
36271
36272 if test "$ac_cv_header_ole2_h" = "yes" ; then
36273 if test "$GCC" = yes ; then
36274
36275
36276 ac_ext=cc
36277ac_cpp='$CXXCPP $CPPFLAGS'
36278ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36279ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36280ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36281
36282
36283 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
36284echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
36285 cat >conftest.$ac_ext <<_ACEOF
36286/* confdefs.h. */
36287_ACEOF
36288cat confdefs.h >>conftest.$ac_ext
36289cat >>conftest.$ac_ext <<_ACEOF
36290/* end confdefs.h. */
36291#include <windows.h>
36292 #include <ole2.h>
36293int
36294main ()
36295{
36296
36297 ;
36298 return 0;
36299}
36300_ACEOF
36301rm -f conftest.$ac_objext
36302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36303 (eval $ac_compile) 2>conftest.er1
a848cd7e 36304 ac_status=$?
ac1cb8d3
VS
36305 grep -v '^ *+' conftest.er1 >conftest.err
36306 rm -f conftest.er1
36307 cat conftest.err >&5
a848cd7e
SC
36308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36309 (exit $ac_status); } &&
ea7db9ff
DE
36310 { ac_try='test -z "$ac_cxx_werror_flag"
36311 || test ! -s conftest.err'
ac1cb8d3
VS
36312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36313 (eval $ac_try) 2>&5
36314 ac_status=$?
36315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36316 (exit $ac_status); }; } &&
36317 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36319 (eval $ac_try) 2>&5
36320 ac_status=$?
36321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36322 (exit $ac_status); }; }; then
36323 echo "$as_me:$LINENO: result: no" >&5
36324echo "${ECHO_T}no" >&6
36325else
36326 echo "$as_me: failed program was:" >&5
36327sed 's/^/| /' conftest.$ac_ext >&5
36328
36329echo "$as_me:$LINENO: result: yes" >&5
36330echo "${ECHO_T}yes" >&6
36331 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
36332fi
ac1cb8d3 36333rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36334 ac_ext=c
36335ac_cpp='$CPP $CPPFLAGS'
36336ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36337ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36338ac_compiler_gnu=$ac_cv_c_compiler_gnu
36339
36340 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
36341 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
36342 if test "$wxUSE_OLE" = "yes" ; then
36343 cat >>confdefs.h <<\_ACEOF
36344#define wxUSE_OLE 1
36345_ACEOF
36346
36347 fi
36348 fi
36349
36350 if test "$wxUSE_DATAOBJ" = "yes" ; then
36351 cat >>confdefs.h <<\_ACEOF
36352#define wxUSE_DATAOBJ 1
36353_ACEOF
36354
36355 fi
36356 else
36357 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
36358echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
36359
36360 wxUSE_CLIPBOARD=no
36361 wxUSE_DRAG_AND_DROP=no
36362 wxUSE_DATAOBJ=no
36363 wxUSE_OLE=no
36364 fi
36365
36366 if test "$wxUSE_METAFILE" = "yes"; then
36367 cat >>confdefs.h <<\_ACEOF
36368#define wxUSE_METAFILE 1
36369_ACEOF
36370
36371
36372 cat >>confdefs.h <<\_ACEOF
36373#define wxUSE_ENH_METAFILE 1
36374_ACEOF
36375
36376 fi
36377fi
36378
36379if test "$wxUSE_IPC" = "yes"; then
36380 if test "$wxUSE_SOCKETS" != "yes"; then
77ffb593
JS
36381 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
36382echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
a848cd7e
SC
36383 fi
36384
36385 cat >>confdefs.h <<\_ACEOF
36386#define wxUSE_IPC 1
36387_ACEOF
36388
36389fi
36390
36391if test "$wxUSE_CLIPBOARD" = "yes"; then
36392 if test "$wxUSE_MGL" = 1; then
36393 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
36394echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
36395 wxUSE_CLIPBOARD=no
36396 fi
36397
36398 if test "$wxUSE_CLIPBOARD" = "yes"; then
36399 cat >>confdefs.h <<\_ACEOF
36400#define wxUSE_CLIPBOARD 1
36401_ACEOF
36402
36403
36404 cat >>confdefs.h <<\_ACEOF
36405#define wxUSE_DATAOBJ 1
36406_ACEOF
36407
36408 fi
36409fi
36410
36411if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
36412 if test "$wxUSE_GTK" = 1; then
36413 if test "$WXGTK12" != 1; then
36414 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
36415echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
36416 wxUSE_DRAG_AND_DROP=no
36417 fi
36418 fi
36419
36420 if test "$wxUSE_MOTIF" = 1; then
36421 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
36422echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
36423 wxUSE_DRAG_AND_DROP=no
36424 fi
36425
36426 if test "$wxUSE_X11" = 1; then
36427 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
36428echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
36429 wxUSE_DRAG_AND_DROP=no
36430 fi
36431
36432 if test "$wxUSE_MGL" = 1; then
36433 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
36434echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
36435 wxUSE_DRAG_AND_DROP=no
36436 fi
36437
36438 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
36439 cat >>confdefs.h <<\_ACEOF
36440#define wxUSE_DRAG_AND_DROP 1
36441_ACEOF
36442
36443 fi
36444
36445fi
36446
36447if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
36448 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
36449fi
36450
36451if test "$wxUSE_SPLINES" = "yes" ; then
36452 cat >>confdefs.h <<\_ACEOF
36453#define wxUSE_SPLINES 1
36454_ACEOF
36455
36456fi
36457
36458
36459USES_CONTROLS=0
36460if test "$wxUSE_CONTROLS" = "yes"; then
36461 USES_CONTROLS=1
36462fi
36463
36464if test "$wxUSE_ACCEL" = "yes"; then
36465 cat >>confdefs.h <<\_ACEOF
36466#define wxUSE_ACCEL 1
36467_ACEOF
36468
36469 USES_CONTROLS=1
36470fi
36471
36472if test "$wxUSE_BUTTON" = "yes"; then
36473 cat >>confdefs.h <<\_ACEOF
36474#define wxUSE_BUTTON 1
36475_ACEOF
36476
36477 USES_CONTROLS=1
36478fi
36479
36480if test "$wxUSE_BMPBUTTON" = "yes"; then
36481 cat >>confdefs.h <<\_ACEOF
36482#define wxUSE_BMPBUTTON 1
36483_ACEOF
36484
36485 USES_CONTROLS=1
36486fi
36487
36488if test "$wxUSE_CALCTRL" = "yes"; then
36489 cat >>confdefs.h <<\_ACEOF
36490#define wxUSE_CALENDARCTRL 1
36491_ACEOF
36492
36493 USES_CONTROLS=1
36494 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
36495fi
36496
36497if test "$wxUSE_CARET" = "yes"; then
36498 cat >>confdefs.h <<\_ACEOF
36499#define wxUSE_CARET 1
36500_ACEOF
36501
36502 USES_CONTROLS=1
36503 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
36504fi
36505
36506if test "$wxUSE_COMBOBOX" = "yes"; then
36507 cat >>confdefs.h <<\_ACEOF
36508#define wxUSE_COMBOBOX 1
36509_ACEOF
36510
36511 USES_CONTROLS=1
36512fi
36513
36514if test "$wxUSE_CHOICE" = "yes"; then
36515 cat >>confdefs.h <<\_ACEOF
36516#define wxUSE_CHOICE 1
36517_ACEOF
36518
36519 USES_CONTROLS=1
36520fi
36521
36522if test "$wxUSE_CHECKBOX" = "yes"; then
36523 cat >>confdefs.h <<\_ACEOF
36524#define wxUSE_CHECKBOX 1
36525_ACEOF
36526
36527 USES_CONTROLS=1
36528fi
36529
36530if test "$wxUSE_CHECKLST" = "yes"; then
36531 cat >>confdefs.h <<\_ACEOF
36532#define wxUSE_CHECKLISTBOX 1
36533_ACEOF
36534
36535 USES_CONTROLS=1
36536 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
36537fi
36538
36539if test "$wxUSE_DISPLAY" = "yes"; then
36540 cat >>confdefs.h <<\_ACEOF
36541#define wxUSE_DISPLAY 1
36542_ACEOF
36543
36544 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
36545fi
36546
36547if test "$wxUSE_GAUGE" = "yes"; then
36548 cat >>confdefs.h <<\_ACEOF
36549#define wxUSE_GAUGE 1
36550_ACEOF
36551
36552 USES_CONTROLS=1
36553fi
36554
36555if test "$wxUSE_GRID" = "yes"; then
36556 cat >>confdefs.h <<\_ACEOF
36557#define wxUSE_GRID 1
36558_ACEOF
36559
36560 USES_CONTROLS=1
36561 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
36562fi
36563
36564if test "$wxUSE_IMAGLIST" = "yes"; then
36565 cat >>confdefs.h <<\_ACEOF
36566#define wxUSE_IMAGLIST 1
36567_ACEOF
36568
36569fi
36570
36571if test "$wxUSE_LISTBOOK" = "yes"; then
36572 cat >>confdefs.h <<\_ACEOF
36573#define wxUSE_LISTBOOK 1
36574_ACEOF
36575
36576 USES_CONTROLS=1
36577fi
36578
36579if test "$wxUSE_LISTBOX" = "yes"; then
36580 cat >>confdefs.h <<\_ACEOF
36581#define wxUSE_LISTBOX 1
36582_ACEOF
36583
36584 USES_CONTROLS=1
36585fi
36586
36587if test "$wxUSE_LISTCTRL" = "yes"; then
36588 if test "$wxUSE_IMAGLIST" = "yes"; then
36589 cat >>confdefs.h <<\_ACEOF
36590#define wxUSE_LISTCTRL 1
36591_ACEOF
36592
36593 USES_CONTROLS=1
36594 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
36595 else
36596 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
36597echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
36598 fi
36599fi
36600
36601if test "$wxUSE_NOTEBOOK" = "yes"; then
36602 cat >>confdefs.h <<\_ACEOF
36603#define wxUSE_NOTEBOOK 1
36604_ACEOF
36605
36606 USES_CONTROLS=1
36607 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
36608fi
36609
36610
36611if test "$wxUSE_RADIOBOX" = "yes"; then
36612 cat >>confdefs.h <<\_ACEOF
36613#define wxUSE_RADIOBOX 1
36614_ACEOF
36615
36616 USES_CONTROLS=1
36617fi
36618
36619if test "$wxUSE_RADIOBTN" = "yes"; then
36620 cat >>confdefs.h <<\_ACEOF
36621#define wxUSE_RADIOBTN 1
36622_ACEOF
36623
36624 USES_CONTROLS=1
36625fi
36626
36627if test "$wxUSE_SASH" = "yes"; then
36628 cat >>confdefs.h <<\_ACEOF
36629#define wxUSE_SASH 1
36630_ACEOF
36631
36632 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
36633fi
36634
36635if test "$wxUSE_SCROLLBAR" = "yes"; then
36636 cat >>confdefs.h <<\_ACEOF
36637#define wxUSE_SCROLLBAR 1
36638_ACEOF
36639
36640 USES_CONTROLS=1
36641 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
36642fi
36643
36644if test "$wxUSE_SLIDER" = "yes"; then
36645 cat >>confdefs.h <<\_ACEOF
36646#define wxUSE_SLIDER 1
36647_ACEOF
36648
36649 USES_CONTROLS=1
36650fi
36651
36652if test "$wxUSE_SPINBTN" = "yes"; then
36653 cat >>confdefs.h <<\_ACEOF
36654#define wxUSE_SPINBTN 1
36655_ACEOF
36656
36657 USES_CONTROLS=1
36658fi
36659
36660if test "$wxUSE_SPINCTRL" = "yes"; then
36661 cat >>confdefs.h <<\_ACEOF
36662#define wxUSE_SPINCTRL 1
36663_ACEOF
36664
36665 USES_CONTROLS=1
36666fi
36667
36668if test "$wxUSE_SPLITTER" = "yes"; then
36669 cat >>confdefs.h <<\_ACEOF
36670#define wxUSE_SPLITTER 1
36671_ACEOF
36672
36673 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
36674fi
36675
36676if test "$wxUSE_STATBMP" = "yes"; then
36677 cat >>confdefs.h <<\_ACEOF
36678#define wxUSE_STATBMP 1
36679_ACEOF
36680
36681 USES_CONTROLS=1
36682fi
36683
36684if test "$wxUSE_STATBOX" = "yes"; then
36685 cat >>confdefs.h <<\_ACEOF
36686#define wxUSE_STATBOX 1
36687_ACEOF
36688
36689 USES_CONTROLS=1
36690fi
36691
36692if test "$wxUSE_STATTEXT" = "yes"; then
36693 cat >>confdefs.h <<\_ACEOF
36694#define wxUSE_STATTEXT 1
36695_ACEOF
36696
36697 USES_CONTROLS=1
36698fi
36699
36700if test "$wxUSE_STATLINE" = "yes"; then
36701 cat >>confdefs.h <<\_ACEOF
36702#define wxUSE_STATLINE 1
36703_ACEOF
36704
36705 USES_CONTROLS=1
36706fi
36707
36708if test "$wxUSE_STATUSBAR" = "yes"; then
36709 cat >>confdefs.h <<\_ACEOF
36710#define wxUSE_STATUSBAR 1
36711_ACEOF
36712
36713 USES_CONTROLS=1
36714
36715 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
36716fi
36717
36718if test "$wxUSE_TABDIALOG" = "yes"; then
36719 cat >>confdefs.h <<\_ACEOF
36720#define wxUSE_TAB_DIALOG 1
36721_ACEOF
36722
36723 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
36724fi
36725
36726if test "$wxUSE_TEXTCTRL" = "yes"; then
36727 cat >>confdefs.h <<\_ACEOF
36728#define wxUSE_TEXTCTRL 1
36729_ACEOF
36730
36731 USES_CONTROLS=1
36732 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
36733fi
36734
36735if test "$wxUSE_TOGGLEBTN" = "yes"; then
36736 if test "$wxUSE_COCOA" = 1 ; then
36737 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
36738echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
36739 wxUSE_TOGGLEBTN=no
bdcade0a
MB
36740 else
36741 if test "$wxUSE_PM" = 1; then
36742 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5
36743echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;}
36744 wxUSE_TOGGLEBTN=no
36745 fi
a848cd7e
SC
36746 fi
36747 if test "$wxUSE_UNIVERSAL" = "yes"; then
36748 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
36749echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
36750 wxUSE_TOGGLEBTN=no
36751 fi
36752
36753 if test "$wxUSE_TOGGLEBTN" = "yes"; then
36754 cat >>confdefs.h <<\_ACEOF
36755#define wxUSE_TOGGLEBTN 1
36756_ACEOF
36757
36758 USES_CONTROLS=1
36759 fi
36760fi
36761
36762if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
36763 cat >>confdefs.h <<\_ACEOF
36764#define wxUSE_TOOLBAR_SIMPLE 1
36765_ACEOF
36766
36767 wxUSE_TOOLBAR="yes"
36768 USES_CONTROLS=1
36769fi
36770
36771if test "$wxUSE_TOOLBAR" = "yes"; then
36772 cat >>confdefs.h <<\_ACEOF
36773#define wxUSE_TOOLBAR 1
36774_ACEOF
36775
36776 USES_CONTROLS=1
36777
36778 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
36779 wxUSE_TOOLBAR_NATIVE="yes"
36780 fi
36781
36782 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
36783 cat >>confdefs.h <<\_ACEOF
36784#define wxUSE_TOOLBAR_NATIVE 1
36785_ACEOF
36786
36787 USES_CONTROLS=1
36788 fi
36789
36790 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
36791fi
36792
36793if test "$wxUSE_TOOLTIPS" = "yes"; then
36794 if test "$wxUSE_MOTIF" = 1; then
36795 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
36796echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
36797 else
36798 if test "$wxUSE_UNIVERSAL" = "yes"; then
36799 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
36800echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
36801 else
36802 cat >>confdefs.h <<\_ACEOF
36803#define wxUSE_TOOLTIPS 1
36804_ACEOF
36805
36806 fi
36807 fi
36808fi
36809
36810if test "$wxUSE_TREECTRL" = "yes"; then
36811 if test "$wxUSE_IMAGLIST" = "yes"; then
36812 cat >>confdefs.h <<\_ACEOF
36813#define wxUSE_TREECTRL 1
36814_ACEOF
36815
36816 USES_CONTROLS=1
36817 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
36818 else
36819 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
36820echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
36821 fi
36822fi
36823
36824if test "$wxUSE_POPUPWIN" = "yes"; then
36825 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
36826 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
36827echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
36828 else
36829 if test "$wxUSE_PM" = 1; then
36830 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
36831echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
36832 else
36833 cat >>confdefs.h <<\_ACEOF
36834#define wxUSE_POPUPWIN 1
36835_ACEOF
36836
36837
36838 USES_CONTROLS=1
36839 fi
36840 fi
36841fi
36842
36843if test "$wxUSE_TIPWINDOW" = "yes"; then
36844 if test "$wxUSE_PM" = 1; then
36845 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
36846echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
36847 else
36848 cat >>confdefs.h <<\_ACEOF
36849#define wxUSE_TIPWINDOW 1
36850_ACEOF
36851
36852 fi
36853fi
36854
36855if test "$USES_CONTROLS" = 1; then
36856 cat >>confdefs.h <<\_ACEOF
36857#define wxUSE_CONTROLS 1
36858_ACEOF
36859
36860fi
36861
36862
36863if test "$wxUSE_ACCESSIBILITY" = "yes"; then
36864 cat >>confdefs.h <<\_ACEOF
36865#define wxUSE_ACCESSIBILITY 1
36866_ACEOF
36867
36868 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
36869fi
36870
36871if test "$wxUSE_DRAGIMAGE" = "yes"; then
36872 cat >>confdefs.h <<\_ACEOF
36873#define wxUSE_DRAGIMAGE 1
36874_ACEOF
36875
36876 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
36877fi
36878
36879if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
36880 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
36881 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
36882echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
36883 else
36884 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
36885#define wxUSE_EXCEPTIONS 1
36886_ACEOF
36887
07bea8f0
VS
36888 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
36889 fi
a848cd7e
SC
36890fi
36891
36892USE_HTML=0
36893if test "$wxUSE_HTML" = "yes"; then
36894 cat >>confdefs.h <<\_ACEOF
36895#define wxUSE_HTML 1
36896_ACEOF
36897
36898 USE_HTML=1
36899 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
36900 if test "$wxUSE_MAC" = 1; then
36901 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
36902 fi
a848cd7e 36903fi
646b6ec1 36904if test "$wxUSE_WEBKIT" = "yes"; then
07bea8f0
VS
36905 if test "$wxUSE_MAC" = 1; then
36906 old_CPPFLAGS="$CPPFLAGS"
36907 CPPFLAGS="$CPPFLAGS -x objective-c++"
36908 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
36909echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
36910if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
36911 echo $ECHO_N "(cached) $ECHO_C" >&6
36912else
36913 cat >conftest.$ac_ext <<_ACEOF
36914/* confdefs.h. */
36915_ACEOF
36916cat confdefs.h >>conftest.$ac_ext
36917cat >>conftest.$ac_ext <<_ACEOF
36918/* end confdefs.h. */
36919#include <Carbon/Carbon.h>
36920
36921#include <WebKit/HIWebView.h>
36922_ACEOF
36923rm -f conftest.$ac_objext
36924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36925 (eval $ac_compile) 2>conftest.er1
36926 ac_status=$?
36927 grep -v '^ *+' conftest.er1 >conftest.err
36928 rm -f conftest.er1
36929 cat conftest.err >&5
36930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36931 (exit $ac_status); } &&
ea7db9ff
DE
36932 { ac_try='test -z "$ac_c_werror_flag"
36933 || test ! -s conftest.err'
07bea8f0
VS
36934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36935 (eval $ac_try) 2>&5
36936 ac_status=$?
36937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36938 (exit $ac_status); }; } &&
36939 { ac_try='test -s conftest.$ac_objext'
36940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36941 (eval $ac_try) 2>&5
36942 ac_status=$?
36943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36944 (exit $ac_status); }; }; then
36945 ac_cv_header_WebKit_HIWebView_h=yes
36946else
36947 echo "$as_me: failed program was:" >&5
36948sed 's/^/| /' conftest.$ac_ext >&5
36949
36950ac_cv_header_WebKit_HIWebView_h=no
36951fi
36952rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36953fi
36954echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
36955echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
36956if test $ac_cv_header_WebKit_HIWebView_h = yes; then
36957
36958 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
36959#define wxUSE_WEBKIT 1
36960_ACEOF
36961
07bea8f0
VS
36962 WEBKIT_LINK="-framework WebKit"
36963
36964else
36965
36966 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
36967echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
36968 wxUSE_WEBKIT=no
36969
646b6ec1
VS
36970fi
36971
07bea8f0
VS
36972
36973 CPPFLAGS="$old_CPPFLAGS"
36974 elif test "$wxUSE_COCOA" = 1; then
36975 cat >>confdefs.h <<\_ACEOF
36976#define wxUSE_WEBKIT 1
36977_ACEOF
36978
36979 else
36980 wxUSE_WEBKIT=no
36981 fi
36982fi
36983
36984
a848cd7e
SC
36985if test "$wxUSE_MENUS" = "yes"; then
36986 cat >>confdefs.h <<\_ACEOF
36987#define wxUSE_MENUS 1
36988_ACEOF
36989
36990 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
36991fi
36992
36993if test "$wxUSE_METAFILE" = "yes"; then
36994 cat >>confdefs.h <<\_ACEOF
36995#define wxUSE_METAFILE 1
36996_ACEOF
36997
36998fi
36999
37000if test "$wxUSE_MIMETYPE" = "yes"; then
37001 cat >>confdefs.h <<\_ACEOF
37002#define wxUSE_MIMETYPE 1
37003_ACEOF
37004
37005fi
37006
37007if test "$wxUSE_MINIFRAME" = "yes"; then
37008 cat >>confdefs.h <<\_ACEOF
37009#define wxUSE_MINIFRAME 1
37010_ACEOF
37011
37012 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
37013fi
37014
37015if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
37016 cat >>confdefs.h <<\_ACEOF
37017#define wxUSE_SYSTEM_OPTIONS 1
37018_ACEOF
37019
37020 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
37021 "$TOOLKIT" = "MOTIF"; then
37022 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
37023 fi
37024fi
37025
37026
37027if test "$wxUSE_VALIDATORS" = "yes"; then
37028 cat >>confdefs.h <<\_ACEOF
37029#define wxUSE_VALIDATORS 1
37030_ACEOF
37031
37032 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
37033fi
37034
37035if test "$wxUSE_PALETTE" = "yes" ; then
37036 cat >>confdefs.h <<\_ACEOF
37037#define wxUSE_PALETTE 1
37038_ACEOF
37039
37040fi
37041
37042if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
37043 LIBS=" -lunicows $LIBS"
37044fi
37045
37046
37047if test "$wxUSE_IMAGE" = "yes" ; then
37048 cat >>confdefs.h <<\_ACEOF
37049#define wxUSE_IMAGE 1
37050_ACEOF
37051
37052
37053 if test "$wxUSE_GIF" = "yes" ; then
37054 cat >>confdefs.h <<\_ACEOF
37055#define wxUSE_GIF 1
37056_ACEOF
37057
37058 fi
37059
37060 if test "$wxUSE_PCX" = "yes" ; then
37061 cat >>confdefs.h <<\_ACEOF
37062#define wxUSE_PCX 1
37063_ACEOF
37064
37065 fi
37066
37067 if test "$wxUSE_IFF" = "yes" ; then
37068 cat >>confdefs.h <<\_ACEOF
37069#define wxUSE_IFF 1
37070_ACEOF
37071
37072 fi
37073
37074 if test "$wxUSE_PNM" = "yes" ; then
37075 cat >>confdefs.h <<\_ACEOF
37076#define wxUSE_PNM 1
37077_ACEOF
37078
37079 fi
37080
37081 if test "$wxUSE_XPM" = "yes" ; then
37082 cat >>confdefs.h <<\_ACEOF
37083#define wxUSE_XPM 1
37084_ACEOF
37085
37086 fi
37087
37088 if test "$wxUSE_ICO_CUR" = "yes" ; then
37089 cat >>confdefs.h <<\_ACEOF
37090#define wxUSE_ICO_CUR 1
37091_ACEOF
37092
37093 fi
37094fi
37095
37096
37097if test "$wxUSE_CHOICEDLG" = "yes"; then
37098 cat >>confdefs.h <<\_ACEOF
37099#define wxUSE_CHOICEDLG 1
37100_ACEOF
37101
37102fi
37103
37104if test "$wxUSE_COLOURDLG" = "yes"; then
37105 cat >>confdefs.h <<\_ACEOF
37106#define wxUSE_COLOURDLG 1
37107_ACEOF
37108
37109fi
37110
37111if test "$wxUSE_FILEDLG" = "yes"; then
37112 cat >>confdefs.h <<\_ACEOF
37113#define wxUSE_FILEDLG 1
37114_ACEOF
37115
37116fi
37117
37118if test "$wxUSE_FINDREPLDLG" = "yes"; then
37119 cat >>confdefs.h <<\_ACEOF
37120#define wxUSE_FINDREPLDLG 1
37121_ACEOF
37122
37123fi
37124
37125if test "$wxUSE_FONTDLG" = "yes"; then
37126 cat >>confdefs.h <<\_ACEOF
37127#define wxUSE_FONTDLG 1
37128_ACEOF
37129
37130fi
37131
37132if test "$wxUSE_DIRDLG" = "yes"; then
37133 if test "$wxUSE_TREECTRL" != "yes"; then
37134 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
37135echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
37136 else
37137 cat >>confdefs.h <<\_ACEOF
37138#define wxUSE_DIRDLG 1
37139_ACEOF
37140
37141 fi
37142fi
37143
37144if test "$wxUSE_MSGDLG" = "yes"; then
37145 cat >>confdefs.h <<\_ACEOF
37146#define wxUSE_MSGDLG 1
37147_ACEOF
37148
37149fi
37150
37151if test "$wxUSE_NUMBERDLG" = "yes"; then
37152 cat >>confdefs.h <<\_ACEOF
37153#define wxUSE_NUMBERDLG 1
37154_ACEOF
37155
37156fi
37157
37158if test "$wxUSE_PROGRESSDLG" = "yes"; then
37159 if test "$wxUSE_CONSTRAINTS" != "yes"; then
37160 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
37161echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
37162 else
37163 cat >>confdefs.h <<\_ACEOF
37164#define wxUSE_PROGRESSDLG 1
37165_ACEOF
37166
37167 fi
37168fi
37169
37170if test "$wxUSE_SPLASH" = "yes"; then
37171 cat >>confdefs.h <<\_ACEOF
37172#define wxUSE_SPLASH 1
37173_ACEOF
37174
2057db16 37175 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
37176fi
37177
37178if test "$wxUSE_STARTUP_TIPS" = "yes"; then
37179 if test "$wxUSE_CONSTRAINTS" != "yes"; then
37180 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
37181echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
37182 else
37183 cat >>confdefs.h <<\_ACEOF
37184#define wxUSE_STARTUP_TIPS 1
37185_ACEOF
37186
37187 fi
37188fi
37189
37190if test "$wxUSE_TEXTDLG" = "yes"; then
37191 cat >>confdefs.h <<\_ACEOF
37192#define wxUSE_TEXTDLG 1
37193_ACEOF
37194
37195fi
37196
37197if test "$wxUSE_WIZARDDLG" = "yes"; then
37198 cat >>confdefs.h <<\_ACEOF
37199#define wxUSE_WIZARDDLG 1
37200_ACEOF
37201
37202 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
37203fi
37204
37205
37206if test "$cross_compiling" = "yes"; then
37207 OSINFO="\"$host\""
37208else
37209 OSINFO=`uname -s -r -m`
37210 OSINFO="\"$OSINFO\""
37211fi
37212
37213cat >>confdefs.h <<_ACEOF
37214#define WXWIN_OS_DESCRIPTION $OSINFO
37215_ACEOF
37216
37217
37218
37219if test "x$prefix" != "xNONE"; then
37220 wxPREFIX=$prefix
37221else
37222 wxPREFIX=$ac_default_prefix
37223fi
37224
37225cat >>confdefs.h <<_ACEOF
37226#define wxINSTALL_PREFIX "$wxPREFIX"
37227_ACEOF
37228
37229
37230top_builddir_wxconfig=`pwd`
37231
37232
37233
37234CORE_BASE_LIBS="net base"
37235CORE_GUI_LIBS="adv core"
37236
37237if test "$wxUSE_XML" = "yes" ; then
37238 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
37239fi
37240if test "$wxUSE_ODBC" != "no" ; then
37241 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
37242 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
37243fi
37244if test "$wxUSE_HTML" = "yes" ; then
37245 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
37246fi
37247
37248if test "$wxUSE_GUI" != "yes"; then
37249 CORE_GUI_LIBS=""
37250fi
37251
37252
37253
37254
37255
37256
37257
37258
37259if test "$wxUSE_MAC" = 1 ; then
07bea8f0
VS
37260 if test "$wxUSE_SOUND" = "yes"; then
37261 LDFLAGS="$LDFLAGS -framework QuickTime"
37262 fi
37263 LDFLAGS="$LDFLAGS -framework Carbon -framework Cocoa -framework System"
a848cd7e
SC
37264fi
37265if test "$wxUSE_COCOA" = 1 ; then
37266 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
37267fi
37268
37269
37270LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
37271
37272have_cos=0
37273have_floor=0
37274
37275for ac_func in cos
37276do
37277as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37278echo "$as_me:$LINENO: checking for $ac_func" >&5
37279echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37280if eval "test \"\${$as_ac_var+set}\" = set"; then
37281 echo $ECHO_N "(cached) $ECHO_C" >&6
37282else
37283 cat >conftest.$ac_ext <<_ACEOF
37284/* confdefs.h. */
37285_ACEOF
37286cat confdefs.h >>conftest.$ac_ext
37287cat >>conftest.$ac_ext <<_ACEOF
37288/* end confdefs.h. */
ac1cb8d3
VS
37289/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37290 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37291#define $ac_func innocuous_$ac_func
37292
a848cd7e
SC
37293/* System header to define __stub macros and hopefully few prototypes,
37294 which can conflict with char $ac_func (); below.
37295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37296 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37297
a848cd7e
SC
37298#ifdef __STDC__
37299# include <limits.h>
37300#else
37301# include <assert.h>
37302#endif
ac1cb8d3
VS
37303
37304#undef $ac_func
37305
a848cd7e
SC
37306/* Override any gcc2 internal prototype to avoid an error. */
37307#ifdef __cplusplus
37308extern "C"
37309{
37310#endif
37311/* We use char because int might match the return type of a gcc2
37312 builtin and then its argument prototype would still apply. */
37313char $ac_func ();
37314/* The GNU C library defines this for functions which it implements
37315 to always fail with ENOSYS. Some functions are actually named
37316 something starting with __ and the normal name is an alias. */
37317#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37318choke me
37319#else
37320char (*f) () = $ac_func;
37321#endif
37322#ifdef __cplusplus
37323}
37324#endif
37325
37326int
37327main ()
37328{
37329return f != $ac_func;
37330 ;
37331 return 0;
37332}
37333_ACEOF
37334rm -f conftest.$ac_objext conftest$ac_exeext
37335if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37336 (eval $ac_link) 2>conftest.er1
a848cd7e 37337 ac_status=$?
ac1cb8d3
VS
37338 grep -v '^ *+' conftest.er1 >conftest.err
37339 rm -f conftest.er1
37340 cat conftest.err >&5
a848cd7e
SC
37341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37342 (exit $ac_status); } &&
ea7db9ff
DE
37343 { ac_try='test -z "$ac_c_werror_flag"
37344 || test ! -s conftest.err'
ac1cb8d3
VS
37345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37346 (eval $ac_try) 2>&5
37347 ac_status=$?
37348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37349 (exit $ac_status); }; } &&
37350 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37352 (eval $ac_try) 2>&5
37353 ac_status=$?
37354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37355 (exit $ac_status); }; }; then
37356 eval "$as_ac_var=yes"
37357else
37358 echo "$as_me: failed program was:" >&5
37359sed 's/^/| /' conftest.$ac_ext >&5
37360
37361eval "$as_ac_var=no"
37362fi
ac1cb8d3
VS
37363rm -f conftest.err conftest.$ac_objext \
37364 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37365fi
37366echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37367echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37368if test `eval echo '${'$as_ac_var'}'` = yes; then
37369 cat >>confdefs.h <<_ACEOF
37370#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37371_ACEOF
37372 have_cos=1
37373fi
37374done
37375
37376
37377for ac_func in floor
37378do
37379as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37380echo "$as_me:$LINENO: checking for $ac_func" >&5
37381echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37382if eval "test \"\${$as_ac_var+set}\" = set"; then
37383 echo $ECHO_N "(cached) $ECHO_C" >&6
37384else
37385 cat >conftest.$ac_ext <<_ACEOF
37386/* confdefs.h. */
37387_ACEOF
37388cat confdefs.h >>conftest.$ac_ext
37389cat >>conftest.$ac_ext <<_ACEOF
37390/* end confdefs.h. */
ac1cb8d3
VS
37391/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37392 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37393#define $ac_func innocuous_$ac_func
37394
a848cd7e
SC
37395/* System header to define __stub macros and hopefully few prototypes,
37396 which can conflict with char $ac_func (); below.
37397 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37398 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37399
a848cd7e
SC
37400#ifdef __STDC__
37401# include <limits.h>
37402#else
37403# include <assert.h>
37404#endif
ac1cb8d3
VS
37405
37406#undef $ac_func
37407
a848cd7e
SC
37408/* Override any gcc2 internal prototype to avoid an error. */
37409#ifdef __cplusplus
37410extern "C"
37411{
37412#endif
37413/* We use char because int might match the return type of a gcc2
37414 builtin and then its argument prototype would still apply. */
37415char $ac_func ();
37416/* The GNU C library defines this for functions which it implements
37417 to always fail with ENOSYS. Some functions are actually named
37418 something starting with __ and the normal name is an alias. */
37419#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37420choke me
37421#else
37422char (*f) () = $ac_func;
37423#endif
37424#ifdef __cplusplus
37425}
37426#endif
37427
37428int
37429main ()
37430{
37431return f != $ac_func;
37432 ;
37433 return 0;
37434}
37435_ACEOF
37436rm -f conftest.$ac_objext conftest$ac_exeext
37437if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37438 (eval $ac_link) 2>conftest.er1
a848cd7e 37439 ac_status=$?
ac1cb8d3
VS
37440 grep -v '^ *+' conftest.er1 >conftest.err
37441 rm -f conftest.er1
37442 cat conftest.err >&5
a848cd7e
SC
37443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37444 (exit $ac_status); } &&
ea7db9ff
DE
37445 { ac_try='test -z "$ac_c_werror_flag"
37446 || test ! -s conftest.err'
ac1cb8d3
VS
37447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37448 (eval $ac_try) 2>&5
37449 ac_status=$?
37450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37451 (exit $ac_status); }; } &&
37452 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37454 (eval $ac_try) 2>&5
37455 ac_status=$?
37456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37457 (exit $ac_status); }; }; then
37458 eval "$as_ac_var=yes"
37459else
37460 echo "$as_me: failed program was:" >&5
37461sed 's/^/| /' conftest.$ac_ext >&5
37462
37463eval "$as_ac_var=no"
37464fi
ac1cb8d3
VS
37465rm -f conftest.err conftest.$ac_objext \
37466 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37467fi
37468echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37469echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37470if test `eval echo '${'$as_ac_var'}'` = yes; then
37471 cat >>confdefs.h <<_ACEOF
37472#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37473_ACEOF
37474 have_floor=1
37475fi
37476done
37477
37478echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
37479echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
37480if test "$have_cos" = 1 -a "$have_floor" = 1; then
37481 echo "$as_me:$LINENO: result: yes" >&5
37482echo "${ECHO_T}yes" >&6
37483else
37484 echo "$as_me:$LINENO: result: no" >&5
37485echo "${ECHO_T}no" >&6
37486 LIBS="$LIBS -lm"
37487 # use different functions to avoid configure caching
37488 have_sin=0
37489 have_ceil=0
37490
37491for ac_func in sin
37492do
37493as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37494echo "$as_me:$LINENO: checking for $ac_func" >&5
37495echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37496if eval "test \"\${$as_ac_var+set}\" = set"; then
37497 echo $ECHO_N "(cached) $ECHO_C" >&6
37498else
37499 cat >conftest.$ac_ext <<_ACEOF
37500/* confdefs.h. */
37501_ACEOF
37502cat confdefs.h >>conftest.$ac_ext
37503cat >>conftest.$ac_ext <<_ACEOF
37504/* end confdefs.h. */
ac1cb8d3
VS
37505/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37506 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37507#define $ac_func innocuous_$ac_func
37508
a848cd7e
SC
37509/* System header to define __stub macros and hopefully few prototypes,
37510 which can conflict with char $ac_func (); below.
37511 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37512 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37513
a848cd7e
SC
37514#ifdef __STDC__
37515# include <limits.h>
37516#else
37517# include <assert.h>
37518#endif
ac1cb8d3
VS
37519
37520#undef $ac_func
37521
a848cd7e
SC
37522/* Override any gcc2 internal prototype to avoid an error. */
37523#ifdef __cplusplus
37524extern "C"
37525{
37526#endif
37527/* We use char because int might match the return type of a gcc2
37528 builtin and then its argument prototype would still apply. */
37529char $ac_func ();
37530/* The GNU C library defines this for functions which it implements
37531 to always fail with ENOSYS. Some functions are actually named
37532 something starting with __ and the normal name is an alias. */
37533#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37534choke me
37535#else
37536char (*f) () = $ac_func;
37537#endif
37538#ifdef __cplusplus
37539}
37540#endif
37541
37542int
37543main ()
37544{
37545return f != $ac_func;
37546 ;
37547 return 0;
37548}
37549_ACEOF
37550rm -f conftest.$ac_objext conftest$ac_exeext
37551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37552 (eval $ac_link) 2>conftest.er1
a848cd7e 37553 ac_status=$?
ac1cb8d3
VS
37554 grep -v '^ *+' conftest.er1 >conftest.err
37555 rm -f conftest.er1
37556 cat conftest.err >&5
a848cd7e
SC
37557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37558 (exit $ac_status); } &&
ea7db9ff
DE
37559 { ac_try='test -z "$ac_c_werror_flag"
37560 || test ! -s conftest.err'
ac1cb8d3
VS
37561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37562 (eval $ac_try) 2>&5
37563 ac_status=$?
37564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37565 (exit $ac_status); }; } &&
37566 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37568 (eval $ac_try) 2>&5
37569 ac_status=$?
37570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37571 (exit $ac_status); }; }; then
37572 eval "$as_ac_var=yes"
37573else
37574 echo "$as_me: failed program was:" >&5
37575sed 's/^/| /' conftest.$ac_ext >&5
37576
37577eval "$as_ac_var=no"
37578fi
ac1cb8d3
VS
37579rm -f conftest.err conftest.$ac_objext \
37580 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37581fi
37582echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37583echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37584if test `eval echo '${'$as_ac_var'}'` = yes; then
37585 cat >>confdefs.h <<_ACEOF
37586#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37587_ACEOF
37588 have_sin=1
37589fi
37590done
37591
37592
37593for ac_func in ceil
37594do
37595as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37596echo "$as_me:$LINENO: checking for $ac_func" >&5
37597echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37598if eval "test \"\${$as_ac_var+set}\" = set"; then
37599 echo $ECHO_N "(cached) $ECHO_C" >&6
37600else
37601 cat >conftest.$ac_ext <<_ACEOF
37602/* confdefs.h. */
37603_ACEOF
37604cat confdefs.h >>conftest.$ac_ext
37605cat >>conftest.$ac_ext <<_ACEOF
37606/* end confdefs.h. */
ac1cb8d3
VS
37607/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37609#define $ac_func innocuous_$ac_func
37610
a848cd7e
SC
37611/* System header to define __stub macros and hopefully few prototypes,
37612 which can conflict with char $ac_func (); below.
37613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37614 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37615
a848cd7e
SC
37616#ifdef __STDC__
37617# include <limits.h>
37618#else
37619# include <assert.h>
37620#endif
ac1cb8d3
VS
37621
37622#undef $ac_func
37623
a848cd7e
SC
37624/* Override any gcc2 internal prototype to avoid an error. */
37625#ifdef __cplusplus
37626extern "C"
37627{
37628#endif
37629/* We use char because int might match the return type of a gcc2
37630 builtin and then its argument prototype would still apply. */
37631char $ac_func ();
37632/* The GNU C library defines this for functions which it implements
37633 to always fail with ENOSYS. Some functions are actually named
37634 something starting with __ and the normal name is an alias. */
37635#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37636choke me
37637#else
37638char (*f) () = $ac_func;
37639#endif
37640#ifdef __cplusplus
37641}
37642#endif
37643
37644int
37645main ()
37646{
37647return f != $ac_func;
37648 ;
37649 return 0;
37650}
37651_ACEOF
37652rm -f conftest.$ac_objext conftest$ac_exeext
37653if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37654 (eval $ac_link) 2>conftest.er1
a848cd7e 37655 ac_status=$?
ac1cb8d3
VS
37656 grep -v '^ *+' conftest.er1 >conftest.err
37657 rm -f conftest.er1
37658 cat conftest.err >&5
a848cd7e
SC
37659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37660 (exit $ac_status); } &&
ea7db9ff
DE
37661 { ac_try='test -z "$ac_c_werror_flag"
37662 || test ! -s conftest.err'
ac1cb8d3
VS
37663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37664 (eval $ac_try) 2>&5
37665 ac_status=$?
37666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37667 (exit $ac_status); }; } &&
37668 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37670 (eval $ac_try) 2>&5
37671 ac_status=$?
37672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37673 (exit $ac_status); }; }; then
37674 eval "$as_ac_var=yes"
37675else
37676 echo "$as_me: failed program was:" >&5
37677sed 's/^/| /' conftest.$ac_ext >&5
37678
37679eval "$as_ac_var=no"
37680fi
ac1cb8d3
VS
37681rm -f conftest.err conftest.$ac_objext \
37682 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37683fi
37684echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37685echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37686if test `eval echo '${'$as_ac_var'}'` = yes; then
37687 cat >>confdefs.h <<_ACEOF
37688#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37689_ACEOF
37690 have_ceil=1
37691fi
37692done
37693
37694 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
37695echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
37696 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
37697 echo "$as_me:$LINENO: result: yes" >&5
37698echo "${ECHO_T}yes" >&6
37699 else
37700 echo "$as_me:$LINENO: result: no" >&5
37701echo "${ECHO_T}no" >&6
37702 # not sure we should warn the user, crash, etc.
37703 fi
37704fi
37705
37706if test "$wxUSE_GUI" = "yes"; then
37707
37708
37709 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
37710 drawing dynamic erase event exec font image \
37711 minimal propsize rotate shaped widgets render"
37712
37713 if test "$wxUSE_MONOLITHIC" != "yes"; then
37714 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
37715 fi
37716else
37717 SAMPLES_SUBDIRS="console"
37718fi
37719
37720
37721INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \
37722-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
37723
37724if test "$GXX" = yes ; then
37725 CXXWARNINGS="-Wall"
37726 fi
37727
37728EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
37729
37730CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
37731CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
37732CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
37733
37734
37735LIBS=`echo $LIBS | sed 's/ \+/ /g'`
37736EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
37737EXTRALIBS_XML="$EXPAT_LINK"
37738EXTRALIBS_HTML="$MSPACK_LINK"
37739EXTRALIBS_ODBC="$ODBC_LINK"
37740if test "$wxUSE_GUI" = "yes"; then
07bea8f0 37741 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK | sed 's/ \+/ /g'`
a848cd7e
SC
37742fi
37743if test "$wxUSE_OPENGL" = "yes"; then
37744 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
37745fi
37746
37747LDFLAGS="$LDFLAGS $PROFILE"
37748
37749if test "$wxUSE_GTK" = 1; then
37750 WXCONFIG_INCLUDE=
37751else
37752 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
37753fi
37754
37755WXCONFIG_EXTRALIBS="$LIBS"
37756
37757if test "$wxUSE_REGEX" = "builtin" ; then
37758 wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}"
37759fi
37760if test "$wxUSE_EXPAT" = "builtin" ; then
37761 wxconfig_3rdparty="$wxconfig_3rdparty expat"
37762fi
37763if test "$wxUSE_ODBC" = "builtin" ; then
37764 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
37765fi
37766if test "$wxUSE_LIBTIFF" = "builtin" ; then
37767 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
37768fi
37769if test "$wxUSE_LIBJPEG" = "builtin" ; then
37770 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
37771fi
37772if test "$wxUSE_LIBPNG" = "builtin" ; then
37773 wxconfig_3rdparty="$wxconfig_3rdparty png"
37774fi
37775if test "$wxUSE_ZLIB" = "builtin" ; then
37776 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
37777fi
37778if test "$wxUSE_ODBC" = "builtin" ; then
37779 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
37780fi
37781
37782for i in $wxconfig_3rdparty ; do
37783 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}"
37784done
37785
37786
37787if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
37788 WXUNIV=1
37789else
37790 WXUNIV=0
37791fi
37792
37793
37794
37795
37796
37797
37798
37799
37800
37801if test $wxUSE_MONOLITHIC = "yes" ; then
37802 MONOLITHIC=1
37803else
37804 MONOLITHIC=0
37805fi
37806
37807if test $wxUSE_PLUGINS = "yes" ; then
37808 USE_PLUGINS=1
37809else
37810 USE_PLUGINS=0
37811fi
37812
37813if test $wxUSE_ODBC != "no" ; then
37814 USE_ODBC=1
37815else
37816 USE_ODBC=0
37817fi
37818
37819if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
37820 OFFICIAL_BUILD=1
37821else
37822 OFFICIAL_BUILD=0
37823fi
37824
37825
37826
37827
37828
37829
37830
37831
37832
37833
37834
37835
37836
37837
37838
37839
37840
37841
37842
37843
37844
37845TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
37846
37847
37848
37849
37850
37851
37852
37853
37854
37855 if test "x$BAKEFILE_HOST" = "x"; then
37856 BAKEFILE_HOST="${host}"
37857 fi
37858
37859 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
37860
37861 if test -n "$ac_tool_prefix"; then
37862 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
37863set dummy ${ac_tool_prefix}ranlib; ac_word=$2
37864echo "$as_me:$LINENO: checking for $ac_word" >&5
37865echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37866if test "${ac_cv_prog_RANLIB+set}" = set; then
37867 echo $ECHO_N "(cached) $ECHO_C" >&6
37868else
37869 if test -n "$RANLIB"; then
37870 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
37871else
37872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37873for as_dir in $PATH
37874do
37875 IFS=$as_save_IFS
37876 test -z "$as_dir" && as_dir=.
37877 for ac_exec_ext in '' $ac_executable_extensions; do
37878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37879 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
37880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37881 break 2
37882 fi
37883done
37884done
37885
37886fi
37887fi
37888RANLIB=$ac_cv_prog_RANLIB
37889if test -n "$RANLIB"; then
37890 echo "$as_me:$LINENO: result: $RANLIB" >&5
37891echo "${ECHO_T}$RANLIB" >&6
37892else
37893 echo "$as_me:$LINENO: result: no" >&5
37894echo "${ECHO_T}no" >&6
37895fi
37896
37897fi
37898if test -z "$ac_cv_prog_RANLIB"; then
37899 ac_ct_RANLIB=$RANLIB
37900 # Extract the first word of "ranlib", so it can be a program name with args.
37901set dummy ranlib; ac_word=$2
37902echo "$as_me:$LINENO: checking for $ac_word" >&5
37903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37904if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
37905 echo $ECHO_N "(cached) $ECHO_C" >&6
37906else
37907 if test -n "$ac_ct_RANLIB"; then
37908 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
37909else
37910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37911for as_dir in $PATH
37912do
37913 IFS=$as_save_IFS
37914 test -z "$as_dir" && as_dir=.
37915 for ac_exec_ext in '' $ac_executable_extensions; do
37916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37917 ac_cv_prog_ac_ct_RANLIB="ranlib"
37918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37919 break 2
37920 fi
37921done
37922done
37923
37924 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
37925fi
37926fi
37927ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
37928if test -n "$ac_ct_RANLIB"; then
37929 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
37930echo "${ECHO_T}$ac_ct_RANLIB" >&6
37931else
37932 echo "$as_me:$LINENO: result: no" >&5
37933echo "${ECHO_T}no" >&6
37934fi
37935
37936 RANLIB=$ac_ct_RANLIB
37937else
37938 RANLIB="$ac_cv_prog_RANLIB"
37939fi
37940
37941 # Find a good install program. We prefer a C program (faster),
37942# so one script is as good as another. But avoid the broken or
37943# incompatible versions:
37944# SysV /etc/install, /usr/sbin/install
37945# SunOS /usr/etc/install
37946# IRIX /sbin/install
37947# AIX /bin/install
37948# AmigaOS /C/install, which installs bootblocks on floppy discs
37949# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
37950# AFS /usr/afsws/bin/install, which mishandles nonexistent args
37951# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 37952# OS/2's system install, which has a completely different semantic
a848cd7e
SC
37953# ./install, which can be erroneously created by make from ./install.sh.
37954echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
37955echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
37956if test -z "$INSTALL"; then
37957if test "${ac_cv_path_install+set}" = set; then
37958 echo $ECHO_N "(cached) $ECHO_C" >&6
37959else
37960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37961for as_dir in $PATH
37962do
37963 IFS=$as_save_IFS
37964 test -z "$as_dir" && as_dir=.
37965 # Account for people who put trailing slashes in PATH elements.
37966case $as_dir/ in
37967 ./ | .// | /cC/* | \
37968 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 37969 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
37970 /usr/ucb/* ) ;;
37971 *)
37972 # OSF1 and SCO ODT 3.0 have their own names for install.
37973 # Don't use installbsd from OSF since it installs stuff as root
37974 # by default.
37975 for ac_prog in ginstall scoinst install; do
37976 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
37977 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
37978 if test $ac_prog = install &&
37979 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
37980 # AIX install. It has an incompatible calling convention.
37981 :
37982 elif test $ac_prog = install &&
37983 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
37984 # program-specific install script used by HP pwplus--don't use.
37985 :
37986 else
37987 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
37988 break 3
37989 fi
37990 fi
a848cd7e
SC
37991 done
37992 done
37993 ;;
37994esac
37995done
37996
37997
37998fi
37999 if test "${ac_cv_path_install+set}" = set; then
38000 INSTALL=$ac_cv_path_install
38001 else
38002 # As a last resort, use the slow shell script. We don't cache a
38003 # path for INSTALL within a source directory, because that will
38004 # break other packages using the cache if that directory is
38005 # removed, or if the path is relative.
38006 INSTALL=$ac_install_sh
38007 fi
38008fi
38009echo "$as_me:$LINENO: result: $INSTALL" >&5
38010echo "${ECHO_T}$INSTALL" >&6
38011
38012# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
38013# It thinks the first close brace ends the variable substitution.
38014test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
38015
38016test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
38017
38018test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
38019
38020 echo "$as_me:$LINENO: checking whether ln -s works" >&5
38021echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
38022LN_S=$as_ln_s
38023if test "$LN_S" = "ln -s"; then
38024 echo "$as_me:$LINENO: result: yes" >&5
38025echo "${ECHO_T}yes" >&6
38026else
38027 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
38028echo "${ECHO_T}no, using $LN_S" >&6
38029fi
38030
38031
38032 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
38033echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 38034set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
38035if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
38036 echo $ECHO_N "(cached) $ECHO_C" >&6
38037else
38038 cat >conftest.make <<\_ACEOF
38039all:
38040 @echo 'ac_maketemp="$(MAKE)"'
38041_ACEOF
38042# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
38043eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
38044if test -n "$ac_maketemp"; then
38045 eval ac_cv_prog_make_${ac_make}_set=yes
38046else
38047 eval ac_cv_prog_make_${ac_make}_set=no
38048fi
38049rm -f conftest.make
38050fi
38051if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
38052 echo "$as_me:$LINENO: result: yes" >&5
38053echo "${ECHO_T}yes" >&6
38054 SET_MAKE=
38055else
38056 echo "$as_me:$LINENO: result: no" >&5
38057echo "${ECHO_T}no" >&6
38058 SET_MAKE="MAKE=${MAKE-make}"
38059fi
38060
38061
38062
38063 if test -n "$ac_tool_prefix"; then
38064 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
38065set dummy ${ac_tool_prefix}ar; ac_word=$2
38066echo "$as_me:$LINENO: checking for $ac_word" >&5
38067echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38068if test "${ac_cv_prog_AR+set}" = set; then
38069 echo $ECHO_N "(cached) $ECHO_C" >&6
38070else
38071 if test -n "$AR"; then
38072 ac_cv_prog_AR="$AR" # Let the user override the test.
38073else
38074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38075for as_dir in $PATH
38076do
38077 IFS=$as_save_IFS
38078 test -z "$as_dir" && as_dir=.
38079 for ac_exec_ext in '' $ac_executable_extensions; do
38080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38081 ac_cv_prog_AR="${ac_tool_prefix}ar"
38082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38083 break 2
38084 fi
38085done
38086done
38087
38088fi
38089fi
38090AR=$ac_cv_prog_AR
38091if test -n "$AR"; then
38092 echo "$as_me:$LINENO: result: $AR" >&5
38093echo "${ECHO_T}$AR" >&6
38094else
38095 echo "$as_me:$LINENO: result: no" >&5
38096echo "${ECHO_T}no" >&6
38097fi
38098
38099fi
38100if test -z "$ac_cv_prog_AR"; then
38101 ac_ct_AR=$AR
38102 # Extract the first word of "ar", so it can be a program name with args.
38103set dummy ar; ac_word=$2
38104echo "$as_me:$LINENO: checking for $ac_word" >&5
38105echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38106if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
38107 echo $ECHO_N "(cached) $ECHO_C" >&6
38108else
38109 if test -n "$ac_ct_AR"; then
38110 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
38111else
38112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38113for as_dir in $PATH
38114do
38115 IFS=$as_save_IFS
38116 test -z "$as_dir" && as_dir=.
38117 for ac_exec_ext in '' $ac_executable_extensions; do
38118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38119 ac_cv_prog_ac_ct_AR="ar"
38120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38121 break 2
38122 fi
38123done
38124done
38125
38126 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
38127fi
38128fi
38129ac_ct_AR=$ac_cv_prog_ac_ct_AR
38130if test -n "$ac_ct_AR"; then
38131 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
38132echo "${ECHO_T}$ac_ct_AR" >&6
38133else
38134 echo "$as_me:$LINENO: result: no" >&5
38135echo "${ECHO_T}no" >&6
38136fi
38137
38138 AR=$ac_ct_AR
38139else
38140 AR="$ac_cv_prog_AR"
38141fi
38142
38143 if test -n "$ac_tool_prefix"; then
38144 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
38145set dummy ${ac_tool_prefix}strip; ac_word=$2
38146echo "$as_me:$LINENO: checking for $ac_word" >&5
38147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38148if test "${ac_cv_prog_STRIP+set}" = set; then
38149 echo $ECHO_N "(cached) $ECHO_C" >&6
38150else
38151 if test -n "$STRIP"; then
38152 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
38153else
38154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38155for as_dir in $PATH
38156do
38157 IFS=$as_save_IFS
38158 test -z "$as_dir" && as_dir=.
38159 for ac_exec_ext in '' $ac_executable_extensions; do
38160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38161 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
38162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38163 break 2
38164 fi
38165done
38166done
38167
38168fi
38169fi
38170STRIP=$ac_cv_prog_STRIP
38171if test -n "$STRIP"; then
38172 echo "$as_me:$LINENO: result: $STRIP" >&5
38173echo "${ECHO_T}$STRIP" >&6
38174else
38175 echo "$as_me:$LINENO: result: no" >&5
38176echo "${ECHO_T}no" >&6
38177fi
38178
38179fi
38180if test -z "$ac_cv_prog_STRIP"; then
38181 ac_ct_STRIP=$STRIP
38182 # Extract the first word of "strip", so it can be a program name with args.
38183set dummy strip; ac_word=$2
38184echo "$as_me:$LINENO: checking for $ac_word" >&5
38185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38186if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
38187 echo $ECHO_N "(cached) $ECHO_C" >&6
38188else
38189 if test -n "$ac_ct_STRIP"; then
38190 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
38191else
38192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38193for as_dir in $PATH
38194do
38195 IFS=$as_save_IFS
38196 test -z "$as_dir" && as_dir=.
38197 for ac_exec_ext in '' $ac_executable_extensions; do
38198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38199 ac_cv_prog_ac_ct_STRIP="strip"
38200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38201 break 2
38202 fi
38203done
38204done
38205
38206 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
38207fi
38208fi
38209ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
38210if test -n "$ac_ct_STRIP"; then
38211 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
38212echo "${ECHO_T}$ac_ct_STRIP" >&6
38213else
38214 echo "$as_me:$LINENO: result: no" >&5
38215echo "${ECHO_T}no" >&6
38216fi
38217
38218 STRIP=$ac_ct_STRIP
38219else
38220 STRIP="$ac_cv_prog_STRIP"
38221fi
38222
38223 if test -n "$ac_tool_prefix"; then
38224 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
38225set dummy ${ac_tool_prefix}nm; ac_word=$2
38226echo "$as_me:$LINENO: checking for $ac_word" >&5
38227echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38228if test "${ac_cv_prog_NM+set}" = set; then
38229 echo $ECHO_N "(cached) $ECHO_C" >&6
38230else
38231 if test -n "$NM"; then
38232 ac_cv_prog_NM="$NM" # Let the user override the test.
38233else
38234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38235for as_dir in $PATH
38236do
38237 IFS=$as_save_IFS
38238 test -z "$as_dir" && as_dir=.
38239 for ac_exec_ext in '' $ac_executable_extensions; do
38240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38241 ac_cv_prog_NM="${ac_tool_prefix}nm"
38242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38243 break 2
38244 fi
38245done
38246done
38247
38248fi
38249fi
38250NM=$ac_cv_prog_NM
38251if test -n "$NM"; then
38252 echo "$as_me:$LINENO: result: $NM" >&5
38253echo "${ECHO_T}$NM" >&6
38254else
38255 echo "$as_me:$LINENO: result: no" >&5
38256echo "${ECHO_T}no" >&6
38257fi
38258
38259fi
38260if test -z "$ac_cv_prog_NM"; then
38261 ac_ct_NM=$NM
38262 # Extract the first word of "nm", so it can be a program name with args.
38263set dummy nm; ac_word=$2
38264echo "$as_me:$LINENO: checking for $ac_word" >&5
38265echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38266if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
38267 echo $ECHO_N "(cached) $ECHO_C" >&6
38268else
38269 if test -n "$ac_ct_NM"; then
38270 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
38271else
38272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38273for as_dir in $PATH
38274do
38275 IFS=$as_save_IFS
38276 test -z "$as_dir" && as_dir=.
38277 for ac_exec_ext in '' $ac_executable_extensions; do
38278 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38279 ac_cv_prog_ac_ct_NM="nm"
38280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38281 break 2
38282 fi
38283done
38284done
38285
38286 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
38287fi
38288fi
38289ac_ct_NM=$ac_cv_prog_ac_ct_NM
38290if test -n "$ac_ct_NM"; then
38291 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
38292echo "${ECHO_T}$ac_ct_NM" >&6
38293else
38294 echo "$as_me:$LINENO: result: no" >&5
38295echo "${ECHO_T}no" >&6
38296fi
38297
38298 NM=$ac_ct_NM
38299else
38300 NM="$ac_cv_prog_NM"
38301fi
38302
38303
38304 case ${BAKEFILE_HOST} in
38305 *-hp-hpux* )
38306 INSTALL_DIR="mkdir"
38307 ;;
38308 *) INSTALL_DIR="$INSTALL -d"
38309 ;;
38310 esac
38311
38312
38313 LDFLAGS_GUI=
38314 case ${BAKEFILE_HOST} in
38315 *-*-cygwin* | *-*-mingw32* )
38316 LDFLAGS_GUI="-mwindows"
38317 esac
38318
38319
38320 fi
38321
38322 echo "$as_me:$LINENO: checking if make is GNU make" >&5
38323echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
38324if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
38325 echo $ECHO_N "(cached) $ECHO_C" >&6
38326else
38327
38328 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
38329 egrep -s GNU > /dev/null); then
38330 bakefile_cv_prog_makeisgnu="yes"
38331 else
38332 bakefile_cv_prog_makeisgnu="no"
38333 fi
38334
38335fi
38336echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
38337echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
38338
38339 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
38340 IF_GNU_MAKE=""
38341 else
38342 IF_GNU_MAKE="#"
38343 fi
38344
38345
38346
38347 PLATFORM_UNIX=0
38348 PLATFORM_WIN32=0
38349 PLATFORM_MSDOS=0
38350 PLATFORM_MAC=0
38351 PLATFORM_MACOSX=0
38352 PLATFORM_OS2=0
38353
38354 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
38355 case "${BAKEFILE_HOST}" in
38356 *-*-cygwin* | *-*-mingw32* )
38357 PLATFORM_WIN32=1
38358 ;;
38359 *-pc-msdosdjgpp )
38360 PLATFORM_MSDOS=1
38361 ;;
38362 *-pc-os2_emx | *-pc-os2-emx )
38363 PLATFORM_OS2=1
38364 ;;
38365 powerpc-*-darwin* )
38366 PLATFORM_MAC=1
38367 PLATFORM_MACOSX=1
38368 ;;
38369 * )
38370 PLATFORM_UNIX=1
38371 ;;
38372 esac
38373 else
38374 case "$BAKEFILE_FORCE_PLATFORM" in
38375 win32 )
38376 PLATFORM_WIN32=1
38377 ;;
38378 msdos )
38379 PLATFORM_MSDOS=1
38380 ;;
38381 os2 )
38382 PLATFORM_OS2=1
38383 ;;
38384 darwin )
38385 PLATFORM_MAC=1
38386 PLATFORM_MACOSX=1
38387 ;;
38388 unix )
38389 PLATFORM_UNIX=1
38390 ;;
38391 * )
38392 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
38393echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
38394 { (exit 1); exit 1; }; }
38395 ;;
38396 esac
38397 fi
38398
38399
38400
38401
38402
38403
38404
38405
38406
38407 # Check whether --enable-omf or --disable-omf was given.
38408if test "${enable_omf+set}" = set; then
38409 enableval="$enable_omf"
38410 bk_os2_use_omf="$enableval"
38411fi;
38412
38413 case "${BAKEFILE_HOST}" in
38414 *-*-darwin* )
38415 CFLAGS="$CFLAGS -fno-common"
38416 CXXFLAGS="$CXXFLAGS -fno-common"
38417 ;;
38418
38419 *-pc-os2_emx | *-pc-os2-emx )
38420 if test "x$bk_os2_use_omf" = "xyes" ; then
38421 AR=emxomfar
38422 RANLIB=:
38423 LDFLAGS="-Zomf $LDFLAGS"
38424 CFLAGS="-Zomf $CFLAGS"
38425 CXXFLAGS="-Zomf $CXXFLAGS"
38426 OS2_LIBEXT="lib"
38427 else
38428 OS2_LIBEXT="a"
38429 fi
38430 ;;
38431 esac
38432
38433
38434 SO_SUFFIX="so"
38435 SO_SUFFIX_MODULE="so"
38436 EXEEXT=""
38437 LIBPREFIX="lib"
38438 LIBEXT=".a"
38439 DLLPREFIX="lib"
38440 DLLPREFIX_MODULE=""
38441 DLLIMP_SUFFIX=""
38442
38443 case "${BAKEFILE_HOST}" in
38444 *-hp-hpux* )
38445 SO_SUFFIX="sl"
38446 SO_SUFFIX_MODULE="sl"
38447 ;;
38448 *-*-aix* )
38449 SO_SUFFIX="a"
38450 SO_SUFFIX_MODULE="a"
38451 ;;
38452 *-*-cygwin* | *-*-mingw32* )
38453 SO_SUFFIX="dll"
38454 SO_SUFFIX_MODULE="dll"
38455 DLLIMP_SUFFIX="dll.a"
38456 EXEEXT=".exe"
38457 DLLPREFIX=""
38458 ;;
38459 *-pc-msdosdjgpp )
38460 EXEEXT=".exe"
38461 DLLPREFIX=""
38462 ;;
38463 *-pc-os2_emx | *-pc-os2-emx )
38464 SO_SUFFIX="dll"
38465 SO_SUFFIX_MODULE="dll"
38466 DLLIMP_SUFFIX=$OS2_LIBEXT
38467 EXEEXT=".exe"
38468 DLLPREFIX=""
38469 LIBPREFIX=""
38470 LIBEXT=".$OS2_LIBEXT"
38471 ;;
38472 powerpc-*-darwin* )
38473 SO_SUFFIX="dylib"
38474 SO_SUFFIX_MODULE="bundle"
38475 ;;
38476 esac
38477
38478 if test "x$DLLIMP_SUFFIX" = "x" ; then
38479 DLLIMP_SUFFIX="$SO_SUFFIX"
38480 fi
38481
38482
38483
38484
38485
38486
38487
38488
38489
38490
38491
38492 SHARED_LD_CC="\$(CC) -shared -o"
38493 SHARED_LD_CXX="\$(CXX) -shared -o"
38494
38495 if test "x$GCC" = "xyes"; then
38496 PIC_FLAG="-fPIC"
38497 fi
38498
38499 case "${BAKEFILE_HOST}" in
38500 *-hp-hpux* )
38501 if test "x$GCC" = "xyes"; then
38502 SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
38503 SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
38504 else
38505 LDFLAGS="$LDFLAGS -L/usr/lib"
38506
38507 SHARED_LD_CC="${CC} -b -o"
38508 SHARED_LD_CXX="${CXX} -b -o"
38509 PIC_FLAG="+Z"
38510 fi
38511 ;;
38512
38513 *-*-linux* )
38514 if test "x$GCC" != "xyes"; then
38515 echo "$as_me:$LINENO: checking for Intel compiler" >&5
38516echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
38517if test "${bakefile_cv_prog_icc+set}" = set; then
38518 echo $ECHO_N "(cached) $ECHO_C" >&6
38519else
38520
38521 cat >conftest.$ac_ext <<_ACEOF
38522/* confdefs.h. */
38523_ACEOF
38524cat confdefs.h >>conftest.$ac_ext
38525cat >>conftest.$ac_ext <<_ACEOF
38526/* end confdefs.h. */
38527
38528int
38529main ()
38530{
38531
38532 #ifndef __INTEL_COMPILER
38533 #error Not icc
38534 #endif
38535
38536 ;
38537 return 0;
38538}
38539_ACEOF
38540rm -f conftest.$ac_objext
38541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38542 (eval $ac_compile) 2>conftest.er1
a848cd7e 38543 ac_status=$?
ac1cb8d3
VS
38544 grep -v '^ *+' conftest.er1 >conftest.err
38545 rm -f conftest.er1
38546 cat conftest.err >&5
a848cd7e
SC
38547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38548 (exit $ac_status); } &&
ea7db9ff
DE
38549 { ac_try='test -z "$ac_c_werror_flag"
38550 || test ! -s conftest.err'
ac1cb8d3
VS
38551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38552 (eval $ac_try) 2>&5
38553 ac_status=$?
38554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38555 (exit $ac_status); }; } &&
38556 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38558 (eval $ac_try) 2>&5
38559 ac_status=$?
38560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38561 (exit $ac_status); }; }; then
38562 bakefile_cv_prog_icc=yes
38563else
38564 echo "$as_me: failed program was:" >&5
38565sed 's/^/| /' conftest.$ac_ext >&5
38566
38567bakefile_cv_prog_icc=no
38568
38569fi
ac1cb8d3 38570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38571
38572fi
38573echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
38574echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
38575 if test "$bakefile_cv_prog_icc" = "yes"; then
38576 PIC_FLAG="-KPIC"
38577 fi
38578 fi
38579 ;;
38580
38581 *-*-solaris2* )
38582 if test "x$GCC" != xyes ; then
38583 SHARED_LD_CC="${CC} -G -o"
38584 SHARED_LD_CXX="${CXX} -G -o"
38585 PIC_FLAG="-KPIC"
38586 fi
38587 ;;
38588
38589 *-*-darwin* )
38590
38591 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
38592echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
38593if test "${wx_cv_gcc31+set}" = set; then
38594 echo $ECHO_N "(cached) $ECHO_C" >&6
38595else
38596
38597 cat >conftest.$ac_ext <<_ACEOF
38598/* confdefs.h. */
38599_ACEOF
38600cat confdefs.h >>conftest.$ac_ext
38601cat >>conftest.$ac_ext <<_ACEOF
38602/* end confdefs.h. */
38603
38604int
38605main ()
38606{
38607
38608 #if (__GNUC__ < 3) || \
38609 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
38610 #error old gcc
38611 #endif
38612
38613 ;
38614 return 0;
38615}
38616_ACEOF
38617rm -f conftest.$ac_objext
38618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38619 (eval $ac_compile) 2>conftest.er1
a848cd7e 38620 ac_status=$?
ac1cb8d3
VS
38621 grep -v '^ *+' conftest.er1 >conftest.err
38622 rm -f conftest.er1
38623 cat conftest.err >&5
a848cd7e
SC
38624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38625 (exit $ac_status); } &&
ea7db9ff
DE
38626 { ac_try='test -z "$ac_c_werror_flag"
38627 || test ! -s conftest.err'
ac1cb8d3
VS
38628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38629 (eval $ac_try) 2>&5
38630 ac_status=$?
38631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38632 (exit $ac_status); }; } &&
38633 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38635 (eval $ac_try) 2>&5
38636 ac_status=$?
38637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38638 (exit $ac_status); }; }; then
38639
38640 wx_cv_gcc31=yes
38641
38642else
38643 echo "$as_me: failed program was:" >&5
38644sed 's/^/| /' conftest.$ac_ext >&5
38645
38646
38647 wx_cv_gcc31=no
38648
38649
38650fi
ac1cb8d3 38651rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38652
38653fi
38654echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
38655echo "${ECHO_T}$wx_cv_gcc31" >&6
38656 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
38657
38658D='$'
38659cat <<EOF >shared-ld-sh
a848cd7e
SC
38660#!/bin/sh
38661#-----------------------------------------------------------------------------
38662#-- Name: distrib/mac/shared-ld-sh
38663#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
38664#-- Author: Gilles Depeyrot
38665#-- Copyright: (c) 2002 Gilles Depeyrot
38666#-- Licence: any use permitted
38667#-----------------------------------------------------------------------------
38668
38669verbose=0
38670args=""
38671objects=""
38672linking_flag="-dynamiclib"
38673
473276a9
VS
38674while test ${D}# -gt 0; do
38675 case ${D}1 in
a848cd7e
SC
38676
38677 -v)
38678 verbose=1
38679 ;;
38680
38681 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
38682 # collect these options and values
473276a9 38683 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
38684 shift
38685 ;;
38686
38687 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
38688 # collect these options
473276a9 38689 args="${D}{args} ${D}1"
a848cd7e
SC
38690 ;;
38691
38692 -dynamiclib|-bundle)
473276a9 38693 linking_flag="${D}1"
a848cd7e
SC
38694 ;;
38695
38696 -*)
473276a9 38697 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
38698 exit 1
38699 ;;
38700
38701 *.o | *.a | *.dylib)
38702 # collect object files
473276a9 38703 objects="${D}{objects} ${D}1"
a848cd7e
SC
38704 ;;
38705
38706 *)
473276a9 38707 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
38708 exit 1
38709 ;;
38710
38711 esac
38712 shift
38713done
38714
38715#
38716# Link one module containing all the others
38717#
473276a9
VS
38718if test ${D}{verbose} = 1; then
38719 echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
a848cd7e 38720fi
473276a9
VS
38721c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
38722status=${D}?
38723if test ${D}{status} != 0; then
38724 exit ${D}{status}
a848cd7e
SC
38725fi
38726
38727#
38728# Link the shared library from the single module created
38729#
473276a9
VS
38730if test ${D}{verbose} = 1; then
38731 echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
a848cd7e 38732fi
473276a9
VS
38733c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
38734status=${D}?
38735if test ${D}{status} != 0; then
38736 exit ${D}{status}
a848cd7e
SC
38737fi
38738
38739#
38740# Remove intermediate module
38741#
473276a9 38742rm -f master.${D}${D}.o
a848cd7e
SC
38743
38744exit 0
38745EOF
473276a9 38746
a848cd7e
SC
38747 chmod +x shared-ld-sh
38748
38749 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
38750 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
38751 SHARED_LD_CXX="$SHARED_LD_CC"
38752 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
38753 else
38754 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
38755 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
38756 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
38757 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
38758 fi
38759
38760 PIC_FLAG="-dynamic -fPIC"
38761 ;;
38762
38763 *-*-aix* )
38764 if test "x$GCC" != "xyes"; then
38765 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
38766set dummy makeC++SharedLib; ac_word=$2
38767echo "$as_me:$LINENO: checking for $ac_word" >&5
38768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38769if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
38770 echo $ECHO_N "(cached) $ECHO_C" >&6
38771else
38772 if test -n "$AIX_CXX_LD"; then
38773 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
38774else
38775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38776for as_dir in $PATH
38777do
38778 IFS=$as_save_IFS
38779 test -z "$as_dir" && as_dir=.
38780 for ac_exec_ext in '' $ac_executable_extensions; do
38781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38782 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
38783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38784 break 2
38785 fi
38786done
38787done
38788
38789 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
38790fi
38791fi
38792AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
38793if test -n "$AIX_CXX_LD"; then
38794 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
38795echo "${ECHO_T}$AIX_CXX_LD" >&6
38796else
38797 echo "$as_me:$LINENO: result: no" >&5
38798echo "${ECHO_T}no" >&6
38799fi
38800
38801 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
38802 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
38803 fi
38804 ;;
38805
38806 *-*-beos* )
38807 SHARED_LD_CC="${LD} -shared -o"
38808 SHARED_LD_CXX="${LD} -shared -o"
38809 ;;
38810
38811 *-*-irix* )
38812 if test "x$GCC" != "xyes"; then
38813 PIC_FLAG="-KPIC"
38814 fi
38815 ;;
38816
38817 *-*-cygwin* | *-*-mingw32* )
38818 PIC_FLAG=""
38819 ;;
38820
38821 *-pc-os2_emx | *-pc-os2-emx )
473276a9
VS
38822 SHARED_LD_CC="`pwd`/dllar.sh -o"
38823 SHARED_LD_CXX="`pwd`/dllar.sh -o"
a848cd7e 38824 PIC_FLAG=""
473276a9
VS
38825
38826D='$'
38827cat <<EOF >dllar.sh
38828#!/bin/sh
38829#
38830# dllar - a tool to build both a .dll and an .a file
38831# from a set of object (.o) files for EMX/OS2.
38832#
38833# Written by Andrew Zabolotny, bit@freya.etu.ru
38834# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
38835#
38836# This script will accept a set of files on the command line.
38837# All the public symbols from the .o files will be exported into
38838# a .DEF file, then linker will be run (through gcc) against them to
38839# build a shared library consisting of all given .o files. All libraries
38840# (.a) will be first decompressed into component .o files then act as
38841# described above. You can optionally give a description (-d "description")
38842# which will be put into .DLL. To see the list of accepted options (as well
38843# as command-line format) simply run this program without options. The .DLL
38844# is built to be imported by name (there is no guarantee that new versions
38845# of the library you build will have same ordinals for same symbols).
38846#
38847# dllar is free software; you can redistribute it and/or modify
38848# it under the terms of the GNU General Public License as published by
38849# the Free Software Foundation; either version 2, or (at your option)
38850# any later version.
38851#
38852# dllar is distributed in the hope that it will be useful,
38853# but WITHOUT ANY WARRANTY; without even the implied warranty of
38854# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38855# GNU General Public License for more details.
38856#
38857# You should have received a copy of the GNU General Public License
38858# along with dllar; see the file COPYING. If not, write to the Free
38859# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
38860# 02111-1307, USA.
38861
38862# To successfuly run this program you will need:
38863# - Current drive should have LFN support (HPFS, ext2, network, etc)
38864# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
38865# - gcc
38866# (used to build the .dll)
38867# - emxexp
38868# (used to create .def file from .o files)
38869# - emximp
38870# (used to create .a file from .def file)
38871# - GNU text utilites (cat, sort, uniq)
38872# used to process emxexp output
38873# - GNU file utilities (mv, rm)
38874# - GNU sed
38875# - lxlite (optional, see flag below)
38876# (used for general .dll cleanup)
38877#
38878
38879flag_USE_LXLITE=1;
38880
38881#
38882# helper functions
38883# basnam, variant of basename, which does _not_ remove the path, _iff_
38884# second argument (suffix to remove) is given
38885basnam(){
38886 case ${D}# in
38887 1)
38888 echo ${D}1 | sed 's/.*\///' | sed 's/.*\\//'
38889 ;;
38890 2)
38891 echo ${D}1 | sed 's/'${D}2'${D}//'
38892 ;;
38893 *)
38894 echo "error in basnam ${D}*"
38895 exit 8
38896 ;;
38897 esac
38898}
38899
38900# Cleanup temporary files and output
38901CleanUp() {
38902 cd ${D}curDir
38903 for i in ${D}inputFiles ; do
38904 case ${D}i in
38905 *!)
38906 rm -rf \`basnam ${D}i !\`
38907 ;;
38908 *)
38909 ;;
38910 esac
38911 done
38912
38913 # Kill result in case of failure as there is just to many stupid make/nmake
38914 # things out there which doesn't do this.
2057db16 38915 if [] ${D}# -eq 0 []; then
473276a9
VS
38916 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
38917 fi
38918}
38919
38920# Print usage and exit script with rc=1.
38921PrintHelp() {
2057db16
VS
38922 echo 'Usage: dllar []-o[[]utput[]] output_file[] []-i[[]mport[]] importlib_name[]'
38923 echo ' []-d[[]escription[]] "dll descrption"[] []-cc "CC"[] []-f[[]lags[]] "CFLAGS"[]'
38924 echo ' []-ord[[]inals[]][] -ex[]clude[] "symbol(s)"'
38925 echo ' []-libf[[]lags[]] "{INIT|TERM}{GLOBAL|INSTANCE}"[] []-nocrt[[]dll[]][] []-nolxl[[]ite[]][]'
38926 echo ' []*.o[] []*.a[]'
473276a9
VS
38927 echo '*> "output_file" should have no extension.'
38928 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
38929 echo ' The import library name is derived from this and is set to "name".a,'
38930 echo ' unless overridden by -import'
38931 echo '*> "importlib_name" should have no extension.'
38932 echo ' If it has the .o, or .a extension, it is automatically removed.'
38933 echo ' This name is used as the import library name and may be longer and'
38934 echo ' more descriptive than the DLL name which has to follow the old '
38935 echo ' 8.3 convention of FAT.'
38936 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
38937 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
38938 echo ' These flags will be put at the start of GCC command line.'
2057db16
VS
38939 echo '*> -ord[]inals[] tells dllar to export entries by ordinals. Be careful.'
38940 echo '*> -ex[]clude[] defines symbols which will not be exported. You can define'
473276a9
VS
38941 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
38942 echo ' If the last character of a symbol is "*", all symbols beginning'
38943 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
2057db16 38944 echo '*> -libf[]lags[] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 38945 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
2057db16 38946 echo '*> -nocrt[]dll[] switch will disable linking the library against emx''s'
473276a9 38947 echo ' C runtime DLLs.'
2057db16 38948 echo '*> -nolxl[]ite[] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
38949 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
38950 echo ' unchanged to GCC at the end of command line.'
38951 echo '*> If you create a DLL from a library and you do not specify -o,'
38952 echo ' the basename for DLL and import library will be set to library name,'
38953 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
38954 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
38955 echo ' library will be renamed into gcc_s.a.'
38956 echo '--------'
38957 echo 'Example:'
38958 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
38959 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
38960 CleanUp
38961 exit 1
38962}
38963
38964# Execute a command.
38965# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
38966# @Uses Whatever CleanUp() uses.
38967doCommand() {
38968 echo "${D}*"
38969 eval ${D}*
38970 rcCmd=${D}?
38971
2057db16 38972 if [] ${D}rcCmd -ne 0 []; then
473276a9
VS
38973 echo "command failed, exit code="${D}rcCmd
38974 CleanUp
38975 exit ${D}rcCmd
38976 fi
38977}
38978
38979# main routine
38980# setup globals
38981cmdLine=${D}*
38982outFile=""
38983outimpFile=""
38984inputFiles=""
38985description=""
38986CC=gcc.exe
38987CFLAGS="-s -Zcrtdll"
38988EXTRA_CFLAGS=""
38989EXPORT_BY_ORDINALS=0
38990exclude_symbols=""
38991library_flags=""
38992curDir=\`pwd\`
38993curDirS=curDir
38994case ${D}curDirS in
38995*/)
38996 ;;
38997*)
38998 curDirS=${D}{curDirS}"/"
38999 ;;
39000esac
39001# Parse commandline
39002libsToLink=0
2057db16 39003while [] ${D}1 []; do
473276a9
VS
39004 case ${D}1 in
39005 -ord*)
39006 EXPORT_BY_ORDINALS=1;
39007 ;;
39008 -o*)
39009 shift
39010 outFile=${D}1
39011 ;;
39012 -i*)
39013 shift
39014 outimpFile=${D}1
39015 ;;
39016 -d*)
39017 shift
39018 description=${D}1
39019 ;;
39020 -f*)
39021 shift
39022 CFLAGS=${D}1
39023 ;;
39024 -c*)
39025 shift
39026 CC=${D}1
39027 ;;
39028 -h*)
39029 PrintHelp
39030 ;;
39031 -ex*)
39032 shift
39033 exclude_symbols=${D}{exclude_symbols}${D}1" "
39034 ;;
39035 -libf*)
39036 shift
39037 library_flags=${D}{library_flags}${D}1" "
39038 ;;
39039 -nocrt*)
39040 CFLAGS="-s"
39041 ;;
39042 -nolxl*)
39043 flag_USE_LXLITE=0
39044 ;;
39045 -* | /*)
39046 case ${D}1 in
39047 -L* | -l*)
39048 libsToLink=1
39049 ;;
39050 *)
39051 ;;
39052 esac
39053 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
39054 ;;
39055 *)
39056 found=0;
2057db16 39057 if [] ${D}libsToLink -ne 0 []; then
473276a9
VS
39058 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
39059 else
39060 for file in ${D}1 ; do
2057db16 39061 if [] -f ${D}file []; then
473276a9
VS
39062 inputFiles="${D}{inputFiles} ${D}file"
39063 found=1
39064 fi
39065 done
2057db16 39066 if [] ${D}found -eq 0 []; then
473276a9
VS
39067 echo "ERROR: No file(s) found: "${D}1
39068 exit 8
39069 fi
39070 fi
39071 ;;
39072 esac
39073 shift
39074done # iterate cmdline words
39075
39076#
2057db16 39077if [] -z "${D}inputFiles" []; then
473276a9
VS
39078 echo "dllar: no input files"
39079 PrintHelp
39080fi
39081
39082# Now extract all .o files from .a files
39083newInputFiles=""
39084for file in ${D}inputFiles ; do
39085 case ${D}file in
39086 *.a | *.lib)
39087 case ${D}file in
39088 *.a)
39089 suffix=".a"
39090 AR="ar"
39091 ;;
39092 *.lib)
39093 suffix=".lib"
39094 AR="emxomfar"
39095 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
39096 ;;
39097 *)
39098 ;;
39099 esac
39100 dirname=\`basnam ${D}file ${D}suffix\`"_%"
39101 mkdir ${D}dirname
2057db16 39102 if [] ${D}? -ne 0 []; then
473276a9
VS
39103 echo "Failed to create subdirectory ./${D}dirname"
39104 CleanUp
39105 exit 8;
39106 fi
39107 # Append '!' to indicate archive
39108 newInputFiles="${D}newInputFiles ${D}{dirname}!"
39109 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
39110 cd ${D}curDir
39111 found=0;
39112 for subfile in ${D}dirname/*.o* ; do
2057db16 39113 if [] -f ${D}subfile []; then
473276a9 39114 found=1
2057db16 39115 if [] -s ${D}subfile []; then
473276a9
VS
39116 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
39117 newInputFiles="${D}newInputFiles ${D}subfile"
39118 fi
39119 fi
39120 done
2057db16 39121 if [] ${D}found -eq 0 []; then
473276a9
VS
39122 echo "WARNING: there are no files in archive \'${D}file\'"
39123 fi
39124 ;;
39125 *)
39126 newInputFiles="${D}{newInputFiles} ${D}file"
39127 ;;
39128 esac
39129done
39130inputFiles="${D}newInputFiles"
39131
39132# Output filename(s).
39133do_backup=0;
2057db16 39134if [] -z ${D}outFile []; then
473276a9
VS
39135 do_backup=1;
39136 set outFile ${D}inputFiles; outFile=${D}2
39137fi
39138
39139# If it is an archive, remove the '!' and the '_%' suffixes
39140case ${D}outFile in
39141*_%!)
39142 outFile=\`basnam ${D}outFile _%!\`
39143 ;;
39144*)
39145 ;;
39146esac
39147case ${D}outFile in
39148*.dll)
39149 outFile=\`basnam ${D}outFile .dll\`
39150 ;;
39151*.DLL)
39152 outFile=\`basnam ${D}outFile .DLL\`
39153 ;;
39154*.o)
39155 outFile=\`basnam ${D}outFile .o\`
39156 ;;
39157*.obj)
39158 outFile=\`basnam ${D}outFile .obj\`
39159 ;;
39160*.a)
39161 outFile=\`basnam ${D}outFile .a\`
39162 ;;
39163*.lib)
39164 outFile=\`basnam ${D}outFile .lib\`
39165 ;;
39166*)
39167 ;;
39168esac
39169case ${D}outimpFile in
39170*.a)
39171 outimpFile=\`basnam ${D}outimpFile .a\`
39172 ;;
39173*.lib)
39174 outimpFile=\`basnam ${D}outimpFile .lib\`
39175 ;;
39176*)
39177 ;;
39178esac
2057db16 39179if [] -z ${D}outimpFile []; then
473276a9
VS
39180 outimpFile=${D}outFile
39181fi
39182defFile="${D}{outFile}.def"
39183arcFile="${D}{outimpFile}.a"
39184arcFile2="${D}{outimpFile}.lib"
39185dllFile="${D}outFile"
39186# Add suffix to dllFile later, first we need a version to use as
39187# name in .def file.
39188
2057db16
VS
39189if [] ${D}do_backup -ne 0 [] ; then
39190 if [] -f ${D}arcFile [] ; then
473276a9
VS
39191 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
39192 fi
2057db16 39193 if [] -f ${D}arcFile2 [] ; then
473276a9
VS
39194 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
39195 fi
39196fi
39197
39198# Extract public symbols from all the object files.
39199tmpdefFile=${D}{defFile}_%
39200rm -f ${D}tmpdefFile
39201for file in ${D}inputFiles ; do
39202 case ${D}file in
39203 *!)
39204 ;;
39205 *)
39206 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
39207 ;;
39208 esac
39209done
39210
39211# Create the def file.
39212rm -f ${D}defFile
39213echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
39214dllFile="${D}dllFile.dll"
2057db16 39215if [] -n ${D}description []; then
473276a9
VS
39216 echo "DESCRIPTION \"${D}{description}\"" >> ${D}defFile
39217fi
39218echo "EXPORTS" >> ${D}defFile
39219
39220doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
39221grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
39222
39223# Checks if the export is ok or not.
39224for word in ${D}exclude_symbols; do
39225 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
39226 mv ${D}{tmpdefFile}% ${D}tmpdefFile
39227done
39228
39229
2057db16 39230if [] ${D}EXPORT_BY_ORDINALS -ne 0 []; then
473276a9
VS
39231 sed "=" < ${D}tmpdefFile | \
39232 sed '
39233 N
39234 : loop
2057db16 39235 s/^\([]0-9[]\+\)\([]^;[]*\)\(;.*\)\?/\2 @\1 NONAME/
473276a9
VS
39236 t loop
39237 ' > ${D}{tmpdefFile}%
39238 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
39239else
39240 rm -f ${D}{tmpdefFile}%
39241fi
39242cat ${D}tmpdefFile >> ${D}defFile
39243rm -f ${D}tmpdefFile
39244
39245# Do linking, create implib, and apply lxlite.
39246gccCmdl="";
39247for file in ${D}inputFiles ; do
39248 case ${D}file in
39249 *!)
39250 ;;
39251 *)
39252 gccCmdl="${D}gccCmdl ${D}file"
39253 ;;
39254 esac
39255done
39256doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
39257touch "${D}{outFile}.dll"
39258
39259doCommand "emximp -o ${D}arcFile ${D}defFile"
2057db16 39260if [] ${D}flag_USE_LXLITE -ne 0 []; then
473276a9 39261 add_flags="";
2057db16 39262 if [] ${D}EXPORT_BY_ORDINALS -ne 0 []; then
473276a9
VS
39263 add_flags="-ynd"
39264 fi
39265 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
39266fi
39267doCommand "emxomf -s -l ${D}arcFile"
39268
39269# Successful exit.
39270CleanUp 1
39271exit 0
39272EOF
39273
39274 chmod +x dllar.sh
a848cd7e
SC
39275 ;;
39276
39277 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
39278 *-*-sunos4* | \
39279 *-*-osf* | \
39280 *-*-dgux5* | \
39281 *-*-sysv5* )
39282 ;;
39283
39284 *)
39285 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
39286echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
39287 { (exit 1); exit 1; }; }
39288 esac
39289
2057db16
VS
39290 if test "x$PIC_FLAG" != "x" ; then
39291 PIC_FLAG="$PIC_FLAG -DPIC"
39292 fi
39293
a848cd7e
SC
39294 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
39295 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
39296 fi
39297 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
39298 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
39299 fi
39300
39301
39302
39303
39304
39305
39306
39307
39308 USE_SOVERSION=0
39309 USE_SOVERLINUX=0
39310 USE_SOVERSOLARIS=0
39311 USE_SOSYMLINKS=0
39312 USE_MACVERSION=0
39313 SONAME_FLAG=
39314
39315 case "${BAKEFILE_HOST}" in
39316 *-*-linux* )
39317 SONAME_FLAG="-Wl,-soname,"
39318 USE_SOVERSION=1
39319 USE_SOVERLINUX=1
39320 USE_SOSYMLINKS=1
39321 ;;
39322
39323 *-*-solaris2* )
39324 SONAME_FLAG="-h "
39325 USE_SOVERSION=1
39326 USE_SOVERSOLARIS=1
39327 USE_SOSYMLINKS=1
39328 ;;
39329
39330 *-*-darwin* )
39331 USE_MACVERSION=1
39332 USE_SOVERSION=1
39333 USE_SOSYMLINKS=1
39334 ;;
39335 esac
39336
39337
39338
39339
39340
39341
39342
39343
39344
39345 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
39346echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
39347 DEPS_TRACKING=0
39348
39349 if test "x$GCC" = "xyes"; then
39350 DEPSMODE=gcc
39351 DEPS_TRACKING=1
39352 case "${BAKEFILE_HOST}" in
39353 powerpc-*-darwin* )
39354 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
39355 ;;
39356 * )
39357 DEPSFLAG_GCC="-MMD"
39358 ;;
39359 esac
39360 echo "$as_me:$LINENO: result: gcc" >&5
39361echo "${ECHO_T}gcc" >&6
39362 else
39363 echo "$as_me:$LINENO: result: none" >&5
39364echo "${ECHO_T}none" >&6
39365 fi
39366
39367 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
39368
39369D='$'
39370cat <<EOF >bk-deps
a848cd7e
SC
39371#!/bin/sh
39372
39373# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39374# script. It is used to track C/C++ files dependencies in portable way.
39375#
39376# Permission is given to use this file in any way.
39377
473276a9 39378DEPSMODE=${DEPSMODE}
a848cd7e 39379DEPSDIR=.deps
473276a9 39380DEPSFLAG_GCC="${DEPSFLAG_GCC}"
a848cd7e 39381
473276a9 39382mkdir -p ${D}DEPSDIR
a848cd7e 39383
473276a9
VS
39384if test ${D}DEPSMODE = gcc ; then
39385 ${D}* ${D}{DEPSFLAG_GCC}
39386 status=${D}?
39387 if test ${D}{status} != 0 ; then
39388 exit ${D}{status}
a848cd7e
SC
39389 fi
39390 # move created file to the location we want it in:
473276a9
VS
39391 while test ${D}# -gt 0; do
39392 case "${D}1" in
a848cd7e
SC
39393 -o )
39394 shift
473276a9 39395 objfile=${D}1
a848cd7e
SC
39396 ;;
39397 -* )
39398 ;;
39399 * )
473276a9 39400 srcfile=${D}1
a848cd7e
SC
39401 ;;
39402 esac
39403 shift
39404 done
473276a9
VS
39405 depfile=\`basename ${D}srcfile | sed -e 's/\..*${D}/.d/g'\`
39406 depobjname=\`echo ${D}depfile |sed -e 's/\.d/.o/g'\`
39407 if test -f ${D}depfile ; then
39408 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
39409 rm -f ${D}depfile
a848cd7e 39410 else
473276a9
VS
39411 depfile=\`basename ${D}objfile | sed -e 's/\..*${D}/.d/g'\`
39412 if test -f ${D}depfile ; then
39413 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
39414 rm -f ${D}depfile
a848cd7e
SC
39415 fi
39416 fi
39417 exit 0
39418else
473276a9
VS
39419 ${D}*
39420 exit ${D}?
a848cd7e
SC
39421fi
39422EOF
473276a9 39423
a848cd7e
SC
39424 chmod +x bk-deps
39425 fi
39426
39427
39428
39429
39430 RESCOMP=
39431 SETFILE=
39432
39433 case ${BAKEFILE_HOST} in
39434 *-*-cygwin* | *-*-mingw32* )
39435 if test "$build" != "$host" ; then
39436 RESCOMP=$host_alias-windres
39437 else
39438 # Extract the first word of "windres", so it can be a program name with args.
39439set dummy windres; ac_word=$2
39440echo "$as_me:$LINENO: checking for $ac_word" >&5
39441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39442if test "${ac_cv_prog_RESCOMP+set}" = set; then
39443 echo $ECHO_N "(cached) $ECHO_C" >&6
39444else
39445 if test -n "$RESCOMP"; then
39446 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
39447else
39448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39449for as_dir in $PATH
39450do
39451 IFS=$as_save_IFS
39452 test -z "$as_dir" && as_dir=.
39453 for ac_exec_ext in '' $ac_executable_extensions; do
39454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39455 ac_cv_prog_RESCOMP="windres"
39456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39457 break 2
39458 fi
39459done
39460done
39461
39462 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
39463fi
39464fi
39465RESCOMP=$ac_cv_prog_RESCOMP
39466if test -n "$RESCOMP"; then
39467 echo "$as_me:$LINENO: result: $RESCOMP" >&5
39468echo "${ECHO_T}$RESCOMP" >&6
39469else
39470 echo "$as_me:$LINENO: result: no" >&5
39471echo "${ECHO_T}no" >&6
39472fi
39473
39474 fi
39475 ;;
39476
39477 *-*-darwin* )
39478 # Extract the first word of "Rez", so it can be a program name with args.
39479set dummy Rez; ac_word=$2
39480echo "$as_me:$LINENO: checking for $ac_word" >&5
39481echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39482if test "${ac_cv_prog_RESCOMP+set}" = set; then
39483 echo $ECHO_N "(cached) $ECHO_C" >&6
39484else
39485 if test -n "$RESCOMP"; then
39486 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
39487else
39488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39489for as_dir in $PATH
39490do
39491 IFS=$as_save_IFS
39492 test -z "$as_dir" && as_dir=.
39493 for ac_exec_ext in '' $ac_executable_extensions; do
39494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39495 ac_cv_prog_RESCOMP="Rez"
39496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39497 break 2
39498 fi
39499done
39500done
39501
39502 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
39503fi
39504fi
39505RESCOMP=$ac_cv_prog_RESCOMP
39506if test -n "$RESCOMP"; then
39507 echo "$as_me:$LINENO: result: $RESCOMP" >&5
39508echo "${ECHO_T}$RESCOMP" >&6
39509else
39510 echo "$as_me:$LINENO: result: no" >&5
39511echo "${ECHO_T}no" >&6
39512fi
39513
39514 # Extract the first word of "SetFile", so it can be a program name with args.
39515set dummy SetFile; ac_word=$2
39516echo "$as_me:$LINENO: checking for $ac_word" >&5
39517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39518if test "${ac_cv_prog_SETFILE+set}" = set; then
39519 echo $ECHO_N "(cached) $ECHO_C" >&6
39520else
39521 if test -n "$SETFILE"; then
39522 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
39523else
39524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39525for as_dir in $PATH
39526do
39527 IFS=$as_save_IFS
39528 test -z "$as_dir" && as_dir=.
39529 for ac_exec_ext in '' $ac_executable_extensions; do
39530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39531 ac_cv_prog_SETFILE="SetFile"
39532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39533 break 2
39534 fi
39535done
39536done
39537
39538 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
39539fi
39540fi
39541SETFILE=$ac_cv_prog_SETFILE
39542if test -n "$SETFILE"; then
39543 echo "$as_me:$LINENO: result: $SETFILE" >&5
39544echo "${ECHO_T}$SETFILE" >&6
39545else
39546 echo "$as_me:$LINENO: result: no" >&5
39547echo "${ECHO_T}no" >&6
39548fi
39549
39550 ;;
39551 esac
39552
39553
39554
39555
39556
2057db16 39557 BAKEFILE_BAKEFILE_M4_VERSION="0.1.4"
a848cd7e 39558
dcc1b6ad 39559
ebee3cd0 39560
9f45f08e 39561BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.4"
a848cd7e 39562
646b6ec1 39563
74b84332 39564
a848cd7e
SC
39565 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
39566if test "${enable_precomp_headers+set}" = set; then
39567 enableval="$enable_precomp_headers"
39568 bk_use_pch="$enableval"
39569fi;
39570
39571 GCC_PCH=0
39572
39573 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
39574 if test "x$GCC" = "xyes"; then
39575 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
39576echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
39577 cat >conftest.$ac_ext <<_ACEOF
39578/* confdefs.h. */
39579_ACEOF
39580cat confdefs.h >>conftest.$ac_ext
39581cat >>conftest.$ac_ext <<_ACEOF
39582/* end confdefs.h. */
39583
39584int
39585main ()
39586{
39587
39588 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
39589 #error "no pch support"
39590 #endif
39591 #if (__GNUC__ < 3)
39592 #error "no pch support"
39593 #endif
39594 #if (__GNUC__ == 3) && \
39595 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
39596 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
39597 #error "no pch support"
39598 #endif
39599
39600 ;
39601 return 0;
39602}
39603_ACEOF
39604rm -f conftest.$ac_objext
39605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39606 (eval $ac_compile) 2>conftest.er1
a848cd7e 39607 ac_status=$?
ac1cb8d3
VS
39608 grep -v '^ *+' conftest.er1 >conftest.err
39609 rm -f conftest.er1
39610 cat conftest.err >&5
a848cd7e
SC
39611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39612 (exit $ac_status); } &&
ea7db9ff
DE
39613 { ac_try='test -z "$ac_c_werror_flag"
39614 || test ! -s conftest.err'
ac1cb8d3
VS
39615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39616 (eval $ac_try) 2>&5
39617 ac_status=$?
39618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39619 (exit $ac_status); }; } &&
39620 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39622 (eval $ac_try) 2>&5
39623 ac_status=$?
39624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39625 (exit $ac_status); }; }; then
39626
39627 echo "$as_me:$LINENO: result: yes" >&5
39628echo "${ECHO_T}yes" >&6
a848cd7e
SC
39629 GCC_PCH=1
39630
39631else
39632 echo "$as_me: failed program was:" >&5
39633sed 's/^/| /' conftest.$ac_ext >&5
39634
39635
39636 echo "$as_me:$LINENO: result: no" >&5
39637echo "${ECHO_T}no" >&6
39638
39639fi
ac1cb8d3 39640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39641 if test $GCC_PCH = 1 ; then
39642 cat <<EOF >bk-make-pch
39643#!/bin/sh
39644
39645# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39646# script. It is used to generated precompiled headers.
39647#
39648# Permission is given to use this file in any way.
39649
39650outfile="\${1}"
39651header="\${2}"
39652shift
39653shift
39654
39655compiler=
39656headerfile=
39657while test \${#} -gt 0; do
39658 case "\${1}" in
39659 -I* )
39660 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
39661 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
39662 headerfile="\${incdir}/\${header}"
39663 fi
39664 ;;
39665 esac
39666 compiler="\${compiler} \${1}"
39667 shift
39668done
39669
39670if test "x\${headerfile}" = "x" ; then
39671 echo "error: can't find header \${header} in include paths" >2
39672else
39673 if test -f \${outfile} ; then
39674 rm -f \${outfile}
39675 else
39676 mkdir -p \`dirname \${outfile}\`
39677 fi
39678 depsfile=".deps/\`basename \${outfile}\`.d"
39679 mkdir -p .deps
39680 # can do this because gcc is >= 3.4:
39681 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
39682 exit \${?}
39683fi
39684EOF
39685 chmod +x bk-make-pch
39686 fi
39687 fi
39688 fi
39689
39690
39691
39692
39693
dcc1b6ad
VS
39694
39695
39696 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
39697if test "${enable_precomp_headers+set}" = set; then
39698 enableval="$enable_precomp_headers"
39699 bk_use_pch="$enableval"
39700fi;
39701
39702 GCC_PCH=0
39703
39704 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
39705 if test "x$GCC" = "xyes"; then
39706 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
39707echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
39708 cat >conftest.$ac_ext <<_ACEOF
39709/* confdefs.h. */
39710_ACEOF
39711cat confdefs.h >>conftest.$ac_ext
39712cat >>conftest.$ac_ext <<_ACEOF
39713/* end confdefs.h. */
39714
39715int
39716main ()
39717{
39718
39719 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
39720 #error "no pch support"
39721 #endif
39722 #if (__GNUC__ < 3)
39723 #error "no pch support"
39724 #endif
39725 #if (__GNUC__ == 3) && \
39726 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
39727 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
39728 #error "no pch support"
39729 #endif
39730
39731 ;
39732 return 0;
39733}
39734_ACEOF
39735rm -f conftest.$ac_objext
39736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39737 (eval $ac_compile) 2>conftest.er1
dcc1b6ad 39738 ac_status=$?
ac1cb8d3
VS
39739 grep -v '^ *+' conftest.er1 >conftest.err
39740 rm -f conftest.er1
39741 cat conftest.err >&5
dcc1b6ad
VS
39742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39743 (exit $ac_status); } &&
ea7db9ff
DE
39744 { ac_try='test -z "$ac_c_werror_flag"
39745 || test ! -s conftest.err'
ac1cb8d3
VS
39746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39747 (eval $ac_try) 2>&5
39748 ac_status=$?
39749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39750 (exit $ac_status); }; } &&
39751 { ac_try='test -s conftest.$ac_objext'
dcc1b6ad
VS
39752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39753 (eval $ac_try) 2>&5
39754 ac_status=$?
39755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39756 (exit $ac_status); }; }; then
39757
39758 echo "$as_me:$LINENO: result: yes" >&5
39759echo "${ECHO_T}yes" >&6
dcc1b6ad
VS
39760 GCC_PCH=1
39761
39762else
39763 echo "$as_me: failed program was:" >&5
39764sed 's/^/| /' conftest.$ac_ext >&5
39765
39766
39767 echo "$as_me:$LINENO: result: no" >&5
39768echo "${ECHO_T}no" >&6
39769
39770fi
ac1cb8d3 39771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dcc1b6ad
VS
39772 if test $GCC_PCH = 1 ; then
39773 cat <<EOF >bk-make-pch
39774#!/bin/sh
39775
39776# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39777# script. It is used to generated precompiled headers.
39778#
39779# Permission is given to use this file in any way.
39780
39781outfile="\${1}"
39782header="\${2}"
39783shift
39784shift
39785
39786compiler=
39787headerfile=
39788while test \${#} -gt 0; do
39789 case "\${1}" in
39790 -I* )
39791 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
39792 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
39793 headerfile="\${incdir}/\${header}"
39794 fi
39795 ;;
39796 esac
39797 compiler="\${compiler} \${1}"
39798 shift
39799done
39800
39801if test "x\${headerfile}" = "x" ; then
39802 echo "error: can't find header \${header} in include paths" >2
39803else
39804 if test -f \${outfile} ; then
39805 rm -f \${outfile}
39806 else
39807 mkdir -p \`dirname \${outfile}\`
39808 fi
39809 depsfile=".deps/\`basename \${outfile}\`.d"
39810 mkdir -p .deps
39811 # can do this because gcc is >= 3.4:
39812 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
39813 exit \${?}
39814fi
39815EOF
39816 chmod +x bk-make-pch
39817 fi
39818 fi
39819 fi
39820
39821
39822
39823
a848cd7e
SC
39824 COND_BUILD_DEBUG="#"
39825 if test "x$BUILD" = "xdebug" ; then
39826 COND_BUILD_DEBUG=""
39827 fi
39828
39829 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
39830 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
39831 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
39832 fi
39833
39834 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
39835 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
39836 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
39837 fi
39838
39839 COND_BUILD_DEBUG_UNICODE_0="#"
39840 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
39841 COND_BUILD_DEBUG_UNICODE_0=""
39842 fi
39843
39844 COND_BUILD_DEBUG_UNICODE_1="#"
39845 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
39846 COND_BUILD_DEBUG_UNICODE_1=""
39847 fi
39848
39849 COND_BUILD_RELEASE="#"
39850 if test "x$BUILD" = "xrelease" ; then
39851 COND_BUILD_RELEASE=""
39852 fi
39853
39854 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
39855 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
39856 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
39857 fi
39858
39859 COND_BUILD_RELEASE_UNICODE_0="#"
39860 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
39861 COND_BUILD_RELEASE_UNICODE_0=""
39862 fi
39863
39864 COND_BUILD_RELEASE_UNICODE_1="#"
39865 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
39866 COND_BUILD_RELEASE_UNICODE_1=""
39867 fi
39868
39869 COND_DEBUG_FLAG_1="#"
39870 if test "x$DEBUG_FLAG" = "x1" ; then
39871 COND_DEBUG_FLAG_1=""
39872 fi
39873
39874 COND_DEBUG_INFO_0="#"
39875 if test "x$DEBUG_INFO" = "x0" ; then
39876 COND_DEBUG_INFO_0=""
39877 fi
39878
39879 COND_DEBUG_INFO_1="#"
39880 if test "x$DEBUG_INFO" = "x1" ; then
39881 COND_DEBUG_INFO_1=""
39882 fi
39883
39884 COND_DEPS_TRACKING_0="#"
39885 if test "x$DEPS_TRACKING" = "x0" ; then
39886 COND_DEPS_TRACKING_0=""
39887 fi
39888
39889 COND_DEPS_TRACKING_1="#"
39890 if test "x$DEPS_TRACKING" = "x1" ; then
39891 COND_DEPS_TRACKING_1=""
39892 fi
39893
39894 COND_GCC_PCH_1="#"
39895 if test "x$GCC_PCH" = "x1" ; then
39896 COND_GCC_PCH_1=""
39897 fi
39898
39899 COND_MONOLITHIC_0="#"
39900 if test "x$MONOLITHIC" = "x0" ; then
39901 COND_MONOLITHIC_0=""
39902 fi
39903
39904 COND_MONOLITHIC_0_SHARED_0="#"
39905 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
39906 COND_MONOLITHIC_0_SHARED_0=""
39907 fi
39908
39909 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
39910 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
39911 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
39912 fi
39913
39914 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
39915 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
39916 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
39917 fi
39918
39919 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
39920 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
39921 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
39922 fi
39923
39924 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
39925 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
39926 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
39927 fi
39928
39929 COND_MONOLITHIC_0_SHARED_1="#"
39930 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
39931 COND_MONOLITHIC_0_SHARED_1=""
39932 fi
39933
39934 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
39935 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
39936 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
39937 fi
39938
39939 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
39940 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
39941 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
39942 fi
39943
39944 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
39945 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
39946 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
39947 fi
39948
39949 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
39950 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
39951 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
39952 fi
39953
39954 COND_MONOLITHIC_0_USE_ODBC_1="#"
39955 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
39956 COND_MONOLITHIC_0_USE_ODBC_1=""
39957 fi
39958
39959 COND_MONOLITHIC_1="#"
39960 if test "x$MONOLITHIC" = "x1" ; then
39961 COND_MONOLITHIC_1=""
39962 fi
39963
39964 COND_MONOLITHIC_1_SHARED_0="#"
39965 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
39966 COND_MONOLITHIC_1_SHARED_0=""
39967 fi
39968
39969 COND_MONOLITHIC_1_SHARED_1="#"
39970 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
39971 COND_MONOLITHIC_1_SHARED_1=""
39972 fi
39973
39974 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
39975 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
39976 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
39977 fi
39978
39979 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
39980 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
39981 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
39982 fi
39983
39984 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
39985 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
39986 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
39987 fi
39988
39989 COND_PLATFORM_MACOSX_1="#"
39990 if test "x$PLATFORM_MACOSX" = "x1" ; then
39991 COND_PLATFORM_MACOSX_1=""
39992 fi
39993
39994 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
39995 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
39996 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
39997 fi
39998
39999 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
40000 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
40001 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
40002 fi
40003
40004 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
40005 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
40006 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
40007 fi
40008
ebee3cd0
VS
40009 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
40010 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
40011 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
40012 fi
40013
40014 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
40015 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
40016 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
40017 fi
40018
a848cd7e
SC
40019 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
40020 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
40021 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
40022 fi
40023
40024 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
40025 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
40026 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
40027 fi
40028
40029 COND_PLATFORM_MAC_1="#"
40030 if test "x$PLATFORM_MAC" = "x1" ; then
40031 COND_PLATFORM_MAC_1=""
40032 fi
40033
40034 COND_PLATFORM_OS2_1="#"
40035 if test "x$PLATFORM_OS2" = "x1" ; then
40036 COND_PLATFORM_OS2_1=""
40037 fi
40038
40039 COND_PLATFORM_UNIX_0="#"
40040 if test "x$PLATFORM_UNIX" = "x0" ; then
40041 COND_PLATFORM_UNIX_0=""
40042 fi
40043
40044 COND_PLATFORM_UNIX_1="#"
40045 if test "x$PLATFORM_UNIX" = "x1" ; then
40046 COND_PLATFORM_UNIX_1=""
40047 fi
40048
40049 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
40050 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
40051 COND_PLATFORM_UNIX_1_USE_GUI_1=""
40052 fi
40053
40054 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
40055 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
40056 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
40057 fi
40058
40059 COND_PLATFORM_WIN32_0="#"
40060 if test "x$PLATFORM_WIN32" = "x0" ; then
40061 COND_PLATFORM_WIN32_0=""
40062 fi
40063
40064 COND_PLATFORM_WIN32_1="#"
40065 if test "x$PLATFORM_WIN32" = "x1" ; then
40066 COND_PLATFORM_WIN32_1=""
40067 fi
40068
40069 COND_SHARED_0="#"
40070 if test "x$SHARED" = "x0" ; then
40071 COND_SHARED_0=""
40072 fi
40073
40074 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
40075 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40076 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
40077 fi
40078
40079 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40080 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40081 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40082 fi
40083
40084 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40085 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40086 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40087 fi
40088
40089 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40090 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40091 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40092 fi
40093
40094 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
40095 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
40096 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
40097 fi
40098
40099 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
40100 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
40101 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
40102 fi
40103
40104 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
40105 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
40106 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
40107 fi
40108
40109 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
40110 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
40111 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
40112 fi
40113
40114 COND_SHARED_1="#"
40115 if test "x$SHARED" = "x1" ; then
40116 COND_SHARED_1=""
40117 fi
40118
40119 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
40120 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40121 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
40122 fi
40123
40124 COND_TOOLKIT_COCOA="#"
40125 if test "x$TOOLKIT" = "xCOCOA" ; then
40126 COND_TOOLKIT_COCOA=""
40127 fi
40128
40129 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
40130 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40131 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
40132 fi
40133
40134 COND_TOOLKIT_GTK="#"
40135 if test "x$TOOLKIT" = "xGTK" ; then
40136 COND_TOOLKIT_GTK=""
40137 fi
40138
40139 COND_TOOLKIT_GTK_USE_GUI_1="#"
40140 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
40141 COND_TOOLKIT_GTK_USE_GUI_1=""
40142 fi
40143
40144 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
40145 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40146 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
40147 fi
40148
40149 COND_TOOLKIT_MAC="#"
40150 if test "x$TOOLKIT" = "xMAC" ; then
40151 COND_TOOLKIT_MAC=""
40152 fi
40153
40154 COND_TOOLKIT_MAC_USE_GUI_1="#"
40155 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
40156 COND_TOOLKIT_MAC_USE_GUI_1=""
40157 fi
40158
40159 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
40160 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40161 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
40162 fi
40163
e835546c
DE
40164 COND_TOOLKIT_MAC_WXUNIV_0="#"
40165 if test "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
40166 COND_TOOLKIT_MAC_WXUNIV_0=""
40167 fi
40168
a848cd7e
SC
40169 COND_TOOLKIT_MGL="#"
40170 if test "x$TOOLKIT" = "xMGL" ; then
40171 COND_TOOLKIT_MGL=""
40172 fi
40173
40174 COND_TOOLKIT_MGL_USE_GUI_1="#"
40175 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
40176 COND_TOOLKIT_MGL_USE_GUI_1=""
40177 fi
40178
40179 COND_TOOLKIT_MOTIF="#"
40180 if test "x$TOOLKIT" = "xMOTIF" ; then
40181 COND_TOOLKIT_MOTIF=""
40182 fi
40183
40184 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
40185 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
40186 COND_TOOLKIT_MOTIF_USE_GUI_1=""
40187 fi
40188
40189 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
40190 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40191 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
40192 fi
40193
40194 COND_TOOLKIT_MSW="#"
40195 if test "x$TOOLKIT" = "xMSW" ; then
40196 COND_TOOLKIT_MSW=""
40197 fi
40198
40199 COND_TOOLKIT_MSW_USE_GUI_1="#"
40200 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
40201 COND_TOOLKIT_MSW_USE_GUI_1=""
40202 fi
40203
40204 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
40205 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40206 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
40207 fi
40208
e835546c
DE
40209 COND_TOOLKIT_MSW_WXUNIV_0="#"
40210 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
40211 COND_TOOLKIT_MSW_WXUNIV_0=""
40212 fi
40213
a848cd7e
SC
40214 COND_TOOLKIT_PM="#"
40215 if test "x$TOOLKIT" = "xPM" ; then
40216 COND_TOOLKIT_PM=""
40217 fi
40218
40219 COND_TOOLKIT_PM_USE_GUI_1="#"
40220 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
40221 COND_TOOLKIT_PM_USE_GUI_1=""
40222 fi
40223
40224 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
40225 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40226 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
40227 fi
40228
e835546c
DE
40229 COND_TOOLKIT_PM_WXUNIV_0="#"
40230 if test "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
40231 COND_TOOLKIT_PM_WXUNIV_0=""
40232 fi
40233
3fd9c298
DE
40234 COND_TOOLKIT_WINCE="#"
40235 if test "x$TOOLKIT" = "xWINCE" ; then
40236 COND_TOOLKIT_WINCE=""
40237 fi
40238
40239 COND_TOOLKIT_WINCE_USE_GUI_1="#"
40240 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
40241 COND_TOOLKIT_WINCE_USE_GUI_1=""
40242 fi
40243
40244 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
40245 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40246 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
40247 fi
40248
a848cd7e
SC
40249 COND_TOOLKIT_X11="#"
40250 if test "x$TOOLKIT" = "xX11" ; then
40251 COND_TOOLKIT_X11=""
40252 fi
40253
40254 COND_TOOLKIT_X11_USE_GUI_1="#"
40255 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
40256 COND_TOOLKIT_X11_USE_GUI_1=""
40257 fi
40258
40259 COND_UNICODE_1="#"
40260 if test "x$UNICODE" = "x1" ; then
40261 COND_UNICODE_1=""
40262 fi
40263
40264 COND_USE_EXCEPTIONS_0="#"
40265 if test "x$USE_EXCEPTIONS" = "x0" ; then
40266 COND_USE_EXCEPTIONS_0=""
40267 fi
40268
40269 COND_USE_EXCEPTIONS_1="#"
40270 if test "x$USE_EXCEPTIONS" = "x1" ; then
40271 COND_USE_EXCEPTIONS_1=""
40272 fi
40273
40274 COND_USE_GUI_0="#"
40275 if test "x$USE_GUI" = "x0" ; then
40276 COND_USE_GUI_0=""
40277 fi
40278
40279 COND_USE_GUI_1="#"
40280 if test "x$USE_GUI" = "x1" ; then
40281 COND_USE_GUI_1=""
40282 fi
40283
40284 COND_USE_GUI_1_WXUNIV_0="#"
40285 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40286 COND_USE_GUI_1_WXUNIV_0=""
40287 fi
40288
40289 COND_USE_GUI_1_WXUNIV_1="#"
40290 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
40291 COND_USE_GUI_1_WXUNIV_1=""
40292 fi
40293
40294 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40295 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40296 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40297 fi
40298
40299 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40300 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40301 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40302 fi
40303
40304 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40305 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40306 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40307 fi
40308
40309 COND_USE_ODBC_1="#"
40310 if test "x$USE_ODBC" = "x1" ; then
40311 COND_USE_ODBC_1=""
40312 fi
40313
40314 COND_USE_PLUGINS_0="#"
40315 if test "x$USE_PLUGINS" = "x0" ; then
40316 COND_USE_PLUGINS_0=""
40317 fi
40318
40319 COND_USE_SOSYMLINKS_1="#"
40320 if test "x$USE_SOSYMLINKS" = "x1" ; then
40321 COND_USE_SOSYMLINKS_1=""
40322 fi
40323
40324 COND_USE_SOVERLINUX_1="#"
40325 if test "x$USE_SOVERLINUX" = "x1" ; then
40326 COND_USE_SOVERLINUX_1=""
40327 fi
40328
40329 COND_USE_SOVERSION_0="#"
40330 if test "x$USE_SOVERSION" = "x0" ; then
40331 COND_USE_SOVERSION_0=""
40332 fi
40333
40334 COND_USE_SOVERSOLARIS_1="#"
40335 if test "x$USE_SOVERSOLARIS" = "x1" ; then
40336 COND_USE_SOVERSOLARIS_1=""
40337 fi
40338
40339 COND_WITH_PLUGIN_SDL_1="#"
40340 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
40341 COND_WITH_PLUGIN_SDL_1=""
40342 fi
40343
40344 COND_WITH_SDL_1="#"
40345 if test "x$WITH_SDL" = "x1" ; then
40346 COND_WITH_SDL_1=""
40347 fi
40348
40349 COND_WXUNIV_1="#"
40350 if test "x$WXUNIV" = "x1" ; then
40351 COND_WXUNIV_1=""
40352 fi
40353
40354 COND_WXUSE_EXPAT_BUILTIN="#"
40355 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
40356 COND_WXUSE_EXPAT_BUILTIN=""
40357 fi
40358
40359 COND_WXUSE_LIBJPEG_BUILTIN="#"
40360 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40361 COND_WXUSE_LIBJPEG_BUILTIN=""
40362 fi
40363
40364 COND_WXUSE_LIBPNG_BUILTIN="#"
40365 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40366 COND_WXUSE_LIBPNG_BUILTIN=""
40367 fi
40368
40369 COND_WXUSE_LIBTIFF_BUILTIN="#"
40370 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40371 COND_WXUSE_LIBTIFF_BUILTIN=""
40372 fi
40373
40374 COND_WXUSE_ODBC_BUILTIN="#"
40375 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
40376 COND_WXUSE_ODBC_BUILTIN=""
40377 fi
40378
40379 COND_WXUSE_REGEX_BUILTIN="#"
40380 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
40381 COND_WXUSE_REGEX_BUILTIN=""
40382 fi
40383
40384 COND_WXUSE_ZLIB_BUILTIN="#"
40385 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
40386 COND_WXUSE_ZLIB_BUILTIN=""
40387 fi
40388
dcc1b6ad
VS
40389 COND_BUILD_DEBUG="#"
40390 if test "x$BUILD" = "xdebug" ; then
40391 COND_BUILD_DEBUG=""
40392 fi
40393
40394 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
40395 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
40396 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
40397 fi
40398
40399 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
40400 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
40401 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
40402 fi
40403
40404 COND_BUILD_DEBUG_UNICODE_0="#"
40405 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
40406 COND_BUILD_DEBUG_UNICODE_0=""
40407 fi
40408
40409 COND_BUILD_DEBUG_UNICODE_1="#"
40410 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
40411 COND_BUILD_DEBUG_UNICODE_1=""
40412 fi
40413
40414 COND_BUILD_RELEASE="#"
40415 if test "x$BUILD" = "xrelease" ; then
40416 COND_BUILD_RELEASE=""
40417 fi
40418
40419 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
40420 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
40421 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
40422 fi
40423
40424 COND_BUILD_RELEASE_UNICODE_0="#"
40425 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
40426 COND_BUILD_RELEASE_UNICODE_0=""
40427 fi
40428
40429 COND_BUILD_RELEASE_UNICODE_1="#"
40430 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
40431 COND_BUILD_RELEASE_UNICODE_1=""
40432 fi
40433
40434 COND_DEBUG_FLAG_1="#"
40435 if test "x$DEBUG_FLAG" = "x1" ; then
40436 COND_DEBUG_FLAG_1=""
40437 fi
40438
40439 COND_DEBUG_INFO_0="#"
40440 if test "x$DEBUG_INFO" = "x0" ; then
40441 COND_DEBUG_INFO_0=""
40442 fi
40443
40444 COND_DEBUG_INFO_1="#"
40445 if test "x$DEBUG_INFO" = "x1" ; then
40446 COND_DEBUG_INFO_1=""
40447 fi
40448
40449 COND_DEPS_TRACKING_0="#"
40450 if test "x$DEPS_TRACKING" = "x0" ; then
40451 COND_DEPS_TRACKING_0=""
40452 fi
40453
40454 COND_DEPS_TRACKING_1="#"
40455 if test "x$DEPS_TRACKING" = "x1" ; then
40456 COND_DEPS_TRACKING_1=""
40457 fi
40458
40459 COND_GCC_PCH_1="#"
40460 if test "x$GCC_PCH" = "x1" ; then
40461 COND_GCC_PCH_1=""
40462 fi
40463
40464 COND_MONOLITHIC_0="#"
40465 if test "x$MONOLITHIC" = "x0" ; then
40466 COND_MONOLITHIC_0=""
40467 fi
40468
40469 COND_MONOLITHIC_0_SHARED_0="#"
40470 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
40471 COND_MONOLITHIC_0_SHARED_0=""
40472 fi
40473
40474 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
40475 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
40476 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
40477 fi
40478
40479 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
40480 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40481 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
40482 fi
40483
40484 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
40485 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
40486 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
40487 fi
40488
40489 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
40490 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
40491 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
40492 fi
40493
40494 COND_MONOLITHIC_0_SHARED_1="#"
40495 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
40496 COND_MONOLITHIC_0_SHARED_1=""
40497 fi
40498
40499 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
40500 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
40501 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
40502 fi
40503
40504 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
40505 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40506 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
40507 fi
40508
40509 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
40510 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
40511 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
40512 fi
40513
40514 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
40515 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
40516 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
40517 fi
40518
40519 COND_MONOLITHIC_0_USE_ODBC_1="#"
40520 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
40521 COND_MONOLITHIC_0_USE_ODBC_1=""
40522 fi
40523
40524 COND_MONOLITHIC_1="#"
40525 if test "x$MONOLITHIC" = "x1" ; then
40526 COND_MONOLITHIC_1=""
40527 fi
40528
40529 COND_MONOLITHIC_1_SHARED_0="#"
40530 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
40531 COND_MONOLITHIC_1_SHARED_0=""
40532 fi
40533
40534 COND_MONOLITHIC_1_SHARED_1="#"
40535 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
40536 COND_MONOLITHIC_1_SHARED_1=""
40537 fi
40538
40539 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
40540 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
40541 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
40542 fi
40543
40544 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
40545 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
40546 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
40547 fi
40548
40549 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
40550 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
40551 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
40552 fi
40553
40554 COND_PLATFORM_MACOSX_1="#"
40555 if test "x$PLATFORM_MACOSX" = "x1" ; then
40556 COND_PLATFORM_MACOSX_1=""
40557 fi
40558
40559 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
40560 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
40561 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
40562 fi
40563
40564 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
40565 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
40566 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
40567 fi
40568
40569 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
40570 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
40571 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
40572 fi
40573
40574 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
40575 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
40576 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
40577 fi
40578
40579 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
40580 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
40581 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
40582 fi
40583
40584 COND_PLATFORM_MAC_1="#"
40585 if test "x$PLATFORM_MAC" = "x1" ; then
40586 COND_PLATFORM_MAC_1=""
40587 fi
40588
40589 COND_PLATFORM_OS2_1="#"
40590 if test "x$PLATFORM_OS2" = "x1" ; then
40591 COND_PLATFORM_OS2_1=""
40592 fi
40593
40594 COND_PLATFORM_UNIX_0="#"
40595 if test "x$PLATFORM_UNIX" = "x0" ; then
40596 COND_PLATFORM_UNIX_0=""
40597 fi
40598
40599 COND_PLATFORM_UNIX_1="#"
40600 if test "x$PLATFORM_UNIX" = "x1" ; then
40601 COND_PLATFORM_UNIX_1=""
40602 fi
40603
40604 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
40605 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
40606 COND_PLATFORM_UNIX_1_USE_GUI_1=""
40607 fi
40608
40609 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
40610 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
40611 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
40612 fi
40613
40614 COND_PLATFORM_WIN32_0="#"
40615 if test "x$PLATFORM_WIN32" = "x0" ; then
40616 COND_PLATFORM_WIN32_0=""
40617 fi
40618
40619 COND_PLATFORM_WIN32_1="#"
40620 if test "x$PLATFORM_WIN32" = "x1" ; then
40621 COND_PLATFORM_WIN32_1=""
40622 fi
40623
40624 COND_SHARED_0="#"
40625 if test "x$SHARED" = "x0" ; then
40626 COND_SHARED_0=""
40627 fi
40628
40629 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
40630 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40631 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
40632 fi
40633
40634 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40635 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40636 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40637 fi
40638
40639 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40640 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40641 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40642 fi
40643
40644 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40645 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40646 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40647 fi
40648
40649 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
40650 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
40651 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
40652 fi
40653
40654 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
40655 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
40656 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
40657 fi
40658
40659 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
40660 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
40661 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
40662 fi
40663
40664 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
40665 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
40666 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
40667 fi
40668
40669 COND_SHARED_1="#"
40670 if test "x$SHARED" = "x1" ; then
40671 COND_SHARED_1=""
40672 fi
40673
40674 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
40675 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40676 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
40677 fi
40678
40679 COND_TOOLKIT_COCOA="#"
40680 if test "x$TOOLKIT" = "xCOCOA" ; then
40681 COND_TOOLKIT_COCOA=""
40682 fi
40683
40684 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
40685 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40686 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
40687 fi
40688
40689 COND_TOOLKIT_GTK="#"
40690 if test "x$TOOLKIT" = "xGTK" ; then
40691 COND_TOOLKIT_GTK=""
40692 fi
40693
40694 COND_TOOLKIT_GTK_USE_GUI_1="#"
40695 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
40696 COND_TOOLKIT_GTK_USE_GUI_1=""
40697 fi
40698
40699 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
40700 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40701 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
40702 fi
40703
40704 COND_TOOLKIT_MAC="#"
40705 if test "x$TOOLKIT" = "xMAC" ; then
40706 COND_TOOLKIT_MAC=""
40707 fi
40708
40709 COND_TOOLKIT_MAC_USE_GUI_1="#"
40710 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
40711 COND_TOOLKIT_MAC_USE_GUI_1=""
40712 fi
40713
40714 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
40715 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40716 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
40717 fi
40718
40719 COND_TOOLKIT_MGL="#"
40720 if test "x$TOOLKIT" = "xMGL" ; then
40721 COND_TOOLKIT_MGL=""
40722 fi
40723
40724 COND_TOOLKIT_MGL_USE_GUI_1="#"
40725 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
40726 COND_TOOLKIT_MGL_USE_GUI_1=""
40727 fi
40728
40729 COND_TOOLKIT_MOTIF="#"
40730 if test "x$TOOLKIT" = "xMOTIF" ; then
40731 COND_TOOLKIT_MOTIF=""
40732 fi
40733
40734 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
40735 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
40736 COND_TOOLKIT_MOTIF_USE_GUI_1=""
40737 fi
40738
40739 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
40740 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40741 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
40742 fi
40743
40744 COND_TOOLKIT_MSW="#"
40745 if test "x$TOOLKIT" = "xMSW" ; then
40746 COND_TOOLKIT_MSW=""
40747 fi
40748
40749 COND_TOOLKIT_MSW_USE_GUI_1="#"
40750 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
40751 COND_TOOLKIT_MSW_USE_GUI_1=""
40752 fi
40753
40754 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
40755 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40756 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
40757 fi
40758
40759 COND_TOOLKIT_PM="#"
40760 if test "x$TOOLKIT" = "xPM" ; then
40761 COND_TOOLKIT_PM=""
40762 fi
40763
40764 COND_TOOLKIT_PM_USE_GUI_1="#"
40765 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
40766 COND_TOOLKIT_PM_USE_GUI_1=""
40767 fi
40768
40769 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
40770 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40771 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
40772 fi
40773
40774 COND_TOOLKIT_WINCE="#"
40775 if test "x$TOOLKIT" = "xWINCE" ; then
40776 COND_TOOLKIT_WINCE=""
40777 fi
40778
40779 COND_TOOLKIT_WINCE_USE_GUI_1="#"
40780 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
40781 COND_TOOLKIT_WINCE_USE_GUI_1=""
40782 fi
40783
40784 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
40785 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40786 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
40787 fi
40788
40789 COND_TOOLKIT_X11="#"
40790 if test "x$TOOLKIT" = "xX11" ; then
40791 COND_TOOLKIT_X11=""
40792 fi
40793
40794 COND_TOOLKIT_X11_USE_GUI_1="#"
40795 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
40796 COND_TOOLKIT_X11_USE_GUI_1=""
40797 fi
40798
40799 COND_UNICODE_1="#"
40800 if test "x$UNICODE" = "x1" ; then
40801 COND_UNICODE_1=""
40802 fi
40803
40804 COND_USE_EXCEPTIONS_0="#"
40805 if test "x$USE_EXCEPTIONS" = "x0" ; then
40806 COND_USE_EXCEPTIONS_0=""
40807 fi
40808
40809 COND_USE_EXCEPTIONS_1="#"
40810 if test "x$USE_EXCEPTIONS" = "x1" ; then
40811 COND_USE_EXCEPTIONS_1=""
40812 fi
40813
40814 COND_USE_GUI_0="#"
40815 if test "x$USE_GUI" = "x0" ; then
40816 COND_USE_GUI_0=""
40817 fi
40818
40819 COND_USE_GUI_1="#"
40820 if test "x$USE_GUI" = "x1" ; then
40821 COND_USE_GUI_1=""
40822 fi
40823
40824 COND_USE_GUI_1_WXUNIV_0="#"
40825 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40826 COND_USE_GUI_1_WXUNIV_0=""
40827 fi
40828
40829 COND_USE_GUI_1_WXUNIV_1="#"
40830 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
40831 COND_USE_GUI_1_WXUNIV_1=""
40832 fi
40833
40834 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40835 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40836 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40837 fi
40838
40839 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40840 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40841 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40842 fi
40843
40844 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40845 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40846 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40847 fi
40848
40849 COND_USE_ODBC_1="#"
40850 if test "x$USE_ODBC" = "x1" ; then
40851 COND_USE_ODBC_1=""
40852 fi
40853
40854 COND_USE_PLUGINS_0="#"
40855 if test "x$USE_PLUGINS" = "x0" ; then
40856 COND_USE_PLUGINS_0=""
40857 fi
40858
40859 COND_USE_SOSYMLINKS_1="#"
40860 if test "x$USE_SOSYMLINKS" = "x1" ; then
40861 COND_USE_SOSYMLINKS_1=""
40862 fi
40863
40864 COND_USE_SOVERLINUX_1="#"
40865 if test "x$USE_SOVERLINUX" = "x1" ; then
40866 COND_USE_SOVERLINUX_1=""
40867 fi
40868
40869 COND_USE_SOVERSION_0="#"
40870 if test "x$USE_SOVERSION" = "x0" ; then
40871 COND_USE_SOVERSION_0=""
40872 fi
40873
40874 COND_USE_SOVERSOLARIS_1="#"
40875 if test "x$USE_SOVERSOLARIS" = "x1" ; then
40876 COND_USE_SOVERSOLARIS_1=""
40877 fi
40878
40879 COND_WITH_PLUGIN_SDL_1="#"
40880 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
40881 COND_WITH_PLUGIN_SDL_1=""
40882 fi
40883
40884 COND_WXUNIV_1="#"
40885 if test "x$WXUNIV" = "x1" ; then
40886 COND_WXUNIV_1=""
40887 fi
40888
40889 COND_WXUSE_EXPAT_BUILTIN="#"
40890 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
40891 COND_WXUSE_EXPAT_BUILTIN=""
40892 fi
40893
40894 COND_WXUSE_LIBJPEG_BUILTIN="#"
40895 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40896 COND_WXUSE_LIBJPEG_BUILTIN=""
40897 fi
40898
40899 COND_WXUSE_LIBPNG_BUILTIN="#"
40900 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40901 COND_WXUSE_LIBPNG_BUILTIN=""
40902 fi
40903
40904 COND_WXUSE_LIBTIFF_BUILTIN="#"
40905 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40906 COND_WXUSE_LIBTIFF_BUILTIN=""
40907 fi
40908
40909 COND_WXUSE_ODBC_BUILTIN="#"
40910 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
40911 COND_WXUSE_ODBC_BUILTIN=""
40912 fi
40913
40914 COND_WXUSE_REGEX_BUILTIN="#"
40915 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
40916 COND_WXUSE_REGEX_BUILTIN=""
40917 fi
40918
40919 COND_WXUSE_ZLIB_BUILTIN="#"
40920 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
40921 COND_WXUSE_ZLIB_BUILTIN=""
40922 fi
40923
a848cd7e
SC
40924
40925
2057db16
VS
40926 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
40927 { { 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
40928echo "$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;}
40929 { (exit 1); exit 1; }; }
40930 fi
40931
a848cd7e
SC
40932
40933
74b84332 40934GCC_PRAGMA_FLAGS=""
a848cd7e 40935if test $GCC_PCH = 1 ; then
74b84332 40936 GCC_PRAGMA_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA"
a848cd7e
SC
40937else
40938 case "${host}" in
40939 powerpc-*-darwin* )
74b84332 40940 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
a848cd7e 40941 ;;
bea8e651 40942 *-*-mingw32* )
1f344abf
VS
40943 if test "$wxUSE_STL" = "yes" -o \
40944 "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
40945 "$wxUSE_NO_RTTI" != "yes"; then
40946 echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
40947echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
bea8e651
MB
40948 cat >conftest.$ac_ext <<_ACEOF
40949/* confdefs.h. */
40950_ACEOF
40951cat confdefs.h >>conftest.$ac_ext
40952cat >>conftest.$ac_ext <<_ACEOF
40953/* end confdefs.h. */
40954
40955int
40956main ()
40957{
1f344abf 40958#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
bea8e651
MB
40959 #error "Not GCC 3.2 or greater"
40960 #endif
40961
40962 ;
40963 return 0;
40964}
40965_ACEOF
40966rm -f conftest.$ac_objext
40967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40968 (eval $ac_compile) 2>conftest.er1
bea8e651 40969 ac_status=$?
ac1cb8d3
VS
40970 grep -v '^ *+' conftest.er1 >conftest.err
40971 rm -f conftest.er1
40972 cat conftest.err >&5
bea8e651
MB
40973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40974 (exit $ac_status); } &&
ea7db9ff
DE
40975 { ac_try='test -z "$ac_c_werror_flag"
40976 || test ! -s conftest.err'
ac1cb8d3
VS
40977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40978 (eval $ac_try) 2>&5
40979 ac_status=$?
40980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40981 (exit $ac_status); }; } &&
40982 { ac_try='test -s conftest.$ac_objext'
bea8e651
MB
40983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40984 (eval $ac_try) 2>&5
40985 ac_status=$?
40986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40987 (exit $ac_status); }; }; then
74b84332 40988 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
bea8e651
MB
40989 echo "$as_me:$LINENO: result: yes" >&5
40990echo "${ECHO_T}yes" >&6
40991else
40992 echo "$as_me: failed program was:" >&5
40993sed 's/^/| /' conftest.$ac_ext >&5
40994
40995echo "$as_me:$LINENO: result: no" >&5
40996echo "${ECHO_T}no" >&6
40997fi
ac1cb8d3 40998rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bea8e651
MB
40999 fi
41000 ;;
a848cd7e
SC
41001 esac
41002fi
74b84332 41003CPPFLAGS="$GCC_PRAGMA_FLAGS $CPPFLAGS"
a848cd7e
SC
41004
41005
41006SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
41007
41008
41009
41010
41011
41012
41013
41014
41015
41016
41017
41018
41019
41020
41021
41022
41023
41024
41025
41026
41027
41028
41029
41030
41031
41032
41033
41034
41035
41036
41037
41038
41039
41040
41041
41042
41043
41044
41045
41046
41047
41048
41049
41050
41051
41052
41053
41054
41055
41056
41057
41058
41059
41060
41061
41062
41063
41064
41065
41066
41067
41068
41069
41070
41071
41072
41073
41074
41075
41076
41077
41078
41079
41080
41081
41082
41083
41084
41085
41086
41087
41088
41089
41090
41091
41092
41093
41094
41095
41096
41097
41098
41099
41100
41101
41102
41103
41104
74b84332 41105
224bf05c 41106
a848cd7e
SC
41107
41108
41109echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
41110echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 41111set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
41112if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
41113 echo $ECHO_N "(cached) $ECHO_C" >&6
41114else
41115 cat >conftest.make <<\_ACEOF
41116all:
41117 @echo 'ac_maketemp="$(MAKE)"'
41118_ACEOF
41119# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
41120eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
41121if test -n "$ac_maketemp"; then
41122 eval ac_cv_prog_make_${ac_make}_set=yes
41123else
41124 eval ac_cv_prog_make_${ac_make}_set=no
41125fi
41126rm -f conftest.make
41127fi
41128if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
41129 echo "$as_me:$LINENO: result: yes" >&5
41130echo "${ECHO_T}yes" >&6
41131 SET_MAKE=
41132else
41133 echo "$as_me:$LINENO: result: no" >&5
41134echo "${ECHO_T}no" >&6
41135 SET_MAKE="MAKE=${MAKE-make}"
41136fi
41137
41138
41139if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
41140 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
41141fi
41142
41143 ac_config_headers="$ac_config_headers setup.h"
41144
41145
8708fa76 41146 ac_config_files="$ac_config_files wx-config wx-config-wrapper version-script Makefile"
a848cd7e
SC
41147
41148
41149 ac_config_commands="$ac_config_commands default"
41150
41151
41152
41153if test "$wxUSE_GUI" = "yes"; then
41154 SUBDIRS="samples demos utils contrib"
41155else SUBDIRS="samples utils"
41156fi
41157
41158
41159
41160# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
41161if test "${with_cppunit_prefix+set}" = set; then
41162 withval="$with_cppunit_prefix"
41163 cppunit_config_prefix="$withval"
41164else
41165 cppunit_config_prefix=""
41166fi;
41167
41168# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
41169if test "${with_cppunit_exec_prefix+set}" = set; then
41170 withval="$with_cppunit_exec_prefix"
41171 cppunit_config_exec_prefix="$withval"
41172else
41173 cppunit_config_exec_prefix=""
41174fi;
41175
41176 if test x$cppunit_config_exec_prefix != x ; then
41177 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
41178 if test x${CPPUNIT_CONFIG+set} != xset ; then
41179 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
41180 fi
41181 fi
41182 if test x$cppunit_config_prefix != x ; then
41183 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
41184 if test x${CPPUNIT_CONFIG+set} != xset ; then
41185 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
41186 fi
41187 fi
41188
41189 # Extract the first word of "cppunit-config", so it can be a program name with args.
41190set dummy cppunit-config; ac_word=$2
41191echo "$as_me:$LINENO: checking for $ac_word" >&5
41192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41193if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
41194 echo $ECHO_N "(cached) $ECHO_C" >&6
41195else
41196 case $CPPUNIT_CONFIG in
41197 [\\/]* | ?:[\\/]*)
41198 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
41199 ;;
41200 *)
41201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41202for as_dir in $PATH
41203do
41204 IFS=$as_save_IFS
41205 test -z "$as_dir" && as_dir=.
41206 for ac_exec_ext in '' $ac_executable_extensions; do
41207 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41208 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41210 break 2
41211 fi
41212done
41213done
41214
41215 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
41216 ;;
41217esac
41218fi
41219CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
41220
41221if test -n "$CPPUNIT_CONFIG"; then
41222 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
41223echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
41224else
41225 echo "$as_me:$LINENO: result: no" >&5
41226echo "${ECHO_T}no" >&6
41227fi
41228
41229 cppunit_version_min=1.8.0
41230
41231 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
41232echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
41233 no_cppunit=""
41234 if test "$CPPUNIT_CONFIG" = "no" ; then
41235 no_cppunit=yes
41236 else
41237 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
41238 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
41239 cppunit_version=`$CPPUNIT_CONFIG --version`
41240
41241 cppunit_major_version=`echo $cppunit_version | \
41242 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41243 cppunit_minor_version=`echo $cppunit_version | \
41244 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41245 cppunit_micro_version=`echo $cppunit_version | \
41246 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41247
41248 cppunit_major_min=`echo $cppunit_version_min | \
41249 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41250 cppunit_minor_min=`echo $cppunit_version_min | \
41251 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41252 cppunit_micro_min=`echo $cppunit_version_min | \
41253 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41254
41255 cppunit_version_proper=`expr \
41256 $cppunit_major_version \> $cppunit_major_min \| \
41257 $cppunit_major_version \= $cppunit_major_min \& \
41258 $cppunit_minor_version \> $cppunit_minor_min \| \
41259 $cppunit_major_version \= $cppunit_major_min \& \
41260 $cppunit_minor_version \= $cppunit_minor_min \& \
41261 $cppunit_micro_version \>= $cppunit_micro_min `
41262
41263 if test "$cppunit_version_proper" = "1" ; then
41264 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
41265echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
41266 else
41267 echo "$as_me:$LINENO: result: no" >&5
41268echo "${ECHO_T}no" >&6
41269 no_cppunit=yes
41270 fi
41271 fi
41272
41273 if test "x$no_cppunit" = x ; then
c2218763 41274 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
41275 else
41276 CPPUNIT_CFLAGS=""
41277 CPPUNIT_LIBS=""
c2218763 41278 :
a848cd7e
SC
41279 fi
41280
41281
41282
41283
41284
41285for subdir in `echo $SUBDIRS`; do
41286 if test -d ${srcdir}/${subdir} ; then
41287 if test "$wxUSE_GUI" = "yes"; then
41288 if test ${subdir} = "samples"; then
41289 makefiles="samples/Makefile.in $makefiles"
41290 for sample in `echo $SAMPLES_SUBDIRS`; do
41291 if test -d $srcdir/samples/$sample; then
41292 makefiles="samples/$sample/Makefile.in $makefiles"
41293 fi
41294 done
41295 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
41296 fi
41297 else if test ${subdir} = "samples"; then
41298 makefiles="samples/Makefile.in samples/console/Makefile.in"
41299 elif test ${subdir} = "utils"; then
41300 makefiles="utils/HelpGen/Makefile.in \
41301 utils/HelpGen/src/Makefile.in \
41302 utils/tex2rtf/Makefile.in \
41303 utils/tex2rtf/src/Makefile.in"
41304 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
41305 fi
41306 fi
41307
41308 for mkin in $makefiles ; do
41309 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
41310 ac_config_files="$ac_config_files $mk"
41311
41312 done
41313 fi
41314done
41315
41316
41317cat >confcache <<\_ACEOF
41318# This file is a shell script that caches the results of configure
41319# tests run on this system so they can be shared between configure
41320# scripts and configure runs, see configure's option --config-cache.
41321# It is not useful on other systems. If it contains results you don't
41322# want to keep, you may remove or edit it.
41323#
41324# config.status only pays attention to the cache file if you give it
41325# the --recheck option to rerun configure.
41326#
41327# `ac_cv_env_foo' variables (set or unset) will be overridden when
41328# loading this file, other *unset* `ac_cv_foo' will be assigned the
41329# following values.
41330
41331_ACEOF
41332
41333# The following way of writing the cache mishandles newlines in values,
41334# but we know of no workaround that is simple, portable, and efficient.
41335# So, don't put newlines in cache variables' values.
41336# Ultrix sh set writes to stderr and can't be redirected directly,
41337# and sets the high bit in the cache file unless we assign to the vars.
41338{
41339 (set) 2>&1 |
41340 case `(ac_space=' '; set | grep ac_space) 2>&1` in
41341 *ac_space=\ *)
41342 # `set' does not quote correctly, so add quotes (double-quote
41343 # substitution turns \\\\ into \\, and sed turns \\ into \).
41344 sed -n \
ac1cb8d3
VS
41345 "s/'/'\\\\''/g;
41346 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
41347 ;;
41348 *)
41349 # `set' quotes correctly as required by POSIX, so do not add quotes.
41350 sed -n \
ac1cb8d3 41351 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
41352 ;;
41353 esac;
41354} |
41355 sed '
41356 t clear
41357 : clear
41358 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41359 t end
41360 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41361 : end' >>confcache
41362if diff $cache_file confcache >/dev/null 2>&1; then :; else
41363 if test -w $cache_file; then
41364 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
41365 cat confcache >$cache_file
41366 else
41367 echo "not updating unwritable cache $cache_file"
41368 fi
41369fi
41370rm -f confcache
41371
41372test "x$prefix" = xNONE && prefix=$ac_default_prefix
41373# Let make expand exec_prefix.
41374test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41375
41376# VPATH may cause trouble with some makes, so we remove $(srcdir),
41377# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
41378# trailing colons and then remove the whole line if VPATH becomes empty
41379# (actually we leave an empty line to preserve line numbers).
41380if test "x$srcdir" = x.; then
ac1cb8d3 41381 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
41382s/:*\$(srcdir):*/:/;
41383s/:*\${srcdir}:*/:/;
41384s/:*@srcdir@:*/:/;
ac1cb8d3 41385s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 41386s/:*$//;
ac1cb8d3 41387s/^[^=]*=[ ]*$//;
a848cd7e
SC
41388}'
41389fi
41390
41391DEFS=-DHAVE_CONFIG_H
41392
41393ac_libobjs=
41394ac_ltlibobjs=
41395for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41396 # 1. Remove the extension, and $U if already installed.
41397 ac_i=`echo "$ac_i" |
ac1cb8d3 41398 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
41399 # 2. Add them.
41400 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
41401 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
41402done
41403LIBOBJS=$ac_libobjs
41404
41405LTLIBOBJS=$ac_ltlibobjs
41406
41407
41408
41409: ${CONFIG_STATUS=./config.status}
41410ac_clean_files_save=$ac_clean_files
41411ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41412{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
41413echo "$as_me: creating $CONFIG_STATUS" >&6;}
41414cat >$CONFIG_STATUS <<_ACEOF
41415#! $SHELL
41416# Generated by $as_me.
41417# Run this file to recreate the current configuration.
41418# Compiler output produced by configure, useful for debugging
41419# configure, is in config.log if it exists.
41420
41421debug=false
41422ac_cs_recheck=false
41423ac_cs_silent=false
41424SHELL=\${CONFIG_SHELL-$SHELL}
41425_ACEOF
41426
41427cat >>$CONFIG_STATUS <<\_ACEOF
41428## --------------------- ##
41429## M4sh Initialization. ##
41430## --------------------- ##
41431
41432# Be Bourne compatible
41433if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
41434 emulate sh
41435 NULLCMD=:
41436 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
41437 # is contrary to our usage. Disable this feature.
41438 alias -g '${1+"$@"}'='"$@"'
41439elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
41440 set -o posix
41441fi
ac1cb8d3 41442DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
41443
41444# Support unset when possible.
ac1cb8d3 41445if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
41446 as_unset=unset
41447else
41448 as_unset=false
41449fi
41450
41451
41452# Work around bugs in pre-3.0 UWIN ksh.
41453$as_unset ENV MAIL MAILPATH
41454PS1='$ '
41455PS2='> '
41456PS4='+ '
41457
41458# NLS nuisances.
41459for as_var in \
41460 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41461 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
41462 LC_TELEPHONE LC_TIME
41463do
ac1cb8d3 41464 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
41465 eval $as_var=C; export $as_var
41466 else
41467 $as_unset $as_var
41468 fi
41469done
41470
41471# Required to use basename.
41472if expr a : '\(a\)' >/dev/null 2>&1; then
41473 as_expr=expr
41474else
41475 as_expr=false
41476fi
41477
41478if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
41479 as_basename=basename
41480else
41481 as_basename=false
41482fi
41483
41484
41485# Name of the executable.
41486as_me=`$as_basename "$0" ||
41487$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41488 X"$0" : 'X\(//\)$' \| \
41489 X"$0" : 'X\(/\)$' \| \
41490 . : '\(.\)' 2>/dev/null ||
41491echo X/"$0" |
41492 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
41493 /^X\/\(\/\/\)$/{ s//\1/; q; }
41494 /^X\/\(\/\).*/{ s//\1/; q; }
41495 s/.*/./; q'`
41496
41497
41498# PATH needs CR, and LINENO needs CR and PATH.
41499# Avoid depending upon Character Ranges.
41500as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41501as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41502as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41503as_cr_digits='0123456789'
41504as_cr_alnum=$as_cr_Letters$as_cr_digits
41505
41506# The user is always right.
41507if test "${PATH_SEPARATOR+set}" != set; then
41508 echo "#! /bin/sh" >conf$$.sh
41509 echo "exit 0" >>conf$$.sh
41510 chmod +x conf$$.sh
41511 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
41512 PATH_SEPARATOR=';'
41513 else
41514 PATH_SEPARATOR=:
41515 fi
41516 rm -f conf$$.sh
41517fi
41518
41519
41520 as_lineno_1=$LINENO
41521 as_lineno_2=$LINENO
41522 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41523 test "x$as_lineno_1" != "x$as_lineno_2" &&
41524 test "x$as_lineno_3" = "x$as_lineno_2" || {
41525 # Find who we are. Look in the path if we contain no path at all
41526 # relative or not.
41527 case $0 in
41528 *[\\/]* ) as_myself=$0 ;;
41529 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41530for as_dir in $PATH
41531do
41532 IFS=$as_save_IFS
41533 test -z "$as_dir" && as_dir=.
41534 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41535done
41536
41537 ;;
41538 esac
41539 # We did not find ourselves, most probably we were run as `sh COMMAND'
41540 # in which case we are not to be found in the path.
41541 if test "x$as_myself" = x; then
41542 as_myself=$0
41543 fi
41544 if test ! -f "$as_myself"; then
41545 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
41546echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
41547 { (exit 1); exit 1; }; }
41548 fi
41549 case $CONFIG_SHELL in
41550 '')
41551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41552for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
41553do
41554 IFS=$as_save_IFS
41555 test -z "$as_dir" && as_dir=.
41556 for as_base in sh bash ksh sh5; do
41557 case $as_dir in
41558 /*)
41559 if ("$as_dir/$as_base" -c '
41560 as_lineno_1=$LINENO
41561 as_lineno_2=$LINENO
41562 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41563 test "x$as_lineno_1" != "x$as_lineno_2" &&
41564 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
41565 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
41566 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
41567 CONFIG_SHELL=$as_dir/$as_base
41568 export CONFIG_SHELL
41569 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
41570 fi;;
41571 esac
41572 done
41573done
41574;;
41575 esac
41576
41577 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
41578 # uniformly replaced by the line number. The first 'sed' inserts a
41579 # line-number line before each line; the second 'sed' does the real
41580 # work. The second script uses 'N' to pair each line-number line
41581 # with the numbered line, and appends trailing '-' during
41582 # substitution so that $LINENO is not a special case at line end.
41583 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
41584 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
41585 sed '=' <$as_myself |
41586 sed '
41587 N
41588 s,$,-,
41589 : loop
41590 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
41591 t loop
41592 s,-$,,
41593 s,^['$as_cr_digits']*\n,,
41594 ' >$as_me.lineno &&
41595 chmod +x $as_me.lineno ||
41596 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
41597echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
41598 { (exit 1); exit 1; }; }
41599
41600 # Don't try to exec as it changes $[0], causing all sort of problems
41601 # (the dirname of $[0] is not the place where we might find the
41602 # original and so on. Autoconf is especially sensible to this).
41603 . ./$as_me.lineno
41604 # Exit status is that of the last command.
41605 exit
41606}
41607
41608
41609case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
41610 *c*,-n*) ECHO_N= ECHO_C='
41611' ECHO_T=' ' ;;
41612 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
41613 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
41614esac
41615
41616if expr a : '\(a\)' >/dev/null 2>&1; then
41617 as_expr=expr
41618else
41619 as_expr=false
41620fi
41621
41622rm -f conf$$ conf$$.exe conf$$.file
41623echo >conf$$.file
41624if ln -s conf$$.file conf$$ 2>/dev/null; then
41625 # We could just check for DJGPP; but this test a) works b) is more generic
41626 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
41627 if test -f conf$$.exe; then
41628 # Don't use ln at all; we don't have any links
41629 as_ln_s='cp -p'
41630 else
41631 as_ln_s='ln -s'
41632 fi
41633elif ln conf$$.file conf$$ 2>/dev/null; then
41634 as_ln_s=ln
41635else
41636 as_ln_s='cp -p'
41637fi
41638rm -f conf$$ conf$$.exe conf$$.file
41639
41640if mkdir -p . 2>/dev/null; then
41641 as_mkdir_p=:
41642else
ac1cb8d3 41643 test -d ./-p && rmdir ./-p
a848cd7e
SC
41644 as_mkdir_p=false
41645fi
41646
41647as_executable_p="test -f"
41648
41649# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 41650as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
41651
41652# Sed expression to map a string onto a valid variable name.
ac1cb8d3 41653as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
41654
41655
41656# IFS
41657# We need space, tab and new line, in precisely that order.
41658as_nl='
41659'
41660IFS=" $as_nl"
41661
41662# CDPATH.
41663$as_unset CDPATH
41664
41665exec 6>&1
41666
41667# Open the log real soon, to keep \$[0] and so on meaningful, and to
41668# report actual input values of CONFIG_FILES etc. instead of their
41669# values after options handling. Logging --version etc. is OK.
41670exec 5>>config.log
41671{
41672 echo
41673 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41674## Running $as_me. ##
41675_ASBOX
41676} >&5
41677cat >&5 <<_CSEOF
41678
77ffb593 41679This file was extended by wxWidgets $as_me 2.5.2, which was
ac1cb8d3 41680generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
41681
41682 CONFIG_FILES = $CONFIG_FILES
41683 CONFIG_HEADERS = $CONFIG_HEADERS
41684 CONFIG_LINKS = $CONFIG_LINKS
41685 CONFIG_COMMANDS = $CONFIG_COMMANDS
41686 $ $0 $@
41687
41688_CSEOF
41689echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
41690echo >&5
41691_ACEOF
41692
41693# Files that config.status was made for.
41694if test -n "$ac_config_files"; then
41695 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
41696fi
41697
41698if test -n "$ac_config_headers"; then
41699 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
41700fi
41701
41702if test -n "$ac_config_links"; then
41703 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
41704fi
41705
41706if test -n "$ac_config_commands"; then
41707 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
41708fi
41709
41710cat >>$CONFIG_STATUS <<\_ACEOF
41711
41712ac_cs_usage="\
41713\`$as_me' instantiates files from templates according to the
41714current configuration.
41715
41716Usage: $0 [OPTIONS] [FILE]...
41717
41718 -h, --help print this help, then exit
41719 -V, --version print version number, then exit
41720 -q, --quiet do not print progress messages
41721 -d, --debug don't remove temporary files
41722 --recheck update $as_me by reconfiguring in the same conditions
41723 --file=FILE[:TEMPLATE]
ac1cb8d3 41724 instantiate the configuration file FILE
a848cd7e 41725 --header=FILE[:TEMPLATE]
ac1cb8d3 41726 instantiate the configuration header FILE
a848cd7e
SC
41727
41728Configuration files:
41729$config_files
41730
41731Configuration headers:
41732$config_headers
41733
41734Configuration commands:
41735$config_commands
41736
41737Report bugs to <bug-autoconf@gnu.org>."
41738_ACEOF
41739
41740cat >>$CONFIG_STATUS <<_ACEOF
41741ac_cs_version="\\
77ffb593 41742wxWidgets config.status 2.5.2
ac1cb8d3 41743configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
41744 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
41745
ac1cb8d3 41746Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
41747This config.status script is free software; the Free Software Foundation
41748gives unlimited permission to copy, distribute and modify it."
41749srcdir=$srcdir
41750INSTALL="$INSTALL"
41751_ACEOF
41752
41753cat >>$CONFIG_STATUS <<\_ACEOF
41754# If no file are specified by the user, then we need to provide default
41755# value. By we need to know if files were specified by the user.
41756ac_need_defaults=:
41757while test $# != 0
41758do
41759 case $1 in
41760 --*=*)
41761 ac_option=`expr "x$1" : 'x\([^=]*\)='`
41762 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
41763 ac_shift=:
41764 ;;
41765 -*)
41766 ac_option=$1
41767 ac_optarg=$2
41768 ac_shift=shift
41769 ;;
41770 *) # This is not an option, so the user has probably given explicit
41771 # arguments.
41772 ac_option=$1
41773 ac_need_defaults=false;;
41774 esac
41775
41776 case $ac_option in
41777 # Handling of the options.
41778_ACEOF
41779cat >>$CONFIG_STATUS <<\_ACEOF
41780 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41781 ac_cs_recheck=: ;;
41782 --version | --vers* | -V )
41783 echo "$ac_cs_version"; exit 0 ;;
41784 --he | --h)
41785 # Conflict between --help and --header
41786 { { echo "$as_me:$LINENO: error: ambiguous option: $1
41787Try \`$0 --help' for more information." >&5
41788echo "$as_me: error: ambiguous option: $1
41789Try \`$0 --help' for more information." >&2;}
41790 { (exit 1); exit 1; }; };;
41791 --help | --hel | -h )
41792 echo "$ac_cs_usage"; exit 0 ;;
41793 --debug | --d* | -d )
41794 debug=: ;;
41795 --file | --fil | --fi | --f )
41796 $ac_shift
41797 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
41798 ac_need_defaults=false;;
41799 --header | --heade | --head | --hea )
41800 $ac_shift
41801 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
41802 ac_need_defaults=false;;
41803 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41804 | -silent | --silent | --silen | --sile | --sil | --si | --s)
41805 ac_cs_silent=: ;;
41806
41807 # This is an error.
41808 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
41809Try \`$0 --help' for more information." >&5
41810echo "$as_me: error: unrecognized option: $1
41811Try \`$0 --help' for more information." >&2;}
41812 { (exit 1); exit 1; }; } ;;
41813
41814 *) ac_config_targets="$ac_config_targets $1" ;;
41815
41816 esac
41817 shift
41818done
41819
41820ac_configure_extra_args=
41821
41822if $ac_cs_silent; then
41823 exec 6>/dev/null
41824 ac_configure_extra_args="$ac_configure_extra_args --silent"
41825fi
41826
41827_ACEOF
41828cat >>$CONFIG_STATUS <<_ACEOF
41829if \$ac_cs_recheck; then
41830 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
41831 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41832fi
41833
41834_ACEOF
41835
41836cat >>$CONFIG_STATUS <<_ACEOF
41837#
41838# INIT-COMMANDS section.
41839#
41840
41841
41842 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
48112931 41843 WXCONFIG_DATA_FILE="${WXCONFIG_DATA_FILE}"
a848cd7e
SC
41844 LN_S="${LN_S}"
41845
41846
41847
41848_ACEOF
41849
41850
41851
41852cat >>$CONFIG_STATUS <<\_ACEOF
41853for ac_config_target in $ac_config_targets
41854do
41855 case "$ac_config_target" in
41856 # Handling of arguments.
41857 "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
8708fa76 41858 "wx-config-wrapper" ) CONFIG_FILES="$CONFIG_FILES wx-config-wrapper" ;;
a848cd7e
SC
41859 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
41860 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
41861 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
41862 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
41863 "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;;
41864 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
41865echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
41866 { (exit 1); exit 1; }; };;
41867 esac
41868done
41869
41870# If the user did not use the arguments to specify the items to instantiate,
41871# then the envvar interface is used. Set only those that are not.
41872# We use the long form for the default assignment because of an extremely
41873# bizarre bug on SunOS 4.1.3.
41874if $ac_need_defaults; then
41875 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
41876 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
41877 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
41878fi
41879
41880# Have a temporary directory for convenience. Make it in the build tree
41881# simply because there is no reason to put it here, and in addition,
41882# creating and moving files from /tmp can sometimes cause problems.
41883# Create a temporary directory, and hook for its removal unless debugging.
41884$debug ||
41885{
41886 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
41887 trap '{ (exit 1); exit 1; }' 1 2 13 15
41888}
41889
41890# Create a (secure) tmp directory for tmp files.
41891
41892{
41893 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
41894 test -n "$tmp" && test -d "$tmp"
41895} ||
41896{
41897 tmp=./confstat$$-$RANDOM
41898 (umask 077 && mkdir $tmp)
41899} ||
41900{
41901 echo "$me: cannot create a temporary directory in ." >&2
41902 { (exit 1); exit 1; }
41903}
41904
41905_ACEOF
41906
41907cat >>$CONFIG_STATUS <<_ACEOF
41908
41909#
41910# CONFIG_FILES section.
41911#
41912
41913# No need to generate the scripts if there are no CONFIG_FILES.
41914# This happens for instance when ./config.status config.h
41915if test -n "\$CONFIG_FILES"; then
41916 # Protect against being on the right side of a sed subst in config.status.
41917 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
41918 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
41919s,@SHELL@,$SHELL,;t t
41920s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
41921s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
41922s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
41923s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
41924s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
41925s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
41926s,@exec_prefix@,$exec_prefix,;t t
41927s,@prefix@,$prefix,;t t
41928s,@program_transform_name@,$program_transform_name,;t t
41929s,@bindir@,$bindir,;t t
41930s,@sbindir@,$sbindir,;t t
41931s,@libexecdir@,$libexecdir,;t t
41932s,@datadir@,$datadir,;t t
41933s,@sysconfdir@,$sysconfdir,;t t
41934s,@sharedstatedir@,$sharedstatedir,;t t
41935s,@localstatedir@,$localstatedir,;t t
41936s,@libdir@,$libdir,;t t
41937s,@includedir@,$includedir,;t t
41938s,@oldincludedir@,$oldincludedir,;t t
41939s,@infodir@,$infodir,;t t
41940s,@mandir@,$mandir,;t t
41941s,@build_alias@,$build_alias,;t t
41942s,@host_alias@,$host_alias,;t t
41943s,@target_alias@,$target_alias,;t t
41944s,@DEFS@,$DEFS,;t t
41945s,@ECHO_C@,$ECHO_C,;t t
41946s,@ECHO_N@,$ECHO_N,;t t
41947s,@ECHO_T@,$ECHO_T,;t t
41948s,@LIBS@,$LIBS,;t t
41949s,@build@,$build,;t t
41950s,@build_cpu@,$build_cpu,;t t
41951s,@build_vendor@,$build_vendor,;t t
41952s,@build_os@,$build_os,;t t
41953s,@host@,$host,;t t
41954s,@host_cpu@,$host_cpu,;t t
41955s,@host_vendor@,$host_vendor,;t t
41956s,@host_os@,$host_os,;t t
41957s,@target@,$target,;t t
41958s,@target_cpu@,$target_cpu,;t t
41959s,@target_vendor@,$target_vendor,;t t
41960s,@target_os@,$target_os,;t t
41961s,@CC@,$CC,;t t
41962s,@CFLAGS@,$CFLAGS,;t t
41963s,@LDFLAGS@,$LDFLAGS,;t t
41964s,@CPPFLAGS@,$CPPFLAGS,;t t
41965s,@ac_ct_CC@,$ac_ct_CC,;t t
41966s,@EXEEXT@,$EXEEXT,;t t
41967s,@OBJEXT@,$OBJEXT,;t t
41968s,@CPP@,$CPP,;t t
41969s,@EGREP@,$EGREP,;t t
41970s,@CXX@,$CXX,;t t
41971s,@CXXFLAGS@,$CXXFLAGS,;t t
41972s,@ac_ct_CXX@,$ac_ct_CXX,;t t
41973s,@RANLIB@,$RANLIB,;t t
41974s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
41975s,@AR@,$AR,;t t
41976s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
41977s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
41978s,@INSTALL_DATA@,$INSTALL_DATA,;t t
41979s,@STRIP@,$STRIP,;t t
41980s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
41981s,@LN_S@,$LN_S,;t t
41982s,@CXXCPP@,$CXXCPP,;t t
41983s,@subdirs@,$subdirs,;t t
41984s,@PKG_CONFIG@,$PKG_CONFIG,;t t
41985s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
41986s,@GTK_LIBS@,$GTK_LIBS,;t t
41987s,@GTK_CONFIG@,$GTK_CONFIG,;t t
41988s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
41989s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
41990s,@X_CFLAGS@,$X_CFLAGS,;t t
41991s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
41992s,@X_LIBS@,$X_LIBS,;t t
41993s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
41994s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
41995s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
41996s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
41997s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
41998s,@RESCOMP@,$RESCOMP,;t t
41999s,@DEREZ@,$DEREZ,;t t
42000s,@SETFILE@,$SETFILE,;t t
42001s,@LIBICONV@,$LIBICONV,;t t
42002s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
42003s,@SDL_CONFIG@,$SDL_CONFIG,;t t
42004s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
42005s,@SDL_LIBS@,$SDL_LIBS,;t t
42006s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
42007s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
42008s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
42009s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
42010s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
42011s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
42012s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
42013s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
42014s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
42015s,@VENDOR@,$VENDOR,;t t
42016s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
42017s,@WXUNIV@,$WXUNIV,;t t
42018s,@MONOLITHIC@,$MONOLITHIC,;t t
42019s,@USE_PLUGINS@,$USE_PLUGINS,;t t
42020s,@EXTRALIBS@,$EXTRALIBS,;t t
42021s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
42022s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
42023s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
42024s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
42025s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
42026s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
42027s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
42028s,@UNICODE@,$UNICODE,;t t
42029s,@BUILD@,$BUILD,;t t
42030s,@DEBUG_INFO@,$DEBUG_INFO,;t t
42031s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
42032s,@SHARED@,$SHARED,;t t
42033s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
42034s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
42035s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
42036s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
42037s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
42038s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
42039s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
42040s,@SET_MAKE@,$SET_MAKE,;t t
42041s,@MAKE_SET@,$MAKE_SET,;t t
42042s,@ac_ct_AR@,$ac_ct_AR,;t t
42043s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
42044s,@NM@,$NM,;t t
42045s,@ac_ct_NM@,$ac_ct_NM,;t t
42046s,@INSTALL_DIR@,$INSTALL_DIR,;t t
42047s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
42048s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
42049s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
42050s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
42051s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
42052s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
42053s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
42054s,@SO_SUFFIX@,$SO_SUFFIX,;t t
42055s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
42056s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
42057s,@LIBPREFIX@,$LIBPREFIX,;t t
42058s,@LIBEXT@,$LIBEXT,;t t
42059s,@DLLPREFIX@,$DLLPREFIX,;t t
42060s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
42061s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
42062s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
42063s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
42064s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
42065s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
42066s,@PIC_FLAG@,$PIC_FLAG,;t t
42067s,@USE_SOVERSION@,$USE_SOVERSION,;t t
42068s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
42069s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
42070s,@USE_MACVERSION@,$USE_MACVERSION,;t t
42071s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
42072s,@SONAME_FLAG@,$SONAME_FLAG,;t t
42073s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
42074s,@GCC_PCH@,$GCC_PCH,;t t
42075s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
42076s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
42077s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
42078s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
42079s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
42080s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
42081s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
42082s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
42083s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
42084s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
42085s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
42086s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
42087s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
42088s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
42089s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
42090s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
42091s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
42092s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
42093s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1,;t t
42094s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
42095s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
42096s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
42097s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
42098s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1,;t t
42099s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
42100s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
42101s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
42102s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
42103s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
42104s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
42105s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
42106s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
42107s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
42108s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
42109s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
42110s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
42111s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
ebee3cd0
VS
42112s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
42113s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
42114s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
42115s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
42116s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
42117s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
42118s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
42119s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
42120s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
42121s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
42122s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
42123s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
42124s,@COND_SHARED_0@,$COND_SHARED_0,;t t
42125s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
42126s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
42127s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
42128s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
42129s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
42130s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
42131s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
42132s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
42133s,@COND_SHARED_1@,$COND_SHARED_1,;t t
42134s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
42135s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
42136s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
42137s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
42138s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
42139s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
42140s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
42141s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
42142s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
e835546c 42143s,@COND_TOOLKIT_MAC_WXUNIV_0@,$COND_TOOLKIT_MAC_WXUNIV_0,;t t
a848cd7e
SC
42144s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
42145s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
42146s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
42147s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
42148s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
42149s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
42150s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
42151s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
e835546c 42152s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
a848cd7e
SC
42153s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
42154s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
42155s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
e835546c 42156s,@COND_TOOLKIT_PM_WXUNIV_0@,$COND_TOOLKIT_PM_WXUNIV_0,;t t
3fd9c298
DE
42157s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
42158s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
42159s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
42160s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
42161s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
42162s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
42163s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
42164s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
42165s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
42166s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
42167s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
42168s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
42169s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
42170s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
42171s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
42172s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
42173s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
42174s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
42175s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
42176s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
42177s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
42178s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
42179s,@COND_WITH_SDL_1@,$COND_WITH_SDL_1,;t t
42180s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
42181s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
42182s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
42183s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
42184s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
42185s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
42186s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
42187s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
42188s,@PATH_IFS@,$PATH_IFS,;t t
42189s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
42190s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
42191s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
224bf05c 42192s,@WX_SUBRELEASE_NUMBER@,$WX_SUBRELEASE_NUMBER,;t t
a848cd7e
SC
42193s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
42194s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
42195s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
42196s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
42197s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t
42198s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
42199s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
42200s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
42201s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
42202s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
42203s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
42204s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
42205s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
42206s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
42207s,@WX_ALL@,$WX_ALL,;t t
42208s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
42209s,@SHARED_LD@,$SHARED_LD,;t t
42210s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
42211s,@STATIC_FLAG@,$STATIC_FLAG,;t t
42212s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
42213s,@USE_GUI@,$USE_GUI,;t t
42214s,@AFMINSTALL@,$AFMINSTALL,;t t
42215s,@WIN32INSTALL@,$WIN32INSTALL,;t t
42216s,@TOOLKIT@,$TOOLKIT,;t t
42217s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
42218s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t
42219s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
42220s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
42221s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
42222s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t
42223s,@cross_compiling@,$cross_compiling,;t t
42224s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
42225s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
42226s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t
42227s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t
42228s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t
42229s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
42230s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
42231s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
48112931 42232s,@WXCONFIG_DATA_FILE@,$WXCONFIG_DATA_FILE,;t t
a848cd7e 42233s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
74b84332 42234s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
42235s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
42236s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
42237s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
42238s,@ALL_HEADERS@,$ALL_HEADERS,;t t
42239s,@ALL_SOURCES@,$ALL_SOURCES,;t t
42240s,@GUIDIST@,$GUIDIST,;t t
42241s,@PORT_FILES@,$PORT_FILES,;t t
42242s,@DISTDIR@,$DISTDIR,;t t
42243s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
42244s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
42245s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t
42246s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t
42247s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
42248s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
42249s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
42250s,@RESFLAGS@,$RESFLAGS,;t t
42251s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
42252s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
42253s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
42254s,@LIBWXMACRES@,$LIBWXMACRES,;t t
42255s,@MACRESCOMP@,$MACRESCOMP,;t t
42256s,@MACSETFILE@,$MACSETFILE,;t t
42257s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
42258s,@GCC@,$GCC,;t t
a848cd7e
SC
42259s,@DLLTOOL@,$DLLTOOL,;t t
42260s,@AS@,$AS,;t t
42261s,@LD@,$LD,;t t
42262s,@MAKEINFO@,$MAKEINFO,;t t
42263s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t
42264s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
42265s,@LIBOBJS@,$LIBOBJS,;t t
42266s,@LTLIBOBJS@,$LTLIBOBJS,;t t
42267CEOF
42268
42269_ACEOF
42270
42271 cat >>$CONFIG_STATUS <<\_ACEOF
42272 # Split the substitutions into bite-sized pieces for seds with
42273 # small command number limits, like on Digital OSF/1 and HP-UX.
42274 ac_max_sed_lines=48
42275 ac_sed_frag=1 # Number of current file.
42276 ac_beg=1 # First line for current file.
42277 ac_end=$ac_max_sed_lines # Line after last line for current file.
42278 ac_more_lines=:
42279 ac_sed_cmds=
42280 while $ac_more_lines; do
42281 if test $ac_beg -gt 1; then
42282 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
42283 else
42284 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
42285 fi
42286 if test ! -s $tmp/subs.frag; then
42287 ac_more_lines=false
42288 else
42289 # The purpose of the label and of the branching condition is to
42290 # speed up the sed processing (if there are no `@' at all, there
42291 # is no need to browse any of the substitutions).
42292 # These are the two extra sed commands mentioned above.
42293 (echo ':t
42294 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
42295 if test -z "$ac_sed_cmds"; then
ac1cb8d3 42296 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 42297 else
ac1cb8d3 42298 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
42299 fi
42300 ac_sed_frag=`expr $ac_sed_frag + 1`
42301 ac_beg=$ac_end
42302 ac_end=`expr $ac_end + $ac_max_sed_lines`
42303 fi
42304 done
42305 if test -z "$ac_sed_cmds"; then
42306 ac_sed_cmds=cat
42307 fi
42308fi # test -n "$CONFIG_FILES"
42309
42310_ACEOF
42311cat >>$CONFIG_STATUS <<\_ACEOF
42312for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
42313 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42314 case $ac_file in
42315 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
42316 cat >$tmp/stdin
42317 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42318 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 42319 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 42320 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
42321 * ) ac_file_in=$ac_file.in ;;
42322 esac
42323
42324 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
42325 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42326$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42327 X"$ac_file" : 'X\(//\)[^/]' \| \
42328 X"$ac_file" : 'X\(//\)$' \| \
42329 X"$ac_file" : 'X\(/\)' \| \
42330 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42331echo X"$ac_file" |
42332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42333 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42334 /^X\(\/\/\)$/{ s//\1/; q; }
42335 /^X\(\/\).*/{ s//\1/; q; }
42336 s/.*/./; q'`
42337 { if $as_mkdir_p; then
42338 mkdir -p "$ac_dir"
42339 else
42340 as_dir="$ac_dir"
42341 as_dirs=
42342 while test ! -d "$as_dir"; do
42343 as_dirs="$as_dir $as_dirs"
42344 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42345$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42346 X"$as_dir" : 'X\(//\)[^/]' \| \
42347 X"$as_dir" : 'X\(//\)$' \| \
42348 X"$as_dir" : 'X\(/\)' \| \
42349 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42350echo X"$as_dir" |
42351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42352 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42353 /^X\(\/\/\)$/{ s//\1/; q; }
42354 /^X\(\/\).*/{ s//\1/; q; }
42355 s/.*/./; q'`
42356 done
42357 test ! -n "$as_dirs" || mkdir $as_dirs
42358 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42359echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42360 { (exit 1); exit 1; }; }; }
42361
42362 ac_builddir=.
42363
42364if test "$ac_dir" != .; then
42365 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42366 # A "../" for each directory in $ac_dir_suffix.
42367 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42368else
42369 ac_dir_suffix= ac_top_builddir=
42370fi
42371
42372case $srcdir in
42373 .) # No --srcdir option. We are building in place.
42374 ac_srcdir=.
42375 if test -z "$ac_top_builddir"; then
42376 ac_top_srcdir=.
42377 else
42378 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42379 fi ;;
42380 [\\/]* | ?:[\\/]* ) # Absolute path.
42381 ac_srcdir=$srcdir$ac_dir_suffix;
42382 ac_top_srcdir=$srcdir ;;
42383 *) # Relative path.
42384 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42385 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42386esac
ac1cb8d3
VS
42387
42388# Do not use `cd foo && pwd` to compute absolute paths, because
42389# the directories may not exist.
42390case `pwd` in
42391.) ac_abs_builddir="$ac_dir";;
42392*)
42393 case "$ac_dir" in
42394 .) ac_abs_builddir=`pwd`;;
42395 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42396 *) ac_abs_builddir=`pwd`/"$ac_dir";;
42397 esac;;
42398esac
42399case $ac_abs_builddir in
42400.) ac_abs_top_builddir=${ac_top_builddir}.;;
42401*)
42402 case ${ac_top_builddir}. in
42403 .) ac_abs_top_builddir=$ac_abs_builddir;;
42404 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42405 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42406 esac;;
42407esac
42408case $ac_abs_builddir in
42409.) ac_abs_srcdir=$ac_srcdir;;
42410*)
42411 case $ac_srcdir in
42412 .) ac_abs_srcdir=$ac_abs_builddir;;
42413 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42414 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42415 esac;;
42416esac
42417case $ac_abs_builddir in
42418.) ac_abs_top_srcdir=$ac_top_srcdir;;
42419*)
42420 case $ac_top_srcdir in
42421 .) ac_abs_top_srcdir=$ac_abs_builddir;;
42422 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42423 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42424 esac;;
42425esac
a848cd7e
SC
42426
42427
42428 case $INSTALL in
42429 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
42430 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
42431 esac
42432
ea7db9ff
DE
42433 if test x"$ac_file" != x-; then
42434 { echo "$as_me:$LINENO: creating $ac_file" >&5
42435echo "$as_me: creating $ac_file" >&6;}
42436 rm -f "$ac_file"
42437 fi
a848cd7e
SC
42438 # Let's still pretend it is `configure' which instantiates (i.e., don't
42439 # use $as_me), people would be surprised to read:
42440 # /* config.h. Generated by config.status. */
42441 if test x"$ac_file" = x-; then
42442 configure_input=
42443 else
42444 configure_input="$ac_file. "
42445 fi
42446 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 42447 sed 's,.*/,,'` by configure."
a848cd7e
SC
42448
42449 # First look for the input files in the build tree, otherwise in the
42450 # src tree.
42451 ac_file_inputs=`IFS=:
42452 for f in $ac_file_in; do
42453 case $f in
42454 -) echo $tmp/stdin ;;
42455 [\\/$]*)
ac1cb8d3
VS
42456 # Absolute (can't be DOS-style, as IFS=:)
42457 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42458echo "$as_me: error: cannot find input file: $f" >&2;}
42459 { (exit 1); exit 1; }; }
ac1cb8d3 42460 echo "$f";;
a848cd7e 42461 *) # Relative
ac1cb8d3
VS
42462 if test -f "$f"; then
42463 # Build tree
42464 echo "$f"
42465 elif test -f "$srcdir/$f"; then
42466 # Source tree
42467 echo "$srcdir/$f"
42468 else
42469 # /dev/null tree
42470 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42471echo "$as_me: error: cannot find input file: $f" >&2;}
42472 { (exit 1); exit 1; }; }
ac1cb8d3 42473 fi;;
a848cd7e
SC
42474 esac
42475 done` || { (exit 1); exit 1; }
42476_ACEOF
42477cat >>$CONFIG_STATUS <<_ACEOF
42478 sed "$ac_vpsub
42479$extrasub
42480_ACEOF
42481cat >>$CONFIG_STATUS <<\_ACEOF
42482:t
42483/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42484s,@configure_input@,$configure_input,;t t
42485s,@srcdir@,$ac_srcdir,;t t
42486s,@abs_srcdir@,$ac_abs_srcdir,;t t
42487s,@top_srcdir@,$ac_top_srcdir,;t t
42488s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
42489s,@builddir@,$ac_builddir,;t t
42490s,@abs_builddir@,$ac_abs_builddir,;t t
42491s,@top_builddir@,$ac_top_builddir,;t t
42492s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
42493s,@INSTALL@,$ac_INSTALL,;t t
42494" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
42495 rm -f $tmp/stdin
42496 if test x"$ac_file" != x-; then
42497 mv $tmp/out $ac_file
42498 else
42499 cat $tmp/out
42500 rm -f $tmp/out
42501 fi
42502
42503done
42504_ACEOF
42505cat >>$CONFIG_STATUS <<\_ACEOF
42506
42507#
42508# CONFIG_HEADER section.
42509#
42510
42511# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
42512# NAME is the cpp macro being defined and VALUE is the value it is being given.
42513#
42514# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
42515ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
42516ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
42517ac_dC=' '
42518ac_dD=',;t'
42519# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 42520ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
42521ac_uB='$,\1#\2define\3'
42522ac_uC=' '
42523ac_uD=',;t'
42524
42525for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
42526 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42527 case $ac_file in
42528 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
42529 cat >$tmp/stdin
42530 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42531 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 42532 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 42533 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
42534 * ) ac_file_in=$ac_file.in ;;
42535 esac
42536
42537 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
42538echo "$as_me: creating $ac_file" >&6;}
42539
42540 # First look for the input files in the build tree, otherwise in the
42541 # src tree.
42542 ac_file_inputs=`IFS=:
42543 for f in $ac_file_in; do
42544 case $f in
42545 -) echo $tmp/stdin ;;
42546 [\\/$]*)
ac1cb8d3
VS
42547 # Absolute (can't be DOS-style, as IFS=:)
42548 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42549echo "$as_me: error: cannot find input file: $f" >&2;}
42550 { (exit 1); exit 1; }; }
ac1cb8d3
VS
42551 # Do quote $f, to prevent DOS paths from being IFS'd.
42552 echo "$f";;
a848cd7e 42553 *) # Relative
ac1cb8d3
VS
42554 if test -f "$f"; then
42555 # Build tree
42556 echo "$f"
42557 elif test -f "$srcdir/$f"; then
42558 # Source tree
42559 echo "$srcdir/$f"
42560 else
42561 # /dev/null tree
42562 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42563echo "$as_me: error: cannot find input file: $f" >&2;}
42564 { (exit 1); exit 1; }; }
ac1cb8d3 42565 fi;;
a848cd7e
SC
42566 esac
42567 done` || { (exit 1); exit 1; }
42568 # Remove the trailing spaces.
ac1cb8d3 42569 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
42570
42571_ACEOF
42572
42573# Transform confdefs.h into two sed scripts, `conftest.defines' and
42574# `conftest.undefs', that substitutes the proper values into
42575# config.h.in to produce config.h. The first handles `#define'
42576# templates, and the second `#undef' templates.
42577# And first: Protect against being on the right side of a sed subst in
42578# config.status. Protect against being in an unquoted here document
42579# in config.status.
42580rm -f conftest.defines conftest.undefs
42581# Using a here document instead of a string reduces the quoting nightmare.
42582# Putting comments in sed scripts is not portable.
42583#
42584# `end' is used to avoid that the second main sed command (meant for
42585# 0-ary CPP macros) applies to n-ary macro definitions.
42586# See the Autoconf documentation for `clear'.
42587cat >confdef2sed.sed <<\_ACEOF
42588s/[\\&,]/\\&/g
42589s,[\\$`],\\&,g
42590t clear
42591: clear
ac1cb8d3 42592s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 42593t end
ac1cb8d3 42594s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
42595: end
42596_ACEOF
42597# If some macros were called several times there might be several times
42598# the same #defines, which is useless. Nevertheless, we may not want to
42599# sort them, since we want the *last* AC-DEFINE to be honored.
42600uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
42601sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
42602rm -f confdef2sed.sed
42603
42604# This sed command replaces #undef with comments. This is necessary, for
42605# example, in the case of _POSIX_SOURCE, which is predefined and required
42606# on some systems where configure will not decide to define it.
42607cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 42608s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
42609_ACEOF
42610
42611# Break up conftest.defines because some shells have a limit on the size
42612# of here documents, and old seds have small limits too (100 cmds).
42613echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 42614echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
42615echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
42616echo ' :' >>$CONFIG_STATUS
42617rm -f conftest.tail
42618while grep . conftest.defines >/dev/null
42619do
42620 # Write a limited-size here document to $tmp/defines.sed.
42621 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
42622 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 42623 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
42624 # Work around the forget-to-reset-the-flag bug.
42625 echo 't clr' >>$CONFIG_STATUS
42626 echo ': clr' >>$CONFIG_STATUS
42627 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
42628 echo 'CEOF
42629 sed -f $tmp/defines.sed $tmp/in >$tmp/out
42630 rm -f $tmp/in
42631 mv $tmp/out $tmp/in
42632' >>$CONFIG_STATUS
42633 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
42634 rm -f conftest.defines
42635 mv conftest.tail conftest.defines
42636done
42637rm -f conftest.defines
42638echo ' fi # grep' >>$CONFIG_STATUS
42639echo >>$CONFIG_STATUS
42640
42641# Break up conftest.undefs because some shells have a limit on the size
42642# of here documents, and old seds have small limits too (100 cmds).
42643echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
42644rm -f conftest.tail
42645while grep . conftest.undefs >/dev/null
42646do
42647 # Write a limited-size here document to $tmp/undefs.sed.
42648 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
42649 # Speed up: don't consider the non `#undef'
ac1cb8d3 42650 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
42651 # Work around the forget-to-reset-the-flag bug.
42652 echo 't clr' >>$CONFIG_STATUS
42653 echo ': clr' >>$CONFIG_STATUS
42654 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
42655 echo 'CEOF
42656 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
42657 rm -f $tmp/in
42658 mv $tmp/out $tmp/in
42659' >>$CONFIG_STATUS
42660 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
42661 rm -f conftest.undefs
42662 mv conftest.tail conftest.undefs
42663done
42664rm -f conftest.undefs
42665
42666cat >>$CONFIG_STATUS <<\_ACEOF
42667 # Let's still pretend it is `configure' which instantiates (i.e., don't
42668 # use $as_me), people would be surprised to read:
42669 # /* config.h. Generated by config.status. */
42670 if test x"$ac_file" = x-; then
42671 echo "/* Generated by configure. */" >$tmp/config.h
42672 else
42673 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
42674 fi
42675 cat $tmp/in >>$tmp/config.h
42676 rm -f $tmp/in
42677 if test x"$ac_file" != x-; then
42678 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
42679 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
42680echo "$as_me: $ac_file is unchanged" >&6;}
42681 else
42682 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42683$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42684 X"$ac_file" : 'X\(//\)[^/]' \| \
42685 X"$ac_file" : 'X\(//\)$' \| \
42686 X"$ac_file" : 'X\(/\)' \| \
42687 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42688echo X"$ac_file" |
42689 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42690 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42691 /^X\(\/\/\)$/{ s//\1/; q; }
42692 /^X\(\/\).*/{ s//\1/; q; }
42693 s/.*/./; q'`
42694 { if $as_mkdir_p; then
42695 mkdir -p "$ac_dir"
42696 else
42697 as_dir="$ac_dir"
42698 as_dirs=
42699 while test ! -d "$as_dir"; do
42700 as_dirs="$as_dir $as_dirs"
42701 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42702$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42703 X"$as_dir" : 'X\(//\)[^/]' \| \
42704 X"$as_dir" : 'X\(//\)$' \| \
42705 X"$as_dir" : 'X\(/\)' \| \
42706 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42707echo X"$as_dir" |
42708 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42709 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42710 /^X\(\/\/\)$/{ s//\1/; q; }
42711 /^X\(\/\).*/{ s//\1/; q; }
42712 s/.*/./; q'`
42713 done
42714 test ! -n "$as_dirs" || mkdir $as_dirs
42715 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42716echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42717 { (exit 1); exit 1; }; }; }
42718
42719 rm -f $ac_file
42720 mv $tmp/config.h $ac_file
42721 fi
42722 else
42723 cat $tmp/config.h
42724 rm -f $tmp/config.h
42725 fi
42726done
42727_ACEOF
42728cat >>$CONFIG_STATUS <<\_ACEOF
42729
42730#
42731# CONFIG_COMMANDS section.
42732#
42733for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
42734 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
42735 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
42736 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
42737$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42738 X"$ac_dest" : 'X\(//\)[^/]' \| \
42739 X"$ac_dest" : 'X\(//\)$' \| \
42740 X"$ac_dest" : 'X\(/\)' \| \
42741 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42742echo X"$ac_dest" |
42743 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42744 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42745 /^X\(\/\/\)$/{ s//\1/; q; }
42746 /^X\(\/\).*/{ s//\1/; q; }
42747 s/.*/./; q'`
ac1cb8d3
VS
42748 { if $as_mkdir_p; then
42749 mkdir -p "$ac_dir"
42750 else
42751 as_dir="$ac_dir"
42752 as_dirs=
42753 while test ! -d "$as_dir"; do
42754 as_dirs="$as_dir $as_dirs"
42755 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42756$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42757 X"$as_dir" : 'X\(//\)[^/]' \| \
42758 X"$as_dir" : 'X\(//\)$' \| \
42759 X"$as_dir" : 'X\(/\)' \| \
42760 . : '\(.\)' 2>/dev/null ||
42761echo X"$as_dir" |
42762 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42763 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42764 /^X\(\/\/\)$/{ s//\1/; q; }
42765 /^X\(\/\).*/{ s//\1/; q; }
42766 s/.*/./; q'`
42767 done
42768 test ! -n "$as_dirs" || mkdir $as_dirs
42769 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42770echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42771 { (exit 1); exit 1; }; }; }
42772
a848cd7e
SC
42773 ac_builddir=.
42774
42775if test "$ac_dir" != .; then
42776 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42777 # A "../" for each directory in $ac_dir_suffix.
42778 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42779else
42780 ac_dir_suffix= ac_top_builddir=
42781fi
42782
42783case $srcdir in
42784 .) # No --srcdir option. We are building in place.
42785 ac_srcdir=.
42786 if test -z "$ac_top_builddir"; then
42787 ac_top_srcdir=.
42788 else
42789 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42790 fi ;;
42791 [\\/]* | ?:[\\/]* ) # Absolute path.
42792 ac_srcdir=$srcdir$ac_dir_suffix;
42793 ac_top_srcdir=$srcdir ;;
42794 *) # Relative path.
42795 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42796 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42797esac
ac1cb8d3
VS
42798
42799# Do not use `cd foo && pwd` to compute absolute paths, because
42800# the directories may not exist.
42801case `pwd` in
42802.) ac_abs_builddir="$ac_dir";;
42803*)
42804 case "$ac_dir" in
42805 .) ac_abs_builddir=`pwd`;;
42806 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42807 *) ac_abs_builddir=`pwd`/"$ac_dir";;
42808 esac;;
42809esac
42810case $ac_abs_builddir in
42811.) ac_abs_top_builddir=${ac_top_builddir}.;;
42812*)
42813 case ${ac_top_builddir}. in
42814 .) ac_abs_top_builddir=$ac_abs_builddir;;
42815 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42816 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42817 esac;;
42818esac
42819case $ac_abs_builddir in
42820.) ac_abs_srcdir=$ac_srcdir;;
42821*)
42822 case $ac_srcdir in
42823 .) ac_abs_srcdir=$ac_abs_builddir;;
42824 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42825 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42826 esac;;
42827esac
42828case $ac_abs_builddir in
42829.) ac_abs_top_srcdir=$ac_top_srcdir;;
42830*)
42831 case $ac_top_srcdir in
42832 .) ac_abs_top_srcdir=$ac_abs_builddir;;
42833 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42834 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42835 esac;;
42836esac
a848cd7e
SC
42837
42838
42839 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
42840echo "$as_me: executing $ac_dest commands" >&6;}
42841 case $ac_dest in
42842 default )
a848cd7e
SC
42843 if test ! -d lib; then
42844 mkdir lib
42845 fi
42846 if test ! -d lib/wx; then
42847 mkdir lib/wx
42848 fi
8708fa76
VS
42849 if test ! -d lib/wx/config; then
42850 mkdir lib/wx/config
42851 fi
a848cd7e
SC
42852 if test ! -d lib/wx/include; then
42853 mkdir lib/wx/include
42854 fi
42855 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
42856 mkdir lib/wx/include/${TOOLCHAIN_NAME}
42857 fi
42858 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
42859 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
42860 fi
42861 if test -f setup.h; then
42862 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
42863 fi
8708fa76
VS
42864
42865 if test -f wx-config; then
42866 chmod +x wx-config
48112931 42867 mv -f wx-config lib/wx/config/${WXCONFIG_DATA_FILE}
a87bf378
VS
42868 ( cd lib/wx/config ;
42869 rm -f ${TOOLCHAIN_NAME}
42870 ${LN_S} ${WXCONFIG_DATA_FILE} ${TOOLCHAIN_NAME} )
8708fa76 42871 fi
8708fa76
VS
42872 if test -f wx-config-wrapper; then
42873 chmod +x wx-config-wrapper
42874 mv -f wx-config-wrapper wx-config
b3de4970
VS
42875 rm -f wx${TOOLCHAIN_NAME}-config
42876 ${LN_S} wx-config wx${TOOLCHAIN_NAME}-config
8708fa76 42877 fi
a848cd7e
SC
42878 ;;
42879 esac
42880done
42881_ACEOF
42882
42883cat >>$CONFIG_STATUS <<\_ACEOF
42884
42885{ (exit 0); exit 0; }
42886_ACEOF
42887chmod +x $CONFIG_STATUS
42888ac_clean_files=$ac_clean_files_save
42889
42890
42891# configure is writing to config.log, and then calls config.status.
42892# config.status does its own redirection, appending to config.log.
42893# Unfortunately, on DOS this fails, as config.log is still kept open
42894# by configure, so config.status won't be able to write to it; its
42895# output is simply discarded. So we exec the FD to /dev/null,
42896# effectively closing config.log, so it can be properly (re)opened and
42897# appended to by config.status. When coming back to configure, we
42898# need to make the FD available again.
42899if test "$no_create" != yes; then
42900 ac_cs_success=:
42901 ac_config_status_args=
42902 test "$silent" = yes &&
42903 ac_config_status_args="$ac_config_status_args --quiet"
42904 exec 5>/dev/null
42905 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
42906 exec 5>>config.log
42907 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
42908 # would make configure fail if this is the last instruction.
42909 $ac_cs_success || { (exit 1); exit 1; }
42910fi
42911
42912#
42913# CONFIG_SUBDIRS section.
42914#
42915if test "$no_recursion" != yes; then
42916
42917 # Remove --cache-file and --srcdir arguments so they do not pile up.
42918 ac_sub_configure_args=
42919 ac_prev=
42920 for ac_arg in $ac_configure_args; do
42921 if test -n "$ac_prev"; then
42922 ac_prev=
42923 continue
42924 fi
42925 case $ac_arg in
42926 -cache-file | --cache-file | --cache-fil | --cache-fi \
42927 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
42928 ac_prev=cache_file ;;
42929 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
42930 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
42931 | --c=*)
42932 ;;
42933 --config-cache | -C)
42934 ;;
42935 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
42936 ac_prev=srcdir ;;
42937 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
42938 ;;
42939 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
42940 ac_prev=prefix ;;
42941 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
42942 ;;
42943 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
42944 esac
42945 done
42946
42947 # Always prepend --prefix to ensure using the same prefix
42948 # in subdir configurations.
42949 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
42950
42951 ac_popdir=`pwd`
42952 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
42953
42954 # Do not complain, so a configure script can configure whichever
42955 # parts of a large source tree are present.
42956 test -d $srcdir/$ac_dir || continue
42957
42958 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
42959echo "$as_me: configuring in $ac_dir" >&6;}
42960 { if $as_mkdir_p; then
42961 mkdir -p "$ac_dir"
42962 else
42963 as_dir="$ac_dir"
42964 as_dirs=
42965 while test ! -d "$as_dir"; do
42966 as_dirs="$as_dir $as_dirs"
42967 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42968$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42969 X"$as_dir" : 'X\(//\)[^/]' \| \
42970 X"$as_dir" : 'X\(//\)$' \| \
42971 X"$as_dir" : 'X\(/\)' \| \
42972 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42973echo X"$as_dir" |
42974 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42975 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42976 /^X\(\/\/\)$/{ s//\1/; q; }
42977 /^X\(\/\).*/{ s//\1/; q; }
42978 s/.*/./; q'`
42979 done
42980 test ! -n "$as_dirs" || mkdir $as_dirs
42981 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42982echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42983 { (exit 1); exit 1; }; }; }
42984
42985 ac_builddir=.
42986
42987if test "$ac_dir" != .; then
42988 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42989 # A "../" for each directory in $ac_dir_suffix.
42990 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42991else
42992 ac_dir_suffix= ac_top_builddir=
42993fi
42994
42995case $srcdir in
42996 .) # No --srcdir option. We are building in place.
42997 ac_srcdir=.
42998 if test -z "$ac_top_builddir"; then
42999 ac_top_srcdir=.
43000 else
43001 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43002 fi ;;
43003 [\\/]* | ?:[\\/]* ) # Absolute path.
43004 ac_srcdir=$srcdir$ac_dir_suffix;
43005 ac_top_srcdir=$srcdir ;;
43006 *) # Relative path.
43007 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43008 ac_top_srcdir=$ac_top_builddir$srcdir ;;
43009esac
ac1cb8d3
VS
43010
43011# Do not use `cd foo && pwd` to compute absolute paths, because
43012# the directories may not exist.
43013case `pwd` in
43014.) ac_abs_builddir="$ac_dir";;
43015*)
43016 case "$ac_dir" in
43017 .) ac_abs_builddir=`pwd`;;
43018 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43019 *) ac_abs_builddir=`pwd`/"$ac_dir";;
43020 esac;;
43021esac
43022case $ac_abs_builddir in
43023.) ac_abs_top_builddir=${ac_top_builddir}.;;
43024*)
43025 case ${ac_top_builddir}. in
43026 .) ac_abs_top_builddir=$ac_abs_builddir;;
43027 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43028 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43029 esac;;
43030esac
43031case $ac_abs_builddir in
43032.) ac_abs_srcdir=$ac_srcdir;;
43033*)
43034 case $ac_srcdir in
43035 .) ac_abs_srcdir=$ac_abs_builddir;;
43036 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43037 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43038 esac;;
43039esac
43040case $ac_abs_builddir in
43041.) ac_abs_top_srcdir=$ac_top_srcdir;;
43042*)
43043 case $ac_top_srcdir in
43044 .) ac_abs_top_srcdir=$ac_abs_builddir;;
43045 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43046 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43047 esac;;
43048esac
a848cd7e
SC
43049
43050
43051 cd $ac_dir
43052
43053 # Check for guested configure; otherwise get Cygnus style configure.
43054 if test -f $ac_srcdir/configure.gnu; then
43055 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
43056 elif test -f $ac_srcdir/configure; then
43057 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
43058 elif test -f $ac_srcdir/configure.in; then
43059 ac_sub_configure=$ac_configure
43060 else
43061 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
43062echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
43063 ac_sub_configure=
43064 fi
43065
43066 # The recursion is here.
43067 if test -n "$ac_sub_configure"; then
43068 # Make the cache file name correct relative to the subdirectory.
43069 case $cache_file in
43070 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
43071 *) # Relative path.
ac1cb8d3 43072 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
43073 esac
43074
43075 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
43076echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
43077 # The eval makes quoting arguments work.
43078 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
43079 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
43080 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
43081echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
43082 { (exit 1); exit 1; }; }
43083 fi
43084
ea7db9ff 43085 cd $ac_popdir
a848cd7e
SC
43086 done
43087fi
43088
43089
43090echo
77ffb593 43091echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 43092echo ""
77ffb593
JS
43093echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_LOWERCASE:-base only}"
43094echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 43095
77ffb593
JS
43096echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
43097echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
43098echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 43099
77ffb593
JS
43100echo " What level of wxWidgets compatibility should be enabled?"
43101echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
43102echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 43103
77ffb593 43104echo " Which libraries should wxWidgets use?"
a848cd7e
SC
43105echo " jpeg ${wxUSE_LIBJPEG-none}"
43106echo " png ${wxUSE_LIBPNG-none}"
43107echo " regex ${wxUSE_REGEX}"
43108echo " tiff ${wxUSE_LIBTIFF-none}"
43109if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
43110echo " xpm ${wxUSE_LIBXPM-none}"
43111fi
43112echo " zlib ${wxUSE_ZLIB}"
43113echo " odbc ${wxUSE_ODBC}"
43114echo " expat ${wxUSE_EXPAT}"
43115echo " libmspack ${wxUSE_LIBMSPACK}"
43116echo " sdl ${wxUSE_LIBSDL}"
43117
43118echo ""
43119