]> git.saurik.com Git - wxWidgets.git/blame - configure
updated version to match latest wxPython release
[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"
a0f9686d 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_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_PLUGINS_0 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN COND_TOOLKIT_MAC_WXUNIV_0 COND_TOOLKIT_MSW_WXUNIV_0 COND_TOOLKIT_PM_WXUNIV_0 COND_USE_ODBC_1 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
a848cd7e
SC
11996
11997case "${host}" in
11998
11999 powerpc-*-darwin* )
12000 INSTALL_PROGRAM="cp -fp"
12001 INSTALL_DATA="cp -fp"
12002 ;;
12003 *)
12004 ;;
12005esac
12006
12007# Extract the first word of "strip", so it can be a program name with args.
12008set dummy strip; ac_word=$2
12009echo "$as_me:$LINENO: checking for $ac_word" >&5
12010echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12011if test "${ac_cv_prog_STRIP+set}" = set; then
12012 echo $ECHO_N "(cached) $ECHO_C" >&6
12013else
12014 if test -n "$STRIP"; then
12015 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12016else
12017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12018for as_dir in $PATH
12019do
12020 IFS=$as_save_IFS
12021 test -z "$as_dir" && as_dir=.
12022 for ac_exec_ext in '' $ac_executable_extensions; do
12023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12024 ac_cv_prog_STRIP="strip"
12025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12026 break 2
12027 fi
12028done
12029done
12030
12031 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
12032fi
12033fi
12034STRIP=$ac_cv_prog_STRIP
12035if test -n "$STRIP"; then
12036 echo "$as_me:$LINENO: result: $STRIP" >&5
12037echo "${ECHO_T}$STRIP" >&6
12038else
12039 echo "$as_me:$LINENO: result: no" >&5
12040echo "${ECHO_T}no" >&6
12041fi
12042
12043
12044echo "$as_me:$LINENO: checking if make is GNU make" >&5
12045echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
12046if test "${wx_cv_prog_makeisgnu+set}" = set; then
12047 echo $ECHO_N "(cached) $ECHO_C" >&6
12048else
12049
12050 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
12051 egrep -s GNU > /dev/null); then
12052 wx_cv_prog_makeisgnu="yes"
12053 else
12054 wx_cv_prog_makeisgnu="no"
12055 fi
12056
12057fi
12058echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
12059echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
12060
12061if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
12062 IF_GNU_MAKE=""
12063else
12064 IF_GNU_MAKE="#"
12065fi
12066
12067
12068
12069if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
12070echo "$as_me:$LINENO: checking if make supports VPATH" >&5
12071echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
12072if test "${wx_cv_prog_makevpath+set}" = set; then
12073 echo $ECHO_N "(cached) $ECHO_C" >&6
12074else
12075
12076cat - << EOF > confMake
12077check : file
12078 cp \$? \$@
12079 cp \$? final_file
12080EOF
12081
12082if test ! -d sub ; then
12083 mkdir sub
12084fi
12085echo dummy > sub/file
12086${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
12087RESULT=$?
12088rm -f sub/file check final_file confMake
12089rmdir sub
12090if test "$RESULT" = 0; then
12091 wx_cv_prog_makevpath="yes"
12092else
12093 wx_cv_prog_makevpath="no"
12094fi
12095
12096fi
12097echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
12098echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
12099
12100if test "x$wx_cv_prog_makevpath" != "xyes"; then
12101{ { echo "$as_me:$LINENO: error:
12102You need a make-utility that is able to use the variable
12103VPATH correctly.
12104If your version of make does not support VPATH correctly,
12105please install GNU-make (possibly as gmake), and start
12106configure with the following command:
12107export MAKE=gmake; ./configure for sh-type shells
12108setenv MAKE gmake; ./configure for csh-type shells
12109Also please do remember to use gmake in this case every time
12110you are trying to compile.
12111" >&5
12112echo "$as_me: error:
12113You need a make-utility that is able to use the variable
12114VPATH correctly.
12115If your version of make does not support VPATH correctly,
12116please install GNU-make (possibly as gmake), and start
12117configure with the following command:
12118export MAKE=gmake; ./configure for sh-type shells
12119setenv MAKE gmake; ./configure for csh-type shells
12120Also please do remember to use gmake in this case every time
12121you are trying to compile.
12122" >&2;}
12123 { (exit 1); exit 1; }; }
12124fi fi
12125echo "$as_me:$LINENO: checking whether ln -s works" >&5
12126echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
12127LN_S=$as_ln_s
12128if test "$LN_S" = "ln -s"; then
12129 echo "$as_me:$LINENO: result: yes" >&5
12130echo "${ECHO_T}yes" >&6
12131else
12132 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
12133echo "${ECHO_T}no, using $LN_S" >&6
12134fi
12135
12136
12137
12138case "${host}" in
12139 *-pc-os2_emx | *-pc-os2-emx )
12140 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
12141 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
12142echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
12143if test "${ac_cv_lib_cExt_drand48+set}" = set; then
12144 echo $ECHO_N "(cached) $ECHO_C" >&6
12145else
12146 ac_check_lib_save_LIBS=$LIBS
12147LIBS="-lcExt $LIBS"
12148cat >conftest.$ac_ext <<_ACEOF
12149/* confdefs.h. */
12150_ACEOF
12151cat confdefs.h >>conftest.$ac_ext
12152cat >>conftest.$ac_ext <<_ACEOF
12153/* end confdefs.h. */
12154
12155/* Override any gcc2 internal prototype to avoid an error. */
12156#ifdef __cplusplus
12157extern "C"
12158#endif
12159/* We use char because int might match the return type of a gcc2
12160 builtin and then its argument prototype would still apply. */
12161char drand48 ();
12162int
12163main ()
12164{
12165drand48 ();
12166 ;
12167 return 0;
12168}
12169_ACEOF
12170rm -f conftest.$ac_objext conftest$ac_exeext
12171if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12172 (eval $ac_link) 2>conftest.er1
a848cd7e 12173 ac_status=$?
ac1cb8d3
VS
12174 grep -v '^ *+' conftest.er1 >conftest.err
12175 rm -f conftest.er1
12176 cat conftest.err >&5
a848cd7e
SC
12177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178 (exit $ac_status); } &&
ea7db9ff
DE
12179 { ac_try='test -z "$ac_c_werror_flag"
12180 || test ! -s conftest.err'
ac1cb8d3
VS
12181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12182 (eval $ac_try) 2>&5
12183 ac_status=$?
12184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185 (exit $ac_status); }; } &&
12186 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12188 (eval $ac_try) 2>&5
12189 ac_status=$?
12190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191 (exit $ac_status); }; }; then
12192 ac_cv_lib_cExt_drand48=yes
12193else
12194 echo "$as_me: failed program was:" >&5
12195sed 's/^/| /' conftest.$ac_ext >&5
12196
12197ac_cv_lib_cExt_drand48=no
12198fi
ac1cb8d3
VS
12199rm -f conftest.err conftest.$ac_objext \
12200 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12201LIBS=$ac_check_lib_save_LIBS
12202fi
12203echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
12204echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
12205if test $ac_cv_lib_cExt_drand48 = yes; then
12206 LIBS="$LIBS -lcExt"
12207fi
12208
12209 else
12210 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
12211 fi
12212 echo "$as_me:$LINENO: checking for gcc version" >&5
12213echo $ECHO_N "checking for gcc version... $ECHO_C" >&6
12214if test "${wx_cv_gccversion+set}" = set; then
12215 echo $ECHO_N "(cached) $ECHO_C" >&6
12216else
12217
12218 cat >conftest.$ac_ext <<_ACEOF
12219/* confdefs.h. */
12220_ACEOF
12221cat confdefs.h >>conftest.$ac_ext
12222cat >>conftest.$ac_ext <<_ACEOF
12223/* end confdefs.h. */
12224
12225int
12226main ()
12227{
12228
12229 #if (__GNUC__ < 3)
12230 #error old gcc
12231 #endif
12232
12233 ;
12234 return 0;
12235}
12236_ACEOF
12237rm -f conftest.$ac_objext
12238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12239 (eval $ac_compile) 2>conftest.er1
a848cd7e 12240 ac_status=$?
ac1cb8d3
VS
12241 grep -v '^ *+' conftest.er1 >conftest.err
12242 rm -f conftest.er1
12243 cat conftest.err >&5
a848cd7e
SC
12244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12245 (exit $ac_status); } &&
ea7db9ff
DE
12246 { ac_try='test -z "$ac_c_werror_flag"
12247 || test ! -s conftest.err'
ac1cb8d3
VS
12248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12249 (eval $ac_try) 2>&5
12250 ac_status=$?
12251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12252 (exit $ac_status); }; } &&
12253 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12255 (eval $ac_try) 2>&5
12256 ac_status=$?
12257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258 (exit $ac_status); }; }; then
12259
12260 cat >conftest.$ac_ext <<_ACEOF
12261/* confdefs.h. */
12262_ACEOF
12263cat confdefs.h >>conftest.$ac_ext
12264cat >>conftest.$ac_ext <<_ACEOF
12265/* end confdefs.h. */
12266
12267int
12268main ()
12269{
12270
12271 #if (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
12272 #error intermediate gcc
12273 #endif
12274
12275 ;
12276 return 0;
12277}
12278_ACEOF
12279rm -f conftest.$ac_objext
12280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12281 (eval $ac_compile) 2>conftest.er1
a848cd7e 12282 ac_status=$?
ac1cb8d3
VS
12283 grep -v '^ *+' conftest.er1 >conftest.err
12284 rm -f conftest.er1
12285 cat conftest.err >&5
a848cd7e
SC
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); } &&
ea7db9ff
DE
12288 { ac_try='test -z "$ac_c_werror_flag"
12289 || test ! -s conftest.err'
ac1cb8d3
VS
12290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12291 (eval $ac_try) 2>&5
12292 ac_status=$?
12293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294 (exit $ac_status); }; } &&
12295 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12297 (eval $ac_try) 2>&5
12298 ac_status=$?
12299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300 (exit $ac_status); }; }; then
12301
12302 wx_cv_gccversion=Innotek
12303
12304else
12305 echo "$as_me: failed program was:" >&5
12306sed 's/^/| /' conftest.$ac_ext >&5
12307
12308
12309 wx_cv_gccversion=3
12310
12311
12312fi
ac1cb8d3 12313rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12314
12315else
12316 echo "$as_me: failed program was:" >&5
12317sed 's/^/| /' conftest.$ac_ext >&5
12318
12319
12320 wx_cv_gccversion=2
12321
12322
12323fi
ac1cb8d3 12324rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12325
12326fi
12327echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
12328echo "${ECHO_T}$wx_cv_gccversion" >&6
12329 if test "$wx_cv_gccversion" = "2"; then
12330 LIBS="$LIBS -lstdcpp"
12331 LDFLAGS="$LDFLAGS -Zsysv-signals"
12332 else
12333 if test "$wx_cv_gccversion" = "3"; then
12334 LIBS="$LIBS -lstdcxx"
12335 LDFLAGS="$LDFLAGS -Zsysv-signals"
12336 else
12337 LIBS="$LIBS -lstdc++"
12338 fi
12339 fi
12340 if test "$wxUSE_OMF" = "yes"; then
de59c161 12341 LDFLAGS="$LDFLAGS -Zomf -Zlinker /PMTYPE:PM -Zlinker /EXEPACK"
a848cd7e
SC
12342 fi
12343 ;;
12344 *)
12345
12346
12347
12348 ac_ext=cc
12349ac_cpp='$CXXCPP $CPPFLAGS'
12350ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12351ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12352ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12353
12354
12355
12356echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
12357echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
12358if test "${ac_cv_string_strcasecmp+set}" = set; then
12359 echo $ECHO_N "(cached) $ECHO_C" >&6
12360else
12361
12362 cat >conftest.$ac_ext <<_ACEOF
12363/* confdefs.h. */
12364_ACEOF
12365cat confdefs.h >>conftest.$ac_ext
12366cat >>conftest.$ac_ext <<_ACEOF
12367/* end confdefs.h. */
12368
12369 #include <string.h>
12370
12371int
12372main ()
12373{
12374
12375 strcasecmp("foo", "bar");
12376
12377 ;
12378 return 0;
12379}
12380_ACEOF
12381rm -f conftest.$ac_objext conftest$ac_exeext
12382if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12383 (eval $ac_link) 2>conftest.er1
a848cd7e 12384 ac_status=$?
ac1cb8d3
VS
12385 grep -v '^ *+' conftest.er1 >conftest.err
12386 rm -f conftest.er1
12387 cat conftest.err >&5
a848cd7e
SC
12388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389 (exit $ac_status); } &&
ea7db9ff
DE
12390 { ac_try='test -z "$ac_cxx_werror_flag"
12391 || test ! -s conftest.err'
ac1cb8d3
VS
12392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12393 (eval $ac_try) 2>&5
12394 ac_status=$?
12395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396 (exit $ac_status); }; } &&
12397 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12399 (eval $ac_try) 2>&5
12400 ac_status=$?
12401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402 (exit $ac_status); }; }; then
12403 ac_cv_string_strcasecmp=yes
12404else
12405 echo "$as_me: failed program was:" >&5
12406sed 's/^/| /' conftest.$ac_ext >&5
12407
12408ac_cv_string_strcasecmp=no
12409
12410fi
ac1cb8d3
VS
12411rm -f conftest.err conftest.$ac_objext \
12412 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12413
12414fi
12415echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
12416echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
12417
12418 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12419 cat >>confdefs.h <<\_ACEOF
12420#define HAVE_STRCASECMP_IN_STRING_H 1
12421_ACEOF
12422
12423 else
12424 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
12425echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
12426if test "${ac_cv_strings_strcasecmp+set}" = set; then
12427 echo $ECHO_N "(cached) $ECHO_C" >&6
12428else
12429
12430 cat >conftest.$ac_ext <<_ACEOF
12431/* confdefs.h. */
12432_ACEOF
12433cat confdefs.h >>conftest.$ac_ext
12434cat >>conftest.$ac_ext <<_ACEOF
12435/* end confdefs.h. */
12436
12437 #include <strings.h>
12438
12439int
12440main ()
12441{
12442
12443 strcasecmp("foo", "bar");
12444
12445 ;
12446 return 0;
12447}
12448_ACEOF
12449rm -f conftest.$ac_objext conftest$ac_exeext
12450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12451 (eval $ac_link) 2>conftest.er1
a848cd7e 12452 ac_status=$?
ac1cb8d3
VS
12453 grep -v '^ *+' conftest.er1 >conftest.err
12454 rm -f conftest.er1
12455 cat conftest.err >&5
a848cd7e
SC
12456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457 (exit $ac_status); } &&
ea7db9ff
DE
12458 { ac_try='test -z "$ac_cxx_werror_flag"
12459 || test ! -s conftest.err'
ac1cb8d3
VS
12460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12461 (eval $ac_try) 2>&5
12462 ac_status=$?
12463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464 (exit $ac_status); }; } &&
12465 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12467 (eval $ac_try) 2>&5
12468 ac_status=$?
12469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470 (exit $ac_status); }; }; then
12471 ac_cv_strings_strcasecmp=yes
12472else
12473 echo "$as_me: failed program was:" >&5
12474sed 's/^/| /' conftest.$ac_ext >&5
12475
12476ac_cv_strings_strcasecmp=no
12477
12478fi
ac1cb8d3
VS
12479rm -f conftest.err conftest.$ac_objext \
12480 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12481
12482fi
12483echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
12484echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
12485
0c3c69fc 12486 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
12487 cat >>confdefs.h <<\_ACEOF
12488#define HAVE_STRCASECMP_IN_STRINGS_H 1
12489_ACEOF
12490
12491 else
12492 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
12493echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
12494 { (exit 1); exit 1; }; }
12495 fi
12496 fi
12497
12498 ac_ext=c
12499ac_cpp='$CPP $CPPFLAGS'
12500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12502ac_compiler_gnu=$ac_cv_c_compiler_gnu
12503
12504 ;;
12505esac
12506
12507
12508echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12509echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12510if test "${ac_cv_header_stdc+set}" = set; then
12511 echo $ECHO_N "(cached) $ECHO_C" >&6
12512else
12513 cat >conftest.$ac_ext <<_ACEOF
12514/* confdefs.h. */
12515_ACEOF
12516cat confdefs.h >>conftest.$ac_ext
12517cat >>conftest.$ac_ext <<_ACEOF
12518/* end confdefs.h. */
12519#include <stdlib.h>
12520#include <stdarg.h>
12521#include <string.h>
12522#include <float.h>
12523
12524int
12525main ()
12526{
12527
12528 ;
12529 return 0;
12530}
12531_ACEOF
12532rm -f conftest.$ac_objext
12533if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12534 (eval $ac_compile) 2>conftest.er1
a848cd7e 12535 ac_status=$?
ac1cb8d3
VS
12536 grep -v '^ *+' conftest.er1 >conftest.err
12537 rm -f conftest.er1
12538 cat conftest.err >&5
a848cd7e
SC
12539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); } &&
ea7db9ff
DE
12541 { ac_try='test -z "$ac_c_werror_flag"
12542 || test ! -s conftest.err'
ac1cb8d3
VS
12543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12544 (eval $ac_try) 2>&5
12545 ac_status=$?
12546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547 (exit $ac_status); }; } &&
12548 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12550 (eval $ac_try) 2>&5
12551 ac_status=$?
12552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553 (exit $ac_status); }; }; then
12554 ac_cv_header_stdc=yes
12555else
12556 echo "$as_me: failed program was:" >&5
12557sed 's/^/| /' conftest.$ac_ext >&5
12558
12559ac_cv_header_stdc=no
12560fi
ac1cb8d3 12561rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12562
12563if test $ac_cv_header_stdc = yes; then
12564 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12565 cat >conftest.$ac_ext <<_ACEOF
12566/* confdefs.h. */
12567_ACEOF
12568cat confdefs.h >>conftest.$ac_ext
12569cat >>conftest.$ac_ext <<_ACEOF
12570/* end confdefs.h. */
12571#include <string.h>
12572
12573_ACEOF
12574if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12575 $EGREP "memchr" >/dev/null 2>&1; then
12576 :
12577else
12578 ac_cv_header_stdc=no
12579fi
12580rm -f conftest*
12581
12582fi
12583
12584if test $ac_cv_header_stdc = yes; then
12585 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12586 cat >conftest.$ac_ext <<_ACEOF
12587/* confdefs.h. */
12588_ACEOF
12589cat confdefs.h >>conftest.$ac_ext
12590cat >>conftest.$ac_ext <<_ACEOF
12591/* end confdefs.h. */
12592#include <stdlib.h>
12593
12594_ACEOF
12595if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12596 $EGREP "free" >/dev/null 2>&1; then
12597 :
12598else
12599 ac_cv_header_stdc=no
12600fi
12601rm -f conftest*
12602
12603fi
12604
12605if test $ac_cv_header_stdc = yes; then
12606 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12607 if test "$cross_compiling" = yes; then
12608 :
12609else
12610 cat >conftest.$ac_ext <<_ACEOF
12611/* confdefs.h. */
12612_ACEOF
12613cat confdefs.h >>conftest.$ac_ext
12614cat >>conftest.$ac_ext <<_ACEOF
12615/* end confdefs.h. */
12616#include <ctype.h>
12617#if ((' ' & 0x0FF) == 0x020)
12618# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12619# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12620#else
12621# define ISLOWER(c) \
ac1cb8d3
VS
12622 (('a' <= (c) && (c) <= 'i') \
12623 || ('j' <= (c) && (c) <= 'r') \
12624 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
12625# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12626#endif
12627
12628#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12629int
12630main ()
12631{
12632 int i;
12633 for (i = 0; i < 256; i++)
12634 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 12635 || toupper (i) != TOUPPER (i))
a848cd7e
SC
12636 exit(2);
12637 exit (0);
12638}
12639_ACEOF
12640rm -f conftest$ac_exeext
12641if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12642 (eval $ac_link) 2>&5
12643 ac_status=$?
12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12647 (eval $ac_try) 2>&5
12648 ac_status=$?
12649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650 (exit $ac_status); }; }; then
12651 :
12652else
12653 echo "$as_me: program exited with status $ac_status" >&5
12654echo "$as_me: failed program was:" >&5
12655sed 's/^/| /' conftest.$ac_ext >&5
12656
12657( exit $ac_status )
12658ac_cv_header_stdc=no
12659fi
ac1cb8d3 12660rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12661fi
12662fi
12663fi
12664echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12665echo "${ECHO_T}$ac_cv_header_stdc" >&6
12666if test $ac_cv_header_stdc = yes; then
12667
12668cat >>confdefs.h <<\_ACEOF
12669#define STDC_HEADERS 1
12670_ACEOF
12671
12672fi
12673
12674# On IRIX 5.3, sys/types and inttypes.h are conflicting.
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 12685 inttypes.h stdint.h unistd.h
a848cd7e
SC
12686do
12687as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12688echo "$as_me:$LINENO: checking for $ac_header" >&5
12689echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12690if eval "test \"\${$as_ac_Header+set}\" = set"; then
12691 echo $ECHO_N "(cached) $ECHO_C" >&6
12692else
12693 cat >conftest.$ac_ext <<_ACEOF
12694/* confdefs.h. */
12695_ACEOF
12696cat confdefs.h >>conftest.$ac_ext
12697cat >>conftest.$ac_ext <<_ACEOF
12698/* end confdefs.h. */
12699$ac_includes_default
12700
12701#include <$ac_header>
12702_ACEOF
12703rm -f conftest.$ac_objext
12704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12705 (eval $ac_compile) 2>conftest.er1
a848cd7e 12706 ac_status=$?
ac1cb8d3
VS
12707 grep -v '^ *+' conftest.er1 >conftest.err
12708 rm -f conftest.er1
12709 cat conftest.err >&5
a848cd7e
SC
12710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711 (exit $ac_status); } &&
ea7db9ff
DE
12712 { ac_try='test -z "$ac_c_werror_flag"
12713 || test ! -s conftest.err'
ac1cb8d3
VS
12714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12715 (eval $ac_try) 2>&5
12716 ac_status=$?
12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 (exit $ac_status); }; } &&
12719 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12721 (eval $ac_try) 2>&5
12722 ac_status=$?
12723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724 (exit $ac_status); }; }; then
12725 eval "$as_ac_Header=yes"
12726else
12727 echo "$as_me: failed program was:" >&5
12728sed 's/^/| /' conftest.$ac_ext >&5
12729
12730eval "$as_ac_Header=no"
12731fi
ac1cb8d3 12732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12733fi
12734echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12735echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12736if test `eval echo '${'$as_ac_Header'}'` = yes; then
12737 cat >>confdefs.h <<_ACEOF
12738#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12739_ACEOF
12740
12741fi
12742
12743done
12744
12745
12746
12747for ac_header in stdlib.h
12748do
12749as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12750if eval "test \"\${$as_ac_Header+set}\" = set"; then
12751 echo "$as_me:$LINENO: checking for $ac_header" >&5
12752echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12753if eval "test \"\${$as_ac_Header+set}\" = set"; then
12754 echo $ECHO_N "(cached) $ECHO_C" >&6
12755fi
12756echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12757echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12758else
12759 # Is the header compilable?
12760echo "$as_me:$LINENO: checking $ac_header usability" >&5
12761echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12762cat >conftest.$ac_ext <<_ACEOF
12763/* confdefs.h. */
12764_ACEOF
12765cat confdefs.h >>conftest.$ac_ext
12766cat >>conftest.$ac_ext <<_ACEOF
12767/* end confdefs.h. */
12768$ac_includes_default
12769#include <$ac_header>
12770_ACEOF
12771rm -f conftest.$ac_objext
12772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12773 (eval $ac_compile) 2>conftest.er1
a848cd7e 12774 ac_status=$?
ac1cb8d3
VS
12775 grep -v '^ *+' conftest.er1 >conftest.err
12776 rm -f conftest.er1
12777 cat conftest.err >&5
a848cd7e
SC
12778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779 (exit $ac_status); } &&
ea7db9ff
DE
12780 { ac_try='test -z "$ac_c_werror_flag"
12781 || test ! -s conftest.err'
ac1cb8d3
VS
12782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12783 (eval $ac_try) 2>&5
12784 ac_status=$?
12785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786 (exit $ac_status); }; } &&
12787 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12789 (eval $ac_try) 2>&5
12790 ac_status=$?
12791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 (exit $ac_status); }; }; then
12793 ac_header_compiler=yes
12794else
12795 echo "$as_me: failed program was:" >&5
12796sed 's/^/| /' conftest.$ac_ext >&5
12797
12798ac_header_compiler=no
12799fi
ac1cb8d3 12800rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12801echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12802echo "${ECHO_T}$ac_header_compiler" >&6
12803
12804# Is the header present?
12805echo "$as_me:$LINENO: checking $ac_header presence" >&5
12806echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12807cat >conftest.$ac_ext <<_ACEOF
12808/* confdefs.h. */
12809_ACEOF
12810cat confdefs.h >>conftest.$ac_ext
12811cat >>conftest.$ac_ext <<_ACEOF
12812/* end confdefs.h. */
12813#include <$ac_header>
12814_ACEOF
12815if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12816 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12817 ac_status=$?
12818 grep -v '^ *+' conftest.er1 >conftest.err
12819 rm -f conftest.er1
12820 cat conftest.err >&5
12821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822 (exit $ac_status); } >/dev/null; then
12823 if test -s conftest.err; then
12824 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12825 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12826 else
12827 ac_cpp_err=
12828 fi
12829else
12830 ac_cpp_err=yes
12831fi
12832if test -z "$ac_cpp_err"; then
12833 ac_header_preproc=yes
12834else
12835 echo "$as_me: failed program was:" >&5
12836sed 's/^/| /' conftest.$ac_ext >&5
12837
12838 ac_header_preproc=no
12839fi
12840rm -f conftest.err conftest.$ac_ext
12841echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12842echo "${ECHO_T}$ac_header_preproc" >&6
12843
12844# So? What about this header?
ac1cb8d3
VS
12845case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12846 yes:no: )
a848cd7e
SC
12847 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12848echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
12849 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12850echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12851 ac_header_preproc=yes
a848cd7e 12852 ;;
ac1cb8d3 12853 no:yes:* )
a848cd7e
SC
12854 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12855echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
12856 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12857echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12858 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12859echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12860 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12861echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
12862 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12863echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
12864 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12865echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
12866 (
12867 cat <<\_ASBOX
ac1cb8d3
VS
12868## ----------------------------------------- ##
12869## Report this to wx-dev@lists.wxwidgets.org ##
12870## ----------------------------------------- ##
a848cd7e
SC
12871_ASBOX
12872 ) |
12873 sed "s/^/$as_me: WARNING: /" >&2
12874 ;;
12875esac
12876echo "$as_me:$LINENO: checking for $ac_header" >&5
12877echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12878if eval "test \"\${$as_ac_Header+set}\" = set"; then
12879 echo $ECHO_N "(cached) $ECHO_C" >&6
12880else
ac1cb8d3 12881 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
12882fi
12883echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12884echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12885
12886fi
12887if test `eval echo '${'$as_ac_Header'}'` = yes; then
12888 cat >>confdefs.h <<_ACEOF
12889#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12890_ACEOF
12891
12892fi
12893
12894done
12895
12896
12897for ac_header in malloc.h
12898do
12899as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12900if eval "test \"\${$as_ac_Header+set}\" = set"; then
12901 echo "$as_me:$LINENO: checking for $ac_header" >&5
12902echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12903if eval "test \"\${$as_ac_Header+set}\" = set"; then
12904 echo $ECHO_N "(cached) $ECHO_C" >&6
12905fi
12906echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12907echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12908else
12909 # Is the header compilable?
12910echo "$as_me:$LINENO: checking $ac_header usability" >&5
12911echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12912cat >conftest.$ac_ext <<_ACEOF
12913/* confdefs.h. */
12914_ACEOF
12915cat confdefs.h >>conftest.$ac_ext
12916cat >>conftest.$ac_ext <<_ACEOF
12917/* end confdefs.h. */
12918$ac_includes_default
12919#include <$ac_header>
12920_ACEOF
12921rm -f conftest.$ac_objext
12922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12923 (eval $ac_compile) 2>conftest.er1
a848cd7e 12924 ac_status=$?
ac1cb8d3
VS
12925 grep -v '^ *+' conftest.er1 >conftest.err
12926 rm -f conftest.er1
12927 cat conftest.err >&5
a848cd7e
SC
12928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929 (exit $ac_status); } &&
ea7db9ff
DE
12930 { ac_try='test -z "$ac_c_werror_flag"
12931 || test ! -s conftest.err'
ac1cb8d3
VS
12932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12933 (eval $ac_try) 2>&5
12934 ac_status=$?
12935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936 (exit $ac_status); }; } &&
12937 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12939 (eval $ac_try) 2>&5
12940 ac_status=$?
12941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12942 (exit $ac_status); }; }; then
12943 ac_header_compiler=yes
12944else
12945 echo "$as_me: failed program was:" >&5
12946sed 's/^/| /' conftest.$ac_ext >&5
12947
12948ac_header_compiler=no
12949fi
ac1cb8d3 12950rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12951echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12952echo "${ECHO_T}$ac_header_compiler" >&6
12953
12954# Is the header present?
12955echo "$as_me:$LINENO: checking $ac_header presence" >&5
12956echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12957cat >conftest.$ac_ext <<_ACEOF
12958/* confdefs.h. */
12959_ACEOF
12960cat confdefs.h >>conftest.$ac_ext
12961cat >>conftest.$ac_ext <<_ACEOF
12962/* end confdefs.h. */
12963#include <$ac_header>
12964_ACEOF
12965if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12966 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12967 ac_status=$?
12968 grep -v '^ *+' conftest.er1 >conftest.err
12969 rm -f conftest.er1
12970 cat conftest.err >&5
12971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972 (exit $ac_status); } >/dev/null; then
12973 if test -s conftest.err; then
12974 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12975 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12976 else
12977 ac_cpp_err=
12978 fi
12979else
12980 ac_cpp_err=yes
12981fi
12982if test -z "$ac_cpp_err"; then
12983 ac_header_preproc=yes
12984else
12985 echo "$as_me: failed program was:" >&5
12986sed 's/^/| /' conftest.$ac_ext >&5
12987
12988 ac_header_preproc=no
12989fi
12990rm -f conftest.err conftest.$ac_ext
12991echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12992echo "${ECHO_T}$ac_header_preproc" >&6
12993
12994# So? What about this header?
ac1cb8d3
VS
12995case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12996 yes:no: )
a848cd7e
SC
12997 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12998echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
12999 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13000echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13001 ac_header_preproc=yes
a848cd7e 13002 ;;
ac1cb8d3 13003 no:yes:* )
a848cd7e
SC
13004 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13005echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13006 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13007echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13008 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13009echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13010 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13011echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13012 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13013echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13014 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13015echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13016 (
13017 cat <<\_ASBOX
ac1cb8d3
VS
13018## ----------------------------------------- ##
13019## Report this to wx-dev@lists.wxwidgets.org ##
13020## ----------------------------------------- ##
a848cd7e
SC
13021_ASBOX
13022 ) |
13023 sed "s/^/$as_me: WARNING: /" >&2
13024 ;;
13025esac
13026echo "$as_me:$LINENO: checking for $ac_header" >&5
13027echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13028if eval "test \"\${$as_ac_Header+set}\" = set"; then
13029 echo $ECHO_N "(cached) $ECHO_C" >&6
13030else
ac1cb8d3 13031 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13032fi
13033echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13034echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13035
13036fi
13037if test `eval echo '${'$as_ac_Header'}'` = yes; then
13038 cat >>confdefs.h <<_ACEOF
13039#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13040_ACEOF
13041
13042fi
13043
13044done
13045
13046
13047for ac_header in unistd.h
13048do
13049as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13050if eval "test \"\${$as_ac_Header+set}\" = set"; then
13051 echo "$as_me:$LINENO: checking for $ac_header" >&5
13052echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13053if eval "test \"\${$as_ac_Header+set}\" = set"; then
13054 echo $ECHO_N "(cached) $ECHO_C" >&6
13055fi
13056echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13057echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13058else
13059 # Is the header compilable?
13060echo "$as_me:$LINENO: checking $ac_header usability" >&5
13061echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13062cat >conftest.$ac_ext <<_ACEOF
13063/* confdefs.h. */
13064_ACEOF
13065cat confdefs.h >>conftest.$ac_ext
13066cat >>conftest.$ac_ext <<_ACEOF
13067/* end confdefs.h. */
13068$ac_includes_default
13069#include <$ac_header>
13070_ACEOF
13071rm -f conftest.$ac_objext
13072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13073 (eval $ac_compile) 2>conftest.er1
a848cd7e 13074 ac_status=$?
ac1cb8d3
VS
13075 grep -v '^ *+' conftest.er1 >conftest.err
13076 rm -f conftest.er1
13077 cat conftest.err >&5
a848cd7e
SC
13078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079 (exit $ac_status); } &&
ea7db9ff
DE
13080 { ac_try='test -z "$ac_c_werror_flag"
13081 || test ! -s conftest.err'
ac1cb8d3
VS
13082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13083 (eval $ac_try) 2>&5
13084 ac_status=$?
13085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086 (exit $ac_status); }; } &&
13087 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13089 (eval $ac_try) 2>&5
13090 ac_status=$?
13091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092 (exit $ac_status); }; }; then
13093 ac_header_compiler=yes
13094else
13095 echo "$as_me: failed program was:" >&5
13096sed 's/^/| /' conftest.$ac_ext >&5
13097
13098ac_header_compiler=no
13099fi
ac1cb8d3 13100rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13101echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13102echo "${ECHO_T}$ac_header_compiler" >&6
13103
13104# Is the header present?
13105echo "$as_me:$LINENO: checking $ac_header presence" >&5
13106echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13107cat >conftest.$ac_ext <<_ACEOF
13108/* confdefs.h. */
13109_ACEOF
13110cat confdefs.h >>conftest.$ac_ext
13111cat >>conftest.$ac_ext <<_ACEOF
13112/* end confdefs.h. */
13113#include <$ac_header>
13114_ACEOF
13115if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13116 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13117 ac_status=$?
13118 grep -v '^ *+' conftest.er1 >conftest.err
13119 rm -f conftest.er1
13120 cat conftest.err >&5
13121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122 (exit $ac_status); } >/dev/null; then
13123 if test -s conftest.err; then
13124 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13125 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13126 else
13127 ac_cpp_err=
13128 fi
13129else
13130 ac_cpp_err=yes
13131fi
13132if test -z "$ac_cpp_err"; then
13133 ac_header_preproc=yes
13134else
13135 echo "$as_me: failed program was:" >&5
13136sed 's/^/| /' conftest.$ac_ext >&5
13137
13138 ac_header_preproc=no
13139fi
13140rm -f conftest.err conftest.$ac_ext
13141echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13142echo "${ECHO_T}$ac_header_preproc" >&6
13143
13144# So? What about this header?
ac1cb8d3
VS
13145case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13146 yes:no: )
a848cd7e
SC
13147 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13148echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13150echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13151 ac_header_preproc=yes
a848cd7e 13152 ;;
ac1cb8d3 13153 no:yes:* )
a848cd7e
SC
13154 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13155echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13156 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13157echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13158 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13159echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13160 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13161echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13162 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13163echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13164 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13165echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13166 (
13167 cat <<\_ASBOX
ac1cb8d3
VS
13168## ----------------------------------------- ##
13169## Report this to wx-dev@lists.wxwidgets.org ##
13170## ----------------------------------------- ##
a848cd7e
SC
13171_ASBOX
13172 ) |
13173 sed "s/^/$as_me: WARNING: /" >&2
13174 ;;
13175esac
13176echo "$as_me:$LINENO: checking for $ac_header" >&5
13177echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13178if eval "test \"\${$as_ac_Header+set}\" = set"; then
13179 echo $ECHO_N "(cached) $ECHO_C" >&6
13180else
ac1cb8d3 13181 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13182fi
13183echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13184echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13185
13186fi
13187if test `eval echo '${'$as_ac_Header'}'` = yes; then
13188 cat >>confdefs.h <<_ACEOF
13189#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13190_ACEOF
13191
13192fi
13193
13194done
13195
13196
13197for ac_header in wchar.h
13198do
13199as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13200if eval "test \"\${$as_ac_Header+set}\" = set"; then
13201 echo "$as_me:$LINENO: checking for $ac_header" >&5
13202echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13203if eval "test \"\${$as_ac_Header+set}\" = set"; then
13204 echo $ECHO_N "(cached) $ECHO_C" >&6
13205fi
13206echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13207echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13208else
13209 # Is the header compilable?
13210echo "$as_me:$LINENO: checking $ac_header usability" >&5
13211echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13212cat >conftest.$ac_ext <<_ACEOF
13213/* confdefs.h. */
13214_ACEOF
13215cat confdefs.h >>conftest.$ac_ext
13216cat >>conftest.$ac_ext <<_ACEOF
13217/* end confdefs.h. */
13218$ac_includes_default
13219#include <$ac_header>
13220_ACEOF
13221rm -f conftest.$ac_objext
13222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13223 (eval $ac_compile) 2>conftest.er1
a848cd7e 13224 ac_status=$?
ac1cb8d3
VS
13225 grep -v '^ *+' conftest.er1 >conftest.err
13226 rm -f conftest.er1
13227 cat conftest.err >&5
a848cd7e
SC
13228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229 (exit $ac_status); } &&
ea7db9ff
DE
13230 { ac_try='test -z "$ac_c_werror_flag"
13231 || test ! -s conftest.err'
ac1cb8d3
VS
13232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13233 (eval $ac_try) 2>&5
13234 ac_status=$?
13235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236 (exit $ac_status); }; } &&
13237 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13239 (eval $ac_try) 2>&5
13240 ac_status=$?
13241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242 (exit $ac_status); }; }; then
13243 ac_header_compiler=yes
13244else
13245 echo "$as_me: failed program was:" >&5
13246sed 's/^/| /' conftest.$ac_ext >&5
13247
13248ac_header_compiler=no
13249fi
ac1cb8d3 13250rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13251echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13252echo "${ECHO_T}$ac_header_compiler" >&6
13253
13254# Is the header present?
13255echo "$as_me:$LINENO: checking $ac_header presence" >&5
13256echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13257cat >conftest.$ac_ext <<_ACEOF
13258/* confdefs.h. */
13259_ACEOF
13260cat confdefs.h >>conftest.$ac_ext
13261cat >>conftest.$ac_ext <<_ACEOF
13262/* end confdefs.h. */
13263#include <$ac_header>
13264_ACEOF
13265if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13266 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13267 ac_status=$?
13268 grep -v '^ *+' conftest.er1 >conftest.err
13269 rm -f conftest.er1
13270 cat conftest.err >&5
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); } >/dev/null; then
13273 if test -s conftest.err; then
13274 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13275 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13276 else
13277 ac_cpp_err=
13278 fi
13279else
13280 ac_cpp_err=yes
13281fi
13282if test -z "$ac_cpp_err"; then
13283 ac_header_preproc=yes
13284else
13285 echo "$as_me: failed program was:" >&5
13286sed 's/^/| /' conftest.$ac_ext >&5
13287
13288 ac_header_preproc=no
13289fi
13290rm -f conftest.err conftest.$ac_ext
13291echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13292echo "${ECHO_T}$ac_header_preproc" >&6
13293
13294# So? What about this header?
ac1cb8d3
VS
13295case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13296 yes:no: )
a848cd7e
SC
13297 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13298echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13299 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13300echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13301 ac_header_preproc=yes
a848cd7e 13302 ;;
ac1cb8d3 13303 no:yes:* )
a848cd7e
SC
13304 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13305echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13306 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13307echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13308 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13309echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13310 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13311echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13313echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13314 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13315echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13316 (
13317 cat <<\_ASBOX
ac1cb8d3
VS
13318## ----------------------------------------- ##
13319## Report this to wx-dev@lists.wxwidgets.org ##
13320## ----------------------------------------- ##
a848cd7e
SC
13321_ASBOX
13322 ) |
13323 sed "s/^/$as_me: WARNING: /" >&2
13324 ;;
13325esac
13326echo "$as_me:$LINENO: checking for $ac_header" >&5
13327echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13328if eval "test \"\${$as_ac_Header+set}\" = set"; then
13329 echo $ECHO_N "(cached) $ECHO_C" >&6
13330else
ac1cb8d3 13331 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13332fi
13333echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13334echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13335
13336fi
13337if test `eval echo '${'$as_ac_Header'}'` = yes; then
13338 cat >>confdefs.h <<_ACEOF
13339#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13340_ACEOF
13341
13342fi
13343
13344done
13345
13346
13347if test "$ac_cv_header_wchar_h" != "yes"; then
13348
13349for ac_header in wcstr.h
13350do
13351as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13352if eval "test \"\${$as_ac_Header+set}\" = set"; then
13353 echo "$as_me:$LINENO: checking for $ac_header" >&5
13354echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13355if eval "test \"\${$as_ac_Header+set}\" = set"; then
13356 echo $ECHO_N "(cached) $ECHO_C" >&6
13357fi
13358echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13359echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13360else
13361 # Is the header compilable?
13362echo "$as_me:$LINENO: checking $ac_header usability" >&5
13363echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13364cat >conftest.$ac_ext <<_ACEOF
13365/* confdefs.h. */
13366_ACEOF
13367cat confdefs.h >>conftest.$ac_ext
13368cat >>conftest.$ac_ext <<_ACEOF
13369/* end confdefs.h. */
13370$ac_includes_default
13371#include <$ac_header>
13372_ACEOF
13373rm -f conftest.$ac_objext
13374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13375 (eval $ac_compile) 2>conftest.er1
a848cd7e 13376 ac_status=$?
ac1cb8d3
VS
13377 grep -v '^ *+' conftest.er1 >conftest.err
13378 rm -f conftest.er1
13379 cat conftest.err >&5
a848cd7e
SC
13380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13381 (exit $ac_status); } &&
ea7db9ff
DE
13382 { ac_try='test -z "$ac_c_werror_flag"
13383 || test ! -s conftest.err'
ac1cb8d3
VS
13384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13385 (eval $ac_try) 2>&5
13386 ac_status=$?
13387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388 (exit $ac_status); }; } &&
13389 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13391 (eval $ac_try) 2>&5
13392 ac_status=$?
13393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13394 (exit $ac_status); }; }; then
13395 ac_header_compiler=yes
13396else
13397 echo "$as_me: failed program was:" >&5
13398sed 's/^/| /' conftest.$ac_ext >&5
13399
13400ac_header_compiler=no
13401fi
ac1cb8d3 13402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13403echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13404echo "${ECHO_T}$ac_header_compiler" >&6
13405
13406# Is the header present?
13407echo "$as_me:$LINENO: checking $ac_header presence" >&5
13408echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13409cat >conftest.$ac_ext <<_ACEOF
13410/* confdefs.h. */
13411_ACEOF
13412cat confdefs.h >>conftest.$ac_ext
13413cat >>conftest.$ac_ext <<_ACEOF
13414/* end confdefs.h. */
13415#include <$ac_header>
13416_ACEOF
13417if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13418 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13419 ac_status=$?
13420 grep -v '^ *+' conftest.er1 >conftest.err
13421 rm -f conftest.er1
13422 cat conftest.err >&5
13423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424 (exit $ac_status); } >/dev/null; then
13425 if test -s conftest.err; then
13426 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13427 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13428 else
13429 ac_cpp_err=
13430 fi
13431else
13432 ac_cpp_err=yes
13433fi
13434if test -z "$ac_cpp_err"; then
13435 ac_header_preproc=yes
13436else
13437 echo "$as_me: failed program was:" >&5
13438sed 's/^/| /' conftest.$ac_ext >&5
13439
13440 ac_header_preproc=no
13441fi
13442rm -f conftest.err conftest.$ac_ext
13443echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13444echo "${ECHO_T}$ac_header_preproc" >&6
13445
13446# So? What about this header?
ac1cb8d3
VS
13447case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13448 yes:no: )
a848cd7e
SC
13449 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13450echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13452echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13453 ac_header_preproc=yes
a848cd7e 13454 ;;
ac1cb8d3 13455 no:yes:* )
a848cd7e
SC
13456 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13457echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13458 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13459echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13460 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13461echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13462 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13463echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13465echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13466 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13467echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13468 (
13469 cat <<\_ASBOX
ac1cb8d3
VS
13470## ----------------------------------------- ##
13471## Report this to wx-dev@lists.wxwidgets.org ##
13472## ----------------------------------------- ##
a848cd7e
SC
13473_ASBOX
13474 ) |
13475 sed "s/^/$as_me: WARNING: /" >&2
13476 ;;
13477esac
13478echo "$as_me:$LINENO: checking for $ac_header" >&5
13479echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13480if eval "test \"\${$as_ac_Header+set}\" = set"; then
13481 echo $ECHO_N "(cached) $ECHO_C" >&6
13482else
ac1cb8d3 13483 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13484fi
13485echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13486echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13487
13488fi
13489if test `eval echo '${'$as_ac_Header'}'` = yes; then
13490 cat >>confdefs.h <<_ACEOF
13491#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13492_ACEOF
13493
13494fi
13495
13496done
13497
13498fi
13499
13500
13501for ac_header in fnmatch.h
13502do
13503as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13504if eval "test \"\${$as_ac_Header+set}\" = set"; then
13505 echo "$as_me:$LINENO: checking for $ac_header" >&5
13506echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13507if eval "test \"\${$as_ac_Header+set}\" = set"; then
13508 echo $ECHO_N "(cached) $ECHO_C" >&6
13509fi
13510echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13511echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13512else
13513 # Is the header compilable?
13514echo "$as_me:$LINENO: checking $ac_header usability" >&5
13515echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13516cat >conftest.$ac_ext <<_ACEOF
13517/* confdefs.h. */
13518_ACEOF
13519cat confdefs.h >>conftest.$ac_ext
13520cat >>conftest.$ac_ext <<_ACEOF
13521/* end confdefs.h. */
13522$ac_includes_default
13523#include <$ac_header>
13524_ACEOF
13525rm -f conftest.$ac_objext
13526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13527 (eval $ac_compile) 2>conftest.er1
a848cd7e 13528 ac_status=$?
ac1cb8d3
VS
13529 grep -v '^ *+' conftest.er1 >conftest.err
13530 rm -f conftest.er1
13531 cat conftest.err >&5
a848cd7e
SC
13532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13533 (exit $ac_status); } &&
ea7db9ff
DE
13534 { ac_try='test -z "$ac_c_werror_flag"
13535 || test ! -s conftest.err'
ac1cb8d3
VS
13536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13537 (eval $ac_try) 2>&5
13538 ac_status=$?
13539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540 (exit $ac_status); }; } &&
13541 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13543 (eval $ac_try) 2>&5
13544 ac_status=$?
13545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13546 (exit $ac_status); }; }; then
13547 ac_header_compiler=yes
13548else
13549 echo "$as_me: failed program was:" >&5
13550sed 's/^/| /' conftest.$ac_ext >&5
13551
13552ac_header_compiler=no
13553fi
ac1cb8d3 13554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13555echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13556echo "${ECHO_T}$ac_header_compiler" >&6
13557
13558# Is the header present?
13559echo "$as_me:$LINENO: checking $ac_header presence" >&5
13560echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13561cat >conftest.$ac_ext <<_ACEOF
13562/* confdefs.h. */
13563_ACEOF
13564cat confdefs.h >>conftest.$ac_ext
13565cat >>conftest.$ac_ext <<_ACEOF
13566/* end confdefs.h. */
13567#include <$ac_header>
13568_ACEOF
13569if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13570 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13571 ac_status=$?
13572 grep -v '^ *+' conftest.er1 >conftest.err
13573 rm -f conftest.er1
13574 cat conftest.err >&5
13575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576 (exit $ac_status); } >/dev/null; then
13577 if test -s conftest.err; then
13578 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13579 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13580 else
13581 ac_cpp_err=
13582 fi
13583else
13584 ac_cpp_err=yes
13585fi
13586if test -z "$ac_cpp_err"; then
13587 ac_header_preproc=yes
13588else
13589 echo "$as_me: failed program was:" >&5
13590sed 's/^/| /' conftest.$ac_ext >&5
13591
13592 ac_header_preproc=no
13593fi
13594rm -f conftest.err conftest.$ac_ext
13595echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13596echo "${ECHO_T}$ac_header_preproc" >&6
13597
13598# So? What about this header?
ac1cb8d3
VS
13599case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13600 yes:no: )
a848cd7e
SC
13601 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13602echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13603 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13604echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13605 ac_header_preproc=yes
a848cd7e 13606 ;;
ac1cb8d3 13607 no:yes:* )
a848cd7e
SC
13608 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13609echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13610 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13611echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13612 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13613echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13614 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13615echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13616 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13617echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13618 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13619echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13620 (
13621 cat <<\_ASBOX
ac1cb8d3
VS
13622## ----------------------------------------- ##
13623## Report this to wx-dev@lists.wxwidgets.org ##
13624## ----------------------------------------- ##
a848cd7e
SC
13625_ASBOX
13626 ) |
13627 sed "s/^/$as_me: WARNING: /" >&2
13628 ;;
13629esac
13630echo "$as_me:$LINENO: checking for $ac_header" >&5
13631echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13632if eval "test \"\${$as_ac_Header+set}\" = set"; then
13633 echo $ECHO_N "(cached) $ECHO_C" >&6
13634else
ac1cb8d3 13635 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13636fi
13637echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13638echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13639
13640fi
13641if test `eval echo '${'$as_ac_Header'}'` = yes; then
13642 cat >>confdefs.h <<_ACEOF
13643#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13644_ACEOF
13645
13646fi
13647
13648done
13649
13650
13651if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
13652
13653for ac_func in fnmatch
13654do
13655as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13656echo "$as_me:$LINENO: checking for $ac_func" >&5
13657echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13658if eval "test \"\${$as_ac_var+set}\" = set"; then
13659 echo $ECHO_N "(cached) $ECHO_C" >&6
13660else
13661 cat >conftest.$ac_ext <<_ACEOF
13662/* confdefs.h. */
13663_ACEOF
13664cat confdefs.h >>conftest.$ac_ext
13665cat >>conftest.$ac_ext <<_ACEOF
13666/* end confdefs.h. */
ac1cb8d3
VS
13667/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13668 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13669#define $ac_func innocuous_$ac_func
13670
a848cd7e
SC
13671/* System header to define __stub macros and hopefully few prototypes,
13672 which can conflict with char $ac_func (); below.
13673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13674 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 13675
a848cd7e
SC
13676#ifdef __STDC__
13677# include <limits.h>
13678#else
13679# include <assert.h>
13680#endif
ac1cb8d3
VS
13681
13682#undef $ac_func
13683
a848cd7e
SC
13684/* Override any gcc2 internal prototype to avoid an error. */
13685#ifdef __cplusplus
13686extern "C"
13687{
13688#endif
13689/* We use char because int might match the return type of a gcc2
13690 builtin and then its argument prototype would still apply. */
13691char $ac_func ();
13692/* The GNU C library defines this for functions which it implements
13693 to always fail with ENOSYS. Some functions are actually named
13694 something starting with __ and the normal name is an alias. */
13695#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13696choke me
13697#else
13698char (*f) () = $ac_func;
13699#endif
13700#ifdef __cplusplus
13701}
13702#endif
13703
13704int
13705main ()
13706{
13707return f != $ac_func;
13708 ;
13709 return 0;
13710}
13711_ACEOF
13712rm -f conftest.$ac_objext conftest$ac_exeext
13713if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13714 (eval $ac_link) 2>conftest.er1
a848cd7e 13715 ac_status=$?
ac1cb8d3
VS
13716 grep -v '^ *+' conftest.er1 >conftest.err
13717 rm -f conftest.er1
13718 cat conftest.err >&5
a848cd7e
SC
13719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); } &&
ea7db9ff
DE
13721 { ac_try='test -z "$ac_c_werror_flag"
13722 || test ! -s conftest.err'
ac1cb8d3
VS
13723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13724 (eval $ac_try) 2>&5
13725 ac_status=$?
13726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727 (exit $ac_status); }; } &&
13728 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13730 (eval $ac_try) 2>&5
13731 ac_status=$?
13732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733 (exit $ac_status); }; }; then
13734 eval "$as_ac_var=yes"
13735else
13736 echo "$as_me: failed program was:" >&5
13737sed 's/^/| /' conftest.$ac_ext >&5
13738
13739eval "$as_ac_var=no"
13740fi
ac1cb8d3
VS
13741rm -f conftest.err conftest.$ac_objext \
13742 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13743fi
13744echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13745echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13746if test `eval echo '${'$as_ac_var'}'` = yes; then
13747 cat >>confdefs.h <<_ACEOF
13748#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13749_ACEOF
13750
13751fi
13752done
13753
13754fi
13755
13756
13757for ac_header in langinfo.h
13758do
13759as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13760if eval "test \"\${$as_ac_Header+set}\" = set"; then
13761 echo "$as_me:$LINENO: checking for $ac_header" >&5
13762echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13763if eval "test \"\${$as_ac_Header+set}\" = set"; then
13764 echo $ECHO_N "(cached) $ECHO_C" >&6
13765fi
13766echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13767echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13768else
13769 # Is the header compilable?
13770echo "$as_me:$LINENO: checking $ac_header usability" >&5
13771echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13772cat >conftest.$ac_ext <<_ACEOF
13773/* confdefs.h. */
13774_ACEOF
13775cat confdefs.h >>conftest.$ac_ext
13776cat >>conftest.$ac_ext <<_ACEOF
13777/* end confdefs.h. */
13778$ac_includes_default
13779#include <$ac_header>
13780_ACEOF
13781rm -f conftest.$ac_objext
13782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13783 (eval $ac_compile) 2>conftest.er1
a848cd7e 13784 ac_status=$?
ac1cb8d3
VS
13785 grep -v '^ *+' conftest.er1 >conftest.err
13786 rm -f conftest.er1
13787 cat conftest.err >&5
a848cd7e
SC
13788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789 (exit $ac_status); } &&
ea7db9ff
DE
13790 { ac_try='test -z "$ac_c_werror_flag"
13791 || test ! -s conftest.err'
ac1cb8d3
VS
13792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13793 (eval $ac_try) 2>&5
13794 ac_status=$?
13795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796 (exit $ac_status); }; } &&
13797 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13799 (eval $ac_try) 2>&5
13800 ac_status=$?
13801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802 (exit $ac_status); }; }; then
13803 ac_header_compiler=yes
13804else
13805 echo "$as_me: failed program was:" >&5
13806sed 's/^/| /' conftest.$ac_ext >&5
13807
13808ac_header_compiler=no
13809fi
ac1cb8d3 13810rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13811echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13812echo "${ECHO_T}$ac_header_compiler" >&6
13813
13814# Is the header present?
13815echo "$as_me:$LINENO: checking $ac_header presence" >&5
13816echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13817cat >conftest.$ac_ext <<_ACEOF
13818/* confdefs.h. */
13819_ACEOF
13820cat confdefs.h >>conftest.$ac_ext
13821cat >>conftest.$ac_ext <<_ACEOF
13822/* end confdefs.h. */
13823#include <$ac_header>
13824_ACEOF
13825if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13826 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13827 ac_status=$?
13828 grep -v '^ *+' conftest.er1 >conftest.err
13829 rm -f conftest.er1
13830 cat conftest.err >&5
13831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832 (exit $ac_status); } >/dev/null; then
13833 if test -s conftest.err; then
13834 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13835 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13836 else
13837 ac_cpp_err=
13838 fi
13839else
13840 ac_cpp_err=yes
13841fi
13842if test -z "$ac_cpp_err"; then
13843 ac_header_preproc=yes
13844else
13845 echo "$as_me: failed program was:" >&5
13846sed 's/^/| /' conftest.$ac_ext >&5
13847
13848 ac_header_preproc=no
13849fi
13850rm -f conftest.err conftest.$ac_ext
13851echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13852echo "${ECHO_T}$ac_header_preproc" >&6
13853
13854# So? What about this header?
ac1cb8d3
VS
13855case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13856 yes:no: )
a848cd7e
SC
13857 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13858echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13860echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13861 ac_header_preproc=yes
a848cd7e 13862 ;;
ac1cb8d3 13863 no:yes:* )
a848cd7e
SC
13864 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13865echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13866 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13867echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13868 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13869echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13870 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13871echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13872 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13873echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13874 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13875echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13876 (
13877 cat <<\_ASBOX
ac1cb8d3
VS
13878## ----------------------------------------- ##
13879## Report this to wx-dev@lists.wxwidgets.org ##
13880## ----------------------------------------- ##
a848cd7e
SC
13881_ASBOX
13882 ) |
13883 sed "s/^/$as_me: WARNING: /" >&2
13884 ;;
13885esac
13886echo "$as_me:$LINENO: checking for $ac_header" >&5
13887echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13888if eval "test \"\${$as_ac_Header+set}\" = set"; then
13889 echo $ECHO_N "(cached) $ECHO_C" >&6
13890else
ac1cb8d3 13891 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13892fi
13893echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13894echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13895
13896fi
13897if test `eval echo '${'$as_ac_Header'}'` = yes; then
13898 cat >>confdefs.h <<_ACEOF
13899#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13900_ACEOF
13901
13902fi
13903
13904done
13905
13906
13907case "${host}" in
13908 *-pc-os2_emx | *-pc-os2-emx )
13909 if test $ac_cv_header_langinfo_h = "yes"; then
13910 LIBS="$LIBS -lintl"
13911 fi
13912 ;;
13913esac
13914
13915if test "$wxUSE_GUI" = "yes"; then
13916 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
13917
13918for ac_header in X11/Xlib.h
13919do
13920as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13921if eval "test \"\${$as_ac_Header+set}\" = set"; then
13922 echo "$as_me:$LINENO: checking for $ac_header" >&5
13923echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13924if eval "test \"\${$as_ac_Header+set}\" = set"; then
13925 echo $ECHO_N "(cached) $ECHO_C" >&6
13926fi
13927echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13928echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13929else
13930 # Is the header compilable?
13931echo "$as_me:$LINENO: checking $ac_header usability" >&5
13932echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13933cat >conftest.$ac_ext <<_ACEOF
13934/* confdefs.h. */
13935_ACEOF
13936cat confdefs.h >>conftest.$ac_ext
13937cat >>conftest.$ac_ext <<_ACEOF
13938/* end confdefs.h. */
13939$ac_includes_default
13940#include <$ac_header>
13941_ACEOF
13942rm -f conftest.$ac_objext
13943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13944 (eval $ac_compile) 2>conftest.er1
a848cd7e 13945 ac_status=$?
ac1cb8d3
VS
13946 grep -v '^ *+' conftest.er1 >conftest.err
13947 rm -f conftest.er1
13948 cat conftest.err >&5
a848cd7e
SC
13949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950 (exit $ac_status); } &&
ea7db9ff
DE
13951 { ac_try='test -z "$ac_c_werror_flag"
13952 || test ! -s conftest.err'
ac1cb8d3
VS
13953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13954 (eval $ac_try) 2>&5
13955 ac_status=$?
13956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957 (exit $ac_status); }; } &&
13958 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13960 (eval $ac_try) 2>&5
13961 ac_status=$?
13962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963 (exit $ac_status); }; }; then
13964 ac_header_compiler=yes
13965else
13966 echo "$as_me: failed program was:" >&5
13967sed 's/^/| /' conftest.$ac_ext >&5
13968
13969ac_header_compiler=no
13970fi
ac1cb8d3 13971rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13972echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13973echo "${ECHO_T}$ac_header_compiler" >&6
13974
13975# Is the header present?
13976echo "$as_me:$LINENO: checking $ac_header presence" >&5
13977echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13978cat >conftest.$ac_ext <<_ACEOF
13979/* confdefs.h. */
13980_ACEOF
13981cat confdefs.h >>conftest.$ac_ext
13982cat >>conftest.$ac_ext <<_ACEOF
13983/* end confdefs.h. */
13984#include <$ac_header>
13985_ACEOF
13986if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13987 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13988 ac_status=$?
13989 grep -v '^ *+' conftest.er1 >conftest.err
13990 rm -f conftest.er1
13991 cat conftest.err >&5
13992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993 (exit $ac_status); } >/dev/null; then
13994 if test -s conftest.err; then
13995 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13996 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13997 else
13998 ac_cpp_err=
13999 fi
14000else
14001 ac_cpp_err=yes
14002fi
14003if test -z "$ac_cpp_err"; then
14004 ac_header_preproc=yes
14005else
14006 echo "$as_me: failed program was:" >&5
14007sed 's/^/| /' conftest.$ac_ext >&5
14008
14009 ac_header_preproc=no
14010fi
14011rm -f conftest.err conftest.$ac_ext
14012echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14013echo "${ECHO_T}$ac_header_preproc" >&6
14014
14015# So? What about this header?
ac1cb8d3
VS
14016case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14017 yes:no: )
a848cd7e
SC
14018 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14019echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14021echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14022 ac_header_preproc=yes
a848cd7e 14023 ;;
ac1cb8d3 14024 no:yes:* )
a848cd7e
SC
14025 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14026echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14027 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14028echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14029 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14030echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14031 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14032echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14034echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14035 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14036echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14037 (
14038 cat <<\_ASBOX
ac1cb8d3
VS
14039## ----------------------------------------- ##
14040## Report this to wx-dev@lists.wxwidgets.org ##
14041## ----------------------------------------- ##
a848cd7e
SC
14042_ASBOX
14043 ) |
14044 sed "s/^/$as_me: WARNING: /" >&2
14045 ;;
14046esac
14047echo "$as_me:$LINENO: checking for $ac_header" >&5
14048echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14049if eval "test \"\${$as_ac_Header+set}\" = set"; then
14050 echo $ECHO_N "(cached) $ECHO_C" >&6
14051else
ac1cb8d3 14052 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14053fi
14054echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14055echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14056
14057fi
14058if test `eval echo '${'$as_ac_Header'}'` = yes; then
14059 cat >>confdefs.h <<_ACEOF
14060#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14061_ACEOF
14062
14063fi
14064
14065done
14066
14067
14068for ac_header in X11/XKBlib.h
14069do
14070as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14071echo "$as_me:$LINENO: checking for $ac_header" >&5
14072echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14073if eval "test \"\${$as_ac_Header+set}\" = set"; then
14074 echo $ECHO_N "(cached) $ECHO_C" >&6
14075else
14076 cat >conftest.$ac_ext <<_ACEOF
14077/* confdefs.h. */
14078_ACEOF
14079cat confdefs.h >>conftest.$ac_ext
14080cat >>conftest.$ac_ext <<_ACEOF
14081/* end confdefs.h. */
14082
14083 #if HAVE_X11_XLIB_H
14084 #include <X11/Xlib.h>
14085 #endif
14086
14087
14088#include <$ac_header>
14089_ACEOF
14090rm -f conftest.$ac_objext
14091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14092 (eval $ac_compile) 2>conftest.er1
a848cd7e 14093 ac_status=$?
ac1cb8d3
VS
14094 grep -v '^ *+' conftest.er1 >conftest.err
14095 rm -f conftest.er1
14096 cat conftest.err >&5
a848cd7e
SC
14097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14098 (exit $ac_status); } &&
ea7db9ff
DE
14099 { ac_try='test -z "$ac_c_werror_flag"
14100 || test ! -s conftest.err'
ac1cb8d3
VS
14101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14102 (eval $ac_try) 2>&5
14103 ac_status=$?
14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105 (exit $ac_status); }; } &&
14106 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14108 (eval $ac_try) 2>&5
14109 ac_status=$?
14110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111 (exit $ac_status); }; }; then
14112 eval "$as_ac_Header=yes"
14113else
14114 echo "$as_me: failed program was:" >&5
14115sed 's/^/| /' conftest.$ac_ext >&5
14116
14117eval "$as_ac_Header=no"
14118fi
ac1cb8d3 14119rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14120fi
14121echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14122echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14123if test `eval echo '${'$as_ac_Header'}'` = yes; then
14124 cat >>confdefs.h <<_ACEOF
14125#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14126_ACEOF
14127
14128fi
14129
14130done
14131
14132 fi
14133fi
14134
14135
14136echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14137echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14138if test "${ac_cv_c_const+set}" = set; then
14139 echo $ECHO_N "(cached) $ECHO_C" >&6
14140else
14141 cat >conftest.$ac_ext <<_ACEOF
14142/* confdefs.h. */
14143_ACEOF
14144cat confdefs.h >>conftest.$ac_ext
14145cat >>conftest.$ac_ext <<_ACEOF
14146/* end confdefs.h. */
14147
14148int
14149main ()
14150{
14151/* FIXME: Include the comments suggested by Paul. */
14152#ifndef __cplusplus
14153 /* Ultrix mips cc rejects this. */
14154 typedef int charset[2];
14155 const charset x;
14156 /* SunOS 4.1.1 cc rejects this. */
14157 char const *const *ccp;
14158 char **p;
14159 /* NEC SVR4.0.2 mips cc rejects this. */
14160 struct point {int x, y;};
14161 static struct point const zero = {0,0};
14162 /* AIX XL C 1.02.0.0 rejects this.
14163 It does not let you subtract one const X* pointer from another in
14164 an arm of an if-expression whose if-part is not a constant
14165 expression */
14166 const char *g = "string";
14167 ccp = &g + (g ? g-g : 0);
14168 /* HPUX 7.0 cc rejects these. */
14169 ++ccp;
14170 p = (char**) ccp;
14171 ccp = (char const *const *) p;
14172 { /* SCO 3.2v4 cc rejects this. */
14173 char *t;
14174 char const *s = 0 ? (char *) 0 : (char const *) 0;
14175
14176 *t++ = 0;
14177 }
14178 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14179 int x[] = {25, 17};
14180 const int *foo = &x[0];
14181 ++foo;
14182 }
14183 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14184 typedef const int *iptr;
14185 iptr p = 0;
14186 ++p;
14187 }
14188 { /* AIX XL C 1.02.0.0 rejects this saying
14189 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14190 struct s { int j; const int *ap[3]; };
14191 struct s *b; b->j = 5;
14192 }
14193 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14194 const int foo = 10;
14195 }
14196#endif
14197
14198 ;
14199 return 0;
14200}
14201_ACEOF
14202rm -f conftest.$ac_objext
14203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14204 (eval $ac_compile) 2>conftest.er1
a848cd7e 14205 ac_status=$?
ac1cb8d3
VS
14206 grep -v '^ *+' conftest.er1 >conftest.err
14207 rm -f conftest.er1
14208 cat conftest.err >&5
a848cd7e
SC
14209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210 (exit $ac_status); } &&
ea7db9ff
DE
14211 { ac_try='test -z "$ac_c_werror_flag"
14212 || test ! -s conftest.err'
ac1cb8d3
VS
14213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14214 (eval $ac_try) 2>&5
14215 ac_status=$?
14216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217 (exit $ac_status); }; } &&
14218 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14220 (eval $ac_try) 2>&5
14221 ac_status=$?
14222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14223 (exit $ac_status); }; }; then
14224 ac_cv_c_const=yes
14225else
14226 echo "$as_me: failed program was:" >&5
14227sed 's/^/| /' conftest.$ac_ext >&5
14228
14229ac_cv_c_const=no
14230fi
ac1cb8d3 14231rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14232fi
14233echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14234echo "${ECHO_T}$ac_cv_c_const" >&6
14235if test $ac_cv_c_const = no; then
14236
14237cat >>confdefs.h <<\_ACEOF
14238#define const
14239_ACEOF
14240
14241fi
14242
14243echo "$as_me:$LINENO: checking for inline" >&5
14244echo $ECHO_N "checking for inline... $ECHO_C" >&6
14245if test "${ac_cv_c_inline+set}" = set; then
14246 echo $ECHO_N "(cached) $ECHO_C" >&6
14247else
14248 ac_cv_c_inline=no
14249for ac_kw in inline __inline__ __inline; do
14250 cat >conftest.$ac_ext <<_ACEOF
14251/* confdefs.h. */
14252_ACEOF
14253cat confdefs.h >>conftest.$ac_ext
14254cat >>conftest.$ac_ext <<_ACEOF
14255/* end confdefs.h. */
14256#ifndef __cplusplus
14257typedef int foo_t;
14258static $ac_kw foo_t static_foo () {return 0; }
14259$ac_kw foo_t foo () {return 0; }
14260#endif
14261
14262_ACEOF
14263rm -f conftest.$ac_objext
14264if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14265 (eval $ac_compile) 2>conftest.er1
a848cd7e 14266 ac_status=$?
ac1cb8d3
VS
14267 grep -v '^ *+' conftest.er1 >conftest.err
14268 rm -f conftest.er1
14269 cat conftest.err >&5
a848cd7e
SC
14270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271 (exit $ac_status); } &&
ea7db9ff
DE
14272 { ac_try='test -z "$ac_c_werror_flag"
14273 || test ! -s conftest.err'
ac1cb8d3
VS
14274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14275 (eval $ac_try) 2>&5
14276 ac_status=$?
14277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278 (exit $ac_status); }; } &&
14279 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14281 (eval $ac_try) 2>&5
14282 ac_status=$?
14283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284 (exit $ac_status); }; }; then
14285 ac_cv_c_inline=$ac_kw; break
14286else
14287 echo "$as_me: failed program was:" >&5
14288sed 's/^/| /' conftest.$ac_ext >&5
14289
14290fi
ac1cb8d3 14291rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14292done
14293
14294fi
14295echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14296echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
14297
14298
a848cd7e
SC
14299case $ac_cv_c_inline in
14300 inline | yes) ;;
ac1cb8d3
VS
14301 *)
14302 case $ac_cv_c_inline in
14303 no) ac_val=;;
14304 *) ac_val=$ac_cv_c_inline;;
14305 esac
14306 cat >>confdefs.h <<_ACEOF
14307#ifndef __cplusplus
14308#define inline $ac_val
14309#endif
de59c161 14310_ACEOF
ac1cb8d3 14311 ;;
a848cd7e
SC
14312esac
14313
14314
14315echo "$as_me:$LINENO: checking for char" >&5
14316echo $ECHO_N "checking for char... $ECHO_C" >&6
14317if test "${ac_cv_type_char+set}" = set; then
14318 echo $ECHO_N "(cached) $ECHO_C" >&6
14319else
14320 cat >conftest.$ac_ext <<_ACEOF
14321/* confdefs.h. */
14322_ACEOF
14323cat confdefs.h >>conftest.$ac_ext
14324cat >>conftest.$ac_ext <<_ACEOF
14325/* end confdefs.h. */
14326$ac_includes_default
14327int
14328main ()
14329{
14330if ((char *) 0)
14331 return 0;
14332if (sizeof (char))
14333 return 0;
14334 ;
14335 return 0;
14336}
14337_ACEOF
14338rm -f conftest.$ac_objext
14339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14340 (eval $ac_compile) 2>conftest.er1
a848cd7e 14341 ac_status=$?
ac1cb8d3
VS
14342 grep -v '^ *+' conftest.er1 >conftest.err
14343 rm -f conftest.er1
14344 cat conftest.err >&5
a848cd7e
SC
14345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14346 (exit $ac_status); } &&
ea7db9ff
DE
14347 { ac_try='test -z "$ac_c_werror_flag"
14348 || test ! -s conftest.err'
ac1cb8d3
VS
14349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14350 (eval $ac_try) 2>&5
14351 ac_status=$?
14352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353 (exit $ac_status); }; } &&
14354 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14356 (eval $ac_try) 2>&5
14357 ac_status=$?
14358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359 (exit $ac_status); }; }; then
14360 ac_cv_type_char=yes
14361else
14362 echo "$as_me: failed program was:" >&5
14363sed 's/^/| /' conftest.$ac_ext >&5
14364
14365ac_cv_type_char=no
14366fi
ac1cb8d3 14367rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14368fi
14369echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14370echo "${ECHO_T}$ac_cv_type_char" >&6
14371
14372echo "$as_me:$LINENO: checking size of char" >&5
14373echo $ECHO_N "checking size of char... $ECHO_C" >&6
14374if test "${ac_cv_sizeof_char+set}" = set; then
14375 echo $ECHO_N "(cached) $ECHO_C" >&6
14376else
14377 if test "$ac_cv_type_char" = yes; then
14378 # The cast to unsigned long works around a bug in the HP C Compiler
14379 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14380 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14381 # This bug is HP SR number 8606223364.
14382 if test "$cross_compiling" = yes; then
14383 # Depending upon the size, compute the lo and hi bounds.
14384cat >conftest.$ac_ext <<_ACEOF
14385/* confdefs.h. */
14386_ACEOF
14387cat confdefs.h >>conftest.$ac_ext
14388cat >>conftest.$ac_ext <<_ACEOF
14389/* end confdefs.h. */
14390$ac_includes_default
14391int
14392main ()
14393{
14394static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14395test_array [0] = 0
14396
14397 ;
14398 return 0;
14399}
14400_ACEOF
14401rm -f conftest.$ac_objext
14402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14403 (eval $ac_compile) 2>conftest.er1
a848cd7e 14404 ac_status=$?
ac1cb8d3
VS
14405 grep -v '^ *+' conftest.er1 >conftest.err
14406 rm -f conftest.er1
14407 cat conftest.err >&5
a848cd7e
SC
14408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409 (exit $ac_status); } &&
ea7db9ff
DE
14410 { ac_try='test -z "$ac_c_werror_flag"
14411 || test ! -s conftest.err'
ac1cb8d3
VS
14412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14413 (eval $ac_try) 2>&5
14414 ac_status=$?
14415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416 (exit $ac_status); }; } &&
14417 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14419 (eval $ac_try) 2>&5
14420 ac_status=$?
14421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422 (exit $ac_status); }; }; then
14423 ac_lo=0 ac_mid=0
14424 while :; do
14425 cat >conftest.$ac_ext <<_ACEOF
14426/* confdefs.h. */
14427_ACEOF
14428cat confdefs.h >>conftest.$ac_ext
14429cat >>conftest.$ac_ext <<_ACEOF
14430/* end confdefs.h. */
14431$ac_includes_default
14432int
14433main ()
14434{
14435static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14436test_array [0] = 0
14437
14438 ;
14439 return 0;
14440}
14441_ACEOF
14442rm -f conftest.$ac_objext
14443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14444 (eval $ac_compile) 2>conftest.er1
a848cd7e 14445 ac_status=$?
ac1cb8d3
VS
14446 grep -v '^ *+' conftest.er1 >conftest.err
14447 rm -f conftest.er1
14448 cat conftest.err >&5
a848cd7e
SC
14449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450 (exit $ac_status); } &&
ea7db9ff
DE
14451 { ac_try='test -z "$ac_c_werror_flag"
14452 || test ! -s conftest.err'
ac1cb8d3
VS
14453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14454 (eval $ac_try) 2>&5
14455 ac_status=$?
14456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457 (exit $ac_status); }; } &&
14458 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14460 (eval $ac_try) 2>&5
14461 ac_status=$?
14462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463 (exit $ac_status); }; }; then
14464 ac_hi=$ac_mid; break
14465else
14466 echo "$as_me: failed program was:" >&5
14467sed 's/^/| /' conftest.$ac_ext >&5
14468
14469ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
14470 if test $ac_lo -le $ac_mid; then
14471 ac_lo= ac_hi=
14472 break
14473 fi
14474 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 14475fi
ac1cb8d3 14476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14477 done
14478else
14479 echo "$as_me: failed program was:" >&5
14480sed 's/^/| /' conftest.$ac_ext >&5
14481
14482cat >conftest.$ac_ext <<_ACEOF
14483/* confdefs.h. */
14484_ACEOF
14485cat confdefs.h >>conftest.$ac_ext
14486cat >>conftest.$ac_ext <<_ACEOF
14487/* end confdefs.h. */
14488$ac_includes_default
14489int
14490main ()
14491{
14492static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14493test_array [0] = 0
14494
14495 ;
14496 return 0;
14497}
14498_ACEOF
14499rm -f conftest.$ac_objext
14500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14501 (eval $ac_compile) 2>conftest.er1
a848cd7e 14502 ac_status=$?
ac1cb8d3
VS
14503 grep -v '^ *+' conftest.er1 >conftest.err
14504 rm -f conftest.er1
14505 cat conftest.err >&5
a848cd7e
SC
14506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14507 (exit $ac_status); } &&
ea7db9ff
DE
14508 { ac_try='test -z "$ac_c_werror_flag"
14509 || test ! -s conftest.err'
ac1cb8d3
VS
14510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14511 (eval $ac_try) 2>&5
14512 ac_status=$?
14513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14514 (exit $ac_status); }; } &&
14515 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14517 (eval $ac_try) 2>&5
14518 ac_status=$?
14519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520 (exit $ac_status); }; }; then
14521 ac_hi=-1 ac_mid=-1
14522 while :; do
14523 cat >conftest.$ac_ext <<_ACEOF
14524/* confdefs.h. */
14525_ACEOF
14526cat confdefs.h >>conftest.$ac_ext
14527cat >>conftest.$ac_ext <<_ACEOF
14528/* end confdefs.h. */
14529$ac_includes_default
14530int
14531main ()
14532{
14533static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14534test_array [0] = 0
14535
14536 ;
14537 return 0;
14538}
14539_ACEOF
14540rm -f conftest.$ac_objext
14541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14542 (eval $ac_compile) 2>conftest.er1
a848cd7e 14543 ac_status=$?
ac1cb8d3
VS
14544 grep -v '^ *+' conftest.er1 >conftest.err
14545 rm -f conftest.er1
14546 cat conftest.err >&5
a848cd7e
SC
14547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548 (exit $ac_status); } &&
ea7db9ff
DE
14549 { ac_try='test -z "$ac_c_werror_flag"
14550 || test ! -s conftest.err'
ac1cb8d3
VS
14551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14552 (eval $ac_try) 2>&5
14553 ac_status=$?
14554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555 (exit $ac_status); }; } &&
14556 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14558 (eval $ac_try) 2>&5
14559 ac_status=$?
14560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561 (exit $ac_status); }; }; then
14562 ac_lo=$ac_mid; break
14563else
14564 echo "$as_me: failed program was:" >&5
14565sed 's/^/| /' conftest.$ac_ext >&5
14566
14567ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
14568 if test $ac_mid -le $ac_hi; then
14569 ac_lo= ac_hi=
14570 break
14571 fi
14572 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 14573fi
ac1cb8d3 14574rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14575 done
14576else
14577 echo "$as_me: failed program was:" >&5
14578sed 's/^/| /' conftest.$ac_ext >&5
14579
14580ac_lo= ac_hi=
14581fi
ac1cb8d3 14582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 14583fi
ac1cb8d3 14584rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14585# Binary search between lo and hi bounds.
14586while test "x$ac_lo" != "x$ac_hi"; do
14587 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14588 cat >conftest.$ac_ext <<_ACEOF
14589/* confdefs.h. */
14590_ACEOF
14591cat confdefs.h >>conftest.$ac_ext
14592cat >>conftest.$ac_ext <<_ACEOF
14593/* end confdefs.h. */
14594$ac_includes_default
14595int
14596main ()
14597{
14598static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14599test_array [0] = 0
14600
14601 ;
14602 return 0;
14603}
14604_ACEOF
14605rm -f conftest.$ac_objext
14606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14607 (eval $ac_compile) 2>conftest.er1
a848cd7e 14608 ac_status=$?
ac1cb8d3
VS
14609 grep -v '^ *+' conftest.er1 >conftest.err
14610 rm -f conftest.er1
14611 cat conftest.err >&5
a848cd7e
SC
14612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14613 (exit $ac_status); } &&
ea7db9ff
DE
14614 { ac_try='test -z "$ac_c_werror_flag"
14615 || test ! -s conftest.err'
ac1cb8d3
VS
14616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14617 (eval $ac_try) 2>&5
14618 ac_status=$?
14619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620 (exit $ac_status); }; } &&
14621 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14623 (eval $ac_try) 2>&5
14624 ac_status=$?
14625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626 (exit $ac_status); }; }; then
14627 ac_hi=$ac_mid
14628else
14629 echo "$as_me: failed program was:" >&5
14630sed 's/^/| /' conftest.$ac_ext >&5
14631
14632ac_lo=`expr '(' $ac_mid ')' + 1`
14633fi
ac1cb8d3 14634rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14635done
14636case $ac_lo in
14637?*) ac_cv_sizeof_char=$ac_lo;;
14638'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14639See \`config.log' for more details." >&5
14640echo "$as_me: error: cannot compute sizeof (char), 77
14641See \`config.log' for more details." >&2;}
14642 { (exit 1); exit 1; }; } ;;
14643esac
14644else
14645 if test "$cross_compiling" = yes; then
ea7db9ff
DE
14646 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14647See \`config.log' for more details." >&5
14648echo "$as_me: error: cannot run test program while cross compiling
14649See \`config.log' for more details." >&2;}
a848cd7e
SC
14650 { (exit 1); exit 1; }; }
14651else
14652 cat >conftest.$ac_ext <<_ACEOF
14653/* confdefs.h. */
14654_ACEOF
14655cat confdefs.h >>conftest.$ac_ext
14656cat >>conftest.$ac_ext <<_ACEOF
14657/* end confdefs.h. */
14658$ac_includes_default
14659long longval () { return (long) (sizeof (char)); }
14660unsigned long ulongval () { return (long) (sizeof (char)); }
14661#include <stdio.h>
14662#include <stdlib.h>
14663int
14664main ()
14665{
14666
14667 FILE *f = fopen ("conftest.val", "w");
14668 if (! f)
14669 exit (1);
14670 if (((long) (sizeof (char))) < 0)
14671 {
14672 long i = longval ();
14673 if (i != ((long) (sizeof (char))))
14674 exit (1);
14675 fprintf (f, "%ld\n", i);
14676 }
14677 else
14678 {
14679 unsigned long i = ulongval ();
14680 if (i != ((long) (sizeof (char))))
14681 exit (1);
14682 fprintf (f, "%lu\n", i);
14683 }
14684 exit (ferror (f) || fclose (f) != 0);
14685
14686 ;
14687 return 0;
14688}
14689_ACEOF
14690rm -f conftest$ac_exeext
14691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14692 (eval $ac_link) 2>&5
14693 ac_status=$?
14694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14695 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14697 (eval $ac_try) 2>&5
14698 ac_status=$?
14699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700 (exit $ac_status); }; }; then
14701 ac_cv_sizeof_char=`cat conftest.val`
14702else
14703 echo "$as_me: program exited with status $ac_status" >&5
14704echo "$as_me: failed program was:" >&5
14705sed 's/^/| /' conftest.$ac_ext >&5
14706
14707( exit $ac_status )
14708{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14709See \`config.log' for more details." >&5
14710echo "$as_me: error: cannot compute sizeof (char), 77
14711See \`config.log' for more details." >&2;}
14712 { (exit 1); exit 1; }; }
14713fi
ac1cb8d3 14714rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14715fi
14716fi
14717rm -f conftest.val
14718else
14719 ac_cv_sizeof_char=0
14720fi
14721fi
14722echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14723echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14724cat >>confdefs.h <<_ACEOF
14725#define SIZEOF_CHAR $ac_cv_sizeof_char
14726_ACEOF
14727
14728
14729echo "$as_me:$LINENO: checking for short" >&5
14730echo $ECHO_N "checking for short... $ECHO_C" >&6
14731if test "${ac_cv_type_short+set}" = set; then
14732 echo $ECHO_N "(cached) $ECHO_C" >&6
14733else
14734 cat >conftest.$ac_ext <<_ACEOF
14735/* confdefs.h. */
14736_ACEOF
14737cat confdefs.h >>conftest.$ac_ext
14738cat >>conftest.$ac_ext <<_ACEOF
14739/* end confdefs.h. */
14740$ac_includes_default
14741int
14742main ()
14743{
14744if ((short *) 0)
14745 return 0;
14746if (sizeof (short))
14747 return 0;
14748 ;
14749 return 0;
14750}
14751_ACEOF
14752rm -f conftest.$ac_objext
14753if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14754 (eval $ac_compile) 2>conftest.er1
a848cd7e 14755 ac_status=$?
ac1cb8d3
VS
14756 grep -v '^ *+' conftest.er1 >conftest.err
14757 rm -f conftest.er1
14758 cat conftest.err >&5
a848cd7e
SC
14759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760 (exit $ac_status); } &&
ea7db9ff
DE
14761 { ac_try='test -z "$ac_c_werror_flag"
14762 || test ! -s conftest.err'
ac1cb8d3
VS
14763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14764 (eval $ac_try) 2>&5
14765 ac_status=$?
14766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767 (exit $ac_status); }; } &&
14768 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14770 (eval $ac_try) 2>&5
14771 ac_status=$?
14772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773 (exit $ac_status); }; }; then
14774 ac_cv_type_short=yes
14775else
14776 echo "$as_me: failed program was:" >&5
14777sed 's/^/| /' conftest.$ac_ext >&5
14778
14779ac_cv_type_short=no
14780fi
ac1cb8d3 14781rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14782fi
14783echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14784echo "${ECHO_T}$ac_cv_type_short" >&6
14785
14786echo "$as_me:$LINENO: checking size of short" >&5
14787echo $ECHO_N "checking size of short... $ECHO_C" >&6
14788if test "${ac_cv_sizeof_short+set}" = set; then
14789 echo $ECHO_N "(cached) $ECHO_C" >&6
14790else
14791 if test "$ac_cv_type_short" = yes; then
14792 # The cast to unsigned long works around a bug in the HP C Compiler
14793 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14794 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14795 # This bug is HP SR number 8606223364.
14796 if test "$cross_compiling" = yes; then
14797 # Depending upon the size, compute the lo and hi bounds.
14798cat >conftest.$ac_ext <<_ACEOF
14799/* confdefs.h. */
14800_ACEOF
14801cat confdefs.h >>conftest.$ac_ext
14802cat >>conftest.$ac_ext <<_ACEOF
14803/* end confdefs.h. */
14804$ac_includes_default
14805int
14806main ()
14807{
14808static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14809test_array [0] = 0
14810
14811 ;
14812 return 0;
14813}
14814_ACEOF
14815rm -f conftest.$ac_objext
14816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14817 (eval $ac_compile) 2>conftest.er1
a848cd7e 14818 ac_status=$?
ac1cb8d3
VS
14819 grep -v '^ *+' conftest.er1 >conftest.err
14820 rm -f conftest.er1
14821 cat conftest.err >&5
a848cd7e
SC
14822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823 (exit $ac_status); } &&
ea7db9ff
DE
14824 { ac_try='test -z "$ac_c_werror_flag"
14825 || test ! -s conftest.err'
ac1cb8d3
VS
14826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14827 (eval $ac_try) 2>&5
14828 ac_status=$?
14829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14830 (exit $ac_status); }; } &&
14831 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14833 (eval $ac_try) 2>&5
14834 ac_status=$?
14835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836 (exit $ac_status); }; }; then
14837 ac_lo=0 ac_mid=0
14838 while :; do
14839 cat >conftest.$ac_ext <<_ACEOF
14840/* confdefs.h. */
14841_ACEOF
14842cat confdefs.h >>conftest.$ac_ext
14843cat >>conftest.$ac_ext <<_ACEOF
14844/* end confdefs.h. */
14845$ac_includes_default
14846int
14847main ()
14848{
14849static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14850test_array [0] = 0
14851
14852 ;
14853 return 0;
14854}
14855_ACEOF
14856rm -f conftest.$ac_objext
14857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14858 (eval $ac_compile) 2>conftest.er1
a848cd7e 14859 ac_status=$?
ac1cb8d3
VS
14860 grep -v '^ *+' conftest.er1 >conftest.err
14861 rm -f conftest.er1
14862 cat conftest.err >&5
a848cd7e
SC
14863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864 (exit $ac_status); } &&
ea7db9ff
DE
14865 { ac_try='test -z "$ac_c_werror_flag"
14866 || test ! -s conftest.err'
ac1cb8d3
VS
14867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14868 (eval $ac_try) 2>&5
14869 ac_status=$?
14870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871 (exit $ac_status); }; } &&
14872 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14874 (eval $ac_try) 2>&5
14875 ac_status=$?
14876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877 (exit $ac_status); }; }; then
14878 ac_hi=$ac_mid; break
14879else
14880 echo "$as_me: failed program was:" >&5
14881sed 's/^/| /' conftest.$ac_ext >&5
14882
14883ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
14884 if test $ac_lo -le $ac_mid; then
14885 ac_lo= ac_hi=
14886 break
14887 fi
14888 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 14889fi
ac1cb8d3 14890rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14891 done
14892else
14893 echo "$as_me: failed program was:" >&5
14894sed 's/^/| /' conftest.$ac_ext >&5
14895
14896cat >conftest.$ac_ext <<_ACEOF
14897/* confdefs.h. */
14898_ACEOF
14899cat confdefs.h >>conftest.$ac_ext
14900cat >>conftest.$ac_ext <<_ACEOF
14901/* end confdefs.h. */
14902$ac_includes_default
14903int
14904main ()
14905{
14906static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14907test_array [0] = 0
14908
14909 ;
14910 return 0;
14911}
14912_ACEOF
14913rm -f conftest.$ac_objext
14914if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14915 (eval $ac_compile) 2>conftest.er1
a848cd7e 14916 ac_status=$?
ac1cb8d3
VS
14917 grep -v '^ *+' conftest.er1 >conftest.err
14918 rm -f conftest.er1
14919 cat conftest.err >&5
a848cd7e
SC
14920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921 (exit $ac_status); } &&
ea7db9ff
DE
14922 { ac_try='test -z "$ac_c_werror_flag"
14923 || test ! -s conftest.err'
ac1cb8d3
VS
14924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14925 (eval $ac_try) 2>&5
14926 ac_status=$?
14927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14928 (exit $ac_status); }; } &&
14929 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14931 (eval $ac_try) 2>&5
14932 ac_status=$?
14933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934 (exit $ac_status); }; }; then
14935 ac_hi=-1 ac_mid=-1
14936 while :; do
14937 cat >conftest.$ac_ext <<_ACEOF
14938/* confdefs.h. */
14939_ACEOF
14940cat confdefs.h >>conftest.$ac_ext
14941cat >>conftest.$ac_ext <<_ACEOF
14942/* end confdefs.h. */
14943$ac_includes_default
14944int
14945main ()
14946{
14947static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14948test_array [0] = 0
14949
14950 ;
14951 return 0;
14952}
14953_ACEOF
14954rm -f conftest.$ac_objext
14955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14956 (eval $ac_compile) 2>conftest.er1
a848cd7e 14957 ac_status=$?
ac1cb8d3
VS
14958 grep -v '^ *+' conftest.er1 >conftest.err
14959 rm -f conftest.er1
14960 cat conftest.err >&5
a848cd7e
SC
14961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962 (exit $ac_status); } &&
ea7db9ff
DE
14963 { ac_try='test -z "$ac_c_werror_flag"
14964 || test ! -s conftest.err'
ac1cb8d3
VS
14965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14966 (eval $ac_try) 2>&5
14967 ac_status=$?
14968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14969 (exit $ac_status); }; } &&
14970 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14972 (eval $ac_try) 2>&5
14973 ac_status=$?
14974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975 (exit $ac_status); }; }; then
14976 ac_lo=$ac_mid; break
14977else
14978 echo "$as_me: failed program was:" >&5
14979sed 's/^/| /' conftest.$ac_ext >&5
14980
14981ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
14982 if test $ac_mid -le $ac_hi; then
14983 ac_lo= ac_hi=
14984 break
14985 fi
14986 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 14987fi
ac1cb8d3 14988rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14989 done
14990else
14991 echo "$as_me: failed program was:" >&5
14992sed 's/^/| /' conftest.$ac_ext >&5
14993
14994ac_lo= ac_hi=
14995fi
ac1cb8d3 14996rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 14997fi
ac1cb8d3 14998rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14999# Binary search between lo and hi bounds.
15000while test "x$ac_lo" != "x$ac_hi"; do
15001 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15002 cat >conftest.$ac_ext <<_ACEOF
15003/* confdefs.h. */
15004_ACEOF
15005cat confdefs.h >>conftest.$ac_ext
15006cat >>conftest.$ac_ext <<_ACEOF
15007/* end confdefs.h. */
15008$ac_includes_default
15009int
15010main ()
15011{
15012static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15013test_array [0] = 0
15014
15015 ;
15016 return 0;
15017}
15018_ACEOF
15019rm -f conftest.$ac_objext
15020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15021 (eval $ac_compile) 2>conftest.er1
a848cd7e 15022 ac_status=$?
ac1cb8d3
VS
15023 grep -v '^ *+' conftest.er1 >conftest.err
15024 rm -f conftest.er1
15025 cat conftest.err >&5
a848cd7e
SC
15026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027 (exit $ac_status); } &&
ea7db9ff
DE
15028 { ac_try='test -z "$ac_c_werror_flag"
15029 || test ! -s conftest.err'
ac1cb8d3
VS
15030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15031 (eval $ac_try) 2>&5
15032 ac_status=$?
15033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15034 (exit $ac_status); }; } &&
15035 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15037 (eval $ac_try) 2>&5
15038 ac_status=$?
15039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15040 (exit $ac_status); }; }; then
15041 ac_hi=$ac_mid
15042else
15043 echo "$as_me: failed program was:" >&5
15044sed 's/^/| /' conftest.$ac_ext >&5
15045
15046ac_lo=`expr '(' $ac_mid ')' + 1`
15047fi
ac1cb8d3 15048rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15049done
15050case $ac_lo in
15051?*) ac_cv_sizeof_short=$ac_lo;;
15052'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15053See \`config.log' for more details." >&5
15054echo "$as_me: error: cannot compute sizeof (short), 77
15055See \`config.log' for more details." >&2;}
15056 { (exit 1); exit 1; }; } ;;
15057esac
15058else
15059 if test "$cross_compiling" = yes; then
ea7db9ff
DE
15060 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15061See \`config.log' for more details." >&5
15062echo "$as_me: error: cannot run test program while cross compiling
15063See \`config.log' for more details." >&2;}
a848cd7e
SC
15064 { (exit 1); exit 1; }; }
15065else
15066 cat >conftest.$ac_ext <<_ACEOF
15067/* confdefs.h. */
15068_ACEOF
15069cat confdefs.h >>conftest.$ac_ext
15070cat >>conftest.$ac_ext <<_ACEOF
15071/* end confdefs.h. */
15072$ac_includes_default
15073long longval () { return (long) (sizeof (short)); }
15074unsigned long ulongval () { return (long) (sizeof (short)); }
15075#include <stdio.h>
15076#include <stdlib.h>
15077int
15078main ()
15079{
15080
15081 FILE *f = fopen ("conftest.val", "w");
15082 if (! f)
15083 exit (1);
15084 if (((long) (sizeof (short))) < 0)
15085 {
15086 long i = longval ();
15087 if (i != ((long) (sizeof (short))))
15088 exit (1);
15089 fprintf (f, "%ld\n", i);
15090 }
15091 else
15092 {
15093 unsigned long i = ulongval ();
15094 if (i != ((long) (sizeof (short))))
15095 exit (1);
15096 fprintf (f, "%lu\n", i);
15097 }
15098 exit (ferror (f) || fclose (f) != 0);
15099
15100 ;
15101 return 0;
15102}
15103_ACEOF
15104rm -f conftest$ac_exeext
15105if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15106 (eval $ac_link) 2>&5
15107 ac_status=$?
15108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15111 (eval $ac_try) 2>&5
15112 ac_status=$?
15113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114 (exit $ac_status); }; }; then
15115 ac_cv_sizeof_short=`cat conftest.val`
15116else
15117 echo "$as_me: program exited with status $ac_status" >&5
15118echo "$as_me: failed program was:" >&5
15119sed 's/^/| /' conftest.$ac_ext >&5
15120
15121( exit $ac_status )
15122{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15123See \`config.log' for more details." >&5
15124echo "$as_me: error: cannot compute sizeof (short), 77
15125See \`config.log' for more details." >&2;}
15126 { (exit 1); exit 1; }; }
15127fi
ac1cb8d3 15128rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15129fi
15130fi
15131rm -f conftest.val
15132else
15133 ac_cv_sizeof_short=0
15134fi
15135fi
15136echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15137echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15138cat >>confdefs.h <<_ACEOF
15139#define SIZEOF_SHORT $ac_cv_sizeof_short
15140_ACEOF
15141
15142
15143echo "$as_me:$LINENO: checking for void *" >&5
15144echo $ECHO_N "checking for void *... $ECHO_C" >&6
15145if test "${ac_cv_type_void_p+set}" = set; then
15146 echo $ECHO_N "(cached) $ECHO_C" >&6
15147else
15148 cat >conftest.$ac_ext <<_ACEOF
15149/* confdefs.h. */
15150_ACEOF
15151cat confdefs.h >>conftest.$ac_ext
15152cat >>conftest.$ac_ext <<_ACEOF
15153/* end confdefs.h. */
15154$ac_includes_default
15155int
15156main ()
15157{
15158if ((void * *) 0)
15159 return 0;
15160if (sizeof (void *))
15161 return 0;
15162 ;
15163 return 0;
15164}
15165_ACEOF
15166rm -f conftest.$ac_objext
15167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15168 (eval $ac_compile) 2>conftest.er1
a848cd7e 15169 ac_status=$?
ac1cb8d3
VS
15170 grep -v '^ *+' conftest.er1 >conftest.err
15171 rm -f conftest.er1
15172 cat conftest.err >&5
a848cd7e
SC
15173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174 (exit $ac_status); } &&
ea7db9ff
DE
15175 { ac_try='test -z "$ac_c_werror_flag"
15176 || test ! -s conftest.err'
ac1cb8d3
VS
15177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15178 (eval $ac_try) 2>&5
15179 ac_status=$?
15180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15181 (exit $ac_status); }; } &&
15182 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15184 (eval $ac_try) 2>&5
15185 ac_status=$?
15186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187 (exit $ac_status); }; }; then
15188 ac_cv_type_void_p=yes
15189else
15190 echo "$as_me: failed program was:" >&5
15191sed 's/^/| /' conftest.$ac_ext >&5
15192
15193ac_cv_type_void_p=no
15194fi
ac1cb8d3 15195rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15196fi
15197echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
15198echo "${ECHO_T}$ac_cv_type_void_p" >&6
15199
15200echo "$as_me:$LINENO: checking size of void *" >&5
15201echo $ECHO_N "checking size of void *... $ECHO_C" >&6
15202if test "${ac_cv_sizeof_void_p+set}" = set; then
15203 echo $ECHO_N "(cached) $ECHO_C" >&6
15204else
15205 if test "$ac_cv_type_void_p" = yes; then
15206 # The cast to unsigned long works around a bug in the HP C Compiler
15207 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15208 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15209 # This bug is HP SR number 8606223364.
15210 if test "$cross_compiling" = yes; then
15211 # Depending upon the size, compute the lo and hi bounds.
15212cat >conftest.$ac_ext <<_ACEOF
15213/* confdefs.h. */
15214_ACEOF
15215cat confdefs.h >>conftest.$ac_ext
15216cat >>conftest.$ac_ext <<_ACEOF
15217/* end confdefs.h. */
15218$ac_includes_default
15219int
15220main ()
15221{
15222static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
15223test_array [0] = 0
15224
15225 ;
15226 return 0;
15227}
15228_ACEOF
15229rm -f conftest.$ac_objext
15230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15231 (eval $ac_compile) 2>conftest.er1
a848cd7e 15232 ac_status=$?
ac1cb8d3
VS
15233 grep -v '^ *+' conftest.er1 >conftest.err
15234 rm -f conftest.er1
15235 cat conftest.err >&5
a848cd7e
SC
15236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15237 (exit $ac_status); } &&
ea7db9ff
DE
15238 { ac_try='test -z "$ac_c_werror_flag"
15239 || test ! -s conftest.err'
ac1cb8d3
VS
15240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15241 (eval $ac_try) 2>&5
15242 ac_status=$?
15243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244 (exit $ac_status); }; } &&
15245 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15247 (eval $ac_try) 2>&5
15248 ac_status=$?
15249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15250 (exit $ac_status); }; }; then
15251 ac_lo=0 ac_mid=0
15252 while :; do
15253 cat >conftest.$ac_ext <<_ACEOF
15254/* confdefs.h. */
15255_ACEOF
15256cat confdefs.h >>conftest.$ac_ext
15257cat >>conftest.$ac_ext <<_ACEOF
15258/* end confdefs.h. */
15259$ac_includes_default
15260int
15261main ()
15262{
15263static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15264test_array [0] = 0
15265
15266 ;
15267 return 0;
15268}
15269_ACEOF
15270rm -f conftest.$ac_objext
15271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15272 (eval $ac_compile) 2>conftest.er1
a848cd7e 15273 ac_status=$?
ac1cb8d3
VS
15274 grep -v '^ *+' conftest.er1 >conftest.err
15275 rm -f conftest.er1
15276 cat conftest.err >&5
a848cd7e
SC
15277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278 (exit $ac_status); } &&
ea7db9ff
DE
15279 { ac_try='test -z "$ac_c_werror_flag"
15280 || test ! -s conftest.err'
ac1cb8d3
VS
15281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15282 (eval $ac_try) 2>&5
15283 ac_status=$?
15284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285 (exit $ac_status); }; } &&
15286 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15288 (eval $ac_try) 2>&5
15289 ac_status=$?
15290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15291 (exit $ac_status); }; }; then
15292 ac_hi=$ac_mid; break
15293else
15294 echo "$as_me: failed program was:" >&5
15295sed 's/^/| /' conftest.$ac_ext >&5
15296
15297ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15298 if test $ac_lo -le $ac_mid; then
15299 ac_lo= ac_hi=
15300 break
15301 fi
15302 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15303fi
ac1cb8d3 15304rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15305 done
15306else
15307 echo "$as_me: failed program was:" >&5
15308sed 's/^/| /' conftest.$ac_ext >&5
15309
15310cat >conftest.$ac_ext <<_ACEOF
15311/* confdefs.h. */
15312_ACEOF
15313cat confdefs.h >>conftest.$ac_ext
15314cat >>conftest.$ac_ext <<_ACEOF
15315/* end confdefs.h. */
15316$ac_includes_default
15317int
15318main ()
15319{
15320static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15321test_array [0] = 0
15322
15323 ;
15324 return 0;
15325}
15326_ACEOF
15327rm -f conftest.$ac_objext
15328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15329 (eval $ac_compile) 2>conftest.er1
a848cd7e 15330 ac_status=$?
ac1cb8d3
VS
15331 grep -v '^ *+' conftest.er1 >conftest.err
15332 rm -f conftest.er1
15333 cat conftest.err >&5
a848cd7e
SC
15334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335 (exit $ac_status); } &&
ea7db9ff
DE
15336 { ac_try='test -z "$ac_c_werror_flag"
15337 || test ! -s conftest.err'
ac1cb8d3
VS
15338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15339 (eval $ac_try) 2>&5
15340 ac_status=$?
15341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342 (exit $ac_status); }; } &&
15343 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15345 (eval $ac_try) 2>&5
15346 ac_status=$?
15347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348 (exit $ac_status); }; }; then
15349 ac_hi=-1 ac_mid=-1
15350 while :; do
15351 cat >conftest.$ac_ext <<_ACEOF
15352/* confdefs.h. */
15353_ACEOF
15354cat confdefs.h >>conftest.$ac_ext
15355cat >>conftest.$ac_ext <<_ACEOF
15356/* end confdefs.h. */
15357$ac_includes_default
15358int
15359main ()
15360{
15361static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15362test_array [0] = 0
15363
15364 ;
15365 return 0;
15366}
15367_ACEOF
15368rm -f conftest.$ac_objext
15369if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15370 (eval $ac_compile) 2>conftest.er1
a848cd7e 15371 ac_status=$?
ac1cb8d3
VS
15372 grep -v '^ *+' conftest.er1 >conftest.err
15373 rm -f conftest.er1
15374 cat conftest.err >&5
a848cd7e
SC
15375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376 (exit $ac_status); } &&
ea7db9ff
DE
15377 { ac_try='test -z "$ac_c_werror_flag"
15378 || test ! -s conftest.err'
ac1cb8d3
VS
15379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15380 (eval $ac_try) 2>&5
15381 ac_status=$?
15382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); }; } &&
15384 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15386 (eval $ac_try) 2>&5
15387 ac_status=$?
15388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15389 (exit $ac_status); }; }; then
15390 ac_lo=$ac_mid; break
15391else
15392 echo "$as_me: failed program was:" >&5
15393sed 's/^/| /' conftest.$ac_ext >&5
15394
15395ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15396 if test $ac_mid -le $ac_hi; then
15397 ac_lo= ac_hi=
15398 break
15399 fi
15400 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15401fi
ac1cb8d3 15402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15403 done
15404else
15405 echo "$as_me: failed program was:" >&5
15406sed 's/^/| /' conftest.$ac_ext >&5
15407
15408ac_lo= ac_hi=
15409fi
ac1cb8d3 15410rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15411fi
ac1cb8d3 15412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15413# Binary search between lo and hi bounds.
15414while test "x$ac_lo" != "x$ac_hi"; do
15415 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15416 cat >conftest.$ac_ext <<_ACEOF
15417/* confdefs.h. */
15418_ACEOF
15419cat confdefs.h >>conftest.$ac_ext
15420cat >>conftest.$ac_ext <<_ACEOF
15421/* end confdefs.h. */
15422$ac_includes_default
15423int
15424main ()
15425{
15426static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15427test_array [0] = 0
15428
15429 ;
15430 return 0;
15431}
15432_ACEOF
15433rm -f conftest.$ac_objext
15434if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15435 (eval $ac_compile) 2>conftest.er1
a848cd7e 15436 ac_status=$?
ac1cb8d3
VS
15437 grep -v '^ *+' conftest.er1 >conftest.err
15438 rm -f conftest.er1
15439 cat conftest.err >&5
a848cd7e
SC
15440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15441 (exit $ac_status); } &&
ea7db9ff
DE
15442 { ac_try='test -z "$ac_c_werror_flag"
15443 || test ! -s conftest.err'
ac1cb8d3
VS
15444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15445 (eval $ac_try) 2>&5
15446 ac_status=$?
15447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15448 (exit $ac_status); }; } &&
15449 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15451 (eval $ac_try) 2>&5
15452 ac_status=$?
15453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15454 (exit $ac_status); }; }; then
15455 ac_hi=$ac_mid
15456else
15457 echo "$as_me: failed program was:" >&5
15458sed 's/^/| /' conftest.$ac_ext >&5
15459
15460ac_lo=`expr '(' $ac_mid ')' + 1`
15461fi
ac1cb8d3 15462rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15463done
15464case $ac_lo in
15465?*) ac_cv_sizeof_void_p=$ac_lo;;
15466'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15467See \`config.log' for more details." >&5
15468echo "$as_me: error: cannot compute sizeof (void *), 77
15469See \`config.log' for more details." >&2;}
15470 { (exit 1); exit 1; }; } ;;
15471esac
15472else
15473 if test "$cross_compiling" = yes; then
ea7db9ff
DE
15474 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15475See \`config.log' for more details." >&5
15476echo "$as_me: error: cannot run test program while cross compiling
15477See \`config.log' for more details." >&2;}
a848cd7e
SC
15478 { (exit 1); exit 1; }; }
15479else
15480 cat >conftest.$ac_ext <<_ACEOF
15481/* confdefs.h. */
15482_ACEOF
15483cat confdefs.h >>conftest.$ac_ext
15484cat >>conftest.$ac_ext <<_ACEOF
15485/* end confdefs.h. */
15486$ac_includes_default
15487long longval () { return (long) (sizeof (void *)); }
15488unsigned long ulongval () { return (long) (sizeof (void *)); }
15489#include <stdio.h>
15490#include <stdlib.h>
15491int
15492main ()
15493{
15494
15495 FILE *f = fopen ("conftest.val", "w");
15496 if (! f)
15497 exit (1);
15498 if (((long) (sizeof (void *))) < 0)
15499 {
15500 long i = longval ();
15501 if (i != ((long) (sizeof (void *))))
15502 exit (1);
15503 fprintf (f, "%ld\n", i);
15504 }
15505 else
15506 {
15507 unsigned long i = ulongval ();
15508 if (i != ((long) (sizeof (void *))))
15509 exit (1);
15510 fprintf (f, "%lu\n", i);
15511 }
15512 exit (ferror (f) || fclose (f) != 0);
15513
15514 ;
15515 return 0;
15516}
15517_ACEOF
15518rm -f conftest$ac_exeext
15519if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15520 (eval $ac_link) 2>&5
15521 ac_status=$?
15522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15525 (eval $ac_try) 2>&5
15526 ac_status=$?
15527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15528 (exit $ac_status); }; }; then
15529 ac_cv_sizeof_void_p=`cat conftest.val`
15530else
15531 echo "$as_me: program exited with status $ac_status" >&5
15532echo "$as_me: failed program was:" >&5
15533sed 's/^/| /' conftest.$ac_ext >&5
15534
15535( exit $ac_status )
15536{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15537See \`config.log' for more details." >&5
15538echo "$as_me: error: cannot compute sizeof (void *), 77
15539See \`config.log' for more details." >&2;}
15540 { (exit 1); exit 1; }; }
15541fi
ac1cb8d3 15542rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15543fi
15544fi
15545rm -f conftest.val
15546else
15547 ac_cv_sizeof_void_p=0
15548fi
15549fi
15550echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15551echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15552cat >>confdefs.h <<_ACEOF
15553#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15554_ACEOF
15555
15556
15557echo "$as_me:$LINENO: checking for int" >&5
15558echo $ECHO_N "checking for int... $ECHO_C" >&6
15559if test "${ac_cv_type_int+set}" = set; then
15560 echo $ECHO_N "(cached) $ECHO_C" >&6
15561else
15562 cat >conftest.$ac_ext <<_ACEOF
15563/* confdefs.h. */
15564_ACEOF
15565cat confdefs.h >>conftest.$ac_ext
15566cat >>conftest.$ac_ext <<_ACEOF
15567/* end confdefs.h. */
15568$ac_includes_default
15569int
15570main ()
15571{
15572if ((int *) 0)
15573 return 0;
15574if (sizeof (int))
15575 return 0;
15576 ;
15577 return 0;
15578}
15579_ACEOF
15580rm -f conftest.$ac_objext
15581if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15582 (eval $ac_compile) 2>conftest.er1
a848cd7e 15583 ac_status=$?
ac1cb8d3
VS
15584 grep -v '^ *+' conftest.er1 >conftest.err
15585 rm -f conftest.er1
15586 cat conftest.err >&5
a848cd7e
SC
15587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588 (exit $ac_status); } &&
ea7db9ff
DE
15589 { ac_try='test -z "$ac_c_werror_flag"
15590 || test ! -s conftest.err'
ac1cb8d3
VS
15591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15592 (eval $ac_try) 2>&5
15593 ac_status=$?
15594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595 (exit $ac_status); }; } &&
15596 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15598 (eval $ac_try) 2>&5
15599 ac_status=$?
15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); }; }; then
15602 ac_cv_type_int=yes
15603else
15604 echo "$as_me: failed program was:" >&5
15605sed 's/^/| /' conftest.$ac_ext >&5
15606
15607ac_cv_type_int=no
15608fi
ac1cb8d3 15609rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15610fi
15611echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15612echo "${ECHO_T}$ac_cv_type_int" >&6
15613
15614echo "$as_me:$LINENO: checking size of int" >&5
15615echo $ECHO_N "checking size of int... $ECHO_C" >&6
15616if test "${ac_cv_sizeof_int+set}" = set; then
15617 echo $ECHO_N "(cached) $ECHO_C" >&6
15618else
15619 if test "$ac_cv_type_int" = yes; then
15620 # The cast to unsigned long works around a bug in the HP C Compiler
15621 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15622 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15623 # This bug is HP SR number 8606223364.
15624 if test "$cross_compiling" = yes; then
15625 # Depending upon the size, compute the lo and hi bounds.
15626cat >conftest.$ac_ext <<_ACEOF
15627/* confdefs.h. */
15628_ACEOF
15629cat confdefs.h >>conftest.$ac_ext
15630cat >>conftest.$ac_ext <<_ACEOF
15631/* end confdefs.h. */
15632$ac_includes_default
15633int
15634main ()
15635{
15636static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15637test_array [0] = 0
15638
15639 ;
15640 return 0;
15641}
15642_ACEOF
15643rm -f conftest.$ac_objext
15644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15645 (eval $ac_compile) 2>conftest.er1
a848cd7e 15646 ac_status=$?
ac1cb8d3
VS
15647 grep -v '^ *+' conftest.er1 >conftest.err
15648 rm -f conftest.er1
15649 cat conftest.err >&5
a848cd7e
SC
15650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651 (exit $ac_status); } &&
ea7db9ff
DE
15652 { ac_try='test -z "$ac_c_werror_flag"
15653 || test ! -s conftest.err'
ac1cb8d3
VS
15654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15655 (eval $ac_try) 2>&5
15656 ac_status=$?
15657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658 (exit $ac_status); }; } &&
15659 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15661 (eval $ac_try) 2>&5
15662 ac_status=$?
15663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664 (exit $ac_status); }; }; then
15665 ac_lo=0 ac_mid=0
15666 while :; do
15667 cat >conftest.$ac_ext <<_ACEOF
15668/* confdefs.h. */
15669_ACEOF
15670cat confdefs.h >>conftest.$ac_ext
15671cat >>conftest.$ac_ext <<_ACEOF
15672/* end confdefs.h. */
15673$ac_includes_default
15674int
15675main ()
15676{
15677static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15678test_array [0] = 0
15679
15680 ;
15681 return 0;
15682}
15683_ACEOF
15684rm -f conftest.$ac_objext
15685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15686 (eval $ac_compile) 2>conftest.er1
a848cd7e 15687 ac_status=$?
ac1cb8d3
VS
15688 grep -v '^ *+' conftest.er1 >conftest.err
15689 rm -f conftest.er1
15690 cat conftest.err >&5
a848cd7e
SC
15691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692 (exit $ac_status); } &&
ea7db9ff
DE
15693 { ac_try='test -z "$ac_c_werror_flag"
15694 || test ! -s conftest.err'
ac1cb8d3
VS
15695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15696 (eval $ac_try) 2>&5
15697 ac_status=$?
15698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699 (exit $ac_status); }; } &&
15700 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15702 (eval $ac_try) 2>&5
15703 ac_status=$?
15704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15705 (exit $ac_status); }; }; then
15706 ac_hi=$ac_mid; break
15707else
15708 echo "$as_me: failed program was:" >&5
15709sed 's/^/| /' conftest.$ac_ext >&5
15710
15711ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15712 if test $ac_lo -le $ac_mid; then
15713 ac_lo= ac_hi=
15714 break
15715 fi
15716 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15717fi
ac1cb8d3 15718rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15719 done
15720else
15721 echo "$as_me: failed program was:" >&5
15722sed 's/^/| /' conftest.$ac_ext >&5
15723
15724cat >conftest.$ac_ext <<_ACEOF
15725/* confdefs.h. */
15726_ACEOF
15727cat confdefs.h >>conftest.$ac_ext
15728cat >>conftest.$ac_ext <<_ACEOF
15729/* end confdefs.h. */
15730$ac_includes_default
15731int
15732main ()
15733{
15734static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15735test_array [0] = 0
15736
15737 ;
15738 return 0;
15739}
15740_ACEOF
15741rm -f conftest.$ac_objext
15742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15743 (eval $ac_compile) 2>conftest.er1
a848cd7e 15744 ac_status=$?
ac1cb8d3
VS
15745 grep -v '^ *+' conftest.er1 >conftest.err
15746 rm -f conftest.er1
15747 cat conftest.err >&5
a848cd7e
SC
15748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15749 (exit $ac_status); } &&
ea7db9ff
DE
15750 { ac_try='test -z "$ac_c_werror_flag"
15751 || test ! -s conftest.err'
ac1cb8d3
VS
15752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15753 (eval $ac_try) 2>&5
15754 ac_status=$?
15755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756 (exit $ac_status); }; } &&
15757 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15759 (eval $ac_try) 2>&5
15760 ac_status=$?
15761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762 (exit $ac_status); }; }; then
15763 ac_hi=-1 ac_mid=-1
15764 while :; do
15765 cat >conftest.$ac_ext <<_ACEOF
15766/* confdefs.h. */
15767_ACEOF
15768cat confdefs.h >>conftest.$ac_ext
15769cat >>conftest.$ac_ext <<_ACEOF
15770/* end confdefs.h. */
15771$ac_includes_default
15772int
15773main ()
15774{
15775static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15776test_array [0] = 0
15777
15778 ;
15779 return 0;
15780}
15781_ACEOF
15782rm -f conftest.$ac_objext
15783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15784 (eval $ac_compile) 2>conftest.er1
a848cd7e 15785 ac_status=$?
ac1cb8d3
VS
15786 grep -v '^ *+' conftest.er1 >conftest.err
15787 rm -f conftest.er1
15788 cat conftest.err >&5
a848cd7e
SC
15789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15790 (exit $ac_status); } &&
ea7db9ff
DE
15791 { ac_try='test -z "$ac_c_werror_flag"
15792 || test ! -s conftest.err'
ac1cb8d3
VS
15793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15794 (eval $ac_try) 2>&5
15795 ac_status=$?
15796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797 (exit $ac_status); }; } &&
15798 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15800 (eval $ac_try) 2>&5
15801 ac_status=$?
15802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803 (exit $ac_status); }; }; then
15804 ac_lo=$ac_mid; break
15805else
15806 echo "$as_me: failed program was:" >&5
15807sed 's/^/| /' conftest.$ac_ext >&5
15808
15809ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15810 if test $ac_mid -le $ac_hi; then
15811 ac_lo= ac_hi=
15812 break
15813 fi
15814 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15815fi
ac1cb8d3 15816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15817 done
15818else
15819 echo "$as_me: failed program was:" >&5
15820sed 's/^/| /' conftest.$ac_ext >&5
15821
15822ac_lo= ac_hi=
15823fi
ac1cb8d3 15824rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15825fi
ac1cb8d3 15826rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15827# Binary search between lo and hi bounds.
15828while test "x$ac_lo" != "x$ac_hi"; do
15829 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15830 cat >conftest.$ac_ext <<_ACEOF
15831/* confdefs.h. */
15832_ACEOF
15833cat confdefs.h >>conftest.$ac_ext
15834cat >>conftest.$ac_ext <<_ACEOF
15835/* end confdefs.h. */
15836$ac_includes_default
15837int
15838main ()
15839{
15840static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15841test_array [0] = 0
15842
15843 ;
15844 return 0;
15845}
15846_ACEOF
15847rm -f conftest.$ac_objext
15848if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15849 (eval $ac_compile) 2>conftest.er1
a848cd7e 15850 ac_status=$?
ac1cb8d3
VS
15851 grep -v '^ *+' conftest.er1 >conftest.err
15852 rm -f conftest.er1
15853 cat conftest.err >&5
a848cd7e
SC
15854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855 (exit $ac_status); } &&
ea7db9ff
DE
15856 { ac_try='test -z "$ac_c_werror_flag"
15857 || test ! -s conftest.err'
ac1cb8d3
VS
15858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15859 (eval $ac_try) 2>&5
15860 ac_status=$?
15861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862 (exit $ac_status); }; } &&
15863 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15865 (eval $ac_try) 2>&5
15866 ac_status=$?
15867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868 (exit $ac_status); }; }; then
15869 ac_hi=$ac_mid
15870else
15871 echo "$as_me: failed program was:" >&5
15872sed 's/^/| /' conftest.$ac_ext >&5
15873
15874ac_lo=`expr '(' $ac_mid ')' + 1`
15875fi
ac1cb8d3 15876rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15877done
15878case $ac_lo in
15879?*) ac_cv_sizeof_int=$ac_lo;;
15880'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15881See \`config.log' for more details." >&5
15882echo "$as_me: error: cannot compute sizeof (int), 77
15883See \`config.log' for more details." >&2;}
15884 { (exit 1); exit 1; }; } ;;
15885esac
15886else
15887 if test "$cross_compiling" = yes; then
ea7db9ff
DE
15888 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15889See \`config.log' for more details." >&5
15890echo "$as_me: error: cannot run test program while cross compiling
15891See \`config.log' for more details." >&2;}
a848cd7e
SC
15892 { (exit 1); exit 1; }; }
15893else
15894 cat >conftest.$ac_ext <<_ACEOF
15895/* confdefs.h. */
15896_ACEOF
15897cat confdefs.h >>conftest.$ac_ext
15898cat >>conftest.$ac_ext <<_ACEOF
15899/* end confdefs.h. */
15900$ac_includes_default
15901long longval () { return (long) (sizeof (int)); }
15902unsigned long ulongval () { return (long) (sizeof (int)); }
15903#include <stdio.h>
15904#include <stdlib.h>
15905int
15906main ()
15907{
15908
15909 FILE *f = fopen ("conftest.val", "w");
15910 if (! f)
15911 exit (1);
15912 if (((long) (sizeof (int))) < 0)
15913 {
15914 long i = longval ();
15915 if (i != ((long) (sizeof (int))))
15916 exit (1);
15917 fprintf (f, "%ld\n", i);
15918 }
15919 else
15920 {
15921 unsigned long i = ulongval ();
15922 if (i != ((long) (sizeof (int))))
15923 exit (1);
15924 fprintf (f, "%lu\n", i);
15925 }
15926 exit (ferror (f) || fclose (f) != 0);
15927
15928 ;
15929 return 0;
15930}
15931_ACEOF
15932rm -f conftest$ac_exeext
15933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15934 (eval $ac_link) 2>&5
15935 ac_status=$?
15936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15939 (eval $ac_try) 2>&5
15940 ac_status=$?
15941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942 (exit $ac_status); }; }; then
15943 ac_cv_sizeof_int=`cat conftest.val`
15944else
15945 echo "$as_me: program exited with status $ac_status" >&5
15946echo "$as_me: failed program was:" >&5
15947sed 's/^/| /' conftest.$ac_ext >&5
15948
15949( exit $ac_status )
15950{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15951See \`config.log' for more details." >&5
15952echo "$as_me: error: cannot compute sizeof (int), 77
15953See \`config.log' for more details." >&2;}
15954 { (exit 1); exit 1; }; }
15955fi
ac1cb8d3 15956rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15957fi
15958fi
15959rm -f conftest.val
15960else
15961 ac_cv_sizeof_int=0
15962fi
15963fi
15964echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15965echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15966cat >>confdefs.h <<_ACEOF
15967#define SIZEOF_INT $ac_cv_sizeof_int
15968_ACEOF
15969
15970
15971echo "$as_me:$LINENO: checking for long" >&5
15972echo $ECHO_N "checking for long... $ECHO_C" >&6
15973if test "${ac_cv_type_long+set}" = set; then
15974 echo $ECHO_N "(cached) $ECHO_C" >&6
15975else
15976 cat >conftest.$ac_ext <<_ACEOF
15977/* confdefs.h. */
15978_ACEOF
15979cat confdefs.h >>conftest.$ac_ext
15980cat >>conftest.$ac_ext <<_ACEOF
15981/* end confdefs.h. */
15982$ac_includes_default
15983int
15984main ()
15985{
15986if ((long *) 0)
15987 return 0;
15988if (sizeof (long))
15989 return 0;
15990 ;
15991 return 0;
15992}
15993_ACEOF
15994rm -f conftest.$ac_objext
15995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15996 (eval $ac_compile) 2>conftest.er1
a848cd7e 15997 ac_status=$?
ac1cb8d3
VS
15998 grep -v '^ *+' conftest.er1 >conftest.err
15999 rm -f conftest.er1
16000 cat conftest.err >&5
a848cd7e
SC
16001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16002 (exit $ac_status); } &&
ea7db9ff
DE
16003 { ac_try='test -z "$ac_c_werror_flag"
16004 || test ! -s conftest.err'
ac1cb8d3
VS
16005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16006 (eval $ac_try) 2>&5
16007 ac_status=$?
16008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009 (exit $ac_status); }; } &&
16010 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16012 (eval $ac_try) 2>&5
16013 ac_status=$?
16014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16015 (exit $ac_status); }; }; then
16016 ac_cv_type_long=yes
16017else
16018 echo "$as_me: failed program was:" >&5
16019sed 's/^/| /' conftest.$ac_ext >&5
16020
16021ac_cv_type_long=no
16022fi
ac1cb8d3 16023rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16024fi
16025echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
16026echo "${ECHO_T}$ac_cv_type_long" >&6
16027
16028echo "$as_me:$LINENO: checking size of long" >&5
16029echo $ECHO_N "checking size of long... $ECHO_C" >&6
16030if test "${ac_cv_sizeof_long+set}" = set; then
16031 echo $ECHO_N "(cached) $ECHO_C" >&6
16032else
16033 if test "$ac_cv_type_long" = yes; then
16034 # The cast to unsigned long works around a bug in the HP C Compiler
16035 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16036 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16037 # This bug is HP SR number 8606223364.
16038 if test "$cross_compiling" = yes; then
16039 # Depending upon the size, compute the lo and hi bounds.
16040cat >conftest.$ac_ext <<_ACEOF
16041/* confdefs.h. */
16042_ACEOF
16043cat confdefs.h >>conftest.$ac_ext
16044cat >>conftest.$ac_ext <<_ACEOF
16045/* end confdefs.h. */
16046$ac_includes_default
16047int
16048main ()
16049{
16050static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
16051test_array [0] = 0
16052
16053 ;
16054 return 0;
16055}
16056_ACEOF
16057rm -f conftest.$ac_objext
16058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16059 (eval $ac_compile) 2>conftest.er1
a848cd7e 16060 ac_status=$?
ac1cb8d3
VS
16061 grep -v '^ *+' conftest.er1 >conftest.err
16062 rm -f conftest.er1
16063 cat conftest.err >&5
a848cd7e
SC
16064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16065 (exit $ac_status); } &&
ea7db9ff
DE
16066 { ac_try='test -z "$ac_c_werror_flag"
16067 || test ! -s conftest.err'
ac1cb8d3
VS
16068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16069 (eval $ac_try) 2>&5
16070 ac_status=$?
16071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16072 (exit $ac_status); }; } &&
16073 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16075 (eval $ac_try) 2>&5
16076 ac_status=$?
16077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078 (exit $ac_status); }; }; then
16079 ac_lo=0 ac_mid=0
16080 while :; do
16081 cat >conftest.$ac_ext <<_ACEOF
16082/* confdefs.h. */
16083_ACEOF
16084cat confdefs.h >>conftest.$ac_ext
16085cat >>conftest.$ac_ext <<_ACEOF
16086/* end confdefs.h. */
16087$ac_includes_default
16088int
16089main ()
16090{
16091static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16092test_array [0] = 0
16093
16094 ;
16095 return 0;
16096}
16097_ACEOF
16098rm -f conftest.$ac_objext
16099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16100 (eval $ac_compile) 2>conftest.er1
a848cd7e 16101 ac_status=$?
ac1cb8d3
VS
16102 grep -v '^ *+' conftest.er1 >conftest.err
16103 rm -f conftest.er1
16104 cat conftest.err >&5
a848cd7e
SC
16105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16106 (exit $ac_status); } &&
ea7db9ff
DE
16107 { ac_try='test -z "$ac_c_werror_flag"
16108 || test ! -s conftest.err'
ac1cb8d3
VS
16109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16110 (eval $ac_try) 2>&5
16111 ac_status=$?
16112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16113 (exit $ac_status); }; } &&
16114 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16116 (eval $ac_try) 2>&5
16117 ac_status=$?
16118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119 (exit $ac_status); }; }; then
16120 ac_hi=$ac_mid; break
16121else
16122 echo "$as_me: failed program was:" >&5
16123sed 's/^/| /' conftest.$ac_ext >&5
16124
16125ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16126 if test $ac_lo -le $ac_mid; then
16127 ac_lo= ac_hi=
16128 break
16129 fi
16130 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16131fi
ac1cb8d3 16132rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16133 done
16134else
16135 echo "$as_me: failed program was:" >&5
16136sed 's/^/| /' conftest.$ac_ext >&5
16137
16138cat >conftest.$ac_ext <<_ACEOF
16139/* confdefs.h. */
16140_ACEOF
16141cat confdefs.h >>conftest.$ac_ext
16142cat >>conftest.$ac_ext <<_ACEOF
16143/* end confdefs.h. */
16144$ac_includes_default
16145int
16146main ()
16147{
16148static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
16149test_array [0] = 0
16150
16151 ;
16152 return 0;
16153}
16154_ACEOF
16155rm -f conftest.$ac_objext
16156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16157 (eval $ac_compile) 2>conftest.er1
a848cd7e 16158 ac_status=$?
ac1cb8d3
VS
16159 grep -v '^ *+' conftest.er1 >conftest.err
16160 rm -f conftest.er1
16161 cat conftest.err >&5
a848cd7e
SC
16162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16163 (exit $ac_status); } &&
ea7db9ff
DE
16164 { ac_try='test -z "$ac_c_werror_flag"
16165 || test ! -s conftest.err'
ac1cb8d3
VS
16166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16167 (eval $ac_try) 2>&5
16168 ac_status=$?
16169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170 (exit $ac_status); }; } &&
16171 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16173 (eval $ac_try) 2>&5
16174 ac_status=$?
16175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176 (exit $ac_status); }; }; then
16177 ac_hi=-1 ac_mid=-1
16178 while :; do
16179 cat >conftest.$ac_ext <<_ACEOF
16180/* confdefs.h. */
16181_ACEOF
16182cat confdefs.h >>conftest.$ac_ext
16183cat >>conftest.$ac_ext <<_ACEOF
16184/* end confdefs.h. */
16185$ac_includes_default
16186int
16187main ()
16188{
16189static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
16190test_array [0] = 0
16191
16192 ;
16193 return 0;
16194}
16195_ACEOF
16196rm -f conftest.$ac_objext
16197if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16198 (eval $ac_compile) 2>conftest.er1
a848cd7e 16199 ac_status=$?
ac1cb8d3
VS
16200 grep -v '^ *+' conftest.er1 >conftest.err
16201 rm -f conftest.er1
16202 cat conftest.err >&5
a848cd7e
SC
16203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204 (exit $ac_status); } &&
ea7db9ff
DE
16205 { ac_try='test -z "$ac_c_werror_flag"
16206 || test ! -s conftest.err'
ac1cb8d3
VS
16207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16208 (eval $ac_try) 2>&5
16209 ac_status=$?
16210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211 (exit $ac_status); }; } &&
16212 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16214 (eval $ac_try) 2>&5
16215 ac_status=$?
16216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217 (exit $ac_status); }; }; then
16218 ac_lo=$ac_mid; break
16219else
16220 echo "$as_me: failed program was:" >&5
16221sed 's/^/| /' conftest.$ac_ext >&5
16222
16223ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16224 if test $ac_mid -le $ac_hi; then
16225 ac_lo= ac_hi=
16226 break
16227 fi
16228 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16229fi
ac1cb8d3 16230rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16231 done
16232else
16233 echo "$as_me: failed program was:" >&5
16234sed 's/^/| /' conftest.$ac_ext >&5
16235
16236ac_lo= ac_hi=
16237fi
ac1cb8d3 16238rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16239fi
ac1cb8d3 16240rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16241# Binary search between lo and hi bounds.
16242while test "x$ac_lo" != "x$ac_hi"; do
16243 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16244 cat >conftest.$ac_ext <<_ACEOF
16245/* confdefs.h. */
16246_ACEOF
16247cat confdefs.h >>conftest.$ac_ext
16248cat >>conftest.$ac_ext <<_ACEOF
16249/* end confdefs.h. */
16250$ac_includes_default
16251int
16252main ()
16253{
16254static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16255test_array [0] = 0
16256
16257 ;
16258 return 0;
16259}
16260_ACEOF
16261rm -f conftest.$ac_objext
16262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16263 (eval $ac_compile) 2>conftest.er1
a848cd7e 16264 ac_status=$?
ac1cb8d3
VS
16265 grep -v '^ *+' conftest.er1 >conftest.err
16266 rm -f conftest.er1
16267 cat conftest.err >&5
a848cd7e
SC
16268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269 (exit $ac_status); } &&
ea7db9ff
DE
16270 { ac_try='test -z "$ac_c_werror_flag"
16271 || test ! -s conftest.err'
ac1cb8d3
VS
16272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16273 (eval $ac_try) 2>&5
16274 ac_status=$?
16275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); }; } &&
16277 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16279 (eval $ac_try) 2>&5
16280 ac_status=$?
16281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282 (exit $ac_status); }; }; then
16283 ac_hi=$ac_mid
16284else
16285 echo "$as_me: failed program was:" >&5
16286sed 's/^/| /' conftest.$ac_ext >&5
16287
16288ac_lo=`expr '(' $ac_mid ')' + 1`
16289fi
ac1cb8d3 16290rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16291done
16292case $ac_lo in
16293?*) ac_cv_sizeof_long=$ac_lo;;
16294'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16295See \`config.log' for more details." >&5
16296echo "$as_me: error: cannot compute sizeof (long), 77
16297See \`config.log' for more details." >&2;}
16298 { (exit 1); exit 1; }; } ;;
16299esac
16300else
16301 if test "$cross_compiling" = yes; then
ea7db9ff
DE
16302 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16303See \`config.log' for more details." >&5
16304echo "$as_me: error: cannot run test program while cross compiling
16305See \`config.log' for more details." >&2;}
a848cd7e
SC
16306 { (exit 1); exit 1; }; }
16307else
16308 cat >conftest.$ac_ext <<_ACEOF
16309/* confdefs.h. */
16310_ACEOF
16311cat confdefs.h >>conftest.$ac_ext
16312cat >>conftest.$ac_ext <<_ACEOF
16313/* end confdefs.h. */
16314$ac_includes_default
16315long longval () { return (long) (sizeof (long)); }
16316unsigned long ulongval () { return (long) (sizeof (long)); }
16317#include <stdio.h>
16318#include <stdlib.h>
16319int
16320main ()
16321{
16322
16323 FILE *f = fopen ("conftest.val", "w");
16324 if (! f)
16325 exit (1);
16326 if (((long) (sizeof (long))) < 0)
16327 {
16328 long i = longval ();
16329 if (i != ((long) (sizeof (long))))
16330 exit (1);
16331 fprintf (f, "%ld\n", i);
16332 }
16333 else
16334 {
16335 unsigned long i = ulongval ();
16336 if (i != ((long) (sizeof (long))))
16337 exit (1);
16338 fprintf (f, "%lu\n", i);
16339 }
16340 exit (ferror (f) || fclose (f) != 0);
16341
16342 ;
16343 return 0;
16344}
16345_ACEOF
16346rm -f conftest$ac_exeext
16347if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16348 (eval $ac_link) 2>&5
16349 ac_status=$?
16350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16353 (eval $ac_try) 2>&5
16354 ac_status=$?
16355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16356 (exit $ac_status); }; }; then
16357 ac_cv_sizeof_long=`cat conftest.val`
16358else
16359 echo "$as_me: program exited with status $ac_status" >&5
16360echo "$as_me: failed program was:" >&5
16361sed 's/^/| /' conftest.$ac_ext >&5
16362
16363( exit $ac_status )
16364{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16365See \`config.log' for more details." >&5
16366echo "$as_me: error: cannot compute sizeof (long), 77
16367See \`config.log' for more details." >&2;}
16368 { (exit 1); exit 1; }; }
16369fi
ac1cb8d3 16370rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16371fi
16372fi
16373rm -f conftest.val
16374else
16375 ac_cv_sizeof_long=0
16376fi
16377fi
16378echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
16379echo "${ECHO_T}$ac_cv_sizeof_long" >&6
16380cat >>confdefs.h <<_ACEOF
16381#define SIZEOF_LONG $ac_cv_sizeof_long
16382_ACEOF
16383
16384
16385echo "$as_me:$LINENO: checking for size_t" >&5
16386echo $ECHO_N "checking for size_t... $ECHO_C" >&6
16387if test "${ac_cv_type_size_t+set}" = set; then
16388 echo $ECHO_N "(cached) $ECHO_C" >&6
16389else
16390 cat >conftest.$ac_ext <<_ACEOF
16391/* confdefs.h. */
16392_ACEOF
16393cat confdefs.h >>conftest.$ac_ext
16394cat >>conftest.$ac_ext <<_ACEOF
16395/* end confdefs.h. */
16396$ac_includes_default
16397int
16398main ()
16399{
16400if ((size_t *) 0)
16401 return 0;
16402if (sizeof (size_t))
16403 return 0;
16404 ;
16405 return 0;
16406}
16407_ACEOF
16408rm -f conftest.$ac_objext
16409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16410 (eval $ac_compile) 2>conftest.er1
a848cd7e 16411 ac_status=$?
ac1cb8d3
VS
16412 grep -v '^ *+' conftest.er1 >conftest.err
16413 rm -f conftest.er1
16414 cat conftest.err >&5
a848cd7e
SC
16415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16416 (exit $ac_status); } &&
ea7db9ff
DE
16417 { ac_try='test -z "$ac_c_werror_flag"
16418 || test ! -s conftest.err'
ac1cb8d3
VS
16419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16420 (eval $ac_try) 2>&5
16421 ac_status=$?
16422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16423 (exit $ac_status); }; } &&
16424 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16426 (eval $ac_try) 2>&5
16427 ac_status=$?
16428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429 (exit $ac_status); }; }; then
16430 ac_cv_type_size_t=yes
16431else
16432 echo "$as_me: failed program was:" >&5
16433sed 's/^/| /' conftest.$ac_ext >&5
16434
16435ac_cv_type_size_t=no
16436fi
ac1cb8d3 16437rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16438fi
16439echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16440echo "${ECHO_T}$ac_cv_type_size_t" >&6
16441
16442echo "$as_me:$LINENO: checking size of size_t" >&5
16443echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
16444if test "${ac_cv_sizeof_size_t+set}" = set; then
16445 echo $ECHO_N "(cached) $ECHO_C" >&6
16446else
16447 if test "$ac_cv_type_size_t" = yes; then
16448 # The cast to unsigned long works around a bug in the HP C Compiler
16449 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16450 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16451 # This bug is HP SR number 8606223364.
16452 if test "$cross_compiling" = yes; then
16453 # Depending upon the size, compute the lo and hi bounds.
16454cat >conftest.$ac_ext <<_ACEOF
16455/* confdefs.h. */
16456_ACEOF
16457cat confdefs.h >>conftest.$ac_ext
16458cat >>conftest.$ac_ext <<_ACEOF
16459/* end confdefs.h. */
16460$ac_includes_default
16461int
16462main ()
16463{
16464static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
16465test_array [0] = 0
16466
16467 ;
16468 return 0;
16469}
16470_ACEOF
16471rm -f conftest.$ac_objext
16472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16473 (eval $ac_compile) 2>conftest.er1
a848cd7e 16474 ac_status=$?
ac1cb8d3
VS
16475 grep -v '^ *+' conftest.er1 >conftest.err
16476 rm -f conftest.er1
16477 cat conftest.err >&5
a848cd7e
SC
16478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479 (exit $ac_status); } &&
ea7db9ff
DE
16480 { ac_try='test -z "$ac_c_werror_flag"
16481 || test ! -s conftest.err'
ac1cb8d3
VS
16482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16483 (eval $ac_try) 2>&5
16484 ac_status=$?
16485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486 (exit $ac_status); }; } &&
16487 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16489 (eval $ac_try) 2>&5
16490 ac_status=$?
16491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492 (exit $ac_status); }; }; then
16493 ac_lo=0 ac_mid=0
16494 while :; do
16495 cat >conftest.$ac_ext <<_ACEOF
16496/* confdefs.h. */
16497_ACEOF
16498cat confdefs.h >>conftest.$ac_ext
16499cat >>conftest.$ac_ext <<_ACEOF
16500/* end confdefs.h. */
16501$ac_includes_default
16502int
16503main ()
16504{
16505static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16506test_array [0] = 0
16507
16508 ;
16509 return 0;
16510}
16511_ACEOF
16512rm -f conftest.$ac_objext
16513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16514 (eval $ac_compile) 2>conftest.er1
a848cd7e 16515 ac_status=$?
ac1cb8d3
VS
16516 grep -v '^ *+' conftest.er1 >conftest.err
16517 rm -f conftest.er1
16518 cat conftest.err >&5
a848cd7e
SC
16519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16520 (exit $ac_status); } &&
ea7db9ff
DE
16521 { ac_try='test -z "$ac_c_werror_flag"
16522 || test ! -s conftest.err'
ac1cb8d3
VS
16523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16524 (eval $ac_try) 2>&5
16525 ac_status=$?
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); }; } &&
16528 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16530 (eval $ac_try) 2>&5
16531 ac_status=$?
16532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533 (exit $ac_status); }; }; then
16534 ac_hi=$ac_mid; break
16535else
16536 echo "$as_me: failed program was:" >&5
16537sed 's/^/| /' conftest.$ac_ext >&5
16538
16539ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16540 if test $ac_lo -le $ac_mid; then
16541 ac_lo= ac_hi=
16542 break
16543 fi
16544 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16545fi
ac1cb8d3 16546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16547 done
16548else
16549 echo "$as_me: failed program was:" >&5
16550sed 's/^/| /' conftest.$ac_ext >&5
16551
16552cat >conftest.$ac_ext <<_ACEOF
16553/* confdefs.h. */
16554_ACEOF
16555cat confdefs.h >>conftest.$ac_ext
16556cat >>conftest.$ac_ext <<_ACEOF
16557/* end confdefs.h. */
16558$ac_includes_default
16559int
16560main ()
16561{
16562static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
16563test_array [0] = 0
16564
16565 ;
16566 return 0;
16567}
16568_ACEOF
16569rm -f conftest.$ac_objext
16570if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16571 (eval $ac_compile) 2>conftest.er1
a848cd7e 16572 ac_status=$?
ac1cb8d3
VS
16573 grep -v '^ *+' conftest.er1 >conftest.err
16574 rm -f conftest.er1
16575 cat conftest.err >&5
a848cd7e
SC
16576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16577 (exit $ac_status); } &&
ea7db9ff
DE
16578 { ac_try='test -z "$ac_c_werror_flag"
16579 || test ! -s conftest.err'
ac1cb8d3
VS
16580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16581 (eval $ac_try) 2>&5
16582 ac_status=$?
16583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584 (exit $ac_status); }; } &&
16585 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16587 (eval $ac_try) 2>&5
16588 ac_status=$?
16589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16590 (exit $ac_status); }; }; then
16591 ac_hi=-1 ac_mid=-1
16592 while :; do
16593 cat >conftest.$ac_ext <<_ACEOF
16594/* confdefs.h. */
16595_ACEOF
16596cat confdefs.h >>conftest.$ac_ext
16597cat >>conftest.$ac_ext <<_ACEOF
16598/* end confdefs.h. */
16599$ac_includes_default
16600int
16601main ()
16602{
16603static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
16604test_array [0] = 0
16605
16606 ;
16607 return 0;
16608}
16609_ACEOF
16610rm -f conftest.$ac_objext
16611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16612 (eval $ac_compile) 2>conftest.er1
a848cd7e 16613 ac_status=$?
ac1cb8d3
VS
16614 grep -v '^ *+' conftest.er1 >conftest.err
16615 rm -f conftest.er1
16616 cat conftest.err >&5
a848cd7e
SC
16617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16618 (exit $ac_status); } &&
ea7db9ff
DE
16619 { ac_try='test -z "$ac_c_werror_flag"
16620 || test ! -s conftest.err'
ac1cb8d3
VS
16621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16622 (eval $ac_try) 2>&5
16623 ac_status=$?
16624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625 (exit $ac_status); }; } &&
16626 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16628 (eval $ac_try) 2>&5
16629 ac_status=$?
16630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16631 (exit $ac_status); }; }; then
16632 ac_lo=$ac_mid; break
16633else
16634 echo "$as_me: failed program was:" >&5
16635sed 's/^/| /' conftest.$ac_ext >&5
16636
16637ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16638 if test $ac_mid -le $ac_hi; then
16639 ac_lo= ac_hi=
16640 break
16641 fi
16642 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16643fi
ac1cb8d3 16644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16645 done
16646else
16647 echo "$as_me: failed program was:" >&5
16648sed 's/^/| /' conftest.$ac_ext >&5
16649
16650ac_lo= ac_hi=
16651fi
ac1cb8d3 16652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16653fi
ac1cb8d3 16654rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16655# Binary search between lo and hi bounds.
16656while test "x$ac_lo" != "x$ac_hi"; do
16657 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16658 cat >conftest.$ac_ext <<_ACEOF
16659/* confdefs.h. */
16660_ACEOF
16661cat confdefs.h >>conftest.$ac_ext
16662cat >>conftest.$ac_ext <<_ACEOF
16663/* end confdefs.h. */
16664$ac_includes_default
16665int
16666main ()
16667{
16668static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16669test_array [0] = 0
16670
16671 ;
16672 return 0;
16673}
16674_ACEOF
16675rm -f conftest.$ac_objext
16676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16677 (eval $ac_compile) 2>conftest.er1
a848cd7e 16678 ac_status=$?
ac1cb8d3
VS
16679 grep -v '^ *+' conftest.er1 >conftest.err
16680 rm -f conftest.er1
16681 cat conftest.err >&5
a848cd7e
SC
16682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683 (exit $ac_status); } &&
ea7db9ff
DE
16684 { ac_try='test -z "$ac_c_werror_flag"
16685 || test ! -s conftest.err'
ac1cb8d3
VS
16686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16687 (eval $ac_try) 2>&5
16688 ac_status=$?
16689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690 (exit $ac_status); }; } &&
16691 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16693 (eval $ac_try) 2>&5
16694 ac_status=$?
16695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696 (exit $ac_status); }; }; then
16697 ac_hi=$ac_mid
16698else
16699 echo "$as_me: failed program was:" >&5
16700sed 's/^/| /' conftest.$ac_ext >&5
16701
16702ac_lo=`expr '(' $ac_mid ')' + 1`
16703fi
ac1cb8d3 16704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16705done
16706case $ac_lo in
16707?*) ac_cv_sizeof_size_t=$ac_lo;;
16708'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16709See \`config.log' for more details." >&5
16710echo "$as_me: error: cannot compute sizeof (size_t), 77
16711See \`config.log' for more details." >&2;}
16712 { (exit 1); exit 1; }; } ;;
16713esac
16714else
16715 if test "$cross_compiling" = yes; then
ea7db9ff
DE
16716 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16717See \`config.log' for more details." >&5
16718echo "$as_me: error: cannot run test program while cross compiling
16719See \`config.log' for more details." >&2;}
a848cd7e
SC
16720 { (exit 1); exit 1; }; }
16721else
16722 cat >conftest.$ac_ext <<_ACEOF
16723/* confdefs.h. */
16724_ACEOF
16725cat confdefs.h >>conftest.$ac_ext
16726cat >>conftest.$ac_ext <<_ACEOF
16727/* end confdefs.h. */
16728$ac_includes_default
16729long longval () { return (long) (sizeof (size_t)); }
16730unsigned long ulongval () { return (long) (sizeof (size_t)); }
16731#include <stdio.h>
16732#include <stdlib.h>
16733int
16734main ()
16735{
16736
16737 FILE *f = fopen ("conftest.val", "w");
16738 if (! f)
16739 exit (1);
16740 if (((long) (sizeof (size_t))) < 0)
16741 {
16742 long i = longval ();
16743 if (i != ((long) (sizeof (size_t))))
16744 exit (1);
16745 fprintf (f, "%ld\n", i);
16746 }
16747 else
16748 {
16749 unsigned long i = ulongval ();
16750 if (i != ((long) (sizeof (size_t))))
16751 exit (1);
16752 fprintf (f, "%lu\n", i);
16753 }
16754 exit (ferror (f) || fclose (f) != 0);
16755
16756 ;
16757 return 0;
16758}
16759_ACEOF
16760rm -f conftest$ac_exeext
16761if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16762 (eval $ac_link) 2>&5
16763 ac_status=$?
16764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16767 (eval $ac_try) 2>&5
16768 ac_status=$?
16769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770 (exit $ac_status); }; }; then
16771 ac_cv_sizeof_size_t=`cat conftest.val`
16772else
16773 echo "$as_me: program exited with status $ac_status" >&5
16774echo "$as_me: failed program was:" >&5
16775sed 's/^/| /' conftest.$ac_ext >&5
16776
16777( exit $ac_status )
16778{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16779See \`config.log' for more details." >&5
16780echo "$as_me: error: cannot compute sizeof (size_t), 77
16781See \`config.log' for more details." >&2;}
16782 { (exit 1); exit 1; }; }
16783fi
ac1cb8d3 16784rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16785fi
16786fi
16787rm -f conftest.val
16788else
16789 ac_cv_sizeof_size_t=0
16790fi
16791fi
16792echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
16793echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
16794cat >>confdefs.h <<_ACEOF
16795#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
16796_ACEOF
16797
16798
16799
16800case "${host}" in
16801 arm-*-linux* )
16802 echo "$as_me:$LINENO: checking for long long" >&5
16803echo $ECHO_N "checking for long long... $ECHO_C" >&6
16804if test "${ac_cv_type_long_long+set}" = set; then
16805 echo $ECHO_N "(cached) $ECHO_C" >&6
16806else
16807 cat >conftest.$ac_ext <<_ACEOF
16808/* confdefs.h. */
16809_ACEOF
16810cat confdefs.h >>conftest.$ac_ext
16811cat >>conftest.$ac_ext <<_ACEOF
16812/* end confdefs.h. */
16813$ac_includes_default
16814int
16815main ()
16816{
16817if ((long long *) 0)
16818 return 0;
16819if (sizeof (long long))
16820 return 0;
16821 ;
16822 return 0;
16823}
16824_ACEOF
16825rm -f conftest.$ac_objext
16826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16827 (eval $ac_compile) 2>conftest.er1
a848cd7e 16828 ac_status=$?
ac1cb8d3
VS
16829 grep -v '^ *+' conftest.er1 >conftest.err
16830 rm -f conftest.er1
16831 cat conftest.err >&5
a848cd7e
SC
16832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833 (exit $ac_status); } &&
ea7db9ff
DE
16834 { ac_try='test -z "$ac_c_werror_flag"
16835 || test ! -s conftest.err'
ac1cb8d3
VS
16836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16837 (eval $ac_try) 2>&5
16838 ac_status=$?
16839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840 (exit $ac_status); }; } &&
16841 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16843 (eval $ac_try) 2>&5
16844 ac_status=$?
16845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16846 (exit $ac_status); }; }; then
16847 ac_cv_type_long_long=yes
16848else
16849 echo "$as_me: failed program was:" >&5
16850sed 's/^/| /' conftest.$ac_ext >&5
16851
16852ac_cv_type_long_long=no
16853fi
ac1cb8d3 16854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16855fi
16856echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16857echo "${ECHO_T}$ac_cv_type_long_long" >&6
16858
16859echo "$as_me:$LINENO: checking size of long long" >&5
16860echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16861if test "${ac_cv_sizeof_long_long+set}" = set; then
16862 echo $ECHO_N "(cached) $ECHO_C" >&6
16863else
16864 if test "$ac_cv_type_long_long" = yes; then
16865 # The cast to unsigned long works around a bug in the HP C Compiler
16866 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16867 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16868 # This bug is HP SR number 8606223364.
16869 if test "$cross_compiling" = yes; then
16870 # Depending upon the size, compute the lo and hi bounds.
16871cat >conftest.$ac_ext <<_ACEOF
16872/* confdefs.h. */
16873_ACEOF
16874cat confdefs.h >>conftest.$ac_ext
16875cat >>conftest.$ac_ext <<_ACEOF
16876/* end confdefs.h. */
16877$ac_includes_default
16878int
16879main ()
16880{
16881static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16882test_array [0] = 0
16883
16884 ;
16885 return 0;
16886}
16887_ACEOF
16888rm -f conftest.$ac_objext
16889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16890 (eval $ac_compile) 2>conftest.er1
a848cd7e 16891 ac_status=$?
ac1cb8d3
VS
16892 grep -v '^ *+' conftest.er1 >conftest.err
16893 rm -f conftest.er1
16894 cat conftest.err >&5
a848cd7e
SC
16895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16896 (exit $ac_status); } &&
ea7db9ff
DE
16897 { ac_try='test -z "$ac_c_werror_flag"
16898 || test ! -s conftest.err'
ac1cb8d3
VS
16899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16900 (eval $ac_try) 2>&5
16901 ac_status=$?
16902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16903 (exit $ac_status); }; } &&
16904 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16906 (eval $ac_try) 2>&5
16907 ac_status=$?
16908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909 (exit $ac_status); }; }; then
16910 ac_lo=0 ac_mid=0
16911 while :; do
16912 cat >conftest.$ac_ext <<_ACEOF
16913/* confdefs.h. */
16914_ACEOF
16915cat confdefs.h >>conftest.$ac_ext
16916cat >>conftest.$ac_ext <<_ACEOF
16917/* end confdefs.h. */
16918$ac_includes_default
16919int
16920main ()
16921{
16922static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16923test_array [0] = 0
16924
16925 ;
16926 return 0;
16927}
16928_ACEOF
16929rm -f conftest.$ac_objext
16930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16931 (eval $ac_compile) 2>conftest.er1
a848cd7e 16932 ac_status=$?
ac1cb8d3
VS
16933 grep -v '^ *+' conftest.er1 >conftest.err
16934 rm -f conftest.er1
16935 cat conftest.err >&5
a848cd7e
SC
16936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16937 (exit $ac_status); } &&
ea7db9ff
DE
16938 { ac_try='test -z "$ac_c_werror_flag"
16939 || test ! -s conftest.err'
ac1cb8d3
VS
16940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16941 (eval $ac_try) 2>&5
16942 ac_status=$?
16943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944 (exit $ac_status); }; } &&
16945 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16947 (eval $ac_try) 2>&5
16948 ac_status=$?
16949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950 (exit $ac_status); }; }; then
16951 ac_hi=$ac_mid; break
16952else
16953 echo "$as_me: failed program was:" >&5
16954sed 's/^/| /' conftest.$ac_ext >&5
16955
16956ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16957 if test $ac_lo -le $ac_mid; then
16958 ac_lo= ac_hi=
16959 break
16960 fi
16961 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16962fi
ac1cb8d3 16963rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16964 done
16965else
16966 echo "$as_me: failed program was:" >&5
16967sed 's/^/| /' conftest.$ac_ext >&5
16968
16969cat >conftest.$ac_ext <<_ACEOF
16970/* confdefs.h. */
16971_ACEOF
16972cat confdefs.h >>conftest.$ac_ext
16973cat >>conftest.$ac_ext <<_ACEOF
16974/* end confdefs.h. */
16975$ac_includes_default
16976int
16977main ()
16978{
16979static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16980test_array [0] = 0
16981
16982 ;
16983 return 0;
16984}
16985_ACEOF
16986rm -f conftest.$ac_objext
16987if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16988 (eval $ac_compile) 2>conftest.er1
a848cd7e 16989 ac_status=$?
ac1cb8d3
VS
16990 grep -v '^ *+' conftest.er1 >conftest.err
16991 rm -f conftest.er1
16992 cat conftest.err >&5
a848cd7e
SC
16993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994 (exit $ac_status); } &&
ea7db9ff
DE
16995 { ac_try='test -z "$ac_c_werror_flag"
16996 || test ! -s conftest.err'
ac1cb8d3
VS
16997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16998 (eval $ac_try) 2>&5
16999 ac_status=$?
17000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17001 (exit $ac_status); }; } &&
17002 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17004 (eval $ac_try) 2>&5
17005 ac_status=$?
17006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17007 (exit $ac_status); }; }; then
17008 ac_hi=-1 ac_mid=-1
17009 while :; do
17010 cat >conftest.$ac_ext <<_ACEOF
17011/* confdefs.h. */
17012_ACEOF
17013cat confdefs.h >>conftest.$ac_ext
17014cat >>conftest.$ac_ext <<_ACEOF
17015/* end confdefs.h. */
17016$ac_includes_default
17017int
17018main ()
17019{
17020static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17021test_array [0] = 0
17022
17023 ;
17024 return 0;
17025}
17026_ACEOF
17027rm -f conftest.$ac_objext
17028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17029 (eval $ac_compile) 2>conftest.er1
a848cd7e 17030 ac_status=$?
ac1cb8d3
VS
17031 grep -v '^ *+' conftest.er1 >conftest.err
17032 rm -f conftest.er1
17033 cat conftest.err >&5
a848cd7e
SC
17034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17035 (exit $ac_status); } &&
ea7db9ff
DE
17036 { ac_try='test -z "$ac_c_werror_flag"
17037 || test ! -s conftest.err'
ac1cb8d3
VS
17038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17039 (eval $ac_try) 2>&5
17040 ac_status=$?
17041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17042 (exit $ac_status); }; } &&
17043 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17045 (eval $ac_try) 2>&5
17046 ac_status=$?
17047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048 (exit $ac_status); }; }; then
17049 ac_lo=$ac_mid; break
17050else
17051 echo "$as_me: failed program was:" >&5
17052sed 's/^/| /' conftest.$ac_ext >&5
17053
17054ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17055 if test $ac_mid -le $ac_hi; then
17056 ac_lo= ac_hi=
17057 break
17058 fi
17059 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17060fi
ac1cb8d3 17061rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17062 done
17063else
17064 echo "$as_me: failed program was:" >&5
17065sed 's/^/| /' conftest.$ac_ext >&5
17066
17067ac_lo= ac_hi=
17068fi
ac1cb8d3 17069rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17070fi
ac1cb8d3 17071rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17072# Binary search between lo and hi bounds.
17073while test "x$ac_lo" != "x$ac_hi"; do
17074 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17075 cat >conftest.$ac_ext <<_ACEOF
17076/* confdefs.h. */
17077_ACEOF
17078cat confdefs.h >>conftest.$ac_ext
17079cat >>conftest.$ac_ext <<_ACEOF
17080/* end confdefs.h. */
17081$ac_includes_default
17082int
17083main ()
17084{
17085static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17086test_array [0] = 0
17087
17088 ;
17089 return 0;
17090}
17091_ACEOF
17092rm -f conftest.$ac_objext
17093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17094 (eval $ac_compile) 2>conftest.er1
a848cd7e 17095 ac_status=$?
ac1cb8d3
VS
17096 grep -v '^ *+' conftest.er1 >conftest.err
17097 rm -f conftest.er1
17098 cat conftest.err >&5
a848cd7e
SC
17099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17100 (exit $ac_status); } &&
ea7db9ff
DE
17101 { ac_try='test -z "$ac_c_werror_flag"
17102 || test ! -s conftest.err'
ac1cb8d3
VS
17103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17104 (eval $ac_try) 2>&5
17105 ac_status=$?
17106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17107 (exit $ac_status); }; } &&
17108 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17110 (eval $ac_try) 2>&5
17111 ac_status=$?
17112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113 (exit $ac_status); }; }; then
17114 ac_hi=$ac_mid
17115else
17116 echo "$as_me: failed program was:" >&5
17117sed 's/^/| /' conftest.$ac_ext >&5
17118
17119ac_lo=`expr '(' $ac_mid ')' + 1`
17120fi
ac1cb8d3 17121rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17122done
17123case $ac_lo in
17124?*) ac_cv_sizeof_long_long=$ac_lo;;
17125'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17126See \`config.log' for more details." >&5
17127echo "$as_me: error: cannot compute sizeof (long long), 77
17128See \`config.log' for more details." >&2;}
17129 { (exit 1); exit 1; }; } ;;
17130esac
17131else
17132 if test "$cross_compiling" = yes; then
ea7db9ff
DE
17133 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17134See \`config.log' for more details." >&5
17135echo "$as_me: error: cannot run test program while cross compiling
17136See \`config.log' for more details." >&2;}
a848cd7e
SC
17137 { (exit 1); exit 1; }; }
17138else
17139 cat >conftest.$ac_ext <<_ACEOF
17140/* confdefs.h. */
17141_ACEOF
17142cat confdefs.h >>conftest.$ac_ext
17143cat >>conftest.$ac_ext <<_ACEOF
17144/* end confdefs.h. */
17145$ac_includes_default
17146long longval () { return (long) (sizeof (long long)); }
17147unsigned long ulongval () { return (long) (sizeof (long long)); }
17148#include <stdio.h>
17149#include <stdlib.h>
17150int
17151main ()
17152{
17153
17154 FILE *f = fopen ("conftest.val", "w");
17155 if (! f)
17156 exit (1);
17157 if (((long) (sizeof (long long))) < 0)
17158 {
17159 long i = longval ();
17160 if (i != ((long) (sizeof (long long))))
17161 exit (1);
17162 fprintf (f, "%ld\n", i);
17163 }
17164 else
17165 {
17166 unsigned long i = ulongval ();
17167 if (i != ((long) (sizeof (long long))))
17168 exit (1);
17169 fprintf (f, "%lu\n", i);
17170 }
17171 exit (ferror (f) || fclose (f) != 0);
17172
17173 ;
17174 return 0;
17175}
17176_ACEOF
17177rm -f conftest$ac_exeext
17178if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17179 (eval $ac_link) 2>&5
17180 ac_status=$?
17181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17182 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17184 (eval $ac_try) 2>&5
17185 ac_status=$?
17186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17187 (exit $ac_status); }; }; then
17188 ac_cv_sizeof_long_long=`cat conftest.val`
17189else
17190 echo "$as_me: program exited with status $ac_status" >&5
17191echo "$as_me: failed program was:" >&5
17192sed 's/^/| /' conftest.$ac_ext >&5
17193
17194( exit $ac_status )
17195{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17196See \`config.log' for more details." >&5
17197echo "$as_me: error: cannot compute sizeof (long long), 77
17198See \`config.log' for more details." >&2;}
17199 { (exit 1); exit 1; }; }
17200fi
ac1cb8d3 17201rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17202fi
17203fi
17204rm -f conftest.val
17205else
17206 ac_cv_sizeof_long_long=0
17207fi
17208fi
17209echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17210echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17211cat >>confdefs.h <<_ACEOF
17212#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17213_ACEOF
17214
17215
17216 ;;
17217 *-hp-hpux* )
17218 echo "$as_me:$LINENO: checking for long long" >&5
17219echo $ECHO_N "checking for long long... $ECHO_C" >&6
17220if test "${ac_cv_type_long_long+set}" = set; then
17221 echo $ECHO_N "(cached) $ECHO_C" >&6
17222else
17223 cat >conftest.$ac_ext <<_ACEOF
17224/* confdefs.h. */
17225_ACEOF
17226cat confdefs.h >>conftest.$ac_ext
17227cat >>conftest.$ac_ext <<_ACEOF
17228/* end confdefs.h. */
17229$ac_includes_default
17230int
17231main ()
17232{
17233if ((long long *) 0)
17234 return 0;
17235if (sizeof (long long))
17236 return 0;
17237 ;
17238 return 0;
17239}
17240_ACEOF
17241rm -f conftest.$ac_objext
17242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17243 (eval $ac_compile) 2>conftest.er1
a848cd7e 17244 ac_status=$?
ac1cb8d3
VS
17245 grep -v '^ *+' conftest.er1 >conftest.err
17246 rm -f conftest.er1
17247 cat conftest.err >&5
a848cd7e
SC
17248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249 (exit $ac_status); } &&
ea7db9ff
DE
17250 { ac_try='test -z "$ac_c_werror_flag"
17251 || test ! -s conftest.err'
ac1cb8d3
VS
17252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17253 (eval $ac_try) 2>&5
17254 ac_status=$?
17255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256 (exit $ac_status); }; } &&
17257 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17259 (eval $ac_try) 2>&5
17260 ac_status=$?
17261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262 (exit $ac_status); }; }; then
17263 ac_cv_type_long_long=yes
17264else
17265 echo "$as_me: failed program was:" >&5
17266sed 's/^/| /' conftest.$ac_ext >&5
17267
17268ac_cv_type_long_long=no
17269fi
ac1cb8d3 17270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17271fi
17272echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17273echo "${ECHO_T}$ac_cv_type_long_long" >&6
17274
17275echo "$as_me:$LINENO: checking size of long long" >&5
17276echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17277if test "${ac_cv_sizeof_long_long+set}" = set; then
17278 echo $ECHO_N "(cached) $ECHO_C" >&6
17279else
17280 if test "$ac_cv_type_long_long" = yes; then
17281 # The cast to unsigned long works around a bug in the HP C Compiler
17282 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17283 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17284 # This bug is HP SR number 8606223364.
17285 if test "$cross_compiling" = yes; then
17286 # Depending upon the size, compute the lo and hi bounds.
17287cat >conftest.$ac_ext <<_ACEOF
17288/* confdefs.h. */
17289_ACEOF
17290cat confdefs.h >>conftest.$ac_ext
17291cat >>conftest.$ac_ext <<_ACEOF
17292/* end confdefs.h. */
17293$ac_includes_default
17294int
17295main ()
17296{
17297static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17298test_array [0] = 0
17299
17300 ;
17301 return 0;
17302}
17303_ACEOF
17304rm -f conftest.$ac_objext
17305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17306 (eval $ac_compile) 2>conftest.er1
a848cd7e 17307 ac_status=$?
ac1cb8d3
VS
17308 grep -v '^ *+' conftest.er1 >conftest.err
17309 rm -f conftest.er1
17310 cat conftest.err >&5
a848cd7e
SC
17311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17312 (exit $ac_status); } &&
ea7db9ff
DE
17313 { ac_try='test -z "$ac_c_werror_flag"
17314 || test ! -s conftest.err'
ac1cb8d3
VS
17315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17316 (eval $ac_try) 2>&5
17317 ac_status=$?
17318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319 (exit $ac_status); }; } &&
17320 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17322 (eval $ac_try) 2>&5
17323 ac_status=$?
17324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325 (exit $ac_status); }; }; then
17326 ac_lo=0 ac_mid=0
17327 while :; do
17328 cat >conftest.$ac_ext <<_ACEOF
17329/* confdefs.h. */
17330_ACEOF
17331cat confdefs.h >>conftest.$ac_ext
17332cat >>conftest.$ac_ext <<_ACEOF
17333/* end confdefs.h. */
17334$ac_includes_default
17335int
17336main ()
17337{
17338static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17339test_array [0] = 0
17340
17341 ;
17342 return 0;
17343}
17344_ACEOF
17345rm -f conftest.$ac_objext
17346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17347 (eval $ac_compile) 2>conftest.er1
a848cd7e 17348 ac_status=$?
ac1cb8d3
VS
17349 grep -v '^ *+' conftest.er1 >conftest.err
17350 rm -f conftest.er1
17351 cat conftest.err >&5
a848cd7e
SC
17352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353 (exit $ac_status); } &&
ea7db9ff
DE
17354 { ac_try='test -z "$ac_c_werror_flag"
17355 || test ! -s conftest.err'
ac1cb8d3
VS
17356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17357 (eval $ac_try) 2>&5
17358 ac_status=$?
17359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360 (exit $ac_status); }; } &&
17361 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17363 (eval $ac_try) 2>&5
17364 ac_status=$?
17365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366 (exit $ac_status); }; }; then
17367 ac_hi=$ac_mid; break
17368else
17369 echo "$as_me: failed program was:" >&5
17370sed 's/^/| /' conftest.$ac_ext >&5
17371
17372ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17373 if test $ac_lo -le $ac_mid; then
17374 ac_lo= ac_hi=
17375 break
17376 fi
17377 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17378fi
ac1cb8d3 17379rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17380 done
17381else
17382 echo "$as_me: failed program was:" >&5
17383sed 's/^/| /' conftest.$ac_ext >&5
17384
17385cat >conftest.$ac_ext <<_ACEOF
17386/* confdefs.h. */
17387_ACEOF
17388cat confdefs.h >>conftest.$ac_ext
17389cat >>conftest.$ac_ext <<_ACEOF
17390/* end confdefs.h. */
17391$ac_includes_default
17392int
17393main ()
17394{
17395static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17396test_array [0] = 0
17397
17398 ;
17399 return 0;
17400}
17401_ACEOF
17402rm -f conftest.$ac_objext
17403if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17404 (eval $ac_compile) 2>conftest.er1
a848cd7e 17405 ac_status=$?
ac1cb8d3
VS
17406 grep -v '^ *+' conftest.er1 >conftest.err
17407 rm -f conftest.er1
17408 cat conftest.err >&5
a848cd7e
SC
17409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17410 (exit $ac_status); } &&
ea7db9ff
DE
17411 { ac_try='test -z "$ac_c_werror_flag"
17412 || test ! -s conftest.err'
ac1cb8d3
VS
17413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17414 (eval $ac_try) 2>&5
17415 ac_status=$?
17416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17417 (exit $ac_status); }; } &&
17418 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17420 (eval $ac_try) 2>&5
17421 ac_status=$?
17422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17423 (exit $ac_status); }; }; then
17424 ac_hi=-1 ac_mid=-1
17425 while :; do
17426 cat >conftest.$ac_ext <<_ACEOF
17427/* confdefs.h. */
17428_ACEOF
17429cat confdefs.h >>conftest.$ac_ext
17430cat >>conftest.$ac_ext <<_ACEOF
17431/* end confdefs.h. */
17432$ac_includes_default
17433int
17434main ()
17435{
17436static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17437test_array [0] = 0
17438
17439 ;
17440 return 0;
17441}
17442_ACEOF
17443rm -f conftest.$ac_objext
17444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17445 (eval $ac_compile) 2>conftest.er1
a848cd7e 17446 ac_status=$?
ac1cb8d3
VS
17447 grep -v '^ *+' conftest.er1 >conftest.err
17448 rm -f conftest.er1
17449 cat conftest.err >&5
a848cd7e
SC
17450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451 (exit $ac_status); } &&
ea7db9ff
DE
17452 { ac_try='test -z "$ac_c_werror_flag"
17453 || test ! -s conftest.err'
ac1cb8d3
VS
17454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17455 (eval $ac_try) 2>&5
17456 ac_status=$?
17457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458 (exit $ac_status); }; } &&
17459 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17461 (eval $ac_try) 2>&5
17462 ac_status=$?
17463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17464 (exit $ac_status); }; }; then
17465 ac_lo=$ac_mid; break
17466else
17467 echo "$as_me: failed program was:" >&5
17468sed 's/^/| /' conftest.$ac_ext >&5
17469
17470ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17471 if test $ac_mid -le $ac_hi; then
17472 ac_lo= ac_hi=
17473 break
17474 fi
17475 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17476fi
ac1cb8d3 17477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17478 done
17479else
17480 echo "$as_me: failed program was:" >&5
17481sed 's/^/| /' conftest.$ac_ext >&5
17482
17483ac_lo= ac_hi=
17484fi
ac1cb8d3 17485rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17486fi
ac1cb8d3 17487rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17488# Binary search between lo and hi bounds.
17489while test "x$ac_lo" != "x$ac_hi"; do
17490 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17491 cat >conftest.$ac_ext <<_ACEOF
17492/* confdefs.h. */
17493_ACEOF
17494cat confdefs.h >>conftest.$ac_ext
17495cat >>conftest.$ac_ext <<_ACEOF
17496/* end confdefs.h. */
17497$ac_includes_default
17498int
17499main ()
17500{
17501static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17502test_array [0] = 0
17503
17504 ;
17505 return 0;
17506}
17507_ACEOF
17508rm -f conftest.$ac_objext
17509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17510 (eval $ac_compile) 2>conftest.er1
a848cd7e 17511 ac_status=$?
ac1cb8d3
VS
17512 grep -v '^ *+' conftest.er1 >conftest.err
17513 rm -f conftest.er1
17514 cat conftest.err >&5
a848cd7e
SC
17515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516 (exit $ac_status); } &&
ea7db9ff
DE
17517 { ac_try='test -z "$ac_c_werror_flag"
17518 || test ! -s conftest.err'
ac1cb8d3
VS
17519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17520 (eval $ac_try) 2>&5
17521 ac_status=$?
17522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17523 (exit $ac_status); }; } &&
17524 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17526 (eval $ac_try) 2>&5
17527 ac_status=$?
17528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529 (exit $ac_status); }; }; then
17530 ac_hi=$ac_mid
17531else
17532 echo "$as_me: failed program was:" >&5
17533sed 's/^/| /' conftest.$ac_ext >&5
17534
17535ac_lo=`expr '(' $ac_mid ')' + 1`
17536fi
ac1cb8d3 17537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17538done
17539case $ac_lo in
17540?*) ac_cv_sizeof_long_long=$ac_lo;;
17541'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17542See \`config.log' for more details." >&5
17543echo "$as_me: error: cannot compute sizeof (long long), 77
17544See \`config.log' for more details." >&2;}
17545 { (exit 1); exit 1; }; } ;;
17546esac
17547else
17548 if test "$cross_compiling" = yes; then
ea7db9ff
DE
17549 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17550See \`config.log' for more details." >&5
17551echo "$as_me: error: cannot run test program while cross compiling
17552See \`config.log' for more details." >&2;}
a848cd7e
SC
17553 { (exit 1); exit 1; }; }
17554else
17555 cat >conftest.$ac_ext <<_ACEOF
17556/* confdefs.h. */
17557_ACEOF
17558cat confdefs.h >>conftest.$ac_ext
17559cat >>conftest.$ac_ext <<_ACEOF
17560/* end confdefs.h. */
17561$ac_includes_default
17562long longval () { return (long) (sizeof (long long)); }
17563unsigned long ulongval () { return (long) (sizeof (long long)); }
17564#include <stdio.h>
17565#include <stdlib.h>
17566int
17567main ()
17568{
17569
17570 FILE *f = fopen ("conftest.val", "w");
17571 if (! f)
17572 exit (1);
17573 if (((long) (sizeof (long long))) < 0)
17574 {
17575 long i = longval ();
17576 if (i != ((long) (sizeof (long long))))
17577 exit (1);
17578 fprintf (f, "%ld\n", i);
17579 }
17580 else
17581 {
17582 unsigned long i = ulongval ();
17583 if (i != ((long) (sizeof (long long))))
17584 exit (1);
17585 fprintf (f, "%lu\n", i);
17586 }
17587 exit (ferror (f) || fclose (f) != 0);
17588
17589 ;
17590 return 0;
17591}
17592_ACEOF
17593rm -f conftest$ac_exeext
17594if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17595 (eval $ac_link) 2>&5
17596 ac_status=$?
17597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17598 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17600 (eval $ac_try) 2>&5
17601 ac_status=$?
17602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17603 (exit $ac_status); }; }; then
17604 ac_cv_sizeof_long_long=`cat conftest.val`
17605else
17606 echo "$as_me: program exited with status $ac_status" >&5
17607echo "$as_me: failed program was:" >&5
17608sed 's/^/| /' conftest.$ac_ext >&5
17609
17610( exit $ac_status )
17611{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17612See \`config.log' for more details." >&5
17613echo "$as_me: error: cannot compute sizeof (long long), 77
17614See \`config.log' for more details." >&2;}
17615 { (exit 1); exit 1; }; }
17616fi
ac1cb8d3 17617rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17618fi
17619fi
17620rm -f conftest.val
17621else
17622 ac_cv_sizeof_long_long=0
17623fi
17624fi
17625echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17626echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17627cat >>confdefs.h <<_ACEOF
17628#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17629_ACEOF
17630
17631
17632 if test "$ac_cv_sizeof_long_long" != "0"; then
17633 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
17634 fi
17635 ;;
17636 * )
17637 echo "$as_me:$LINENO: checking for long long" >&5
17638echo $ECHO_N "checking for long long... $ECHO_C" >&6
17639if test "${ac_cv_type_long_long+set}" = set; then
17640 echo $ECHO_N "(cached) $ECHO_C" >&6
17641else
17642 cat >conftest.$ac_ext <<_ACEOF
17643/* confdefs.h. */
17644_ACEOF
17645cat confdefs.h >>conftest.$ac_ext
17646cat >>conftest.$ac_ext <<_ACEOF
17647/* end confdefs.h. */
17648$ac_includes_default
17649int
17650main ()
17651{
17652if ((long long *) 0)
17653 return 0;
17654if (sizeof (long long))
17655 return 0;
17656 ;
17657 return 0;
17658}
17659_ACEOF
17660rm -f conftest.$ac_objext
17661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17662 (eval $ac_compile) 2>conftest.er1
a848cd7e 17663 ac_status=$?
ac1cb8d3
VS
17664 grep -v '^ *+' conftest.er1 >conftest.err
17665 rm -f conftest.er1
17666 cat conftest.err >&5
a848cd7e
SC
17667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668 (exit $ac_status); } &&
ea7db9ff
DE
17669 { ac_try='test -z "$ac_c_werror_flag"
17670 || test ! -s conftest.err'
ac1cb8d3
VS
17671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17672 (eval $ac_try) 2>&5
17673 ac_status=$?
17674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675 (exit $ac_status); }; } &&
17676 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17678 (eval $ac_try) 2>&5
17679 ac_status=$?
17680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681 (exit $ac_status); }; }; then
17682 ac_cv_type_long_long=yes
17683else
17684 echo "$as_me: failed program was:" >&5
17685sed 's/^/| /' conftest.$ac_ext >&5
17686
17687ac_cv_type_long_long=no
17688fi
ac1cb8d3 17689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17690fi
17691echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17692echo "${ECHO_T}$ac_cv_type_long_long" >&6
17693
17694echo "$as_me:$LINENO: checking size of long long" >&5
17695echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17696if test "${ac_cv_sizeof_long_long+set}" = set; then
17697 echo $ECHO_N "(cached) $ECHO_C" >&6
17698else
17699 if test "$ac_cv_type_long_long" = yes; then
17700 # The cast to unsigned long works around a bug in the HP C Compiler
17701 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17702 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17703 # This bug is HP SR number 8606223364.
17704 if test "$cross_compiling" = yes; then
17705 # Depending upon the size, compute the lo and hi bounds.
17706cat >conftest.$ac_ext <<_ACEOF
17707/* confdefs.h. */
17708_ACEOF
17709cat confdefs.h >>conftest.$ac_ext
17710cat >>conftest.$ac_ext <<_ACEOF
17711/* end confdefs.h. */
17712$ac_includes_default
17713int
17714main ()
17715{
17716static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17717test_array [0] = 0
17718
17719 ;
17720 return 0;
17721}
17722_ACEOF
17723rm -f conftest.$ac_objext
17724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17725 (eval $ac_compile) 2>conftest.er1
a848cd7e 17726 ac_status=$?
ac1cb8d3
VS
17727 grep -v '^ *+' conftest.er1 >conftest.err
17728 rm -f conftest.er1
17729 cat conftest.err >&5
a848cd7e
SC
17730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731 (exit $ac_status); } &&
ea7db9ff
DE
17732 { ac_try='test -z "$ac_c_werror_flag"
17733 || test ! -s conftest.err'
ac1cb8d3
VS
17734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17735 (eval $ac_try) 2>&5
17736 ac_status=$?
17737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738 (exit $ac_status); }; } &&
17739 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17741 (eval $ac_try) 2>&5
17742 ac_status=$?
17743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744 (exit $ac_status); }; }; then
17745 ac_lo=0 ac_mid=0
17746 while :; do
17747 cat >conftest.$ac_ext <<_ACEOF
17748/* confdefs.h. */
17749_ACEOF
17750cat confdefs.h >>conftest.$ac_ext
17751cat >>conftest.$ac_ext <<_ACEOF
17752/* end confdefs.h. */
17753$ac_includes_default
17754int
17755main ()
17756{
17757static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17758test_array [0] = 0
17759
17760 ;
17761 return 0;
17762}
17763_ACEOF
17764rm -f conftest.$ac_objext
17765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17766 (eval $ac_compile) 2>conftest.er1
a848cd7e 17767 ac_status=$?
ac1cb8d3
VS
17768 grep -v '^ *+' conftest.er1 >conftest.err
17769 rm -f conftest.er1
17770 cat conftest.err >&5
a848cd7e
SC
17771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772 (exit $ac_status); } &&
ea7db9ff
DE
17773 { ac_try='test -z "$ac_c_werror_flag"
17774 || test ! -s conftest.err'
ac1cb8d3
VS
17775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17776 (eval $ac_try) 2>&5
17777 ac_status=$?
17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779 (exit $ac_status); }; } &&
17780 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17782 (eval $ac_try) 2>&5
17783 ac_status=$?
17784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17785 (exit $ac_status); }; }; then
17786 ac_hi=$ac_mid; break
17787else
17788 echo "$as_me: failed program was:" >&5
17789sed 's/^/| /' conftest.$ac_ext >&5
17790
17791ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17792 if test $ac_lo -le $ac_mid; then
17793 ac_lo= ac_hi=
17794 break
17795 fi
17796 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17797fi
ac1cb8d3 17798rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17799 done
17800else
17801 echo "$as_me: failed program was:" >&5
17802sed 's/^/| /' conftest.$ac_ext >&5
17803
17804cat >conftest.$ac_ext <<_ACEOF
17805/* confdefs.h. */
17806_ACEOF
17807cat confdefs.h >>conftest.$ac_ext
17808cat >>conftest.$ac_ext <<_ACEOF
17809/* end confdefs.h. */
17810$ac_includes_default
17811int
17812main ()
17813{
17814static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17815test_array [0] = 0
17816
17817 ;
17818 return 0;
17819}
17820_ACEOF
17821rm -f conftest.$ac_objext
17822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17823 (eval $ac_compile) 2>conftest.er1
a848cd7e 17824 ac_status=$?
ac1cb8d3
VS
17825 grep -v '^ *+' conftest.er1 >conftest.err
17826 rm -f conftest.er1
17827 cat conftest.err >&5
a848cd7e
SC
17828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829 (exit $ac_status); } &&
ea7db9ff
DE
17830 { ac_try='test -z "$ac_c_werror_flag"
17831 || test ! -s conftest.err'
ac1cb8d3
VS
17832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17833 (eval $ac_try) 2>&5
17834 ac_status=$?
17835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836 (exit $ac_status); }; } &&
17837 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17839 (eval $ac_try) 2>&5
17840 ac_status=$?
17841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842 (exit $ac_status); }; }; then
17843 ac_hi=-1 ac_mid=-1
17844 while :; do
17845 cat >conftest.$ac_ext <<_ACEOF
17846/* confdefs.h. */
17847_ACEOF
17848cat confdefs.h >>conftest.$ac_ext
17849cat >>conftest.$ac_ext <<_ACEOF
17850/* end confdefs.h. */
17851$ac_includes_default
17852int
17853main ()
17854{
17855static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17856test_array [0] = 0
17857
17858 ;
17859 return 0;
17860}
17861_ACEOF
17862rm -f conftest.$ac_objext
17863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17864 (eval $ac_compile) 2>conftest.er1
a848cd7e 17865 ac_status=$?
ac1cb8d3
VS
17866 grep -v '^ *+' conftest.er1 >conftest.err
17867 rm -f conftest.er1
17868 cat conftest.err >&5
a848cd7e
SC
17869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17870 (exit $ac_status); } &&
ea7db9ff
DE
17871 { ac_try='test -z "$ac_c_werror_flag"
17872 || test ! -s conftest.err'
ac1cb8d3
VS
17873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17874 (eval $ac_try) 2>&5
17875 ac_status=$?
17876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17877 (exit $ac_status); }; } &&
17878 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17880 (eval $ac_try) 2>&5
17881 ac_status=$?
17882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17883 (exit $ac_status); }; }; then
17884 ac_lo=$ac_mid; break
17885else
17886 echo "$as_me: failed program was:" >&5
17887sed 's/^/| /' conftest.$ac_ext >&5
17888
17889ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17890 if test $ac_mid -le $ac_hi; then
17891 ac_lo= ac_hi=
17892 break
17893 fi
17894 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17895fi
ac1cb8d3 17896rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17897 done
17898else
17899 echo "$as_me: failed program was:" >&5
17900sed 's/^/| /' conftest.$ac_ext >&5
17901
17902ac_lo= ac_hi=
17903fi
ac1cb8d3 17904rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17905fi
ac1cb8d3 17906rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17907# Binary search between lo and hi bounds.
17908while test "x$ac_lo" != "x$ac_hi"; do
17909 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17910 cat >conftest.$ac_ext <<_ACEOF
17911/* confdefs.h. */
17912_ACEOF
17913cat confdefs.h >>conftest.$ac_ext
17914cat >>conftest.$ac_ext <<_ACEOF
17915/* end confdefs.h. */
17916$ac_includes_default
17917int
17918main ()
17919{
17920static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17921test_array [0] = 0
17922
17923 ;
17924 return 0;
17925}
17926_ACEOF
17927rm -f conftest.$ac_objext
17928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17929 (eval $ac_compile) 2>conftest.er1
a848cd7e 17930 ac_status=$?
ac1cb8d3
VS
17931 grep -v '^ *+' conftest.er1 >conftest.err
17932 rm -f conftest.er1
17933 cat conftest.err >&5
a848cd7e
SC
17934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935 (exit $ac_status); } &&
ea7db9ff
DE
17936 { ac_try='test -z "$ac_c_werror_flag"
17937 || test ! -s conftest.err'
ac1cb8d3
VS
17938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17939 (eval $ac_try) 2>&5
17940 ac_status=$?
17941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17942 (exit $ac_status); }; } &&
17943 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17945 (eval $ac_try) 2>&5
17946 ac_status=$?
17947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17948 (exit $ac_status); }; }; then
17949 ac_hi=$ac_mid
17950else
17951 echo "$as_me: failed program was:" >&5
17952sed 's/^/| /' conftest.$ac_ext >&5
17953
17954ac_lo=`expr '(' $ac_mid ')' + 1`
17955fi
ac1cb8d3 17956rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17957done
17958case $ac_lo in
17959?*) ac_cv_sizeof_long_long=$ac_lo;;
17960'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17961See \`config.log' for more details." >&5
17962echo "$as_me: error: cannot compute sizeof (long long), 77
17963See \`config.log' for more details." >&2;}
17964 { (exit 1); exit 1; }; } ;;
17965esac
17966else
17967 if test "$cross_compiling" = yes; then
ea7db9ff
DE
17968 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17969See \`config.log' for more details." >&5
17970echo "$as_me: error: cannot run test program while cross compiling
17971See \`config.log' for more details." >&2;}
a848cd7e
SC
17972 { (exit 1); exit 1; }; }
17973else
17974 cat >conftest.$ac_ext <<_ACEOF
17975/* confdefs.h. */
17976_ACEOF
17977cat confdefs.h >>conftest.$ac_ext
17978cat >>conftest.$ac_ext <<_ACEOF
17979/* end confdefs.h. */
17980$ac_includes_default
17981long longval () { return (long) (sizeof (long long)); }
17982unsigned long ulongval () { return (long) (sizeof (long long)); }
17983#include <stdio.h>
17984#include <stdlib.h>
17985int
17986main ()
17987{
17988
17989 FILE *f = fopen ("conftest.val", "w");
17990 if (! f)
17991 exit (1);
17992 if (((long) (sizeof (long long))) < 0)
17993 {
17994 long i = longval ();
17995 if (i != ((long) (sizeof (long long))))
17996 exit (1);
17997 fprintf (f, "%ld\n", i);
17998 }
17999 else
18000 {
18001 unsigned long i = ulongval ();
18002 if (i != ((long) (sizeof (long long))))
18003 exit (1);
18004 fprintf (f, "%lu\n", i);
18005 }
18006 exit (ferror (f) || fclose (f) != 0);
18007
18008 ;
18009 return 0;
18010}
18011_ACEOF
18012rm -f conftest$ac_exeext
18013if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18014 (eval $ac_link) 2>&5
18015 ac_status=$?
18016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18017 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18019 (eval $ac_try) 2>&5
18020 ac_status=$?
18021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18022 (exit $ac_status); }; }; then
18023 ac_cv_sizeof_long_long=`cat conftest.val`
18024else
18025 echo "$as_me: program exited with status $ac_status" >&5
18026echo "$as_me: failed program was:" >&5
18027sed 's/^/| /' conftest.$ac_ext >&5
18028
18029( exit $ac_status )
18030{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18031See \`config.log' for more details." >&5
18032echo "$as_me: error: cannot compute sizeof (long long), 77
18033See \`config.log' for more details." >&2;}
18034 { (exit 1); exit 1; }; }
18035fi
ac1cb8d3 18036rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18037fi
18038fi
18039rm -f conftest.val
18040else
18041 ac_cv_sizeof_long_long=0
18042fi
18043fi
18044echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18045echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18046cat >>confdefs.h <<_ACEOF
18047#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18048_ACEOF
18049
18050
18051esac
18052
18053echo "$as_me:$LINENO: checking size of wchar_t" >&5
18054echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
18055if test "${wx_cv_sizeof_wchar_t+set}" = set; then
18056 echo $ECHO_N "(cached) $ECHO_C" >&6
18057else
18058
18059 if test "$cross_compiling" = yes; then
18060
18061 case "${host}" in
18062 *-pc-msdosdjgpp )
18063 wx_cv_sizeof_wchar_t=0
18064 ;;
18065 * )
18066 wx_cv_sizeof_wchar_t=4
18067 ;;
18068 esac
18069
18070
18071else
18072 cat >conftest.$ac_ext <<_ACEOF
18073/* confdefs.h. */
18074_ACEOF
18075cat confdefs.h >>conftest.$ac_ext
18076cat >>conftest.$ac_ext <<_ACEOF
18077/* end confdefs.h. */
18078
18079 /* DJGPP only has fake wchar_t: */
18080 #ifdef __DJGPP__
18081 # error "fake wchar_t"
18082 #endif
18083 #ifdef HAVE_WCHAR_H
18084 # ifdef __CYGWIN__
18085 # include <stddef.h>
18086 # endif
18087 # include <wchar.h>
18088 #endif
18089 #ifdef HAVE_STDLIB_H
18090 # include <stdlib.h>
18091 #endif
18092 #include <stdio.h>
18093 int main()
18094 {
18095 FILE *f=fopen("conftestval", "w");
18096 if (!f) exit(1);
18097 fprintf(f, "%i", sizeof(wchar_t));
18098 exit(0);
18099 }
18100
18101_ACEOF
18102rm -f conftest$ac_exeext
18103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18104 (eval $ac_link) 2>&5
18105 ac_status=$?
18106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18107 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18109 (eval $ac_try) 2>&5
18110 ac_status=$?
18111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112 (exit $ac_status); }; }; then
18113 wx_cv_sizeof_wchar_t=`cat conftestval`
18114else
18115 echo "$as_me: program exited with status $ac_status" >&5
18116echo "$as_me: failed program was:" >&5
18117sed 's/^/| /' conftest.$ac_ext >&5
18118
18119( exit $ac_status )
18120wx_cv_sizeof_wchar_t=0
18121fi
ac1cb8d3 18122rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18123fi
18124
18125fi
18126echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
18127echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
18128
18129cat >>confdefs.h <<_ACEOF
18130#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
18131_ACEOF
18132
18133
18134# Check whether --enable-largefile or --disable-largefile was given.
18135if test "${enable_largefile+set}" = set; then
18136 enableval="$enable_largefile"
18137
18138fi;
18139if test "$enable_largefile" != no; then
18140 wx_largefile=no
18141
18142 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18143echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
18144if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18145 echo $ECHO_N "(cached) $ECHO_C" >&6
18146else
18147
18148 cat >conftest.$ac_ext <<_ACEOF
18149/* confdefs.h. */
18150_ACEOF
18151cat confdefs.h >>conftest.$ac_ext
18152cat >>conftest.$ac_ext <<_ACEOF
18153/* end confdefs.h. */
18154#define _FILE_OFFSET_BITS 64
18155 #include <sys/types.h>
18156int
18157main ()
18158{
18159typedef struct {
18160 unsigned int field: sizeof(off_t) == 8;
18161} wxlf;
18162
18163 ;
18164 return 0;
18165}
18166_ACEOF
18167rm -f conftest.$ac_objext
18168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18169 (eval $ac_compile) 2>conftest.er1
a848cd7e 18170 ac_status=$?
ac1cb8d3
VS
18171 grep -v '^ *+' conftest.er1 >conftest.err
18172 rm -f conftest.er1
18173 cat conftest.err >&5
a848cd7e
SC
18174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175 (exit $ac_status); } &&
ea7db9ff
DE
18176 { ac_try='test -z "$ac_c_werror_flag"
18177 || test ! -s conftest.err'
ac1cb8d3
VS
18178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18179 (eval $ac_try) 2>&5
18180 ac_status=$?
18181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18182 (exit $ac_status); }; } &&
18183 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18185 (eval $ac_try) 2>&5
18186 ac_status=$?
18187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18188 (exit $ac_status); }; }; then
18189 ac_cv_sys_file_offset_bits=64
18190else
18191 echo "$as_me: failed program was:" >&5
18192sed 's/^/| /' conftest.$ac_ext >&5
18193
18194ac_cv_sys_file_offset_bits=no
18195fi
ac1cb8d3 18196rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18197
18198
18199fi
18200echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18201echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
18202
18203 if test "$ac_cv_sys_file_offset_bits" != no; then
18204 wx_largefile=yes
18205 cat >>confdefs.h <<_ACEOF
18206#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18207_ACEOF
18208
18209 fi
18210
18211 if test "x$wx_largefile" != "xyes"; then
18212
18213 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18214echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
18215if test "${ac_cv_sys_large_files+set}" = set; then
18216 echo $ECHO_N "(cached) $ECHO_C" >&6
18217else
18218
18219 cat >conftest.$ac_ext <<_ACEOF
18220/* confdefs.h. */
18221_ACEOF
18222cat confdefs.h >>conftest.$ac_ext
18223cat >>conftest.$ac_ext <<_ACEOF
18224/* end confdefs.h. */
18225#define _LARGE_FILES 1
18226 #include <sys/types.h>
18227int
18228main ()
18229{
18230typedef struct {
18231 unsigned int field: sizeof(off_t) == 8;
18232} wxlf;
18233
18234 ;
18235 return 0;
18236}
18237_ACEOF
18238rm -f conftest.$ac_objext
18239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18240 (eval $ac_compile) 2>conftest.er1
a848cd7e 18241 ac_status=$?
ac1cb8d3
VS
18242 grep -v '^ *+' conftest.er1 >conftest.err
18243 rm -f conftest.er1
18244 cat conftest.err >&5
a848cd7e
SC
18245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18246 (exit $ac_status); } &&
ea7db9ff
DE
18247 { ac_try='test -z "$ac_c_werror_flag"
18248 || test ! -s conftest.err'
ac1cb8d3
VS
18249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18250 (eval $ac_try) 2>&5
18251 ac_status=$?
18252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253 (exit $ac_status); }; } &&
18254 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18256 (eval $ac_try) 2>&5
18257 ac_status=$?
18258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18259 (exit $ac_status); }; }; then
18260 ac_cv_sys_large_files=1
18261else
18262 echo "$as_me: failed program was:" >&5
18263sed 's/^/| /' conftest.$ac_ext >&5
18264
18265ac_cv_sys_large_files=no
18266fi
ac1cb8d3 18267rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18268
18269
18270fi
18271echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18272echo "${ECHO_T}$ac_cv_sys_large_files" >&6
18273
18274 if test "$ac_cv_sys_large_files" != no; then
18275 wx_largefile=yes
18276 cat >>confdefs.h <<_ACEOF
18277#define _LARGE_FILES $ac_cv_sys_large_files
18278_ACEOF
18279
18280 fi
18281
18282 fi
18283
18284 echo "$as_me:$LINENO: checking if large file support is available" >&5
18285echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
18286 if test "x$wx_largefile" = "xyes"; then
18287 cat >>confdefs.h <<\_ACEOF
18288#define HAVE_LARGEFILE_SUPPORT 1
18289_ACEOF
18290
18291 fi
18292 echo "$as_me:$LINENO: result: $wx_largefile" >&5
18293echo "${ECHO_T}$wx_largefile" >&6
18294fi
18295
18296
18297if test "x$wx_largefile" = "xyes"; then
18298 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
18299 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
18300 else
18301 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
18302 fi
18303 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
18304fi
18305
18306echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
18307echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
18308if test "${ac_cv_c_bigendian+set}" = set; then
18309 echo $ECHO_N "(cached) $ECHO_C" >&6
18310else
18311 ac_cv_c_bigendian=unknown
18312# See if sys/param.h defines the BYTE_ORDER macro.
18313cat >conftest.$ac_ext <<_ACEOF
18314/* confdefs.h. */
18315_ACEOF
18316cat confdefs.h >>conftest.$ac_ext
18317cat >>conftest.$ac_ext <<_ACEOF
18318/* end confdefs.h. */
18319#include <sys/types.h>
18320#include <sys/param.h>
18321int
18322main ()
18323{
18324
18325#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
18326 bogus endian macros
18327#endif
18328 ;
18329 return 0;
18330}
18331_ACEOF
18332rm -f conftest.$ac_objext
18333if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18334 (eval $ac_compile) 2>conftest.er1
a848cd7e 18335 ac_status=$?
ac1cb8d3
VS
18336 grep -v '^ *+' conftest.er1 >conftest.err
18337 rm -f conftest.er1
18338 cat conftest.err >&5
a848cd7e
SC
18339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18340 (exit $ac_status); } &&
ea7db9ff
DE
18341 { ac_try='test -z "$ac_c_werror_flag"
18342 || test ! -s conftest.err'
ac1cb8d3
VS
18343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18344 (eval $ac_try) 2>&5
18345 ac_status=$?
18346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18347 (exit $ac_status); }; } &&
18348 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18350 (eval $ac_try) 2>&5
18351 ac_status=$?
18352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18353 (exit $ac_status); }; }; then
18354 # It does; now see whether it defined to BIG_ENDIAN or not.
18355cat >conftest.$ac_ext <<_ACEOF
18356/* confdefs.h. */
18357_ACEOF
18358cat confdefs.h >>conftest.$ac_ext
18359cat >>conftest.$ac_ext <<_ACEOF
18360/* end confdefs.h. */
18361#include <sys/types.h>
18362#include <sys/param.h>
18363int
18364main ()
18365{
18366
18367#if BYTE_ORDER != BIG_ENDIAN
18368 not big endian
18369#endif
18370 ;
18371 return 0;
18372}
18373_ACEOF
18374rm -f conftest.$ac_objext
18375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18376 (eval $ac_compile) 2>conftest.er1
a848cd7e 18377 ac_status=$?
ac1cb8d3
VS
18378 grep -v '^ *+' conftest.er1 >conftest.err
18379 rm -f conftest.er1
18380 cat conftest.err >&5
a848cd7e
SC
18381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18382 (exit $ac_status); } &&
ea7db9ff
DE
18383 { ac_try='test -z "$ac_c_werror_flag"
18384 || test ! -s conftest.err'
ac1cb8d3
VS
18385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18386 (eval $ac_try) 2>&5
18387 ac_status=$?
18388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18389 (exit $ac_status); }; } &&
18390 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18392 (eval $ac_try) 2>&5
18393 ac_status=$?
18394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18395 (exit $ac_status); }; }; then
18396 ac_cv_c_bigendian=yes
18397else
18398 echo "$as_me: failed program was:" >&5
18399sed 's/^/| /' conftest.$ac_ext >&5
18400
18401ac_cv_c_bigendian=no
18402fi
ac1cb8d3 18403rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18404else
18405 echo "$as_me: failed program was:" >&5
18406sed 's/^/| /' conftest.$ac_ext >&5
18407
18408fi
ac1cb8d3 18409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18410if test $ac_cv_c_bigendian = unknown; then
18411if test "$cross_compiling" = yes; then
18412 ac_cv_c_bigendian=unknown
18413else
18414 cat >conftest.$ac_ext <<_ACEOF
18415/* confdefs.h. */
18416_ACEOF
18417cat confdefs.h >>conftest.$ac_ext
18418cat >>conftest.$ac_ext <<_ACEOF
18419/* end confdefs.h. */
18420main () {
18421 /* Are we little or big endian? From Harbison&Steele. */
18422 union
18423 {
18424 long l;
18425 char c[sizeof (long)];
18426 } u;
18427 u.l = 1;
18428 exit (u.c[sizeof (long) - 1] == 1);
18429}
18430_ACEOF
18431rm -f conftest$ac_exeext
18432if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18433 (eval $ac_link) 2>&5
18434 ac_status=$?
18435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18438 (eval $ac_try) 2>&5
18439 ac_status=$?
18440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18441 (exit $ac_status); }; }; then
18442 ac_cv_c_bigendian=no
18443else
18444 echo "$as_me: program exited with status $ac_status" >&5
18445echo "$as_me: failed program was:" >&5
18446sed 's/^/| /' conftest.$ac_ext >&5
18447
18448( exit $ac_status )
18449ac_cv_c_bigendian=yes
18450fi
ac1cb8d3 18451rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18452fi
18453fi
18454fi
18455echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
18456echo "${ECHO_T}$ac_cv_c_bigendian" >&6
18457if test $ac_cv_c_bigendian = unknown; then
18458 { 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
18459echo "$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;}
18460fi
18461if test $ac_cv_c_bigendian = yes; then
18462 cat >>confdefs.h <<\_ACEOF
18463#define WORDS_BIGENDIAN 1
18464_ACEOF
18465
18466fi
18467
18468
18469ac_ext=cc
18470ac_cpp='$CXXCPP $CPPFLAGS'
18471ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18472ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18473ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18474echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
18475echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
18476if test -z "$CXXCPP"; then
18477 if test "${ac_cv_prog_CXXCPP+set}" = set; then
18478 echo $ECHO_N "(cached) $ECHO_C" >&6
18479else
18480 # Double quotes because CXXCPP needs to be expanded
18481 for CXXCPP in "$CXX -E" "/lib/cpp"
18482 do
18483 ac_preproc_ok=false
18484for ac_cxx_preproc_warn_flag in '' yes
18485do
18486 # Use a header file that comes with gcc, so configuring glibc
18487 # with a fresh cross-compiler works.
18488 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18489 # <limits.h> exists even on freestanding compilers.
18490 # On the NeXT, cc -E runs the code through the compiler's parser,
18491 # not just through cpp. "Syntax error" is here to catch this case.
18492 cat >conftest.$ac_ext <<_ACEOF
18493/* confdefs.h. */
18494_ACEOF
18495cat confdefs.h >>conftest.$ac_ext
18496cat >>conftest.$ac_ext <<_ACEOF
18497/* end confdefs.h. */
18498#ifdef __STDC__
18499# include <limits.h>
18500#else
18501# include <assert.h>
18502#endif
ac1cb8d3 18503 Syntax error
a848cd7e
SC
18504_ACEOF
18505if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18506 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18507 ac_status=$?
18508 grep -v '^ *+' conftest.er1 >conftest.err
18509 rm -f conftest.er1
18510 cat conftest.err >&5
18511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18512 (exit $ac_status); } >/dev/null; then
18513 if test -s conftest.err; then
18514 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18515 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18516 else
18517 ac_cpp_err=
18518 fi
18519else
18520 ac_cpp_err=yes
18521fi
18522if test -z "$ac_cpp_err"; then
18523 :
18524else
18525 echo "$as_me: failed program was:" >&5
18526sed 's/^/| /' conftest.$ac_ext >&5
18527
18528 # Broken: fails on valid input.
18529continue
18530fi
18531rm -f conftest.err conftest.$ac_ext
18532
18533 # OK, works on sane cases. Now check whether non-existent headers
18534 # can be detected and how.
18535 cat >conftest.$ac_ext <<_ACEOF
18536/* confdefs.h. */
18537_ACEOF
18538cat confdefs.h >>conftest.$ac_ext
18539cat >>conftest.$ac_ext <<_ACEOF
18540/* end confdefs.h. */
18541#include <ac_nonexistent.h>
18542_ACEOF
18543if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18544 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18545 ac_status=$?
18546 grep -v '^ *+' conftest.er1 >conftest.err
18547 rm -f conftest.er1
18548 cat conftest.err >&5
18549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18550 (exit $ac_status); } >/dev/null; then
18551 if test -s conftest.err; then
18552 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18553 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18554 else
18555 ac_cpp_err=
18556 fi
18557else
18558 ac_cpp_err=yes
18559fi
18560if test -z "$ac_cpp_err"; then
18561 # Broken: success on invalid input.
18562continue
18563else
18564 echo "$as_me: failed program was:" >&5
18565sed 's/^/| /' conftest.$ac_ext >&5
18566
18567 # Passes both tests.
18568ac_preproc_ok=:
18569break
18570fi
18571rm -f conftest.err conftest.$ac_ext
18572
18573done
18574# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18575rm -f conftest.err conftest.$ac_ext
18576if $ac_preproc_ok; then
18577 break
18578fi
18579
18580 done
18581 ac_cv_prog_CXXCPP=$CXXCPP
18582
18583fi
18584 CXXCPP=$ac_cv_prog_CXXCPP
18585else
18586 ac_cv_prog_CXXCPP=$CXXCPP
18587fi
18588echo "$as_me:$LINENO: result: $CXXCPP" >&5
18589echo "${ECHO_T}$CXXCPP" >&6
18590ac_preproc_ok=false
18591for ac_cxx_preproc_warn_flag in '' yes
18592do
18593 # Use a header file that comes with gcc, so configuring glibc
18594 # with a fresh cross-compiler works.
18595 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18596 # <limits.h> exists even on freestanding compilers.
18597 # On the NeXT, cc -E runs the code through the compiler's parser,
18598 # not just through cpp. "Syntax error" is here to catch this case.
18599 cat >conftest.$ac_ext <<_ACEOF
18600/* confdefs.h. */
18601_ACEOF
18602cat confdefs.h >>conftest.$ac_ext
18603cat >>conftest.$ac_ext <<_ACEOF
18604/* end confdefs.h. */
18605#ifdef __STDC__
18606# include <limits.h>
18607#else
18608# include <assert.h>
18609#endif
ac1cb8d3 18610 Syntax error
a848cd7e
SC
18611_ACEOF
18612if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18613 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18614 ac_status=$?
18615 grep -v '^ *+' conftest.er1 >conftest.err
18616 rm -f conftest.er1
18617 cat conftest.err >&5
18618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18619 (exit $ac_status); } >/dev/null; then
18620 if test -s conftest.err; then
18621 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18622 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18623 else
18624 ac_cpp_err=
18625 fi
18626else
18627 ac_cpp_err=yes
18628fi
18629if test -z "$ac_cpp_err"; then
18630 :
18631else
18632 echo "$as_me: failed program was:" >&5
18633sed 's/^/| /' conftest.$ac_ext >&5
18634
18635 # Broken: fails on valid input.
18636continue
18637fi
18638rm -f conftest.err conftest.$ac_ext
18639
18640 # OK, works on sane cases. Now check whether non-existent headers
18641 # can be detected and how.
18642 cat >conftest.$ac_ext <<_ACEOF
18643/* confdefs.h. */
18644_ACEOF
18645cat confdefs.h >>conftest.$ac_ext
18646cat >>conftest.$ac_ext <<_ACEOF
18647/* end confdefs.h. */
18648#include <ac_nonexistent.h>
18649_ACEOF
18650if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18651 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18652 ac_status=$?
18653 grep -v '^ *+' conftest.er1 >conftest.err
18654 rm -f conftest.er1
18655 cat conftest.err >&5
18656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18657 (exit $ac_status); } >/dev/null; then
18658 if test -s conftest.err; then
18659 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18660 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18661 else
18662 ac_cpp_err=
18663 fi
18664else
18665 ac_cpp_err=yes
18666fi
18667if test -z "$ac_cpp_err"; then
18668 # Broken: success on invalid input.
18669continue
18670else
18671 echo "$as_me: failed program was:" >&5
18672sed 's/^/| /' conftest.$ac_ext >&5
18673
18674 # Passes both tests.
18675ac_preproc_ok=:
18676break
18677fi
18678rm -f conftest.err conftest.$ac_ext
18679
18680done
18681# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18682rm -f conftest.err conftest.$ac_ext
18683if $ac_preproc_ok; then
18684 :
18685else
18686 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18687See \`config.log' for more details." >&5
18688echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18689See \`config.log' for more details." >&2;}
18690 { (exit 1); exit 1; }; }
18691fi
18692
18693ac_ext=cc
18694ac_cpp='$CXXCPP $CPPFLAGS'
18695ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18696ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18697ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18698
18699
18700
18701
18702
18703 ac_ext=cc
18704ac_cpp='$CXXCPP $CPPFLAGS'
18705ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18706ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18707ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18708
18709
18710
18711for ac_header in iostream
18712do
18713as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18714if eval "test \"\${$as_ac_Header+set}\" = set"; then
18715 echo "$as_me:$LINENO: checking for $ac_header" >&5
18716echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18717if eval "test \"\${$as_ac_Header+set}\" = set"; then
18718 echo $ECHO_N "(cached) $ECHO_C" >&6
18719fi
18720echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18721echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18722else
18723 # Is the header compilable?
18724echo "$as_me:$LINENO: checking $ac_header usability" >&5
18725echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18726cat >conftest.$ac_ext <<_ACEOF
18727/* confdefs.h. */
18728_ACEOF
18729cat confdefs.h >>conftest.$ac_ext
18730cat >>conftest.$ac_ext <<_ACEOF
18731/* end confdefs.h. */
18732$ac_includes_default
18733#include <$ac_header>
18734_ACEOF
18735rm -f conftest.$ac_objext
18736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18737 (eval $ac_compile) 2>conftest.er1
a848cd7e 18738 ac_status=$?
ac1cb8d3
VS
18739 grep -v '^ *+' conftest.er1 >conftest.err
18740 rm -f conftest.er1
18741 cat conftest.err >&5
a848cd7e
SC
18742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743 (exit $ac_status); } &&
ea7db9ff
DE
18744 { ac_try='test -z "$ac_cxx_werror_flag"
18745 || test ! -s conftest.err'
ac1cb8d3
VS
18746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18747 (eval $ac_try) 2>&5
18748 ac_status=$?
18749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18750 (exit $ac_status); }; } &&
18751 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18753 (eval $ac_try) 2>&5
18754 ac_status=$?
18755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18756 (exit $ac_status); }; }; then
18757 ac_header_compiler=yes
18758else
18759 echo "$as_me: failed program was:" >&5
18760sed 's/^/| /' conftest.$ac_ext >&5
18761
18762ac_header_compiler=no
18763fi
ac1cb8d3 18764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18765echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18766echo "${ECHO_T}$ac_header_compiler" >&6
18767
18768# Is the header present?
18769echo "$as_me:$LINENO: checking $ac_header presence" >&5
18770echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18771cat >conftest.$ac_ext <<_ACEOF
18772/* confdefs.h. */
18773_ACEOF
18774cat confdefs.h >>conftest.$ac_ext
18775cat >>conftest.$ac_ext <<_ACEOF
18776/* end confdefs.h. */
18777#include <$ac_header>
18778_ACEOF
18779if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18780 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18781 ac_status=$?
18782 grep -v '^ *+' conftest.er1 >conftest.err
18783 rm -f conftest.er1
18784 cat conftest.err >&5
18785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786 (exit $ac_status); } >/dev/null; then
18787 if test -s conftest.err; then
18788 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18789 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18790 else
18791 ac_cpp_err=
18792 fi
18793else
18794 ac_cpp_err=yes
18795fi
18796if test -z "$ac_cpp_err"; then
18797 ac_header_preproc=yes
18798else
18799 echo "$as_me: failed program was:" >&5
18800sed 's/^/| /' conftest.$ac_ext >&5
18801
18802 ac_header_preproc=no
18803fi
18804rm -f conftest.err conftest.$ac_ext
18805echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18806echo "${ECHO_T}$ac_header_preproc" >&6
18807
18808# So? What about this header?
ac1cb8d3
VS
18809case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
18810 yes:no: )
a848cd7e
SC
18811 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18812echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
18813 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18814echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18815 ac_header_preproc=yes
a848cd7e 18816 ;;
ac1cb8d3 18817 no:yes:* )
a848cd7e
SC
18818 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18819echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
18820 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18821echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18822 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18823echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18824 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18825echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
18826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18827echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
18828 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18829echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
18830 (
18831 cat <<\_ASBOX
ac1cb8d3
VS
18832## ----------------------------------------- ##
18833## Report this to wx-dev@lists.wxwidgets.org ##
18834## ----------------------------------------- ##
a848cd7e
SC
18835_ASBOX
18836 ) |
18837 sed "s/^/$as_me: WARNING: /" >&2
18838 ;;
18839esac
18840echo "$as_me:$LINENO: checking for $ac_header" >&5
18841echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18842if eval "test \"\${$as_ac_Header+set}\" = set"; then
18843 echo $ECHO_N "(cached) $ECHO_C" >&6
18844else
ac1cb8d3 18845 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
18846fi
18847echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18848echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18849
18850fi
18851if test `eval echo '${'$as_ac_Header'}'` = yes; then
18852 cat >>confdefs.h <<_ACEOF
18853#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18854_ACEOF
18855
18856fi
18857
18858done
18859
18860
18861 if test "$ac_cv_header_iostream" = "yes" ; then
18862 :
18863 else
18864 cat >>confdefs.h <<\_ACEOF
18865#define wxUSE_IOSTREAMH 1
18866_ACEOF
18867
18868 fi
18869
18870 ac_ext=c
18871ac_cpp='$CPP $CPPFLAGS'
18872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18874ac_compiler_gnu=$ac_cv_c_compiler_gnu
18875
18876
18877
18878
18879 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
18880echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
18881if test "${wx_cv_cpp_bool+set}" = set; then
18882 echo $ECHO_N "(cached) $ECHO_C" >&6
18883else
18884
18885
18886
18887 ac_ext=cc
18888ac_cpp='$CXXCPP $CPPFLAGS'
18889ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18890ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18891ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18892
18893
18894 cat >conftest.$ac_ext <<_ACEOF
18895/* confdefs.h. */
18896_ACEOF
18897cat confdefs.h >>conftest.$ac_ext
18898cat >>conftest.$ac_ext <<_ACEOF
18899/* end confdefs.h. */
18900
18901
18902int
18903main ()
18904{
18905
18906 bool b = true;
18907
18908 return 0;
18909
18910 ;
18911 return 0;
18912}
18913_ACEOF
18914rm -f conftest.$ac_objext
18915if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18916 (eval $ac_compile) 2>conftest.er1
a848cd7e 18917 ac_status=$?
ac1cb8d3
VS
18918 grep -v '^ *+' conftest.er1 >conftest.err
18919 rm -f conftest.er1
18920 cat conftest.err >&5
a848cd7e
SC
18921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922 (exit $ac_status); } &&
ea7db9ff
DE
18923 { ac_try='test -z "$ac_cxx_werror_flag"
18924 || test ! -s conftest.err'
ac1cb8d3
VS
18925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18926 (eval $ac_try) 2>&5
18927 ac_status=$?
18928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18929 (exit $ac_status); }; } &&
18930 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18932 (eval $ac_try) 2>&5
18933 ac_status=$?
18934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18935 (exit $ac_status); }; }; then
18936
18937 wx_cv_cpp_bool=yes
18938
18939else
18940 echo "$as_me: failed program was:" >&5
18941sed 's/^/| /' conftest.$ac_ext >&5
18942
18943
18944 wx_cv_cpp_bool=no
18945
18946
18947fi
ac1cb8d3 18948rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18949
18950 ac_ext=c
18951ac_cpp='$CPP $CPPFLAGS'
18952ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18953ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18954ac_compiler_gnu=$ac_cv_c_compiler_gnu
18955
18956
18957fi
18958echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
18959echo "${ECHO_T}$wx_cv_cpp_bool" >&6
18960
18961 if test "$wx_cv_cpp_bool" = "yes"; then
18962 cat >>confdefs.h <<\_ACEOF
18963#define HAVE_BOOL 1
18964_ACEOF
18965
18966 fi
18967
18968
18969
18970 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
18971echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
18972if test "${wx_cv_explicit+set}" = set; then
18973 echo $ECHO_N "(cached) $ECHO_C" >&6
18974else
18975
18976
18977
18978 ac_ext=cc
18979ac_cpp='$CXXCPP $CPPFLAGS'
18980ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18981ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18982ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18983
18984
18985 cat >conftest.$ac_ext <<_ACEOF
18986/* confdefs.h. */
18987_ACEOF
18988cat confdefs.h >>conftest.$ac_ext
18989cat >>conftest.$ac_ext <<_ACEOF
18990/* end confdefs.h. */
18991
18992 class Foo { public: explicit Foo(int) {} };
18993
18994int
18995main ()
18996{
18997
18998 return 0;
18999
19000 ;
19001 return 0;
19002}
19003_ACEOF
19004rm -f conftest.$ac_objext
19005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19006 (eval $ac_compile) 2>conftest.er1
a848cd7e 19007 ac_status=$?
ac1cb8d3
VS
19008 grep -v '^ *+' conftest.er1 >conftest.err
19009 rm -f conftest.er1
19010 cat conftest.err >&5
a848cd7e
SC
19011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19012 (exit $ac_status); } &&
ea7db9ff
DE
19013 { ac_try='test -z "$ac_cxx_werror_flag"
19014 || test ! -s conftest.err'
ac1cb8d3
VS
19015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19016 (eval $ac_try) 2>&5
19017 ac_status=$?
19018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19019 (exit $ac_status); }; } &&
19020 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19022 (eval $ac_try) 2>&5
19023 ac_status=$?
19024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19025 (exit $ac_status); }; }; then
19026
19027 cat >conftest.$ac_ext <<_ACEOF
19028/* confdefs.h. */
19029_ACEOF
19030cat confdefs.h >>conftest.$ac_ext
19031cat >>conftest.$ac_ext <<_ACEOF
19032/* end confdefs.h. */
19033
19034 class Foo { public: explicit Foo(int) {} };
19035 static void TakeFoo(const Foo& foo) { }
19036
19037int
19038main ()
19039{
19040
19041 TakeFoo(17);
19042 return 0;
19043
19044 ;
19045 return 0;
19046}
19047_ACEOF
19048rm -f conftest.$ac_objext
19049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19050 (eval $ac_compile) 2>conftest.er1
a848cd7e 19051 ac_status=$?
ac1cb8d3
VS
19052 grep -v '^ *+' conftest.er1 >conftest.err
19053 rm -f conftest.er1
19054 cat conftest.err >&5
a848cd7e
SC
19055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19056 (exit $ac_status); } &&
ea7db9ff
DE
19057 { ac_try='test -z "$ac_cxx_werror_flag"
19058 || test ! -s conftest.err'
ac1cb8d3
VS
19059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19060 (eval $ac_try) 2>&5
19061 ac_status=$?
19062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19063 (exit $ac_status); }; } &&
19064 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19066 (eval $ac_try) 2>&5
19067 ac_status=$?
19068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19069 (exit $ac_status); }; }; then
19070 wx_cv_explicit=no
19071else
19072 echo "$as_me: failed program was:" >&5
19073sed 's/^/| /' conftest.$ac_ext >&5
19074
19075wx_cv_explicit=yes
19076
19077fi
ac1cb8d3 19078rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19079
19080else
19081 echo "$as_me: failed program was:" >&5
19082sed 's/^/| /' conftest.$ac_ext >&5
19083
19084wx_cv_explicit=no
19085
19086fi
ac1cb8d3 19087rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19088
19089 ac_ext=c
19090ac_cpp='$CPP $CPPFLAGS'
19091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19093ac_compiler_gnu=$ac_cv_c_compiler_gnu
19094
19095
19096fi
19097echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
19098echo "${ECHO_T}$wx_cv_explicit" >&6
19099
19100 if test "$wx_cv_explicit" = "yes"; then
19101 cat >>confdefs.h <<\_ACEOF
19102#define HAVE_EXPLICIT 1
19103_ACEOF
19104
19105 fi
19106
19107
19108echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
19109echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
19110if test "${ac_cv_cxx_const_cast+set}" = set; then
19111 echo $ECHO_N "(cached) $ECHO_C" >&6
19112else
19113
19114
19115 ac_ext=cc
19116ac_cpp='$CXXCPP $CPPFLAGS'
19117ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19118ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19119ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19120
19121 cat >conftest.$ac_ext <<_ACEOF
19122/* confdefs.h. */
19123_ACEOF
19124cat confdefs.h >>conftest.$ac_ext
19125cat >>conftest.$ac_ext <<_ACEOF
19126/* end confdefs.h. */
19127
19128int
19129main ()
19130{
19131int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
19132 ;
19133 return 0;
19134}
19135_ACEOF
19136rm -f conftest.$ac_objext
19137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19138 (eval $ac_compile) 2>conftest.er1
a848cd7e 19139 ac_status=$?
ac1cb8d3
VS
19140 grep -v '^ *+' conftest.er1 >conftest.err
19141 rm -f conftest.er1
19142 cat conftest.err >&5
a848cd7e
SC
19143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19144 (exit $ac_status); } &&
ea7db9ff
DE
19145 { ac_try='test -z "$ac_cxx_werror_flag"
19146 || test ! -s conftest.err'
ac1cb8d3
VS
19147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19148 (eval $ac_try) 2>&5
19149 ac_status=$?
19150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19151 (exit $ac_status); }; } &&
19152 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19154 (eval $ac_try) 2>&5
19155 ac_status=$?
19156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157 (exit $ac_status); }; }; then
19158 ac_cv_cxx_const_cast=yes
19159else
19160 echo "$as_me: failed program was:" >&5
19161sed 's/^/| /' conftest.$ac_ext >&5
19162
19163ac_cv_cxx_const_cast=no
19164fi
ac1cb8d3 19165rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19166 ac_ext=c
19167ac_cpp='$CPP $CPPFLAGS'
19168ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19169ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19170ac_compiler_gnu=$ac_cv_c_compiler_gnu
19171
19172
19173fi
19174echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
19175echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
19176if test "$ac_cv_cxx_const_cast" = yes; then
19177
19178cat >>confdefs.h <<\_ACEOF
19179#define HAVE_CONST_CAST
19180_ACEOF
19181
19182fi
19183
19184echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
19185echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
19186if test "${ac_cv_cxx_static_cast+set}" = set; then
19187 echo $ECHO_N "(cached) $ECHO_C" >&6
19188else
19189
19190
19191 ac_ext=cc
19192ac_cpp='$CXXCPP $CPPFLAGS'
19193ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19194ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19195ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19196
19197 cat >conftest.$ac_ext <<_ACEOF
19198/* confdefs.h. */
19199_ACEOF
19200cat confdefs.h >>conftest.$ac_ext
19201cat >>conftest.$ac_ext <<_ACEOF
19202/* end confdefs.h. */
19203#include <typeinfo>
19204class Base { public : Base () {} virtual void f () = 0; };
19205class Derived : public Base { public : Derived () {} virtual void f () {} };
19206int g (Derived&) { return 0; }
19207int
19208main ()
19209{
19210
19211Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
19212 ;
19213 return 0;
19214}
19215_ACEOF
19216rm -f conftest.$ac_objext
19217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19218 (eval $ac_compile) 2>conftest.er1
a848cd7e 19219 ac_status=$?
ac1cb8d3
VS
19220 grep -v '^ *+' conftest.er1 >conftest.err
19221 rm -f conftest.er1
19222 cat conftest.err >&5
a848cd7e
SC
19223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224 (exit $ac_status); } &&
ea7db9ff
DE
19225 { ac_try='test -z "$ac_cxx_werror_flag"
19226 || test ! -s conftest.err'
ac1cb8d3
VS
19227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19228 (eval $ac_try) 2>&5
19229 ac_status=$?
19230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19231 (exit $ac_status); }; } &&
19232 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19234 (eval $ac_try) 2>&5
19235 ac_status=$?
19236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237 (exit $ac_status); }; }; then
19238 ac_cv_cxx_static_cast=yes
19239else
19240 echo "$as_me: failed program was:" >&5
19241sed 's/^/| /' conftest.$ac_ext >&5
19242
19243ac_cv_cxx_static_cast=no
19244fi
ac1cb8d3 19245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19246 ac_ext=c
19247ac_cpp='$CPP $CPPFLAGS'
19248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19250ac_compiler_gnu=$ac_cv_c_compiler_gnu
19251
19252
19253fi
19254echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
19255echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
19256if test "$ac_cv_cxx_static_cast" = yes; then
19257
19258cat >>confdefs.h <<\_ACEOF
19259#define HAVE_STATIC_CAST
19260_ACEOF
19261
19262fi
19263
19264
19265if test "$wxUSE_STL" = "yes"; then
19266 ac_ext=cc
19267ac_cpp='$CXXCPP $CPPFLAGS'
19268ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19269ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19270ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19271
19272
19273 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
19274echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
19275 cat >conftest.$ac_ext <<_ACEOF
19276/* confdefs.h. */
19277_ACEOF
19278cat confdefs.h >>conftest.$ac_ext
19279cat >>conftest.$ac_ext <<_ACEOF
19280/* end confdefs.h. */
19281#include <string>
19282 #include <functional>
19283 #include <algorithm>
19284 #include <vector>
19285 #include <list>
19286int
19287main ()
19288{
19289std::vector<int> moo;
19290 std::list<int> foo;
19291 std::vector<int>::iterator it =
19292 std::find_if(moo.begin(), moo.end(),
19293 std::bind2nd(std::less<int>(), 3));
19294 ;
19295 return 0;
19296}
19297_ACEOF
19298rm -f conftest.$ac_objext
19299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19300 (eval $ac_compile) 2>conftest.er1
a848cd7e 19301 ac_status=$?
ac1cb8d3
VS
19302 grep -v '^ *+' conftest.er1 >conftest.err
19303 rm -f conftest.er1
19304 cat conftest.err >&5
a848cd7e
SC
19305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306 (exit $ac_status); } &&
ea7db9ff
DE
19307 { ac_try='test -z "$ac_cxx_werror_flag"
19308 || test ! -s conftest.err'
ac1cb8d3
VS
19309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19310 (eval $ac_try) 2>&5
19311 ac_status=$?
19312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19313 (exit $ac_status); }; } &&
19314 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19316 (eval $ac_try) 2>&5
19317 ac_status=$?
19318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319 (exit $ac_status); }; }; then
19320 echo "$as_me:$LINENO: result: yes" >&5
19321echo "${ECHO_T}yes" >&6
19322else
19323 echo "$as_me: failed program was:" >&5
19324sed 's/^/| /' conftest.$ac_ext >&5
19325
19326echo "$as_me:$LINENO: result: no" >&5
19327echo "${ECHO_T}no" >&6
19328 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
19329echo "$as_me: error: Basic STL functionality missing" >&2;}
19330 { (exit 1); exit 1; }; }
19331fi
ac1cb8d3 19332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19333
19334 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
19335echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
19336 cat >conftest.$ac_ext <<_ACEOF
19337/* confdefs.h. */
19338_ACEOF
19339cat confdefs.h >>conftest.$ac_ext
19340cat >>conftest.$ac_ext <<_ACEOF
19341/* end confdefs.h. */
19342#include <string>
19343int
19344main ()
19345{
19346std::wstring foo;
19347 ;
19348 return 0;
19349}
19350_ACEOF
19351rm -f conftest.$ac_objext
19352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19353 (eval $ac_compile) 2>conftest.er1
a848cd7e 19354 ac_status=$?
ac1cb8d3
VS
19355 grep -v '^ *+' conftest.er1 >conftest.err
19356 rm -f conftest.er1
19357 cat conftest.err >&5
a848cd7e
SC
19358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19359 (exit $ac_status); } &&
ea7db9ff
DE
19360 { ac_try='test -z "$ac_cxx_werror_flag"
19361 || test ! -s conftest.err'
ac1cb8d3
VS
19362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19363 (eval $ac_try) 2>&5
19364 ac_status=$?
19365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366 (exit $ac_status); }; } &&
19367 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19369 (eval $ac_try) 2>&5
19370 ac_status=$?
19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372 (exit $ac_status); }; }; then
19373 echo "$as_me:$LINENO: result: yes" >&5
19374echo "${ECHO_T}yes" >&6
19375 cat >>confdefs.h <<\_ACEOF
19376#define HAVE_STD_WSTRING 1
19377_ACEOF
19378
19379else
19380 echo "$as_me: failed program was:" >&5
19381sed 's/^/| /' conftest.$ac_ext >&5
19382
19383echo "$as_me:$LINENO: result: no" >&5
19384echo "${ECHO_T}no" >&6
19385fi
ac1cb8d3 19386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19387
19388 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
19389echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
19390 cat >conftest.$ac_ext <<_ACEOF
19391/* confdefs.h. */
19392_ACEOF
19393cat confdefs.h >>conftest.$ac_ext
19394cat >>conftest.$ac_ext <<_ACEOF
19395/* end confdefs.h. */
19396#include <string>
19397int
19398main ()
19399{
19400std::string foo, bar;
19401 foo.compare(bar);
19402 foo.compare(1, 1, bar);
19403 foo.compare(1, 1, bar, 1, 1);
19404 foo.compare("");
19405 foo.compare(1, 1, "");
19406 foo.compare(1, 1, "", 2);
19407 ;
19408 return 0;
19409}
19410_ACEOF
19411rm -f conftest.$ac_objext
19412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19413 (eval $ac_compile) 2>conftest.er1
a848cd7e 19414 ac_status=$?
ac1cb8d3
VS
19415 grep -v '^ *+' conftest.er1 >conftest.err
19416 rm -f conftest.er1
19417 cat conftest.err >&5
a848cd7e
SC
19418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419 (exit $ac_status); } &&
ea7db9ff
DE
19420 { ac_try='test -z "$ac_cxx_werror_flag"
19421 || test ! -s conftest.err'
ac1cb8d3
VS
19422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19423 (eval $ac_try) 2>&5
19424 ac_status=$?
19425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19426 (exit $ac_status); }; } &&
19427 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19429 (eval $ac_try) 2>&5
19430 ac_status=$?
19431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432 (exit $ac_status); }; }; then
19433 echo "$as_me:$LINENO: result: yes" >&5
19434echo "${ECHO_T}yes" >&6
19435 cat >>confdefs.h <<\_ACEOF
19436#define HAVE_STD_STRING_COMPARE 1
19437_ACEOF
19438
19439else
19440 echo "$as_me: failed program was:" >&5
19441sed 's/^/| /' conftest.$ac_ext >&5
19442
19443echo "$as_me:$LINENO: result: no" >&5
19444echo "${ECHO_T}no" >&6
19445fi
ac1cb8d3 19446rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19447
19448 if test "${ac_cv_header_hash_map+set}" = set; then
19449 echo "$as_me:$LINENO: checking for hash_map" >&5
19450echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
19451if test "${ac_cv_header_hash_map+set}" = set; then
19452 echo $ECHO_N "(cached) $ECHO_C" >&6
19453fi
19454echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
19455echo "${ECHO_T}$ac_cv_header_hash_map" >&6
19456else
19457 # Is the header compilable?
19458echo "$as_me:$LINENO: checking hash_map usability" >&5
19459echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
19460cat >conftest.$ac_ext <<_ACEOF
19461/* confdefs.h. */
19462_ACEOF
19463cat confdefs.h >>conftest.$ac_ext
19464cat >>conftest.$ac_ext <<_ACEOF
19465/* end confdefs.h. */
19466$ac_includes_default
19467#include <hash_map>
19468_ACEOF
19469rm -f conftest.$ac_objext
19470if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19471 (eval $ac_compile) 2>conftest.er1
bdcade0a 19472 ac_status=$?
ac1cb8d3
VS
19473 grep -v '^ *+' conftest.er1 >conftest.err
19474 rm -f conftest.er1
19475 cat conftest.err >&5
bdcade0a
MB
19476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477 (exit $ac_status); } &&
ea7db9ff
DE
19478 { ac_try='test -z "$ac_cxx_werror_flag"
19479 || test ! -s conftest.err'
ac1cb8d3
VS
19480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19481 (eval $ac_try) 2>&5
19482 ac_status=$?
19483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19484 (exit $ac_status); }; } &&
19485 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19487 (eval $ac_try) 2>&5
19488 ac_status=$?
19489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490 (exit $ac_status); }; }; then
19491 ac_header_compiler=yes
19492else
19493 echo "$as_me: failed program was:" >&5
19494sed 's/^/| /' conftest.$ac_ext >&5
19495
19496ac_header_compiler=no
19497fi
ac1cb8d3 19498rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19499echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19500echo "${ECHO_T}$ac_header_compiler" >&6
19501
19502# Is the header present?
19503echo "$as_me:$LINENO: checking hash_map presence" >&5
19504echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
19505cat >conftest.$ac_ext <<_ACEOF
19506/* confdefs.h. */
19507_ACEOF
19508cat confdefs.h >>conftest.$ac_ext
19509cat >>conftest.$ac_ext <<_ACEOF
19510/* end confdefs.h. */
19511#include <hash_map>
19512_ACEOF
19513if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19514 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19515 ac_status=$?
19516 grep -v '^ *+' conftest.er1 >conftest.err
19517 rm -f conftest.er1
19518 cat conftest.err >&5
19519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520 (exit $ac_status); } >/dev/null; then
19521 if test -s conftest.err; then
19522 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19523 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
19524 else
19525 ac_cpp_err=
19526 fi
19527else
19528 ac_cpp_err=yes
19529fi
19530if test -z "$ac_cpp_err"; then
19531 ac_header_preproc=yes
19532else
19533 echo "$as_me: failed program was:" >&5
19534sed 's/^/| /' conftest.$ac_ext >&5
19535
19536 ac_header_preproc=no
19537fi
19538rm -f conftest.err conftest.$ac_ext
19539echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19540echo "${ECHO_T}$ac_header_preproc" >&6
19541
19542# So? What about this header?
ac1cb8d3
VS
19543case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19544 yes:no: )
bdcade0a
MB
19545 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
19546echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
19547 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
19548echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
19549 ac_header_preproc=yes
bdcade0a 19550 ;;
ac1cb8d3 19551 no:yes:* )
bdcade0a
MB
19552 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
19553echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
19554 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
19555echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
19556 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
19557echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
19558 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
19559echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
19560 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
19561echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
19562 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
19563echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
19564 (
19565 cat <<\_ASBOX
ac1cb8d3
VS
19566## ----------------------------------------- ##
19567## Report this to wx-dev@lists.wxwidgets.org ##
19568## ----------------------------------------- ##
bdcade0a
MB
19569_ASBOX
19570 ) |
19571 sed "s/^/$as_me: WARNING: /" >&2
19572 ;;
19573esac
19574echo "$as_me:$LINENO: checking for hash_map" >&5
19575echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
19576if test "${ac_cv_header_hash_map+set}" = set; then
19577 echo $ECHO_N "(cached) $ECHO_C" >&6
19578else
19579 ac_cv_header_hash_map=$ac_header_preproc
19580fi
19581echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
19582echo "${ECHO_T}$ac_cv_header_hash_map" >&6
19583
19584fi
19585if test $ac_cv_header_hash_map = yes; then
19586 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
19587echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
19588 cat >conftest.$ac_ext <<_ACEOF
19589/* confdefs.h. */
19590_ACEOF
19591cat confdefs.h >>conftest.$ac_ext
19592cat >>conftest.$ac_ext <<_ACEOF
19593/* end confdefs.h. */
19594#include <hash_map>
19595 #include <hash_set>
19596int
19597main ()
19598{
19599std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
19600 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
19601 ;
19602 return 0;
19603}
19604_ACEOF
19605rm -f conftest.$ac_objext
19606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19607 (eval $ac_compile) 2>conftest.er1
bdcade0a 19608 ac_status=$?
ac1cb8d3
VS
19609 grep -v '^ *+' conftest.er1 >conftest.err
19610 rm -f conftest.er1
19611 cat conftest.err >&5
bdcade0a
MB
19612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19613 (exit $ac_status); } &&
ea7db9ff
DE
19614 { ac_try='test -z "$ac_cxx_werror_flag"
19615 || test ! -s conftest.err'
ac1cb8d3
VS
19616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19617 (eval $ac_try) 2>&5
19618 ac_status=$?
19619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620 (exit $ac_status); }; } &&
19621 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19623 (eval $ac_try) 2>&5
19624 ac_status=$?
19625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19626 (exit $ac_status); }; }; then
19627 echo "$as_me:$LINENO: result: yes" >&5
19628echo "${ECHO_T}yes" >&6
19629 cat >>confdefs.h <<\_ACEOF
19630#define HAVE_HASH_MAP 1
19631_ACEOF
19632
19633 cat >>confdefs.h <<\_ACEOF
19634#define HAVE_STD_HASH_MAP 1
19635_ACEOF
19636
19637else
19638 echo "$as_me: failed program was:" >&5
19639sed 's/^/| /' conftest.$ac_ext >&5
19640
19641echo "$as_me:$LINENO: result: no" >&5
19642echo "${ECHO_T}no" >&6
19643fi
ac1cb8d3 19644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19645
19646fi
19647
19648
19649
19650 if test "${ac_cv_header_ext_hash_map+set}" = set; then
19651 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
19652echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
19653if test "${ac_cv_header_ext_hash_map+set}" = set; then
19654 echo $ECHO_N "(cached) $ECHO_C" >&6
19655fi
19656echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
19657echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
19658else
19659 # Is the header compilable?
19660echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
19661echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
19662cat >conftest.$ac_ext <<_ACEOF
19663/* confdefs.h. */
19664_ACEOF
19665cat confdefs.h >>conftest.$ac_ext
19666cat >>conftest.$ac_ext <<_ACEOF
19667/* end confdefs.h. */
19668$ac_includes_default
19669#include <ext/hash_map>
19670_ACEOF
19671rm -f conftest.$ac_objext
19672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19673 (eval $ac_compile) 2>conftest.er1
bdcade0a 19674 ac_status=$?
ac1cb8d3
VS
19675 grep -v '^ *+' conftest.er1 >conftest.err
19676 rm -f conftest.er1
19677 cat conftest.err >&5
bdcade0a
MB
19678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19679 (exit $ac_status); } &&
ea7db9ff
DE
19680 { ac_try='test -z "$ac_cxx_werror_flag"
19681 || test ! -s conftest.err'
ac1cb8d3
VS
19682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19683 (eval $ac_try) 2>&5
19684 ac_status=$?
19685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19686 (exit $ac_status); }; } &&
19687 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19689 (eval $ac_try) 2>&5
19690 ac_status=$?
19691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692 (exit $ac_status); }; }; then
19693 ac_header_compiler=yes
19694else
19695 echo "$as_me: failed program was:" >&5
19696sed 's/^/| /' conftest.$ac_ext >&5
19697
19698ac_header_compiler=no
19699fi
ac1cb8d3 19700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19701echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19702echo "${ECHO_T}$ac_header_compiler" >&6
19703
19704# Is the header present?
19705echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
19706echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
19707cat >conftest.$ac_ext <<_ACEOF
19708/* confdefs.h. */
19709_ACEOF
19710cat confdefs.h >>conftest.$ac_ext
19711cat >>conftest.$ac_ext <<_ACEOF
19712/* end confdefs.h. */
19713#include <ext/hash_map>
19714_ACEOF
19715if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19716 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19717 ac_status=$?
19718 grep -v '^ *+' conftest.er1 >conftest.err
19719 rm -f conftest.er1
19720 cat conftest.err >&5
19721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722 (exit $ac_status); } >/dev/null; then
19723 if test -s conftest.err; then
19724 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19725 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
19726 else
19727 ac_cpp_err=
19728 fi
19729else
19730 ac_cpp_err=yes
19731fi
19732if test -z "$ac_cpp_err"; then
19733 ac_header_preproc=yes
19734else
19735 echo "$as_me: failed program was:" >&5
19736sed 's/^/| /' conftest.$ac_ext >&5
19737
19738 ac_header_preproc=no
19739fi
19740rm -f conftest.err conftest.$ac_ext
19741echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19742echo "${ECHO_T}$ac_header_preproc" >&6
19743
19744# So? What about this header?
ac1cb8d3
VS
19745case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19746 yes:no: )
bdcade0a
MB
19747 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
19748echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
19749 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
19750echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
19751 ac_header_preproc=yes
bdcade0a 19752 ;;
ac1cb8d3 19753 no:yes:* )
bdcade0a
MB
19754 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
19755echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
19756 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
19757echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
19758 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
19759echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
19760 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
19761echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
19762 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
19763echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
19764 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
19765echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
19766 (
19767 cat <<\_ASBOX
ac1cb8d3
VS
19768## ----------------------------------------- ##
19769## Report this to wx-dev@lists.wxwidgets.org ##
19770## ----------------------------------------- ##
bdcade0a
MB
19771_ASBOX
19772 ) |
19773 sed "s/^/$as_me: WARNING: /" >&2
19774 ;;
19775esac
19776echo "$as_me:$LINENO: checking for ext/hash_map" >&5
19777echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
19778if test "${ac_cv_header_ext_hash_map+set}" = set; then
19779 echo $ECHO_N "(cached) $ECHO_C" >&6
19780else
19781 ac_cv_header_ext_hash_map=$ac_header_preproc
19782fi
19783echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
19784echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
19785
19786fi
19787if test $ac_cv_header_ext_hash_map = yes; then
19788 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
19789echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
19790 cat >conftest.$ac_ext <<_ACEOF
19791/* confdefs.h. */
19792_ACEOF
19793cat confdefs.h >>conftest.$ac_ext
19794cat >>conftest.$ac_ext <<_ACEOF
19795/* end confdefs.h. */
19796#include <ext/hash_map>
19797 #include <ext/hash_set>
19798int
19799main ()
19800{
19801__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
19802 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
19803 ;
19804 return 0;
19805}
19806_ACEOF
19807rm -f conftest.$ac_objext
19808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19809 (eval $ac_compile) 2>conftest.er1
bdcade0a 19810 ac_status=$?
ac1cb8d3
VS
19811 grep -v '^ *+' conftest.er1 >conftest.err
19812 rm -f conftest.er1
19813 cat conftest.err >&5
bdcade0a
MB
19814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815 (exit $ac_status); } &&
ea7db9ff
DE
19816 { ac_try='test -z "$ac_cxx_werror_flag"
19817 || test ! -s conftest.err'
ac1cb8d3
VS
19818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19819 (eval $ac_try) 2>&5
19820 ac_status=$?
19821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19822 (exit $ac_status); }; } &&
19823 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19825 (eval $ac_try) 2>&5
19826 ac_status=$?
19827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19828 (exit $ac_status); }; }; then
19829 echo "$as_me:$LINENO: result: yes" >&5
19830echo "${ECHO_T}yes" >&6
19831 cat >>confdefs.h <<\_ACEOF
19832#define HAVE_EXT_HASH_MAP 1
19833_ACEOF
19834
19835 cat >>confdefs.h <<\_ACEOF
19836#define HAVE_GNU_CXX_HASH_MAP 1
19837_ACEOF
19838
19839else
19840 echo "$as_me: failed program was:" >&5
19841sed 's/^/| /' conftest.$ac_ext >&5
19842
19843echo "$as_me:$LINENO: result: no" >&5
19844echo "${ECHO_T}no" >&6
19845fi
ac1cb8d3 19846rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19847
19848fi
19849
19850
a848cd7e
SC
19851
19852 ac_ext=c
19853ac_cpp='$CPP $CPPFLAGS'
19854ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19855ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19856ac_compiler_gnu=$ac_cv_c_compiler_gnu
19857
19858fi
19859
19860
19861SEARCH_INCLUDE="\
19862 /usr/local/include \
19863 \
19864 /usr/Motif-2.1/include \
19865 /usr/Motif-1.2/include \
19866 /usr/include/Motif1.2 \
19867 /opt/xpm/include/X11 \
19868 /opt/GBxpm/include/ \
19869 /opt/GBxpm/X11/include/ \
19870 \
19871 /usr/dt/include \
19872 /usr/openwin/include \
19873 \
19874 /usr/include/Xm \
19875 \
19876 /usr/X11R6/include \
19877 /usr/X11R6.4/include \
19878 /usr/X11R5/include \
19879 /usr/X11R4/include \
19880 \
19881 /usr/include/X11R6 \
19882 /usr/include/X11R5 \
19883 /usr/include/X11R4 \
19884 \
19885 /usr/local/X11R6/include \
19886 /usr/local/X11R5/include \
19887 /usr/local/X11R4/include \
19888 \
19889 /usr/local/include/X11R6 \
19890 /usr/local/include/X11R5 \
19891 /usr/local/include/X11R4 \
19892 \
19893 /usr/X11/include \
19894 /usr/include/X11 \
19895 /usr/local/X11/include \
19896 /usr/local/include/X11 \
19897 \
19898 /usr/X386/include \
19899 /usr/x386/include \
19900 /usr/XFree86/include/X11 \
19901 \
19902 X:/XFree86/include \
19903 X:/XFree86/include/X11 \
19904 \
19905 /usr/include/gtk \
19906 /usr/local/include/gtk \
19907 /usr/include/glib \
19908 /usr/local/include/glib \
19909 \
19910 /usr/include/qt \
19911 /usr/local/include/qt \
19912 \
19913 /usr/local/arm/3.3.2/include \
19914 \
19915 /usr/include/windows \
19916 /usr/include/wine \
19917 /usr/local/include/wine \
19918 \
19919 /usr/unsupported/include \
19920 /usr/athena/include \
19921 /usr/local/x11r5/include \
19922 /usr/lpp/Xamples/include \
19923 \
19924 /usr/openwin/share/include"
19925
19926SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64"
19927
19928
19929cat >confcache <<\_ACEOF
19930# This file is a shell script that caches the results of configure
19931# tests run on this system so they can be shared between configure
19932# scripts and configure runs, see configure's option --config-cache.
19933# It is not useful on other systems. If it contains results you don't
19934# want to keep, you may remove or edit it.
19935#
19936# config.status only pays attention to the cache file if you give it
19937# the --recheck option to rerun configure.
19938#
19939# `ac_cv_env_foo' variables (set or unset) will be overridden when
19940# loading this file, other *unset* `ac_cv_foo' will be assigned the
19941# following values.
19942
19943_ACEOF
19944
19945# The following way of writing the cache mishandles newlines in values,
19946# but we know of no workaround that is simple, portable, and efficient.
19947# So, don't put newlines in cache variables' values.
19948# Ultrix sh set writes to stderr and can't be redirected directly,
19949# and sets the high bit in the cache file unless we assign to the vars.
19950{
19951 (set) 2>&1 |
19952 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19953 *ac_space=\ *)
19954 # `set' does not quote correctly, so add quotes (double-quote
19955 # substitution turns \\\\ into \\, and sed turns \\ into \).
19956 sed -n \
ac1cb8d3
VS
19957 "s/'/'\\\\''/g;
19958 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
19959 ;;
19960 *)
19961 # `set' quotes correctly as required by POSIX, so do not add quotes.
19962 sed -n \
ac1cb8d3 19963 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
19964 ;;
19965 esac;
19966} |
19967 sed '
19968 t clear
19969 : clear
19970 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19971 t end
19972 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19973 : end' >>confcache
19974if diff $cache_file confcache >/dev/null 2>&1; then :; else
19975 if test -w $cache_file; then
19976 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19977 cat confcache >$cache_file
19978 else
19979 echo "not updating unwritable cache $cache_file"
19980 fi
19981fi
19982rm -f confcache
19983
19984if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
19985 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
19986echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
19987if test "${wx_cv_lib_glibc21+set}" = set; then
19988 echo $ECHO_N "(cached) $ECHO_C" >&6
19989else
19990
19991 cat >conftest.$ac_ext <<_ACEOF
19992/* confdefs.h. */
19993_ACEOF
19994cat confdefs.h >>conftest.$ac_ext
19995cat >>conftest.$ac_ext <<_ACEOF
19996/* end confdefs.h. */
19997#include <features.h>
19998int
19999main ()
20000{
20001
20002 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
20003 #error not glibc2.1
20004 #endif
20005
20006 ;
20007 return 0;
20008}
20009_ACEOF
20010rm -f conftest.$ac_objext
20011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20012 (eval $ac_compile) 2>conftest.er1
a848cd7e 20013 ac_status=$?
ac1cb8d3
VS
20014 grep -v '^ *+' conftest.er1 >conftest.err
20015 rm -f conftest.er1
20016 cat conftest.err >&5
a848cd7e
SC
20017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20018 (exit $ac_status); } &&
ea7db9ff
DE
20019 { ac_try='test -z "$ac_c_werror_flag"
20020 || test ! -s conftest.err'
ac1cb8d3
VS
20021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20022 (eval $ac_try) 2>&5
20023 ac_status=$?
20024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20025 (exit $ac_status); }; } &&
20026 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20028 (eval $ac_try) 2>&5
20029 ac_status=$?
20030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20031 (exit $ac_status); }; }; then
20032
20033 wx_cv_lib_glibc21=yes
20034
20035else
20036 echo "$as_me: failed program was:" >&5
20037sed 's/^/| /' conftest.$ac_ext >&5
20038
20039
20040 wx_cv_lib_glibc21=no
20041
20042
20043fi
ac1cb8d3 20044rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20045
20046fi
20047echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
20048echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
20049 if test "$wx_cv_lib_glibc21" = "yes"; then
20050 cat >>confdefs.h <<\_ACEOF
20051#define wxHAVE_GLIBC2 1
20052_ACEOF
20053
20054 fi
20055fi
20056
20057if test "x$wx_cv_lib_glibc21" = "xyes"; then
20058 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
20059 cat >>confdefs.h <<\_ACEOF
20060#define _GNU_SOURCE 1
20061_ACEOF
20062
20063 fi
20064fi
20065
20066
20067
20068if test "$wxUSE_REGEX" != "no"; then
20069 cat >>confdefs.h <<\_ACEOF
20070#define wxUSE_REGEX 1
20071_ACEOF
20072
20073
20074 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
20075 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
20076echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
20077 wxUSE_REGEX=builtin
20078 fi
20079
20080 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
20081 if test "${ac_cv_header_regex_h+set}" = set; then
20082 echo "$as_me:$LINENO: checking for regex.h" >&5
20083echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20084if test "${ac_cv_header_regex_h+set}" = set; then
20085 echo $ECHO_N "(cached) $ECHO_C" >&6
20086fi
20087echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20088echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20089else
20090 # Is the header compilable?
20091echo "$as_me:$LINENO: checking regex.h usability" >&5
20092echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
20093cat >conftest.$ac_ext <<_ACEOF
20094/* confdefs.h. */
20095_ACEOF
20096cat confdefs.h >>conftest.$ac_ext
20097cat >>conftest.$ac_ext <<_ACEOF
20098/* end confdefs.h. */
20099$ac_includes_default
20100#include <regex.h>
20101_ACEOF
20102rm -f conftest.$ac_objext
20103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20104 (eval $ac_compile) 2>conftest.er1
a848cd7e 20105 ac_status=$?
ac1cb8d3
VS
20106 grep -v '^ *+' conftest.er1 >conftest.err
20107 rm -f conftest.er1
20108 cat conftest.err >&5
a848cd7e
SC
20109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110 (exit $ac_status); } &&
ea7db9ff
DE
20111 { ac_try='test -z "$ac_c_werror_flag"
20112 || test ! -s conftest.err'
ac1cb8d3
VS
20113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20114 (eval $ac_try) 2>&5
20115 ac_status=$?
20116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20117 (exit $ac_status); }; } &&
20118 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20120 (eval $ac_try) 2>&5
20121 ac_status=$?
20122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123 (exit $ac_status); }; }; then
20124 ac_header_compiler=yes
20125else
20126 echo "$as_me: failed program was:" >&5
20127sed 's/^/| /' conftest.$ac_ext >&5
20128
20129ac_header_compiler=no
20130fi
ac1cb8d3 20131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20132echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20133echo "${ECHO_T}$ac_header_compiler" >&6
20134
20135# Is the header present?
20136echo "$as_me:$LINENO: checking regex.h presence" >&5
20137echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
20138cat >conftest.$ac_ext <<_ACEOF
20139/* confdefs.h. */
20140_ACEOF
20141cat confdefs.h >>conftest.$ac_ext
20142cat >>conftest.$ac_ext <<_ACEOF
20143/* end confdefs.h. */
20144#include <regex.h>
20145_ACEOF
20146if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20147 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20148 ac_status=$?
20149 grep -v '^ *+' conftest.er1 >conftest.err
20150 rm -f conftest.er1
20151 cat conftest.err >&5
20152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153 (exit $ac_status); } >/dev/null; then
20154 if test -s conftest.err; then
20155 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20156 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20157 else
20158 ac_cpp_err=
20159 fi
20160else
20161 ac_cpp_err=yes
20162fi
20163if test -z "$ac_cpp_err"; then
20164 ac_header_preproc=yes
20165else
20166 echo "$as_me: failed program was:" >&5
20167sed 's/^/| /' conftest.$ac_ext >&5
20168
20169 ac_header_preproc=no
20170fi
20171rm -f conftest.err conftest.$ac_ext
20172echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20173echo "${ECHO_T}$ac_header_preproc" >&6
20174
20175# So? What about this header?
ac1cb8d3
VS
20176case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20177 yes:no: )
a848cd7e
SC
20178 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
20179echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20180 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
20181echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
20182 ac_header_preproc=yes
a848cd7e 20183 ;;
ac1cb8d3 20184 no:yes:* )
a848cd7e
SC
20185 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
20186echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20187 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
20188echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
20189 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
20190echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
20191 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
20192echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20193 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
20194echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20195 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
20196echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20197 (
20198 cat <<\_ASBOX
ac1cb8d3
VS
20199## ----------------------------------------- ##
20200## Report this to wx-dev@lists.wxwidgets.org ##
20201## ----------------------------------------- ##
a848cd7e
SC
20202_ASBOX
20203 ) |
20204 sed "s/^/$as_me: WARNING: /" >&2
20205 ;;
20206esac
20207echo "$as_me:$LINENO: checking for regex.h" >&5
20208echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20209if test "${ac_cv_header_regex_h+set}" = set; then
20210 echo $ECHO_N "(cached) $ECHO_C" >&6
20211else
20212 ac_cv_header_regex_h=$ac_header_preproc
20213fi
20214echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20215echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20216
20217fi
20218if test $ac_cv_header_regex_h = yes; then
20219
20220for ac_func in regcomp
20221do
20222as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20223echo "$as_me:$LINENO: checking for $ac_func" >&5
20224echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20225if eval "test \"\${$as_ac_var+set}\" = set"; then
20226 echo $ECHO_N "(cached) $ECHO_C" >&6
20227else
20228 cat >conftest.$ac_ext <<_ACEOF
20229/* confdefs.h. */
20230_ACEOF
20231cat confdefs.h >>conftest.$ac_ext
20232cat >>conftest.$ac_ext <<_ACEOF
20233/* end confdefs.h. */
ac1cb8d3
VS
20234/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20235 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20236#define $ac_func innocuous_$ac_func
20237
a848cd7e
SC
20238/* System header to define __stub macros and hopefully few prototypes,
20239 which can conflict with char $ac_func (); below.
20240 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20241 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 20242
a848cd7e
SC
20243#ifdef __STDC__
20244# include <limits.h>
20245#else
20246# include <assert.h>
20247#endif
ac1cb8d3
VS
20248
20249#undef $ac_func
20250
a848cd7e
SC
20251/* Override any gcc2 internal prototype to avoid an error. */
20252#ifdef __cplusplus
20253extern "C"
20254{
20255#endif
20256/* We use char because int might match the return type of a gcc2
20257 builtin and then its argument prototype would still apply. */
20258char $ac_func ();
20259/* The GNU C library defines this for functions which it implements
20260 to always fail with ENOSYS. Some functions are actually named
20261 something starting with __ and the normal name is an alias. */
20262#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20263choke me
20264#else
20265char (*f) () = $ac_func;
20266#endif
20267#ifdef __cplusplus
20268}
20269#endif
20270
20271int
20272main ()
20273{
20274return f != $ac_func;
20275 ;
20276 return 0;
20277}
20278_ACEOF
20279rm -f conftest.$ac_objext conftest$ac_exeext
20280if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20281 (eval $ac_link) 2>conftest.er1
a848cd7e 20282 ac_status=$?
ac1cb8d3
VS
20283 grep -v '^ *+' conftest.er1 >conftest.err
20284 rm -f conftest.er1
20285 cat conftest.err >&5
a848cd7e
SC
20286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287 (exit $ac_status); } &&
ea7db9ff
DE
20288 { ac_try='test -z "$ac_c_werror_flag"
20289 || test ! -s conftest.err'
ac1cb8d3
VS
20290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20291 (eval $ac_try) 2>&5
20292 ac_status=$?
20293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20294 (exit $ac_status); }; } &&
20295 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20297 (eval $ac_try) 2>&5
20298 ac_status=$?
20299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20300 (exit $ac_status); }; }; then
20301 eval "$as_ac_var=yes"
20302else
20303 echo "$as_me: failed program was:" >&5
20304sed 's/^/| /' conftest.$ac_ext >&5
20305
20306eval "$as_ac_var=no"
20307fi
ac1cb8d3
VS
20308rm -f conftest.err conftest.$ac_objext \
20309 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20310fi
20311echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20312echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20313if test `eval echo '${'$as_ac_var'}'` = yes; then
20314 cat >>confdefs.h <<_ACEOF
20315#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20316_ACEOF
20317
20318fi
20319done
20320
20321fi
20322
20323
20324
20325 if test "x$ac_cv_func_regcomp" != "xyes"; then
20326 if test "$wxUSE_REGEX" = "sys" ; then
20327 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
20328echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
20329 { (exit 1); exit 1; }; }
20330 else
20331 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
20332echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
20333 wxUSE_REGEX=builtin
20334 fi
20335 else
20336 wxUSE_REGEX=sys
20337 cat >>confdefs.h <<\_ACEOF
20338#define WX_NO_REGEX_ADVANCED 1
20339_ACEOF
20340
20341 fi
20342 fi
20343fi
20344
20345
20346ZLIB_LINK=
20347if test "$wxUSE_ZLIB" != "no" ; then
20348 cat >>confdefs.h <<\_ACEOF
20349#define wxUSE_ZLIB 1
20350_ACEOF
20351
20352
20353 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
20354 if test "$USE_DARWIN" = 1; then
20355 system_zlib_h_ok="yes"
20356 else
20357 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
20358echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
20359if test "${ac_cv_header_zlib_h+set}" = set; then
20360 echo $ECHO_N "(cached) $ECHO_C" >&6
20361else
20362 if test "$cross_compiling" = yes; then
20363 unset ac_cv_header_zlib_h
20364
20365else
20366 cat >conftest.$ac_ext <<_ACEOF
20367/* confdefs.h. */
20368_ACEOF
20369cat confdefs.h >>conftest.$ac_ext
20370cat >>conftest.$ac_ext <<_ACEOF
20371/* end confdefs.h. */
20372
20373 #include <zlib.h>
20374 #include <stdio.h>
20375
20376 int main()
20377 {
20378 FILE *f=fopen("conftestval", "w");
20379 if (!f) exit(1);
20380 fprintf(f, "%s",
20381 ZLIB_VERSION[0] == '1' &&
20382 (ZLIB_VERSION[2] > '1' ||
20383 (ZLIB_VERSION[2] == '1' &&
20384 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
20385 exit(0);
20386 }
20387
20388_ACEOF
20389rm -f conftest$ac_exeext
20390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20391 (eval $ac_link) 2>&5
20392 ac_status=$?
20393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20396 (eval $ac_try) 2>&5
20397 ac_status=$?
20398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20399 (exit $ac_status); }; }; then
20400 ac_cv_header_zlib_h=`cat conftestval`
20401else
20402 echo "$as_me: program exited with status $ac_status" >&5
20403echo "$as_me: failed program was:" >&5
20404sed 's/^/| /' conftest.$ac_ext >&5
20405
20406( exit $ac_status )
20407ac_cv_header_zlib_h=no
20408fi
ac1cb8d3 20409rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20410fi
20411
20412fi
20413echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20414echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20415 if test "${ac_cv_header_zlib_h+set}" = set; then
20416 echo "$as_me:$LINENO: checking for zlib.h" >&5
20417echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
20418if test "${ac_cv_header_zlib_h+set}" = set; then
20419 echo $ECHO_N "(cached) $ECHO_C" >&6
20420fi
20421echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20422echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20423else
20424 # Is the header compilable?
20425echo "$as_me:$LINENO: checking zlib.h usability" >&5
20426echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
20427cat >conftest.$ac_ext <<_ACEOF
20428/* confdefs.h. */
20429_ACEOF
20430cat confdefs.h >>conftest.$ac_ext
20431cat >>conftest.$ac_ext <<_ACEOF
20432/* end confdefs.h. */
20433$ac_includes_default
20434#include <zlib.h>
20435_ACEOF
20436rm -f conftest.$ac_objext
20437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20438 (eval $ac_compile) 2>conftest.er1
a848cd7e 20439 ac_status=$?
ac1cb8d3
VS
20440 grep -v '^ *+' conftest.er1 >conftest.err
20441 rm -f conftest.er1
20442 cat conftest.err >&5
a848cd7e
SC
20443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20444 (exit $ac_status); } &&
ea7db9ff
DE
20445 { ac_try='test -z "$ac_c_werror_flag"
20446 || test ! -s conftest.err'
ac1cb8d3
VS
20447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20448 (eval $ac_try) 2>&5
20449 ac_status=$?
20450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20451 (exit $ac_status); }; } &&
20452 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20454 (eval $ac_try) 2>&5
20455 ac_status=$?
20456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457 (exit $ac_status); }; }; then
20458 ac_header_compiler=yes
20459else
20460 echo "$as_me: failed program was:" >&5
20461sed 's/^/| /' conftest.$ac_ext >&5
20462
20463ac_header_compiler=no
20464fi
ac1cb8d3 20465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20466echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20467echo "${ECHO_T}$ac_header_compiler" >&6
20468
20469# Is the header present?
20470echo "$as_me:$LINENO: checking zlib.h presence" >&5
20471echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
20472cat >conftest.$ac_ext <<_ACEOF
20473/* confdefs.h. */
20474_ACEOF
20475cat confdefs.h >>conftest.$ac_ext
20476cat >>conftest.$ac_ext <<_ACEOF
20477/* end confdefs.h. */
20478#include <zlib.h>
20479_ACEOF
20480if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20481 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20482 ac_status=$?
20483 grep -v '^ *+' conftest.er1 >conftest.err
20484 rm -f conftest.er1
20485 cat conftest.err >&5
20486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487 (exit $ac_status); } >/dev/null; then
20488 if test -s conftest.err; then
20489 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20490 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20491 else
20492 ac_cpp_err=
20493 fi
20494else
20495 ac_cpp_err=yes
20496fi
20497if test -z "$ac_cpp_err"; then
20498 ac_header_preproc=yes
20499else
20500 echo "$as_me: failed program was:" >&5
20501sed 's/^/| /' conftest.$ac_ext >&5
20502
20503 ac_header_preproc=no
20504fi
20505rm -f conftest.err conftest.$ac_ext
20506echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20507echo "${ECHO_T}$ac_header_preproc" >&6
20508
20509# So? What about this header?
ac1cb8d3
VS
20510case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20511 yes:no: )
a848cd7e
SC
20512 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
20513echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20514 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
20515echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
20516 ac_header_preproc=yes
a848cd7e 20517 ;;
ac1cb8d3 20518 no:yes:* )
a848cd7e
SC
20519 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
20520echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20521 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
20522echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
20523 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
20524echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
20525 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
20526echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20527 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
20528echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20529 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
20530echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20531 (
20532 cat <<\_ASBOX
ac1cb8d3
VS
20533## ----------------------------------------- ##
20534## Report this to wx-dev@lists.wxwidgets.org ##
20535## ----------------------------------------- ##
a848cd7e
SC
20536_ASBOX
20537 ) |
20538 sed "s/^/$as_me: WARNING: /" >&2
20539 ;;
20540esac
20541echo "$as_me:$LINENO: checking for zlib.h" >&5
20542echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
20543if test "${ac_cv_header_zlib_h+set}" = set; then
20544 echo $ECHO_N "(cached) $ECHO_C" >&6
20545else
20546 ac_cv_header_zlib_h=$ac_header_preproc
20547fi
20548echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20549echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20550
20551fi
20552
20553
20554
20555 system_zlib_h_ok=$ac_cv_header_zlib_h
20556 fi
20557
20558 if test "$system_zlib_h_ok" = "yes"; then
20559 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
20560echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
20561if test "${ac_cv_lib_z_deflate+set}" = set; then
20562 echo $ECHO_N "(cached) $ECHO_C" >&6
20563else
20564 ac_check_lib_save_LIBS=$LIBS
20565LIBS="-lz $LIBS"
20566cat >conftest.$ac_ext <<_ACEOF
20567/* confdefs.h. */
20568_ACEOF
20569cat confdefs.h >>conftest.$ac_ext
20570cat >>conftest.$ac_ext <<_ACEOF
20571/* end confdefs.h. */
20572
20573/* Override any gcc2 internal prototype to avoid an error. */
20574#ifdef __cplusplus
20575extern "C"
20576#endif
20577/* We use char because int might match the return type of a gcc2
20578 builtin and then its argument prototype would still apply. */
20579char deflate ();
20580int
20581main ()
20582{
20583deflate ();
20584 ;
20585 return 0;
20586}
20587_ACEOF
20588rm -f conftest.$ac_objext conftest$ac_exeext
20589if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20590 (eval $ac_link) 2>conftest.er1
a848cd7e 20591 ac_status=$?
ac1cb8d3
VS
20592 grep -v '^ *+' conftest.er1 >conftest.err
20593 rm -f conftest.er1
20594 cat conftest.err >&5
a848cd7e
SC
20595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20596 (exit $ac_status); } &&
ea7db9ff
DE
20597 { ac_try='test -z "$ac_c_werror_flag"
20598 || test ! -s conftest.err'
ac1cb8d3
VS
20599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20600 (eval $ac_try) 2>&5
20601 ac_status=$?
20602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20603 (exit $ac_status); }; } &&
20604 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20606 (eval $ac_try) 2>&5
20607 ac_status=$?
20608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609 (exit $ac_status); }; }; then
20610 ac_cv_lib_z_deflate=yes
20611else
20612 echo "$as_me: failed program was:" >&5
20613sed 's/^/| /' conftest.$ac_ext >&5
20614
20615ac_cv_lib_z_deflate=no
20616fi
ac1cb8d3
VS
20617rm -f conftest.err conftest.$ac_objext \
20618 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20619LIBS=$ac_check_lib_save_LIBS
20620fi
20621echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
20622echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
20623if test $ac_cv_lib_z_deflate = yes; then
20624 ZLIB_LINK=" -lz"
20625fi
20626
20627 fi
20628
20629 if test "x$ZLIB_LINK" = "x" ; then
20630 if test "$wxUSE_ZLIB" = "sys" ; then
20631 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
20632echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
20633 { (exit 1); exit 1; }; }
20634 else
20635 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
20636echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
20637 wxUSE_ZLIB=builtin
20638 fi
20639 else
20640 wxUSE_ZLIB=sys
20641 fi
20642 fi
20643fi
20644
20645
20646PNG_LINK=
20647if test "$wxUSE_LIBPNG" != "no" ; then
20648 cat >>confdefs.h <<\_ACEOF
20649#define wxUSE_LIBPNG 1
20650_ACEOF
20651
20652
20653 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
20654 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
20655echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
20656 wxUSE_LIBPNG=sys
20657 fi
20658
20659 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
20660 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
20661echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
20662 wxUSE_LIBPNG=builtin
20663 fi
20664
20665 if test "$wxUSE_MGL" != 1 ; then
20666 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
20667 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
20668echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
20669if test "${ac_cv_header_png_h+set}" = set; then
20670 echo $ECHO_N "(cached) $ECHO_C" >&6
20671else
20672 if test "$cross_compiling" = yes; then
20673 unset ac_cv_header_png_h
20674
20675else
20676 cat >conftest.$ac_ext <<_ACEOF
20677/* confdefs.h. */
20678_ACEOF
20679cat confdefs.h >>conftest.$ac_ext
20680cat >>conftest.$ac_ext <<_ACEOF
20681/* end confdefs.h. */
20682
20683 #include <png.h>
20684 #include <stdio.h>
20685
20686 int main()
20687 {
20688 FILE *f=fopen("conftestval", "w");
20689 if (!f) exit(1);
20690 fprintf(f, "%s",
20691 PNG_LIBPNG_VER > 90 ? "yes" : "no");
20692 exit(0);
20693 }
20694
20695_ACEOF
20696rm -f conftest$ac_exeext
20697if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20698 (eval $ac_link) 2>&5
20699 ac_status=$?
20700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20701 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20703 (eval $ac_try) 2>&5
20704 ac_status=$?
20705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20706 (exit $ac_status); }; }; then
20707 ac_cv_header_png_h=`cat conftestval`
20708else
20709 echo "$as_me: program exited with status $ac_status" >&5
20710echo "$as_me: failed program was:" >&5
20711sed 's/^/| /' conftest.$ac_ext >&5
20712
20713( exit $ac_status )
20714ac_cv_header_png_h=no
20715fi
ac1cb8d3 20716rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20717fi
20718
20719fi
20720echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20721echo "${ECHO_T}$ac_cv_header_png_h" >&6
20722 if test "${ac_cv_header_png_h+set}" = set; then
20723 echo "$as_me:$LINENO: checking for png.h" >&5
20724echo $ECHO_N "checking for png.h... $ECHO_C" >&6
20725if test "${ac_cv_header_png_h+set}" = set; then
20726 echo $ECHO_N "(cached) $ECHO_C" >&6
20727fi
20728echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20729echo "${ECHO_T}$ac_cv_header_png_h" >&6
20730else
20731 # Is the header compilable?
20732echo "$as_me:$LINENO: checking png.h usability" >&5
20733echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
20734cat >conftest.$ac_ext <<_ACEOF
20735/* confdefs.h. */
20736_ACEOF
20737cat confdefs.h >>conftest.$ac_ext
20738cat >>conftest.$ac_ext <<_ACEOF
20739/* end confdefs.h. */
20740$ac_includes_default
20741#include <png.h>
20742_ACEOF
20743rm -f conftest.$ac_objext
20744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20745 (eval $ac_compile) 2>conftest.er1
a848cd7e 20746 ac_status=$?
ac1cb8d3
VS
20747 grep -v '^ *+' conftest.er1 >conftest.err
20748 rm -f conftest.er1
20749 cat conftest.err >&5
a848cd7e
SC
20750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20751 (exit $ac_status); } &&
ea7db9ff
DE
20752 { ac_try='test -z "$ac_c_werror_flag"
20753 || test ! -s conftest.err'
ac1cb8d3
VS
20754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20755 (eval $ac_try) 2>&5
20756 ac_status=$?
20757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20758 (exit $ac_status); }; } &&
20759 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20761 (eval $ac_try) 2>&5
20762 ac_status=$?
20763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20764 (exit $ac_status); }; }; then
20765 ac_header_compiler=yes
20766else
20767 echo "$as_me: failed program was:" >&5
20768sed 's/^/| /' conftest.$ac_ext >&5
20769
20770ac_header_compiler=no
20771fi
ac1cb8d3 20772rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20773echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20774echo "${ECHO_T}$ac_header_compiler" >&6
20775
20776# Is the header present?
20777echo "$as_me:$LINENO: checking png.h presence" >&5
20778echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
20779cat >conftest.$ac_ext <<_ACEOF
20780/* confdefs.h. */
20781_ACEOF
20782cat confdefs.h >>conftest.$ac_ext
20783cat >>conftest.$ac_ext <<_ACEOF
20784/* end confdefs.h. */
20785#include <png.h>
20786_ACEOF
20787if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20788 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20789 ac_status=$?
20790 grep -v '^ *+' conftest.er1 >conftest.err
20791 rm -f conftest.er1
20792 cat conftest.err >&5
20793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20794 (exit $ac_status); } >/dev/null; then
20795 if test -s conftest.err; then
20796 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20797 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20798 else
20799 ac_cpp_err=
20800 fi
20801else
20802 ac_cpp_err=yes
20803fi
20804if test -z "$ac_cpp_err"; then
20805 ac_header_preproc=yes
20806else
20807 echo "$as_me: failed program was:" >&5
20808sed 's/^/| /' conftest.$ac_ext >&5
20809
20810 ac_header_preproc=no
20811fi
20812rm -f conftest.err conftest.$ac_ext
20813echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20814echo "${ECHO_T}$ac_header_preproc" >&6
20815
20816# So? What about this header?
ac1cb8d3
VS
20817case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20818 yes:no: )
a848cd7e
SC
20819 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
20820echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20821 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
20822echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
20823 ac_header_preproc=yes
a848cd7e 20824 ;;
ac1cb8d3 20825 no:yes:* )
a848cd7e
SC
20826 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
20827echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20828 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
20829echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
20830 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
20831echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
20832 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
20833echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20834 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
20835echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20836 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
20837echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20838 (
20839 cat <<\_ASBOX
ac1cb8d3
VS
20840## ----------------------------------------- ##
20841## Report this to wx-dev@lists.wxwidgets.org ##
20842## ----------------------------------------- ##
a848cd7e
SC
20843_ASBOX
20844 ) |
20845 sed "s/^/$as_me: WARNING: /" >&2
20846 ;;
20847esac
20848echo "$as_me:$LINENO: checking for png.h" >&5
20849echo $ECHO_N "checking for png.h... $ECHO_C" >&6
20850if test "${ac_cv_header_png_h+set}" = set; then
20851 echo $ECHO_N "(cached) $ECHO_C" >&6
20852else
20853 ac_cv_header_png_h=$ac_header_preproc
20854fi
20855echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20856echo "${ECHO_T}$ac_cv_header_png_h" >&6
20857
20858fi
20859
20860
20861
20862 if test "$ac_cv_header_png_h" = "yes"; then
20863 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
20864echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
20865if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
20866 echo $ECHO_N "(cached) $ECHO_C" >&6
20867else
20868 ac_check_lib_save_LIBS=$LIBS
20869LIBS="-lpng -lz -lm $LIBS"
20870cat >conftest.$ac_ext <<_ACEOF
20871/* confdefs.h. */
20872_ACEOF
20873cat confdefs.h >>conftest.$ac_ext
20874cat >>conftest.$ac_ext <<_ACEOF
20875/* end confdefs.h. */
20876
20877/* Override any gcc2 internal prototype to avoid an error. */
20878#ifdef __cplusplus
20879extern "C"
20880#endif
20881/* We use char because int might match the return type of a gcc2
20882 builtin and then its argument prototype would still apply. */
20883char png_check_sig ();
20884int
20885main ()
20886{
20887png_check_sig ();
20888 ;
20889 return 0;
20890}
20891_ACEOF
20892rm -f conftest.$ac_objext conftest$ac_exeext
20893if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20894 (eval $ac_link) 2>conftest.er1
a848cd7e 20895 ac_status=$?
ac1cb8d3
VS
20896 grep -v '^ *+' conftest.er1 >conftest.err
20897 rm -f conftest.er1
20898 cat conftest.err >&5
a848cd7e
SC
20899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20900 (exit $ac_status); } &&
ea7db9ff
DE
20901 { ac_try='test -z "$ac_c_werror_flag"
20902 || test ! -s conftest.err'
ac1cb8d3
VS
20903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20904 (eval $ac_try) 2>&5
20905 ac_status=$?
20906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907 (exit $ac_status); }; } &&
20908 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20910 (eval $ac_try) 2>&5
20911 ac_status=$?
20912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20913 (exit $ac_status); }; }; then
20914 ac_cv_lib_png_png_check_sig=yes
20915else
20916 echo "$as_me: failed program was:" >&5
20917sed 's/^/| /' conftest.$ac_ext >&5
20918
20919ac_cv_lib_png_png_check_sig=no
20920fi
ac1cb8d3
VS
20921rm -f conftest.err conftest.$ac_objext \
20922 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20923LIBS=$ac_check_lib_save_LIBS
20924fi
20925echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
20926echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
20927if test $ac_cv_lib_png_png_check_sig = yes; then
20928 PNG_LINK=" -lpng -lz"
20929fi
20930
20931 fi
20932
20933 if test "x$PNG_LINK" = "x" ; then
20934 if test "$wxUSE_LIBPNG" = "sys" ; then
20935 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
20936echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
20937 { (exit 1); exit 1; }; }
20938 else
20939 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
20940echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
20941 wxUSE_LIBPNG=builtin
20942 fi
20943 else
20944 wxUSE_LIBPNG=sys
20945 fi
20946 fi
20947 fi
20948
20949 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
20950fi
20951
20952
20953JPEG_LINK=
20954if test "$wxUSE_LIBJPEG" != "no" ; then
20955 cat >>confdefs.h <<\_ACEOF
20956#define wxUSE_LIBJPEG 1
20957_ACEOF
20958
20959
20960 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
20961 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
20962echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
20963 wxUSE_LIBJPEG=sys
20964 fi
20965
20966 if test "$wxUSE_MGL" != 1 ; then
20967 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
20968 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
20969echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
20970 if test "${ac_cv_header_jpeglib_h+set}" = set; then
20971 echo $ECHO_N "(cached) $ECHO_C" >&6
20972else
20973 cat >conftest.$ac_ext <<_ACEOF
20974/* confdefs.h. */
20975_ACEOF
20976cat confdefs.h >>conftest.$ac_ext
20977cat >>conftest.$ac_ext <<_ACEOF
20978/* end confdefs.h. */
20979
20980 #undef HAVE_STDLIB_H
20981 #include <stdio.h>
20982 #include <jpeglib.h>
20983
20984int
20985main ()
20986{
20987
20988
20989 ;
20990 return 0;
20991}
20992_ACEOF
20993rm -f conftest.$ac_objext
20994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20995 (eval $ac_compile) 2>conftest.er1
a848cd7e 20996 ac_status=$?
ac1cb8d3
VS
20997 grep -v '^ *+' conftest.er1 >conftest.err
20998 rm -f conftest.er1
20999 cat conftest.err >&5
a848cd7e
SC
21000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001 (exit $ac_status); } &&
ea7db9ff
DE
21002 { ac_try='test -z "$ac_c_werror_flag"
21003 || test ! -s conftest.err'
ac1cb8d3
VS
21004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21005 (eval $ac_try) 2>&5
21006 ac_status=$?
21007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008 (exit $ac_status); }; } &&
21009 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21011 (eval $ac_try) 2>&5
21012 ac_status=$?
21013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21014 (exit $ac_status); }; }; then
21015 ac_cv_header_jpeglib_h=yes
21016else
21017 echo "$as_me: failed program was:" >&5
21018sed 's/^/| /' conftest.$ac_ext >&5
21019
21020ac_cv_header_jpeglib_h=no
21021
21022fi
ac1cb8d3 21023rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21024
21025fi
21026
21027 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
21028echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
21029
21030 if test "$ac_cv_header_jpeglib_h" = "yes"; then
21031 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
21032echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
21033if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
21034 echo $ECHO_N "(cached) $ECHO_C" >&6
21035else
21036 ac_check_lib_save_LIBS=$LIBS
21037LIBS="-ljpeg $LIBS"
21038cat >conftest.$ac_ext <<_ACEOF
21039/* confdefs.h. */
21040_ACEOF
21041cat confdefs.h >>conftest.$ac_ext
21042cat >>conftest.$ac_ext <<_ACEOF
21043/* end confdefs.h. */
21044
21045/* Override any gcc2 internal prototype to avoid an error. */
21046#ifdef __cplusplus
21047extern "C"
21048#endif
21049/* We use char because int might match the return type of a gcc2
21050 builtin and then its argument prototype would still apply. */
21051char jpeg_read_header ();
21052int
21053main ()
21054{
21055jpeg_read_header ();
21056 ;
21057 return 0;
21058}
21059_ACEOF
21060rm -f conftest.$ac_objext conftest$ac_exeext
21061if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21062 (eval $ac_link) 2>conftest.er1
a848cd7e 21063 ac_status=$?
ac1cb8d3
VS
21064 grep -v '^ *+' conftest.er1 >conftest.err
21065 rm -f conftest.er1
21066 cat conftest.err >&5
a848cd7e
SC
21067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21068 (exit $ac_status); } &&
ea7db9ff
DE
21069 { ac_try='test -z "$ac_c_werror_flag"
21070 || test ! -s conftest.err'
ac1cb8d3
VS
21071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21072 (eval $ac_try) 2>&5
21073 ac_status=$?
21074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21075 (exit $ac_status); }; } &&
21076 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21078 (eval $ac_try) 2>&5
21079 ac_status=$?
21080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21081 (exit $ac_status); }; }; then
21082 ac_cv_lib_jpeg_jpeg_read_header=yes
21083else
21084 echo "$as_me: failed program was:" >&5
21085sed 's/^/| /' conftest.$ac_ext >&5
21086
21087ac_cv_lib_jpeg_jpeg_read_header=no
21088fi
ac1cb8d3
VS
21089rm -f conftest.err conftest.$ac_objext \
21090 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21091LIBS=$ac_check_lib_save_LIBS
21092fi
21093echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
21094echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
21095if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21096 JPEG_LINK=" -ljpeg"
21097fi
21098
21099 fi
21100
21101 if test "x$JPEG_LINK" = "x" ; then
21102 if test "$wxUSE_LIBJPEG" = "sys" ; then
21103 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
21104echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
21105 { (exit 1); exit 1; }; }
21106 else
21107 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
21108echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21109 wxUSE_LIBJPEG=builtin
21110 fi
21111 else
21112 wxUSE_LIBJPEG=sys
21113 fi
21114 fi
21115 fi
21116fi
21117
21118
21119TIFF_LINK=
21120TIFF_PREREQ_LINKS=-lm
21121if test "$wxUSE_LIBTIFF" != "no" ; then
21122 cat >>confdefs.h <<\_ACEOF
21123#define wxUSE_LIBTIFF 1
21124_ACEOF
21125
21126
21127 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
21128 if test "$wxUSE_LIBJPEG" = "sys"; then
21129 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
21130 fi
21131 if test "$wxUSE_ZLIB" = "sys"; then
21132 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
21133 fi
21134 if test "${ac_cv_header_tiffio_h+set}" = set; then
21135 echo "$as_me:$LINENO: checking for tiffio.h" >&5
21136echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21137if test "${ac_cv_header_tiffio_h+set}" = set; then
21138 echo $ECHO_N "(cached) $ECHO_C" >&6
21139fi
21140echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21141echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21142else
21143 # Is the header compilable?
21144echo "$as_me:$LINENO: checking tiffio.h usability" >&5
21145echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
21146cat >conftest.$ac_ext <<_ACEOF
21147/* confdefs.h. */
21148_ACEOF
21149cat confdefs.h >>conftest.$ac_ext
21150cat >>conftest.$ac_ext <<_ACEOF
21151/* end confdefs.h. */
21152$ac_includes_default
21153#include <tiffio.h>
21154_ACEOF
21155rm -f conftest.$ac_objext
21156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21157 (eval $ac_compile) 2>conftest.er1
a848cd7e 21158 ac_status=$?
ac1cb8d3
VS
21159 grep -v '^ *+' conftest.er1 >conftest.err
21160 rm -f conftest.er1
21161 cat conftest.err >&5
a848cd7e
SC
21162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21163 (exit $ac_status); } &&
ea7db9ff
DE
21164 { ac_try='test -z "$ac_c_werror_flag"
21165 || test ! -s conftest.err'
ac1cb8d3
VS
21166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21167 (eval $ac_try) 2>&5
21168 ac_status=$?
21169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21170 (exit $ac_status); }; } &&
21171 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21173 (eval $ac_try) 2>&5
21174 ac_status=$?
21175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21176 (exit $ac_status); }; }; then
21177 ac_header_compiler=yes
21178else
21179 echo "$as_me: failed program was:" >&5
21180sed 's/^/| /' conftest.$ac_ext >&5
21181
21182ac_header_compiler=no
21183fi
ac1cb8d3 21184rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21185echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21186echo "${ECHO_T}$ac_header_compiler" >&6
21187
21188# Is the header present?
21189echo "$as_me:$LINENO: checking tiffio.h presence" >&5
21190echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
21191cat >conftest.$ac_ext <<_ACEOF
21192/* confdefs.h. */
21193_ACEOF
21194cat confdefs.h >>conftest.$ac_ext
21195cat >>conftest.$ac_ext <<_ACEOF
21196/* end confdefs.h. */
21197#include <tiffio.h>
21198_ACEOF
21199if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21200 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21201 ac_status=$?
21202 grep -v '^ *+' conftest.er1 >conftest.err
21203 rm -f conftest.er1
21204 cat conftest.err >&5
21205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206 (exit $ac_status); } >/dev/null; then
21207 if test -s conftest.err; then
21208 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21209 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21210 else
21211 ac_cpp_err=
21212 fi
21213else
21214 ac_cpp_err=yes
21215fi
21216if test -z "$ac_cpp_err"; then
21217 ac_header_preproc=yes
21218else
21219 echo "$as_me: failed program was:" >&5
21220sed 's/^/| /' conftest.$ac_ext >&5
21221
21222 ac_header_preproc=no
21223fi
21224rm -f conftest.err conftest.$ac_ext
21225echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21226echo "${ECHO_T}$ac_header_preproc" >&6
21227
21228# So? What about this header?
ac1cb8d3
VS
21229case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21230 yes:no: )
a848cd7e
SC
21231 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
21232echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21233 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
21234echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
21235 ac_header_preproc=yes
a848cd7e 21236 ;;
ac1cb8d3 21237 no:yes:* )
a848cd7e
SC
21238 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
21239echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21240 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
21241echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
21242 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
21243echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
21244 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
21245echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21246 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
21247echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21248 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
21249echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21250 (
21251 cat <<\_ASBOX
ac1cb8d3
VS
21252## ----------------------------------------- ##
21253## Report this to wx-dev@lists.wxwidgets.org ##
21254## ----------------------------------------- ##
a848cd7e
SC
21255_ASBOX
21256 ) |
21257 sed "s/^/$as_me: WARNING: /" >&2
21258 ;;
21259esac
21260echo "$as_me:$LINENO: checking for tiffio.h" >&5
21261echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21262if test "${ac_cv_header_tiffio_h+set}" = set; then
21263 echo $ECHO_N "(cached) $ECHO_C" >&6
21264else
21265 ac_cv_header_tiffio_h=$ac_header_preproc
21266fi
21267echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21268echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21269
21270fi
21271if test $ac_cv_header_tiffio_h = yes; then
21272
21273 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
21274echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
21275if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
21276 echo $ECHO_N "(cached) $ECHO_C" >&6
21277else
21278 ac_check_lib_save_LIBS=$LIBS
21279LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
21280cat >conftest.$ac_ext <<_ACEOF
21281/* confdefs.h. */
21282_ACEOF
21283cat confdefs.h >>conftest.$ac_ext
21284cat >>conftest.$ac_ext <<_ACEOF
21285/* end confdefs.h. */
21286
21287/* Override any gcc2 internal prototype to avoid an error. */
21288#ifdef __cplusplus
21289extern "C"
21290#endif
21291/* We use char because int might match the return type of a gcc2
21292 builtin and then its argument prototype would still apply. */
21293char TIFFError ();
21294int
21295main ()
21296{
21297TIFFError ();
21298 ;
21299 return 0;
21300}
21301_ACEOF
21302rm -f conftest.$ac_objext conftest$ac_exeext
21303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21304 (eval $ac_link) 2>conftest.er1
a848cd7e 21305 ac_status=$?
ac1cb8d3
VS
21306 grep -v '^ *+' conftest.er1 >conftest.err
21307 rm -f conftest.er1
21308 cat conftest.err >&5
a848cd7e
SC
21309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21310 (exit $ac_status); } &&
ea7db9ff
DE
21311 { ac_try='test -z "$ac_c_werror_flag"
21312 || test ! -s conftest.err'
ac1cb8d3
VS
21313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21314 (eval $ac_try) 2>&5
21315 ac_status=$?
21316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21317 (exit $ac_status); }; } &&
21318 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21320 (eval $ac_try) 2>&5
21321 ac_status=$?
21322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21323 (exit $ac_status); }; }; then
21324 ac_cv_lib_tiff_TIFFError=yes
21325else
21326 echo "$as_me: failed program was:" >&5
21327sed 's/^/| /' conftest.$ac_ext >&5
21328
21329ac_cv_lib_tiff_TIFFError=no
21330fi
ac1cb8d3
VS
21331rm -f conftest.err conftest.$ac_objext \
21332 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21333LIBS=$ac_check_lib_save_LIBS
21334fi
21335echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
21336echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
21337if test $ac_cv_lib_tiff_TIFFError = yes; then
21338 TIFF_LINK=" -ltiff"
21339fi
21340
21341
21342
21343fi
21344
21345
21346
21347 if test "x$TIFF_LINK" = "x" ; then
21348 if test "$wxUSE_LIBTIFF" = "sys" ; then
21349 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
21350echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
21351 { (exit 1); exit 1; }; }
21352 else
21353 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
21354echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
21355 wxUSE_LIBTIFF=builtin
21356 fi
21357 else
21358 wxUSE_LIBTIFF=sys
21359 fi
21360 fi
21361fi
21362
21363
21364if test "$wxUSE_EXPAT" != "no"; then
21365 wxUSE_XML=yes
21366 cat >>confdefs.h <<\_ACEOF
21367#define wxUSE_EXPAT 1
21368_ACEOF
21369
21370 cat >>confdefs.h <<\_ACEOF
21371#define wxUSE_XML 1
21372_ACEOF
21373
21374
21375 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
21376 if test "${ac_cv_header_expat_h+set}" = set; then
21377 echo "$as_me:$LINENO: checking for expat.h" >&5
21378echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
21379if test "${ac_cv_header_expat_h+set}" = set; then
21380 echo $ECHO_N "(cached) $ECHO_C" >&6
21381fi
21382echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
21383echo "${ECHO_T}$ac_cv_header_expat_h" >&6
21384else
21385 # Is the header compilable?
21386echo "$as_me:$LINENO: checking expat.h usability" >&5
21387echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
21388cat >conftest.$ac_ext <<_ACEOF
21389/* confdefs.h. */
21390_ACEOF
21391cat confdefs.h >>conftest.$ac_ext
21392cat >>conftest.$ac_ext <<_ACEOF
21393/* end confdefs.h. */
21394$ac_includes_default
21395#include <expat.h>
21396_ACEOF
21397rm -f conftest.$ac_objext
21398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21399 (eval $ac_compile) 2>conftest.er1
a848cd7e 21400 ac_status=$?
ac1cb8d3
VS
21401 grep -v '^ *+' conftest.er1 >conftest.err
21402 rm -f conftest.er1
21403 cat conftest.err >&5
a848cd7e
SC
21404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405 (exit $ac_status); } &&
ea7db9ff
DE
21406 { ac_try='test -z "$ac_c_werror_flag"
21407 || test ! -s conftest.err'
ac1cb8d3
VS
21408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21409 (eval $ac_try) 2>&5
21410 ac_status=$?
21411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21412 (exit $ac_status); }; } &&
21413 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21415 (eval $ac_try) 2>&5
21416 ac_status=$?
21417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21418 (exit $ac_status); }; }; then
21419 ac_header_compiler=yes
21420else
21421 echo "$as_me: failed program was:" >&5
21422sed 's/^/| /' conftest.$ac_ext >&5
21423
21424ac_header_compiler=no
21425fi
ac1cb8d3 21426rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21427echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21428echo "${ECHO_T}$ac_header_compiler" >&6
21429
21430# Is the header present?
21431echo "$as_me:$LINENO: checking expat.h presence" >&5
21432echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
21433cat >conftest.$ac_ext <<_ACEOF
21434/* confdefs.h. */
21435_ACEOF
21436cat confdefs.h >>conftest.$ac_ext
21437cat >>conftest.$ac_ext <<_ACEOF
21438/* end confdefs.h. */
21439#include <expat.h>
21440_ACEOF
21441if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21442 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21443 ac_status=$?
21444 grep -v '^ *+' conftest.er1 >conftest.err
21445 rm -f conftest.er1
21446 cat conftest.err >&5
21447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21448 (exit $ac_status); } >/dev/null; then
21449 if test -s conftest.err; then
21450 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21451 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21452 else
21453 ac_cpp_err=
21454 fi
21455else
21456 ac_cpp_err=yes
21457fi
21458if test -z "$ac_cpp_err"; then
21459 ac_header_preproc=yes
21460else
21461 echo "$as_me: failed program was:" >&5
21462sed 's/^/| /' conftest.$ac_ext >&5
21463
21464 ac_header_preproc=no
21465fi
21466rm -f conftest.err conftest.$ac_ext
21467echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21468echo "${ECHO_T}$ac_header_preproc" >&6
21469
21470# So? What about this header?
ac1cb8d3
VS
21471case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21472 yes:no: )
a848cd7e
SC
21473 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
21474echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21475 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
21476echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
21477 ac_header_preproc=yes
a848cd7e 21478 ;;
ac1cb8d3 21479 no:yes:* )
a848cd7e
SC
21480 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
21481echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21482 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
21483echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
21484 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
21485echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
21486 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
21487echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21488 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
21489echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21490 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
21491echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21492 (
21493 cat <<\_ASBOX
ac1cb8d3
VS
21494## ----------------------------------------- ##
21495## Report this to wx-dev@lists.wxwidgets.org ##
21496## ----------------------------------------- ##
a848cd7e
SC
21497_ASBOX
21498 ) |
21499 sed "s/^/$as_me: WARNING: /" >&2
21500 ;;
21501esac
21502echo "$as_me:$LINENO: checking for expat.h" >&5
21503echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
21504if test "${ac_cv_header_expat_h+set}" = set; then
21505 echo $ECHO_N "(cached) $ECHO_C" >&6
21506else
21507 ac_cv_header_expat_h=$ac_header_preproc
21508fi
21509echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
21510echo "${ECHO_T}$ac_cv_header_expat_h" >&6
21511
21512fi
21513if test $ac_cv_header_expat_h = yes; then
21514 found_expat_h=1
21515fi
21516
21517
21518 if test "x$found_expat_h" = "x1"; then
21519 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
21520echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
21521if test "${wx_cv_expat_is_not_broken+set}" = set; then
21522 echo $ECHO_N "(cached) $ECHO_C" >&6
21523else
21524
21525
21526
21527 ac_ext=cc
21528ac_cpp='$CXXCPP $CPPFLAGS'
21529ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21530ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21531ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21532
21533 cat >conftest.$ac_ext <<_ACEOF
21534/* confdefs.h. */
21535_ACEOF
21536cat confdefs.h >>conftest.$ac_ext
21537cat >>conftest.$ac_ext <<_ACEOF
21538/* end confdefs.h. */
21539#include <expat.h>
21540int
21541main ()
21542{
21543
21544 ;
21545 return 0;
21546}
21547_ACEOF
21548rm -f conftest.$ac_objext
21549if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21550 (eval $ac_compile) 2>conftest.er1
a848cd7e 21551 ac_status=$?
ac1cb8d3
VS
21552 grep -v '^ *+' conftest.er1 >conftest.err
21553 rm -f conftest.er1
21554 cat conftest.err >&5
a848cd7e
SC
21555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21556 (exit $ac_status); } &&
ea7db9ff
DE
21557 { ac_try='test -z "$ac_cxx_werror_flag"
21558 || test ! -s conftest.err'
ac1cb8d3
VS
21559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21560 (eval $ac_try) 2>&5
21561 ac_status=$?
21562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21563 (exit $ac_status); }; } &&
21564 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21566 (eval $ac_try) 2>&5
21567 ac_status=$?
21568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21569 (exit $ac_status); }; }; then
21570 wx_cv_expat_is_not_broken=yes
21571else
21572 echo "$as_me: failed program was:" >&5
21573sed 's/^/| /' conftest.$ac_ext >&5
21574
21575wx_cv_expat_is_not_broken=no
21576
21577fi
ac1cb8d3 21578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21579 ac_ext=c
21580ac_cpp='$CPP $CPPFLAGS'
21581ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21582ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21583ac_compiler_gnu=$ac_cv_c_compiler_gnu
21584
21585
21586
21587fi
21588echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
21589echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
21590 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
21591 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
21592echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
21593if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
21594 echo $ECHO_N "(cached) $ECHO_C" >&6
21595else
21596 ac_check_lib_save_LIBS=$LIBS
21597LIBS="-lexpat $LIBS"
21598cat >conftest.$ac_ext <<_ACEOF
21599/* confdefs.h. */
21600_ACEOF
21601cat confdefs.h >>conftest.$ac_ext
21602cat >>conftest.$ac_ext <<_ACEOF
21603/* end confdefs.h. */
21604
21605/* Override any gcc2 internal prototype to avoid an error. */
21606#ifdef __cplusplus
21607extern "C"
21608#endif
21609/* We use char because int might match the return type of a gcc2
21610 builtin and then its argument prototype would still apply. */
21611char XML_ParserCreate ();
21612int
21613main ()
21614{
21615XML_ParserCreate ();
21616 ;
21617 return 0;
21618}
21619_ACEOF
21620rm -f conftest.$ac_objext conftest$ac_exeext
21621if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21622 (eval $ac_link) 2>conftest.er1
a848cd7e 21623 ac_status=$?
ac1cb8d3
VS
21624 grep -v '^ *+' conftest.er1 >conftest.err
21625 rm -f conftest.er1
21626 cat conftest.err >&5
a848cd7e
SC
21627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21628 (exit $ac_status); } &&
ea7db9ff
DE
21629 { ac_try='test -z "$ac_c_werror_flag"
21630 || test ! -s conftest.err'
ac1cb8d3
VS
21631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21632 (eval $ac_try) 2>&5
21633 ac_status=$?
21634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21635 (exit $ac_status); }; } &&
21636 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21638 (eval $ac_try) 2>&5
21639 ac_status=$?
21640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21641 (exit $ac_status); }; }; then
21642 ac_cv_lib_expat_XML_ParserCreate=yes
21643else
21644 echo "$as_me: failed program was:" >&5
21645sed 's/^/| /' conftest.$ac_ext >&5
21646
21647ac_cv_lib_expat_XML_ParserCreate=no
21648fi
ac1cb8d3
VS
21649rm -f conftest.err conftest.$ac_objext \
21650 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21651LIBS=$ac_check_lib_save_LIBS
21652fi
21653echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
21654echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
21655if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
21656 EXPAT_LINK=" -lexpat"
21657fi
21658
21659 fi
21660 fi
21661 if test "x$EXPAT_LINK" = "x" ; then
21662 if test "$wxUSE_EXPAT" = "sys" ; then
21663 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
21664echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
21665 { (exit 1); exit 1; }; }
21666 else
21667 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
21668echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
21669 wxUSE_EXPAT=builtin
21670 fi
21671 else
21672 wxUSE_EXPAT=sys
21673 fi
21674 fi
21675 if test "$wxUSE_EXPAT" = "builtin" ; then
21676
21677
21678subdirs="$subdirs src/expat"
21679
21680 fi
21681fi
21682
21683
21684
21685if test "$wxUSE_LIBMSPACK" != "no"; then
21686
21687 if test "${ac_cv_header_mspack_h+set}" = set; then
21688 echo "$as_me:$LINENO: checking for mspack.h" >&5
21689echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
21690if test "${ac_cv_header_mspack_h+set}" = set; then
21691 echo $ECHO_N "(cached) $ECHO_C" >&6
21692fi
21693echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
21694echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
21695else
21696 # Is the header compilable?
21697echo "$as_me:$LINENO: checking mspack.h usability" >&5
21698echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
21699cat >conftest.$ac_ext <<_ACEOF
21700/* confdefs.h. */
21701_ACEOF
21702cat confdefs.h >>conftest.$ac_ext
21703cat >>conftest.$ac_ext <<_ACEOF
21704/* end confdefs.h. */
21705$ac_includes_default
21706#include <mspack.h>
21707_ACEOF
21708rm -f conftest.$ac_objext
21709if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21710 (eval $ac_compile) 2>conftest.er1
a848cd7e 21711 ac_status=$?
ac1cb8d3
VS
21712 grep -v '^ *+' conftest.er1 >conftest.err
21713 rm -f conftest.er1
21714 cat conftest.err >&5
a848cd7e
SC
21715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21716 (exit $ac_status); } &&
ea7db9ff
DE
21717 { ac_try='test -z "$ac_c_werror_flag"
21718 || test ! -s conftest.err'
ac1cb8d3
VS
21719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21720 (eval $ac_try) 2>&5
21721 ac_status=$?
21722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21723 (exit $ac_status); }; } &&
21724 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21726 (eval $ac_try) 2>&5
21727 ac_status=$?
21728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21729 (exit $ac_status); }; }; then
21730 ac_header_compiler=yes
21731else
21732 echo "$as_me: failed program was:" >&5
21733sed 's/^/| /' conftest.$ac_ext >&5
21734
21735ac_header_compiler=no
21736fi
ac1cb8d3 21737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21738echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21739echo "${ECHO_T}$ac_header_compiler" >&6
21740
21741# Is the header present?
21742echo "$as_me:$LINENO: checking mspack.h presence" >&5
21743echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
21744cat >conftest.$ac_ext <<_ACEOF
21745/* confdefs.h. */
21746_ACEOF
21747cat confdefs.h >>conftest.$ac_ext
21748cat >>conftest.$ac_ext <<_ACEOF
21749/* end confdefs.h. */
21750#include <mspack.h>
21751_ACEOF
21752if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21753 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21754 ac_status=$?
21755 grep -v '^ *+' conftest.er1 >conftest.err
21756 rm -f conftest.er1
21757 cat conftest.err >&5
21758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21759 (exit $ac_status); } >/dev/null; then
21760 if test -s conftest.err; then
21761 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21762 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21763 else
21764 ac_cpp_err=
21765 fi
21766else
21767 ac_cpp_err=yes
21768fi
21769if test -z "$ac_cpp_err"; then
21770 ac_header_preproc=yes
21771else
21772 echo "$as_me: failed program was:" >&5
21773sed 's/^/| /' conftest.$ac_ext >&5
21774
21775 ac_header_preproc=no
21776fi
21777rm -f conftest.err conftest.$ac_ext
21778echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21779echo "${ECHO_T}$ac_header_preproc" >&6
21780
21781# So? What about this header?
ac1cb8d3
VS
21782case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21783 yes:no: )
a848cd7e
SC
21784 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
21785echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21786 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
21787echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
21788 ac_header_preproc=yes
a848cd7e 21789 ;;
ac1cb8d3 21790 no:yes:* )
a848cd7e
SC
21791 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
21792echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21793 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
21794echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
21795 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
21796echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
21797 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
21798echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21799 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
21800echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21801 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
21802echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21803 (
21804 cat <<\_ASBOX
ac1cb8d3
VS
21805## ----------------------------------------- ##
21806## Report this to wx-dev@lists.wxwidgets.org ##
21807## ----------------------------------------- ##
a848cd7e
SC
21808_ASBOX
21809 ) |
21810 sed "s/^/$as_me: WARNING: /" >&2
21811 ;;
21812esac
21813echo "$as_me:$LINENO: checking for mspack.h" >&5
21814echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
21815if test "${ac_cv_header_mspack_h+set}" = set; then
21816 echo $ECHO_N "(cached) $ECHO_C" >&6
21817else
21818 ac_cv_header_mspack_h=$ac_header_preproc
21819fi
21820echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
21821echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
21822
21823fi
21824if test $ac_cv_header_mspack_h = yes; then
21825 found_mspack_h=1
21826fi
21827
21828
21829 if test "x$found_mspack_h" = "x1"; then
21830 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
21831echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
21832if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
21833 echo $ECHO_N "(cached) $ECHO_C" >&6
21834else
21835 ac_check_lib_save_LIBS=$LIBS
21836LIBS="-lmspack $LIBS"
21837cat >conftest.$ac_ext <<_ACEOF
21838/* confdefs.h. */
21839_ACEOF
21840cat confdefs.h >>conftest.$ac_ext
21841cat >>conftest.$ac_ext <<_ACEOF
21842/* end confdefs.h. */
21843
21844/* Override any gcc2 internal prototype to avoid an error. */
21845#ifdef __cplusplus
21846extern "C"
21847#endif
21848/* We use char because int might match the return type of a gcc2
21849 builtin and then its argument prototype would still apply. */
21850char mspack_create_chm_decompressor ();
21851int
21852main ()
21853{
21854mspack_create_chm_decompressor ();
21855 ;
21856 return 0;
21857}
21858_ACEOF
21859rm -f conftest.$ac_objext conftest$ac_exeext
21860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21861 (eval $ac_link) 2>conftest.er1
a848cd7e 21862 ac_status=$?
ac1cb8d3
VS
21863 grep -v '^ *+' conftest.er1 >conftest.err
21864 rm -f conftest.er1
21865 cat conftest.err >&5
a848cd7e
SC
21866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21867 (exit $ac_status); } &&
ea7db9ff
DE
21868 { ac_try='test -z "$ac_c_werror_flag"
21869 || test ! -s conftest.err'
ac1cb8d3
VS
21870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21871 (eval $ac_try) 2>&5
21872 ac_status=$?
21873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21874 (exit $ac_status); }; } &&
21875 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21877 (eval $ac_try) 2>&5
21878 ac_status=$?
21879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21880 (exit $ac_status); }; }; then
21881 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
21882else
21883 echo "$as_me: failed program was:" >&5
21884sed 's/^/| /' conftest.$ac_ext >&5
21885
21886ac_cv_lib_mspack_mspack_create_chm_decompressor=no
21887fi
ac1cb8d3
VS
21888rm -f conftest.err conftest.$ac_objext \
21889 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21890LIBS=$ac_check_lib_save_LIBS
21891fi
21892echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
21893echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
21894if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
21895 MSPACK_LINK=" -lmspack"
21896fi
21897
21898 fi
21899 if test "x$MSPACK_LINK" = "x" ; then
21900 wxUSE_LIBMSPACK=no
21901 else
21902 cat >>confdefs.h <<\_ACEOF
21903#define wxUSE_LIBMSPACK 1
21904_ACEOF
21905
21906 fi
21907fi
21908
21909
21910
21911AFMINSTALL=
21912WIN32INSTALL=
21913
21914TOOLKIT=
21915TOOLKIT_INCLUDE=
21916WIDGET_SET=
21917
21918if test "$USE_WIN32" = 1 ; then
21919
21920for ac_header in w32api.h
21921do
21922as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21923if eval "test \"\${$as_ac_Header+set}\" = set"; then
21924 echo "$as_me:$LINENO: checking for $ac_header" >&5
21925echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21926if eval "test \"\${$as_ac_Header+set}\" = set"; then
21927 echo $ECHO_N "(cached) $ECHO_C" >&6
21928fi
21929echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21930echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21931else
21932 # Is the header compilable?
21933echo "$as_me:$LINENO: checking $ac_header usability" >&5
21934echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21935cat >conftest.$ac_ext <<_ACEOF
21936/* confdefs.h. */
21937_ACEOF
21938cat confdefs.h >>conftest.$ac_ext
21939cat >>conftest.$ac_ext <<_ACEOF
21940/* end confdefs.h. */
21941$ac_includes_default
21942#include <$ac_header>
21943_ACEOF
21944rm -f conftest.$ac_objext
21945if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21946 (eval $ac_compile) 2>conftest.er1
a848cd7e 21947 ac_status=$?
ac1cb8d3
VS
21948 grep -v '^ *+' conftest.er1 >conftest.err
21949 rm -f conftest.er1
21950 cat conftest.err >&5
a848cd7e
SC
21951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21952 (exit $ac_status); } &&
ea7db9ff
DE
21953 { ac_try='test -z "$ac_c_werror_flag"
21954 || test ! -s conftest.err'
ac1cb8d3
VS
21955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21956 (eval $ac_try) 2>&5
21957 ac_status=$?
21958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21959 (exit $ac_status); }; } &&
21960 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21962 (eval $ac_try) 2>&5
21963 ac_status=$?
21964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21965 (exit $ac_status); }; }; then
21966 ac_header_compiler=yes
21967else
21968 echo "$as_me: failed program was:" >&5
21969sed 's/^/| /' conftest.$ac_ext >&5
21970
21971ac_header_compiler=no
21972fi
ac1cb8d3 21973rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21974echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21975echo "${ECHO_T}$ac_header_compiler" >&6
21976
21977# Is the header present?
21978echo "$as_me:$LINENO: checking $ac_header presence" >&5
21979echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21980cat >conftest.$ac_ext <<_ACEOF
21981/* confdefs.h. */
21982_ACEOF
21983cat confdefs.h >>conftest.$ac_ext
21984cat >>conftest.$ac_ext <<_ACEOF
21985/* end confdefs.h. */
21986#include <$ac_header>
21987_ACEOF
21988if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21989 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21990 ac_status=$?
21991 grep -v '^ *+' conftest.er1 >conftest.err
21992 rm -f conftest.er1
21993 cat conftest.err >&5
21994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21995 (exit $ac_status); } >/dev/null; then
21996 if test -s conftest.err; then
21997 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21998 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21999 else
22000 ac_cpp_err=
22001 fi
22002else
22003 ac_cpp_err=yes
22004fi
22005if test -z "$ac_cpp_err"; then
22006 ac_header_preproc=yes
22007else
22008 echo "$as_me: failed program was:" >&5
22009sed 's/^/| /' conftest.$ac_ext >&5
22010
22011 ac_header_preproc=no
22012fi
22013rm -f conftest.err conftest.$ac_ext
22014echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22015echo "${ECHO_T}$ac_header_preproc" >&6
22016
22017# So? What about this header?
ac1cb8d3
VS
22018case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22019 yes:no: )
a848cd7e
SC
22020 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22021echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22022 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22023echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22024 ac_header_preproc=yes
a848cd7e 22025 ;;
ac1cb8d3 22026 no:yes:* )
a848cd7e
SC
22027 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22028echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22029 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22030echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22031 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22032echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22033 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22034echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22035 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22036echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22037 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22038echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22039 (
22040 cat <<\_ASBOX
ac1cb8d3
VS
22041## ----------------------------------------- ##
22042## Report this to wx-dev@lists.wxwidgets.org ##
22043## ----------------------------------------- ##
a848cd7e
SC
22044_ASBOX
22045 ) |
22046 sed "s/^/$as_me: WARNING: /" >&2
22047 ;;
22048esac
22049echo "$as_me:$LINENO: checking for $ac_header" >&5
22050echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22051if eval "test \"\${$as_ac_Header+set}\" = set"; then
22052 echo $ECHO_N "(cached) $ECHO_C" >&6
22053else
ac1cb8d3 22054 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
22055fi
22056echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22057echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22058
22059fi
22060if test `eval echo '${'$as_ac_Header'}'` = yes; then
22061 cat >>confdefs.h <<_ACEOF
22062#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22063_ACEOF
22064
22065fi
22066
22067done
22068
22069 if test "${ac_cv_header_windows_h+set}" = set; then
22070 echo "$as_me:$LINENO: checking for windows.h" >&5
22071echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
22072if test "${ac_cv_header_windows_h+set}" = set; then
22073 echo $ECHO_N "(cached) $ECHO_C" >&6
22074fi
22075echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
22076echo "${ECHO_T}$ac_cv_header_windows_h" >&6
22077else
22078 # Is the header compilable?
22079echo "$as_me:$LINENO: checking windows.h usability" >&5
22080echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
22081cat >conftest.$ac_ext <<_ACEOF
22082/* confdefs.h. */
22083_ACEOF
22084cat confdefs.h >>conftest.$ac_ext
22085cat >>conftest.$ac_ext <<_ACEOF
22086/* end confdefs.h. */
22087$ac_includes_default
22088#include <windows.h>
22089_ACEOF
22090rm -f conftest.$ac_objext
22091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22092 (eval $ac_compile) 2>conftest.er1
a848cd7e 22093 ac_status=$?
ac1cb8d3
VS
22094 grep -v '^ *+' conftest.er1 >conftest.err
22095 rm -f conftest.er1
22096 cat conftest.err >&5
a848cd7e
SC
22097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22098 (exit $ac_status); } &&
ea7db9ff
DE
22099 { ac_try='test -z "$ac_c_werror_flag"
22100 || test ! -s conftest.err'
ac1cb8d3
VS
22101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22102 (eval $ac_try) 2>&5
22103 ac_status=$?
22104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22105 (exit $ac_status); }; } &&
22106 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22108 (eval $ac_try) 2>&5
22109 ac_status=$?
22110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111 (exit $ac_status); }; }; then
22112 ac_header_compiler=yes
22113else
22114 echo "$as_me: failed program was:" >&5
22115sed 's/^/| /' conftest.$ac_ext >&5
22116
22117ac_header_compiler=no
22118fi
ac1cb8d3 22119rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22120echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22121echo "${ECHO_T}$ac_header_compiler" >&6
22122
22123# Is the header present?
22124echo "$as_me:$LINENO: checking windows.h presence" >&5
22125echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
22126cat >conftest.$ac_ext <<_ACEOF
22127/* confdefs.h. */
22128_ACEOF
22129cat confdefs.h >>conftest.$ac_ext
22130cat >>conftest.$ac_ext <<_ACEOF
22131/* end confdefs.h. */
22132#include <windows.h>
22133_ACEOF
22134if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22135 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22136 ac_status=$?
22137 grep -v '^ *+' conftest.er1 >conftest.err
22138 rm -f conftest.er1
22139 cat conftest.err >&5
22140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22141 (exit $ac_status); } >/dev/null; then
22142 if test -s conftest.err; then
22143 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22144 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22145 else
22146 ac_cpp_err=
22147 fi
22148else
22149 ac_cpp_err=yes
22150fi
22151if test -z "$ac_cpp_err"; then
22152 ac_header_preproc=yes
22153else
22154 echo "$as_me: failed program was:" >&5
22155sed 's/^/| /' conftest.$ac_ext >&5
22156
22157 ac_header_preproc=no
22158fi
22159rm -f conftest.err conftest.$ac_ext
22160echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22161echo "${ECHO_T}$ac_header_preproc" >&6
22162
22163# So? What about this header?
ac1cb8d3
VS
22164case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22165 yes:no: )
a848cd7e
SC
22166 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
22167echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22168 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
22169echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
22170 ac_header_preproc=yes
a848cd7e 22171 ;;
ac1cb8d3 22172 no:yes:* )
a848cd7e
SC
22173 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
22174echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22175 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
22176echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
22177 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
22178echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
22179 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
22180echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22181 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
22182echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22183 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
22184echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22185 (
22186 cat <<\_ASBOX
ac1cb8d3
VS
22187## ----------------------------------------- ##
22188## Report this to wx-dev@lists.wxwidgets.org ##
22189## ----------------------------------------- ##
a848cd7e
SC
22190_ASBOX
22191 ) |
22192 sed "s/^/$as_me: WARNING: /" >&2
22193 ;;
22194esac
22195echo "$as_me:$LINENO: checking for windows.h" >&5
22196echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
22197if test "${ac_cv_header_windows_h+set}" = set; then
22198 echo $ECHO_N "(cached) $ECHO_C" >&6
22199else
22200 ac_cv_header_windows_h=$ac_header_preproc
22201fi
22202echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
22203echo "${ECHO_T}$ac_cv_header_windows_h" >&6
22204
22205fi
22206if test $ac_cv_header_windows_h = yes; then
22207 :
22208else
22209
22210 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
22211echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
22212 { (exit 1); exit 1; }; }
22213
22214fi
22215
22216
22217
22218 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
22219
22220 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
22221 LIBS="$LIBS -loleacc"
22222 fi
22223
22224 case "${host}" in
22225 *-*-cygwin* )
22226 LIBS="$LIBS -lkernel32 -luser32"
22227 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
22228 esac
22229
22230 if test "$wxUSE_ODBC" = "sys" ; then
22231 wxUSE_ODBC = "yes"
22232 fi
22233 if test "$wxUSE_ODBC" = "yes" ; then
22234 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
22235 cat >>confdefs.h <<\_ACEOF
22236#define wxUSE_ODBC 1
22237_ACEOF
22238
22239 fi
22240
22241 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
22242 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
22243
22244 WIN32INSTALL=win32install
22245fi
22246
22247if test "$wxUSE_GUI" = "yes"; then
22248 USE_GUI=1
22249
22250 GUI_TK_LIBRARY=
22251
22252 WXGTK12=
22253 WXGTK127=
22254 WXGTK20=
22255 WXGPE=
22256
22257 if test "$wxUSE_MSW" = 1 ; then
22258 TOOLKIT=MSW
22259 GUIDIST=MSW_DIST
22260
22261 case "${host}" in
22262 *-*-mingw32* )
22263 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
22264 esac
22265 fi
22266
22267 if test "$wxUSE_GTK" = 1; then
22268 echo "$as_me:$LINENO: checking for GTK+ version" >&5
22269echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
22270
22271 gtk_version_cached=1
22272 if test "${wx_cv_lib_gtk+set}" = set; then
22273 echo $ECHO_N "(cached) $ECHO_C" >&6
22274else
22275
22276 gtk_version_cached=0
22277 echo "$as_me:$LINENO: result: " >&5
22278echo "${ECHO_T}" >&6
22279
22280 GTK_MODULES=
22281 if test "$wxUSE_THREADS" = "yes"; then
22282 GTK_MODULES=gthread
22283 fi
22284
22285 wx_cv_lib_gtk=
22286 if test "x$wxUSE_GTK2" = "xyes"; then
22287 # Check whether --enable-gtktest or --disable-gtktest was given.
22288if test "${enable_gtktest+set}" = set; then
22289 enableval="$enable_gtktest"
22290
22291else
22292 enable_gtktest=yes
22293fi;
22294
22295 pkg_config_args=gtk+-2.0
22296 for module in . $GTK_MODULES
22297 do
22298 case "$module" in
22299 gthread)
22300 pkg_config_args="$pkg_config_args gthread-2.0"
22301 ;;
22302 esac
22303 done
22304
22305 no_gtk=""
22306
22307 # Extract the first word of "pkg-config", so it can be a program name with args.
22308set dummy pkg-config; ac_word=$2
22309echo "$as_me:$LINENO: checking for $ac_word" >&5
22310echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22311if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22312 echo $ECHO_N "(cached) $ECHO_C" >&6
22313else
22314 case $PKG_CONFIG in
22315 [\\/]* | ?:[\\/]*)
22316 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22317 ;;
22318 *)
22319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22320for as_dir in $PATH
22321do
22322 IFS=$as_save_IFS
22323 test -z "$as_dir" && as_dir=.
22324 for ac_exec_ext in '' $ac_executable_extensions; do
22325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22326 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22328 break 2
22329 fi
22330done
22331done
22332
22333 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22334 ;;
22335esac
22336fi
22337PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22338
22339if test -n "$PKG_CONFIG"; then
22340 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22341echo "${ECHO_T}$PKG_CONFIG" >&6
22342else
22343 echo "$as_me:$LINENO: result: no" >&5
22344echo "${ECHO_T}no" >&6
22345fi
22346
22347
22348 if test x$PKG_CONFIG != xno ; then
22349 if pkg-config --atleast-pkgconfig-version 0.7 ; then
22350 :
22351 else
c2218763 22352 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
22353 no_gtk=yes
22354 PKG_CONFIG=no
22355 fi
22356 else
22357 no_gtk=yes
22358 fi
22359
22360 min_gtk_version=2.0.0
22361 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
22362echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
22363
22364 if test x$PKG_CONFIG != xno ; then
22365 ## don't try to run the test against uninstalled libtool libs
22366 if $PKG_CONFIG --uninstalled $pkg_config_args; then
22367 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
22368 enable_gtktest=no
22369 fi
22370
22371 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
22372 :
22373 else
22374 no_gtk=yes
22375 fi
22376 fi
22377
22378 if test x"$no_gtk" = x ; then
22379 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
22380 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
22381 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22382 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22383 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22384 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22385 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22386 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22387 if test "x$enable_gtktest" = "xyes" ; then
22388 ac_save_CFLAGS="$CFLAGS"
22389 ac_save_LIBS="$LIBS"
22390 CFLAGS="$CFLAGS $GTK_CFLAGS"
22391 LIBS="$GTK_LIBS $LIBS"
22392 rm -f conf.gtktest
22393 if test "$cross_compiling" = yes; then
22394 echo $ac_n "cross compiling; assumed OK... $ac_c"
22395else
22396 cat >conftest.$ac_ext <<_ACEOF
22397/* confdefs.h. */
22398_ACEOF
22399cat confdefs.h >>conftest.$ac_ext
22400cat >>conftest.$ac_ext <<_ACEOF
22401/* end confdefs.h. */
22402
22403#include <gtk/gtk.h>
22404#include <stdio.h>
22405#include <stdlib.h>
22406
22407int
22408main ()
22409{
22410 int major, minor, micro;
22411 char *tmp_version;
22412
22413 system ("touch conf.gtktest");
22414
22415 /* HP/UX 9 (%@#!) writes to sscanf strings */
22416 tmp_version = g_strdup("$min_gtk_version");
22417 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22418 printf("%s, bad version string\n", "$min_gtk_version");
22419 exit(1);
22420 }
22421
22422 if ((gtk_major_version != $gtk_config_major_version) ||
22423 (gtk_minor_version != $gtk_config_minor_version) ||
22424 (gtk_micro_version != $gtk_config_micro_version))
22425 {
22426 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
22427 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22428 gtk_major_version, gtk_minor_version, gtk_micro_version);
22429 printf ("*** was found! If pkg-config was correct, then it is best\n");
22430 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22431 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22432 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22433 printf("*** required on your system.\n");
22434 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
22435 printf("*** to point to the correct configuration files\n");
22436 }
22437 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22438 (gtk_minor_version != GTK_MINOR_VERSION) ||
22439 (gtk_micro_version != GTK_MICRO_VERSION))
22440 {
22441 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22442 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22443 printf("*** library (version %d.%d.%d)\n",
22444 gtk_major_version, gtk_minor_version, gtk_micro_version);
22445 }
22446 else
22447 {
22448 if ((gtk_major_version > major) ||
22449 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22450 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22451 {
22452 return 0;
22453 }
22454 else
22455 {
22456 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22457 gtk_major_version, gtk_minor_version, gtk_micro_version);
22458 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22459 major, minor, micro);
22460 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22461 printf("***\n");
22462 printf("*** If you have already installed a sufficiently new version, this error\n");
22463 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
22464 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22465 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
22466 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
22467 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22468 printf("*** so that the correct libraries are found at run-time))\n");
22469 }
22470 }
22471 return 1;
22472}
22473
22474_ACEOF
22475rm -f conftest$ac_exeext
22476if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22477 (eval $ac_link) 2>&5
22478 ac_status=$?
22479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22480 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22482 (eval $ac_try) 2>&5
22483 ac_status=$?
22484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22485 (exit $ac_status); }; }; then
22486 :
22487else
22488 echo "$as_me: program exited with status $ac_status" >&5
22489echo "$as_me: failed program was:" >&5
22490sed 's/^/| /' conftest.$ac_ext >&5
22491
22492( exit $ac_status )
22493no_gtk=yes
22494fi
ac1cb8d3 22495rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22496fi
22497 CFLAGS="$ac_save_CFLAGS"
22498 LIBS="$ac_save_LIBS"
22499 fi
22500 fi
22501 if test "x$no_gtk" = x ; then
22502 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
22503echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
22504 wx_cv_lib_gtk=2.0
22505 else
22506 echo "$as_me:$LINENO: result: no" >&5
22507echo "${ECHO_T}no" >&6
22508 if test "$PKG_CONFIG" = "no" ; then
22509 echo "*** A new enough version of pkg-config was not found."
22510 echo "*** See http://pkgconfig.sourceforge.net"
22511 else
22512 if test -f conf.gtktest ; then
22513 :
22514 else
22515 echo "*** Could not run GTK+ test program, checking why..."
22516 ac_save_CFLAGS="$CFLAGS"
22517 ac_save_LIBS="$LIBS"
22518 CFLAGS="$CFLAGS $GTK_CFLAGS"
22519 LIBS="$LIBS $GTK_LIBS"
22520 cat >conftest.$ac_ext <<_ACEOF
22521/* confdefs.h. */
22522_ACEOF
22523cat confdefs.h >>conftest.$ac_ext
22524cat >>conftest.$ac_ext <<_ACEOF
22525/* end confdefs.h. */
22526
22527#include <gtk/gtk.h>
22528#include <stdio.h>
22529
22530int
22531main ()
22532{
22533 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22534 ;
22535 return 0;
22536}
22537_ACEOF
22538rm -f conftest.$ac_objext conftest$ac_exeext
22539if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22540 (eval $ac_link) 2>conftest.er1
a848cd7e 22541 ac_status=$?
ac1cb8d3
VS
22542 grep -v '^ *+' conftest.er1 >conftest.err
22543 rm -f conftest.er1
22544 cat conftest.err >&5
a848cd7e
SC
22545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22546 (exit $ac_status); } &&
ea7db9ff
DE
22547 { ac_try='test -z "$ac_c_werror_flag"
22548 || test ! -s conftest.err'
ac1cb8d3
VS
22549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22550 (eval $ac_try) 2>&5
22551 ac_status=$?
22552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22553 (exit $ac_status); }; } &&
22554 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22556 (eval $ac_try) 2>&5
22557 ac_status=$?
22558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22559 (exit $ac_status); }; }; then
22560 echo "*** The test program compiled, but did not run. This usually means"
22561 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
22562 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
22563 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22564 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22565 echo "*** is required on your system"
22566 echo "***"
22567 echo "*** If you have an old version installed, it is best to remove it, although"
22568 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22569else
22570 echo "$as_me: failed program was:" >&5
22571sed 's/^/| /' conftest.$ac_ext >&5
22572
22573 echo "*** The test program failed to compile or link. See the file config.log for the"
22574 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
22575fi
ac1cb8d3
VS
22576rm -f conftest.err conftest.$ac_objext \
22577 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22578 CFLAGS="$ac_save_CFLAGS"
22579 LIBS="$ac_save_LIBS"
22580 fi
22581 fi
22582 GTK_CFLAGS=""
22583 GTK_LIBS=""
22584 :
22585 fi
22586
22587
22588 rm -f conf.gtktest
22589
22590 else
22591
22592# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
22593if test "${with_gtk_prefix+set}" = set; then
22594 withval="$with_gtk_prefix"
22595 gtk_config_prefix="$withval"
22596else
22597 gtk_config_prefix=""
22598fi;
22599
22600# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
22601if test "${with_gtk_exec_prefix+set}" = set; then
22602 withval="$with_gtk_exec_prefix"
22603 gtk_config_exec_prefix="$withval"
22604else
22605 gtk_config_exec_prefix=""
22606fi;
22607# Check whether --enable-gtktest or --disable-gtktest was given.
22608if test "${enable_gtktest+set}" = set; then
22609 enableval="$enable_gtktest"
22610
22611else
22612 enable_gtktest=yes
22613fi;
22614
22615 for module in . $GTK_MODULES
22616 do
22617 case "$module" in
22618 gthread)
22619 gtk_config_args="$gtk_config_args gthread"
22620 ;;
22621 esac
22622 done
22623
22624 if test x$gtk_config_exec_prefix != x ; then
22625 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
22626 if test x${GTK_CONFIG+set} != xset ; then
22627 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
22628 fi
22629 fi
22630 if test x$gtk_config_prefix != x ; then
22631 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
22632 if test x${GTK_CONFIG+set} != xset ; then
22633 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
22634 fi
22635 fi
22636
22637 # Extract the first word of "gtk-config", so it can be a program name with args.
22638set dummy gtk-config; ac_word=$2
22639echo "$as_me:$LINENO: checking for $ac_word" >&5
22640echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22641if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
22642 echo $ECHO_N "(cached) $ECHO_C" >&6
22643else
22644 case $GTK_CONFIG in
22645 [\\/]* | ?:[\\/]*)
22646 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
22647 ;;
22648 *)
22649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22650for as_dir in $PATH
22651do
22652 IFS=$as_save_IFS
22653 test -z "$as_dir" && as_dir=.
22654 for ac_exec_ext in '' $ac_executable_extensions; do
22655 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22656 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22658 break 2
22659 fi
22660done
22661done
22662
22663 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
22664 ;;
22665esac
22666fi
22667GTK_CONFIG=$ac_cv_path_GTK_CONFIG
22668
22669if test -n "$GTK_CONFIG"; then
22670 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
22671echo "${ECHO_T}$GTK_CONFIG" >&6
22672else
22673 echo "$as_me:$LINENO: result: no" >&5
22674echo "${ECHO_T}no" >&6
22675fi
22676
22677 min_gtk_version=1.2.7
22678 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
22679echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
22680 no_gtk=""
22681 if test "$GTK_CONFIG" = "no" ; then
22682 no_gtk=yes
22683 else
22684 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
22685 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
22686 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
22687 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22688 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
22689 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22690 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
22691 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22692 if test "x$enable_gtktest" = "xyes" ; then
22693 ac_save_CFLAGS="$CFLAGS"
22694 ac_save_LIBS="$LIBS"
22695 CFLAGS="$CFLAGS $GTK_CFLAGS"
22696 LIBS="$GTK_LIBS $LIBS"
22697 rm -f conf.gtktest
22698 if test "$cross_compiling" = yes; then
22699 echo $ac_n "cross compiling; assumed OK... $ac_c"
22700else
22701 cat >conftest.$ac_ext <<_ACEOF
22702/* confdefs.h. */
22703_ACEOF
22704cat confdefs.h >>conftest.$ac_ext
22705cat >>conftest.$ac_ext <<_ACEOF
22706/* end confdefs.h. */
22707
22708#include <gtk/gtk.h>
22709#include <stdio.h>
22710#include <stdlib.h>
22711
22712int
22713main ()
22714{
22715 int major, minor, micro;
22716 char *tmp_version;
22717
22718 system ("touch conf.gtktest");
22719
22720 /* HP/UX 9 (%@#!) writes to sscanf strings */
22721 tmp_version = g_strdup("$min_gtk_version");
22722 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22723 printf("%s, bad version string\n", "$min_gtk_version");
22724 exit(1);
22725 }
22726
22727 if ((gtk_major_version != $gtk_config_major_version) ||
22728 (gtk_minor_version != $gtk_config_minor_version) ||
22729 (gtk_micro_version != $gtk_config_micro_version))
22730 {
22731 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
22732 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22733 gtk_major_version, gtk_minor_version, gtk_micro_version);
22734 printf ("*** was found! If gtk-config was correct, then it is best\n");
22735 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22736 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22737 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22738 printf("*** required on your system.\n");
22739 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
22740 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
22741 printf("*** before re-running configure\n");
22742 }
22743#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
22744 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22745 (gtk_minor_version != GTK_MINOR_VERSION) ||
22746 (gtk_micro_version != GTK_MICRO_VERSION))
22747 {
22748 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22749 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22750 printf("*** library (version %d.%d.%d)\n",
22751 gtk_major_version, gtk_minor_version, gtk_micro_version);
22752 }
22753#endif /* defined (GTK_MAJOR_VERSION) ... */
22754 else
22755 {
22756 if ((gtk_major_version > major) ||
22757 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22758 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22759 {
22760 return 0;
22761 }
22762 else
22763 {
22764 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22765 gtk_major_version, gtk_minor_version, gtk_micro_version);
22766 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22767 major, minor, micro);
22768 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22769 printf("***\n");
22770 printf("*** If you have already installed a sufficiently new version, this error\n");
22771 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
22772 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22773 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
22774 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
22775 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22776 printf("*** so that the correct libraries are found at run-time))\n");
22777 }
22778 }
22779 return 1;
22780}
22781
22782_ACEOF
22783rm -f conftest$ac_exeext
22784if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22785 (eval $ac_link) 2>&5
22786 ac_status=$?
22787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22788 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22790 (eval $ac_try) 2>&5
22791 ac_status=$?
22792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22793 (exit $ac_status); }; }; then
22794 :
22795else
22796 echo "$as_me: program exited with status $ac_status" >&5
22797echo "$as_me: failed program was:" >&5
22798sed 's/^/| /' conftest.$ac_ext >&5
22799
22800( exit $ac_status )
22801no_gtk=yes
22802fi
ac1cb8d3 22803rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22804fi
22805 CFLAGS="$ac_save_CFLAGS"
22806 LIBS="$ac_save_LIBS"
22807 fi
22808 fi
22809 if test "x$no_gtk" = x ; then
22810 echo "$as_me:$LINENO: result: yes" >&5
22811echo "${ECHO_T}yes" >&6
22812 wx_cv_lib_gtk=1.2.7
22813 else
22814 echo "$as_me:$LINENO: result: no" >&5
22815echo "${ECHO_T}no" >&6
22816 if test "$GTK_CONFIG" = "no" ; then
22817 echo "*** The gtk-config script installed by GTK could not be found"
22818 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
22819 echo "*** your path, or set the GTK_CONFIG environment variable to the"
22820 echo "*** full path to gtk-config."
22821 else
22822 if test -f conf.gtktest ; then
22823 :
22824 else
22825 echo "*** Could not run GTK test program, checking why..."
22826 CFLAGS="$CFLAGS $GTK_CFLAGS"
22827 LIBS="$LIBS $GTK_LIBS"
22828 cat >conftest.$ac_ext <<_ACEOF
22829/* confdefs.h. */
22830_ACEOF
22831cat confdefs.h >>conftest.$ac_ext
22832cat >>conftest.$ac_ext <<_ACEOF
22833/* end confdefs.h. */
22834
22835#include <gtk/gtk.h>
22836#include <stdio.h>
22837
22838int
22839main ()
22840{
22841 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22842 ;
22843 return 0;
22844}
22845_ACEOF
22846rm -f conftest.$ac_objext conftest$ac_exeext
22847if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22848 (eval $ac_link) 2>conftest.er1
a848cd7e 22849 ac_status=$?
ac1cb8d3
VS
22850 grep -v '^ *+' conftest.er1 >conftest.err
22851 rm -f conftest.er1
22852 cat conftest.err >&5
a848cd7e
SC
22853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22854 (exit $ac_status); } &&
ea7db9ff
DE
22855 { ac_try='test -z "$ac_c_werror_flag"
22856 || test ! -s conftest.err'
ac1cb8d3
VS
22857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22858 (eval $ac_try) 2>&5
22859 ac_status=$?
22860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22861 (exit $ac_status); }; } &&
22862 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22864 (eval $ac_try) 2>&5
22865 ac_status=$?
22866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22867 (exit $ac_status); }; }; then
22868 echo "*** The test program compiled, but did not run. This usually means"
22869 echo "*** that the run-time linker is not finding GTK or finding the wrong"
22870 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
22871 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22872 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22873 echo "*** is required on your system"
22874 echo "***"
22875 echo "*** If you have an old version installed, it is best to remove it, although"
22876 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22877 echo "***"
22878 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
22879 echo "*** came with the system with the command"
22880 echo "***"
22881 echo "*** rpm --erase --nodeps gtk gtk-devel"
22882else
22883 echo "$as_me: failed program was:" >&5
22884sed 's/^/| /' conftest.$ac_ext >&5
22885
22886 echo "*** The test program failed to compile or link. See the file config.log for the"
22887 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
22888 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
22889 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
22890fi
ac1cb8d3
VS
22891rm -f conftest.err conftest.$ac_objext \
22892 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22893 CFLAGS="$ac_save_CFLAGS"
22894 LIBS="$ac_save_LIBS"
22895 fi
22896 fi
22897 GTK_CFLAGS=""
22898 GTK_LIBS=""
22899 :
22900 fi
22901
22902
22903 rm -f conf.gtktest
22904
22905
22906 if test -z "$wx_cv_lib_gtk"; then
22907
22908# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
22909if test "${with_gtk_prefix+set}" = set; then
22910 withval="$with_gtk_prefix"
22911 gtk_config_prefix="$withval"
22912else
22913 gtk_config_prefix=""
22914fi;
22915
22916# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
22917if test "${with_gtk_exec_prefix+set}" = set; then
22918 withval="$with_gtk_exec_prefix"
22919 gtk_config_exec_prefix="$withval"
22920else
22921 gtk_config_exec_prefix=""
22922fi;
22923# Check whether --enable-gtktest or --disable-gtktest was given.
22924if test "${enable_gtktest+set}" = set; then
22925 enableval="$enable_gtktest"
22926
22927else
22928 enable_gtktest=yes
22929fi;
22930
22931 for module in . $GTK_MODULES
22932 do
22933 case "$module" in
22934 gthread)
22935 gtk_config_args="$gtk_config_args gthread"
22936 ;;
22937 esac
22938 done
22939
22940 if test x$gtk_config_exec_prefix != x ; then
22941 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
22942 if test x${GTK_CONFIG+set} != xset ; then
22943 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
22944 fi
22945 fi
22946 if test x$gtk_config_prefix != x ; then
22947 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
22948 if test x${GTK_CONFIG+set} != xset ; then
22949 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
22950 fi
22951 fi
22952
22953 # Extract the first word of "gtk-config", so it can be a program name with args.
22954set dummy gtk-config; ac_word=$2
22955echo "$as_me:$LINENO: checking for $ac_word" >&5
22956echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22957if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
22958 echo $ECHO_N "(cached) $ECHO_C" >&6
22959else
22960 case $GTK_CONFIG in
22961 [\\/]* | ?:[\\/]*)
22962 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
22963 ;;
22964 *)
22965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22966for as_dir in $PATH
22967do
22968 IFS=$as_save_IFS
22969 test -z "$as_dir" && as_dir=.
22970 for ac_exec_ext in '' $ac_executable_extensions; do
22971 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22972 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22974 break 2
22975 fi
22976done
22977done
22978
22979 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
22980 ;;
22981esac
22982fi
22983GTK_CONFIG=$ac_cv_path_GTK_CONFIG
22984
22985if test -n "$GTK_CONFIG"; then
22986 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
22987echo "${ECHO_T}$GTK_CONFIG" >&6
22988else
22989 echo "$as_me:$LINENO: result: no" >&5
22990echo "${ECHO_T}no" >&6
22991fi
22992
22993 min_gtk_version=1.2.3
22994 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
22995echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
22996 no_gtk=""
22997 if test "$GTK_CONFIG" = "no" ; then
22998 no_gtk=yes
22999 else
23000 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
23001 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
23002 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
23003 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
23004 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
23005 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
23006 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
23007 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
23008 if test "x$enable_gtktest" = "xyes" ; then
23009 ac_save_CFLAGS="$CFLAGS"
23010 ac_save_LIBS="$LIBS"
23011 CFLAGS="$CFLAGS $GTK_CFLAGS"
23012 LIBS="$GTK_LIBS $LIBS"
23013 rm -f conf.gtktest
23014 if test "$cross_compiling" = yes; then
23015 echo $ac_n "cross compiling; assumed OK... $ac_c"
23016else
23017 cat >conftest.$ac_ext <<_ACEOF
23018/* confdefs.h. */
23019_ACEOF
23020cat confdefs.h >>conftest.$ac_ext
23021cat >>conftest.$ac_ext <<_ACEOF
23022/* end confdefs.h. */
23023
23024#include <gtk/gtk.h>
23025#include <stdio.h>
23026#include <stdlib.h>
23027
23028int
23029main ()
23030{
23031 int major, minor, micro;
23032 char *tmp_version;
23033
23034 system ("touch conf.gtktest");
23035
23036 /* HP/UX 9 (%@#!) writes to sscanf strings */
23037 tmp_version = g_strdup("$min_gtk_version");
23038 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
23039 printf("%s, bad version string\n", "$min_gtk_version");
23040 exit(1);
23041 }
23042
23043 if ((gtk_major_version != $gtk_config_major_version) ||
23044 (gtk_minor_version != $gtk_config_minor_version) ||
23045 (gtk_micro_version != $gtk_config_micro_version))
23046 {
23047 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
23048 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
23049 gtk_major_version, gtk_minor_version, gtk_micro_version);
23050 printf ("*** was found! If gtk-config was correct, then it is best\n");
23051 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
23052 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
23053 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
23054 printf("*** required on your system.\n");
23055 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
23056 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
23057 printf("*** before re-running configure\n");
23058 }
23059#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
23060 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
23061 (gtk_minor_version != GTK_MINOR_VERSION) ||
23062 (gtk_micro_version != GTK_MICRO_VERSION))
23063 {
23064 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
23065 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
23066 printf("*** library (version %d.%d.%d)\n",
23067 gtk_major_version, gtk_minor_version, gtk_micro_version);
23068 }
23069#endif /* defined (GTK_MAJOR_VERSION) ... */
23070 else
23071 {
23072 if ((gtk_major_version > major) ||
23073 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
23074 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
23075 {
23076 return 0;
23077 }
23078 else
23079 {
23080 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
23081 gtk_major_version, gtk_minor_version, gtk_micro_version);
23082 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
23083 major, minor, micro);
23084 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
23085 printf("***\n");
23086 printf("*** If you have already installed a sufficiently new version, this error\n");
23087 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
23088 printf("*** being found. The easiest way to fix this is to remove the old version\n");
23089 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
23090 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
23091 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
23092 printf("*** so that the correct libraries are found at run-time))\n");
23093 }
23094 }
23095 return 1;
23096}
23097
23098_ACEOF
23099rm -f conftest$ac_exeext
23100if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23101 (eval $ac_link) 2>&5
23102 ac_status=$?
23103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23104 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23106 (eval $ac_try) 2>&5
23107 ac_status=$?
23108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23109 (exit $ac_status); }; }; then
23110 :
23111else
23112 echo "$as_me: program exited with status $ac_status" >&5
23113echo "$as_me: failed program was:" >&5
23114sed 's/^/| /' conftest.$ac_ext >&5
23115
23116( exit $ac_status )
23117no_gtk=yes
23118fi
ac1cb8d3 23119rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23120fi
23121 CFLAGS="$ac_save_CFLAGS"
23122 LIBS="$ac_save_LIBS"
23123 fi
23124 fi
23125 if test "x$no_gtk" = x ; then
23126 echo "$as_me:$LINENO: result: yes" >&5
23127echo "${ECHO_T}yes" >&6
23128 wx_cv_lib_gtk=1.2.3
23129 else
23130 echo "$as_me:$LINENO: result: no" >&5
23131echo "${ECHO_T}no" >&6
23132 if test "$GTK_CONFIG" = "no" ; then
23133 echo "*** The gtk-config script installed by GTK could not be found"
23134 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
23135 echo "*** your path, or set the GTK_CONFIG environment variable to the"
23136 echo "*** full path to gtk-config."
23137 else
23138 if test -f conf.gtktest ; then
23139 :
23140 else
23141 echo "*** Could not run GTK test program, checking why..."
23142 CFLAGS="$CFLAGS $GTK_CFLAGS"
23143 LIBS="$LIBS $GTK_LIBS"
23144 cat >conftest.$ac_ext <<_ACEOF
23145/* confdefs.h. */
23146_ACEOF
23147cat confdefs.h >>conftest.$ac_ext
23148cat >>conftest.$ac_ext <<_ACEOF
23149/* end confdefs.h. */
23150
23151#include <gtk/gtk.h>
23152#include <stdio.h>
23153
23154int
23155main ()
23156{
23157 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23158 ;
23159 return 0;
23160}
23161_ACEOF
23162rm -f conftest.$ac_objext conftest$ac_exeext
23163if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23164 (eval $ac_link) 2>conftest.er1
a848cd7e 23165 ac_status=$?
ac1cb8d3
VS
23166 grep -v '^ *+' conftest.er1 >conftest.err
23167 rm -f conftest.er1
23168 cat conftest.err >&5
a848cd7e
SC
23169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23170 (exit $ac_status); } &&
ea7db9ff
DE
23171 { ac_try='test -z "$ac_c_werror_flag"
23172 || test ! -s conftest.err'
ac1cb8d3
VS
23173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23174 (eval $ac_try) 2>&5
23175 ac_status=$?
23176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23177 (exit $ac_status); }; } &&
23178 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23180 (eval $ac_try) 2>&5
23181 ac_status=$?
23182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23183 (exit $ac_status); }; }; then
23184 echo "*** The test program compiled, but did not run. This usually means"
23185 echo "*** that the run-time linker is not finding GTK or finding the wrong"
23186 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
23187 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23188 echo "*** to the installed location Also, make sure you have run ldconfig if that"
23189 echo "*** is required on your system"
23190 echo "***"
23191 echo "*** If you have an old version installed, it is best to remove it, although"
23192 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23193 echo "***"
23194 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
23195 echo "*** came with the system with the command"
23196 echo "***"
23197 echo "*** rpm --erase --nodeps gtk gtk-devel"
23198else
23199 echo "$as_me: failed program was:" >&5
23200sed 's/^/| /' conftest.$ac_ext >&5
23201
23202 echo "*** The test program failed to compile or link. See the file config.log for the"
23203 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
23204 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
23205 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
23206fi
ac1cb8d3
VS
23207rm -f conftest.err conftest.$ac_objext \
23208 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23209 CFLAGS="$ac_save_CFLAGS"
23210 LIBS="$ac_save_LIBS"
23211 fi
23212 fi
23213 GTK_CFLAGS=""
23214 GTK_LIBS=""
23215 :
23216 fi
23217
23218
23219 rm -f conf.gtktest
23220
23221 fi
23222 fi
23223
23224 if test -z "$wx_cv_lib_gtk"; then
23225 wx_cv_lib_gtk=none
23226 else
23227 wx_cv_cflags_gtk=$GTK_CFLAGS
23228 wx_cv_libs_gtk=$GTK_LIBS
23229 fi
23230
23231
23232fi
23233
23234
23235 if test "$gtk_version_cached" = 1; then
23236 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
23237echo "${ECHO_T}$wx_cv_lib_gtk" >&6
23238 fi
23239
23240 case "$wx_cv_lib_gtk" in
23241 2.0) WXGTK20=1
23242 TOOLKIT_VERSION=2
23243 ;;
23244 1.2.7) WXGTK127=1
23245 WXGTK12=1
23246 ;;
23247 1.2.3) WXGTK12=1
23248 ;;
23249 *) { { echo "$as_me:$LINENO: error:
23250Please check that gtk-config is in path, the directory
23251where GTK+ libraries are installed (returned by
23252'gtk-config --libs' command) is in LD_LIBRARY_PATH or
23253equivalent variable and GTK+ is version 1.2.3 or above.
23254 " >&5
23255echo "$as_me: error:
23256Please check that gtk-config is in path, the directory
23257where GTK+ libraries are installed (returned by
23258'gtk-config --libs' command) is in LD_LIBRARY_PATH or
23259equivalent variable and GTK+ is version 1.2.3 or above.
23260 " >&2;}
23261 { (exit 1); exit 1; }; }
23262 ;;
23263 esac
23264
23265 if test "$WXGTK20" = 1; then
23266 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
23267
23268 succeeded=no
23269
23270 if test -z "$PKG_CONFIG"; then
23271 # Extract the first word of "pkg-config", so it can be a program name with args.
23272set dummy pkg-config; ac_word=$2
23273echo "$as_me:$LINENO: checking for $ac_word" >&5
23274echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23275if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23276 echo $ECHO_N "(cached) $ECHO_C" >&6
23277else
23278 case $PKG_CONFIG in
23279 [\\/]* | ?:[\\/]*)
23280 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23281 ;;
23282 *)
23283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23284for as_dir in $PATH
23285do
23286 IFS=$as_save_IFS
23287 test -z "$as_dir" && as_dir=.
23288 for ac_exec_ext in '' $ac_executable_extensions; do
23289 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23290 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23292 break 2
23293 fi
23294done
23295done
23296
23297 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23298 ;;
23299esac
23300fi
23301PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23302
23303if test -n "$PKG_CONFIG"; then
23304 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23305echo "${ECHO_T}$PKG_CONFIG" >&6
23306else
23307 echo "$as_me:$LINENO: result: no" >&5
23308echo "${ECHO_T}no" >&6
23309fi
23310
23311 fi
23312
23313 if test "$PKG_CONFIG" = "no" ; then
23314 echo "*** The pkg-config script could not be found. Make sure it is"
23315 echo "*** in your path, or set the PKG_CONFIG environment variable"
23316 echo "*** to the full path to pkg-config."
23317 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23318 else
23319 PKG_CONFIG_MIN_VERSION=0.9.0
23320 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23321 echo "$as_me:$LINENO: checking for pangoft2" >&5
23322echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
23323
23324 if $PKG_CONFIG --exists "pangoft2" ; then
23325 echo "$as_me:$LINENO: result: yes" >&5
23326echo "${ECHO_T}yes" >&6
23327 succeeded=yes
23328
23329 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
23330echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
23331 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
23332 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
23333echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
23334
23335 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
23336echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
23337 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
23338 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
23339echo "${ECHO_T}$PANGOFT2_LIBS" >&6
23340 else
23341 PANGOFT2_CFLAGS=""
23342 PANGOFT2_LIBS=""
23343 ## If we have a custom action on failure, don't print errors, but
23344 ## do set a variable so people can do so.
23345 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
23346
23347 fi
23348
23349
23350
23351 else
23352 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23353 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23354 fi
23355 fi
23356
23357 if test $succeeded = yes; then
23358
23359 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
23360 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
23361
23362 else
23363
23364 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
23365echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
23366 wxUSE_PRINTING_ARCHITECTURE="no"
23367
23368
23369 fi
23370
23371 fi
304205f1
VS
23372
23373 save_CFLAGS="$CFLAGS"
23374 save_LIBS="$LIBS"
23375 CFLAGS="$CFLAGS $GTK_CFLAGS"
23376 LIBS="$LIBS $GTK_LIBS"
23377
23378for ac_func in pango_font_family_is_monospace
23379do
23380as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23381echo "$as_me:$LINENO: checking for $ac_func" >&5
23382echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23383if eval "test \"\${$as_ac_var+set}\" = set"; then
23384 echo $ECHO_N "(cached) $ECHO_C" >&6
23385else
23386 cat >conftest.$ac_ext <<_ACEOF
23387/* confdefs.h. */
23388_ACEOF
23389cat confdefs.h >>conftest.$ac_ext
23390cat >>conftest.$ac_ext <<_ACEOF
23391/* end confdefs.h. */
23392/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23394#define $ac_func innocuous_$ac_func
23395
23396/* System header to define __stub macros and hopefully few prototypes,
23397 which can conflict with char $ac_func (); below.
23398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23399 <limits.h> exists even on freestanding compilers. */
23400
23401#ifdef __STDC__
23402# include <limits.h>
23403#else
23404# include <assert.h>
23405#endif
23406
23407#undef $ac_func
23408
23409/* Override any gcc2 internal prototype to avoid an error. */
23410#ifdef __cplusplus
23411extern "C"
23412{
23413#endif
23414/* We use char because int might match the return type of a gcc2
23415 builtin and then its argument prototype would still apply. */
23416char $ac_func ();
23417/* The GNU C library defines this for functions which it implements
23418 to always fail with ENOSYS. Some functions are actually named
23419 something starting with __ and the normal name is an alias. */
23420#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23421choke me
23422#else
23423char (*f) () = $ac_func;
23424#endif
23425#ifdef __cplusplus
23426}
23427#endif
23428
23429int
23430main ()
23431{
23432return f != $ac_func;
23433 ;
23434 return 0;
23435}
23436_ACEOF
23437rm -f conftest.$ac_objext conftest$ac_exeext
23438if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23439 (eval $ac_link) 2>conftest.er1
23440 ac_status=$?
23441 grep -v '^ *+' conftest.er1 >conftest.err
23442 rm -f conftest.er1
23443 cat conftest.err >&5
23444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23445 (exit $ac_status); } &&
ea7db9ff
DE
23446 { ac_try='test -z "$ac_c_werror_flag"
23447 || test ! -s conftest.err'
304205f1
VS
23448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23449 (eval $ac_try) 2>&5
23450 ac_status=$?
23451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23452 (exit $ac_status); }; } &&
23453 { ac_try='test -s conftest$ac_exeext'
23454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23455 (eval $ac_try) 2>&5
23456 ac_status=$?
23457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23458 (exit $ac_status); }; }; then
23459 eval "$as_ac_var=yes"
23460else
23461 echo "$as_me: failed program was:" >&5
23462sed 's/^/| /' conftest.$ac_ext >&5
23463
23464eval "$as_ac_var=no"
23465fi
23466rm -f conftest.err conftest.$ac_objext \
23467 conftest$ac_exeext conftest.$ac_ext
23468fi
23469echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23470echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23471if test `eval echo '${'$as_ac_var'}'` = yes; then
23472 cat >>confdefs.h <<_ACEOF
23473#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23474_ACEOF
23475
23476fi
23477done
23478
23479 CFLAGS="$save_CFLAGS"
23480 LIBS="$save_LIBS"
a848cd7e
SC
23481 else
23482 if test "$wxUSE_UNICODE" = "yes"; then
23483 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
23484echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
23485 wxUSE_UNICODE=no
23486 fi
23487 fi
23488
23489 if test "$USE_DARWIN" != 1; then
23490
23491for ac_func in poll
23492do
23493as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23494echo "$as_me:$LINENO: checking for $ac_func" >&5
23495echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23496if eval "test \"\${$as_ac_var+set}\" = set"; then
23497 echo $ECHO_N "(cached) $ECHO_C" >&6
23498else
23499 cat >conftest.$ac_ext <<_ACEOF
23500/* confdefs.h. */
23501_ACEOF
23502cat confdefs.h >>conftest.$ac_ext
23503cat >>conftest.$ac_ext <<_ACEOF
23504/* end confdefs.h. */
ac1cb8d3
VS
23505/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23506 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23507#define $ac_func innocuous_$ac_func
23508
a848cd7e
SC
23509/* System header to define __stub macros and hopefully few prototypes,
23510 which can conflict with char $ac_func (); below.
23511 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23512 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 23513
a848cd7e
SC
23514#ifdef __STDC__
23515# include <limits.h>
23516#else
23517# include <assert.h>
23518#endif
ac1cb8d3
VS
23519
23520#undef $ac_func
23521
a848cd7e
SC
23522/* Override any gcc2 internal prototype to avoid an error. */
23523#ifdef __cplusplus
23524extern "C"
23525{
23526#endif
23527/* We use char because int might match the return type of a gcc2
23528 builtin and then its argument prototype would still apply. */
23529char $ac_func ();
23530/* The GNU C library defines this for functions which it implements
23531 to always fail with ENOSYS. Some functions are actually named
23532 something starting with __ and the normal name is an alias. */
23533#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23534choke me
23535#else
23536char (*f) () = $ac_func;
23537#endif
23538#ifdef __cplusplus
23539}
23540#endif
23541
23542int
23543main ()
23544{
23545return f != $ac_func;
23546 ;
23547 return 0;
23548}
23549_ACEOF
23550rm -f conftest.$ac_objext conftest$ac_exeext
23551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23552 (eval $ac_link) 2>conftest.er1
a848cd7e 23553 ac_status=$?
ac1cb8d3
VS
23554 grep -v '^ *+' conftest.er1 >conftest.err
23555 rm -f conftest.er1
23556 cat conftest.err >&5
a848cd7e
SC
23557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23558 (exit $ac_status); } &&
ea7db9ff
DE
23559 { ac_try='test -z "$ac_c_werror_flag"
23560 || test ! -s conftest.err'
ac1cb8d3
VS
23561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23562 (eval $ac_try) 2>&5
23563 ac_status=$?
23564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23565 (exit $ac_status); }; } &&
23566 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23568 (eval $ac_try) 2>&5
23569 ac_status=$?
23570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23571 (exit $ac_status); }; }; then
23572 eval "$as_ac_var=yes"
23573else
23574 echo "$as_me: failed program was:" >&5
23575sed 's/^/| /' conftest.$ac_ext >&5
23576
23577eval "$as_ac_var=no"
23578fi
ac1cb8d3
VS
23579rm -f conftest.err conftest.$ac_objext \
23580 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23581fi
23582echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23583echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23584if test `eval echo '${'$as_ac_var'}'` = yes; then
23585 cat >>confdefs.h <<_ACEOF
23586#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23587_ACEOF
23588
23589fi
23590done
23591
23592 fi
23593
23594 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
23595 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
23596
23597 AFMINSTALL=afminstall
23598 TOOLKIT=GTK
23599 GUIDIST=GTK_DIST
23600
23601 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
23602echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
23603if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
23604 echo $ECHO_N "(cached) $ECHO_C" >&6
23605else
23606 ac_check_lib_save_LIBS=$LIBS
23607LIBS="-lgdk $LIBS"
23608cat >conftest.$ac_ext <<_ACEOF
23609/* confdefs.h. */
23610_ACEOF
23611cat confdefs.h >>conftest.$ac_ext
23612cat >>conftest.$ac_ext <<_ACEOF
23613/* end confdefs.h. */
23614
23615/* Override any gcc2 internal prototype to avoid an error. */
23616#ifdef __cplusplus
23617extern "C"
23618#endif
23619/* We use char because int might match the return type of a gcc2
23620 builtin and then its argument prototype would still apply. */
23621char gdk_im_open ();
23622int
23623main ()
23624{
23625gdk_im_open ();
23626 ;
23627 return 0;
23628}
23629_ACEOF
23630rm -f conftest.$ac_objext conftest$ac_exeext
23631if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23632 (eval $ac_link) 2>conftest.er1
a848cd7e 23633 ac_status=$?
ac1cb8d3
VS
23634 grep -v '^ *+' conftest.er1 >conftest.err
23635 rm -f conftest.er1
23636 cat conftest.err >&5
a848cd7e
SC
23637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23638 (exit $ac_status); } &&
ea7db9ff
DE
23639 { ac_try='test -z "$ac_c_werror_flag"
23640 || test ! -s conftest.err'
ac1cb8d3
VS
23641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23642 (eval $ac_try) 2>&5
23643 ac_status=$?
23644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23645 (exit $ac_status); }; } &&
23646 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23648 (eval $ac_try) 2>&5
23649 ac_status=$?
23650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23651 (exit $ac_status); }; }; then
23652 ac_cv_lib_gdk_gdk_im_open=yes
23653else
23654 echo "$as_me: failed program was:" >&5
23655sed 's/^/| /' conftest.$ac_ext >&5
23656
23657ac_cv_lib_gdk_gdk_im_open=no
23658fi
ac1cb8d3
VS
23659rm -f conftest.err conftest.$ac_objext \
23660 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23661LIBS=$ac_check_lib_save_LIBS
23662fi
23663echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
23664echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
23665if test $ac_cv_lib_gdk_gdk_im_open = yes; then
23666 cat >>confdefs.h <<\_ACEOF
23667#define HAVE_XIM 1
23668_ACEOF
23669
23670fi
23671
23672
23673
23674 if test "$wxUSE_GPE" = "yes"; then
23675 echo "$as_me:$LINENO: checking for gpewidget library" >&5
23676echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
23677
23678ac_find_libraries=
23679for ac_dir in $SEARCH_LIB /usr/lib;
23680 do
23681 for ac_extension in a so sl dylib; do
23682 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
23683 ac_find_libraries=$ac_dir
23684 break 2
23685 fi
23686 done
23687 done
23688
23689 if test "$ac_find_libraries" != "" ; then
23690
23691 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
23692 result=$?
23693 if test $result = 0; then
23694 ac_path_to_link=""
23695 else
23696 ac_path_to_link=" -L$ac_find_libraries"
23697 fi
23698
23699 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
23700 WXGPE=1
23701 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
23702echo "${ECHO_T}found at $ac_find_libraries" >&6
23703 else
23704 echo "$as_me:$LINENO: result: not found" >&5
23705echo "${ECHO_T}not found" >&6
23706 fi
23707
23708 fi
23709 fi
23710
23711 if test "$wxUSE_MGL" = 1; then
23712 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
23713echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
23714 if test "x$MGL_ROOT" = x ; then
23715 echo "$as_me:$LINENO: result: not found" >&5
23716echo "${ECHO_T}not found" >&6
23717 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
23718echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
23719 { (exit 1); exit 1; }; }
23720 else
23721 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
23722echo "${ECHO_T}$MGL_ROOT" >&6
23723 fi
23724
23725 echo "$as_me:$LINENO: checking for libmgl location" >&5
23726echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
23727 case "${host}" in
23728 *-*-linux* )
23729 if test "x$wxUSE_SHARED" = xyes ; then
23730 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
23731 else
23732 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
23733 fi
23734 ;;
23735 *-pc-msdosdjgpp )
23736 mgl_os_candidates="dos32/dj2"
23737 ;;
23738 *)
23739 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
23740echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
23741 { (exit 1); exit 1; }; }
23742 esac
23743
23744 mgl_lib_type=""
23745 mgl_os=""
23746
23747 for mgl_os_i in $mgl_os_candidates ; do
23748 if test "x$mgl_os" = x ; then
23749 if test "$wxUSE_DEBUG_FLAG" = yes ; then
23750 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
23751 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
23752 mgl_lib_type=debug
23753 mgl_os=$mgl_os_i
23754 fi
23755 fi
23756 if test "x$mgl_lib_type" = x ; then
23757 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
23758 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
23759 mgl_lib_type=release
23760 mgl_os=$mgl_os_i
23761 fi
23762 fi
23763 fi
23764 done
23765
23766 if test "x$mgl_os" = x ; then
23767 echo "$as_me:$LINENO: result: not found" >&5
23768echo "${ECHO_T}not found" >&6
23769 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
23770echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
23771 { (exit 1); exit 1; }; }
23772 fi
23773 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
23774echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
23775
23776 wxUSE_UNIVERSAL="yes"
23777
23778 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
23779 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
23780
23781 AFMINSTALL=afminstall
23782 TOOLKIT=MGL
23783 GUIDIST=MGL_DIST
23784 fi
23785
23786 if test "$wxUSE_MICROWIN" = 1; then
23787 echo "$as_me:$LINENO: checking for MicroWindows" >&5
23788echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
23789 if test "x$MICROWINDOWS" = x ; then
23790 echo "$as_me:$LINENO: result: not found" >&5
23791echo "${ECHO_T}not found" >&6
23792 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
23793echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
23794 { (exit 1); exit 1; }; }
23795 else
23796 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
23797echo "${ECHO_T}$MICROWINDOWS" >&6
23798 fi
23799
23800 if test -f $MICROWINDOWS/lib/libmwin.a; then
23801 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
23802echo "${ECHO_T}MicroWindows' libraries found." >&6
23803 else
23804 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
23805echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
23806 { (exit 1); exit 1; }; }
23807 fi
23808
23809 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
23810 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
23811
23812 wxUSE_UNIVERSAL="yes"
23813
23814 AFMINSTALL=afminstall
23815 TOOLKIT=MICROWIN
23816 GUIDIST=MICROWIN_DIST
23817
23818 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
23819 fi
23820
74b84332 23821 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
ea7db9ff 23822 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
23823echo $ECHO_N "checking for X... $ECHO_C" >&6
23824
23825
23826# Check whether --with-x or --without-x was given.
23827if test "${with_x+set}" = set; then
23828 withval="$with_x"
23829
23830fi;
23831# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
23832if test "x$with_x" = xno; then
23833 # The user explicitly disabled X.
23834 have_x=disabled
23835else
23836 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
23837 # Both variables are already set.
23838 have_x=yes
23839 else
23840 if test "${ac_cv_have_x+set}" = set; then
23841 echo $ECHO_N "(cached) $ECHO_C" >&6
23842else
23843 # One or both of the vars are not set, and there is no cached value.
23844ac_x_includes=no ac_x_libraries=no
23845rm -fr conftest.dir
23846if mkdir conftest.dir; then
23847 cd conftest.dir
23848 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
23849 cat >Imakefile <<'_ACEOF'
23850acfindx:
23851 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
23852_ACEOF
23853 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
23854 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23855 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
23856 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
23857 for ac_extension in a so sl; do
23858 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
23859 test -f $ac_im_libdir/libX11.$ac_extension; then
23860 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
23861 fi
23862 done
23863 # Screen out bogus values from the imake configuration. They are
23864 # bogus both because they are the default anyway, and because
23865 # using them would break gcc on systems where it needs fixed includes.
23866 case $ac_im_incroot in
23867 /usr/include) ;;
23868 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
23869 esac
23870 case $ac_im_usrlibdir in
23871 /usr/lib | /lib) ;;
23872 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
23873 esac
23874 fi
23875 cd ..
23876 rm -fr conftest.dir
23877fi
23878
23879# Standard set of common directories for X headers.
23880# Check X11 before X11Rn because it is often a symlink to the current release.
23881ac_x_header_dirs='
23882/usr/X11/include
23883/usr/X11R6/include
23884/usr/X11R5/include
23885/usr/X11R4/include
23886
23887/usr/include/X11
23888/usr/include/X11R6
23889/usr/include/X11R5
23890/usr/include/X11R4
23891
23892/usr/local/X11/include
23893/usr/local/X11R6/include
23894/usr/local/X11R5/include
23895/usr/local/X11R4/include
23896
23897/usr/local/include/X11
23898/usr/local/include/X11R6
23899/usr/local/include/X11R5
23900/usr/local/include/X11R4
23901
23902/usr/X386/include
23903/usr/x386/include
23904/usr/XFree86/include/X11
23905
23906/usr/include
23907/usr/local/include
23908/usr/unsupported/include
23909/usr/athena/include
23910/usr/local/x11r5/include
23911/usr/lpp/Xamples/include
23912
23913/usr/openwin/include
23914/usr/openwin/share/include'
23915
23916if test "$ac_x_includes" = no; then
ea7db9ff 23917 # Guess where to find include files, by looking for Intrinsic.h.
a848cd7e
SC
23918 # First, try using that file with no special directory specified.
23919 cat >conftest.$ac_ext <<_ACEOF
23920/* confdefs.h. */
23921_ACEOF
23922cat confdefs.h >>conftest.$ac_ext
23923cat >>conftest.$ac_ext <<_ACEOF
23924/* end confdefs.h. */
23925#include <X11/Intrinsic.h>
23926_ACEOF
23927if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23928 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23929 ac_status=$?
23930 grep -v '^ *+' conftest.er1 >conftest.err
23931 rm -f conftest.er1
23932 cat conftest.err >&5
23933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23934 (exit $ac_status); } >/dev/null; then
23935 if test -s conftest.err; then
23936 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23937 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23938 else
23939 ac_cpp_err=
23940 fi
23941else
23942 ac_cpp_err=yes
23943fi
23944if test -z "$ac_cpp_err"; then
23945 # We can compile using X headers with no special include directory.
23946ac_x_includes=
23947else
23948 echo "$as_me: failed program was:" >&5
23949sed 's/^/| /' conftest.$ac_ext >&5
23950
23951 for ac_dir in $ac_x_header_dirs; do
23952 if test -r "$ac_dir/X11/Intrinsic.h"; then
23953 ac_x_includes=$ac_dir
23954 break
23955 fi
23956done
23957fi
23958rm -f conftest.err conftest.$ac_ext
23959fi # $ac_x_includes = no
23960
23961if test "$ac_x_libraries" = no; then
23962 # Check for the libraries.
23963 # See if we find them without any special options.
23964 # Don't add to $LIBS permanently.
23965 ac_save_LIBS=$LIBS
23966 LIBS="-lXt $LIBS"
23967 cat >conftest.$ac_ext <<_ACEOF
23968/* confdefs.h. */
23969_ACEOF
23970cat confdefs.h >>conftest.$ac_ext
23971cat >>conftest.$ac_ext <<_ACEOF
23972/* end confdefs.h. */
23973#include <X11/Intrinsic.h>
23974int
23975main ()
23976{
23977XtMalloc (0)
23978 ;
23979 return 0;
23980}
23981_ACEOF
23982rm -f conftest.$ac_objext conftest$ac_exeext
23983if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23984 (eval $ac_link) 2>conftest.er1
a848cd7e 23985 ac_status=$?
ac1cb8d3
VS
23986 grep -v '^ *+' conftest.er1 >conftest.err
23987 rm -f conftest.er1
23988 cat conftest.err >&5
a848cd7e
SC
23989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23990 (exit $ac_status); } &&
ea7db9ff
DE
23991 { ac_try='test -z "$ac_c_werror_flag"
23992 || test ! -s conftest.err'
ac1cb8d3
VS
23993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23994 (eval $ac_try) 2>&5
23995 ac_status=$?
23996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23997 (exit $ac_status); }; } &&
23998 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24000 (eval $ac_try) 2>&5
24001 ac_status=$?
24002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24003 (exit $ac_status); }; }; then
24004 LIBS=$ac_save_LIBS
24005# We can link X programs with no special library path.
24006ac_x_libraries=
24007else
24008 echo "$as_me: failed program was:" >&5
24009sed 's/^/| /' conftest.$ac_ext >&5
24010
24011LIBS=$ac_save_LIBS
24012for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24013do
24014 # Don't even attempt the hair of trying to link an X program!
24015 for ac_extension in a so sl; do
24016 if test -r $ac_dir/libXt.$ac_extension; then
24017 ac_x_libraries=$ac_dir
24018 break 2
24019 fi
24020 done
24021done
24022fi
ac1cb8d3
VS
24023rm -f conftest.err conftest.$ac_objext \
24024 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24025fi # $ac_x_libraries = no
24026
24027if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
24028 # Didn't find X anywhere. Cache the known absence of X.
24029 ac_cv_have_x="have_x=no"
24030else
24031 # Record where we found X for the cache.
24032 ac_cv_have_x="have_x=yes \
ac1cb8d3 24033 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
24034fi
24035fi
24036
24037 fi
24038 eval "$ac_cv_have_x"
24039fi # $with_x != no
24040
24041if test "$have_x" != yes; then
24042 echo "$as_me:$LINENO: result: $have_x" >&5
24043echo "${ECHO_T}$have_x" >&6
24044 no_x=yes
24045else
24046 # If each of the values was on the command line, it overrides each guess.
24047 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24048 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24049 # Update the cache value to reflect the command line values.
24050 ac_cv_have_x="have_x=yes \
24051 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
ea7db9ff
DE
24052 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
24053echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
a848cd7e
SC
24054fi
24055
24056if test "$no_x" = yes; then
24057 # Not all programs may use this symbol, but it does not hurt to define it.
24058
24059cat >>confdefs.h <<\_ACEOF
24060#define X_DISPLAY_MISSING 1
24061_ACEOF
24062
24063 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24064else
24065 if test -n "$x_includes"; then
24066 X_CFLAGS="$X_CFLAGS -I$x_includes"
24067 fi
24068
24069 # It would also be nice to do this for all -L options, not just this one.
24070 if test -n "$x_libraries"; then
24071 X_LIBS="$X_LIBS -L$x_libraries"
24072 # For Solaris; some versions of Sun CC require a space after -R and
24073 # others require no space. Words are not sufficient . . . .
24074 case `(uname -sr) 2>/dev/null` in
24075 "SunOS 5"*)
24076 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
24077echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
24078 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24079 cat >conftest.$ac_ext <<_ACEOF
24080/* confdefs.h. */
24081_ACEOF
24082cat confdefs.h >>conftest.$ac_ext
24083cat >>conftest.$ac_ext <<_ACEOF
24084/* end confdefs.h. */
24085
24086int
24087main ()
24088{
24089
24090 ;
24091 return 0;
24092}
24093_ACEOF
24094rm -f conftest.$ac_objext conftest$ac_exeext
24095if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24096 (eval $ac_link) 2>conftest.er1
a848cd7e 24097 ac_status=$?
ac1cb8d3
VS
24098 grep -v '^ *+' conftest.er1 >conftest.err
24099 rm -f conftest.er1
24100 cat conftest.err >&5
a848cd7e
SC
24101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24102 (exit $ac_status); } &&
ea7db9ff
DE
24103 { ac_try='test -z "$ac_c_werror_flag"
24104 || test ! -s conftest.err'
ac1cb8d3
VS
24105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24106 (eval $ac_try) 2>&5
24107 ac_status=$?
24108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24109 (exit $ac_status); }; } &&
24110 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24112 (eval $ac_try) 2>&5
24113 ac_status=$?
24114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24115 (exit $ac_status); }; }; then
24116 ac_R_nospace=yes
24117else
24118 echo "$as_me: failed program was:" >&5
24119sed 's/^/| /' conftest.$ac_ext >&5
24120
24121ac_R_nospace=no
24122fi
ac1cb8d3
VS
24123rm -f conftest.err conftest.$ac_objext \
24124 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24125 if test $ac_R_nospace = yes; then
24126 echo "$as_me:$LINENO: result: no" >&5
24127echo "${ECHO_T}no" >&6
24128 X_LIBS="$X_LIBS -R$x_libraries"
24129 else
24130 LIBS="$ac_xsave_LIBS -R $x_libraries"
24131 cat >conftest.$ac_ext <<_ACEOF
24132/* confdefs.h. */
24133_ACEOF
24134cat confdefs.h >>conftest.$ac_ext
24135cat >>conftest.$ac_ext <<_ACEOF
24136/* end confdefs.h. */
24137
24138int
24139main ()
24140{
24141
24142 ;
24143 return 0;
24144}
24145_ACEOF
24146rm -f conftest.$ac_objext conftest$ac_exeext
24147if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24148 (eval $ac_link) 2>conftest.er1
a848cd7e 24149 ac_status=$?
ac1cb8d3
VS
24150 grep -v '^ *+' conftest.er1 >conftest.err
24151 rm -f conftest.er1
24152 cat conftest.err >&5
a848cd7e
SC
24153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24154 (exit $ac_status); } &&
ea7db9ff
DE
24155 { ac_try='test -z "$ac_c_werror_flag"
24156 || test ! -s conftest.err'
ac1cb8d3
VS
24157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24158 (eval $ac_try) 2>&5
24159 ac_status=$?
24160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24161 (exit $ac_status); }; } &&
24162 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24164 (eval $ac_try) 2>&5
24165 ac_status=$?
24166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24167 (exit $ac_status); }; }; then
24168 ac_R_space=yes
24169else
24170 echo "$as_me: failed program was:" >&5
24171sed 's/^/| /' conftest.$ac_ext >&5
24172
24173ac_R_space=no
24174fi
ac1cb8d3
VS
24175rm -f conftest.err conftest.$ac_objext \
24176 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24177 if test $ac_R_space = yes; then
24178 echo "$as_me:$LINENO: result: yes" >&5
24179echo "${ECHO_T}yes" >&6
24180 X_LIBS="$X_LIBS -R $x_libraries"
24181 else
24182 echo "$as_me:$LINENO: result: neither works" >&5
24183echo "${ECHO_T}neither works" >&6
24184 fi
24185 fi
24186 LIBS=$ac_xsave_LIBS
24187 esac
24188 fi
24189
24190 # Check for system-dependent libraries X programs must link with.
24191 # Do this before checking for the system-independent R6 libraries
24192 # (-lICE), since we may need -lsocket or whatever for X linking.
24193
24194 if test "$ISC" = yes; then
24195 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24196 else
24197 # Martyn Johnson says this is needed for Ultrix, if the X
24198 # libraries were built with DECnet support. And Karl Berry says
24199 # the Alpha needs dnet_stub (dnet does not exist).
24200 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24201 cat >conftest.$ac_ext <<_ACEOF
24202/* confdefs.h. */
24203_ACEOF
24204cat confdefs.h >>conftest.$ac_ext
24205cat >>conftest.$ac_ext <<_ACEOF
24206/* end confdefs.h. */
24207
24208/* Override any gcc2 internal prototype to avoid an error. */
24209#ifdef __cplusplus
24210extern "C"
24211#endif
24212/* We use char because int might match the return type of a gcc2
24213 builtin and then its argument prototype would still apply. */
24214char XOpenDisplay ();
24215int
24216main ()
24217{
24218XOpenDisplay ();
24219 ;
24220 return 0;
24221}
24222_ACEOF
24223rm -f conftest.$ac_objext conftest$ac_exeext
24224if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24225 (eval $ac_link) 2>conftest.er1
a848cd7e 24226 ac_status=$?
ac1cb8d3
VS
24227 grep -v '^ *+' conftest.er1 >conftest.err
24228 rm -f conftest.er1
24229 cat conftest.err >&5
a848cd7e
SC
24230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24231 (exit $ac_status); } &&
ea7db9ff
DE
24232 { ac_try='test -z "$ac_c_werror_flag"
24233 || test ! -s conftest.err'
ac1cb8d3
VS
24234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24235 (eval $ac_try) 2>&5
24236 ac_status=$?
24237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24238 (exit $ac_status); }; } &&
24239 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24241 (eval $ac_try) 2>&5
24242 ac_status=$?
24243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24244 (exit $ac_status); }; }; then
24245 :
24246else
24247 echo "$as_me: failed program was:" >&5
24248sed 's/^/| /' conftest.$ac_ext >&5
24249
24250echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
24251echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
24252if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
24253 echo $ECHO_N "(cached) $ECHO_C" >&6
24254else
24255 ac_check_lib_save_LIBS=$LIBS
24256LIBS="-ldnet $LIBS"
24257cat >conftest.$ac_ext <<_ACEOF
24258/* confdefs.h. */
24259_ACEOF
24260cat confdefs.h >>conftest.$ac_ext
24261cat >>conftest.$ac_ext <<_ACEOF
24262/* end confdefs.h. */
24263
24264/* Override any gcc2 internal prototype to avoid an error. */
24265#ifdef __cplusplus
24266extern "C"
24267#endif
24268/* We use char because int might match the return type of a gcc2
24269 builtin and then its argument prototype would still apply. */
24270char dnet_ntoa ();
24271int
24272main ()
24273{
24274dnet_ntoa ();
24275 ;
24276 return 0;
24277}
24278_ACEOF
24279rm -f conftest.$ac_objext conftest$ac_exeext
24280if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24281 (eval $ac_link) 2>conftest.er1
a848cd7e 24282 ac_status=$?
ac1cb8d3
VS
24283 grep -v '^ *+' conftest.er1 >conftest.err
24284 rm -f conftest.er1
24285 cat conftest.err >&5
a848cd7e
SC
24286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24287 (exit $ac_status); } &&
ea7db9ff
DE
24288 { ac_try='test -z "$ac_c_werror_flag"
24289 || test ! -s conftest.err'
ac1cb8d3
VS
24290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24291 (eval $ac_try) 2>&5
24292 ac_status=$?
24293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24294 (exit $ac_status); }; } &&
24295 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24297 (eval $ac_try) 2>&5
24298 ac_status=$?
24299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24300 (exit $ac_status); }; }; then
24301 ac_cv_lib_dnet_dnet_ntoa=yes
24302else
24303 echo "$as_me: failed program was:" >&5
24304sed 's/^/| /' conftest.$ac_ext >&5
24305
24306ac_cv_lib_dnet_dnet_ntoa=no
24307fi
ac1cb8d3
VS
24308rm -f conftest.err conftest.$ac_objext \
24309 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24310LIBS=$ac_check_lib_save_LIBS
24311fi
24312echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24313echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
24314if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
24315 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24316fi
24317
24318 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24319 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
24320echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
24321if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
24322 echo $ECHO_N "(cached) $ECHO_C" >&6
24323else
24324 ac_check_lib_save_LIBS=$LIBS
24325LIBS="-ldnet_stub $LIBS"
24326cat >conftest.$ac_ext <<_ACEOF
24327/* confdefs.h. */
24328_ACEOF
24329cat confdefs.h >>conftest.$ac_ext
24330cat >>conftest.$ac_ext <<_ACEOF
24331/* end confdefs.h. */
24332
24333/* Override any gcc2 internal prototype to avoid an error. */
24334#ifdef __cplusplus
24335extern "C"
24336#endif
24337/* We use char because int might match the return type of a gcc2
24338 builtin and then its argument prototype would still apply. */
24339char dnet_ntoa ();
24340int
24341main ()
24342{
24343dnet_ntoa ();
24344 ;
24345 return 0;
24346}
24347_ACEOF
24348rm -f conftest.$ac_objext conftest$ac_exeext
24349if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24350 (eval $ac_link) 2>conftest.er1
a848cd7e 24351 ac_status=$?
ac1cb8d3
VS
24352 grep -v '^ *+' conftest.er1 >conftest.err
24353 rm -f conftest.er1
24354 cat conftest.err >&5
a848cd7e
SC
24355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24356 (exit $ac_status); } &&
ea7db9ff
DE
24357 { ac_try='test -z "$ac_c_werror_flag"
24358 || test ! -s conftest.err'
ac1cb8d3
VS
24359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24360 (eval $ac_try) 2>&5
24361 ac_status=$?
24362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24363 (exit $ac_status); }; } &&
24364 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24366 (eval $ac_try) 2>&5
24367 ac_status=$?
24368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24369 (exit $ac_status); }; }; then
24370 ac_cv_lib_dnet_stub_dnet_ntoa=yes
24371else
24372 echo "$as_me: failed program was:" >&5
24373sed 's/^/| /' conftest.$ac_ext >&5
24374
24375ac_cv_lib_dnet_stub_dnet_ntoa=no
24376fi
ac1cb8d3
VS
24377rm -f conftest.err conftest.$ac_objext \
24378 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24379LIBS=$ac_check_lib_save_LIBS
24380fi
24381echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24382echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
24383if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
24384 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24385fi
24386
24387 fi
24388fi
ac1cb8d3
VS
24389rm -f conftest.err conftest.$ac_objext \
24390 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24391 LIBS="$ac_xsave_LIBS"
24392
24393 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24394 # to get the SysV transport functions.
24395 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24396 # needs -lnsl.
24397 # The nsl library prevents programs from opening the X display
24398 # on Irix 5.2, according to T.E. Dickey.
24399 # The functions gethostbyname, getservbyname, and inet_addr are
24400 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24401 echo "$as_me:$LINENO: checking for gethostbyname" >&5
24402echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
24403if test "${ac_cv_func_gethostbyname+set}" = set; then
24404 echo $ECHO_N "(cached) $ECHO_C" >&6
24405else
24406 cat >conftest.$ac_ext <<_ACEOF
24407/* confdefs.h. */
24408_ACEOF
24409cat confdefs.h >>conftest.$ac_ext
24410cat >>conftest.$ac_ext <<_ACEOF
24411/* end confdefs.h. */
ac1cb8d3
VS
24412/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
24413 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24414#define gethostbyname innocuous_gethostbyname
24415
a848cd7e
SC
24416/* System header to define __stub macros and hopefully few prototypes,
24417 which can conflict with char gethostbyname (); below.
24418 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24419 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24420
a848cd7e
SC
24421#ifdef __STDC__
24422# include <limits.h>
24423#else
24424# include <assert.h>
24425#endif
ac1cb8d3
VS
24426
24427#undef gethostbyname
24428
a848cd7e
SC
24429/* Override any gcc2 internal prototype to avoid an error. */
24430#ifdef __cplusplus
24431extern "C"
24432{
24433#endif
24434/* We use char because int might match the return type of a gcc2
24435 builtin and then its argument prototype would still apply. */
24436char gethostbyname ();
24437/* The GNU C library defines this for functions which it implements
24438 to always fail with ENOSYS. Some functions are actually named
24439 something starting with __ and the normal name is an alias. */
24440#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
24441choke me
24442#else
24443char (*f) () = gethostbyname;
24444#endif
24445#ifdef __cplusplus
24446}
24447#endif
24448
24449int
24450main ()
24451{
24452return f != gethostbyname;
24453 ;
24454 return 0;
24455}
24456_ACEOF
24457rm -f conftest.$ac_objext conftest$ac_exeext
24458if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24459 (eval $ac_link) 2>conftest.er1
a848cd7e 24460 ac_status=$?
ac1cb8d3
VS
24461 grep -v '^ *+' conftest.er1 >conftest.err
24462 rm -f conftest.er1
24463 cat conftest.err >&5
a848cd7e
SC
24464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24465 (exit $ac_status); } &&
ea7db9ff
DE
24466 { ac_try='test -z "$ac_c_werror_flag"
24467 || test ! -s conftest.err'
ac1cb8d3
VS
24468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24469 (eval $ac_try) 2>&5
24470 ac_status=$?
24471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24472 (exit $ac_status); }; } &&
24473 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24475 (eval $ac_try) 2>&5
24476 ac_status=$?
24477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24478 (exit $ac_status); }; }; then
24479 ac_cv_func_gethostbyname=yes
24480else
24481 echo "$as_me: failed program was:" >&5
24482sed 's/^/| /' conftest.$ac_ext >&5
24483
24484ac_cv_func_gethostbyname=no
24485fi
ac1cb8d3
VS
24486rm -f conftest.err conftest.$ac_objext \
24487 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24488fi
24489echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
24490echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
24491
24492 if test $ac_cv_func_gethostbyname = no; then
24493 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
24494echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
24495if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
24496 echo $ECHO_N "(cached) $ECHO_C" >&6
24497else
24498 ac_check_lib_save_LIBS=$LIBS
24499LIBS="-lnsl $LIBS"
24500cat >conftest.$ac_ext <<_ACEOF
24501/* confdefs.h. */
24502_ACEOF
24503cat confdefs.h >>conftest.$ac_ext
24504cat >>conftest.$ac_ext <<_ACEOF
24505/* end confdefs.h. */
24506
24507/* Override any gcc2 internal prototype to avoid an error. */
24508#ifdef __cplusplus
24509extern "C"
24510#endif
24511/* We use char because int might match the return type of a gcc2
24512 builtin and then its argument prototype would still apply. */
24513char gethostbyname ();
24514int
24515main ()
24516{
24517gethostbyname ();
24518 ;
24519 return 0;
24520}
24521_ACEOF
24522rm -f conftest.$ac_objext conftest$ac_exeext
24523if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
24524 (eval $ac_link) 2>conftest.er1
24525 ac_status=$?
24526 grep -v '^ *+' conftest.er1 >conftest.err
24527 rm -f conftest.er1
24528 cat conftest.err >&5
24529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24530 (exit $ac_status); } &&
ea7db9ff
DE
24531 { ac_try='test -z "$ac_c_werror_flag"
24532 || test ! -s conftest.err'
ac1cb8d3
VS
24533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24534 (eval $ac_try) 2>&5
24535 ac_status=$?
24536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24537 (exit $ac_status); }; } &&
24538 { ac_try='test -s conftest$ac_exeext'
24539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24540 (eval $ac_try) 2>&5
24541 ac_status=$?
24542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24543 (exit $ac_status); }; }; then
24544 ac_cv_lib_nsl_gethostbyname=yes
24545else
24546 echo "$as_me: failed program was:" >&5
24547sed 's/^/| /' conftest.$ac_ext >&5
24548
24549ac_cv_lib_nsl_gethostbyname=no
24550fi
24551rm -f conftest.err conftest.$ac_objext \
24552 conftest$ac_exeext conftest.$ac_ext
24553LIBS=$ac_check_lib_save_LIBS
24554fi
24555echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
24556echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
24557if test $ac_cv_lib_nsl_gethostbyname = yes; then
24558 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24559fi
24560
24561 if test $ac_cv_lib_nsl_gethostbyname = no; then
24562 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
24563echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
24564if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
24565 echo $ECHO_N "(cached) $ECHO_C" >&6
24566else
24567 ac_check_lib_save_LIBS=$LIBS
24568LIBS="-lbsd $LIBS"
24569cat >conftest.$ac_ext <<_ACEOF
24570/* confdefs.h. */
24571_ACEOF
24572cat confdefs.h >>conftest.$ac_ext
24573cat >>conftest.$ac_ext <<_ACEOF
24574/* end confdefs.h. */
24575
24576/* Override any gcc2 internal prototype to avoid an error. */
24577#ifdef __cplusplus
24578extern "C"
24579#endif
24580/* We use char because int might match the return type of a gcc2
24581 builtin and then its argument prototype would still apply. */
24582char gethostbyname ();
24583int
24584main ()
24585{
24586gethostbyname ();
24587 ;
24588 return 0;
24589}
24590_ACEOF
24591rm -f conftest.$ac_objext conftest$ac_exeext
24592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24593 (eval $ac_link) 2>conftest.er1
a848cd7e 24594 ac_status=$?
ac1cb8d3
VS
24595 grep -v '^ *+' conftest.er1 >conftest.err
24596 rm -f conftest.er1
24597 cat conftest.err >&5
a848cd7e
SC
24598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24599 (exit $ac_status); } &&
ea7db9ff
DE
24600 { ac_try='test -z "$ac_c_werror_flag"
24601 || test ! -s conftest.err'
a848cd7e
SC
24602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24603 (eval $ac_try) 2>&5
24604 ac_status=$?
24605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
24606 (exit $ac_status); }; } &&
24607 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24609 (eval $ac_try) 2>&5
24610 ac_status=$?
24611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24612 (exit $ac_status); }; }; then
24613 ac_cv_lib_bsd_gethostbyname=yes
24614else
24615 echo "$as_me: failed program was:" >&5
24616sed 's/^/| /' conftest.$ac_ext >&5
24617
24618ac_cv_lib_bsd_gethostbyname=no
24619fi
ac1cb8d3
VS
24620rm -f conftest.err conftest.$ac_objext \
24621 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24622LIBS=$ac_check_lib_save_LIBS
24623fi
24624echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
24625echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
24626if test $ac_cv_lib_bsd_gethostbyname = yes; then
24627 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24628fi
24629
24630 fi
24631 fi
24632
24633 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24634 # socket/setsockopt and other routines are undefined under SCO ODT
24635 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
24636 # on later versions), says Simon Leinen: it contains gethostby*
24637 # variants that don't use the name server (or something). -lsocket
24638 # must be given before -lnsl if both are needed. We assume that
24639 # if connect needs -lnsl, so does gethostbyname.
24640 echo "$as_me:$LINENO: checking for connect" >&5
24641echo $ECHO_N "checking for connect... $ECHO_C" >&6
24642if test "${ac_cv_func_connect+set}" = set; then
24643 echo $ECHO_N "(cached) $ECHO_C" >&6
24644else
24645 cat >conftest.$ac_ext <<_ACEOF
24646/* confdefs.h. */
24647_ACEOF
24648cat confdefs.h >>conftest.$ac_ext
24649cat >>conftest.$ac_ext <<_ACEOF
24650/* end confdefs.h. */
ac1cb8d3
VS
24651/* Define connect to an innocuous variant, in case <limits.h> declares connect.
24652 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24653#define connect innocuous_connect
24654
a848cd7e
SC
24655/* System header to define __stub macros and hopefully few prototypes,
24656 which can conflict with char connect (); below.
24657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24658 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24659
a848cd7e
SC
24660#ifdef __STDC__
24661# include <limits.h>
24662#else
24663# include <assert.h>
24664#endif
ac1cb8d3
VS
24665
24666#undef connect
24667
a848cd7e
SC
24668/* Override any gcc2 internal prototype to avoid an error. */
24669#ifdef __cplusplus
24670extern "C"
24671{
24672#endif
24673/* We use char because int might match the return type of a gcc2
24674 builtin and then its argument prototype would still apply. */
24675char connect ();
24676/* The GNU C library defines this for functions which it implements
24677 to always fail with ENOSYS. Some functions are actually named
24678 something starting with __ and the normal name is an alias. */
24679#if defined (__stub_connect) || defined (__stub___connect)
24680choke me
24681#else
24682char (*f) () = connect;
24683#endif
24684#ifdef __cplusplus
24685}
24686#endif
24687
24688int
24689main ()
24690{
24691return f != connect;
24692 ;
24693 return 0;
24694}
24695_ACEOF
24696rm -f conftest.$ac_objext conftest$ac_exeext
24697if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24698 (eval $ac_link) 2>conftest.er1
a848cd7e 24699 ac_status=$?
ac1cb8d3
VS
24700 grep -v '^ *+' conftest.er1 >conftest.err
24701 rm -f conftest.er1
24702 cat conftest.err >&5
a848cd7e
SC
24703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24704 (exit $ac_status); } &&
ea7db9ff
DE
24705 { ac_try='test -z "$ac_c_werror_flag"
24706 || test ! -s conftest.err'
ac1cb8d3
VS
24707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24708 (eval $ac_try) 2>&5
24709 ac_status=$?
24710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24711 (exit $ac_status); }; } &&
24712 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24714 (eval $ac_try) 2>&5
24715 ac_status=$?
24716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24717 (exit $ac_status); }; }; then
24718 ac_cv_func_connect=yes
24719else
24720 echo "$as_me: failed program was:" >&5
24721sed 's/^/| /' conftest.$ac_ext >&5
24722
24723ac_cv_func_connect=no
24724fi
ac1cb8d3
VS
24725rm -f conftest.err conftest.$ac_objext \
24726 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24727fi
24728echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
24729echo "${ECHO_T}$ac_cv_func_connect" >&6
24730
24731 if test $ac_cv_func_connect = no; then
24732 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
24733echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
24734if test "${ac_cv_lib_socket_connect+set}" = set; then
24735 echo $ECHO_N "(cached) $ECHO_C" >&6
24736else
24737 ac_check_lib_save_LIBS=$LIBS
24738LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24739cat >conftest.$ac_ext <<_ACEOF
24740/* confdefs.h. */
24741_ACEOF
24742cat confdefs.h >>conftest.$ac_ext
24743cat >>conftest.$ac_ext <<_ACEOF
24744/* end confdefs.h. */
24745
24746/* Override any gcc2 internal prototype to avoid an error. */
24747#ifdef __cplusplus
24748extern "C"
24749#endif
24750/* We use char because int might match the return type of a gcc2
24751 builtin and then its argument prototype would still apply. */
24752char connect ();
24753int
24754main ()
24755{
24756connect ();
24757 ;
24758 return 0;
24759}
24760_ACEOF
24761rm -f conftest.$ac_objext conftest$ac_exeext
24762if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24763 (eval $ac_link) 2>conftest.er1
a848cd7e 24764 ac_status=$?
ac1cb8d3
VS
24765 grep -v '^ *+' conftest.er1 >conftest.err
24766 rm -f conftest.er1
24767 cat conftest.err >&5
a848cd7e
SC
24768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24769 (exit $ac_status); } &&
ea7db9ff
DE
24770 { ac_try='test -z "$ac_c_werror_flag"
24771 || test ! -s conftest.err'
ac1cb8d3
VS
24772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24773 (eval $ac_try) 2>&5
24774 ac_status=$?
24775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24776 (exit $ac_status); }; } &&
24777 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24779 (eval $ac_try) 2>&5
24780 ac_status=$?
24781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24782 (exit $ac_status); }; }; then
24783 ac_cv_lib_socket_connect=yes
24784else
24785 echo "$as_me: failed program was:" >&5
24786sed 's/^/| /' conftest.$ac_ext >&5
24787
24788ac_cv_lib_socket_connect=no
24789fi
ac1cb8d3
VS
24790rm -f conftest.err conftest.$ac_objext \
24791 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24792LIBS=$ac_check_lib_save_LIBS
24793fi
24794echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
24795echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
24796if test $ac_cv_lib_socket_connect = yes; then
24797 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24798fi
24799
24800 fi
24801
24802 # Guillermo Gomez says -lposix is necessary on A/UX.
24803 echo "$as_me:$LINENO: checking for remove" >&5
24804echo $ECHO_N "checking for remove... $ECHO_C" >&6
24805if test "${ac_cv_func_remove+set}" = set; then
24806 echo $ECHO_N "(cached) $ECHO_C" >&6
24807else
24808 cat >conftest.$ac_ext <<_ACEOF
24809/* confdefs.h. */
24810_ACEOF
24811cat confdefs.h >>conftest.$ac_ext
24812cat >>conftest.$ac_ext <<_ACEOF
24813/* end confdefs.h. */
ac1cb8d3
VS
24814/* Define remove to an innocuous variant, in case <limits.h> declares remove.
24815 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24816#define remove innocuous_remove
24817
a848cd7e
SC
24818/* System header to define __stub macros and hopefully few prototypes,
24819 which can conflict with char remove (); below.
24820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24821 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24822
a848cd7e
SC
24823#ifdef __STDC__
24824# include <limits.h>
24825#else
24826# include <assert.h>
24827#endif
ac1cb8d3
VS
24828
24829#undef remove
24830
a848cd7e
SC
24831/* Override any gcc2 internal prototype to avoid an error. */
24832#ifdef __cplusplus
24833extern "C"
24834{
24835#endif
24836/* We use char because int might match the return type of a gcc2
24837 builtin and then its argument prototype would still apply. */
24838char remove ();
24839/* The GNU C library defines this for functions which it implements
24840 to always fail with ENOSYS. Some functions are actually named
24841 something starting with __ and the normal name is an alias. */
24842#if defined (__stub_remove) || defined (__stub___remove)
24843choke me
24844#else
24845char (*f) () = remove;
24846#endif
24847#ifdef __cplusplus
24848}
24849#endif
24850
24851int
24852main ()
24853{
24854return f != remove;
24855 ;
24856 return 0;
24857}
24858_ACEOF
24859rm -f conftest.$ac_objext conftest$ac_exeext
24860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24861 (eval $ac_link) 2>conftest.er1
a848cd7e 24862 ac_status=$?
ac1cb8d3
VS
24863 grep -v '^ *+' conftest.er1 >conftest.err
24864 rm -f conftest.er1
24865 cat conftest.err >&5
a848cd7e
SC
24866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24867 (exit $ac_status); } &&
ea7db9ff
DE
24868 { ac_try='test -z "$ac_c_werror_flag"
24869 || test ! -s conftest.err'
ac1cb8d3
VS
24870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24871 (eval $ac_try) 2>&5
24872 ac_status=$?
24873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24874 (exit $ac_status); }; } &&
24875 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24877 (eval $ac_try) 2>&5
24878 ac_status=$?
24879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24880 (exit $ac_status); }; }; then
24881 ac_cv_func_remove=yes
24882else
24883 echo "$as_me: failed program was:" >&5
24884sed 's/^/| /' conftest.$ac_ext >&5
24885
24886ac_cv_func_remove=no
24887fi
ac1cb8d3
VS
24888rm -f conftest.err conftest.$ac_objext \
24889 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24890fi
24891echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
24892echo "${ECHO_T}$ac_cv_func_remove" >&6
24893
24894 if test $ac_cv_func_remove = no; then
24895 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
24896echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
24897if test "${ac_cv_lib_posix_remove+set}" = set; then
24898 echo $ECHO_N "(cached) $ECHO_C" >&6
24899else
24900 ac_check_lib_save_LIBS=$LIBS
24901LIBS="-lposix $LIBS"
24902cat >conftest.$ac_ext <<_ACEOF
24903/* confdefs.h. */
24904_ACEOF
24905cat confdefs.h >>conftest.$ac_ext
24906cat >>conftest.$ac_ext <<_ACEOF
24907/* end confdefs.h. */
24908
24909/* Override any gcc2 internal prototype to avoid an error. */
24910#ifdef __cplusplus
24911extern "C"
24912#endif
24913/* We use char because int might match the return type of a gcc2
24914 builtin and then its argument prototype would still apply. */
24915char remove ();
24916int
24917main ()
24918{
24919remove ();
24920 ;
24921 return 0;
24922}
24923_ACEOF
24924rm -f conftest.$ac_objext conftest$ac_exeext
24925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24926 (eval $ac_link) 2>conftest.er1
a848cd7e 24927 ac_status=$?
ac1cb8d3
VS
24928 grep -v '^ *+' conftest.er1 >conftest.err
24929 rm -f conftest.er1
24930 cat conftest.err >&5
a848cd7e
SC
24931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24932 (exit $ac_status); } &&
ea7db9ff
DE
24933 { ac_try='test -z "$ac_c_werror_flag"
24934 || test ! -s conftest.err'
ac1cb8d3
VS
24935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24936 (eval $ac_try) 2>&5
24937 ac_status=$?
24938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24939 (exit $ac_status); }; } &&
24940 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24942 (eval $ac_try) 2>&5
24943 ac_status=$?
24944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24945 (exit $ac_status); }; }; then
24946 ac_cv_lib_posix_remove=yes
24947else
24948 echo "$as_me: failed program was:" >&5
24949sed 's/^/| /' conftest.$ac_ext >&5
24950
24951ac_cv_lib_posix_remove=no
24952fi
ac1cb8d3
VS
24953rm -f conftest.err conftest.$ac_objext \
24954 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24955LIBS=$ac_check_lib_save_LIBS
24956fi
24957echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
24958echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
24959if test $ac_cv_lib_posix_remove = yes; then
24960 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24961fi
24962
24963 fi
24964
24965 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24966 echo "$as_me:$LINENO: checking for shmat" >&5
24967echo $ECHO_N "checking for shmat... $ECHO_C" >&6
24968if test "${ac_cv_func_shmat+set}" = set; then
24969 echo $ECHO_N "(cached) $ECHO_C" >&6
24970else
24971 cat >conftest.$ac_ext <<_ACEOF
24972/* confdefs.h. */
24973_ACEOF
24974cat confdefs.h >>conftest.$ac_ext
24975cat >>conftest.$ac_ext <<_ACEOF
24976/* end confdefs.h. */
ac1cb8d3
VS
24977/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
24978 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24979#define shmat innocuous_shmat
24980
a848cd7e
SC
24981/* System header to define __stub macros and hopefully few prototypes,
24982 which can conflict with char shmat (); below.
24983 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24984 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24985
a848cd7e
SC
24986#ifdef __STDC__
24987# include <limits.h>
24988#else
24989# include <assert.h>
24990#endif
ac1cb8d3
VS
24991
24992#undef shmat
24993
a848cd7e
SC
24994/* Override any gcc2 internal prototype to avoid an error. */
24995#ifdef __cplusplus
24996extern "C"
24997{
24998#endif
24999/* We use char because int might match the return type of a gcc2
25000 builtin and then its argument prototype would still apply. */
25001char shmat ();
25002/* The GNU C library defines this for functions which it implements
25003 to always fail with ENOSYS. Some functions are actually named
25004 something starting with __ and the normal name is an alias. */
25005#if defined (__stub_shmat) || defined (__stub___shmat)
25006choke me
25007#else
25008char (*f) () = shmat;
25009#endif
25010#ifdef __cplusplus
25011}
25012#endif
25013
25014int
25015main ()
25016{
25017return f != shmat;
25018 ;
25019 return 0;
25020}
25021_ACEOF
25022rm -f conftest.$ac_objext conftest$ac_exeext
25023if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25024 (eval $ac_link) 2>conftest.er1
a848cd7e 25025 ac_status=$?
ac1cb8d3
VS
25026 grep -v '^ *+' conftest.er1 >conftest.err
25027 rm -f conftest.er1
25028 cat conftest.err >&5
a848cd7e
SC
25029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25030 (exit $ac_status); } &&
ea7db9ff
DE
25031 { ac_try='test -z "$ac_c_werror_flag"
25032 || test ! -s conftest.err'
ac1cb8d3
VS
25033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25034 (eval $ac_try) 2>&5
25035 ac_status=$?
25036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25037 (exit $ac_status); }; } &&
25038 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25040 (eval $ac_try) 2>&5
25041 ac_status=$?
25042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25043 (exit $ac_status); }; }; then
25044 ac_cv_func_shmat=yes
25045else
25046 echo "$as_me: failed program was:" >&5
25047sed 's/^/| /' conftest.$ac_ext >&5
25048
25049ac_cv_func_shmat=no
25050fi
ac1cb8d3
VS
25051rm -f conftest.err conftest.$ac_objext \
25052 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25053fi
25054echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
25055echo "${ECHO_T}$ac_cv_func_shmat" >&6
25056
25057 if test $ac_cv_func_shmat = no; then
25058 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
25059echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
25060if test "${ac_cv_lib_ipc_shmat+set}" = set; then
25061 echo $ECHO_N "(cached) $ECHO_C" >&6
25062else
25063 ac_check_lib_save_LIBS=$LIBS
25064LIBS="-lipc $LIBS"
25065cat >conftest.$ac_ext <<_ACEOF
25066/* confdefs.h. */
25067_ACEOF
25068cat confdefs.h >>conftest.$ac_ext
25069cat >>conftest.$ac_ext <<_ACEOF
25070/* end confdefs.h. */
25071
25072/* Override any gcc2 internal prototype to avoid an error. */
25073#ifdef __cplusplus
25074extern "C"
25075#endif
25076/* We use char because int might match the return type of a gcc2
25077 builtin and then its argument prototype would still apply. */
25078char shmat ();
25079int
25080main ()
25081{
25082shmat ();
25083 ;
25084 return 0;
25085}
25086_ACEOF
25087rm -f conftest.$ac_objext conftest$ac_exeext
25088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25089 (eval $ac_link) 2>conftest.er1
a848cd7e 25090 ac_status=$?
ac1cb8d3
VS
25091 grep -v '^ *+' conftest.er1 >conftest.err
25092 rm -f conftest.er1
25093 cat conftest.err >&5
a848cd7e
SC
25094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25095 (exit $ac_status); } &&
ea7db9ff
DE
25096 { ac_try='test -z "$ac_c_werror_flag"
25097 || test ! -s conftest.err'
ac1cb8d3
VS
25098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25099 (eval $ac_try) 2>&5
25100 ac_status=$?
25101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25102 (exit $ac_status); }; } &&
25103 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25105 (eval $ac_try) 2>&5
25106 ac_status=$?
25107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25108 (exit $ac_status); }; }; then
25109 ac_cv_lib_ipc_shmat=yes
25110else
25111 echo "$as_me: failed program was:" >&5
25112sed 's/^/| /' conftest.$ac_ext >&5
25113
25114ac_cv_lib_ipc_shmat=no
25115fi
ac1cb8d3
VS
25116rm -f conftest.err conftest.$ac_objext \
25117 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25118LIBS=$ac_check_lib_save_LIBS
25119fi
25120echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
25121echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
25122if test $ac_cv_lib_ipc_shmat = yes; then
25123 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25124fi
25125
25126 fi
25127 fi
25128
25129 # Check for libraries that X11R6 Xt/Xaw programs need.
25130 ac_save_LDFLAGS=$LDFLAGS
25131 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25132 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25133 # check for ICE first), but we must link in the order -lSM -lICE or
25134 # we get undefined symbols. So assume we have SM if we have ICE.
25135 # These have to be linked with before -lX11, unlike the other
25136 # libraries we check for below, so use a different variable.
25137 # John Interrante, Karl Berry
25138 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
25139echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
25140if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
25141 echo $ECHO_N "(cached) $ECHO_C" >&6
25142else
25143 ac_check_lib_save_LIBS=$LIBS
25144LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25145cat >conftest.$ac_ext <<_ACEOF
25146/* confdefs.h. */
25147_ACEOF
25148cat confdefs.h >>conftest.$ac_ext
25149cat >>conftest.$ac_ext <<_ACEOF
25150/* end confdefs.h. */
25151
25152/* Override any gcc2 internal prototype to avoid an error. */
25153#ifdef __cplusplus
25154extern "C"
25155#endif
25156/* We use char because int might match the return type of a gcc2
25157 builtin and then its argument prototype would still apply. */
25158char IceConnectionNumber ();
25159int
25160main ()
25161{
25162IceConnectionNumber ();
25163 ;
25164 return 0;
25165}
25166_ACEOF
25167rm -f conftest.$ac_objext conftest$ac_exeext
25168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25169 (eval $ac_link) 2>conftest.er1
a848cd7e 25170 ac_status=$?
ac1cb8d3
VS
25171 grep -v '^ *+' conftest.er1 >conftest.err
25172 rm -f conftest.er1
25173 cat conftest.err >&5
a848cd7e
SC
25174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25175 (exit $ac_status); } &&
ea7db9ff
DE
25176 { ac_try='test -z "$ac_c_werror_flag"
25177 || test ! -s conftest.err'
ac1cb8d3
VS
25178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25179 (eval $ac_try) 2>&5
25180 ac_status=$?
25181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25182 (exit $ac_status); }; } &&
25183 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25185 (eval $ac_try) 2>&5
25186 ac_status=$?
25187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25188 (exit $ac_status); }; }; then
25189 ac_cv_lib_ICE_IceConnectionNumber=yes
25190else
25191 echo "$as_me: failed program was:" >&5
25192sed 's/^/| /' conftest.$ac_ext >&5
25193
25194ac_cv_lib_ICE_IceConnectionNumber=no
25195fi
ac1cb8d3
VS
25196rm -f conftest.err conftest.$ac_objext \
25197 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25198LIBS=$ac_check_lib_save_LIBS
25199fi
25200echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25201echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
25202if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
25203 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25204fi
25205
25206 LDFLAGS=$ac_save_LDFLAGS
25207
25208fi
25209
25210
25211 if test "$no_x" = "yes"; then
25212 { { echo "$as_me:$LINENO: error: X11 not found" >&5
25213echo "$as_me: error: X11 not found" >&2;}
25214 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
25215 fi
25216
74b84332
VS
25217 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
25218 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
25219 AFMINSTALL=afminstall
25220 COMPILED_X_PROGRAM=0
25221
74b84332
VS
25222 fi
25223
25224 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
25225 if test "$wxUSE_NANOX" = "yes"; then
25226 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
25227echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
25228 if test "x$MICROWIN" = x ; then
25229 echo "$as_me:$LINENO: result: not found" >&5
25230echo "${ECHO_T}not found" >&6
25231 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
25232echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
25233 { (exit 1); exit 1; }; }
25234 else
25235 echo "$as_me:$LINENO: result: $MICROWIN" >&5
25236echo "${ECHO_T}$MICROWIN" >&6
25237 cat >>confdefs.h <<\_ACEOF
25238#define wxUSE_NANOX 1
25239_ACEOF
25240
25241 fi
25242 fi
25243
25244 if test "$wxUSE_UNICODE" = "yes"; then
25245
25246 succeeded=no
25247
25248 if test -z "$PKG_CONFIG"; then
25249 # Extract the first word of "pkg-config", so it can be a program name with args.
25250set dummy pkg-config; ac_word=$2
25251echo "$as_me:$LINENO: checking for $ac_word" >&5
25252echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25253if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25254 echo $ECHO_N "(cached) $ECHO_C" >&6
25255else
25256 case $PKG_CONFIG in
25257 [\\/]* | ?:[\\/]*)
25258 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25259 ;;
25260 *)
25261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25262for as_dir in $PATH
25263do
25264 IFS=$as_save_IFS
25265 test -z "$as_dir" && as_dir=.
25266 for ac_exec_ext in '' $ac_executable_extensions; do
25267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25268 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25270 break 2
25271 fi
25272done
25273done
25274
25275 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25276 ;;
25277esac
25278fi
25279PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25280
25281if test -n "$PKG_CONFIG"; then
25282 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25283echo "${ECHO_T}$PKG_CONFIG" >&6
25284else
25285 echo "$as_me:$LINENO: result: no" >&5
25286echo "${ECHO_T}no" >&6
25287fi
25288
25289 fi
25290
25291 if test "$PKG_CONFIG" = "no" ; then
25292 echo "*** The pkg-config script could not be found. Make sure it is"
25293 echo "*** in your path, or set the PKG_CONFIG environment variable"
25294 echo "*** to the full path to pkg-config."
25295 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25296 else
25297 PKG_CONFIG_MIN_VERSION=0.9.0
25298 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25299 echo "$as_me:$LINENO: checking for pangox" >&5
25300echo $ECHO_N "checking for pangox... $ECHO_C" >&6
25301
25302 if $PKG_CONFIG --exists "pangox" ; then
25303 echo "$as_me:$LINENO: result: yes" >&5
25304echo "${ECHO_T}yes" >&6
25305 succeeded=yes
25306
25307 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
25308echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
25309 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
25310 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
25311echo "${ECHO_T}$PANGOX_CFLAGS" >&6
25312
25313 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
25314echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
25315 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
25316 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
25317echo "${ECHO_T}$PANGOX_LIBS" >&6
25318 else
25319 PANGOX_CFLAGS=""
25320 PANGOX_LIBS=""
25321 ## If we have a custom action on failure, don't print errors, but
25322 ## do set a variable so people can do so.
25323 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
25324
25325 fi
25326
25327
25328
25329 else
25330 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25331 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25332 fi
25333 fi
25334
25335 if test $succeeded = yes; then
25336
25337 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
25338 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
25339
25340 else
25341
25342 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
25343echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
25344 { (exit 1); exit 1; }; }
25345
25346
25347 fi
25348
25349
25350 succeeded=no
25351
25352 if test -z "$PKG_CONFIG"; then
25353 # Extract the first word of "pkg-config", so it can be a program name with args.
25354set dummy pkg-config; ac_word=$2
25355echo "$as_me:$LINENO: checking for $ac_word" >&5
25356echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25357if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25358 echo $ECHO_N "(cached) $ECHO_C" >&6
25359else
25360 case $PKG_CONFIG in
25361 [\\/]* | ?:[\\/]*)
25362 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25363 ;;
25364 *)
25365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25366for as_dir in $PATH
25367do
25368 IFS=$as_save_IFS
25369 test -z "$as_dir" && as_dir=.
25370 for ac_exec_ext in '' $ac_executable_extensions; do
25371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25372 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25374 break 2
25375 fi
25376done
25377done
25378
25379 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25380 ;;
25381esac
25382fi
25383PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25384
25385if test -n "$PKG_CONFIG"; then
25386 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25387echo "${ECHO_T}$PKG_CONFIG" >&6
25388else
25389 echo "$as_me:$LINENO: result: no" >&5
25390echo "${ECHO_T}no" >&6
25391fi
25392
25393 fi
25394
25395 if test "$PKG_CONFIG" = "no" ; then
25396 echo "*** The pkg-config script could not be found. Make sure it is"
25397 echo "*** in your path, or set the PKG_CONFIG environment variable"
25398 echo "*** to the full path to pkg-config."
25399 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25400 else
25401 PKG_CONFIG_MIN_VERSION=0.9.0
25402 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25403 echo "$as_me:$LINENO: checking for pangoft2" >&5
25404echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
25405
25406 if $PKG_CONFIG --exists "pangoft2" ; then
25407 echo "$as_me:$LINENO: result: yes" >&5
25408echo "${ECHO_T}yes" >&6
25409 succeeded=yes
25410
25411 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
25412echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
25413 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
25414 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
25415echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
25416
25417 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
25418echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
25419 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
25420 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
25421echo "${ECHO_T}$PANGOFT2_LIBS" >&6
25422 else
25423 PANGOFT2_CFLAGS=""
25424 PANGOFT2_LIBS=""
25425 ## If we have a custom action on failure, don't print errors, but
25426 ## do set a variable so people can do so.
25427 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
25428
25429 fi
25430
25431
25432
25433 else
25434 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25435 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25436 fi
25437 fi
25438
25439 if test $succeeded = yes; then
25440
25441 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
25442 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
25443
25444 else
25445
25446 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
25447echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
25448 wxUSE_PRINTING_ARCHITECTURE="no"
25449
25450
25451 fi
25452
25453
25454 succeeded=no
25455
25456 if test -z "$PKG_CONFIG"; then
25457 # Extract the first word of "pkg-config", so it can be a program name with args.
25458set dummy pkg-config; ac_word=$2
25459echo "$as_me:$LINENO: checking for $ac_word" >&5
25460echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25461if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25462 echo $ECHO_N "(cached) $ECHO_C" >&6
25463else
25464 case $PKG_CONFIG in
25465 [\\/]* | ?:[\\/]*)
25466 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25467 ;;
25468 *)
25469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25470for as_dir in $PATH
25471do
25472 IFS=$as_save_IFS
25473 test -z "$as_dir" && as_dir=.
25474 for ac_exec_ext in '' $ac_executable_extensions; do
25475 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25476 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25478 break 2
25479 fi
25480done
25481done
25482
25483 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25484 ;;
25485esac
25486fi
25487PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25488
25489if test -n "$PKG_CONFIG"; then
25490 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25491echo "${ECHO_T}$PKG_CONFIG" >&6
25492else
25493 echo "$as_me:$LINENO: result: no" >&5
25494echo "${ECHO_T}no" >&6
25495fi
25496
25497 fi
25498
25499 if test "$PKG_CONFIG" = "no" ; then
25500 echo "*** The pkg-config script could not be found. Make sure it is"
25501 echo "*** in your path, or set the PKG_CONFIG environment variable"
25502 echo "*** to the full path to pkg-config."
25503 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25504 else
25505 PKG_CONFIG_MIN_VERSION=0.9.0
25506 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25507 echo "$as_me:$LINENO: checking for pangoxft" >&5
25508echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
25509
25510 if $PKG_CONFIG --exists "pangoxft" ; then
25511 echo "$as_me:$LINENO: result: yes" >&5
25512echo "${ECHO_T}yes" >&6
25513 succeeded=yes
25514
25515 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
25516echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
25517 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
25518 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
25519echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
25520
25521 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
25522echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
25523 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
25524 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
25525echo "${ECHO_T}$PANGOXFT_LIBS" >&6
25526 else
25527 PANGOXFT_CFLAGS=""
25528 PANGOXFT_LIBS=""
25529 ## If we have a custom action on failure, don't print errors, but
25530 ## do set a variable so people can do so.
25531 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
25532
25533 fi
25534
25535
25536
25537 else
25538 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25539 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25540 fi
25541 fi
25542
25543 if test $succeeded = yes; then
25544
25545 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
25546 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
25547
25548 else
25549
25550 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
25551echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
25552
25553
25554 fi
25555
304205f1
VS
25556 save_CFLAGS="$CFLAGS"
25557 save_LIBS="$LIBS"
25558 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
25559 LIBS="$LIBS $PANGOX_LIBS"
25560
25561for ac_func in pango_font_family_is_monospace
25562do
25563as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25564echo "$as_me:$LINENO: checking for $ac_func" >&5
25565echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25566if eval "test \"\${$as_ac_var+set}\" = set"; then
25567 echo $ECHO_N "(cached) $ECHO_C" >&6
25568else
25569 cat >conftest.$ac_ext <<_ACEOF
25570/* confdefs.h. */
25571_ACEOF
25572cat confdefs.h >>conftest.$ac_ext
25573cat >>conftest.$ac_ext <<_ACEOF
25574/* end confdefs.h. */
25575/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25576 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25577#define $ac_func innocuous_$ac_func
25578
25579/* System header to define __stub macros and hopefully few prototypes,
25580 which can conflict with char $ac_func (); below.
25581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25582 <limits.h> exists even on freestanding compilers. */
25583
25584#ifdef __STDC__
25585# include <limits.h>
25586#else
25587# include <assert.h>
25588#endif
25589
25590#undef $ac_func
25591
25592/* Override any gcc2 internal prototype to avoid an error. */
25593#ifdef __cplusplus
25594extern "C"
25595{
25596#endif
25597/* We use char because int might match the return type of a gcc2
25598 builtin and then its argument prototype would still apply. */
25599char $ac_func ();
25600/* The GNU C library defines this for functions which it implements
25601 to always fail with ENOSYS. Some functions are actually named
25602 something starting with __ and the normal name is an alias. */
25603#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25604choke me
25605#else
25606char (*f) () = $ac_func;
25607#endif
25608#ifdef __cplusplus
25609}
25610#endif
25611
25612int
25613main ()
25614{
25615return f != $ac_func;
25616 ;
25617 return 0;
25618}
25619_ACEOF
25620rm -f conftest.$ac_objext conftest$ac_exeext
25621if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25622 (eval $ac_link) 2>conftest.er1
25623 ac_status=$?
25624 grep -v '^ *+' conftest.er1 >conftest.err
25625 rm -f conftest.er1
25626 cat conftest.err >&5
25627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25628 (exit $ac_status); } &&
ea7db9ff
DE
25629 { ac_try='test -z "$ac_c_werror_flag"
25630 || test ! -s conftest.err'
304205f1
VS
25631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25632 (eval $ac_try) 2>&5
25633 ac_status=$?
25634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25635 (exit $ac_status); }; } &&
25636 { ac_try='test -s conftest$ac_exeext'
25637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25638 (eval $ac_try) 2>&5
25639 ac_status=$?
25640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25641 (exit $ac_status); }; }; then
25642 eval "$as_ac_var=yes"
25643else
25644 echo "$as_me: failed program was:" >&5
25645sed 's/^/| /' conftest.$ac_ext >&5
25646
25647eval "$as_ac_var=no"
25648fi
25649rm -f conftest.err conftest.$ac_objext \
25650 conftest$ac_exeext conftest.$ac_ext
25651fi
25652echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25653echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25654if test `eval echo '${'$as_ac_var'}'` = yes; then
25655 cat >>confdefs.h <<_ACEOF
25656#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25657_ACEOF
25658
25659fi
25660done
25661
25662 CFLAGS="$save_CFLAGS"
25663 LIBS="$save_LIBS"
a848cd7e
SC
25664 fi
25665
25666 wxUSE_UNIVERSAL="yes"
25667
25668 if test "$wxUSE_NANOX" = "yes"; then
25669 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
25670 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"
25671 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
25672 else
25673 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
25674 fi
25675
25676 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
25677 TOOLKIT=X11
25678 GUIDIST=X11_DIST
25679 fi
25680
25681 if test "$wxUSE_MOTIF" = 1; then
74b84332
VS
25682 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
25683echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 25684
74b84332
VS
25685ac_find_includes=
25686for ac_dir in $SEARCH_INCLUDE /usr/include;
25687 do
25688 if test -f "$ac_dir/Xm/Xm.h"; then
25689 ac_find_includes=$ac_dir
25690 break
25691 fi
25692 done
a848cd7e 25693
74b84332
VS
25694 if test "$ac_find_includes" != "" ; then
25695 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
25696echo "${ECHO_T}found in $ac_find_includes" >&6
25697
25698 if test "x$ac_find_includes" = "x/usr/include"; then
25699 ac_path_to_include=""
25700 else
25701 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
25702 result=$?
25703 if test $result = 0; then
25704 ac_path_to_include=""
25705 else
25706 ac_path_to_include=" -I$ac_find_includes"
25707 fi
a848cd7e
SC
25708 fi
25709
74b84332
VS
25710 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
25711 else
25712 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
25713/* confdefs.h. */
25714_ACEOF
25715cat confdefs.h >>conftest.$ac_ext
25716cat >>conftest.$ac_ext <<_ACEOF
25717/* end confdefs.h. */
25718
74b84332
VS
25719 #include <Xm/Xm.h>
25720
a848cd7e
SC
25721int
25722main ()
25723{
25724
74b84332
VS
25725 int version;
25726 version = xmUseVersion;
25727
a848cd7e
SC
25728 ;
25729 return 0;
25730}
25731_ACEOF
74b84332
VS
25732rm -f conftest.$ac_objext
25733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25734 (eval $ac_compile) 2>conftest.er1
a848cd7e 25735 ac_status=$?
ac1cb8d3
VS
25736 grep -v '^ *+' conftest.er1 >conftest.err
25737 rm -f conftest.er1
25738 cat conftest.err >&5
a848cd7e
SC
25739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25740 (exit $ac_status); } &&
ea7db9ff
DE
25741 { ac_try='test -z "$ac_c_werror_flag"
25742 || test ! -s conftest.err'
ac1cb8d3
VS
25743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25744 (eval $ac_try) 2>&5
25745 ac_status=$?
25746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25747 (exit $ac_status); }; } &&
74b84332 25748 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25750 (eval $ac_try) 2>&5
25751 ac_status=$?
25752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25753 (exit $ac_status); }; }; then
74b84332
VS
25754
25755 echo "$as_me:$LINENO: result: found in default search path" >&5
25756echo "${ECHO_T}found in default search path" >&6
25757 COMPILED_X_PROGRAM=1
25758
a848cd7e
SC
25759else
25760 echo "$as_me: failed program was:" >&5
25761sed 's/^/| /' conftest.$ac_ext >&5
25762
a848cd7e 25763
74b84332
VS
25764 echo "$as_me:$LINENO: result: no" >&5
25765echo "${ECHO_T}no" >&6
25766 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
25767echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
25768 { (exit 1); exit 1; }; }
a848cd7e 25769
a848cd7e 25770
a848cd7e 25771fi
74b84332
VS
25772rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25773 fi
25774
25775 if test "$COMPILED_X_PROGRAM" = 0; then
25776 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
25777echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
25778
25779ac_find_libraries=
25780for ac_dir in $SEARCH_LIB /usr/lib;
25781 do
25782 for ac_extension in a so sl dylib; do
25783 if test -f "$ac_dir/libXm.$ac_extension"; then
25784 ac_find_libraries=$ac_dir
25785 break 2
a848cd7e 25786 fi
74b84332
VS
25787 done
25788 done
a848cd7e 25789
74b84332
VS
25790 if test "$ac_find_libraries" != "" ; then
25791 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
25792echo "${ECHO_T}found at $ac_find_libraries" >&6
a848cd7e 25793
74b84332
VS
25794
25795 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
25796 result=$?
25797 if test $result = 0; then
25798 ac_path_to_link=""
a848cd7e 25799 else
74b84332
VS
25800 ac_path_to_link=" -L$ac_find_libraries"
25801 fi
25802
25803 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
25804 else
25805 save_CFLAGS=$CFLAGS
25806 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25807
25808 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
25809/* confdefs.h. */
25810_ACEOF
25811cat confdefs.h >>conftest.$ac_ext
25812cat >>conftest.$ac_ext <<_ACEOF
25813/* end confdefs.h. */
25814
74b84332
VS
25815 #include <Xm/Xm.h>
25816
a848cd7e
SC
25817int
25818main ()
25819{
74b84332
VS
25820
25821 int version;
25822 version = xmUseVersion;
25823
a848cd7e
SC
25824 ;
25825 return 0;
25826}
25827_ACEOF
74b84332
VS
25828rm -f conftest.$ac_objext
25829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25830 (eval $ac_compile) 2>conftest.er1
a848cd7e 25831 ac_status=$?
ac1cb8d3
VS
25832 grep -v '^ *+' conftest.er1 >conftest.err
25833 rm -f conftest.er1
25834 cat conftest.err >&5
a848cd7e
SC
25835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25836 (exit $ac_status); } &&
ea7db9ff
DE
25837 { ac_try='test -z "$ac_c_werror_flag"
25838 || test ! -s conftest.err'
ac1cb8d3
VS
25839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25840 (eval $ac_try) 2>&5
25841 ac_status=$?
25842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25843 (exit $ac_status); }; } &&
74b84332 25844 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25846 (eval $ac_try) 2>&5
25847 ac_status=$?
25848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25849 (exit $ac_status); }; }; then
74b84332
VS
25850
25851 echo "$as_me:$LINENO: result: found in default search path" >&5
25852echo "${ECHO_T}found in default search path" >&6
25853 COMPILED_X_PROGRAM=1
25854
a848cd7e
SC
25855else
25856 echo "$as_me: failed program was:" >&5
25857sed 's/^/| /' conftest.$ac_ext >&5
25858
74b84332
VS
25859
25860 echo "$as_me:$LINENO: result: no" >&5
25861echo "${ECHO_T}no" >&6
25862 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
25863echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
25864 { (exit 1); exit 1; }; }
25865
25866
25867fi
25868rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25869
25870 CFLAGS=$save_CFLAGS
25871 fi
25872 fi
25873
25874 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
25875echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
25876 libp_link=""
25877 libsm_ice_link=""
25878 libs_found=0
25879 for libp in "" " -lXp"; do
25880 if test "$libs_found" = "0"; then
25881 for libsm_ice in "" " -lSM -lICE"; do
25882 if test "$libs_found" = "0"; then
25883 save_LIBS="$LIBS"
25884 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
25885 save_CFLAGS=$CFLAGS
25886 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25887
25888 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
25889/* confdefs.h. */
25890_ACEOF
25891cat confdefs.h >>conftest.$ac_ext
25892cat >>conftest.$ac_ext <<_ACEOF
25893/* end confdefs.h. */
25894
74b84332
VS
25895 #include <Xm/Xm.h>
25896 #include <Xm/List.h>
25897
a848cd7e
SC
25898int
25899main ()
25900{
74b84332
VS
25901
25902 XmString string = NULL;
25903 Widget w = NULL;
25904 int position = 0;
25905 XmListAddItem(w, string, position);
25906
a848cd7e
SC
25907 ;
25908 return 0;
25909}
25910_ACEOF
25911rm -f conftest.$ac_objext conftest$ac_exeext
25912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25913 (eval $ac_link) 2>conftest.er1
a848cd7e 25914 ac_status=$?
ac1cb8d3
VS
25915 grep -v '^ *+' conftest.er1 >conftest.err
25916 rm -f conftest.er1
25917 cat conftest.err >&5
a848cd7e
SC
25918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25919 (exit $ac_status); } &&
ea7db9ff
DE
25920 { ac_try='test -z "$ac_c_werror_flag"
25921 || test ! -s conftest.err'
ac1cb8d3
VS
25922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25923 (eval $ac_try) 2>&5
25924 ac_status=$?
25925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25926 (exit $ac_status); }; } &&
25927 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25929 (eval $ac_try) 2>&5
25930 ac_status=$?
25931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25932 (exit $ac_status); }; }; then
25933
25934 libp_link="$libp"
25935 libsm_ice_link="$libsm_ice"
25936 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
25937echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
25938 libs_found=1
25939
25940else
25941 echo "$as_me: failed program was:" >&5
25942sed 's/^/| /' conftest.$ac_ext >&5
25943
25944
25945
25946fi
ac1cb8d3
VS
25947rm -f conftest.err conftest.$ac_objext \
25948 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25949
25950 LIBS="$save_LIBS"
25951 CFLAGS=$save_CFLAGS
25952 fi
25953 done
25954 fi
25955 done
25956
25957 if test "$libs_found" = "0"; then
25958 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
25959echo "${ECHO_T}can't find the right libraries" >&6
25960 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
25961echo "$as_me: error: can't link a simple motif program" >&2;}
25962 { (exit 1); exit 1; }; }
25963 fi
25964
25965 save_CFLAGS=$CFLAGS
25966 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25967 echo "$as_me:$LINENO: checking for Motif 2" >&5
25968echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
25969 cat >conftest.$ac_ext <<_ACEOF
25970/* confdefs.h. */
25971_ACEOF
25972cat confdefs.h >>conftest.$ac_ext
25973cat >>conftest.$ac_ext <<_ACEOF
25974/* end confdefs.h. */
25975
25976 #include <Xm/Xm.h>
25977
25978int
25979main ()
25980{
25981
25982 #if XmVersion < 2000
25983 #error "Not Motif 2"
25984 #endif
25985
25986 ;
25987 return 0;
25988}
25989_ACEOF
25990rm -f conftest.$ac_objext
25991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25992 (eval $ac_compile) 2>conftest.er1
a848cd7e 25993 ac_status=$?
ac1cb8d3
VS
25994 grep -v '^ *+' conftest.er1 >conftest.err
25995 rm -f conftest.er1
25996 cat conftest.err >&5
a848cd7e
SC
25997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25998 (exit $ac_status); } &&
ea7db9ff
DE
25999 { ac_try='test -z "$ac_c_werror_flag"
26000 || test ! -s conftest.err'
ac1cb8d3
VS
26001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26002 (eval $ac_try) 2>&5
26003 ac_status=$?
26004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26005 (exit $ac_status); }; } &&
26006 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26008 (eval $ac_try) 2>&5
26009 ac_status=$?
26010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26011 (exit $ac_status); }; }; then
26012
26013 cat >>confdefs.h <<\_ACEOF
26014#define __WXMOTIF20__ 1
26015_ACEOF
26016
26017 echo "$as_me:$LINENO: result: found" >&5
26018echo "${ECHO_T}found" >&6
26019
26020else
26021 echo "$as_me: failed program was:" >&5
26022sed 's/^/| /' conftest.$ac_ext >&5
26023
26024
26025 cat >>confdefs.h <<\_ACEOF
26026#define __WXMOTIF20__ 0
26027_ACEOF
26028
26029 echo "$as_me:$LINENO: result: not found" >&5
26030echo "${ECHO_T}not found" >&6
26031
26032fi
ac1cb8d3 26033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26034 CFLAGS=$save_CFLAGS
26035
26036 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
26037 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
26038 TOOLKIT=MOTIF
26039 GUIDIST=MOTIF_DIST
26040 fi
26041
74b84332 26042 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
26043 if test "$wxUSE_LIBXPM" = "sys"; then
26044 echo "$as_me:$LINENO: checking for Xpm library" >&5
26045echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
26046
26047ac_find_libraries=
26048for ac_dir in $SEARCH_LIB /usr/lib;
26049 do
26050 for ac_extension in a so sl dylib; do
26051 if test -f "$ac_dir/libXpm.$ac_extension"; then
26052 ac_find_libraries=$ac_dir
26053 break 2
26054 fi
26055 done
26056 done
26057
26058 if test "$ac_find_libraries" != "" ; then
26059
26060 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26061 result=$?
26062 if test $result = 0; then
26063 ac_path_to_link=""
26064 else
26065 ac_path_to_link=" -L$ac_find_libraries"
26066 fi
26067
26068 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26069 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26070echo "${ECHO_T}found at $ac_find_libraries" >&6
26071
26072 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
26073echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
26074if test "${wx_cv_x11_xpm_h+set}" = set; then
26075 echo $ECHO_N "(cached) $ECHO_C" >&6
26076else
26077
26078 save_CFLAGS=$CFLAGS
26079 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26080
26081 cat >conftest.$ac_ext <<_ACEOF
26082/* confdefs.h. */
26083_ACEOF
26084cat confdefs.h >>conftest.$ac_ext
26085cat >>conftest.$ac_ext <<_ACEOF
26086/* end confdefs.h. */
26087
26088 #include <X11/xpm.h>
26089
26090int
26091main ()
26092{
26093
26094 int version;
26095 version = XpmLibraryVersion();
26096
26097 ;
26098 return 0;
26099}
26100_ACEOF
26101rm -f conftest.$ac_objext
26102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26103 (eval $ac_compile) 2>conftest.er1
a848cd7e 26104 ac_status=$?
ac1cb8d3
VS
26105 grep -v '^ *+' conftest.er1 >conftest.err
26106 rm -f conftest.er1
26107 cat conftest.err >&5
a848cd7e
SC
26108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26109 (exit $ac_status); } &&
ea7db9ff
DE
26110 { ac_try='test -z "$ac_c_werror_flag"
26111 || test ! -s conftest.err'
ac1cb8d3
VS
26112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26113 (eval $ac_try) 2>&5
26114 ac_status=$?
26115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26116 (exit $ac_status); }; } &&
26117 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26119 (eval $ac_try) 2>&5
26120 ac_status=$?
26121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26122 (exit $ac_status); }; }; then
26123 wx_cv_x11_xpm_h=yes
26124else
26125 echo "$as_me: failed program was:" >&5
26126sed 's/^/| /' conftest.$ac_ext >&5
26127
26128wx_cv_x11_xpm_h=no
26129
26130fi
ac1cb8d3 26131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26132
26133 CFLAGS=$save_CFLAGS
26134
26135
26136fi
26137echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
26138echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
26139
26140 if test $wx_cv_x11_xpm_h = "yes"; then
26141 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
26142 cat >>confdefs.h <<\_ACEOF
26143#define wxHAVE_LIB_XPM 1
26144_ACEOF
26145
26146 else
26147 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
26148echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
26149 fi
26150 fi
26151
26152 fi
26153
26154 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
26155echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
26156if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
26157 echo $ECHO_N "(cached) $ECHO_C" >&6
26158else
26159 ac_check_lib_save_LIBS=$LIBS
26160LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
26161cat >conftest.$ac_ext <<_ACEOF
26162/* confdefs.h. */
26163_ACEOF
26164cat confdefs.h >>conftest.$ac_ext
26165cat >>conftest.$ac_ext <<_ACEOF
26166/* end confdefs.h. */
26167
26168/* Override any gcc2 internal prototype to avoid an error. */
26169#ifdef __cplusplus
26170extern "C"
26171#endif
26172/* We use char because int might match the return type of a gcc2
26173 builtin and then its argument prototype would still apply. */
26174char XShapeQueryExtension ();
26175int
26176main ()
26177{
26178XShapeQueryExtension ();
26179 ;
26180 return 0;
26181}
26182_ACEOF
26183rm -f conftest.$ac_objext conftest$ac_exeext
26184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26185 (eval $ac_link) 2>conftest.er1
a848cd7e 26186 ac_status=$?
ac1cb8d3
VS
26187 grep -v '^ *+' conftest.er1 >conftest.err
26188 rm -f conftest.er1
26189 cat conftest.err >&5
a848cd7e
SC
26190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26191 (exit $ac_status); } &&
ea7db9ff
DE
26192 { ac_try='test -z "$ac_c_werror_flag"
26193 || test ! -s conftest.err'
ac1cb8d3
VS
26194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26195 (eval $ac_try) 2>&5
26196 ac_status=$?
26197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26198 (exit $ac_status); }; } &&
26199 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26201 (eval $ac_try) 2>&5
26202 ac_status=$?
26203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26204 (exit $ac_status); }; }; then
26205 ac_cv_lib_Xext_XShapeQueryExtension=yes
26206else
26207 echo "$as_me: failed program was:" >&5
26208sed 's/^/| /' conftest.$ac_ext >&5
26209
26210ac_cv_lib_Xext_XShapeQueryExtension=no
26211fi
ac1cb8d3
VS
26212rm -f conftest.err conftest.$ac_objext \
26213 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26214LIBS=$ac_check_lib_save_LIBS
26215fi
26216echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
26217echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
26218if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
26219
26220 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
26221 wxHAVE_XEXT_LIB=1
26222
26223fi
26224
26225
26226 if test "$wxHAVE_XEXT_LIB" = 1; then
26227 save_CFLAGS="$CFLAGS"
26228 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26229
26230 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
26231echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
26232 cat >conftest.$ac_ext <<_ACEOF
26233/* confdefs.h. */
26234_ACEOF
26235cat confdefs.h >>conftest.$ac_ext
26236cat >>conftest.$ac_ext <<_ACEOF
26237/* end confdefs.h. */
26238
26239 #include <X11/Xlib.h>
26240 #include <X11/extensions/shape.h>
26241
26242int
26243main ()
26244{
26245
26246 int dummy1, dummy2;
26247 XShapeQueryExtension((Display*)NULL,
26248 (int*)NULL, (int*)NULL);
26249
26250 ;
26251 return 0;
26252}
26253_ACEOF
26254rm -f conftest.$ac_objext
26255if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26256 (eval $ac_compile) 2>conftest.er1
a848cd7e 26257 ac_status=$?
ac1cb8d3
VS
26258 grep -v '^ *+' conftest.er1 >conftest.err
26259 rm -f conftest.er1
26260 cat conftest.err >&5
a848cd7e
SC
26261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26262 (exit $ac_status); } &&
ea7db9ff
DE
26263 { ac_try='test -z "$ac_c_werror_flag"
26264 || test ! -s conftest.err'
ac1cb8d3
VS
26265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26266 (eval $ac_try) 2>&5
26267 ac_status=$?
26268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26269 (exit $ac_status); }; } &&
26270 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26272 (eval $ac_try) 2>&5
26273 ac_status=$?
26274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26275 (exit $ac_status); }; }; then
26276
26277 cat >>confdefs.h <<\_ACEOF
26278#define HAVE_XSHAPE 1
26279_ACEOF
26280
26281 echo "$as_me:$LINENO: result: found" >&5
26282echo "${ECHO_T}found" >&6
26283
26284else
26285 echo "$as_me: failed program was:" >&5
26286sed 's/^/| /' conftest.$ac_ext >&5
26287
26288
26289 echo "$as_me:$LINENO: result: not found" >&5
26290echo "${ECHO_T}not found" >&6
26291
26292fi
ac1cb8d3 26293rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26294 CFLAGS="$save_CFLAGS"
26295
26296 fi
26297 fi
26298
26299 if test "$wxUSE_MAC" = 1; then
26300 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
26301echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
26302 if test "$GCC" = yes; then
26303 echo "$as_me:$LINENO: result: gcc" >&5
26304echo "${ECHO_T}gcc" >&6
26305 CPPFLAGS_PASCAL="-fpascal-strings"
26306 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
26307 echo "$as_me:$LINENO: result: xlc" >&5
26308echo "${ECHO_T}xlc" >&6
26309 CPPFLAGS_PASCAL="-qmacpstr"
26310 else
26311 echo "$as_me:$LINENO: result: none" >&5
26312echo "${ECHO_T}none" >&6
26313 fi
26314
26315 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
26316
26317 TOOLKIT_VPATH="\${top_srcdir}/src/mac/carbon${PATH_IFS}\${top_srcdir}/src/mac/carbon/morefilex"
26318 TOOLKIT=MAC
26319 GUIDIST=MACX_DIST
26320 WXBASEPORT="_carbon"
26321 fi
26322
26323 if test "$wxUSE_COCOA" = 1; then
26324 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
26325 TOOLKIT=COCOA
26326 GUIDIST=COCOA_DIST
26327 fi
26328
26329 if test "$wxUSE_PM" = 1; then
26330 TOOLKIT=PM
de59c161
RD
26331 GUIDIST=PM_DIST
26332 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
26333echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
26334if test "${wx_cv_spbcdata+set}" = set; then
26335 echo $ECHO_N "(cached) $ECHO_C" >&6
26336else
26337
26338 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
26339/* confdefs.h. */
26340_ACEOF
26341cat confdefs.h >>conftest.$ac_ext
26342cat >>conftest.$ac_ext <<_ACEOF
26343/* end confdefs.h. */
26344
26345 #define INCL_PM
26346 #include <os2.h>
26347
26348int
26349main ()
26350{
26351
26352 SPBCDATA test;
26353
26354 ;
26355 return 0;
26356}
26357_ACEOF
26358rm -f conftest.$ac_objext
26359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26360 (eval $ac_compile) 2>conftest.er1
de59c161 26361 ac_status=$?
ac1cb8d3
VS
26362 grep -v '^ *+' conftest.er1 >conftest.err
26363 rm -f conftest.er1
26364 cat conftest.err >&5
de59c161
RD
26365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26366 (exit $ac_status); } &&
ea7db9ff
DE
26367 { ac_try='test -z "$ac_c_werror_flag"
26368 || test ! -s conftest.err'
ac1cb8d3
VS
26369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26370 (eval $ac_try) 2>&5
26371 ac_status=$?
26372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26373 (exit $ac_status); }; } &&
26374 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
26375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26376 (eval $ac_try) 2>&5
26377 ac_status=$?
26378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26379 (exit $ac_status); }; }; then
26380 wx_cv_spbcdata=yes
26381else
26382 echo "$as_me: failed program was:" >&5
26383sed 's/^/| /' conftest.$ac_ext >&5
26384
26385wx_cv_spbcdata=no
26386
26387fi
ac1cb8d3 26388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
26389
26390
26391fi
26392echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
26393echo "${ECHO_T}$wx_cv_spbcdata" >&6
26394
26395 if test $wx_cv_spbcdata = "yes"; then
26396 cat >>confdefs.h <<\_ACEOF
26397#define HAVE_SPBCDATA 1
26398_ACEOF
26399
26400 fi
a848cd7e
SC
26401 fi
26402
26403 if test "$TOOLKIT" = "PM" ; then
26404 TOOLKIT_DIR="os2"
26405 else
26406 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
26407 fi
26408
26409 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
26410
26411 if test "$wxUSE_UNIVERSAL" = "yes"; then
26412 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
26413
26414 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
26415 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
26416
26417 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
26418 if test "$wxUSE_X11" = 1; then
26419 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
26420 else
26421 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
26422 fi
26423 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
26424 WIDGET_SET=univ
26425 else
26426 ALL_OBJECTS="\$(GUIOBJS)"
26427 ALL_SOURCES="\$(ALL_SOURCES)"
26428 ALL_HEADERS="\$(ALL_HEADERS)"
26429 fi
26430
26431 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
26432
26433 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
26434 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
26435 fi
26436
26437 if test "$wxUSE_HTML" = "yes"; then
26438 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
26439 fi
26440
26441 if test "$wxUSE_LIBJPEG" = "builtin" ; then
26442 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
26443 fi
26444 if test "$wxUSE_LIBTIFF" = "builtin" ; then
26445 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
26446 fi
26447 if test "$wxUSE_LIBPNG" = "builtin" ; then
26448 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
26449 fi
26450
26451 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
26452 DISTDIR="wx\$(TOOLKIT)"
26453else
26454 USE_GUI=0
26455
26456 TOOLKIT_DIR="base"
26457
26458 if test "$USE_WIN32" = 1 ; then
26459 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
26460 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
26461
26462 TOOLKIT="MSW"
26463 else
26464 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
26465 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
26466 fi
26467
26468 ALL_SOURCES="\$(ALL_SOURCES)"
26469 ALL_HEADERS="\$(ALL_HEADERS)"
26470
26471 PORT_FILES="\${top_srcdir}/src/files.lst"
26472
26473 GUIDIST="BASE_DIST"
26474 DISTDIR="wxBase"
26475fi
26476
26477
26478
26479
26480IODBC_C_SRC=""
26481
26482
26483if test "$TOOLKIT" != "MSW" ; then
26484
26485 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
26486
26487 if test "${ac_cv_header_sql_h+set}" = set; then
26488 echo "$as_me:$LINENO: checking for sql.h" >&5
26489echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26490if test "${ac_cv_header_sql_h+set}" = set; then
26491 echo $ECHO_N "(cached) $ECHO_C" >&6
26492fi
26493echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26494echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26495else
26496 # Is the header compilable?
26497echo "$as_me:$LINENO: checking sql.h usability" >&5
26498echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
26499cat >conftest.$ac_ext <<_ACEOF
26500/* confdefs.h. */
26501_ACEOF
26502cat confdefs.h >>conftest.$ac_ext
26503cat >>conftest.$ac_ext <<_ACEOF
26504/* end confdefs.h. */
26505$ac_includes_default
26506#include <sql.h>
26507_ACEOF
26508rm -f conftest.$ac_objext
26509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26510 (eval $ac_compile) 2>conftest.er1
a848cd7e 26511 ac_status=$?
ac1cb8d3
VS
26512 grep -v '^ *+' conftest.er1 >conftest.err
26513 rm -f conftest.er1
26514 cat conftest.err >&5
a848cd7e
SC
26515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26516 (exit $ac_status); } &&
ea7db9ff
DE
26517 { ac_try='test -z "$ac_c_werror_flag"
26518 || test ! -s conftest.err'
ac1cb8d3
VS
26519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26520 (eval $ac_try) 2>&5
26521 ac_status=$?
26522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26523 (exit $ac_status); }; } &&
26524 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26526 (eval $ac_try) 2>&5
26527 ac_status=$?
26528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26529 (exit $ac_status); }; }; then
26530 ac_header_compiler=yes
26531else
26532 echo "$as_me: failed program was:" >&5
26533sed 's/^/| /' conftest.$ac_ext >&5
26534
26535ac_header_compiler=no
26536fi
ac1cb8d3 26537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26538echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26539echo "${ECHO_T}$ac_header_compiler" >&6
26540
26541# Is the header present?
26542echo "$as_me:$LINENO: checking sql.h presence" >&5
26543echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
26544cat >conftest.$ac_ext <<_ACEOF
26545/* confdefs.h. */
26546_ACEOF
26547cat confdefs.h >>conftest.$ac_ext
26548cat >>conftest.$ac_ext <<_ACEOF
26549/* end confdefs.h. */
26550#include <sql.h>
26551_ACEOF
26552if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26553 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26554 ac_status=$?
26555 grep -v '^ *+' conftest.er1 >conftest.err
26556 rm -f conftest.er1
26557 cat conftest.err >&5
26558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26559 (exit $ac_status); } >/dev/null; then
26560 if test -s conftest.err; then
26561 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 26562 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
26563 else
26564 ac_cpp_err=
26565 fi
26566else
26567 ac_cpp_err=yes
26568fi
26569if test -z "$ac_cpp_err"; then
26570 ac_header_preproc=yes
26571else
26572 echo "$as_me: failed program was:" >&5
26573sed 's/^/| /' conftest.$ac_ext >&5
26574
26575 ac_header_preproc=no
26576fi
26577rm -f conftest.err conftest.$ac_ext
26578echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26579echo "${ECHO_T}$ac_header_preproc" >&6
26580
26581# So? What about this header?
ac1cb8d3
VS
26582case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26583 yes:no: )
a848cd7e
SC
26584 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
26585echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26586 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
26587echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
26588 ac_header_preproc=yes
a848cd7e 26589 ;;
ac1cb8d3 26590 no:yes:* )
a848cd7e
SC
26591 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
26592echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26593 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
26594echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
26595 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
26596echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
26597 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
26598echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26599 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
26600echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26601 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
26602echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26603 (
26604 cat <<\_ASBOX
ac1cb8d3
VS
26605## ----------------------------------------- ##
26606## Report this to wx-dev@lists.wxwidgets.org ##
26607## ----------------------------------------- ##
a848cd7e
SC
26608_ASBOX
26609 ) |
26610 sed "s/^/$as_me: WARNING: /" >&2
26611 ;;
26612esac
26613echo "$as_me:$LINENO: checking for sql.h" >&5
26614echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26615if test "${ac_cv_header_sql_h+set}" = set; then
26616 echo $ECHO_N "(cached) $ECHO_C" >&6
26617else
26618 ac_cv_header_sql_h=$ac_header_preproc
26619fi
26620echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26621echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26622
26623fi
26624if test $ac_cv_header_sql_h = yes; then
26625 found_sql_h=1
26626fi
26627
26628
26629 if test "x$found_sql_h" = "x1" ; then
26630 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
26631echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
26632if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
26633 echo $ECHO_N "(cached) $ECHO_C" >&6
26634else
26635 ac_check_lib_save_LIBS=$LIBS
26636LIBS="-liodbc $LIBS"
26637cat >conftest.$ac_ext <<_ACEOF
26638/* confdefs.h. */
26639_ACEOF
26640cat confdefs.h >>conftest.$ac_ext
26641cat >>conftest.$ac_ext <<_ACEOF
26642/* end confdefs.h. */
26643
26644/* Override any gcc2 internal prototype to avoid an error. */
26645#ifdef __cplusplus
26646extern "C"
26647#endif
26648/* We use char because int might match the return type of a gcc2
26649 builtin and then its argument prototype would still apply. */
26650char SQLAllocEnv ();
26651int
26652main ()
26653{
26654SQLAllocEnv ();
26655 ;
26656 return 0;
26657}
26658_ACEOF
26659rm -f conftest.$ac_objext conftest$ac_exeext
26660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26661 (eval $ac_link) 2>conftest.er1
a848cd7e 26662 ac_status=$?
ac1cb8d3
VS
26663 grep -v '^ *+' conftest.er1 >conftest.err
26664 rm -f conftest.er1
26665 cat conftest.err >&5
a848cd7e
SC
26666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26667 (exit $ac_status); } &&
ea7db9ff
DE
26668 { ac_try='test -z "$ac_c_werror_flag"
26669 || test ! -s conftest.err'
ac1cb8d3
VS
26670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26671 (eval $ac_try) 2>&5
26672 ac_status=$?
26673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26674 (exit $ac_status); }; } &&
26675 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26677 (eval $ac_try) 2>&5
26678 ac_status=$?
26679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26680 (exit $ac_status); }; }; then
26681 ac_cv_lib_iodbc_SQLAllocEnv=yes
26682else
26683 echo "$as_me: failed program was:" >&5
26684sed 's/^/| /' conftest.$ac_ext >&5
26685
26686ac_cv_lib_iodbc_SQLAllocEnv=no
26687fi
ac1cb8d3
VS
26688rm -f conftest.err conftest.$ac_objext \
26689 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26690LIBS=$ac_check_lib_save_LIBS
26691fi
26692echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
26693echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
26694if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
26695 ODBC_LINK=" -liodbc"
26696else
26697
26698 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
26699echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
26700if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
26701 echo $ECHO_N "(cached) $ECHO_C" >&6
26702else
26703 ac_check_lib_save_LIBS=$LIBS
26704LIBS="-lunixodbc $LIBS"
26705cat >conftest.$ac_ext <<_ACEOF
26706/* confdefs.h. */
26707_ACEOF
26708cat confdefs.h >>conftest.$ac_ext
26709cat >>conftest.$ac_ext <<_ACEOF
26710/* end confdefs.h. */
26711
26712/* Override any gcc2 internal prototype to avoid an error. */
26713#ifdef __cplusplus
26714extern "C"
26715#endif
26716/* We use char because int might match the return type of a gcc2
26717 builtin and then its argument prototype would still apply. */
26718char SQLAllocEnv ();
26719int
26720main ()
26721{
26722SQLAllocEnv ();
26723 ;
26724 return 0;
26725}
26726_ACEOF
26727rm -f conftest.$ac_objext conftest$ac_exeext
26728if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26729 (eval $ac_link) 2>conftest.er1
a848cd7e 26730 ac_status=$?
ac1cb8d3
VS
26731 grep -v '^ *+' conftest.er1 >conftest.err
26732 rm -f conftest.er1
26733 cat conftest.err >&5
a848cd7e
SC
26734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26735 (exit $ac_status); } &&
ea7db9ff
DE
26736 { ac_try='test -z "$ac_c_werror_flag"
26737 || test ! -s conftest.err'
ac1cb8d3
VS
26738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26739 (eval $ac_try) 2>&5
26740 ac_status=$?
26741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26742 (exit $ac_status); }; } &&
26743 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26745 (eval $ac_try) 2>&5
26746 ac_status=$?
26747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26748 (exit $ac_status); }; }; then
26749 ac_cv_lib_unixodbc_SQLAllocEnv=yes
26750else
26751 echo "$as_me: failed program was:" >&5
26752sed 's/^/| /' conftest.$ac_ext >&5
26753
26754ac_cv_lib_unixodbc_SQLAllocEnv=no
26755fi
ac1cb8d3
VS
26756rm -f conftest.err conftest.$ac_objext \
26757 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26758LIBS=$ac_check_lib_save_LIBS
26759fi
26760echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
26761echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
26762if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
26763 ODBC_LINK=" -lunixodbc"
26764else
26765
26766 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
26767echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
26768if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
26769 echo $ECHO_N "(cached) $ECHO_C" >&6
26770else
26771 ac_check_lib_save_LIBS=$LIBS
26772LIBS="-lodbc $LIBS"
26773cat >conftest.$ac_ext <<_ACEOF
26774/* confdefs.h. */
26775_ACEOF
26776cat confdefs.h >>conftest.$ac_ext
26777cat >>conftest.$ac_ext <<_ACEOF
26778/* end confdefs.h. */
26779
26780/* Override any gcc2 internal prototype to avoid an error. */
26781#ifdef __cplusplus
26782extern "C"
26783#endif
26784/* We use char because int might match the return type of a gcc2
26785 builtin and then its argument prototype would still apply. */
26786char SQLAllocEnv ();
26787int
26788main ()
26789{
26790SQLAllocEnv ();
26791 ;
26792 return 0;
26793}
26794_ACEOF
26795rm -f conftest.$ac_objext conftest$ac_exeext
26796if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26797 (eval $ac_link) 2>conftest.er1
a848cd7e 26798 ac_status=$?
ac1cb8d3
VS
26799 grep -v '^ *+' conftest.er1 >conftest.err
26800 rm -f conftest.er1
26801 cat conftest.err >&5
a848cd7e
SC
26802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26803 (exit $ac_status); } &&
ea7db9ff
DE
26804 { ac_try='test -z "$ac_c_werror_flag"
26805 || test ! -s conftest.err'
ac1cb8d3
VS
26806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26807 (eval $ac_try) 2>&5
26808 ac_status=$?
26809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26810 (exit $ac_status); }; } &&
26811 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26813 (eval $ac_try) 2>&5
26814 ac_status=$?
26815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26816 (exit $ac_status); }; }; then
26817 ac_cv_lib_odbc_SQLAllocEnv=yes
26818else
26819 echo "$as_me: failed program was:" >&5
26820sed 's/^/| /' conftest.$ac_ext >&5
26821
26822ac_cv_lib_odbc_SQLAllocEnv=no
26823fi
ac1cb8d3
VS
26824rm -f conftest.err conftest.$ac_objext \
26825 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26826LIBS=$ac_check_lib_save_LIBS
26827fi
26828echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
26829echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
26830if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
26831 ODBC_LINK=" -lodbc"
26832fi
26833
26834
26835fi
26836
26837
26838fi
26839
26840 fi
26841 if test "x$ODBC_LINK" = "x" ; then
26842 if test "$wxUSE_ODBC" = "sys" ; then
26843 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
26844echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
26845 { (exit 1); exit 1; }; }
26846 else
26847 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
26848echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
26849 wxUSE_ODBC=builtin
26850 fi
26851 else
26852 wxUSE_ODBC=sys
26853 fi
26854 fi
26855 if test "$wxUSE_ODBC" != "no" ; then
26856 cat >>confdefs.h <<\_ACEOF
26857#define wxUSE_ODBC 1
26858_ACEOF
26859
26860 if test "$wxUSE_ODBC" = "builtin" ; then
26861 cat >>confdefs.h <<\_ACEOF
26862#define wxUSE_BUILTIN_IODBC 1
26863_ACEOF
26864
26865 fi
26866 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
26867
26868 WXODBCFLAG="-D_IODBC_"
26869 fi
26870fi
26871
26872if test "$wxUSE_REGEX" = "builtin" ; then
26873 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
26874fi
26875if test "$wxUSE_ZLIB" = "builtin" ; then
26876 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
26877fi
26878
01cb68df 26879
a848cd7e 26880if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 26881 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
26882 echo "$as_me:$LINENO: checking for Xinerama" >&5
26883echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
26884
26885ac_find_libraries=
26886for ac_dir in $SEARCH_LIB /usr/lib;
26887 do
26888 for ac_extension in a so sl dylib; do
26889 if test -f "$ac_dir/libXinerama.$ac_extension"; then
26890 ac_find_libraries=$ac_dir
26891 break 2
26892 fi
26893 done
26894 done
26895
26896 if test "$ac_find_libraries" != "" ; then
26897
26898 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
26899 result=$?
26900 if test $result = 0; then
26901 ac_path_to_link=""
26902 else
26903 ac_path_to_link=" -L$ac_find_libraries"
26904 fi
26905
26906 if test "$ac_path_to_link" != " -L/usr/lib" ; then
26907 LDFLAGS="$LDFLAGS $ac_path_to_link"
26908 fi
26909 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
26910 echo "$as_me:$LINENO: result: yes" >&5
26911echo "${ECHO_T}yes" >&6
26912
26913 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
26914echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
26915
26916ac_find_libraries=
26917for ac_dir in $SEARCH_LIB /usr/lib;
26918 do
26919 for ac_extension in a so sl dylib; do
26920 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
26921 ac_find_libraries=$ac_dir
26922 break 2
26923 fi
26924 done
26925 done
26926
26927 if test "$ac_find_libraries" != "" ; then
26928 echo "$as_me:$LINENO: result: yes" >&5
26929echo "${ECHO_T}yes" >&6
26930
26931for ac_header in X11/extensions/xf86vmode.h
26932do
26933as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26934echo "$as_me:$LINENO: checking for $ac_header" >&5
26935echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26936if eval "test \"\${$as_ac_Header+set}\" = set"; then
26937 echo $ECHO_N "(cached) $ECHO_C" >&6
26938else
26939 cat >conftest.$ac_ext <<_ACEOF
26940/* confdefs.h. */
26941_ACEOF
26942cat confdefs.h >>conftest.$ac_ext
26943cat >>conftest.$ac_ext <<_ACEOF
26944/* end confdefs.h. */
26945
26946 #if HAVE_X11_XLIB_H
26947 #include <X11/Xlib.h>
26948 #endif
26949
26950
26951#include <$ac_header>
26952_ACEOF
26953rm -f conftest.$ac_objext
26954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26955 (eval $ac_compile) 2>conftest.er1
a848cd7e 26956 ac_status=$?
ac1cb8d3
VS
26957 grep -v '^ *+' conftest.er1 >conftest.err
26958 rm -f conftest.er1
26959 cat conftest.err >&5
a848cd7e
SC
26960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26961 (exit $ac_status); } &&
ea7db9ff
DE
26962 { ac_try='test -z "$ac_c_werror_flag"
26963 || test ! -s conftest.err'
ac1cb8d3
VS
26964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26965 (eval $ac_try) 2>&5
26966 ac_status=$?
26967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26968 (exit $ac_status); }; } &&
26969 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26971 (eval $ac_try) 2>&5
26972 ac_status=$?
26973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26974 (exit $ac_status); }; }; then
26975 eval "$as_ac_Header=yes"
26976else
26977 echo "$as_me: failed program was:" >&5
26978sed 's/^/| /' conftest.$ac_ext >&5
26979
26980eval "$as_ac_Header=no"
26981fi
ac1cb8d3 26982rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26983fi
26984echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26985echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26986if test `eval echo '${'$as_ac_Header'}'` = yes; then
26987 cat >>confdefs.h <<_ACEOF
26988#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26989_ACEOF
26990
26991 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
26992
26993fi
26994
26995done
26996
26997 else
26998 echo "$as_me:$LINENO: result: no" >&5
26999echo "${ECHO_T}no" >&6
27000 fi
27001
27002 else
27003 echo "$as_me:$LINENO: result: no" >&5
27004echo "${ECHO_T}no" >&6
dcc1b6ad
VS
27005 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
27006echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
27007 wxUSE_DISPLAY="no"
27008 fi
01cb68df
RG
27009 elif test "$wxUSE_MSW" = 1; then
27010
27011
27012for ac_header in multimon.h ddraw.h
27013do
27014as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27015if eval "test \"\${$as_ac_Header+set}\" = set"; then
27016 echo "$as_me:$LINENO: checking for $ac_header" >&5
27017echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27018if eval "test \"\${$as_ac_Header+set}\" = set"; then
27019 echo $ECHO_N "(cached) $ECHO_C" >&6
27020fi
27021echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27022echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27023else
27024 # Is the header compilable?
27025echo "$as_me:$LINENO: checking $ac_header usability" >&5
27026echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27027cat >conftest.$ac_ext <<_ACEOF
27028/* confdefs.h. */
27029_ACEOF
27030cat confdefs.h >>conftest.$ac_ext
27031cat >>conftest.$ac_ext <<_ACEOF
27032/* end confdefs.h. */
27033$ac_includes_default
27034#include <$ac_header>
27035_ACEOF
27036rm -f conftest.$ac_objext
27037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27038 (eval $ac_compile) 2>conftest.er1
01cb68df 27039 ac_status=$?
ac1cb8d3
VS
27040 grep -v '^ *+' conftest.er1 >conftest.err
27041 rm -f conftest.er1
27042 cat conftest.err >&5
01cb68df
RG
27043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27044 (exit $ac_status); } &&
ea7db9ff
DE
27045 { ac_try='test -z "$ac_c_werror_flag"
27046 || test ! -s conftest.err'
ac1cb8d3
VS
27047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27048 (eval $ac_try) 2>&5
27049 ac_status=$?
27050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27051 (exit $ac_status); }; } &&
27052 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
27053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27054 (eval $ac_try) 2>&5
27055 ac_status=$?
27056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27057 (exit $ac_status); }; }; then
27058 ac_header_compiler=yes
27059else
27060 echo "$as_me: failed program was:" >&5
27061sed 's/^/| /' conftest.$ac_ext >&5
27062
27063ac_header_compiler=no
27064fi
ac1cb8d3 27065rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
27066echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27067echo "${ECHO_T}$ac_header_compiler" >&6
27068
27069# Is the header present?
27070echo "$as_me:$LINENO: checking $ac_header presence" >&5
27071echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27072cat >conftest.$ac_ext <<_ACEOF
27073/* confdefs.h. */
27074_ACEOF
27075cat confdefs.h >>conftest.$ac_ext
27076cat >>conftest.$ac_ext <<_ACEOF
27077/* end confdefs.h. */
27078#include <$ac_header>
27079_ACEOF
27080if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27081 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27082 ac_status=$?
27083 grep -v '^ *+' conftest.er1 >conftest.err
27084 rm -f conftest.er1
27085 cat conftest.err >&5
27086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27087 (exit $ac_status); } >/dev/null; then
27088 if test -s conftest.err; then
27089 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27090 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
01cb68df
RG
27091 else
27092 ac_cpp_err=
27093 fi
27094else
27095 ac_cpp_err=yes
27096fi
27097if test -z "$ac_cpp_err"; then
27098 ac_header_preproc=yes
27099else
27100 echo "$as_me: failed program was:" >&5
27101sed 's/^/| /' conftest.$ac_ext >&5
27102
27103 ac_header_preproc=no
27104fi
27105rm -f conftest.err conftest.$ac_ext
27106echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27107echo "${ECHO_T}$ac_header_preproc" >&6
27108
27109# So? What about this header?
ac1cb8d3
VS
27110case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27111 yes:no: )
01cb68df
RG
27112 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27113echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27115echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27116 ac_header_preproc=yes
01cb68df 27117 ;;
ac1cb8d3 27118 no:yes:* )
01cb68df
RG
27119 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27120echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27121 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27122echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27123 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27124echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27125 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27126echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
01cb68df
RG
27127 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27128echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27129 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27130echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
01cb68df
RG
27131 (
27132 cat <<\_ASBOX
ac1cb8d3
VS
27133## ----------------------------------------- ##
27134## Report this to wx-dev@lists.wxwidgets.org ##
27135## ----------------------------------------- ##
01cb68df
RG
27136_ASBOX
27137 ) |
27138 sed "s/^/$as_me: WARNING: /" >&2
27139 ;;
27140esac
27141echo "$as_me:$LINENO: checking for $ac_header" >&5
27142echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27143if eval "test \"\${$as_ac_Header+set}\" = set"; then
27144 echo $ECHO_N "(cached) $ECHO_C" >&6
27145else
ac1cb8d3 27146 eval "$as_ac_Header=\$ac_header_preproc"
01cb68df
RG
27147fi
27148echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27149echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27150
27151fi
27152if test `eval echo '${'$as_ac_Header'}'` = yes; then
27153 cat >>confdefs.h <<_ACEOF
27154#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27155_ACEOF
27156
27157else
27158
27159 wxUSE_DISPLAY="no"
dcc1b6ad
VS
27160 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
27161echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
27162
27163fi
27164
27165done
27166
a848cd7e
SC
27167 fi
27168fi
27169
27170
27171USE_OPENGL=0
27172if test "$wxUSE_OPENGL" = "yes"; then
27173 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27174 OPENGL_LIBS="-framework OpenGL -framework AGL"
27175 elif test "$wxUSE_MSW" = 1; then
27176 OPENGL_LIBS="-lopengl32 -lglu32"
27177 else
27178
27179
27180ac_find_includes=
27181for ac_dir in $SEARCH_INCLUDE /usr/include;
27182 do
27183 if test -f "$ac_dir/GL/gl.h"; then
27184 ac_find_includes=$ac_dir
27185 break
27186 fi
27187 done
27188
27189 if test "$ac_find_includes" != "" ; then
27190 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
27191echo "${ECHO_T}found in $ac_find_includes" >&6
27192
27193 if test "x$ac_find_includes" = "x/usr/include"; then
27194 ac_path_to_include=""
27195 else
27196 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
27197 result=$?
27198 if test $result = 0; then
27199 ac_path_to_include=""
27200 else
27201 ac_path_to_include=" -I$ac_find_includes"
27202 fi
27203 fi
27204
27205 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
27206 fi
27207
27208 if test "${ac_cv_header_GL_gl_h+set}" = set; then
27209 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27210echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27211if test "${ac_cv_header_GL_gl_h+set}" = set; then
27212 echo $ECHO_N "(cached) $ECHO_C" >&6
27213fi
27214echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27215echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27216else
27217 # Is the header compilable?
27218echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
27219echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
27220cat >conftest.$ac_ext <<_ACEOF
27221/* confdefs.h. */
27222_ACEOF
27223cat confdefs.h >>conftest.$ac_ext
27224cat >>conftest.$ac_ext <<_ACEOF
27225/* end confdefs.h. */
27226$ac_includes_default
27227#include <GL/gl.h>
27228_ACEOF
27229rm -f conftest.$ac_objext
27230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27231 (eval $ac_compile) 2>conftest.er1
a848cd7e 27232 ac_status=$?
ac1cb8d3
VS
27233 grep -v '^ *+' conftest.er1 >conftest.err
27234 rm -f conftest.er1
27235 cat conftest.err >&5
a848cd7e
SC
27236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27237 (exit $ac_status); } &&
ea7db9ff
DE
27238 { ac_try='test -z "$ac_c_werror_flag"
27239 || test ! -s conftest.err'
ac1cb8d3
VS
27240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27241 (eval $ac_try) 2>&5
27242 ac_status=$?
27243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27244 (exit $ac_status); }; } &&
27245 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27247 (eval $ac_try) 2>&5
27248 ac_status=$?
27249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27250 (exit $ac_status); }; }; then
27251 ac_header_compiler=yes
27252else
27253 echo "$as_me: failed program was:" >&5
27254sed 's/^/| /' conftest.$ac_ext >&5
27255
27256ac_header_compiler=no
27257fi
ac1cb8d3 27258rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27259echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27260echo "${ECHO_T}$ac_header_compiler" >&6
27261
27262# Is the header present?
27263echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
27264echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
27265cat >conftest.$ac_ext <<_ACEOF
27266/* confdefs.h. */
27267_ACEOF
27268cat confdefs.h >>conftest.$ac_ext
27269cat >>conftest.$ac_ext <<_ACEOF
27270/* end confdefs.h. */
27271#include <GL/gl.h>
27272_ACEOF
27273if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27274 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27275 ac_status=$?
27276 grep -v '^ *+' conftest.er1 >conftest.err
27277 rm -f conftest.er1
27278 cat conftest.err >&5
27279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27280 (exit $ac_status); } >/dev/null; then
27281 if test -s conftest.err; then
27282 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27283 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
27284 else
27285 ac_cpp_err=
27286 fi
27287else
27288 ac_cpp_err=yes
27289fi
27290if test -z "$ac_cpp_err"; then
27291 ac_header_preproc=yes
27292else
27293 echo "$as_me: failed program was:" >&5
27294sed 's/^/| /' conftest.$ac_ext >&5
27295
27296 ac_header_preproc=no
27297fi
27298rm -f conftest.err conftest.$ac_ext
27299echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27300echo "${ECHO_T}$ac_header_preproc" >&6
27301
27302# So? What about this header?
ac1cb8d3
VS
27303case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27304 yes:no: )
a848cd7e
SC
27305 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27306echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27307 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
27308echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
27309 ac_header_preproc=yes
a848cd7e 27310 ;;
ac1cb8d3 27311 no:yes:* )
a848cd7e
SC
27312 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
27313echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27314 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
27315echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
27316 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
27317echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
27318 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
27319echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27320 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
27321echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27322 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
27323echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27324 (
27325 cat <<\_ASBOX
ac1cb8d3
VS
27326## ----------------------------------------- ##
27327## Report this to wx-dev@lists.wxwidgets.org ##
27328## ----------------------------------------- ##
a848cd7e
SC
27329_ASBOX
27330 ) |
27331 sed "s/^/$as_me: WARNING: /" >&2
27332 ;;
27333esac
27334echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27335echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27336if test "${ac_cv_header_GL_gl_h+set}" = set; then
27337 echo $ECHO_N "(cached) $ECHO_C" >&6
27338else
27339 ac_cv_header_GL_gl_h=$ac_header_preproc
27340fi
27341echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27342echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27343
27344fi
27345if test $ac_cv_header_GL_gl_h = yes; then
27346
27347 found_gl=0
27348
27349 echo "$as_me:$LINENO: checking for -lGL" >&5
27350echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
27351
27352ac_find_libraries=
27353for ac_dir in $SEARCH_LIB /usr/lib;
27354 do
27355 for ac_extension in a so sl dylib; do
27356 if test -f "$ac_dir/libGL.$ac_extension"; then
27357 ac_find_libraries=$ac_dir
27358 break 2
27359 fi
27360 done
27361 done
27362
27363 if test "$ac_find_libraries" != "" ; then
27364
27365 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27366 result=$?
27367 if test $result = 0; then
27368 ac_path_to_link=""
27369 else
27370 ac_path_to_link=" -L$ac_find_libraries"
27371 fi
27372
27373 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27374 LDFLAGS_GL="$ac_path_to_link"
27375 fi
27376
27377
27378ac_find_libraries=
27379for ac_dir in $SEARCH_LIB /usr/lib;
27380 do
27381 for ac_extension in a so sl dylib; do
27382 if test -f "$ac_dir/libGLU.$ac_extension"; then
27383 ac_find_libraries=$ac_dir
27384 break 2
27385 fi
27386 done
27387 done
27388
27389 if test "$ac_find_libraries" != "" ; then
27390
27391 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27392 result=$?
27393 if test $result = 0; then
27394 ac_path_to_link=""
27395 else
27396 ac_path_to_link=" -L$ac_find_libraries"
27397 fi
27398
27399 if test "$ac_path_to_link" != " -L/usr/lib" -a \
27400 "$ac_path_to_link" != "$LDFLAGS_GL"; then
27401 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
27402 fi
27403
27404 found_gl=1
27405 OPENGL_LIBS="-lGL -lGLU"
27406 echo "$as_me:$LINENO: result: yes" >&5
27407echo "${ECHO_T}yes" >&6
27408 fi
27409 fi
27410
27411 if test "$found_gl" != 1; then
27412 echo "$as_me:$LINENO: result: no" >&5
27413echo "${ECHO_T}no" >&6
27414 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
27415echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
27416
27417ac_find_libraries=
27418for ac_dir in $SEARCH_LIB /usr/lib;
27419 do
27420 for ac_extension in a so sl dylib; do
27421 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
27422 ac_find_libraries=$ac_dir
27423 break 2
27424 fi
27425 done
27426 done
27427
27428 if test "$ac_find_libraries" != "" ; then
27429
27430 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27431 result=$?
27432 if test $result = 0; then
27433 ac_path_to_link=""
27434 else
27435 ac_path_to_link=" -L$ac_find_libraries"
27436 fi
27437
27438 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
27439 OPENGL_LIBS="-lMesaGL -lMesaGLU"
27440 echo "$as_me:$LINENO: result: yes" >&5
27441echo "${ECHO_T}yes" >&6
27442 else
27443 echo "$as_me:$LINENO: result: no" >&5
27444echo "${ECHO_T}no" >&6
27445 fi
27446 fi
27447
27448fi
27449
27450
27451
27452 if test "x$OPENGL_LIBS" = "x"; then
27453 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
27454echo "$as_me: error: OpenGL libraries not available" >&2;}
27455 { (exit 1); exit 1; }; }
27456 fi
27457 fi
27458
27459 if test "$wxUSE_OPENGL" = "yes"; then
27460 USE_OPENGL=1
27461 cat >>confdefs.h <<\_ACEOF
27462#define wxUSE_OPENGL 1
27463_ACEOF
27464
27465 cat >>confdefs.h <<\_ACEOF
27466#define wxUSE_GLCANVAS 1
27467_ACEOF
27468
27469 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
27470 fi
27471fi
27472
27473if test -z "$TOOLKIT_VPATH" ; then
27474 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
27475fi
27476
27477if test -n "$TOOLKIT" ; then
27478 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
27479fi
27480
27481UNICODE=0
27482lib_unicode_suffix=
48112931 27483wxconfig_filename_unicode="ansi"
a848cd7e
SC
27484if test "$wxUSE_UNICODE" = "yes"; then
27485 lib_unicode_suffix=u
48112931 27486 wxconfig_filename_unicode="unicode"
a848cd7e
SC
27487 UNICODE=1
27488fi
27489
27490lib_debug_suffix=
48112931 27491wxconfig_filename_debug="release"
a848cd7e
SC
27492DEBUG_FLAG=0
27493if test "$wxUSE_DEBUG_FLAG" = "yes"; then
27494 lib_debug_suffix=d
48112931 27495 wxconfig_filename_debug="debug"
a848cd7e
SC
27496 DEBUG_FLAG=1
27497fi
27498
27499DEBUG_INFO=0
27500if test "$wxUSE_DEBUG_INFO" = "yes"; then
27501 DEBUG_INFO=1
27502fi
27503
27504WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
27505
27506TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
27507TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
27508
48112931
VS
27509WXCONFIG_DATA_FILE="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${wxconfig_filename_unicode}-${wxconfig_filename_debug}-${WX_RELEASE}"
27510
a848cd7e
SC
27511if test "$cross_compiling" = "yes"; then
27512 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
27513 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
48112931 27514 WXCONFIG_DATA_FILE="${WXCONFIG_DATA_FILE}-${host_alias}"
a848cd7e
SC
27515 HOST_SUFFIX="-${host_alias}"
27516fi
27517
27518WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
27519WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
27520WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}"
27521WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
27522
27523WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
27524WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
27525
27526WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
27527WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
27528WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
27529WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27530
27531case "${host}" in
27532 *-*-cygwin* | *-*-mingw32* )
27533 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
27534 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27535 ;;
27536
27537 *-*-darwin* )
27538
27539 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
27540 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
27541
27542 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
27543 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
27544 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
27545 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27546
27547 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27548 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
27549 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
27550 fi
27551 ;;
27552esac
27553
27554WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
27555WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
27556
27557WXCONFIG_LIBS="-l${WX_LIBRARY}"
27558WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
27559
27560if test "$wxUSE_OPENGL" = "yes"; then
27561 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
27562 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
27563fi
27564
27565
27566
27567if test "$wxUSE_SHARED" = "yes"; then
27568 case "${host}" in
27569 *-pc-msdosdjgpp )
27570 wxUSE_SHARED=no
27571 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
27572echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
27573 ;;
27574 esac
27575fi
27576
27577SHARED=0
27578if test "$wxUSE_SHARED" = "yes"; then
27579 SHARED=1
27580
27581
27582 found_versioning=no
27583
27584
27585 if test $found_versioning = no ; then
27586 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
27587echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
27588if test "${wx_cv_version_script+set}" = set; then
27589 echo $ECHO_N "(cached) $ECHO_C" >&6
27590else
27591
27592 echo "VER_1 { *; };" >conftest.sym
27593 echo "int main() { return 0; }" >conftest.cpp
27594
27595 if { ac_try='
27596 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
27597 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
27598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27599 (eval $ac_try) 2>&5
27600 ac_status=$?
27601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27602 (exit $ac_status); }; } ; then
27603 if test -s conftest.stderr ; then
27604 wx_cv_version_script=no
27605 else
27606 wx_cv_version_script=yes
27607 fi
27608 else
27609 wx_cv_version_script=no
27610 fi
27611 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
27612
27613fi
27614echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
27615echo "${ECHO_T}$wx_cv_version_script" >&6
27616 if test $wx_cv_version_script = yes ; then
27617 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
27618 fi
27619 fi
27620
27621
27622 case "${host}" in
27623 *-*-linux* | *-*-gnu* )
27624 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
27625 ;;
27626
27627 *-*-solaris2* )
27628 if test "$GCC" = yes ; then
27629 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
27630
27631 saveLdflags="$LDFLAGS"
27632 LDFLAGS="$saveLdflags -Wl,-rpath,/"
27633 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
27634echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
27635 cat >conftest.$ac_ext <<_ACEOF
27636/* confdefs.h. */
27637_ACEOF
27638cat confdefs.h >>conftest.$ac_ext
27639cat >>conftest.$ac_ext <<_ACEOF
27640/* end confdefs.h. */
27641
27642int
27643main ()
27644{
27645
27646 ;
27647 return 0;
27648}
27649_ACEOF
27650rm -f conftest.$ac_objext conftest$ac_exeext
27651if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27652 (eval $ac_link) 2>conftest.er1
a848cd7e 27653 ac_status=$?
ac1cb8d3
VS
27654 grep -v '^ *+' conftest.er1 >conftest.err
27655 rm -f conftest.er1
27656 cat conftest.err >&5
a848cd7e
SC
27657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27658 (exit $ac_status); } &&
ea7db9ff
DE
27659 { ac_try='test -z "$ac_c_werror_flag"
27660 || test ! -s conftest.err'
ac1cb8d3
VS
27661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27662 (eval $ac_try) 2>&5
27663 ac_status=$?
27664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27665 (exit $ac_status); }; } &&
27666 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27668 (eval $ac_try) 2>&5
27669 ac_status=$?
27670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27671 (exit $ac_status); }; }; then
27672
27673 echo "$as_me:$LINENO: result: yes" >&5
27674echo "${ECHO_T}yes" >&6
27675 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
27676
27677else
27678 echo "$as_me: failed program was:" >&5
27679sed 's/^/| /' conftest.$ac_ext >&5
27680
27681
27682 echo "$as_me:$LINENO: result: no" >&5
27683echo "${ECHO_T}no" >&6
27684 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
27685echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
27686 LDFLAGS="$saveLdflags -Wl,-R,/"
27687 cat >conftest.$ac_ext <<_ACEOF
27688/* confdefs.h. */
27689_ACEOF
27690cat confdefs.h >>conftest.$ac_ext
27691cat >>conftest.$ac_ext <<_ACEOF
27692/* end confdefs.h. */
27693
27694int
27695main ()
27696{
27697
27698 ;
27699 return 0;
27700}
27701_ACEOF
27702rm -f conftest.$ac_objext conftest$ac_exeext
27703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27704 (eval $ac_link) 2>conftest.er1
a848cd7e 27705 ac_status=$?
ac1cb8d3
VS
27706 grep -v '^ *+' conftest.er1 >conftest.err
27707 rm -f conftest.er1
27708 cat conftest.err >&5
a848cd7e
SC
27709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27710 (exit $ac_status); } &&
ea7db9ff
DE
27711 { ac_try='test -z "$ac_c_werror_flag"
27712 || test ! -s conftest.err'
ac1cb8d3
VS
27713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27714 (eval $ac_try) 2>&5
27715 ac_status=$?
27716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27717 (exit $ac_status); }; } &&
27718 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27720 (eval $ac_try) 2>&5
27721 ac_status=$?
27722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27723 (exit $ac_status); }; }; then
27724
27725 echo "$as_me:$LINENO: result: yes" >&5
27726echo "${ECHO_T}yes" >&6
27727 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
27728else
27729 echo "$as_me: failed program was:" >&5
27730sed 's/^/| /' conftest.$ac_ext >&5
27731
27732
27733 echo "$as_me:$LINENO: result: no" >&5
27734echo "${ECHO_T}no" >&6
27735
27736fi
ac1cb8d3
VS
27737rm -f conftest.err conftest.$ac_objext \
27738 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27739
27740fi
ac1cb8d3
VS
27741rm -f conftest.err conftest.$ac_objext \
27742 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27743 LDFLAGS="$saveLdflags"
27744 else
27745 SHARED_LD="${CXX} -G -o"
27746 PIC_FLAG="-KPIC"
27747 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
27748 fi
27749 ;;
27750
27751 powerpc-*-darwin* )
27752 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
27753 cat <<EOF >change-install-names
27754#!/bin/sh
27755libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
27756inst_cmd="install_name_tool "
27757for i in \${libnames} ; do
27758 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
27759done
27760\${inst_cmd} \${3}
27761EOF
27762 chmod +x change-install-names
27763 ;;
27764
27765 *-*-cygwin* | *-*-mingw32* )
27766 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
27767 ;;
27768
27769 esac
27770
27771 if test "x$WX_TARGET_LIBRARY" = "x"; then
27772 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
27773 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
27774 fi
27775
27776 WX_TARGET_LIBRARY_TYPE="so"
27777 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
27778fi
27779
27780if test "$wxUSE_SHARED" = "no"; then
27781
27782 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
27783 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
27784 fi
27785
27786 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
27787 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
27788 fi
27789
27790 if test "$wxUSE_OPENGL" = "yes"; then
27791 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
27792 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
27793 else
27794 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
27795 fi
27796
27797 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
27798 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
27799
27800 WX_TARGET_LIBRARY_TYPE="a"
27801 INSTALL_LIBRARY='$(INSTALL_DATA)'
27802
27803 STATIC_FLAG="yes"
27804else
27805 STATIC_FLAG="no"
27806fi
27807
27808if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
27809 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
27810 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
27811 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
27812
27813 # Extract the first word of "Rez", so it can be a program name with args.
27814set dummy Rez; ac_word=$2
27815echo "$as_me:$LINENO: checking for $ac_word" >&5
27816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27817if test "${ac_cv_prog_RESCOMP+set}" = set; then
27818 echo $ECHO_N "(cached) $ECHO_C" >&6
27819else
27820 if test -n "$RESCOMP"; then
27821 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
27822else
27823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27824for as_dir in $PATH
27825do
27826 IFS=$as_save_IFS
27827 test -z "$as_dir" && as_dir=.
27828 for ac_exec_ext in '' $ac_executable_extensions; do
27829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27830 ac_cv_prog_RESCOMP="Rez"
27831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27832 break 2
27833 fi
27834done
27835done
27836
27837 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
27838fi
27839fi
27840RESCOMP=$ac_cv_prog_RESCOMP
27841if test -n "$RESCOMP"; then
27842 echo "$as_me:$LINENO: result: $RESCOMP" >&5
27843echo "${ECHO_T}$RESCOMP" >&6
27844else
27845 echo "$as_me:$LINENO: result: no" >&5
27846echo "${ECHO_T}no" >&6
27847fi
27848
27849 # Extract the first word of "DeRez", so it can be a program name with args.
27850set dummy DeRez; ac_word=$2
27851echo "$as_me:$LINENO: checking for $ac_word" >&5
27852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27853if test "${ac_cv_prog_DEREZ+set}" = set; then
27854 echo $ECHO_N "(cached) $ECHO_C" >&6
27855else
27856 if test -n "$DEREZ"; then
27857 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
27858else
27859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27860for as_dir in $PATH
27861do
27862 IFS=$as_save_IFS
27863 test -z "$as_dir" && as_dir=.
27864 for ac_exec_ext in '' $ac_executable_extensions; do
27865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27866 ac_cv_prog_DEREZ="DeRez"
27867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27868 break 2
27869 fi
27870done
27871done
27872
27873 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
27874fi
27875fi
27876DEREZ=$ac_cv_prog_DEREZ
27877if test -n "$DEREZ"; then
27878 echo "$as_me:$LINENO: result: $DEREZ" >&5
27879echo "${ECHO_T}$DEREZ" >&6
27880else
27881 echo "$as_me:$LINENO: result: no" >&5
27882echo "${ECHO_T}no" >&6
27883fi
27884
27885 # Extract the first word of "SetFile", so it can be a program name with args.
27886set dummy SetFile; ac_word=$2
27887echo "$as_me:$LINENO: checking for $ac_word" >&5
27888echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27889if test "${ac_cv_prog_SETFILE+set}" = set; then
27890 echo $ECHO_N "(cached) $ECHO_C" >&6
27891else
27892 if test -n "$SETFILE"; then
27893 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
27894else
27895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27896for as_dir in $PATH
27897do
27898 IFS=$as_save_IFS
27899 test -z "$as_dir" && as_dir=.
27900 for ac_exec_ext in '' $ac_executable_extensions; do
27901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27902 ac_cv_prog_SETFILE="SetFile"
27903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27904 break 2
27905 fi
27906done
27907done
27908
27909 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
27910fi
27911fi
27912SETFILE=$ac_cv_prog_SETFILE
27913if test -n "$SETFILE"; then
27914 echo "$as_me:$LINENO: result: $SETFILE" >&5
27915echo "${ECHO_T}$SETFILE" >&6
27916else
27917 echo "$as_me:$LINENO: result: no" >&5
27918echo "${ECHO_T}no" >&6
27919fi
27920
27921
27922 MACSETFILE="\$(SETFILE)"
27923
27924 if test "$wxUSE_MAC" = 1; then
27925 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
27926
27927 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
27928 else
27929 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
27930 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
27931 fi
27932else
27933 MACSETFILE="@#"
27934 MACRESWXCONFIG="#"
27935
27936 if test "$wxUSE_PM" = 1; then
27937 MACRESCOMP="emxbind -ep"
27938 else
27939 MACRESCOMP="@#"
27940 fi
27941fi
27942
27943
27944
27945echo "$as_me:$LINENO: checking for mode_t" >&5
27946echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
27947if test "${ac_cv_type_mode_t+set}" = set; then
27948 echo $ECHO_N "(cached) $ECHO_C" >&6
27949else
27950 cat >conftest.$ac_ext <<_ACEOF
27951/* confdefs.h. */
27952_ACEOF
27953cat confdefs.h >>conftest.$ac_ext
27954cat >>conftest.$ac_ext <<_ACEOF
27955/* end confdefs.h. */
27956$ac_includes_default
27957int
27958main ()
27959{
27960if ((mode_t *) 0)
27961 return 0;
27962if (sizeof (mode_t))
27963 return 0;
27964 ;
27965 return 0;
27966}
27967_ACEOF
27968rm -f conftest.$ac_objext
27969if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27970 (eval $ac_compile) 2>conftest.er1
a848cd7e 27971 ac_status=$?
ac1cb8d3
VS
27972 grep -v '^ *+' conftest.er1 >conftest.err
27973 rm -f conftest.er1
27974 cat conftest.err >&5
a848cd7e
SC
27975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27976 (exit $ac_status); } &&
ea7db9ff
DE
27977 { ac_try='test -z "$ac_c_werror_flag"
27978 || test ! -s conftest.err'
ac1cb8d3
VS
27979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27980 (eval $ac_try) 2>&5
27981 ac_status=$?
27982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27983 (exit $ac_status); }; } &&
27984 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27986 (eval $ac_try) 2>&5
27987 ac_status=$?
27988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27989 (exit $ac_status); }; }; then
27990 ac_cv_type_mode_t=yes
27991else
27992 echo "$as_me: failed program was:" >&5
27993sed 's/^/| /' conftest.$ac_ext >&5
27994
27995ac_cv_type_mode_t=no
27996fi
ac1cb8d3 27997rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27998fi
27999echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
28000echo "${ECHO_T}$ac_cv_type_mode_t" >&6
28001if test $ac_cv_type_mode_t = yes; then
28002 :
28003else
28004
28005cat >>confdefs.h <<_ACEOF
28006#define mode_t int
28007_ACEOF
28008
28009fi
28010
28011echo "$as_me:$LINENO: checking for off_t" >&5
28012echo $ECHO_N "checking for off_t... $ECHO_C" >&6
28013if test "${ac_cv_type_off_t+set}" = set; then
28014 echo $ECHO_N "(cached) $ECHO_C" >&6
28015else
28016 cat >conftest.$ac_ext <<_ACEOF
28017/* confdefs.h. */
28018_ACEOF
28019cat confdefs.h >>conftest.$ac_ext
28020cat >>conftest.$ac_ext <<_ACEOF
28021/* end confdefs.h. */
28022$ac_includes_default
28023int
28024main ()
28025{
28026if ((off_t *) 0)
28027 return 0;
28028if (sizeof (off_t))
28029 return 0;
28030 ;
28031 return 0;
28032}
28033_ACEOF
28034rm -f conftest.$ac_objext
28035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28036 (eval $ac_compile) 2>conftest.er1
a848cd7e 28037 ac_status=$?
ac1cb8d3
VS
28038 grep -v '^ *+' conftest.er1 >conftest.err
28039 rm -f conftest.er1
28040 cat conftest.err >&5
a848cd7e
SC
28041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28042 (exit $ac_status); } &&
ea7db9ff
DE
28043 { ac_try='test -z "$ac_c_werror_flag"
28044 || test ! -s conftest.err'
ac1cb8d3
VS
28045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28046 (eval $ac_try) 2>&5
28047 ac_status=$?
28048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28049 (exit $ac_status); }; } &&
28050 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28052 (eval $ac_try) 2>&5
28053 ac_status=$?
28054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28055 (exit $ac_status); }; }; then
28056 ac_cv_type_off_t=yes
28057else
28058 echo "$as_me: failed program was:" >&5
28059sed 's/^/| /' conftest.$ac_ext >&5
28060
28061ac_cv_type_off_t=no
28062fi
ac1cb8d3 28063rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28064fi
28065echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
28066echo "${ECHO_T}$ac_cv_type_off_t" >&6
28067if test $ac_cv_type_off_t = yes; then
28068 :
28069else
28070
28071cat >>confdefs.h <<_ACEOF
28072#define off_t long
28073_ACEOF
28074
28075fi
28076
28077echo "$as_me:$LINENO: checking for pid_t" >&5
28078echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
28079if test "${ac_cv_type_pid_t+set}" = set; then
28080 echo $ECHO_N "(cached) $ECHO_C" >&6
28081else
28082 cat >conftest.$ac_ext <<_ACEOF
28083/* confdefs.h. */
28084_ACEOF
28085cat confdefs.h >>conftest.$ac_ext
28086cat >>conftest.$ac_ext <<_ACEOF
28087/* end confdefs.h. */
28088$ac_includes_default
28089int
28090main ()
28091{
28092if ((pid_t *) 0)
28093 return 0;
28094if (sizeof (pid_t))
28095 return 0;
28096 ;
28097 return 0;
28098}
28099_ACEOF
28100rm -f conftest.$ac_objext
28101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28102 (eval $ac_compile) 2>conftest.er1
a848cd7e 28103 ac_status=$?
ac1cb8d3
VS
28104 grep -v '^ *+' conftest.er1 >conftest.err
28105 rm -f conftest.er1
28106 cat conftest.err >&5
a848cd7e
SC
28107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28108 (exit $ac_status); } &&
ea7db9ff
DE
28109 { ac_try='test -z "$ac_c_werror_flag"
28110 || test ! -s conftest.err'
ac1cb8d3
VS
28111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28112 (eval $ac_try) 2>&5
28113 ac_status=$?
28114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28115 (exit $ac_status); }; } &&
28116 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28118 (eval $ac_try) 2>&5
28119 ac_status=$?
28120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28121 (exit $ac_status); }; }; then
28122 ac_cv_type_pid_t=yes
28123else
28124 echo "$as_me: failed program was:" >&5
28125sed 's/^/| /' conftest.$ac_ext >&5
28126
28127ac_cv_type_pid_t=no
28128fi
ac1cb8d3 28129rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28130fi
28131echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28132echo "${ECHO_T}$ac_cv_type_pid_t" >&6
28133if test $ac_cv_type_pid_t = yes; then
28134 :
28135else
28136
28137cat >>confdefs.h <<_ACEOF
28138#define pid_t int
28139_ACEOF
28140
28141fi
28142
28143echo "$as_me:$LINENO: checking for size_t" >&5
28144echo $ECHO_N "checking for size_t... $ECHO_C" >&6
28145if test "${ac_cv_type_size_t+set}" = set; then
28146 echo $ECHO_N "(cached) $ECHO_C" >&6
28147else
28148 cat >conftest.$ac_ext <<_ACEOF
28149/* confdefs.h. */
28150_ACEOF
28151cat confdefs.h >>conftest.$ac_ext
28152cat >>conftest.$ac_ext <<_ACEOF
28153/* end confdefs.h. */
28154$ac_includes_default
28155int
28156main ()
28157{
28158if ((size_t *) 0)
28159 return 0;
28160if (sizeof (size_t))
28161 return 0;
28162 ;
28163 return 0;
28164}
28165_ACEOF
28166rm -f conftest.$ac_objext
28167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28168 (eval $ac_compile) 2>conftest.er1
a848cd7e 28169 ac_status=$?
ac1cb8d3
VS
28170 grep -v '^ *+' conftest.er1 >conftest.err
28171 rm -f conftest.er1
28172 cat conftest.err >&5
a848cd7e
SC
28173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28174 (exit $ac_status); } &&
ea7db9ff
DE
28175 { ac_try='test -z "$ac_c_werror_flag"
28176 || test ! -s conftest.err'
ac1cb8d3
VS
28177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28178 (eval $ac_try) 2>&5
28179 ac_status=$?
28180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28181 (exit $ac_status); }; } &&
28182 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28184 (eval $ac_try) 2>&5
28185 ac_status=$?
28186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28187 (exit $ac_status); }; }; then
28188 ac_cv_type_size_t=yes
28189else
28190 echo "$as_me: failed program was:" >&5
28191sed 's/^/| /' conftest.$ac_ext >&5
28192
28193ac_cv_type_size_t=no
28194fi
ac1cb8d3 28195rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28196fi
28197echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28198echo "${ECHO_T}$ac_cv_type_size_t" >&6
28199if test $ac_cv_type_size_t = yes; then
28200 :
28201else
28202
28203cat >>confdefs.h <<_ACEOF
28204#define size_t unsigned
28205_ACEOF
28206
28207fi
28208
28209echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
28210echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
28211if test "${ac_cv_type_uid_t+set}" = set; then
28212 echo $ECHO_N "(cached) $ECHO_C" >&6
28213else
28214 cat >conftest.$ac_ext <<_ACEOF
28215/* confdefs.h. */
28216_ACEOF
28217cat confdefs.h >>conftest.$ac_ext
28218cat >>conftest.$ac_ext <<_ACEOF
28219/* end confdefs.h. */
28220#include <sys/types.h>
28221
28222_ACEOF
28223if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28224 $EGREP "uid_t" >/dev/null 2>&1; then
28225 ac_cv_type_uid_t=yes
28226else
28227 ac_cv_type_uid_t=no
28228fi
28229rm -f conftest*
28230
28231fi
28232echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
28233echo "${ECHO_T}$ac_cv_type_uid_t" >&6
28234if test $ac_cv_type_uid_t = no; then
28235
28236cat >>confdefs.h <<\_ACEOF
28237#define uid_t int
28238_ACEOF
28239
28240
28241cat >>confdefs.h <<\_ACEOF
28242#define gid_t int
28243_ACEOF
28244
28245fi
28246
28247
28248
28249
28250ac_ext=cc
28251ac_cpp='$CXXCPP $CPPFLAGS'
28252ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28253ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28254ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28255
28256echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
28257echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
28258if test "${wx_cv_size_t_is_uint+set}" = set; then
28259 echo $ECHO_N "(cached) $ECHO_C" >&6
28260else
28261
28262 cat >conftest.$ac_ext <<_ACEOF
28263/* confdefs.h. */
28264_ACEOF
28265cat confdefs.h >>conftest.$ac_ext
28266cat >>conftest.$ac_ext <<_ACEOF
28267/* end confdefs.h. */
28268#include <stddef.h>
28269int
28270main ()
28271{
28272
28273 return 0; }
28274
28275 struct Foo { void foo(size_t); void foo(unsigned int); };
28276
28277 int bar() {
28278
28279 ;
28280 return 0;
28281}
28282_ACEOF
28283rm -f conftest.$ac_objext
28284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28285 (eval $ac_compile) 2>conftest.er1
a848cd7e 28286 ac_status=$?
ac1cb8d3
VS
28287 grep -v '^ *+' conftest.er1 >conftest.err
28288 rm -f conftest.er1
28289 cat conftest.err >&5
a848cd7e
SC
28290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28291 (exit $ac_status); } &&
ea7db9ff
DE
28292 { ac_try='test -z "$ac_cxx_werror_flag"
28293 || test ! -s conftest.err'
ac1cb8d3
VS
28294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28295 (eval $ac_try) 2>&5
28296 ac_status=$?
28297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28298 (exit $ac_status); }; } &&
28299 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28301 (eval $ac_try) 2>&5
28302 ac_status=$?
28303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28304 (exit $ac_status); }; }; then
28305 wx_cv_size_t_is_uint=no
28306else
28307 echo "$as_me: failed program was:" >&5
28308sed 's/^/| /' conftest.$ac_ext >&5
28309
28310wx_cv_size_t_is_uint=yes
28311
28312fi
ac1cb8d3 28313rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28314
28315
28316fi
28317echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
28318echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
28319
28320if test "$wx_cv_size_t_is_uint" = "yes"; then
28321 cat >>confdefs.h <<\_ACEOF
28322#define wxSIZE_T_IS_UINT 1
28323_ACEOF
28324
28325else
28326 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
28327echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
28328if test "${wx_cv_size_t_is_ulong+set}" = set; then
28329 echo $ECHO_N "(cached) $ECHO_C" >&6
28330else
28331 cat >conftest.$ac_ext <<_ACEOF
28332/* confdefs.h. */
28333_ACEOF
28334cat confdefs.h >>conftest.$ac_ext
28335cat >>conftest.$ac_ext <<_ACEOF
28336/* end confdefs.h. */
28337#include <stddef.h>
28338int
28339main ()
28340{
28341
28342 return 0; }
28343
28344 struct Foo { void foo(size_t); void foo(unsigned long); };
28345
28346 int bar() {
28347
28348 ;
28349 return 0;
28350}
28351_ACEOF
28352rm -f conftest.$ac_objext
28353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28354 (eval $ac_compile) 2>conftest.er1
a848cd7e 28355 ac_status=$?
ac1cb8d3
VS
28356 grep -v '^ *+' conftest.er1 >conftest.err
28357 rm -f conftest.er1
28358 cat conftest.err >&5
a848cd7e
SC
28359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28360 (exit $ac_status); } &&
ea7db9ff
DE
28361 { ac_try='test -z "$ac_cxx_werror_flag"
28362 || test ! -s conftest.err'
ac1cb8d3
VS
28363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28364 (eval $ac_try) 2>&5
28365 ac_status=$?
28366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28367 (exit $ac_status); }; } &&
28368 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28370 (eval $ac_try) 2>&5
28371 ac_status=$?
28372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28373 (exit $ac_status); }; }; then
28374 wx_cv_size_t_is_ulong=no
28375else
28376 echo "$as_me: failed program was:" >&5
28377sed 's/^/| /' conftest.$ac_ext >&5
28378
28379wx_cv_size_t_is_ulong=yes
28380
28381fi
ac1cb8d3 28382rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28383
28384fi
28385echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
28386echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
28387
28388 if test "$wx_cv_size_t_is_ulong" = "yes"; then
28389 cat >>confdefs.h <<\_ACEOF
28390#define wxSIZE_T_IS_ULONG 1
28391_ACEOF
28392
28393 fi
28394fi
28395
28396ac_ext=c
28397ac_cpp='$CPP $CPPFLAGS'
28398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28400ac_compiler_gnu=$ac_cv_c_compiler_gnu
28401
28402
28403
28404echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
28405echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
28406if test "${wx_cv_struct_pw_gecos+set}" = set; then
28407 echo $ECHO_N "(cached) $ECHO_C" >&6
28408else
28409
28410 cat >conftest.$ac_ext <<_ACEOF
28411/* confdefs.h. */
28412_ACEOF
28413cat confdefs.h >>conftest.$ac_ext
28414cat >>conftest.$ac_ext <<_ACEOF
28415/* end confdefs.h. */
28416#include <pwd.h>
28417int
28418main ()
28419{
28420
28421 char *p;
28422 struct passwd *pw;
28423 p = pw->pw_gecos;
28424
28425 ;
28426 return 0;
28427}
28428_ACEOF
28429rm -f conftest.$ac_objext
28430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28431 (eval $ac_compile) 2>conftest.er1
a848cd7e 28432 ac_status=$?
ac1cb8d3
VS
28433 grep -v '^ *+' conftest.er1 >conftest.err
28434 rm -f conftest.er1
28435 cat conftest.err >&5
a848cd7e
SC
28436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28437 (exit $ac_status); } &&
ea7db9ff
DE
28438 { ac_try='test -z "$ac_c_werror_flag"
28439 || test ! -s conftest.err'
ac1cb8d3
VS
28440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28441 (eval $ac_try) 2>&5
28442 ac_status=$?
28443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28444 (exit $ac_status); }; } &&
28445 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28447 (eval $ac_try) 2>&5
28448 ac_status=$?
28449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28450 (exit $ac_status); }; }; then
28451
28452 wx_cv_struct_pw_gecos=yes
28453
28454else
28455 echo "$as_me: failed program was:" >&5
28456sed 's/^/| /' conftest.$ac_ext >&5
28457
28458
28459 wx_cv_struct_pw_gecos=no
28460
28461
28462fi
ac1cb8d3 28463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28464
28465
28466fi
28467echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
28468echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
28469
28470if test "$wx_cv_struct_pw_gecos" = "yes"; then
28471 cat >>confdefs.h <<\_ACEOF
28472#define HAVE_PW_GECOS 1
28473_ACEOF
28474
28475fi
28476
28477
28478if test "$wx_cv_sizeof_wchar_t" != "0"; then
28479 cat >>confdefs.h <<\_ACEOF
28480#define wxUSE_WCHAR_T 1
28481_ACEOF
28482
28483
28484 WCSLEN_FOUND=0
28485 WCHAR_LINK=
28486
28487for ac_func in wcslen
28488do
28489as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28490echo "$as_me:$LINENO: checking for $ac_func" >&5
28491echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28492if eval "test \"\${$as_ac_var+set}\" = set"; then
28493 echo $ECHO_N "(cached) $ECHO_C" >&6
28494else
28495 cat >conftest.$ac_ext <<_ACEOF
28496/* confdefs.h. */
28497_ACEOF
28498cat confdefs.h >>conftest.$ac_ext
28499cat >>conftest.$ac_ext <<_ACEOF
28500/* end confdefs.h. */
ac1cb8d3
VS
28501/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28503#define $ac_func innocuous_$ac_func
28504
a848cd7e
SC
28505/* System header to define __stub macros and hopefully few prototypes,
28506 which can conflict with char $ac_func (); below.
28507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28508 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28509
a848cd7e
SC
28510#ifdef __STDC__
28511# include <limits.h>
28512#else
28513# include <assert.h>
28514#endif
ac1cb8d3
VS
28515
28516#undef $ac_func
28517
a848cd7e
SC
28518/* Override any gcc2 internal prototype to avoid an error. */
28519#ifdef __cplusplus
28520extern "C"
28521{
28522#endif
28523/* We use char because int might match the return type of a gcc2
28524 builtin and then its argument prototype would still apply. */
28525char $ac_func ();
28526/* The GNU C library defines this for functions which it implements
28527 to always fail with ENOSYS. Some functions are actually named
28528 something starting with __ and the normal name is an alias. */
28529#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28530choke me
28531#else
28532char (*f) () = $ac_func;
28533#endif
28534#ifdef __cplusplus
28535}
28536#endif
28537
28538int
28539main ()
28540{
28541return f != $ac_func;
28542 ;
28543 return 0;
28544}
28545_ACEOF
28546rm -f conftest.$ac_objext conftest$ac_exeext
28547if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28548 (eval $ac_link) 2>conftest.er1
a848cd7e 28549 ac_status=$?
ac1cb8d3
VS
28550 grep -v '^ *+' conftest.er1 >conftest.err
28551 rm -f conftest.er1
28552 cat conftest.err >&5
a848cd7e
SC
28553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28554 (exit $ac_status); } &&
ea7db9ff
DE
28555 { ac_try='test -z "$ac_c_werror_flag"
28556 || test ! -s conftest.err'
ac1cb8d3
VS
28557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28558 (eval $ac_try) 2>&5
28559 ac_status=$?
28560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28561 (exit $ac_status); }; } &&
28562 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28564 (eval $ac_try) 2>&5
28565 ac_status=$?
28566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28567 (exit $ac_status); }; }; then
28568 eval "$as_ac_var=yes"
28569else
28570 echo "$as_me: failed program was:" >&5
28571sed 's/^/| /' conftest.$ac_ext >&5
28572
28573eval "$as_ac_var=no"
28574fi
ac1cb8d3
VS
28575rm -f conftest.err conftest.$ac_objext \
28576 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28577fi
28578echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28579echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28580if test `eval echo '${'$as_ac_var'}'` = yes; then
28581 cat >>confdefs.h <<_ACEOF
28582#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28583_ACEOF
28584 WCSLEN_FOUND=1
28585fi
28586done
28587
28588
28589 if test "$WCSLEN_FOUND" = 0; then
28590 if test "$TOOLKIT" = "MSW"; then
28591 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
28592echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
28593if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
28594 echo $ECHO_N "(cached) $ECHO_C" >&6
28595else
28596 ac_check_lib_save_LIBS=$LIBS
28597LIBS="-lmsvcrt $LIBS"
28598cat >conftest.$ac_ext <<_ACEOF
28599/* confdefs.h. */
28600_ACEOF
28601cat confdefs.h >>conftest.$ac_ext
28602cat >>conftest.$ac_ext <<_ACEOF
28603/* end confdefs.h. */
28604
28605/* Override any gcc2 internal prototype to avoid an error. */
28606#ifdef __cplusplus
28607extern "C"
28608#endif
28609/* We use char because int might match the return type of a gcc2
28610 builtin and then its argument prototype would still apply. */
28611char wcslen ();
28612int
28613main ()
28614{
28615wcslen ();
28616 ;
28617 return 0;
28618}
28619_ACEOF
28620rm -f conftest.$ac_objext conftest$ac_exeext
28621if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28622 (eval $ac_link) 2>conftest.er1
a848cd7e 28623 ac_status=$?
ac1cb8d3
VS
28624 grep -v '^ *+' conftest.er1 >conftest.err
28625 rm -f conftest.er1
28626 cat conftest.err >&5
a848cd7e
SC
28627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28628 (exit $ac_status); } &&
ea7db9ff
DE
28629 { ac_try='test -z "$ac_c_werror_flag"
28630 || test ! -s conftest.err'
ac1cb8d3
VS
28631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28632 (eval $ac_try) 2>&5
28633 ac_status=$?
28634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28635 (exit $ac_status); }; } &&
28636 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28638 (eval $ac_try) 2>&5
28639 ac_status=$?
28640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28641 (exit $ac_status); }; }; then
28642 ac_cv_lib_msvcrt_wcslen=yes
28643else
28644 echo "$as_me: failed program was:" >&5
28645sed 's/^/| /' conftest.$ac_ext >&5
28646
28647ac_cv_lib_msvcrt_wcslen=no
28648fi
ac1cb8d3
VS
28649rm -f conftest.err conftest.$ac_objext \
28650 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28651LIBS=$ac_check_lib_save_LIBS
28652fi
28653echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
28654echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
28655if test $ac_cv_lib_msvcrt_wcslen = yes; then
28656 WCHAR_OK=1
28657fi
28658
28659 else
28660 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
28661echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
28662if test "${ac_cv_lib_w_wcslen+set}" = set; then
28663 echo $ECHO_N "(cached) $ECHO_C" >&6
28664else
28665 ac_check_lib_save_LIBS=$LIBS
28666LIBS="-lw $LIBS"
28667cat >conftest.$ac_ext <<_ACEOF
28668/* confdefs.h. */
28669_ACEOF
28670cat confdefs.h >>conftest.$ac_ext
28671cat >>conftest.$ac_ext <<_ACEOF
28672/* end confdefs.h. */
28673
28674/* Override any gcc2 internal prototype to avoid an error. */
28675#ifdef __cplusplus
28676extern "C"
28677#endif
28678/* We use char because int might match the return type of a gcc2
28679 builtin and then its argument prototype would still apply. */
28680char wcslen ();
28681int
28682main ()
28683{
28684wcslen ();
28685 ;
28686 return 0;
28687}
28688_ACEOF
28689rm -f conftest.$ac_objext conftest$ac_exeext
28690if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28691 (eval $ac_link) 2>conftest.er1
a848cd7e 28692 ac_status=$?
ac1cb8d3
VS
28693 grep -v '^ *+' conftest.er1 >conftest.err
28694 rm -f conftest.er1
28695 cat conftest.err >&5
a848cd7e
SC
28696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28697 (exit $ac_status); } &&
ea7db9ff
DE
28698 { ac_try='test -z "$ac_c_werror_flag"
28699 || test ! -s conftest.err'
ac1cb8d3
VS
28700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28701 (eval $ac_try) 2>&5
28702 ac_status=$?
28703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28704 (exit $ac_status); }; } &&
28705 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28707 (eval $ac_try) 2>&5
28708 ac_status=$?
28709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28710 (exit $ac_status); }; }; then
28711 ac_cv_lib_w_wcslen=yes
28712else
28713 echo "$as_me: failed program was:" >&5
28714sed 's/^/| /' conftest.$ac_ext >&5
28715
28716ac_cv_lib_w_wcslen=no
28717fi
ac1cb8d3
VS
28718rm -f conftest.err conftest.$ac_objext \
28719 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28720LIBS=$ac_check_lib_save_LIBS
28721fi
28722echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
28723echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
28724if test $ac_cv_lib_w_wcslen = yes; then
28725
28726 WCHAR_LINK=" -lw"
28727 WCSLEN_FOUND=1
28728
28729fi
28730
28731 fi
28732 fi
28733
28734 if test "$WCSLEN_FOUND" = 1; then
28735 cat >>confdefs.h <<\_ACEOF
28736#define HAVE_WCSLEN 1
28737_ACEOF
28738
28739 fi
28740
473276a9
VS
28741 if test "$USE_HPUX" = 1 -a "x$GCC" != "xyes"; then
28742 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
28743 fi
28744
a848cd7e
SC
28745
28746for ac_func in wcsrtombs
28747do
28748as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28749echo "$as_me:$LINENO: checking for $ac_func" >&5
28750echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28751if eval "test \"\${$as_ac_var+set}\" = set"; then
28752 echo $ECHO_N "(cached) $ECHO_C" >&6
28753else
28754 cat >conftest.$ac_ext <<_ACEOF
28755/* confdefs.h. */
28756_ACEOF
28757cat confdefs.h >>conftest.$ac_ext
28758cat >>conftest.$ac_ext <<_ACEOF
28759/* end confdefs.h. */
ac1cb8d3
VS
28760/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28761 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28762#define $ac_func innocuous_$ac_func
28763
a848cd7e
SC
28764/* System header to define __stub macros and hopefully few prototypes,
28765 which can conflict with char $ac_func (); below.
28766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28767 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28768
a848cd7e
SC
28769#ifdef __STDC__
28770# include <limits.h>
28771#else
28772# include <assert.h>
28773#endif
ac1cb8d3
VS
28774
28775#undef $ac_func
28776
a848cd7e
SC
28777/* Override any gcc2 internal prototype to avoid an error. */
28778#ifdef __cplusplus
28779extern "C"
28780{
28781#endif
28782/* We use char because int might match the return type of a gcc2
28783 builtin and then its argument prototype would still apply. */
28784char $ac_func ();
28785/* The GNU C library defines this for functions which it implements
28786 to always fail with ENOSYS. Some functions are actually named
28787 something starting with __ and the normal name is an alias. */
28788#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28789choke me
28790#else
28791char (*f) () = $ac_func;
28792#endif
28793#ifdef __cplusplus
28794}
28795#endif
28796
28797int
28798main ()
28799{
28800return f != $ac_func;
28801 ;
28802 return 0;
28803}
28804_ACEOF
28805rm -f conftest.$ac_objext conftest$ac_exeext
28806if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28807 (eval $ac_link) 2>conftest.er1
a848cd7e 28808 ac_status=$?
ac1cb8d3
VS
28809 grep -v '^ *+' conftest.er1 >conftest.err
28810 rm -f conftest.er1
28811 cat conftest.err >&5
a848cd7e
SC
28812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28813 (exit $ac_status); } &&
ea7db9ff
DE
28814 { ac_try='test -z "$ac_c_werror_flag"
28815 || test ! -s conftest.err'
ac1cb8d3
VS
28816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28817 (eval $ac_try) 2>&5
28818 ac_status=$?
28819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28820 (exit $ac_status); }; } &&
28821 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28823 (eval $ac_try) 2>&5
28824 ac_status=$?
28825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28826 (exit $ac_status); }; }; then
28827 eval "$as_ac_var=yes"
28828else
28829 echo "$as_me: failed program was:" >&5
28830sed 's/^/| /' conftest.$ac_ext >&5
28831
28832eval "$as_ac_var=no"
28833fi
ac1cb8d3
VS
28834rm -f conftest.err conftest.$ac_objext \
28835 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28836fi
28837echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28838echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28839if test `eval echo '${'$as_ac_var'}'` = yes; then
28840 cat >>confdefs.h <<_ACEOF
28841#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28842_ACEOF
28843
28844fi
28845done
28846
28847else
28848 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
28849echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
28850fi
28851
28852
28853
28854ac_ext=cc
28855ac_cpp='$CXXCPP $CPPFLAGS'
28856ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28857ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28858ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28859
28860
28861
28862for ac_func in vsnprintf
28863do
28864as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28865echo "$as_me:$LINENO: checking for $ac_func" >&5
28866echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28867if eval "test \"\${$as_ac_var+set}\" = set"; then
28868 echo $ECHO_N "(cached) $ECHO_C" >&6
28869else
28870 cat >conftest.$ac_ext <<_ACEOF
28871/* confdefs.h. */
28872_ACEOF
28873cat confdefs.h >>conftest.$ac_ext
28874cat >>conftest.$ac_ext <<_ACEOF
28875/* end confdefs.h. */
ac1cb8d3
VS
28876/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28877 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28878#define $ac_func innocuous_$ac_func
28879
a848cd7e
SC
28880/* System header to define __stub macros and hopefully few prototypes,
28881 which can conflict with char $ac_func (); below.
28882 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28883 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28884
a848cd7e
SC
28885#ifdef __STDC__
28886# include <limits.h>
28887#else
28888# include <assert.h>
28889#endif
ac1cb8d3
VS
28890
28891#undef $ac_func
28892
a848cd7e
SC
28893/* Override any gcc2 internal prototype to avoid an error. */
28894#ifdef __cplusplus
28895extern "C"
28896{
28897#endif
28898/* We use char because int might match the return type of a gcc2
28899 builtin and then its argument prototype would still apply. */
28900char $ac_func ();
28901/* The GNU C library defines this for functions which it implements
28902 to always fail with ENOSYS. Some functions are actually named
28903 something starting with __ and the normal name is an alias. */
28904#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28905choke me
28906#else
28907char (*f) () = $ac_func;
28908#endif
28909#ifdef __cplusplus
28910}
28911#endif
28912
28913int
28914main ()
28915{
28916return f != $ac_func;
28917 ;
28918 return 0;
28919}
28920_ACEOF
28921rm -f conftest.$ac_objext conftest$ac_exeext
28922if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28923 (eval $ac_link) 2>conftest.er1
a848cd7e 28924 ac_status=$?
ac1cb8d3
VS
28925 grep -v '^ *+' conftest.er1 >conftest.err
28926 rm -f conftest.er1
28927 cat conftest.err >&5
a848cd7e
SC
28928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28929 (exit $ac_status); } &&
ea7db9ff
DE
28930 { ac_try='test -z "$ac_cxx_werror_flag"
28931 || test ! -s conftest.err'
ac1cb8d3
VS
28932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28933 (eval $ac_try) 2>&5
28934 ac_status=$?
28935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28936 (exit $ac_status); }; } &&
28937 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28939 (eval $ac_try) 2>&5
28940 ac_status=$?
28941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28942 (exit $ac_status); }; }; then
28943 eval "$as_ac_var=yes"
28944else
28945 echo "$as_me: failed program was:" >&5
28946sed 's/^/| /' conftest.$ac_ext >&5
28947
28948eval "$as_ac_var=no"
28949fi
ac1cb8d3
VS
28950rm -f conftest.err conftest.$ac_objext \
28951 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28952fi
28953echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28954echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28955if test `eval echo '${'$as_ac_var'}'` = yes; then
28956 cat >>confdefs.h <<_ACEOF
28957#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28958_ACEOF
28959
28960fi
28961done
28962
28963
28964if test "$ac_cv_func_vsnprintf" = "yes"; then
28965 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
28966echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
28967if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
28968 echo $ECHO_N "(cached) $ECHO_C" >&6
28969else
28970
28971 cat >conftest.$ac_ext <<_ACEOF
28972/* confdefs.h. */
28973_ACEOF
28974cat confdefs.h >>conftest.$ac_ext
28975cat >>conftest.$ac_ext <<_ACEOF
28976/* end confdefs.h. */
28977
28978 #include <stdio.h>
28979 #include <stdarg.h>
28980
28981int
28982main ()
28983{
28984
28985 char *buf;
28986 va_list ap;
28987 vsnprintf(buf, 10u, "%s", ap);
28988
28989 ;
28990 return 0;
28991}
28992_ACEOF
28993rm -f conftest.$ac_objext
28994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28995 (eval $ac_compile) 2>conftest.er1
a848cd7e 28996 ac_status=$?
ac1cb8d3
VS
28997 grep -v '^ *+' conftest.er1 >conftest.err
28998 rm -f conftest.er1
28999 cat conftest.err >&5
a848cd7e
SC
29000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29001 (exit $ac_status); } &&
ea7db9ff
DE
29002 { ac_try='test -z "$ac_cxx_werror_flag"
29003 || test ! -s conftest.err'
ac1cb8d3
VS
29004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29005 (eval $ac_try) 2>&5
29006 ac_status=$?
29007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29008 (exit $ac_status); }; } &&
29009 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29011 (eval $ac_try) 2>&5
29012 ac_status=$?
29013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29014 (exit $ac_status); }; }; then
29015 wx_cv_func_vsnprintf_decl=yes
29016else
29017 echo "$as_me: failed program was:" >&5
29018sed 's/^/| /' conftest.$ac_ext >&5
29019
29020wx_cv_func_vsnprintf_decl=no
29021
29022fi
ac1cb8d3 29023rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29024
29025
29026fi
29027echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
29028echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
29029
29030 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
29031 cat >>confdefs.h <<\_ACEOF
29032#define HAVE_VSNPRINTF_DECL 1
29033_ACEOF
29034
29035 fi
29036fi
29037
29038if test "$wxUSE_UNICODE" = yes; then
29039
29040
29041
fbe47c7b
VS
29042
29043
29044
29045for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
29046do
29047as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29048echo "$as_me:$LINENO: checking for $ac_func" >&5
29049echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29050if eval "test \"\${$as_ac_var+set}\" = set"; then
29051 echo $ECHO_N "(cached) $ECHO_C" >&6
29052else
29053 cat >conftest.$ac_ext <<_ACEOF
29054/* confdefs.h. */
29055_ACEOF
29056cat confdefs.h >>conftest.$ac_ext
29057cat >>conftest.$ac_ext <<_ACEOF
29058/* end confdefs.h. */
ac1cb8d3
VS
29059/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29061#define $ac_func innocuous_$ac_func
29062
a848cd7e
SC
29063/* System header to define __stub macros and hopefully few prototypes,
29064 which can conflict with char $ac_func (); below.
29065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29066 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29067
a848cd7e
SC
29068#ifdef __STDC__
29069# include <limits.h>
29070#else
29071# include <assert.h>
29072#endif
ac1cb8d3
VS
29073
29074#undef $ac_func
29075
a848cd7e
SC
29076/* Override any gcc2 internal prototype to avoid an error. */
29077#ifdef __cplusplus
29078extern "C"
29079{
29080#endif
29081/* We use char because int might match the return type of a gcc2
29082 builtin and then its argument prototype would still apply. */
29083char $ac_func ();
29084/* The GNU C library defines this for functions which it implements
29085 to always fail with ENOSYS. Some functions are actually named
29086 something starting with __ and the normal name is an alias. */
29087#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29088choke me
29089#else
29090char (*f) () = $ac_func;
29091#endif
29092#ifdef __cplusplus
29093}
29094#endif
29095
29096int
29097main ()
29098{
29099return f != $ac_func;
29100 ;
29101 return 0;
29102}
29103_ACEOF
29104rm -f conftest.$ac_objext conftest$ac_exeext
29105if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29106 (eval $ac_link) 2>conftest.er1
a848cd7e 29107 ac_status=$?
ac1cb8d3
VS
29108 grep -v '^ *+' conftest.er1 >conftest.err
29109 rm -f conftest.er1
29110 cat conftest.err >&5
a848cd7e
SC
29111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29112 (exit $ac_status); } &&
ea7db9ff
DE
29113 { ac_try='test -z "$ac_cxx_werror_flag"
29114 || test ! -s conftest.err'
ac1cb8d3
VS
29115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29116 (eval $ac_try) 2>&5
29117 ac_status=$?
29118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29119 (exit $ac_status); }; } &&
29120 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29122 (eval $ac_try) 2>&5
29123 ac_status=$?
29124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29125 (exit $ac_status); }; }; then
29126 eval "$as_ac_var=yes"
29127else
29128 echo "$as_me: failed program was:" >&5
29129sed 's/^/| /' conftest.$ac_ext >&5
29130
29131eval "$as_ac_var=no"
29132fi
ac1cb8d3
VS
29133rm -f conftest.err conftest.$ac_objext \
29134 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29135fi
29136echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29137echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29138if test `eval echo '${'$as_ac_var'}'` = yes; then
29139 cat >>confdefs.h <<_ACEOF
29140#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29141_ACEOF
29142
29143fi
29144done
29145
29146
29147 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
29148echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
29149 cat >conftest.$ac_ext <<_ACEOF
29150/* confdefs.h. */
29151_ACEOF
29152cat confdefs.h >>conftest.$ac_ext
29153cat >>conftest.$ac_ext <<_ACEOF
29154/* end confdefs.h. */
29155#include <wchar.h>
29156int
29157main ()
29158{
29159&_vsnwprintf;
29160 ;
29161 return 0;
29162}
29163_ACEOF
29164rm -f conftest.$ac_objext
29165if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29166 (eval $ac_compile) 2>conftest.er1
a848cd7e 29167 ac_status=$?
ac1cb8d3
VS
29168 grep -v '^ *+' conftest.er1 >conftest.err
29169 rm -f conftest.er1
29170 cat conftest.err >&5
a848cd7e
SC
29171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29172 (exit $ac_status); } &&
ea7db9ff
DE
29173 { ac_try='test -z "$ac_cxx_werror_flag"
29174 || test ! -s conftest.err'
ac1cb8d3
VS
29175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29176 (eval $ac_try) 2>&5
29177 ac_status=$?
29178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29179 (exit $ac_status); }; } &&
29180 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29182 (eval $ac_try) 2>&5
29183 ac_status=$?
29184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29185 (exit $ac_status); }; }; then
29186 echo "$as_me:$LINENO: result: yes" >&5
29187echo "${ECHO_T}yes" >&6
29188 cat >>confdefs.h <<\_ACEOF
29189#define HAVE__VSNWPRINTF 1
29190_ACEOF
29191
29192else
29193 echo "$as_me: failed program was:" >&5
29194sed 's/^/| /' conftest.$ac_ext >&5
29195
29196echo "$as_me:$LINENO: result: no" >&5
29197echo "${ECHO_T}no" >&6
29198fi
ac1cb8d3 29199rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
29200fi
29201
29202ac_ext=c
29203ac_cpp='$CPP $CPPFLAGS'
29204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29206ac_compiler_gnu=$ac_cv_c_compiler_gnu
29207
29208
29209
29210
29211if test "$TOOLKIT" != "MSW"; then
29212
29213
29214
29215
29216ac_ext=cc
29217ac_cpp='$CXXCPP $CPPFLAGS'
29218ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29219ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29220ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29221
29222
29223
29224
29225# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
29226if test "${with_libiconv_prefix+set}" = set; then
29227 withval="$with_libiconv_prefix"
29228
29229 for dir in `echo "$withval" | tr : ' '`; do
29230 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
29231 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
29232 done
29233
29234fi;
29235
29236 echo "$as_me:$LINENO: checking for iconv" >&5
29237echo $ECHO_N "checking for iconv... $ECHO_C" >&6
29238if test "${am_cv_func_iconv+set}" = set; then
29239 echo $ECHO_N "(cached) $ECHO_C" >&6
29240else
29241
29242 am_cv_func_iconv="no, consider installing GNU libiconv"
29243 am_cv_lib_iconv=no
29244 cat >conftest.$ac_ext <<_ACEOF
29245/* confdefs.h. */
29246_ACEOF
29247cat confdefs.h >>conftest.$ac_ext
29248cat >>conftest.$ac_ext <<_ACEOF
29249/* end confdefs.h. */
29250#include <stdlib.h>
29251#include <iconv.h>
29252int
29253main ()
29254{
29255iconv_t cd = iconv_open("","");
29256 iconv(cd,NULL,NULL,NULL,NULL);
29257 iconv_close(cd);
29258 ;
29259 return 0;
29260}
29261_ACEOF
29262rm -f conftest.$ac_objext conftest$ac_exeext
29263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29264 (eval $ac_link) 2>conftest.er1
a848cd7e 29265 ac_status=$?
ac1cb8d3
VS
29266 grep -v '^ *+' conftest.er1 >conftest.err
29267 rm -f conftest.er1
29268 cat conftest.err >&5
a848cd7e
SC
29269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29270 (exit $ac_status); } &&
ea7db9ff
DE
29271 { ac_try='test -z "$ac_cxx_werror_flag"
29272 || test ! -s conftest.err'
ac1cb8d3
VS
29273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29274 (eval $ac_try) 2>&5
29275 ac_status=$?
29276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29277 (exit $ac_status); }; } &&
29278 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29280 (eval $ac_try) 2>&5
29281 ac_status=$?
29282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29283 (exit $ac_status); }; }; then
29284 am_cv_func_iconv=yes
29285else
29286 echo "$as_me: failed program was:" >&5
29287sed 's/^/| /' conftest.$ac_ext >&5
29288
29289fi
ac1cb8d3
VS
29290rm -f conftest.err conftest.$ac_objext \
29291 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29292 if test "$am_cv_func_iconv" != yes; then
29293 am_save_LIBS="$LIBS"
29294 LIBS="$LIBS -liconv"
29295 cat >conftest.$ac_ext <<_ACEOF
29296/* confdefs.h. */
29297_ACEOF
29298cat confdefs.h >>conftest.$ac_ext
29299cat >>conftest.$ac_ext <<_ACEOF
29300/* end confdefs.h. */
29301#include <stdlib.h>
29302#include <iconv.h>
29303int
29304main ()
29305{
29306iconv_t cd = iconv_open("","");
29307 iconv(cd,NULL,NULL,NULL,NULL);
29308 iconv_close(cd);
29309 ;
29310 return 0;
29311}
29312_ACEOF
29313rm -f conftest.$ac_objext conftest$ac_exeext
29314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29315 (eval $ac_link) 2>conftest.er1
a848cd7e 29316 ac_status=$?
ac1cb8d3
VS
29317 grep -v '^ *+' conftest.er1 >conftest.err
29318 rm -f conftest.er1
29319 cat conftest.err >&5
a848cd7e
SC
29320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29321 (exit $ac_status); } &&
ea7db9ff
DE
29322 { ac_try='test -z "$ac_cxx_werror_flag"
29323 || test ! -s conftest.err'
ac1cb8d3
VS
29324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29325 (eval $ac_try) 2>&5
29326 ac_status=$?
29327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29328 (exit $ac_status); }; } &&
29329 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29331 (eval $ac_try) 2>&5
29332 ac_status=$?
29333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29334 (exit $ac_status); }; }; then
29335 am_cv_lib_iconv=yes
29336 am_cv_func_iconv=yes
29337else
29338 echo "$as_me: failed program was:" >&5
29339sed 's/^/| /' conftest.$ac_ext >&5
29340
29341fi
ac1cb8d3
VS
29342rm -f conftest.err conftest.$ac_objext \
29343 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29344 LIBS="$am_save_LIBS"
29345 fi
29346
29347fi
29348echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
29349echo "${ECHO_T}$am_cv_func_iconv" >&6
29350 if test "$am_cv_func_iconv" = yes; then
29351
29352cat >>confdefs.h <<\_ACEOF
29353#define HAVE_ICONV 1
29354_ACEOF
29355
29356 echo "$as_me:$LINENO: checking if iconv needs const" >&5
29357echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
29358if test "${wx_cv_func_iconv_const+set}" = set; then
29359 echo $ECHO_N "(cached) $ECHO_C" >&6
29360else
29361 cat >conftest.$ac_ext <<_ACEOF
29362/* confdefs.h. */
29363_ACEOF
29364cat confdefs.h >>conftest.$ac_ext
29365cat >>conftest.$ac_ext <<_ACEOF
29366/* end confdefs.h. */
29367
29368#include <stdlib.h>
29369#include <iconv.h>
29370extern
29371#ifdef __cplusplus
29372"C"
29373#endif
29374#if defined(__STDC__) || defined(__cplusplus)
29375size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
29376#else
29377size_t iconv();
29378#endif
29379
29380int
29381main ()
29382{
29383
29384 ;
29385 return 0;
29386}
29387_ACEOF
29388rm -f conftest.$ac_objext
29389if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29390 (eval $ac_compile) 2>conftest.er1
a848cd7e 29391 ac_status=$?
ac1cb8d3
VS
29392 grep -v '^ *+' conftest.er1 >conftest.err
29393 rm -f conftest.er1
29394 cat conftest.err >&5
a848cd7e
SC
29395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29396 (exit $ac_status); } &&
ea7db9ff
DE
29397 { ac_try='test -z "$ac_cxx_werror_flag"
29398 || test ! -s conftest.err'
ac1cb8d3
VS
29399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29400 (eval $ac_try) 2>&5
29401 ac_status=$?
29402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29403 (exit $ac_status); }; } &&
29404 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29406 (eval $ac_try) 2>&5
29407 ac_status=$?
29408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29409 (exit $ac_status); }; }; then
29410 wx_cv_func_iconv_const="no"
29411else
29412 echo "$as_me: failed program was:" >&5
29413sed 's/^/| /' conftest.$ac_ext >&5
29414
29415wx_cv_func_iconv_const="yes"
29416
29417fi
ac1cb8d3 29418rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29419
29420fi
29421echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
29422echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
29423
29424 iconv_const=
29425 if test "x$wx_cv_func_iconv_const" = "xyes"; then
29426 iconv_const="const"
29427 fi
29428
29429
29430cat >>confdefs.h <<_ACEOF
29431#define ICONV_CONST $iconv_const
29432_ACEOF
29433
29434 fi
29435 LIBICONV=
29436 if test "$am_cv_lib_iconv" = yes; then
29437 LIBICONV="-liconv"
29438 fi
29439
29440
29441LIBS="$LIBICONV $LIBS"
29442ac_ext=c
29443ac_cpp='$CPP $CPPFLAGS'
29444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29446ac_compiler_gnu=$ac_cv_c_compiler_gnu
29447
29448
29449if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
29450
29451for ac_func in sigaction
29452do
29453as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29454echo "$as_me:$LINENO: checking for $ac_func" >&5
29455echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29456if eval "test \"\${$as_ac_var+set}\" = set"; then
29457 echo $ECHO_N "(cached) $ECHO_C" >&6
29458else
29459 cat >conftest.$ac_ext <<_ACEOF
29460/* confdefs.h. */
29461_ACEOF
29462cat confdefs.h >>conftest.$ac_ext
29463cat >>conftest.$ac_ext <<_ACEOF
29464/* end confdefs.h. */
ac1cb8d3
VS
29465/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29466 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29467#define $ac_func innocuous_$ac_func
29468
a848cd7e
SC
29469/* System header to define __stub macros and hopefully few prototypes,
29470 which can conflict with char $ac_func (); below.
29471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29472 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29473
a848cd7e
SC
29474#ifdef __STDC__
29475# include <limits.h>
29476#else
29477# include <assert.h>
29478#endif
ac1cb8d3
VS
29479
29480#undef $ac_func
29481
a848cd7e
SC
29482/* Override any gcc2 internal prototype to avoid an error. */
29483#ifdef __cplusplus
29484extern "C"
29485{
29486#endif
29487/* We use char because int might match the return type of a gcc2
29488 builtin and then its argument prototype would still apply. */
29489char $ac_func ();
29490/* The GNU C library defines this for functions which it implements
29491 to always fail with ENOSYS. Some functions are actually named
29492 something starting with __ and the normal name is an alias. */
29493#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29494choke me
29495#else
29496char (*f) () = $ac_func;
29497#endif
29498#ifdef __cplusplus
29499}
29500#endif
29501
29502int
29503main ()
29504{
29505return f != $ac_func;
29506 ;
29507 return 0;
29508}
29509_ACEOF
29510rm -f conftest.$ac_objext conftest$ac_exeext
29511if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29512 (eval $ac_link) 2>conftest.er1
a848cd7e 29513 ac_status=$?
ac1cb8d3
VS
29514 grep -v '^ *+' conftest.er1 >conftest.err
29515 rm -f conftest.er1
29516 cat conftest.err >&5
a848cd7e
SC
29517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29518 (exit $ac_status); } &&
ea7db9ff
DE
29519 { ac_try='test -z "$ac_c_werror_flag"
29520 || test ! -s conftest.err'
ac1cb8d3
VS
29521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29522 (eval $ac_try) 2>&5
29523 ac_status=$?
29524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29525 (exit $ac_status); }; } &&
29526 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29528 (eval $ac_try) 2>&5
29529 ac_status=$?
29530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29531 (exit $ac_status); }; }; then
29532 eval "$as_ac_var=yes"
29533else
29534 echo "$as_me: failed program was:" >&5
29535sed 's/^/| /' conftest.$ac_ext >&5
29536
29537eval "$as_ac_var=no"
29538fi
ac1cb8d3
VS
29539rm -f conftest.err conftest.$ac_objext \
29540 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29541fi
29542echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29543echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29544if test `eval echo '${'$as_ac_var'}'` = yes; then
29545 cat >>confdefs.h <<_ACEOF
29546#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29547_ACEOF
29548
29549fi
29550done
29551
29552
29553 if test "$ac_cv_func_sigaction" = "no"; then
29554 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
29555echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
29556 wxUSE_ON_FATAL_EXCEPTION=no
29557 fi
29558
29559 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
29560
29561
29562 ac_ext=cc
29563ac_cpp='$CXXCPP $CPPFLAGS'
29564ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29565ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29566ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29567
29568
29569 echo "$as_me:$LINENO: checking for sa_handler type" >&5
29570echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
29571if test "${wx_cv_type_sa_handler+set}" = set; then
29572 echo $ECHO_N "(cached) $ECHO_C" >&6
29573else
29574
29575 cat >conftest.$ac_ext <<_ACEOF
29576/* confdefs.h. */
29577_ACEOF
29578cat confdefs.h >>conftest.$ac_ext
29579cat >>conftest.$ac_ext <<_ACEOF
29580/* end confdefs.h. */
29581#include <signal.h>
29582int
29583main ()
29584{
29585
29586 extern void testSigHandler(int);
29587
29588 struct sigaction sa;
29589 sa.sa_handler = testSigHandler;
29590
29591 ;
29592 return 0;
29593}
29594_ACEOF
29595rm -f conftest.$ac_objext
29596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29597 (eval $ac_compile) 2>conftest.er1
a848cd7e 29598 ac_status=$?
ac1cb8d3
VS
29599 grep -v '^ *+' conftest.er1 >conftest.err
29600 rm -f conftest.er1
29601 cat conftest.err >&5
a848cd7e
SC
29602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29603 (exit $ac_status); } &&
ea7db9ff
DE
29604 { ac_try='test -z "$ac_cxx_werror_flag"
29605 || test ! -s conftest.err'
ac1cb8d3
VS
29606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29607 (eval $ac_try) 2>&5
29608 ac_status=$?
29609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29610 (exit $ac_status); }; } &&
29611 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29613 (eval $ac_try) 2>&5
29614 ac_status=$?
29615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29616 (exit $ac_status); }; }; then
29617
29618 wx_cv_type_sa_handler=int
29619
29620else
29621 echo "$as_me: failed program was:" >&5
29622sed 's/^/| /' conftest.$ac_ext >&5
29623
29624
29625 wx_cv_type_sa_handler=void
29626
29627fi
ac1cb8d3 29628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29629
29630fi
29631echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
29632echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
29633
29634 ac_ext=c
29635ac_cpp='$CPP $CPPFLAGS'
29636ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29637ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29638ac_compiler_gnu=$ac_cv_c_compiler_gnu
29639
29640
29641 cat >>confdefs.h <<_ACEOF
29642#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
29643_ACEOF
29644
29645 fi
29646fi
29647
29648
29649
29650for ac_func in mkstemp mktemp
29651do
29652as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29653echo "$as_me:$LINENO: checking for $ac_func" >&5
29654echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29655if eval "test \"\${$as_ac_var+set}\" = set"; then
29656 echo $ECHO_N "(cached) $ECHO_C" >&6
29657else
29658 cat >conftest.$ac_ext <<_ACEOF
29659/* confdefs.h. */
29660_ACEOF
29661cat confdefs.h >>conftest.$ac_ext
29662cat >>conftest.$ac_ext <<_ACEOF
29663/* end confdefs.h. */
ac1cb8d3
VS
29664/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29665 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29666#define $ac_func innocuous_$ac_func
29667
a848cd7e
SC
29668/* System header to define __stub macros and hopefully few prototypes,
29669 which can conflict with char $ac_func (); below.
29670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29671 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29672
a848cd7e
SC
29673#ifdef __STDC__
29674# include <limits.h>
29675#else
29676# include <assert.h>
29677#endif
ac1cb8d3
VS
29678
29679#undef $ac_func
29680
a848cd7e
SC
29681/* Override any gcc2 internal prototype to avoid an error. */
29682#ifdef __cplusplus
29683extern "C"
29684{
29685#endif
29686/* We use char because int might match the return type of a gcc2
29687 builtin and then its argument prototype would still apply. */
29688char $ac_func ();
29689/* The GNU C library defines this for functions which it implements
29690 to always fail with ENOSYS. Some functions are actually named
29691 something starting with __ and the normal name is an alias. */
29692#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29693choke me
29694#else
29695char (*f) () = $ac_func;
29696#endif
29697#ifdef __cplusplus
29698}
29699#endif
29700
29701int
29702main ()
29703{
29704return f != $ac_func;
29705 ;
29706 return 0;
29707}
29708_ACEOF
29709rm -f conftest.$ac_objext conftest$ac_exeext
29710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29711 (eval $ac_link) 2>conftest.er1
a848cd7e 29712 ac_status=$?
ac1cb8d3
VS
29713 grep -v '^ *+' conftest.er1 >conftest.err
29714 rm -f conftest.er1
29715 cat conftest.err >&5
a848cd7e
SC
29716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29717 (exit $ac_status); } &&
ea7db9ff
DE
29718 { ac_try='test -z "$ac_c_werror_flag"
29719 || test ! -s conftest.err'
ac1cb8d3
VS
29720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29721 (eval $ac_try) 2>&5
29722 ac_status=$?
29723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29724 (exit $ac_status); }; } &&
29725 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29727 (eval $ac_try) 2>&5
29728 ac_status=$?
29729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29730 (exit $ac_status); }; }; then
29731 eval "$as_ac_var=yes"
29732else
29733 echo "$as_me: failed program was:" >&5
29734sed 's/^/| /' conftest.$ac_ext >&5
29735
29736eval "$as_ac_var=no"
29737fi
ac1cb8d3
VS
29738rm -f conftest.err conftest.$ac_objext \
29739 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29740fi
29741echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29742echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29743if test `eval echo '${'$as_ac_var'}'` = yes; then
29744 cat >>confdefs.h <<_ACEOF
29745#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29746_ACEOF
29747 break
29748fi
29749done
29750
29751
29752echo "$as_me:$LINENO: checking for statfs" >&5
29753echo $ECHO_N "checking for statfs... $ECHO_C" >&6
29754if test "${wx_cv_func_statfs+set}" = set; then
29755 echo $ECHO_N "(cached) $ECHO_C" >&6
29756else
29757 cat >conftest.$ac_ext <<_ACEOF
29758/* confdefs.h. */
29759_ACEOF
29760cat confdefs.h >>conftest.$ac_ext
29761cat >>conftest.$ac_ext <<_ACEOF
29762/* end confdefs.h. */
29763
29764 #if defined(__BSD__)
29765 #include <sys/param.h>
29766 #include <sys/mount.h>
29767 #else
29768 #include <sys/vfs.h>
29769 #endif
29770
29771int
29772main ()
29773{
29774
29775 long l;
29776 struct statfs fs;
29777 statfs("/", &fs);
29778 l = fs.f_bsize;
29779 l += fs.f_blocks;
29780 l += fs.f_bavail;
29781
29782 ;
29783 return 0;
29784}
29785_ACEOF
29786rm -f conftest.$ac_objext
29787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29788 (eval $ac_compile) 2>conftest.er1
a848cd7e 29789 ac_status=$?
ac1cb8d3
VS
29790 grep -v '^ *+' conftest.er1 >conftest.err
29791 rm -f conftest.er1
29792 cat conftest.err >&5
a848cd7e
SC
29793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29794 (exit $ac_status); } &&
ea7db9ff
DE
29795 { ac_try='test -z "$ac_c_werror_flag"
29796 || test ! -s conftest.err'
ac1cb8d3
VS
29797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29798 (eval $ac_try) 2>&5
29799 ac_status=$?
29800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29801 (exit $ac_status); }; } &&
29802 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29804 (eval $ac_try) 2>&5
29805 ac_status=$?
29806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29807 (exit $ac_status); }; }; then
29808
29809 wx_cv_func_statfs=yes
29810
29811else
29812 echo "$as_me: failed program was:" >&5
29813sed 's/^/| /' conftest.$ac_ext >&5
29814
29815
29816 wx_cv_func_statfs=no
29817
29818
29819fi
ac1cb8d3 29820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29821
29822fi
29823echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
29824echo "${ECHO_T}$wx_cv_func_statfs" >&6
29825
29826if test "$wx_cv_func_statfs" = "yes"; then
29827 wx_cv_type_statvfs_t="struct statfs"
29828 cat >>confdefs.h <<\_ACEOF
29829#define HAVE_STATFS 1
29830_ACEOF
29831
29832else
29833 echo "$as_me:$LINENO: checking for statvfs" >&5
29834echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
29835if test "${wx_cv_func_statvfs+set}" = set; then
29836 echo $ECHO_N "(cached) $ECHO_C" >&6
29837else
29838 cat >conftest.$ac_ext <<_ACEOF
29839/* confdefs.h. */
29840_ACEOF
29841cat confdefs.h >>conftest.$ac_ext
29842cat >>conftest.$ac_ext <<_ACEOF
29843/* end confdefs.h. */
29844
29845 #include <stddef.h>
29846 #include <sys/statvfs.h>
29847
29848int
29849main ()
29850{
29851
29852 statvfs("/", NULL);
29853
29854 ;
29855 return 0;
29856}
29857_ACEOF
29858rm -f conftest.$ac_objext
29859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29860 (eval $ac_compile) 2>conftest.er1
a848cd7e 29861 ac_status=$?
ac1cb8d3
VS
29862 grep -v '^ *+' conftest.er1 >conftest.err
29863 rm -f conftest.er1
29864 cat conftest.err >&5
a848cd7e
SC
29865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29866 (exit $ac_status); } &&
ea7db9ff
DE
29867 { ac_try='test -z "$ac_c_werror_flag"
29868 || test ! -s conftest.err'
ac1cb8d3
VS
29869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29870 (eval $ac_try) 2>&5
29871 ac_status=$?
29872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29873 (exit $ac_status); }; } &&
29874 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29876 (eval $ac_try) 2>&5
29877 ac_status=$?
29878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29879 (exit $ac_status); }; }; then
29880 wx_cv_func_statvfs=yes
29881else
29882 echo "$as_me: failed program was:" >&5
29883sed 's/^/| /' conftest.$ac_ext >&5
29884
29885wx_cv_func_statvfs=no
29886
29887fi
ac1cb8d3 29888rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29889
29890fi
29891echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
29892echo "${ECHO_T}$wx_cv_func_statvfs" >&6
29893
29894 if test "$wx_cv_func_statvfs" = "yes"; then
29895
29896
29897 ac_ext=cc
29898ac_cpp='$CXXCPP $CPPFLAGS'
29899ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29900ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29901ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29902
29903
29904 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
29905echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
29906if test "${wx_cv_type_statvfs_t+set}" = set; then
29907 echo $ECHO_N "(cached) $ECHO_C" >&6
29908else
29909 cat >conftest.$ac_ext <<_ACEOF
29910/* confdefs.h. */
29911_ACEOF
29912cat confdefs.h >>conftest.$ac_ext
29913cat >>conftest.$ac_ext <<_ACEOF
29914/* end confdefs.h. */
29915
29916 #include <sys/statvfs.h>
29917
29918int
29919main ()
29920{
29921
29922 long l;
29923 statvfs_t fs;
29924 statvfs("/", &fs);
29925 l = fs.f_bsize;
29926 l += fs.f_blocks;
29927 l += fs.f_bavail;
29928
29929 ;
29930 return 0;
29931}
29932_ACEOF
29933rm -f conftest.$ac_objext
29934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29935 (eval $ac_compile) 2>conftest.er1
a848cd7e 29936 ac_status=$?
ac1cb8d3
VS
29937 grep -v '^ *+' conftest.er1 >conftest.err
29938 rm -f conftest.er1
29939 cat conftest.err >&5
a848cd7e
SC
29940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29941 (exit $ac_status); } &&
ea7db9ff
DE
29942 { ac_try='test -z "$ac_cxx_werror_flag"
29943 || test ! -s conftest.err'
ac1cb8d3
VS
29944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29945 (eval $ac_try) 2>&5
29946 ac_status=$?
29947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29948 (exit $ac_status); }; } &&
29949 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29951 (eval $ac_try) 2>&5
29952 ac_status=$?
29953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29954 (exit $ac_status); }; }; then
29955 wx_cv_type_statvfs_t=statvfs_t
29956else
29957 echo "$as_me: failed program was:" >&5
29958sed 's/^/| /' conftest.$ac_ext >&5
29959
29960
29961 cat >conftest.$ac_ext <<_ACEOF
29962/* confdefs.h. */
29963_ACEOF
29964cat confdefs.h >>conftest.$ac_ext
29965cat >>conftest.$ac_ext <<_ACEOF
29966/* end confdefs.h. */
29967
29968 #include <sys/statvfs.h>
29969
29970int
29971main ()
29972{
29973
29974 long l;
29975 struct statvfs fs;
29976 statvfs("/", &fs);
29977 l = fs.f_bsize;
29978 l += fs.f_blocks;
29979 l += fs.f_bavail;
29980
29981 ;
29982 return 0;
29983}
29984_ACEOF
29985rm -f conftest.$ac_objext
29986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29987 (eval $ac_compile) 2>conftest.er1
a848cd7e 29988 ac_status=$?
ac1cb8d3
VS
29989 grep -v '^ *+' conftest.er1 >conftest.err
29990 rm -f conftest.er1
29991 cat conftest.err >&5
a848cd7e
SC
29992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29993 (exit $ac_status); } &&
ea7db9ff
DE
29994 { ac_try='test -z "$ac_cxx_werror_flag"
29995 || test ! -s conftest.err'
ac1cb8d3
VS
29996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29997 (eval $ac_try) 2>&5
29998 ac_status=$?
29999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30000 (exit $ac_status); }; } &&
30001 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30003 (eval $ac_try) 2>&5
30004 ac_status=$?
30005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30006 (exit $ac_status); }; }; then
30007 wx_cv_type_statvfs_t="struct statvfs"
30008else
30009 echo "$as_me: failed program was:" >&5
30010sed 's/^/| /' conftest.$ac_ext >&5
30011
30012wx_cv_type_statvfs_t="unknown"
30013
30014fi
ac1cb8d3 30015rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30016
30017
30018fi
ac1cb8d3 30019rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30020
30021fi
30022echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
30023echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
30024
30025 ac_ext=c
30026ac_cpp='$CPP $CPPFLAGS'
30027ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30028ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30029ac_compiler_gnu=$ac_cv_c_compiler_gnu
30030
30031
30032 if test "$wx_cv_type_statvfs_t" != "unknown"; then
30033 cat >>confdefs.h <<\_ACEOF
30034#define HAVE_STATVFS 1
30035_ACEOF
30036
30037 fi
30038 else
30039 wx_cv_type_statvfs_t="unknown"
30040 fi
30041fi
30042
30043if test "$wx_cv_type_statvfs_t" != "unknown"; then
30044 cat >>confdefs.h <<_ACEOF
30045#define WX_STATFS_T $wx_cv_type_statvfs_t
30046_ACEOF
30047
30048else
30049 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
30050echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
30051fi
30052
30053if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
30054
30055
30056for ac_func in fcntl flock
30057do
30058as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30059echo "$as_me:$LINENO: checking for $ac_func" >&5
30060echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30061if eval "test \"\${$as_ac_var+set}\" = set"; then
30062 echo $ECHO_N "(cached) $ECHO_C" >&6
30063else
30064 cat >conftest.$ac_ext <<_ACEOF
30065/* confdefs.h. */
30066_ACEOF
30067cat confdefs.h >>conftest.$ac_ext
30068cat >>conftest.$ac_ext <<_ACEOF
30069/* end confdefs.h. */
ac1cb8d3
VS
30070/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30071 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30072#define $ac_func innocuous_$ac_func
30073
a848cd7e
SC
30074/* System header to define __stub macros and hopefully few prototypes,
30075 which can conflict with char $ac_func (); below.
30076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30077 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30078
a848cd7e
SC
30079#ifdef __STDC__
30080# include <limits.h>
30081#else
30082# include <assert.h>
30083#endif
ac1cb8d3
VS
30084
30085#undef $ac_func
30086
a848cd7e
SC
30087/* Override any gcc2 internal prototype to avoid an error. */
30088#ifdef __cplusplus
30089extern "C"
30090{
30091#endif
30092/* We use char because int might match the return type of a gcc2
30093 builtin and then its argument prototype would still apply. */
30094char $ac_func ();
30095/* The GNU C library defines this for functions which it implements
30096 to always fail with ENOSYS. Some functions are actually named
30097 something starting with __ and the normal name is an alias. */
30098#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30099choke me
30100#else
30101char (*f) () = $ac_func;
30102#endif
30103#ifdef __cplusplus
30104}
30105#endif
30106
30107int
30108main ()
30109{
30110return f != $ac_func;
30111 ;
30112 return 0;
30113}
30114_ACEOF
30115rm -f conftest.$ac_objext conftest$ac_exeext
30116if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30117 (eval $ac_link) 2>conftest.er1
a848cd7e 30118 ac_status=$?
ac1cb8d3
VS
30119 grep -v '^ *+' conftest.er1 >conftest.err
30120 rm -f conftest.er1
30121 cat conftest.err >&5
a848cd7e
SC
30122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30123 (exit $ac_status); } &&
ea7db9ff
DE
30124 { ac_try='test -z "$ac_c_werror_flag"
30125 || test ! -s conftest.err'
ac1cb8d3
VS
30126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30127 (eval $ac_try) 2>&5
30128 ac_status=$?
30129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30130 (exit $ac_status); }; } &&
30131 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30133 (eval $ac_try) 2>&5
30134 ac_status=$?
30135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30136 (exit $ac_status); }; }; then
30137 eval "$as_ac_var=yes"
30138else
30139 echo "$as_me: failed program was:" >&5
30140sed 's/^/| /' conftest.$ac_ext >&5
30141
30142eval "$as_ac_var=no"
30143fi
ac1cb8d3
VS
30144rm -f conftest.err conftest.$ac_objext \
30145 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30146fi
30147echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30148echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30149if test `eval echo '${'$as_ac_var'}'` = yes; then
30150 cat >>confdefs.h <<_ACEOF
30151#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30152_ACEOF
30153 break
30154fi
30155done
30156
30157
30158 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
30159 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
30160echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
30161 wxUSE_SNGLINST_CHECKER=no
30162 fi
30163fi
30164
30165
30166for ac_func in timegm
30167do
30168as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30169echo "$as_me:$LINENO: checking for $ac_func" >&5
30170echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30171if eval "test \"\${$as_ac_var+set}\" = set"; then
30172 echo $ECHO_N "(cached) $ECHO_C" >&6
30173else
30174 cat >conftest.$ac_ext <<_ACEOF
30175/* confdefs.h. */
30176_ACEOF
30177cat confdefs.h >>conftest.$ac_ext
30178cat >>conftest.$ac_ext <<_ACEOF
30179/* end confdefs.h. */
ac1cb8d3
VS
30180/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30181 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30182#define $ac_func innocuous_$ac_func
30183
a848cd7e
SC
30184/* System header to define __stub macros and hopefully few prototypes,
30185 which can conflict with char $ac_func (); below.
30186 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30187 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30188
a848cd7e
SC
30189#ifdef __STDC__
30190# include <limits.h>
30191#else
30192# include <assert.h>
30193#endif
ac1cb8d3
VS
30194
30195#undef $ac_func
30196
a848cd7e
SC
30197/* Override any gcc2 internal prototype to avoid an error. */
30198#ifdef __cplusplus
30199extern "C"
30200{
30201#endif
30202/* We use char because int might match the return type of a gcc2
30203 builtin and then its argument prototype would still apply. */
30204char $ac_func ();
30205/* The GNU C library defines this for functions which it implements
30206 to always fail with ENOSYS. Some functions are actually named
30207 something starting with __ and the normal name is an alias. */
30208#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30209choke me
30210#else
30211char (*f) () = $ac_func;
30212#endif
30213#ifdef __cplusplus
30214}
30215#endif
30216
30217int
30218main ()
30219{
30220return f != $ac_func;
30221 ;
30222 return 0;
30223}
30224_ACEOF
30225rm -f conftest.$ac_objext conftest$ac_exeext
30226if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30227 (eval $ac_link) 2>conftest.er1
a848cd7e 30228 ac_status=$?
ac1cb8d3
VS
30229 grep -v '^ *+' conftest.er1 >conftest.err
30230 rm -f conftest.er1
30231 cat conftest.err >&5
a848cd7e
SC
30232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30233 (exit $ac_status); } &&
ea7db9ff
DE
30234 { ac_try='test -z "$ac_c_werror_flag"
30235 || test ! -s conftest.err'
ac1cb8d3
VS
30236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30237 (eval $ac_try) 2>&5
30238 ac_status=$?
30239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30240 (exit $ac_status); }; } &&
30241 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30243 (eval $ac_try) 2>&5
30244 ac_status=$?
30245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30246 (exit $ac_status); }; }; then
30247 eval "$as_ac_var=yes"
30248else
30249 echo "$as_me: failed program was:" >&5
30250sed 's/^/| /' conftest.$ac_ext >&5
30251
30252eval "$as_ac_var=no"
30253fi
ac1cb8d3
VS
30254rm -f conftest.err conftest.$ac_objext \
30255 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30256fi
30257echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30258echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30259if test `eval echo '${'$as_ac_var'}'` = yes; then
30260 cat >>confdefs.h <<_ACEOF
30261#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30262_ACEOF
30263
30264fi
30265done
30266
30267
30268
30269
30270for ac_func in putenv setenv
30271do
30272as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30273echo "$as_me:$LINENO: checking for $ac_func" >&5
30274echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30275if eval "test \"\${$as_ac_var+set}\" = set"; then
30276 echo $ECHO_N "(cached) $ECHO_C" >&6
30277else
30278 cat >conftest.$ac_ext <<_ACEOF
30279/* confdefs.h. */
30280_ACEOF
30281cat confdefs.h >>conftest.$ac_ext
30282cat >>conftest.$ac_ext <<_ACEOF
30283/* end confdefs.h. */
ac1cb8d3
VS
30284/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30285 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30286#define $ac_func innocuous_$ac_func
30287
a848cd7e
SC
30288/* System header to define __stub macros and hopefully few prototypes,
30289 which can conflict with char $ac_func (); below.
30290 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30291 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30292
a848cd7e
SC
30293#ifdef __STDC__
30294# include <limits.h>
30295#else
30296# include <assert.h>
30297#endif
ac1cb8d3
VS
30298
30299#undef $ac_func
30300
a848cd7e
SC
30301/* Override any gcc2 internal prototype to avoid an error. */
30302#ifdef __cplusplus
30303extern "C"
30304{
30305#endif
30306/* We use char because int might match the return type of a gcc2
30307 builtin and then its argument prototype would still apply. */
30308char $ac_func ();
30309/* The GNU C library defines this for functions which it implements
30310 to always fail with ENOSYS. Some functions are actually named
30311 something starting with __ and the normal name is an alias. */
30312#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30313choke me
30314#else
30315char (*f) () = $ac_func;
30316#endif
30317#ifdef __cplusplus
30318}
30319#endif
30320
30321int
30322main ()
30323{
30324return f != $ac_func;
30325 ;
30326 return 0;
30327}
30328_ACEOF
30329rm -f conftest.$ac_objext conftest$ac_exeext
30330if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30331 (eval $ac_link) 2>conftest.er1
a848cd7e 30332 ac_status=$?
ac1cb8d3
VS
30333 grep -v '^ *+' conftest.er1 >conftest.err
30334 rm -f conftest.er1
30335 cat conftest.err >&5
a848cd7e
SC
30336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30337 (exit $ac_status); } &&
ea7db9ff
DE
30338 { ac_try='test -z "$ac_c_werror_flag"
30339 || test ! -s conftest.err'
ac1cb8d3
VS
30340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30341 (eval $ac_try) 2>&5
30342 ac_status=$?
30343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30344 (exit $ac_status); }; } &&
30345 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30347 (eval $ac_try) 2>&5
30348 ac_status=$?
30349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30350 (exit $ac_status); }; }; then
30351 eval "$as_ac_var=yes"
30352else
30353 echo "$as_me: failed program was:" >&5
30354sed 's/^/| /' conftest.$ac_ext >&5
30355
30356eval "$as_ac_var=no"
30357fi
ac1cb8d3
VS
30358rm -f conftest.err conftest.$ac_objext \
30359 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30360fi
30361echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30362echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30363if test `eval echo '${'$as_ac_var'}'` = yes; then
30364 cat >>confdefs.h <<_ACEOF
30365#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30366_ACEOF
30367 break
30368fi
30369done
30370
30371
30372HAVE_SOME_SLEEP_FUNC=0
30373if test "$USE_BEOS" = 1; then
30374 cat >>confdefs.h <<\_ACEOF
30375#define HAVE_SLEEP 1
30376_ACEOF
30377
30378 HAVE_SOME_SLEEP_FUNC=1
30379fi
30380
30381if test "$USE_DARWIN" = 1; then
30382 cat >>confdefs.h <<\_ACEOF
30383#define HAVE_USLEEP 1
30384_ACEOF
30385
30386 HAVE_SOME_SLEEP_FUNC=1
30387fi
30388
30389if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
30390 POSIX4_LINK=
30391
30392for ac_func in nanosleep
30393do
30394as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30395echo "$as_me:$LINENO: checking for $ac_func" >&5
30396echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30397if eval "test \"\${$as_ac_var+set}\" = set"; then
30398 echo $ECHO_N "(cached) $ECHO_C" >&6
30399else
30400 cat >conftest.$ac_ext <<_ACEOF
30401/* confdefs.h. */
30402_ACEOF
30403cat confdefs.h >>conftest.$ac_ext
30404cat >>conftest.$ac_ext <<_ACEOF
30405/* end confdefs.h. */
ac1cb8d3
VS
30406/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30407 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30408#define $ac_func innocuous_$ac_func
30409
a848cd7e
SC
30410/* System header to define __stub macros and hopefully few prototypes,
30411 which can conflict with char $ac_func (); below.
30412 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30413 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30414
a848cd7e
SC
30415#ifdef __STDC__
30416# include <limits.h>
30417#else
30418# include <assert.h>
30419#endif
ac1cb8d3
VS
30420
30421#undef $ac_func
30422
a848cd7e
SC
30423/* Override any gcc2 internal prototype to avoid an error. */
30424#ifdef __cplusplus
30425extern "C"
30426{
30427#endif
30428/* We use char because int might match the return type of a gcc2
30429 builtin and then its argument prototype would still apply. */
30430char $ac_func ();
30431/* The GNU C library defines this for functions which it implements
30432 to always fail with ENOSYS. Some functions are actually named
30433 something starting with __ and the normal name is an alias. */
30434#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30435choke me
30436#else
30437char (*f) () = $ac_func;
30438#endif
30439#ifdef __cplusplus
30440}
30441#endif
30442
30443int
30444main ()
30445{
30446return f != $ac_func;
30447 ;
30448 return 0;
30449}
30450_ACEOF
30451rm -f conftest.$ac_objext conftest$ac_exeext
30452if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30453 (eval $ac_link) 2>conftest.er1
a848cd7e 30454 ac_status=$?
ac1cb8d3
VS
30455 grep -v '^ *+' conftest.er1 >conftest.err
30456 rm -f conftest.er1
30457 cat conftest.err >&5
a848cd7e
SC
30458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30459 (exit $ac_status); } &&
ea7db9ff
DE
30460 { ac_try='test -z "$ac_c_werror_flag"
30461 || test ! -s conftest.err'
ac1cb8d3
VS
30462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30463 (eval $ac_try) 2>&5
30464 ac_status=$?
30465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30466 (exit $ac_status); }; } &&
30467 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30469 (eval $ac_try) 2>&5
30470 ac_status=$?
30471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30472 (exit $ac_status); }; }; then
30473 eval "$as_ac_var=yes"
30474else
30475 echo "$as_me: failed program was:" >&5
30476sed 's/^/| /' conftest.$ac_ext >&5
30477
30478eval "$as_ac_var=no"
30479fi
ac1cb8d3
VS
30480rm -f conftest.err conftest.$ac_objext \
30481 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30482fi
30483echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30484echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30485if test `eval echo '${'$as_ac_var'}'` = yes; then
30486 cat >>confdefs.h <<_ACEOF
30487#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30488_ACEOF
30489 cat >>confdefs.h <<\_ACEOF
30490#define HAVE_NANOSLEEP 1
30491_ACEOF
30492
30493else
30494
30495 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
30496echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
30497if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
30498 echo $ECHO_N "(cached) $ECHO_C" >&6
30499else
30500 ac_check_lib_save_LIBS=$LIBS
30501LIBS="-lposix4 $LIBS"
30502cat >conftest.$ac_ext <<_ACEOF
30503/* confdefs.h. */
30504_ACEOF
30505cat confdefs.h >>conftest.$ac_ext
30506cat >>conftest.$ac_ext <<_ACEOF
30507/* end confdefs.h. */
30508
30509/* Override any gcc2 internal prototype to avoid an error. */
30510#ifdef __cplusplus
30511extern "C"
30512#endif
30513/* We use char because int might match the return type of a gcc2
30514 builtin and then its argument prototype would still apply. */
30515char nanosleep ();
30516int
30517main ()
30518{
30519nanosleep ();
30520 ;
30521 return 0;
30522}
30523_ACEOF
30524rm -f conftest.$ac_objext conftest$ac_exeext
30525if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30526 (eval $ac_link) 2>conftest.er1
a848cd7e 30527 ac_status=$?
ac1cb8d3
VS
30528 grep -v '^ *+' conftest.er1 >conftest.err
30529 rm -f conftest.er1
30530 cat conftest.err >&5
a848cd7e
SC
30531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30532 (exit $ac_status); } &&
ea7db9ff
DE
30533 { ac_try='test -z "$ac_c_werror_flag"
30534 || test ! -s conftest.err'
ac1cb8d3
VS
30535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30536 (eval $ac_try) 2>&5
30537 ac_status=$?
30538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30539 (exit $ac_status); }; } &&
30540 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30542 (eval $ac_try) 2>&5
30543 ac_status=$?
30544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30545 (exit $ac_status); }; }; then
30546 ac_cv_lib_posix4_nanosleep=yes
30547else
30548 echo "$as_me: failed program was:" >&5
30549sed 's/^/| /' conftest.$ac_ext >&5
30550
30551ac_cv_lib_posix4_nanosleep=no
30552fi
ac1cb8d3
VS
30553rm -f conftest.err conftest.$ac_objext \
30554 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30555LIBS=$ac_check_lib_save_LIBS
30556fi
30557echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
30558echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
30559if test $ac_cv_lib_posix4_nanosleep = yes; then
30560
30561 cat >>confdefs.h <<\_ACEOF
30562#define HAVE_NANOSLEEP 1
30563_ACEOF
30564
30565 POSIX4_LINK=" -lposix4"
30566
30567else
30568
30569
30570for ac_func in usleep
30571do
30572as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30573echo "$as_me:$LINENO: checking for $ac_func" >&5
30574echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30575if eval "test \"\${$as_ac_var+set}\" = set"; then
30576 echo $ECHO_N "(cached) $ECHO_C" >&6
30577else
30578 cat >conftest.$ac_ext <<_ACEOF
30579/* confdefs.h. */
30580_ACEOF
30581cat confdefs.h >>conftest.$ac_ext
30582cat >>conftest.$ac_ext <<_ACEOF
30583/* end confdefs.h. */
ac1cb8d3
VS
30584/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30586#define $ac_func innocuous_$ac_func
30587
a848cd7e
SC
30588/* System header to define __stub macros and hopefully few prototypes,
30589 which can conflict with char $ac_func (); below.
30590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30591 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30592
a848cd7e
SC
30593#ifdef __STDC__
30594# include <limits.h>
30595#else
30596# include <assert.h>
30597#endif
ac1cb8d3
VS
30598
30599#undef $ac_func
30600
a848cd7e
SC
30601/* Override any gcc2 internal prototype to avoid an error. */
30602#ifdef __cplusplus
30603extern "C"
30604{
30605#endif
30606/* We use char because int might match the return type of a gcc2
30607 builtin and then its argument prototype would still apply. */
30608char $ac_func ();
30609/* The GNU C library defines this for functions which it implements
30610 to always fail with ENOSYS. Some functions are actually named
30611 something starting with __ and the normal name is an alias. */
30612#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30613choke me
30614#else
30615char (*f) () = $ac_func;
30616#endif
30617#ifdef __cplusplus
30618}
30619#endif
30620
30621int
30622main ()
30623{
30624return f != $ac_func;
30625 ;
30626 return 0;
30627}
30628_ACEOF
30629rm -f conftest.$ac_objext conftest$ac_exeext
30630if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30631 (eval $ac_link) 2>conftest.er1
a848cd7e 30632 ac_status=$?
ac1cb8d3
VS
30633 grep -v '^ *+' conftest.er1 >conftest.err
30634 rm -f conftest.er1
30635 cat conftest.err >&5
a848cd7e
SC
30636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30637 (exit $ac_status); } &&
ea7db9ff
DE
30638 { ac_try='test -z "$ac_c_werror_flag"
30639 || test ! -s conftest.err'
ac1cb8d3
VS
30640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30641 (eval $ac_try) 2>&5
30642 ac_status=$?
30643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30644 (exit $ac_status); }; } &&
30645 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30647 (eval $ac_try) 2>&5
30648 ac_status=$?
30649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30650 (exit $ac_status); }; }; then
30651 eval "$as_ac_var=yes"
30652else
30653 echo "$as_me: failed program was:" >&5
30654sed 's/^/| /' conftest.$ac_ext >&5
30655
30656eval "$as_ac_var=no"
30657fi
ac1cb8d3
VS
30658rm -f conftest.err conftest.$ac_objext \
30659 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30660fi
30661echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30662echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30663if test `eval echo '${'$as_ac_var'}'` = yes; then
30664 cat >>confdefs.h <<_ACEOF
30665#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30666_ACEOF
30667 cat >>confdefs.h <<\_ACEOF
30668#define HAVE_USLEEP 1
30669_ACEOF
30670
30671else
30672 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
30673echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
30674
30675fi
30676done
30677
30678
30679
30680fi
30681
30682
30683
30684fi
30685done
30686
30687fi
30688
30689
30690
30691for ac_func in uname gethostname
30692do
30693as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30694echo "$as_me:$LINENO: checking for $ac_func" >&5
30695echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30696if eval "test \"\${$as_ac_var+set}\" = set"; then
30697 echo $ECHO_N "(cached) $ECHO_C" >&6
30698else
30699 cat >conftest.$ac_ext <<_ACEOF
30700/* confdefs.h. */
30701_ACEOF
30702cat confdefs.h >>conftest.$ac_ext
30703cat >>conftest.$ac_ext <<_ACEOF
30704/* end confdefs.h. */
ac1cb8d3
VS
30705/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30706 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30707#define $ac_func innocuous_$ac_func
30708
a848cd7e
SC
30709/* System header to define __stub macros and hopefully few prototypes,
30710 which can conflict with char $ac_func (); below.
30711 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30712 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30713
a848cd7e
SC
30714#ifdef __STDC__
30715# include <limits.h>
30716#else
30717# include <assert.h>
30718#endif
ac1cb8d3
VS
30719
30720#undef $ac_func
30721
a848cd7e
SC
30722/* Override any gcc2 internal prototype to avoid an error. */
30723#ifdef __cplusplus
30724extern "C"
30725{
30726#endif
30727/* We use char because int might match the return type of a gcc2
30728 builtin and then its argument prototype would still apply. */
30729char $ac_func ();
30730/* The GNU C library defines this for functions which it implements
30731 to always fail with ENOSYS. Some functions are actually named
30732 something starting with __ and the normal name is an alias. */
30733#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30734choke me
30735#else
30736char (*f) () = $ac_func;
30737#endif
30738#ifdef __cplusplus
30739}
30740#endif
30741
30742int
30743main ()
30744{
30745return f != $ac_func;
30746 ;
30747 return 0;
30748}
30749_ACEOF
30750rm -f conftest.$ac_objext conftest$ac_exeext
30751if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30752 (eval $ac_link) 2>conftest.er1
a848cd7e 30753 ac_status=$?
ac1cb8d3
VS
30754 grep -v '^ *+' conftest.er1 >conftest.err
30755 rm -f conftest.er1
30756 cat conftest.err >&5
a848cd7e
SC
30757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30758 (exit $ac_status); } &&
ea7db9ff
DE
30759 { ac_try='test -z "$ac_c_werror_flag"
30760 || test ! -s conftest.err'
ac1cb8d3
VS
30761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30762 (eval $ac_try) 2>&5
30763 ac_status=$?
30764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30765 (exit $ac_status); }; } &&
30766 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30768 (eval $ac_try) 2>&5
30769 ac_status=$?
30770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30771 (exit $ac_status); }; }; then
30772 eval "$as_ac_var=yes"
30773else
30774 echo "$as_me: failed program was:" >&5
30775sed 's/^/| /' conftest.$ac_ext >&5
30776
30777eval "$as_ac_var=no"
30778fi
ac1cb8d3
VS
30779rm -f conftest.err conftest.$ac_objext \
30780 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30781fi
30782echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30783echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30784if test `eval echo '${'$as_ac_var'}'` = yes; then
30785 cat >>confdefs.h <<_ACEOF
30786#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30787_ACEOF
30788 break
30789fi
30790done
30791
30792
30793
30794
30795ac_ext=cc
30796ac_cpp='$CXXCPP $CPPFLAGS'
30797ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30798ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30799ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30800
30801
30802
30803for ac_func in strtok_r
30804do
30805as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30806echo "$as_me:$LINENO: checking for $ac_func" >&5
30807echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30808if eval "test \"\${$as_ac_var+set}\" = set"; then
30809 echo $ECHO_N "(cached) $ECHO_C" >&6
30810else
30811 cat >conftest.$ac_ext <<_ACEOF
30812/* confdefs.h. */
30813_ACEOF
30814cat confdefs.h >>conftest.$ac_ext
30815cat >>conftest.$ac_ext <<_ACEOF
30816/* end confdefs.h. */
ac1cb8d3
VS
30817/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30818 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30819#define $ac_func innocuous_$ac_func
30820
a848cd7e
SC
30821/* System header to define __stub macros and hopefully few prototypes,
30822 which can conflict with char $ac_func (); below.
30823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30824 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30825
a848cd7e
SC
30826#ifdef __STDC__
30827# include <limits.h>
30828#else
30829# include <assert.h>
30830#endif
ac1cb8d3
VS
30831
30832#undef $ac_func
30833
a848cd7e
SC
30834/* Override any gcc2 internal prototype to avoid an error. */
30835#ifdef __cplusplus
30836extern "C"
30837{
30838#endif
30839/* We use char because int might match the return type of a gcc2
30840 builtin and then its argument prototype would still apply. */
30841char $ac_func ();
30842/* The GNU C library defines this for functions which it implements
30843 to always fail with ENOSYS. Some functions are actually named
30844 something starting with __ and the normal name is an alias. */
30845#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30846choke me
30847#else
30848char (*f) () = $ac_func;
30849#endif
30850#ifdef __cplusplus
30851}
30852#endif
30853
30854int
30855main ()
30856{
30857return f != $ac_func;
30858 ;
30859 return 0;
30860}
30861_ACEOF
30862rm -f conftest.$ac_objext conftest$ac_exeext
30863if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30864 (eval $ac_link) 2>conftest.er1
a848cd7e 30865 ac_status=$?
ac1cb8d3
VS
30866 grep -v '^ *+' conftest.er1 >conftest.err
30867 rm -f conftest.er1
30868 cat conftest.err >&5
a848cd7e
SC
30869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30870 (exit $ac_status); } &&
ea7db9ff
DE
30871 { ac_try='test -z "$ac_cxx_werror_flag"
30872 || test ! -s conftest.err'
ac1cb8d3
VS
30873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30874 (eval $ac_try) 2>&5
30875 ac_status=$?
30876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30877 (exit $ac_status); }; } &&
30878 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30880 (eval $ac_try) 2>&5
30881 ac_status=$?
30882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30883 (exit $ac_status); }; }; then
30884 eval "$as_ac_var=yes"
30885else
30886 echo "$as_me: failed program was:" >&5
30887sed 's/^/| /' conftest.$ac_ext >&5
30888
30889eval "$as_ac_var=no"
30890fi
ac1cb8d3
VS
30891rm -f conftest.err conftest.$ac_objext \
30892 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30893fi
30894echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30895echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30896if test `eval echo '${'$as_ac_var'}'` = yes; then
30897 cat >>confdefs.h <<_ACEOF
30898#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30899_ACEOF
30900
30901fi
30902done
30903
30904
30905ac_ext=c
30906ac_cpp='$CPP $CPPFLAGS'
30907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30909ac_compiler_gnu=$ac_cv_c_compiler_gnu
30910
30911
30912INET_LINK=
30913
30914for ac_func in inet_addr
30915do
30916as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30917echo "$as_me:$LINENO: checking for $ac_func" >&5
30918echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30919if eval "test \"\${$as_ac_var+set}\" = set"; then
30920 echo $ECHO_N "(cached) $ECHO_C" >&6
30921else
30922 cat >conftest.$ac_ext <<_ACEOF
30923/* confdefs.h. */
30924_ACEOF
30925cat confdefs.h >>conftest.$ac_ext
30926cat >>conftest.$ac_ext <<_ACEOF
30927/* end confdefs.h. */
ac1cb8d3
VS
30928/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30929 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30930#define $ac_func innocuous_$ac_func
30931
a848cd7e
SC
30932/* System header to define __stub macros and hopefully few prototypes,
30933 which can conflict with char $ac_func (); below.
30934 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30935 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30936
a848cd7e
SC
30937#ifdef __STDC__
30938# include <limits.h>
30939#else
30940# include <assert.h>
30941#endif
ac1cb8d3
VS
30942
30943#undef $ac_func
30944
a848cd7e
SC
30945/* Override any gcc2 internal prototype to avoid an error. */
30946#ifdef __cplusplus
30947extern "C"
30948{
30949#endif
30950/* We use char because int might match the return type of a gcc2
30951 builtin and then its argument prototype would still apply. */
30952char $ac_func ();
30953/* The GNU C library defines this for functions which it implements
30954 to always fail with ENOSYS. Some functions are actually named
30955 something starting with __ and the normal name is an alias. */
30956#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30957choke me
30958#else
30959char (*f) () = $ac_func;
30960#endif
30961#ifdef __cplusplus
30962}
30963#endif
30964
30965int
30966main ()
30967{
30968return f != $ac_func;
30969 ;
30970 return 0;
30971}
30972_ACEOF
30973rm -f conftest.$ac_objext conftest$ac_exeext
30974if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30975 (eval $ac_link) 2>conftest.er1
a848cd7e 30976 ac_status=$?
ac1cb8d3
VS
30977 grep -v '^ *+' conftest.er1 >conftest.err
30978 rm -f conftest.er1
30979 cat conftest.err >&5
a848cd7e
SC
30980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30981 (exit $ac_status); } &&
ea7db9ff
DE
30982 { ac_try='test -z "$ac_c_werror_flag"
30983 || test ! -s conftest.err'
ac1cb8d3
VS
30984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30985 (eval $ac_try) 2>&5
30986 ac_status=$?
30987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30988 (exit $ac_status); }; } &&
30989 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30991 (eval $ac_try) 2>&5
30992 ac_status=$?
30993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30994 (exit $ac_status); }; }; then
30995 eval "$as_ac_var=yes"
30996else
30997 echo "$as_me: failed program was:" >&5
30998sed 's/^/| /' conftest.$ac_ext >&5
30999
31000eval "$as_ac_var=no"
31001fi
ac1cb8d3
VS
31002rm -f conftest.err conftest.$ac_objext \
31003 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31004fi
31005echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31006echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31007if test `eval echo '${'$as_ac_var'}'` = yes; then
31008 cat >>confdefs.h <<_ACEOF
31009#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31010_ACEOF
31011 cat >>confdefs.h <<\_ACEOF
31012#define HAVE_INET_ADDR 1
31013_ACEOF
31014
31015else
31016
31017 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
31018echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
31019if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
31020 echo $ECHO_N "(cached) $ECHO_C" >&6
31021else
31022 ac_check_lib_save_LIBS=$LIBS
31023LIBS="-lnsl $LIBS"
31024cat >conftest.$ac_ext <<_ACEOF
31025/* confdefs.h. */
31026_ACEOF
31027cat confdefs.h >>conftest.$ac_ext
31028cat >>conftest.$ac_ext <<_ACEOF
31029/* end confdefs.h. */
31030
31031/* Override any gcc2 internal prototype to avoid an error. */
31032#ifdef __cplusplus
31033extern "C"
31034#endif
31035/* We use char because int might match the return type of a gcc2
31036 builtin and then its argument prototype would still apply. */
31037char inet_addr ();
31038int
31039main ()
31040{
31041inet_addr ();
31042 ;
31043 return 0;
31044}
31045_ACEOF
31046rm -f conftest.$ac_objext conftest$ac_exeext
31047if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31048 (eval $ac_link) 2>conftest.er1
a848cd7e 31049 ac_status=$?
ac1cb8d3
VS
31050 grep -v '^ *+' conftest.er1 >conftest.err
31051 rm -f conftest.er1
31052 cat conftest.err >&5
a848cd7e
SC
31053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31054 (exit $ac_status); } &&
ea7db9ff
DE
31055 { ac_try='test -z "$ac_c_werror_flag"
31056 || test ! -s conftest.err'
ac1cb8d3
VS
31057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31058 (eval $ac_try) 2>&5
31059 ac_status=$?
31060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31061 (exit $ac_status); }; } &&
31062 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31064 (eval $ac_try) 2>&5
31065 ac_status=$?
31066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31067 (exit $ac_status); }; }; then
31068 ac_cv_lib_nsl_inet_addr=yes
31069else
31070 echo "$as_me: failed program was:" >&5
31071sed 's/^/| /' conftest.$ac_ext >&5
31072
31073ac_cv_lib_nsl_inet_addr=no
31074fi
ac1cb8d3
VS
31075rm -f conftest.err conftest.$ac_objext \
31076 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31077LIBS=$ac_check_lib_save_LIBS
31078fi
31079echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
31080echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
31081if test $ac_cv_lib_nsl_inet_addr = yes; then
31082 INET_LINK="nsl"
31083else
31084
31085 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
31086echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
31087if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
31088 echo $ECHO_N "(cached) $ECHO_C" >&6
31089else
31090 ac_check_lib_save_LIBS=$LIBS
31091LIBS="-lresolv $LIBS"
31092cat >conftest.$ac_ext <<_ACEOF
31093/* confdefs.h. */
31094_ACEOF
31095cat confdefs.h >>conftest.$ac_ext
31096cat >>conftest.$ac_ext <<_ACEOF
31097/* end confdefs.h. */
31098
31099/* Override any gcc2 internal prototype to avoid an error. */
31100#ifdef __cplusplus
31101extern "C"
31102#endif
31103/* We use char because int might match the return type of a gcc2
31104 builtin and then its argument prototype would still apply. */
31105char inet_addr ();
31106int
31107main ()
31108{
31109inet_addr ();
31110 ;
31111 return 0;
31112}
31113_ACEOF
31114rm -f conftest.$ac_objext conftest$ac_exeext
31115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31116 (eval $ac_link) 2>conftest.er1
a848cd7e 31117 ac_status=$?
ac1cb8d3
VS
31118 grep -v '^ *+' conftest.er1 >conftest.err
31119 rm -f conftest.er1
31120 cat conftest.err >&5
a848cd7e
SC
31121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31122 (exit $ac_status); } &&
ea7db9ff
DE
31123 { ac_try='test -z "$ac_c_werror_flag"
31124 || test ! -s conftest.err'
ac1cb8d3
VS
31125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31126 (eval $ac_try) 2>&5
31127 ac_status=$?
31128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31129 (exit $ac_status); }; } &&
31130 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31132 (eval $ac_try) 2>&5
31133 ac_status=$?
31134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31135 (exit $ac_status); }; }; then
31136 ac_cv_lib_resolv_inet_addr=yes
31137else
31138 echo "$as_me: failed program was:" >&5
31139sed 's/^/| /' conftest.$ac_ext >&5
31140
31141ac_cv_lib_resolv_inet_addr=no
31142fi
ac1cb8d3
VS
31143rm -f conftest.err conftest.$ac_objext \
31144 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31145LIBS=$ac_check_lib_save_LIBS
31146fi
31147echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
31148echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
31149if test $ac_cv_lib_resolv_inet_addr = yes; then
31150 INET_LINK="resolv"
31151else
31152
31153 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
31154echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
31155if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
31156 echo $ECHO_N "(cached) $ECHO_C" >&6
31157else
31158 ac_check_lib_save_LIBS=$LIBS
31159LIBS="-lsocket $LIBS"
31160cat >conftest.$ac_ext <<_ACEOF
31161/* confdefs.h. */
31162_ACEOF
31163cat confdefs.h >>conftest.$ac_ext
31164cat >>conftest.$ac_ext <<_ACEOF
31165/* end confdefs.h. */
31166
31167/* Override any gcc2 internal prototype to avoid an error. */
31168#ifdef __cplusplus
31169extern "C"
31170#endif
31171/* We use char because int might match the return type of a gcc2
31172 builtin and then its argument prototype would still apply. */
31173char inet_addr ();
31174int
31175main ()
31176{
31177inet_addr ();
31178 ;
31179 return 0;
31180}
31181_ACEOF
31182rm -f conftest.$ac_objext conftest$ac_exeext
31183if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31184 (eval $ac_link) 2>conftest.er1
a848cd7e 31185 ac_status=$?
ac1cb8d3
VS
31186 grep -v '^ *+' conftest.er1 >conftest.err
31187 rm -f conftest.er1
31188 cat conftest.err >&5
a848cd7e
SC
31189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31190 (exit $ac_status); } &&
ea7db9ff
DE
31191 { ac_try='test -z "$ac_c_werror_flag"
31192 || test ! -s conftest.err'
ac1cb8d3
VS
31193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31194 (eval $ac_try) 2>&5
31195 ac_status=$?
31196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31197 (exit $ac_status); }; } &&
31198 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31200 (eval $ac_try) 2>&5
31201 ac_status=$?
31202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31203 (exit $ac_status); }; }; then
31204 ac_cv_lib_socket_inet_addr=yes
31205else
31206 echo "$as_me: failed program was:" >&5
31207sed 's/^/| /' conftest.$ac_ext >&5
31208
31209ac_cv_lib_socket_inet_addr=no
31210fi
ac1cb8d3
VS
31211rm -f conftest.err conftest.$ac_objext \
31212 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31213LIBS=$ac_check_lib_save_LIBS
31214fi
31215echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
31216echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
31217if test $ac_cv_lib_socket_inet_addr = yes; then
31218 INET_LINK="socket"
31219
31220fi
31221
31222
31223
31224fi
31225
31226
31227
31228fi
31229
31230
31231
31232fi
31233done
31234
31235
31236
31237for ac_func in inet_aton
31238do
31239as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31240echo "$as_me:$LINENO: checking for $ac_func" >&5
31241echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31242if eval "test \"\${$as_ac_var+set}\" = set"; then
31243 echo $ECHO_N "(cached) $ECHO_C" >&6
31244else
31245 cat >conftest.$ac_ext <<_ACEOF
31246/* confdefs.h. */
31247_ACEOF
31248cat confdefs.h >>conftest.$ac_ext
31249cat >>conftest.$ac_ext <<_ACEOF
31250/* end confdefs.h. */
ac1cb8d3
VS
31251/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31252 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31253#define $ac_func innocuous_$ac_func
31254
a848cd7e
SC
31255/* System header to define __stub macros and hopefully few prototypes,
31256 which can conflict with char $ac_func (); below.
31257 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31258 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31259
a848cd7e
SC
31260#ifdef __STDC__
31261# include <limits.h>
31262#else
31263# include <assert.h>
31264#endif
ac1cb8d3
VS
31265
31266#undef $ac_func
31267
a848cd7e
SC
31268/* Override any gcc2 internal prototype to avoid an error. */
31269#ifdef __cplusplus
31270extern "C"
31271{
31272#endif
31273/* We use char because int might match the return type of a gcc2
31274 builtin and then its argument prototype would still apply. */
31275char $ac_func ();
31276/* The GNU C library defines this for functions which it implements
31277 to always fail with ENOSYS. Some functions are actually named
31278 something starting with __ and the normal name is an alias. */
31279#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31280choke me
31281#else
31282char (*f) () = $ac_func;
31283#endif
31284#ifdef __cplusplus
31285}
31286#endif
31287
31288int
31289main ()
31290{
31291return f != $ac_func;
31292 ;
31293 return 0;
31294}
31295_ACEOF
31296rm -f conftest.$ac_objext conftest$ac_exeext
31297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31298 (eval $ac_link) 2>conftest.er1
a848cd7e 31299 ac_status=$?
ac1cb8d3
VS
31300 grep -v '^ *+' conftest.er1 >conftest.err
31301 rm -f conftest.er1
31302 cat conftest.err >&5
a848cd7e
SC
31303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31304 (exit $ac_status); } &&
ea7db9ff
DE
31305 { ac_try='test -z "$ac_c_werror_flag"
31306 || test ! -s conftest.err'
ac1cb8d3
VS
31307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31308 (eval $ac_try) 2>&5
31309 ac_status=$?
31310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31311 (exit $ac_status); }; } &&
31312 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31314 (eval $ac_try) 2>&5
31315 ac_status=$?
31316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31317 (exit $ac_status); }; }; then
31318 eval "$as_ac_var=yes"
31319else
31320 echo "$as_me: failed program was:" >&5
31321sed 's/^/| /' conftest.$ac_ext >&5
31322
31323eval "$as_ac_var=no"
31324fi
ac1cb8d3
VS
31325rm -f conftest.err conftest.$ac_objext \
31326 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31327fi
31328echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31329echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31330if test `eval echo '${'$as_ac_var'}'` = yes; then
31331 cat >>confdefs.h <<_ACEOF
31332#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31333_ACEOF
31334 cat >>confdefs.h <<\_ACEOF
31335#define HAVE_INET_ATON 1
31336_ACEOF
31337
31338else
31339
31340 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
31341echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
31342echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
31343if eval "test \"\${$as_ac_Lib+set}\" = set"; then
31344 echo $ECHO_N "(cached) $ECHO_C" >&6
31345else
31346 ac_check_lib_save_LIBS=$LIBS
31347LIBS="-l$INET_LINK $LIBS"
31348cat >conftest.$ac_ext <<_ACEOF
31349/* confdefs.h. */
31350_ACEOF
31351cat confdefs.h >>conftest.$ac_ext
31352cat >>conftest.$ac_ext <<_ACEOF
31353/* end confdefs.h. */
31354
31355/* Override any gcc2 internal prototype to avoid an error. */
31356#ifdef __cplusplus
31357extern "C"
31358#endif
31359/* We use char because int might match the return type of a gcc2
31360 builtin and then its argument prototype would still apply. */
31361char inet_aton ();
31362int
31363main ()
31364{
31365inet_aton ();
31366 ;
31367 return 0;
31368}
31369_ACEOF
31370rm -f conftest.$ac_objext conftest$ac_exeext
31371if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31372 (eval $ac_link) 2>conftest.er1
a848cd7e 31373 ac_status=$?
ac1cb8d3
VS
31374 grep -v '^ *+' conftest.er1 >conftest.err
31375 rm -f conftest.er1
31376 cat conftest.err >&5
a848cd7e
SC
31377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31378 (exit $ac_status); } &&
ea7db9ff
DE
31379 { ac_try='test -z "$ac_c_werror_flag"
31380 || test ! -s conftest.err'
ac1cb8d3
VS
31381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31382 (eval $ac_try) 2>&5
31383 ac_status=$?
31384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31385 (exit $ac_status); }; } &&
31386 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31388 (eval $ac_try) 2>&5
31389 ac_status=$?
31390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31391 (exit $ac_status); }; }; then
31392 eval "$as_ac_Lib=yes"
31393else
31394 echo "$as_me: failed program was:" >&5
31395sed 's/^/| /' conftest.$ac_ext >&5
31396
31397eval "$as_ac_Lib=no"
31398fi
ac1cb8d3
VS
31399rm -f conftest.err conftest.$ac_objext \
31400 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31401LIBS=$ac_check_lib_save_LIBS
31402fi
31403echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
31404echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
31405if test `eval echo '${'$as_ac_Lib'}'` = yes; then
31406 cat >>confdefs.h <<\_ACEOF
31407#define HAVE_INET_ATON 1
31408_ACEOF
31409
31410fi
31411
31412
31413fi
31414done
31415
31416
31417if test "x$INET_LINK" != "x"; then
31418 cat >>confdefs.h <<\_ACEOF
31419#define HAVE_INET_ADDR 1
31420_ACEOF
31421
31422 INET_LINK=" -l$INET_LINK"
31423fi
31424
31425fi
31426
31427
31428
31429EXTRALIBS_ESD=
31430echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
31431echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
31432if test "${ac_cv_lib_esd_esd_close+set}" = set; then
31433 echo $ECHO_N "(cached) $ECHO_C" >&6
31434else
31435 ac_check_lib_save_LIBS=$LIBS
31436LIBS="-lesd $LIBS"
31437cat >conftest.$ac_ext <<_ACEOF
31438/* confdefs.h. */
31439_ACEOF
31440cat confdefs.h >>conftest.$ac_ext
31441cat >>conftest.$ac_ext <<_ACEOF
31442/* end confdefs.h. */
31443
31444/* Override any gcc2 internal prototype to avoid an error. */
31445#ifdef __cplusplus
31446extern "C"
31447#endif
31448/* We use char because int might match the return type of a gcc2
31449 builtin and then its argument prototype would still apply. */
31450char esd_close ();
31451int
31452main ()
31453{
31454esd_close ();
31455 ;
31456 return 0;
31457}
31458_ACEOF
31459rm -f conftest.$ac_objext conftest$ac_exeext
31460if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31461 (eval $ac_link) 2>conftest.er1
a848cd7e 31462 ac_status=$?
ac1cb8d3
VS
31463 grep -v '^ *+' conftest.er1 >conftest.err
31464 rm -f conftest.er1
31465 cat conftest.err >&5
a848cd7e
SC
31466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31467 (exit $ac_status); } &&
ea7db9ff
DE
31468 { ac_try='test -z "$ac_c_werror_flag"
31469 || test ! -s conftest.err'
ac1cb8d3
VS
31470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31471 (eval $ac_try) 2>&5
31472 ac_status=$?
31473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31474 (exit $ac_status); }; } &&
31475 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31477 (eval $ac_try) 2>&5
31478 ac_status=$?
31479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31480 (exit $ac_status); }; }; then
31481 ac_cv_lib_esd_esd_close=yes
31482else
31483 echo "$as_me: failed program was:" >&5
31484sed 's/^/| /' conftest.$ac_ext >&5
31485
31486ac_cv_lib_esd_esd_close=no
31487fi
ac1cb8d3
VS
31488rm -f conftest.err conftest.$ac_objext \
31489 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31490LIBS=$ac_check_lib_save_LIBS
31491fi
31492echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
31493echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
31494if test $ac_cv_lib_esd_esd_close = yes; then
31495
31496
31497for ac_header in esd.h
31498do
31499as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31500if eval "test \"\${$as_ac_Header+set}\" = set"; then
31501 echo "$as_me:$LINENO: checking for $ac_header" >&5
31502echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31503if eval "test \"\${$as_ac_Header+set}\" = set"; then
31504 echo $ECHO_N "(cached) $ECHO_C" >&6
31505fi
31506echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31507echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31508else
31509 # Is the header compilable?
31510echo "$as_me:$LINENO: checking $ac_header usability" >&5
31511echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31512cat >conftest.$ac_ext <<_ACEOF
31513/* confdefs.h. */
31514_ACEOF
31515cat confdefs.h >>conftest.$ac_ext
31516cat >>conftest.$ac_ext <<_ACEOF
31517/* end confdefs.h. */
31518$ac_includes_default
31519#include <$ac_header>
31520_ACEOF
31521rm -f conftest.$ac_objext
31522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31523 (eval $ac_compile) 2>conftest.er1
a848cd7e 31524 ac_status=$?
ac1cb8d3
VS
31525 grep -v '^ *+' conftest.er1 >conftest.err
31526 rm -f conftest.er1
31527 cat conftest.err >&5
a848cd7e
SC
31528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31529 (exit $ac_status); } &&
ea7db9ff
DE
31530 { ac_try='test -z "$ac_c_werror_flag"
31531 || test ! -s conftest.err'
ac1cb8d3
VS
31532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31533 (eval $ac_try) 2>&5
31534 ac_status=$?
31535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31536 (exit $ac_status); }; } &&
31537 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31539 (eval $ac_try) 2>&5
31540 ac_status=$?
31541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31542 (exit $ac_status); }; }; then
31543 ac_header_compiler=yes
31544else
31545 echo "$as_me: failed program was:" >&5
31546sed 's/^/| /' conftest.$ac_ext >&5
31547
31548ac_header_compiler=no
31549fi
ac1cb8d3 31550rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31551echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31552echo "${ECHO_T}$ac_header_compiler" >&6
31553
31554# Is the header present?
31555echo "$as_me:$LINENO: checking $ac_header presence" >&5
31556echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31557cat >conftest.$ac_ext <<_ACEOF
31558/* confdefs.h. */
31559_ACEOF
31560cat confdefs.h >>conftest.$ac_ext
31561cat >>conftest.$ac_ext <<_ACEOF
31562/* end confdefs.h. */
31563#include <$ac_header>
31564_ACEOF
31565if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31566 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31567 ac_status=$?
31568 grep -v '^ *+' conftest.er1 >conftest.err
31569 rm -f conftest.er1
31570 cat conftest.err >&5
31571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31572 (exit $ac_status); } >/dev/null; then
31573 if test -s conftest.err; then
31574 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 31575 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
31576 else
31577 ac_cpp_err=
31578 fi
31579else
31580 ac_cpp_err=yes
31581fi
31582if test -z "$ac_cpp_err"; then
31583 ac_header_preproc=yes
31584else
31585 echo "$as_me: failed program was:" >&5
31586sed 's/^/| /' conftest.$ac_ext >&5
31587
31588 ac_header_preproc=no
31589fi
31590rm -f conftest.err conftest.$ac_ext
31591echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31592echo "${ECHO_T}$ac_header_preproc" >&6
31593
31594# So? What about this header?
ac1cb8d3
VS
31595case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31596 yes:no: )
a848cd7e
SC
31597 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31598echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
31599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31600echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31601 ac_header_preproc=yes
a848cd7e 31602 ;;
ac1cb8d3 31603 no:yes:* )
a848cd7e
SC
31604 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31605echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
31606 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31607echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31608 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31609echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31610 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31611echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
31612 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31613echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
31614 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31615echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
31616 (
31617 cat <<\_ASBOX
ac1cb8d3
VS
31618## ----------------------------------------- ##
31619## Report this to wx-dev@lists.wxwidgets.org ##
31620## ----------------------------------------- ##
a848cd7e
SC
31621_ASBOX
31622 ) |
31623 sed "s/^/$as_me: WARNING: /" >&2
31624 ;;
31625esac
31626echo "$as_me:$LINENO: checking for $ac_header" >&5
31627echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31628if eval "test \"\${$as_ac_Header+set}\" = set"; then
31629 echo $ECHO_N "(cached) $ECHO_C" >&6
31630else
ac1cb8d3 31631 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
31632fi
31633echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31634echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31635
31636fi
31637if test `eval echo '${'$as_ac_Header'}'` = yes; then
31638 cat >>confdefs.h <<_ACEOF
31639#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31640_ACEOF
31641
31642 EXTRALIBS_ESD="-lesd"
31643
31644fi
31645
31646done
31647
31648
31649fi
31650
31651
31652
31653echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
31654echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
31655cat >conftest.$ac_ext <<_ACEOF
31656/* confdefs.h. */
31657_ACEOF
31658cat confdefs.h >>conftest.$ac_ext
31659cat >>conftest.$ac_ext <<_ACEOF
31660/* end confdefs.h. */
31661#ifdef __linux__
31662 #include <linux/cdrom.h>
31663 #else
31664 /* For Solaris */
31665 #include <sys/cdio.h>
31666 #endif
31667
31668int
31669main ()
31670{
31671struct cdrom_tocentry entry, old_entry;
31672 ;
31673 return 0;
31674}
31675_ACEOF
31676rm -f conftest.$ac_objext
31677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31678 (eval $ac_compile) 2>conftest.er1
a848cd7e 31679 ac_status=$?
ac1cb8d3
VS
31680 grep -v '^ *+' conftest.er1 >conftest.err
31681 rm -f conftest.er1
31682 cat conftest.err >&5
a848cd7e
SC
31683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31684 (exit $ac_status); } &&
ea7db9ff
DE
31685 { ac_try='test -z "$ac_c_werror_flag"
31686 || test ! -s conftest.err'
ac1cb8d3
VS
31687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31688 (eval $ac_try) 2>&5
31689 ac_status=$?
31690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31691 (exit $ac_status); }; } &&
31692 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31694 (eval $ac_try) 2>&5
31695 ac_status=$?
31696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31697 (exit $ac_status); }; }; then
31698 echo "$as_me:$LINENO: result: yes" >&5
31699echo "${ECHO_T}yes" >&6
31700 cat >>confdefs.h <<\_ACEOF
31701#define HAVE_KNOWN_CDROM_INTERFACE 1
31702_ACEOF
31703
31704else
31705 echo "$as_me: failed program was:" >&5
31706sed 's/^/| /' conftest.$ac_ext >&5
31707
31708echo "$as_me:$LINENO: result: no" >&5
31709echo "${ECHO_T}no" >&6
31710fi
ac1cb8d3 31711rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31712
31713
31714cat >confcache <<\_ACEOF
31715# This file is a shell script that caches the results of configure
31716# tests run on this system so they can be shared between configure
31717# scripts and configure runs, see configure's option --config-cache.
31718# It is not useful on other systems. If it contains results you don't
31719# want to keep, you may remove or edit it.
31720#
31721# config.status only pays attention to the cache file if you give it
31722# the --recheck option to rerun configure.
31723#
31724# `ac_cv_env_foo' variables (set or unset) will be overridden when
31725# loading this file, other *unset* `ac_cv_foo' will be assigned the
31726# following values.
31727
31728_ACEOF
31729
31730# The following way of writing the cache mishandles newlines in values,
31731# but we know of no workaround that is simple, portable, and efficient.
31732# So, don't put newlines in cache variables' values.
31733# Ultrix sh set writes to stderr and can't be redirected directly,
31734# and sets the high bit in the cache file unless we assign to the vars.
31735{
31736 (set) 2>&1 |
31737 case `(ac_space=' '; set | grep ac_space) 2>&1` in
31738 *ac_space=\ *)
31739 # `set' does not quote correctly, so add quotes (double-quote
31740 # substitution turns \\\\ into \\, and sed turns \\ into \).
31741 sed -n \
ac1cb8d3
VS
31742 "s/'/'\\\\''/g;
31743 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
31744 ;;
31745 *)
31746 # `set' quotes correctly as required by POSIX, so do not add quotes.
31747 sed -n \
ac1cb8d3 31748 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
31749 ;;
31750 esac;
31751} |
31752 sed '
31753 t clear
31754 : clear
31755 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31756 t end
31757 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31758 : end' >>confcache
31759if diff $cache_file confcache >/dev/null 2>&1; then :; else
31760 if test -w $cache_file; then
31761 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
31762 cat confcache >$cache_file
31763 else
31764 echo "not updating unwritable cache $cache_file"
31765 fi
31766fi
31767rm -f confcache
31768
31769
31770CPP_MT_FLAG=
31771if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
31772
31773
31774 THREADS_LINK=
31775 THREADS_CFLAGS=
31776
31777 if test "$wxUSE_THREADS" = "yes" ; then
31778 if test "$USE_BEOS" = 1; then
31779 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
31780echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
31781 wxUSE_THREADS="no"
31782 fi
31783 fi
31784
31785 if test "$wxUSE_THREADS" = "yes" ; then
31786
31787
31788 THREAD_OPTS="-pthread"
31789 case "${host}" in
31790 *-*-solaris2* | *-*-sunos4* )
31791 if test "x$GCC" = "xyes"; then
31792 THREAD_OPTS="-pthreads $THREAD_OPTS"
31793 else
31794 THREAD_OPTS="-mt $THREAD_OPTS"
31795 fi
31796 ;;
31797 *-*-freebsd*)
31798 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
31799 ;;
31800 *-*-darwin* | *-*-cygwin* )
31801 THREAD_OPTS=""
31802 ;;
31803 *-*-aix*)
31804 THREAD_OPTS="pthreads"
31805 ;;
31806 *-hp-hpux* )
31807 if test "x$GCC" != "xyes"; then
31808 THREAD_OPTS=""
31809 fi
31810 ;;
31811
31812 *-*-irix* )
31813 if test "x$GCC" = "xyes"; then
31814 THREAD_OPTS=""
31815 fi
31816 ;;
31817
31818 *-*-*UnixWare*)
31819 if test "x$GCC" != "xyes"; then
31820 THREAD_OPTS="-Ethread"
31821 fi
31822 ;;
31823 esac
31824
31825 THREAD_OPTS="$THREAD_OPTS pthread none"
31826
31827 THREADS_OK=no
31828 for flag in $THREAD_OPTS; do
31829 case $flag in
31830 none)
31831 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
31832echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
31833 ;;
31834
31835 -*)
31836 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
31837echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
31838 THREADS_CFLAGS="$flag"
31839 ;;
31840
31841 *)
31842 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
31843echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
31844 THREADS_LINK="-l$flag"
31845 ;;
31846 esac
31847
31848 save_LIBS="$LIBS"
31849 save_CFLAGS="$CFLAGS"
31850 LIBS="$THREADS_LINK $LIBS"
31851 CFLAGS="$THREADS_CFLAGS $CFLAGS"
31852
31853 cat >conftest.$ac_ext <<_ACEOF
31854/* confdefs.h. */
31855_ACEOF
31856cat confdefs.h >>conftest.$ac_ext
31857cat >>conftest.$ac_ext <<_ACEOF
31858/* end confdefs.h. */
31859#include <pthread.h>
31860int
31861main ()
31862{
31863pthread_create(0,0,0,0);
31864 ;
31865 return 0;
31866}
31867_ACEOF
31868rm -f conftest.$ac_objext conftest$ac_exeext
31869if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31870 (eval $ac_link) 2>conftest.er1
a848cd7e 31871 ac_status=$?
ac1cb8d3
VS
31872 grep -v '^ *+' conftest.er1 >conftest.err
31873 rm -f conftest.er1
31874 cat conftest.err >&5
a848cd7e
SC
31875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31876 (exit $ac_status); } &&
ea7db9ff
DE
31877 { ac_try='test -z "$ac_c_werror_flag"
31878 || test ! -s conftest.err'
ac1cb8d3
VS
31879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31880 (eval $ac_try) 2>&5
31881 ac_status=$?
31882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31883 (exit $ac_status); }; } &&
31884 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31886 (eval $ac_try) 2>&5
31887 ac_status=$?
31888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31889 (exit $ac_status); }; }; then
31890 THREADS_OK=yes
31891else
31892 echo "$as_me: failed program was:" >&5
31893sed 's/^/| /' conftest.$ac_ext >&5
31894
31895fi
ac1cb8d3
VS
31896rm -f conftest.err conftest.$ac_objext \
31897 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31898
31899 LIBS="$save_LIBS"
31900 CFLAGS="$save_CFLAGS"
31901
31902 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
31903echo "${ECHO_T}$THREADS_OK" >&6
31904 if test "x$THREADS_OK" = "xyes"; then
31905 break;
31906 fi
31907
31908 THREADS_LINK=""
31909 THREADS_CFLAGS=""
31910 done
31911
31912 if test "x$THREADS_OK" != "xyes"; then
31913 wxUSE_THREADS=no
31914 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
31915echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
31916 else
31917 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
31918 LIBS="$THREADS_LINK $LIBS"
31919
31920 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
31921echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
31922 flag=no
31923 case "${host}" in
31924 *-aix*)
31925 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
31926 flag="-D_THREAD_SAFE"
31927 ;;
31928 *-freebsd*)
31929 flag="-D_THREAD_SAFE"
31930 ;;
31931 *-hp-hpux* )
31932 flag="-D_REENTRANT"
31933 if test "x$GCC" != "xyes"; then
31934 flag="$flag -D_RWSTD_MULTI_THREAD"
473276a9
VS
31935
31936 LIBS="$LIBS -lcma"
a848cd7e
SC
31937 fi
31938 ;;
31939 *solaris* | alpha*-osf*)
31940 flag="-D_REENTRANT"
31941 ;;
31942 esac
31943 echo "$as_me:$LINENO: result: ${flag}" >&5
31944echo "${ECHO_T}${flag}" >&6
31945 if test "x$flag" != xno; then
31946 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
31947 fi
31948
31949 if test "x$THREADS_CFLAGS" != "x"; then
31950 CFLAGS="$CFLAGS $THREADS_CFLAGS"
31951 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
31952 fi
31953 fi
31954 fi
31955
31956 if test "$wxUSE_THREADS" = "yes" ; then
31957
31958for ac_func in thr_setconcurrency
31959do
31960as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31961echo "$as_me:$LINENO: checking for $ac_func" >&5
31962echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31963if eval "test \"\${$as_ac_var+set}\" = set"; then
31964 echo $ECHO_N "(cached) $ECHO_C" >&6
31965else
31966 cat >conftest.$ac_ext <<_ACEOF
31967/* confdefs.h. */
31968_ACEOF
31969cat confdefs.h >>conftest.$ac_ext
31970cat >>conftest.$ac_ext <<_ACEOF
31971/* end confdefs.h. */
ac1cb8d3
VS
31972/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31974#define $ac_func innocuous_$ac_func
31975
a848cd7e
SC
31976/* System header to define __stub macros and hopefully few prototypes,
31977 which can conflict with char $ac_func (); below.
31978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31979 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31980
a848cd7e
SC
31981#ifdef __STDC__
31982# include <limits.h>
31983#else
31984# include <assert.h>
31985#endif
ac1cb8d3
VS
31986
31987#undef $ac_func
31988
a848cd7e
SC
31989/* Override any gcc2 internal prototype to avoid an error. */
31990#ifdef __cplusplus
31991extern "C"
31992{
31993#endif
31994/* We use char because int might match the return type of a gcc2
31995 builtin and then its argument prototype would still apply. */
31996char $ac_func ();
31997/* The GNU C library defines this for functions which it implements
31998 to always fail with ENOSYS. Some functions are actually named
31999 something starting with __ and the normal name is an alias. */
32000#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32001choke me
32002#else
32003char (*f) () = $ac_func;
32004#endif
32005#ifdef __cplusplus
32006}
32007#endif
32008
32009int
32010main ()
32011{
32012return f != $ac_func;
32013 ;
32014 return 0;
32015}
32016_ACEOF
32017rm -f conftest.$ac_objext conftest$ac_exeext
32018if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32019 (eval $ac_link) 2>conftest.er1
a848cd7e 32020 ac_status=$?
ac1cb8d3
VS
32021 grep -v '^ *+' conftest.er1 >conftest.err
32022 rm -f conftest.er1
32023 cat conftest.err >&5
a848cd7e
SC
32024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32025 (exit $ac_status); } &&
ea7db9ff
DE
32026 { ac_try='test -z "$ac_c_werror_flag"
32027 || test ! -s conftest.err'
ac1cb8d3
VS
32028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32029 (eval $ac_try) 2>&5
32030 ac_status=$?
32031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32032 (exit $ac_status); }; } &&
32033 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32035 (eval $ac_try) 2>&5
32036 ac_status=$?
32037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32038 (exit $ac_status); }; }; then
32039 eval "$as_ac_var=yes"
32040else
32041 echo "$as_me: failed program was:" >&5
32042sed 's/^/| /' conftest.$ac_ext >&5
32043
32044eval "$as_ac_var=no"
32045fi
ac1cb8d3
VS
32046rm -f conftest.err conftest.$ac_objext \
32047 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32048fi
32049echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32050echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32051if test `eval echo '${'$as_ac_var'}'` = yes; then
32052 cat >>confdefs.h <<_ACEOF
32053#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32054_ACEOF
32055
32056fi
32057done
32058
32059
32060
32061for ac_header in sched.h
32062do
32063as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32064if eval "test \"\${$as_ac_Header+set}\" = set"; then
32065 echo "$as_me:$LINENO: checking for $ac_header" >&5
32066echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32067if eval "test \"\${$as_ac_Header+set}\" = set"; then
32068 echo $ECHO_N "(cached) $ECHO_C" >&6
32069fi
32070echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32071echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32072else
32073 # Is the header compilable?
32074echo "$as_me:$LINENO: checking $ac_header usability" >&5
32075echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32076cat >conftest.$ac_ext <<_ACEOF
32077/* confdefs.h. */
32078_ACEOF
32079cat confdefs.h >>conftest.$ac_ext
32080cat >>conftest.$ac_ext <<_ACEOF
32081/* end confdefs.h. */
32082$ac_includes_default
32083#include <$ac_header>
32084_ACEOF
32085rm -f conftest.$ac_objext
32086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32087 (eval $ac_compile) 2>conftest.er1
a848cd7e 32088 ac_status=$?
ac1cb8d3
VS
32089 grep -v '^ *+' conftest.er1 >conftest.err
32090 rm -f conftest.er1
32091 cat conftest.err >&5
a848cd7e
SC
32092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32093 (exit $ac_status); } &&
ea7db9ff
DE
32094 { ac_try='test -z "$ac_c_werror_flag"
32095 || test ! -s conftest.err'
ac1cb8d3
VS
32096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32097 (eval $ac_try) 2>&5
32098 ac_status=$?
32099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32100 (exit $ac_status); }; } &&
32101 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32103 (eval $ac_try) 2>&5
32104 ac_status=$?
32105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32106 (exit $ac_status); }; }; then
32107 ac_header_compiler=yes
32108else
32109 echo "$as_me: failed program was:" >&5
32110sed 's/^/| /' conftest.$ac_ext >&5
32111
32112ac_header_compiler=no
32113fi
ac1cb8d3 32114rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32115echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32116echo "${ECHO_T}$ac_header_compiler" >&6
32117
32118# Is the header present?
32119echo "$as_me:$LINENO: checking $ac_header presence" >&5
32120echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32121cat >conftest.$ac_ext <<_ACEOF
32122/* confdefs.h. */
32123_ACEOF
32124cat confdefs.h >>conftest.$ac_ext
32125cat >>conftest.$ac_ext <<_ACEOF
32126/* end confdefs.h. */
32127#include <$ac_header>
32128_ACEOF
32129if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32130 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32131 ac_status=$?
32132 grep -v '^ *+' conftest.er1 >conftest.err
32133 rm -f conftest.er1
32134 cat conftest.err >&5
32135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32136 (exit $ac_status); } >/dev/null; then
32137 if test -s conftest.err; then
32138 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 32139 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
32140 else
32141 ac_cpp_err=
32142 fi
32143else
32144 ac_cpp_err=yes
32145fi
32146if test -z "$ac_cpp_err"; then
32147 ac_header_preproc=yes
32148else
32149 echo "$as_me: failed program was:" >&5
32150sed 's/^/| /' conftest.$ac_ext >&5
32151
32152 ac_header_preproc=no
32153fi
32154rm -f conftest.err conftest.$ac_ext
32155echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32156echo "${ECHO_T}$ac_header_preproc" >&6
32157
32158# So? What about this header?
ac1cb8d3
VS
32159case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32160 yes:no: )
a848cd7e
SC
32161 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32162echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32164echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32165 ac_header_preproc=yes
a848cd7e 32166 ;;
ac1cb8d3 32167 no:yes:* )
a848cd7e
SC
32168 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32169echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32170 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32171echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32172 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32173echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32174 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32175echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32177echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32178 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32179echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32180 (
32181 cat <<\_ASBOX
ac1cb8d3
VS
32182## ----------------------------------------- ##
32183## Report this to wx-dev@lists.wxwidgets.org ##
32184## ----------------------------------------- ##
a848cd7e
SC
32185_ASBOX
32186 ) |
32187 sed "s/^/$as_me: WARNING: /" >&2
32188 ;;
32189esac
32190echo "$as_me:$LINENO: checking for $ac_header" >&5
32191echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32192if eval "test \"\${$as_ac_Header+set}\" = set"; then
32193 echo $ECHO_N "(cached) $ECHO_C" >&6
32194else
ac1cb8d3 32195 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
32196fi
32197echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32198echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32199
32200fi
32201if test `eval echo '${'$as_ac_Header'}'` = yes; then
32202 cat >>confdefs.h <<_ACEOF
32203#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32204_ACEOF
32205
32206fi
32207
32208done
32209
32210 if test "$ac_cv_header_sched_h" = "yes"; then
32211 echo "$as_me:$LINENO: checking for sched_yield" >&5
32212echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
32213if test "${ac_cv_func_sched_yield+set}" = set; then
32214 echo $ECHO_N "(cached) $ECHO_C" >&6
32215else
32216 cat >conftest.$ac_ext <<_ACEOF
32217/* confdefs.h. */
32218_ACEOF
32219cat confdefs.h >>conftest.$ac_ext
32220cat >>conftest.$ac_ext <<_ACEOF
32221/* end confdefs.h. */
ac1cb8d3
VS
32222/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
32223 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32224#define sched_yield innocuous_sched_yield
32225
a848cd7e
SC
32226/* System header to define __stub macros and hopefully few prototypes,
32227 which can conflict with char sched_yield (); below.
32228 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32229 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32230
a848cd7e
SC
32231#ifdef __STDC__
32232# include <limits.h>
32233#else
32234# include <assert.h>
32235#endif
ac1cb8d3
VS
32236
32237#undef sched_yield
32238
a848cd7e
SC
32239/* Override any gcc2 internal prototype to avoid an error. */
32240#ifdef __cplusplus
32241extern "C"
32242{
32243#endif
32244/* We use char because int might match the return type of a gcc2
32245 builtin and then its argument prototype would still apply. */
32246char sched_yield ();
32247/* The GNU C library defines this for functions which it implements
32248 to always fail with ENOSYS. Some functions are actually named
32249 something starting with __ and the normal name is an alias. */
32250#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
32251choke me
32252#else
32253char (*f) () = sched_yield;
32254#endif
32255#ifdef __cplusplus
32256}
32257#endif
32258
32259int
32260main ()
32261{
32262return f != sched_yield;
32263 ;
32264 return 0;
32265}
32266_ACEOF
32267rm -f conftest.$ac_objext conftest$ac_exeext
32268if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32269 (eval $ac_link) 2>conftest.er1
a848cd7e 32270 ac_status=$?
ac1cb8d3
VS
32271 grep -v '^ *+' conftest.er1 >conftest.err
32272 rm -f conftest.er1
32273 cat conftest.err >&5
a848cd7e
SC
32274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32275 (exit $ac_status); } &&
ea7db9ff
DE
32276 { ac_try='test -z "$ac_c_werror_flag"
32277 || test ! -s conftest.err'
ac1cb8d3
VS
32278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32279 (eval $ac_try) 2>&5
32280 ac_status=$?
32281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32282 (exit $ac_status); }; } &&
32283 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32285 (eval $ac_try) 2>&5
32286 ac_status=$?
32287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32288 (exit $ac_status); }; }; then
32289 ac_cv_func_sched_yield=yes
32290else
32291 echo "$as_me: failed program was:" >&5
32292sed 's/^/| /' conftest.$ac_ext >&5
32293
32294ac_cv_func_sched_yield=no
32295fi
ac1cb8d3
VS
32296rm -f conftest.err conftest.$ac_objext \
32297 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32298fi
32299echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
32300echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
32301if test $ac_cv_func_sched_yield = yes; then
32302 cat >>confdefs.h <<\_ACEOF
32303#define HAVE_SCHED_YIELD 1
32304_ACEOF
32305
32306else
32307
32308 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
32309echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
32310if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
32311 echo $ECHO_N "(cached) $ECHO_C" >&6
32312else
32313 ac_check_lib_save_LIBS=$LIBS
32314LIBS="-lposix4 $LIBS"
32315cat >conftest.$ac_ext <<_ACEOF
32316/* confdefs.h. */
32317_ACEOF
32318cat confdefs.h >>conftest.$ac_ext
32319cat >>conftest.$ac_ext <<_ACEOF
32320/* end confdefs.h. */
32321
32322/* Override any gcc2 internal prototype to avoid an error. */
32323#ifdef __cplusplus
32324extern "C"
32325#endif
32326/* We use char because int might match the return type of a gcc2
32327 builtin and then its argument prototype would still apply. */
32328char sched_yield ();
32329int
32330main ()
32331{
32332sched_yield ();
32333 ;
32334 return 0;
32335}
32336_ACEOF
32337rm -f conftest.$ac_objext conftest$ac_exeext
32338if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32339 (eval $ac_link) 2>conftest.er1
a848cd7e 32340 ac_status=$?
ac1cb8d3
VS
32341 grep -v '^ *+' conftest.er1 >conftest.err
32342 rm -f conftest.er1
32343 cat conftest.err >&5
a848cd7e
SC
32344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32345 (exit $ac_status); } &&
ea7db9ff
DE
32346 { ac_try='test -z "$ac_c_werror_flag"
32347 || test ! -s conftest.err'
ac1cb8d3
VS
32348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32349 (eval $ac_try) 2>&5
32350 ac_status=$?
32351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32352 (exit $ac_status); }; } &&
32353 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32355 (eval $ac_try) 2>&5
32356 ac_status=$?
32357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32358 (exit $ac_status); }; }; then
32359 ac_cv_lib_posix4_sched_yield=yes
32360else
32361 echo "$as_me: failed program was:" >&5
32362sed 's/^/| /' conftest.$ac_ext >&5
32363
32364ac_cv_lib_posix4_sched_yield=no
32365fi
ac1cb8d3
VS
32366rm -f conftest.err conftest.$ac_objext \
32367 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32368LIBS=$ac_check_lib_save_LIBS
32369fi
32370echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
32371echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
32372if test $ac_cv_lib_posix4_sched_yield = yes; then
32373 cat >>confdefs.h <<\_ACEOF
32374#define HAVE_SCHED_YIELD 1
32375_ACEOF
32376 POSIX4_LINK=" -lposix4"
32377else
32378 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
32379echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
32380
32381fi
32382
32383
32384
32385fi
32386
32387 fi
32388
32389 HAVE_PRIOR_FUNCS=0
32390 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
32391echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
32392if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
32393 echo $ECHO_N "(cached) $ECHO_C" >&6
32394else
32395 cat >conftest.$ac_ext <<_ACEOF
32396/* confdefs.h. */
32397_ACEOF
32398cat confdefs.h >>conftest.$ac_ext
32399cat >>conftest.$ac_ext <<_ACEOF
32400/* end confdefs.h. */
ac1cb8d3
VS
32401/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
32402 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32403#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
32404
a848cd7e
SC
32405/* System header to define __stub macros and hopefully few prototypes,
32406 which can conflict with char pthread_attr_getschedpolicy (); below.
32407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32408 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32409
a848cd7e
SC
32410#ifdef __STDC__
32411# include <limits.h>
32412#else
32413# include <assert.h>
32414#endif
ac1cb8d3
VS
32415
32416#undef pthread_attr_getschedpolicy
32417
a848cd7e
SC
32418/* Override any gcc2 internal prototype to avoid an error. */
32419#ifdef __cplusplus
32420extern "C"
32421{
32422#endif
32423/* We use char because int might match the return type of a gcc2
32424 builtin and then its argument prototype would still apply. */
32425char pthread_attr_getschedpolicy ();
32426/* The GNU C library defines this for functions which it implements
32427 to always fail with ENOSYS. Some functions are actually named
32428 something starting with __ and the normal name is an alias. */
32429#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
32430choke me
32431#else
32432char (*f) () = pthread_attr_getschedpolicy;
32433#endif
32434#ifdef __cplusplus
32435}
32436#endif
32437
32438int
32439main ()
32440{
32441return f != pthread_attr_getschedpolicy;
32442 ;
32443 return 0;
32444}
32445_ACEOF
32446rm -f conftest.$ac_objext conftest$ac_exeext
32447if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32448 (eval $ac_link) 2>conftest.er1
a848cd7e 32449 ac_status=$?
ac1cb8d3
VS
32450 grep -v '^ *+' conftest.er1 >conftest.err
32451 rm -f conftest.er1
32452 cat conftest.err >&5
a848cd7e
SC
32453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32454 (exit $ac_status); } &&
ea7db9ff
DE
32455 { ac_try='test -z "$ac_c_werror_flag"
32456 || test ! -s conftest.err'
ac1cb8d3
VS
32457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32458 (eval $ac_try) 2>&5
32459 ac_status=$?
32460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32461 (exit $ac_status); }; } &&
32462 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32464 (eval $ac_try) 2>&5
32465 ac_status=$?
32466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32467 (exit $ac_status); }; }; then
32468 ac_cv_func_pthread_attr_getschedpolicy=yes
32469else
32470 echo "$as_me: failed program was:" >&5
32471sed 's/^/| /' conftest.$ac_ext >&5
32472
32473ac_cv_func_pthread_attr_getschedpolicy=no
32474fi
ac1cb8d3
VS
32475rm -f conftest.err conftest.$ac_objext \
32476 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32477fi
32478echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
32479echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
32480if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
32481 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
32482echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
32483if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
32484 echo $ECHO_N "(cached) $ECHO_C" >&6
32485else
32486 cat >conftest.$ac_ext <<_ACEOF
32487/* confdefs.h. */
32488_ACEOF
32489cat confdefs.h >>conftest.$ac_ext
32490cat >>conftest.$ac_ext <<_ACEOF
32491/* end confdefs.h. */
ac1cb8d3
VS
32492/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
32493 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32494#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
32495
a848cd7e
SC
32496/* System header to define __stub macros and hopefully few prototypes,
32497 which can conflict with char pthread_attr_setschedparam (); below.
32498 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32499 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32500
a848cd7e
SC
32501#ifdef __STDC__
32502# include <limits.h>
32503#else
32504# include <assert.h>
32505#endif
ac1cb8d3
VS
32506
32507#undef pthread_attr_setschedparam
32508
a848cd7e
SC
32509/* Override any gcc2 internal prototype to avoid an error. */
32510#ifdef __cplusplus
32511extern "C"
32512{
32513#endif
32514/* We use char because int might match the return type of a gcc2
32515 builtin and then its argument prototype would still apply. */
32516char pthread_attr_setschedparam ();
32517/* The GNU C library defines this for functions which it implements
32518 to always fail with ENOSYS. Some functions are actually named
32519 something starting with __ and the normal name is an alias. */
32520#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
32521choke me
32522#else
32523char (*f) () = pthread_attr_setschedparam;
32524#endif
32525#ifdef __cplusplus
32526}
32527#endif
32528
32529int
32530main ()
32531{
32532return f != pthread_attr_setschedparam;
32533 ;
32534 return 0;
32535}
32536_ACEOF
32537rm -f conftest.$ac_objext conftest$ac_exeext
32538if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32539 (eval $ac_link) 2>conftest.er1
a848cd7e 32540 ac_status=$?
ac1cb8d3
VS
32541 grep -v '^ *+' conftest.er1 >conftest.err
32542 rm -f conftest.er1
32543 cat conftest.err >&5
a848cd7e
SC
32544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32545 (exit $ac_status); } &&
ea7db9ff
DE
32546 { ac_try='test -z "$ac_c_werror_flag"
32547 || test ! -s conftest.err'
ac1cb8d3
VS
32548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32549 (eval $ac_try) 2>&5
32550 ac_status=$?
32551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32552 (exit $ac_status); }; } &&
32553 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32555 (eval $ac_try) 2>&5
32556 ac_status=$?
32557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32558 (exit $ac_status); }; }; then
32559 ac_cv_func_pthread_attr_setschedparam=yes
32560else
32561 echo "$as_me: failed program was:" >&5
32562sed 's/^/| /' conftest.$ac_ext >&5
32563
32564ac_cv_func_pthread_attr_setschedparam=no
32565fi
ac1cb8d3
VS
32566rm -f conftest.err conftest.$ac_objext \
32567 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32568fi
32569echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
32570echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
32571if test $ac_cv_func_pthread_attr_setschedparam = yes; then
32572 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
32573echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
32574if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
32575 echo $ECHO_N "(cached) $ECHO_C" >&6
32576else
32577 cat >conftest.$ac_ext <<_ACEOF
32578/* confdefs.h. */
32579_ACEOF
32580cat confdefs.h >>conftest.$ac_ext
32581cat >>conftest.$ac_ext <<_ACEOF
32582/* end confdefs.h. */
ac1cb8d3
VS
32583/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
32584 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32585#define sched_get_priority_max innocuous_sched_get_priority_max
32586
a848cd7e
SC
32587/* System header to define __stub macros and hopefully few prototypes,
32588 which can conflict with char sched_get_priority_max (); below.
32589 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32590 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32591
a848cd7e
SC
32592#ifdef __STDC__
32593# include <limits.h>
32594#else
32595# include <assert.h>
32596#endif
ac1cb8d3
VS
32597
32598#undef sched_get_priority_max
32599
a848cd7e
SC
32600/* Override any gcc2 internal prototype to avoid an error. */
32601#ifdef __cplusplus
32602extern "C"
32603{
32604#endif
32605/* We use char because int might match the return type of a gcc2
32606 builtin and then its argument prototype would still apply. */
32607char sched_get_priority_max ();
32608/* The GNU C library defines this for functions which it implements
32609 to always fail with ENOSYS. Some functions are actually named
32610 something starting with __ and the normal name is an alias. */
32611#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
32612choke me
32613#else
32614char (*f) () = sched_get_priority_max;
32615#endif
32616#ifdef __cplusplus
32617}
32618#endif
32619
32620int
32621main ()
32622{
32623return f != sched_get_priority_max;
32624 ;
32625 return 0;
32626}
32627_ACEOF
32628rm -f conftest.$ac_objext conftest$ac_exeext
32629if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32630 (eval $ac_link) 2>conftest.er1
a848cd7e 32631 ac_status=$?
ac1cb8d3
VS
32632 grep -v '^ *+' conftest.er1 >conftest.err
32633 rm -f conftest.er1
32634 cat conftest.err >&5
a848cd7e
SC
32635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32636 (exit $ac_status); } &&
ea7db9ff
DE
32637 { ac_try='test -z "$ac_c_werror_flag"
32638 || test ! -s conftest.err'
ac1cb8d3
VS
32639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32640 (eval $ac_try) 2>&5
32641 ac_status=$?
32642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32643 (exit $ac_status); }; } &&
32644 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32646 (eval $ac_try) 2>&5
32647 ac_status=$?
32648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32649 (exit $ac_status); }; }; then
32650 ac_cv_func_sched_get_priority_max=yes
32651else
32652 echo "$as_me: failed program was:" >&5
32653sed 's/^/| /' conftest.$ac_ext >&5
32654
32655ac_cv_func_sched_get_priority_max=no
32656fi
ac1cb8d3
VS
32657rm -f conftest.err conftest.$ac_objext \
32658 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32659fi
32660echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
32661echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
32662if test $ac_cv_func_sched_get_priority_max = yes; then
32663 HAVE_PRIOR_FUNCS=1
32664else
32665 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
32666echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
32667if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
32668 echo $ECHO_N "(cached) $ECHO_C" >&6
32669else
32670 ac_check_lib_save_LIBS=$LIBS
32671LIBS="-lposix4 $LIBS"
32672cat >conftest.$ac_ext <<_ACEOF
32673/* confdefs.h. */
32674_ACEOF
32675cat confdefs.h >>conftest.$ac_ext
32676cat >>conftest.$ac_ext <<_ACEOF
32677/* end confdefs.h. */
32678
32679/* Override any gcc2 internal prototype to avoid an error. */
32680#ifdef __cplusplus
32681extern "C"
32682#endif
32683/* We use char because int might match the return type of a gcc2
32684 builtin and then its argument prototype would still apply. */
32685char sched_get_priority_max ();
32686int
32687main ()
32688{
32689sched_get_priority_max ();
32690 ;
32691 return 0;
32692}
32693_ACEOF
32694rm -f conftest.$ac_objext conftest$ac_exeext
32695if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32696 (eval $ac_link) 2>conftest.er1
a848cd7e 32697 ac_status=$?
ac1cb8d3
VS
32698 grep -v '^ *+' conftest.er1 >conftest.err
32699 rm -f conftest.er1
32700 cat conftest.err >&5
a848cd7e
SC
32701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32702 (exit $ac_status); } &&
ea7db9ff
DE
32703 { ac_try='test -z "$ac_c_werror_flag"
32704 || test ! -s conftest.err'
ac1cb8d3
VS
32705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32706 (eval $ac_try) 2>&5
32707 ac_status=$?
32708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32709 (exit $ac_status); }; } &&
32710 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32712 (eval $ac_try) 2>&5
32713 ac_status=$?
32714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32715 (exit $ac_status); }; }; then
32716 ac_cv_lib_posix4_sched_get_priority_max=yes
32717else
32718 echo "$as_me: failed program was:" >&5
32719sed 's/^/| /' conftest.$ac_ext >&5
32720
32721ac_cv_lib_posix4_sched_get_priority_max=no
32722fi
ac1cb8d3
VS
32723rm -f conftest.err conftest.$ac_objext \
32724 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32725LIBS=$ac_check_lib_save_LIBS
32726fi
32727echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
32728echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
32729if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
32730
32731 HAVE_PRIOR_FUNCS=1
32732 POSIX4_LINK=" -lposix4"
32733
32734fi
32735
32736
32737fi
32738
32739
32740fi
32741
32742
32743fi
32744
32745
32746 if test "$HAVE_PRIOR_FUNCS" = 1; then
32747 cat >>confdefs.h <<\_ACEOF
32748#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
32749_ACEOF
32750
32751 else
32752 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
32753echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
32754 fi
32755
32756 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
32757echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
32758if test "${ac_cv_func_pthread_cancel+set}" = set; then
32759 echo $ECHO_N "(cached) $ECHO_C" >&6
32760else
32761 cat >conftest.$ac_ext <<_ACEOF
32762/* confdefs.h. */
32763_ACEOF
32764cat confdefs.h >>conftest.$ac_ext
32765cat >>conftest.$ac_ext <<_ACEOF
32766/* end confdefs.h. */
ac1cb8d3
VS
32767/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
32768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32769#define pthread_cancel innocuous_pthread_cancel
32770
a848cd7e
SC
32771/* System header to define __stub macros and hopefully few prototypes,
32772 which can conflict with char pthread_cancel (); below.
32773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32774 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32775
a848cd7e
SC
32776#ifdef __STDC__
32777# include <limits.h>
32778#else
32779# include <assert.h>
32780#endif
ac1cb8d3
VS
32781
32782#undef pthread_cancel
32783
a848cd7e
SC
32784/* Override any gcc2 internal prototype to avoid an error. */
32785#ifdef __cplusplus
32786extern "C"
32787{
32788#endif
32789/* We use char because int might match the return type of a gcc2
32790 builtin and then its argument prototype would still apply. */
32791char pthread_cancel ();
32792/* The GNU C library defines this for functions which it implements
32793 to always fail with ENOSYS. Some functions are actually named
32794 something starting with __ and the normal name is an alias. */
32795#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
32796choke me
32797#else
32798char (*f) () = pthread_cancel;
32799#endif
32800#ifdef __cplusplus
32801}
32802#endif
32803
32804int
32805main ()
32806{
32807return f != pthread_cancel;
32808 ;
32809 return 0;
32810}
32811_ACEOF
32812rm -f conftest.$ac_objext conftest$ac_exeext
32813if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32814 (eval $ac_link) 2>conftest.er1
a848cd7e 32815 ac_status=$?
ac1cb8d3
VS
32816 grep -v '^ *+' conftest.er1 >conftest.err
32817 rm -f conftest.er1
32818 cat conftest.err >&5
a848cd7e
SC
32819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32820 (exit $ac_status); } &&
ea7db9ff
DE
32821 { ac_try='test -z "$ac_c_werror_flag"
32822 || test ! -s conftest.err'
ac1cb8d3
VS
32823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32824 (eval $ac_try) 2>&5
32825 ac_status=$?
32826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32827 (exit $ac_status); }; } &&
32828 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32830 (eval $ac_try) 2>&5
32831 ac_status=$?
32832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32833 (exit $ac_status); }; }; then
32834 ac_cv_func_pthread_cancel=yes
32835else
32836 echo "$as_me: failed program was:" >&5
32837sed 's/^/| /' conftest.$ac_ext >&5
32838
32839ac_cv_func_pthread_cancel=no
32840fi
ac1cb8d3
VS
32841rm -f conftest.err conftest.$ac_objext \
32842 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32843fi
32844echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
32845echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
32846if test $ac_cv_func_pthread_cancel = yes; then
32847 cat >>confdefs.h <<\_ACEOF
32848#define HAVE_PTHREAD_CANCEL 1
32849_ACEOF
32850
32851else
32852 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
32853echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
32854fi
32855
32856
32857
32858
32859 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
32860echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
32861if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
32862 echo $ECHO_N "(cached) $ECHO_C" >&6
32863else
32864
32865 cat >conftest.$ac_ext <<_ACEOF
32866/* confdefs.h. */
32867_ACEOF
32868cat confdefs.h >>conftest.$ac_ext
32869cat >>conftest.$ac_ext <<_ACEOF
32870/* end confdefs.h. */
32871#include <pthread.h>
32872int
32873main ()
32874{
32875
32876 pthread_mutexattr_t attr;
32877 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
32878
32879 ;
32880 return 0;
32881}
32882_ACEOF
32883rm -f conftest.$ac_objext
32884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32885 (eval $ac_compile) 2>conftest.er1
a848cd7e 32886 ac_status=$?
ac1cb8d3
VS
32887 grep -v '^ *+' conftest.er1 >conftest.err
32888 rm -f conftest.er1
32889 cat conftest.err >&5
a848cd7e
SC
32890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32891 (exit $ac_status); } &&
ea7db9ff
DE
32892 { ac_try='test -z "$ac_c_werror_flag"
32893 || test ! -s conftest.err'
ac1cb8d3
VS
32894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32895 (eval $ac_try) 2>&5
32896 ac_status=$?
32897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32898 (exit $ac_status); }; } &&
32899 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32901 (eval $ac_try) 2>&5
32902 ac_status=$?
32903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32904 (exit $ac_status); }; }; then
32905
32906 wx_cv_type_pthread_mutexattr_t=yes
32907
32908else
32909 echo "$as_me: failed program was:" >&5
32910sed 's/^/| /' conftest.$ac_ext >&5
32911
32912
32913 wx_cv_type_pthread_mutexattr_t=no
32914
32915
32916fi
ac1cb8d3 32917rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32918
32919fi
32920echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
32921echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
32922
32923 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
32924 cat >>confdefs.h <<\_ACEOF
32925#define HAVE_PTHREAD_MUTEXATTR_T 1
32926_ACEOF
32927
32928 else
32929 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
32930echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
32931if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
32932 echo $ECHO_N "(cached) $ECHO_C" >&6
32933else
32934
32935 cat >conftest.$ac_ext <<_ACEOF
32936/* confdefs.h. */
32937_ACEOF
32938cat confdefs.h >>conftest.$ac_ext
32939cat >>conftest.$ac_ext <<_ACEOF
32940/* end confdefs.h. */
32941#include <pthread.h>
32942int
32943main ()
32944{
32945
32946 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
32947
32948 ;
32949 return 0;
32950}
32951_ACEOF
32952rm -f conftest.$ac_objext
32953if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32954 (eval $ac_compile) 2>conftest.er1
a848cd7e 32955 ac_status=$?
ac1cb8d3
VS
32956 grep -v '^ *+' conftest.er1 >conftest.err
32957 rm -f conftest.er1
32958 cat conftest.err >&5
a848cd7e
SC
32959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32960 (exit $ac_status); } &&
ea7db9ff
DE
32961 { ac_try='test -z "$ac_c_werror_flag"
32962 || test ! -s conftest.err'
ac1cb8d3
VS
32963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32964 (eval $ac_try) 2>&5
32965 ac_status=$?
32966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32967 (exit $ac_status); }; } &&
32968 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32970 (eval $ac_try) 2>&5
32971 ac_status=$?
32972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32973 (exit $ac_status); }; }; then
32974
32975 wx_cv_type_pthread_rec_mutex_init=yes
32976
32977else
32978 echo "$as_me: failed program was:" >&5
32979sed 's/^/| /' conftest.$ac_ext >&5
32980
32981
32982 wx_cv_type_pthread_rec_mutex_init=no
32983
32984
32985fi
ac1cb8d3 32986rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32987
32988fi
32989echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
32990echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
32991 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
32992 cat >>confdefs.h <<\_ACEOF
32993#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
32994_ACEOF
32995
32996 else
32997 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
32998echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
32999 fi
33000 fi
33001 fi
33002
33003else
33004 if test "$wxUSE_THREADS" = "yes" ; then
33005 case "${host}" in
33006 *-*-mingw32* )
33007 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
33008echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
33009if test "${wx_cv_cflags_mthread+set}" = set; then
33010 echo $ECHO_N "(cached) $ECHO_C" >&6
33011else
33012
33013 CFLAGS_OLD="$CFLAGS"
33014 CFLAGS="$CFLAGS -mthreads"
33015 cat >conftest.$ac_ext <<_ACEOF
33016/* confdefs.h. */
33017_ACEOF
33018cat confdefs.h >>conftest.$ac_ext
33019cat >>conftest.$ac_ext <<_ACEOF
33020/* end confdefs.h. */
33021
33022int
33023main ()
33024{
33025
33026 ;
33027 return 0;
33028}
33029_ACEOF
33030rm -f conftest.$ac_objext
33031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33032 (eval $ac_compile) 2>conftest.er1
a848cd7e 33033 ac_status=$?
ac1cb8d3
VS
33034 grep -v '^ *+' conftest.er1 >conftest.err
33035 rm -f conftest.er1
33036 cat conftest.err >&5
a848cd7e
SC
33037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33038 (exit $ac_status); } &&
ea7db9ff
DE
33039 { ac_try='test -z "$ac_c_werror_flag"
33040 || test ! -s conftest.err'
ac1cb8d3
VS
33041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33042 (eval $ac_try) 2>&5
33043 ac_status=$?
33044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33045 (exit $ac_status); }; } &&
33046 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33048 (eval $ac_try) 2>&5
33049 ac_status=$?
33050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33051 (exit $ac_status); }; }; then
33052 wx_cv_cflags_mthread=yes
33053else
33054 echo "$as_me: failed program was:" >&5
33055sed 's/^/| /' conftest.$ac_ext >&5
33056
33057wx_cv_cflags_mthread=no
33058
33059fi
ac1cb8d3 33060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33061
33062
33063fi
33064echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
33065echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
33066
33067 if test "$wx_cv_cflags_mthread" = "yes"; then
33068 CXXFLAGS="$CXXFLAGS -mthreads"
33069 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
33070 LDFLAGS="$LDFLAGS -mthreads"
33071 else
33072 CFLAGS="$CFLAGS_OLD"
33073 fi
33074 ;;
33075 *-pc-os2*emx )
33076 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
33077 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
33078 LDFLAGS="$LDFLAGS -Zmt"
33079 ;;
33080 esac
33081 fi
33082fi
33083
33084if test "$wxUSE_THREADS" = "yes"; then
33085 cat >>confdefs.h <<\_ACEOF
33086#define wxUSE_THREADS 1
33087_ACEOF
33088
33089
33090 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
33091else
33092 if test "$ac_cv_func_strtok_r" = "yes"; then
33093 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
33094echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
33095 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
33096 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
33097 echo "$as_me:$LINENO: result: yes" >&5
33098echo "${ECHO_T}yes" >&6
33099 else
33100 echo "$as_me:$LINENO: result: no" >&5
33101echo "${ECHO_T}no" >&6
33102 fi
33103 fi
33104fi
33105
33106if test "$WXGTK20" = 1 ; then
33107 cat >>confdefs.h <<_ACEOF
33108#define __WXGTK20__ $WXGTK20
33109_ACEOF
33110
33111 WXGTK12=1
33112fi
33113
33114if test "$WXGTK12" = 1 ; then
33115 cat >>confdefs.h <<_ACEOF
33116#define __WXGTK12__ $WXGTK12
33117_ACEOF
33118
33119fi
33120
33121if test "$WXGTK127" = 1 ; then
33122 cat >>confdefs.h <<_ACEOF
33123#define __WXGTK127__ $WXGTK127
33124_ACEOF
33125
33126fi
33127
33128if test "$WXGPE" = 1 ; then
33129 cat >>confdefs.h <<_ACEOF
33130#define __WXGPE__ $WXGPE
33131_ACEOF
33132
33133fi
33134
33135WXDEBUG=
33136
33137if test "$wxUSE_DEBUG_INFO" = "yes" ; then
33138 WXDEBUG="-g"
33139 wxUSE_OPTIMISE=no
33140fi
33141
33142if test "$wxUSE_DEBUG_GDB" = "yes" ; then
33143 wxUSE_DEBUG_INFO=yes
33144 WXDEBUG="-ggdb"
33145fi
33146
33147if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
33148 cat >>confdefs.h <<\_ACEOF
33149#define WXDEBUG 1
33150_ACEOF
33151
33152 WXDEBUG_DEFINE="-D__WXDEBUG__"
33153else
33154 if test "$wxUSE_GTK" = 1 ; then
33155 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
33156 fi
33157fi
33158
33159if test "$wxUSE_MEM_TRACING" = "yes" ; then
33160 cat >>confdefs.h <<\_ACEOF
33161#define wxUSE_MEMORY_TRACING 1
33162_ACEOF
33163
33164 cat >>confdefs.h <<\_ACEOF
33165#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
33166_ACEOF
33167
33168 cat >>confdefs.h <<\_ACEOF
33169#define wxUSE_DEBUG_NEW_ALWAYS 1
33170_ACEOF
33171
33172 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
33173fi
33174
33175if test "$wxUSE_DMALLOC" = "yes" ; then
33176 DMALLOC_LIBS="-ldmalloc"
33177fi
33178
33179PROFILE=
33180if test "$wxUSE_PROFILE" = "yes" ; then
33181 PROFILE=" -pg"
33182fi
33183
33184CODE_GEN_FLAGS=
33185CODE_GEN_FLAGS_CXX=
33186if test "$GCC" = "yes" ; then
33187 if test "$wxUSE_NO_RTTI" = "yes" ; then
33188 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
33189 fi
33190 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
33191 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
33192 fi
33193 if test "$wxUSE_PERMISSIVE" = "yes" ; then
33194 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
33195 fi
33196
33197 case "${host}" in
33198 powerpc*-*-aix* )
33199 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
33200 ;;
33201 *-hppa* )
33202 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
33203 ;;
33204 esac
33205fi
33206
33207OPTIMISE=
33208if test "$wxUSE_OPTIMISE" = "no" ; then
33209 if test "$GCC" = yes ; then
33210 OPTIMISE="-O0"
33211 fi
33212else
33213 if test "$GCC" = yes ; then
33214 OPTIMISE="-O2"
33215
33216 case "${host}" in
33217 i586-*-*|i686-*-* )
33218 OPTIMISE="${OPTIMISE} "
33219 ;;
33220 esac
33221 else
33222 OPTIMISE="-O"
33223 fi
33224fi
33225
33226
33227if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
33228 cat >>confdefs.h <<\_ACEOF
33229#define WXWIN_COMPATIBILITY_2_2 1
33230_ACEOF
33231
33232
33233 WXWIN_COMPATIBILITY_2_4="yes"
33234fi
33235
33236if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
33237 cat >>confdefs.h <<\_ACEOF
33238#define WXWIN_COMPATIBILITY_2_4 1
33239_ACEOF
33240
33241fi
33242
33243
33244if test "$wxUSE_GUI" = "yes"; then
33245 cat >>confdefs.h <<\_ACEOF
33246#define wxUSE_GUI 1
33247_ACEOF
33248
33249
33250 else
33251 cat >>confdefs.h <<\_ACEOF
33252#define wxUSE_NOGUI 1
33253_ACEOF
33254
33255fi
33256
33257
33258if test "$wxUSE_UNIX" = "yes"; then
33259 cat >>confdefs.h <<\_ACEOF
33260#define wxUSE_UNIX 1
33261_ACEOF
33262
33263fi
33264
33265
33266if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
33267
33268 HAVE_DL_FUNCS=0
33269 HAVE_SHL_FUNCS=0
33270 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
33271 if test "$USE_DARWIN" = 1; then
33272 HAVE_DL_FUNCS=1
33273 else
33274
33275for ac_func in dlopen
33276do
33277as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33278echo "$as_me:$LINENO: checking for $ac_func" >&5
33279echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33280if eval "test \"\${$as_ac_var+set}\" = set"; then
33281 echo $ECHO_N "(cached) $ECHO_C" >&6
33282else
33283 cat >conftest.$ac_ext <<_ACEOF
33284/* confdefs.h. */
33285_ACEOF
33286cat confdefs.h >>conftest.$ac_ext
33287cat >>conftest.$ac_ext <<_ACEOF
33288/* end confdefs.h. */
ac1cb8d3
VS
33289/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33290 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33291#define $ac_func innocuous_$ac_func
33292
a848cd7e
SC
33293/* System header to define __stub macros and hopefully few prototypes,
33294 which can conflict with char $ac_func (); below.
33295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33296 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33297
a848cd7e
SC
33298#ifdef __STDC__
33299# include <limits.h>
33300#else
33301# include <assert.h>
33302#endif
ac1cb8d3
VS
33303
33304#undef $ac_func
33305
a848cd7e
SC
33306/* Override any gcc2 internal prototype to avoid an error. */
33307#ifdef __cplusplus
33308extern "C"
33309{
33310#endif
33311/* We use char because int might match the return type of a gcc2
33312 builtin and then its argument prototype would still apply. */
33313char $ac_func ();
33314/* The GNU C library defines this for functions which it implements
33315 to always fail with ENOSYS. Some functions are actually named
33316 something starting with __ and the normal name is an alias. */
33317#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33318choke me
33319#else
33320char (*f) () = $ac_func;
33321#endif
33322#ifdef __cplusplus
33323}
33324#endif
33325
33326int
33327main ()
33328{
33329return f != $ac_func;
33330 ;
33331 return 0;
33332}
33333_ACEOF
33334rm -f conftest.$ac_objext conftest$ac_exeext
33335if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33336 (eval $ac_link) 2>conftest.er1
a848cd7e 33337 ac_status=$?
ac1cb8d3
VS
33338 grep -v '^ *+' conftest.er1 >conftest.err
33339 rm -f conftest.er1
33340 cat conftest.err >&5
a848cd7e
SC
33341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33342 (exit $ac_status); } &&
ea7db9ff
DE
33343 { ac_try='test -z "$ac_c_werror_flag"
33344 || test ! -s conftest.err'
ac1cb8d3
VS
33345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33346 (eval $ac_try) 2>&5
33347 ac_status=$?
33348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33349 (exit $ac_status); }; } &&
33350 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33352 (eval $ac_try) 2>&5
33353 ac_status=$?
33354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33355 (exit $ac_status); }; }; then
33356 eval "$as_ac_var=yes"
33357else
33358 echo "$as_me: failed program was:" >&5
33359sed 's/^/| /' conftest.$ac_ext >&5
33360
33361eval "$as_ac_var=no"
33362fi
ac1cb8d3
VS
33363rm -f conftest.err conftest.$ac_objext \
33364 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33365fi
33366echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33367echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33368if test `eval echo '${'$as_ac_var'}'` = yes; then
33369 cat >>confdefs.h <<_ACEOF
33370#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33371_ACEOF
33372
33373 cat >>confdefs.h <<\_ACEOF
33374#define HAVE_DLOPEN 1
33375_ACEOF
33376
33377 HAVE_DL_FUNCS=1
33378
33379else
33380
33381 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
33382echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
33383if test "${ac_cv_lib_dl_dlopen+set}" = set; then
33384 echo $ECHO_N "(cached) $ECHO_C" >&6
33385else
33386 ac_check_lib_save_LIBS=$LIBS
33387LIBS="-ldl $LIBS"
33388cat >conftest.$ac_ext <<_ACEOF
33389/* confdefs.h. */
33390_ACEOF
33391cat confdefs.h >>conftest.$ac_ext
33392cat >>conftest.$ac_ext <<_ACEOF
33393/* end confdefs.h. */
33394
33395/* Override any gcc2 internal prototype to avoid an error. */
33396#ifdef __cplusplus
33397extern "C"
33398#endif
33399/* We use char because int might match the return type of a gcc2
33400 builtin and then its argument prototype would still apply. */
33401char dlopen ();
33402int
33403main ()
33404{
33405dlopen ();
33406 ;
33407 return 0;
33408}
33409_ACEOF
33410rm -f conftest.$ac_objext conftest$ac_exeext
33411if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33412 (eval $ac_link) 2>conftest.er1
a848cd7e 33413 ac_status=$?
ac1cb8d3
VS
33414 grep -v '^ *+' conftest.er1 >conftest.err
33415 rm -f conftest.er1
33416 cat conftest.err >&5
a848cd7e
SC
33417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33418 (exit $ac_status); } &&
ea7db9ff
DE
33419 { ac_try='test -z "$ac_c_werror_flag"
33420 || test ! -s conftest.err'
ac1cb8d3
VS
33421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33422 (eval $ac_try) 2>&5
33423 ac_status=$?
33424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33425 (exit $ac_status); }; } &&
33426 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33428 (eval $ac_try) 2>&5
33429 ac_status=$?
33430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33431 (exit $ac_status); }; }; then
33432 ac_cv_lib_dl_dlopen=yes
33433else
33434 echo "$as_me: failed program was:" >&5
33435sed 's/^/| /' conftest.$ac_ext >&5
33436
33437ac_cv_lib_dl_dlopen=no
33438fi
ac1cb8d3
VS
33439rm -f conftest.err conftest.$ac_objext \
33440 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33441LIBS=$ac_check_lib_save_LIBS
33442fi
33443echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
33444echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
33445if test $ac_cv_lib_dl_dlopen = yes; then
33446
33447 cat >>confdefs.h <<\_ACEOF
33448#define HAVE_DLOPEN 1
33449_ACEOF
33450
33451 HAVE_DL_FUNCS=1
33452 DL_LINK=" -ldl$DL_LINK"
33453
33454else
33455
33456
33457for ac_func in shl_load
33458do
33459as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33460echo "$as_me:$LINENO: checking for $ac_func" >&5
33461echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33462if eval "test \"\${$as_ac_var+set}\" = set"; then
33463 echo $ECHO_N "(cached) $ECHO_C" >&6
33464else
33465 cat >conftest.$ac_ext <<_ACEOF
33466/* confdefs.h. */
33467_ACEOF
33468cat confdefs.h >>conftest.$ac_ext
33469cat >>conftest.$ac_ext <<_ACEOF
33470/* end confdefs.h. */
ac1cb8d3
VS
33471/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33472 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33473#define $ac_func innocuous_$ac_func
33474
a848cd7e
SC
33475/* System header to define __stub macros and hopefully few prototypes,
33476 which can conflict with char $ac_func (); below.
33477 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33478 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33479
a848cd7e
SC
33480#ifdef __STDC__
33481# include <limits.h>
33482#else
33483# include <assert.h>
33484#endif
ac1cb8d3
VS
33485
33486#undef $ac_func
33487
a848cd7e
SC
33488/* Override any gcc2 internal prototype to avoid an error. */
33489#ifdef __cplusplus
33490extern "C"
33491{
33492#endif
33493/* We use char because int might match the return type of a gcc2
33494 builtin and then its argument prototype would still apply. */
33495char $ac_func ();
33496/* The GNU C library defines this for functions which it implements
33497 to always fail with ENOSYS. Some functions are actually named
33498 something starting with __ and the normal name is an alias. */
33499#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33500choke me
33501#else
33502char (*f) () = $ac_func;
33503#endif
33504#ifdef __cplusplus
33505}
33506#endif
33507
33508int
33509main ()
33510{
33511return f != $ac_func;
33512 ;
33513 return 0;
33514}
33515_ACEOF
33516rm -f conftest.$ac_objext conftest$ac_exeext
33517if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33518 (eval $ac_link) 2>conftest.er1
a848cd7e 33519 ac_status=$?
ac1cb8d3
VS
33520 grep -v '^ *+' conftest.er1 >conftest.err
33521 rm -f conftest.er1
33522 cat conftest.err >&5
a848cd7e
SC
33523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33524 (exit $ac_status); } &&
ea7db9ff
DE
33525 { ac_try='test -z "$ac_c_werror_flag"
33526 || test ! -s conftest.err'
ac1cb8d3
VS
33527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33528 (eval $ac_try) 2>&5
33529 ac_status=$?
33530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33531 (exit $ac_status); }; } &&
33532 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33534 (eval $ac_try) 2>&5
33535 ac_status=$?
33536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33537 (exit $ac_status); }; }; then
33538 eval "$as_ac_var=yes"
33539else
33540 echo "$as_me: failed program was:" >&5
33541sed 's/^/| /' conftest.$ac_ext >&5
33542
33543eval "$as_ac_var=no"
33544fi
ac1cb8d3
VS
33545rm -f conftest.err conftest.$ac_objext \
33546 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33547fi
33548echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33549echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33550if test `eval echo '${'$as_ac_var'}'` = yes; then
33551 cat >>confdefs.h <<_ACEOF
33552#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33553_ACEOF
33554
33555 cat >>confdefs.h <<\_ACEOF
33556#define HAVE_SHL_LOAD 1
33557_ACEOF
33558
33559 HAVE_SHL_FUNCS=1
33560
33561else
33562
33563 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
33564echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
33565if test "${ac_cv_lib_shl_load_dld+set}" = set; then
33566 echo $ECHO_N "(cached) $ECHO_C" >&6
33567else
33568 ac_check_lib_save_LIBS=$LIBS
33569LIBS="-lshl_load $LIBS"
33570cat >conftest.$ac_ext <<_ACEOF
33571/* confdefs.h. */
33572_ACEOF
33573cat confdefs.h >>conftest.$ac_ext
33574cat >>conftest.$ac_ext <<_ACEOF
33575/* end confdefs.h. */
33576
33577/* Override any gcc2 internal prototype to avoid an error. */
33578#ifdef __cplusplus
33579extern "C"
33580#endif
33581/* We use char because int might match the return type of a gcc2
33582 builtin and then its argument prototype would still apply. */
33583char dld ();
33584int
33585main ()
33586{
33587dld ();
33588 ;
33589 return 0;
33590}
33591_ACEOF
33592rm -f conftest.$ac_objext conftest$ac_exeext
33593if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33594 (eval $ac_link) 2>conftest.er1
a848cd7e 33595 ac_status=$?
ac1cb8d3
VS
33596 grep -v '^ *+' conftest.er1 >conftest.err
33597 rm -f conftest.er1
33598 cat conftest.err >&5
a848cd7e
SC
33599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33600 (exit $ac_status); } &&
ea7db9ff
DE
33601 { ac_try='test -z "$ac_c_werror_flag"
33602 || test ! -s conftest.err'
ac1cb8d3
VS
33603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33604 (eval $ac_try) 2>&5
33605 ac_status=$?
33606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33607 (exit $ac_status); }; } &&
33608 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33610 (eval $ac_try) 2>&5
33611 ac_status=$?
33612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33613 (exit $ac_status); }; }; then
33614 ac_cv_lib_shl_load_dld=yes
33615else
33616 echo "$as_me: failed program was:" >&5
33617sed 's/^/| /' conftest.$ac_ext >&5
33618
33619ac_cv_lib_shl_load_dld=no
33620fi
ac1cb8d3
VS
33621rm -f conftest.err conftest.$ac_objext \
33622 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33623LIBS=$ac_check_lib_save_LIBS
33624fi
33625echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
33626echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
33627if test $ac_cv_lib_shl_load_dld = yes; then
33628
33629 HAVE_SHL_FUNCS=1
33630 DL_LINK=" -ldld$DL_LINK"
33631
33632fi
33633
33634
33635fi
33636done
33637
33638
33639fi
33640
33641
33642fi
33643done
33644
33645
33646 if test "$HAVE_DL_FUNCS" = 1; then
33647
33648for ac_func in dlerror
33649do
33650as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33651echo "$as_me:$LINENO: checking for $ac_func" >&5
33652echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33653if eval "test \"\${$as_ac_var+set}\" = set"; then
33654 echo $ECHO_N "(cached) $ECHO_C" >&6
33655else
33656 cat >conftest.$ac_ext <<_ACEOF
33657/* confdefs.h. */
33658_ACEOF
33659cat confdefs.h >>conftest.$ac_ext
33660cat >>conftest.$ac_ext <<_ACEOF
33661/* end confdefs.h. */
ac1cb8d3
VS
33662/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33664#define $ac_func innocuous_$ac_func
33665
a848cd7e
SC
33666/* System header to define __stub macros and hopefully few prototypes,
33667 which can conflict with char $ac_func (); below.
33668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33669 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33670
a848cd7e
SC
33671#ifdef __STDC__
33672# include <limits.h>
33673#else
33674# include <assert.h>
33675#endif
ac1cb8d3
VS
33676
33677#undef $ac_func
33678
a848cd7e
SC
33679/* Override any gcc2 internal prototype to avoid an error. */
33680#ifdef __cplusplus
33681extern "C"
33682{
33683#endif
33684/* We use char because int might match the return type of a gcc2
33685 builtin and then its argument prototype would still apply. */
33686char $ac_func ();
33687/* The GNU C library defines this for functions which it implements
33688 to always fail with ENOSYS. Some functions are actually named
33689 something starting with __ and the normal name is an alias. */
33690#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33691choke me
33692#else
33693char (*f) () = $ac_func;
33694#endif
33695#ifdef __cplusplus
33696}
33697#endif
33698
33699int
33700main ()
33701{
33702return f != $ac_func;
33703 ;
33704 return 0;
33705}
33706_ACEOF
33707rm -f conftest.$ac_objext conftest$ac_exeext
33708if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33709 (eval $ac_link) 2>conftest.er1
a848cd7e 33710 ac_status=$?
ac1cb8d3
VS
33711 grep -v '^ *+' conftest.er1 >conftest.err
33712 rm -f conftest.er1
33713 cat conftest.err >&5
a848cd7e
SC
33714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33715 (exit $ac_status); } &&
ea7db9ff
DE
33716 { ac_try='test -z "$ac_c_werror_flag"
33717 || test ! -s conftest.err'
ac1cb8d3
VS
33718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33719 (eval $ac_try) 2>&5
33720 ac_status=$?
33721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33722 (exit $ac_status); }; } &&
33723 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33725 (eval $ac_try) 2>&5
33726 ac_status=$?
33727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33728 (exit $ac_status); }; }; then
33729 eval "$as_ac_var=yes"
33730else
33731 echo "$as_me: failed program was:" >&5
33732sed 's/^/| /' conftest.$ac_ext >&5
33733
33734eval "$as_ac_var=no"
33735fi
ac1cb8d3
VS
33736rm -f conftest.err conftest.$ac_objext \
33737 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33738fi
33739echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33740echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33741if test `eval echo '${'$as_ac_var'}'` = yes; then
33742 cat >>confdefs.h <<_ACEOF
33743#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33744_ACEOF
33745 cat >>confdefs.h <<\_ACEOF
33746#define HAVE_DLERROR 1
33747_ACEOF
33748
33749else
33750
33751 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
33752echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
33753if test "${ac_cv_lib_dl_dlerror+set}" = set; then
33754 echo $ECHO_N "(cached) $ECHO_C" >&6
33755else
33756 ac_check_lib_save_LIBS=$LIBS
33757LIBS="-ldl $LIBS"
33758cat >conftest.$ac_ext <<_ACEOF
33759/* confdefs.h. */
33760_ACEOF
33761cat confdefs.h >>conftest.$ac_ext
33762cat >>conftest.$ac_ext <<_ACEOF
33763/* end confdefs.h. */
33764
33765/* Override any gcc2 internal prototype to avoid an error. */
33766#ifdef __cplusplus
33767extern "C"
33768#endif
33769/* We use char because int might match the return type of a gcc2
33770 builtin and then its argument prototype would still apply. */
33771char dlerror ();
33772int
33773main ()
33774{
33775dlerror ();
33776 ;
33777 return 0;
33778}
33779_ACEOF
33780rm -f conftest.$ac_objext conftest$ac_exeext
33781if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33782 (eval $ac_link) 2>conftest.er1
a848cd7e 33783 ac_status=$?
ac1cb8d3
VS
33784 grep -v '^ *+' conftest.er1 >conftest.err
33785 rm -f conftest.er1
33786 cat conftest.err >&5
a848cd7e
SC
33787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33788 (exit $ac_status); } &&
ea7db9ff
DE
33789 { ac_try='test -z "$ac_c_werror_flag"
33790 || test ! -s conftest.err'
ac1cb8d3
VS
33791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33792 (eval $ac_try) 2>&5
33793 ac_status=$?
33794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33795 (exit $ac_status); }; } &&
33796 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33798 (eval $ac_try) 2>&5
33799 ac_status=$?
33800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33801 (exit $ac_status); }; }; then
33802 ac_cv_lib_dl_dlerror=yes
33803else
33804 echo "$as_me: failed program was:" >&5
33805sed 's/^/| /' conftest.$ac_ext >&5
33806
33807ac_cv_lib_dl_dlerror=no
33808fi
ac1cb8d3
VS
33809rm -f conftest.err conftest.$ac_objext \
33810 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33811LIBS=$ac_check_lib_save_LIBS
33812fi
33813echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
33814echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
33815if test $ac_cv_lib_dl_dlerror = yes; then
33816 cat >>confdefs.h <<\_ACEOF
33817#define HAVE_DLERROR 1
33818_ACEOF
33819
33820fi
33821
33822
33823
33824fi
33825done
33826
33827 fi
33828 fi
33829
33830 if test "$HAVE_DL_FUNCS" = 0; then
33831 if test "$HAVE_SHL_FUNCS" = 0; then
33832 if test "$USE_UNIX" = 1; then
33833 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
33834echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
33835 wxUSE_DYNAMIC_LOADER=no
33836 wxUSE_DYNLIB_CLASS=no
33837 else
33838 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
33839echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
33840 fi
33841 fi
33842 fi
33843 fi
33844fi
33845
33846if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
33847 cat >>confdefs.h <<\_ACEOF
33848#define wxUSE_DYNAMIC_LOADER 1
33849_ACEOF
33850
33851fi
33852if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
33853 cat >>confdefs.h <<\_ACEOF
33854#define wxUSE_DYNLIB_CLASS 1
33855_ACEOF
33856
33857fi
33858
33859
33860
33861if test "$wxUSE_PLUGINS" = "yes" ; then
33862 if test "$wxUSE_SHARED" = "no" ; then
33863 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
33864echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
33865 wxUSE_PLUGINS=no
33866 fi
33867 if test "$wxUSE_MONOLITHIC" = "yes" ; then
33868 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
33869echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
33870 wxUSE_PLUGINS=no
33871 fi
33872 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
33873 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
33874echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
33875 wxUSE_PLUGINS=no
33876 fi
33877 if test "$wxUSE_PLUGINS" = "yes" ; then
33878 cat >>confdefs.h <<\_ACEOF
33879#define wxUSE_PLUGINS 1
33880_ACEOF
33881
33882 fi
33883fi
33884
33885
33886if test "$wxUSE_STL" = "yes"; then
33887 cat >>confdefs.h <<\_ACEOF
33888#define wxUSE_STL 1
33889_ACEOF
33890
33891fi
33892
33893if test "$wxUSE_APPLE_IEEE" = "yes"; then
33894 cat >>confdefs.h <<\_ACEOF
33895#define wxUSE_APPLE_IEEE 1
33896_ACEOF
33897
33898fi
33899
33900if test "$wxUSE_TIMER" = "yes"; then
33901 cat >>confdefs.h <<\_ACEOF
33902#define wxUSE_TIMER 1
33903_ACEOF
33904
33905fi
33906
33907WITH_PLUGIN_SDL=0
33908if test "$wxUSE_SOUND" = "yes"; then
33909 if test "$USE_UNIX" = "1" ; then
33910
33911for ac_header in sys/soundcard.h
33912do
33913as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33914if eval "test \"\${$as_ac_Header+set}\" = set"; then
33915 echo "$as_me:$LINENO: checking for $ac_header" >&5
33916echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33917if eval "test \"\${$as_ac_Header+set}\" = set"; then
33918 echo $ECHO_N "(cached) $ECHO_C" >&6
33919fi
33920echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33921echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33922else
33923 # Is the header compilable?
33924echo "$as_me:$LINENO: checking $ac_header usability" >&5
33925echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33926cat >conftest.$ac_ext <<_ACEOF
33927/* confdefs.h. */
33928_ACEOF
33929cat confdefs.h >>conftest.$ac_ext
33930cat >>conftest.$ac_ext <<_ACEOF
33931/* end confdefs.h. */
33932$ac_includes_default
33933#include <$ac_header>
33934_ACEOF
33935rm -f conftest.$ac_objext
33936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33937 (eval $ac_compile) 2>conftest.er1
a848cd7e 33938 ac_status=$?
ac1cb8d3
VS
33939 grep -v '^ *+' conftest.er1 >conftest.err
33940 rm -f conftest.er1
33941 cat conftest.err >&5
a848cd7e
SC
33942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33943 (exit $ac_status); } &&
ea7db9ff
DE
33944 { ac_try='test -z "$ac_c_werror_flag"
33945 || test ! -s conftest.err'
ac1cb8d3
VS
33946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33947 (eval $ac_try) 2>&5
33948 ac_status=$?
33949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33950 (exit $ac_status); }; } &&
33951 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33953 (eval $ac_try) 2>&5
33954 ac_status=$?
33955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33956 (exit $ac_status); }; }; then
33957 ac_header_compiler=yes
33958else
33959 echo "$as_me: failed program was:" >&5
33960sed 's/^/| /' conftest.$ac_ext >&5
33961
33962ac_header_compiler=no
33963fi
ac1cb8d3 33964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33965echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33966echo "${ECHO_T}$ac_header_compiler" >&6
33967
33968# Is the header present?
33969echo "$as_me:$LINENO: checking $ac_header presence" >&5
33970echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33971cat >conftest.$ac_ext <<_ACEOF
33972/* confdefs.h. */
33973_ACEOF
33974cat confdefs.h >>conftest.$ac_ext
33975cat >>conftest.$ac_ext <<_ACEOF
33976/* end confdefs.h. */
33977#include <$ac_header>
33978_ACEOF
33979if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33980 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33981 ac_status=$?
33982 grep -v '^ *+' conftest.er1 >conftest.err
33983 rm -f conftest.er1
33984 cat conftest.err >&5
33985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33986 (exit $ac_status); } >/dev/null; then
33987 if test -s conftest.err; then
33988 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 33989 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
33990 else
33991 ac_cpp_err=
33992 fi
33993else
33994 ac_cpp_err=yes
33995fi
33996if test -z "$ac_cpp_err"; then
33997 ac_header_preproc=yes
33998else
33999 echo "$as_me: failed program was:" >&5
34000sed 's/^/| /' conftest.$ac_ext >&5
34001
34002 ac_header_preproc=no
34003fi
34004rm -f conftest.err conftest.$ac_ext
34005echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34006echo "${ECHO_T}$ac_header_preproc" >&6
34007
34008# So? What about this header?
ac1cb8d3
VS
34009case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34010 yes:no: )
a848cd7e
SC
34011 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34012echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
34013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34014echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34015 ac_header_preproc=yes
a848cd7e 34016 ;;
ac1cb8d3 34017 no:yes:* )
a848cd7e
SC
34018 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34019echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
34020 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34021echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34022 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34023echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34024 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34025echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
34026 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34027echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
34028 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34029echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
34030 (
34031 cat <<\_ASBOX
ac1cb8d3
VS
34032## ----------------------------------------- ##
34033## Report this to wx-dev@lists.wxwidgets.org ##
34034## ----------------------------------------- ##
a848cd7e
SC
34035_ASBOX
34036 ) |
34037 sed "s/^/$as_me: WARNING: /" >&2
34038 ;;
34039esac
34040echo "$as_me:$LINENO: checking for $ac_header" >&5
34041echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34042if eval "test \"\${$as_ac_Header+set}\" = set"; then
34043 echo $ECHO_N "(cached) $ECHO_C" >&6
34044else
ac1cb8d3 34045 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
34046fi
34047echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34048echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34049
34050fi
34051if test `eval echo '${'$as_ac_Header'}'` = yes; then
34052 cat >>confdefs.h <<_ACEOF
34053#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34054_ACEOF
34055
34056fi
34057
34058done
34059
34060
34061 if test "$wxUSE_LIBSDL" != "no"; then
34062
34063# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
34064if test "${with_sdl_prefix+set}" = set; then
34065 withval="$with_sdl_prefix"
34066 sdl_prefix="$withval"
34067else
34068 sdl_prefix=""
34069fi;
34070
34071# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
34072if test "${with_sdl_exec_prefix+set}" = set; then
34073 withval="$with_sdl_exec_prefix"
34074 sdl_exec_prefix="$withval"
34075else
34076 sdl_exec_prefix=""
34077fi;
34078# Check whether --enable-sdltest or --disable-sdltest was given.
34079if test "${enable_sdltest+set}" = set; then
34080 enableval="$enable_sdltest"
34081
34082else
34083 enable_sdltest=yes
34084fi;
34085
34086 if test x$sdl_exec_prefix != x ; then
34087 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
34088 if test x${SDL_CONFIG+set} != xset ; then
34089 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
34090 fi
34091 fi
34092 if test x$sdl_prefix != x ; then
34093 sdl_args="$sdl_args --prefix=$sdl_prefix"
34094 if test x${SDL_CONFIG+set} != xset ; then
34095 SDL_CONFIG=$sdl_prefix/bin/sdl-config
34096 fi
34097 fi
34098
34099
34100 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
34101 # Extract the first word of "sdl-config", so it can be a program name with args.
34102set dummy sdl-config; ac_word=$2
34103echo "$as_me:$LINENO: checking for $ac_word" >&5
34104echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34105if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
34106 echo $ECHO_N "(cached) $ECHO_C" >&6
34107else
34108 case $SDL_CONFIG in
34109 [\\/]* | ?:[\\/]*)
34110 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
34111 ;;
34112 *)
34113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34114for as_dir in $PATH
34115do
34116 IFS=$as_save_IFS
34117 test -z "$as_dir" && as_dir=.
34118 for ac_exec_ext in '' $ac_executable_extensions; do
34119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34120 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34122 break 2
34123 fi
34124done
34125done
34126
34127 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
34128 ;;
34129esac
34130fi
34131SDL_CONFIG=$ac_cv_path_SDL_CONFIG
34132
34133if test -n "$SDL_CONFIG"; then
34134 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
34135echo "${ECHO_T}$SDL_CONFIG" >&6
34136else
34137 echo "$as_me:$LINENO: result: no" >&5
34138echo "${ECHO_T}no" >&6
34139fi
34140
34141 min_sdl_version=1.2.0
34142 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
34143echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
34144 no_sdl=""
34145 if test "$SDL_CONFIG" = "no" ; then
34146 no_sdl=yes
34147 else
34148 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
34149 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
34150
34151 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
34152 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
34153 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
34154 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
34155 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
34156 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
34157 if test "x$enable_sdltest" = "xyes" ; then
34158 ac_save_CFLAGS="$CFLAGS"
34159 ac_save_LIBS="$LIBS"
34160 CFLAGS="$CFLAGS $SDL_CFLAGS"
34161 LIBS="$LIBS $SDL_LIBS"
34162 rm -f conf.sdltest
34163 if test "$cross_compiling" = yes; then
34164 echo $ac_n "cross compiling; assumed OK... $ac_c"
34165else
34166 cat >conftest.$ac_ext <<_ACEOF
34167/* confdefs.h. */
34168_ACEOF
34169cat confdefs.h >>conftest.$ac_ext
34170cat >>conftest.$ac_ext <<_ACEOF
34171/* end confdefs.h. */
34172
34173#include <stdio.h>
34174#include <stdlib.h>
34175#include <string.h>
34176#include "SDL.h"
34177
34178char*
34179my_strdup (char *str)
34180{
34181 char *new_str;
34182
34183 if (str)
34184 {
34185 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
34186 strcpy (new_str, str);
34187 }
34188 else
34189 new_str = NULL;
34190
34191 return new_str;
34192}
34193
34194int main (int argc, char *argv[])
34195{
34196 int major, minor, micro;
34197 char *tmp_version;
34198
34199 /* This hangs on some systems (?)
34200 system ("touch conf.sdltest");
34201 */
34202 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
34203
34204 /* HP/UX 9 (%@#!) writes to sscanf strings */
34205 tmp_version = my_strdup("$min_sdl_version");
34206 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
34207 printf("%s, bad version string\n", "$min_sdl_version");
34208 exit(1);
34209 }
34210
34211 if (($sdl_major_version > major) ||
34212 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
34213 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
34214 {
34215 return 0;
34216 }
34217 else
34218 {
34219 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
34220 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
34221 printf("*** best to upgrade to the required version.\n");
34222 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
34223 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
34224 printf("*** config.cache before re-running configure\n");
34225 return 1;
34226 }
34227}
34228
34229
34230_ACEOF
34231rm -f conftest$ac_exeext
34232if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34233 (eval $ac_link) 2>&5
34234 ac_status=$?
34235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34236 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34238 (eval $ac_try) 2>&5
34239 ac_status=$?
34240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34241 (exit $ac_status); }; }; then
34242 :
34243else
34244 echo "$as_me: program exited with status $ac_status" >&5
34245echo "$as_me: failed program was:" >&5
34246sed 's/^/| /' conftest.$ac_ext >&5
34247
34248( exit $ac_status )
34249no_sdl=yes
34250fi
ac1cb8d3 34251rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34252fi
34253 CFLAGS="$ac_save_CFLAGS"
34254 LIBS="$ac_save_LIBS"
34255 fi
34256 fi
34257 if test "x$no_sdl" = x ; then
34258 echo "$as_me:$LINENO: result: yes" >&5
34259echo "${ECHO_T}yes" >&6
34260
34261 EXTRALIBS_SDL="$SDL_LIBS"
34262 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
34263 cat >>confdefs.h <<\_ACEOF
34264#define wxUSE_LIBSDL 1
34265_ACEOF
34266
34267
34268 else
34269 echo "$as_me:$LINENO: result: no" >&5
34270echo "${ECHO_T}no" >&6
34271 if test "$SDL_CONFIG" = "no" ; then
34272 echo "*** The sdl-config script installed by SDL could not be found"
34273 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
34274 echo "*** your path, or set the SDL_CONFIG environment variable to the"
34275 echo "*** full path to sdl-config."
34276 else
34277 if test -f conf.sdltest ; then
34278 :
34279 else
34280 echo "*** Could not run SDL test program, checking why..."
34281 CFLAGS="$CFLAGS $SDL_CFLAGS"
34282 LIBS="$LIBS $SDL_LIBS"
34283 cat >conftest.$ac_ext <<_ACEOF
34284/* confdefs.h. */
34285_ACEOF
34286cat confdefs.h >>conftest.$ac_ext
34287cat >>conftest.$ac_ext <<_ACEOF
34288/* end confdefs.h. */
34289
34290#include <stdio.h>
34291#include "SDL.h"
34292
34293int main(int argc, char *argv[])
34294{ return 0; }
34295#undef main
34296#define main K_and_R_C_main
34297
34298int
34299main ()
34300{
34301 return 0;
34302 ;
34303 return 0;
34304}
34305_ACEOF
34306rm -f conftest.$ac_objext conftest$ac_exeext
34307if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34308 (eval $ac_link) 2>conftest.er1
a848cd7e 34309 ac_status=$?
ac1cb8d3
VS
34310 grep -v '^ *+' conftest.er1 >conftest.err
34311 rm -f conftest.er1
34312 cat conftest.err >&5
a848cd7e
SC
34313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34314 (exit $ac_status); } &&
ea7db9ff
DE
34315 { ac_try='test -z "$ac_c_werror_flag"
34316 || test ! -s conftest.err'
ac1cb8d3
VS
34317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34318 (eval $ac_try) 2>&5
34319 ac_status=$?
34320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34321 (exit $ac_status); }; } &&
34322 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34324 (eval $ac_try) 2>&5
34325 ac_status=$?
34326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34327 (exit $ac_status); }; }; then
34328 echo "*** The test program compiled, but did not run. This usually means"
34329 echo "*** that the run-time linker is not finding SDL or finding the wrong"
34330 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
34331 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
34332 echo "*** to the installed location Also, make sure you have run ldconfig if that"
34333 echo "*** is required on your system"
34334 echo "***"
34335 echo "*** If you have an old version installed, it is best to remove it, although"
34336 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
34337else
34338 echo "$as_me: failed program was:" >&5
34339sed 's/^/| /' conftest.$ac_ext >&5
34340
34341 echo "*** The test program failed to compile or link. See the file config.log for the"
34342 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
34343 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
34344 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
34345fi
ac1cb8d3
VS
34346rm -f conftest.err conftest.$ac_objext \
34347 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34348 CFLAGS="$ac_save_CFLAGS"
34349 LIBS="$ac_save_LIBS"
34350 fi
34351 fi
34352 SDL_CFLAGS=""
34353 SDL_LIBS=""
34354 wxUSE_LIBSDL="no"
34355 fi
34356
34357
34358 rm -f conf.sdltest
34359
34360 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
34361 WITH_PLUGIN_SDL=1
34362 fi
34363 fi
34364 fi
34365
34366 cat >>confdefs.h <<\_ACEOF
34367#define wxUSE_SOUND 1
34368_ACEOF
34369
34370 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
34371fi
34372
34373if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
34374 cat >>confdefs.h <<\_ACEOF
34375#define wxUSE_CMDLINE_PARSER 1
34376_ACEOF
34377
34378fi
34379
34380if test "$wxUSE_STOPWATCH" = "yes"; then
34381 cat >>confdefs.h <<\_ACEOF
34382#define wxUSE_STOPWATCH 1
34383_ACEOF
34384
34385fi
34386
34387if test "$wxUSE_DATETIME" = "yes"; then
34388 cat >>confdefs.h <<\_ACEOF
34389#define wxUSE_DATETIME 1
34390_ACEOF
34391
34392fi
34393
34394if test "$wxUSE_FILE" = "yes"; then
34395 cat >>confdefs.h <<\_ACEOF
34396#define wxUSE_FILE 1
34397_ACEOF
34398
34399fi
34400
34401if test "$wxUSE_FFILE" = "yes"; then
34402 cat >>confdefs.h <<\_ACEOF
34403#define wxUSE_FFILE 1
34404_ACEOF
34405
34406fi
34407
34408if test "$wxUSE_FILESYSTEM" = "yes"; then
34409 cat >>confdefs.h <<\_ACEOF
34410#define wxUSE_FILESYSTEM 1
34411_ACEOF
34412
34413fi
34414
34415if test "$wxUSE_FS_ZIP" = "yes"; then
34416 cat >>confdefs.h <<\_ACEOF
34417#define wxUSE_FS_ZIP 1
34418_ACEOF
34419
34420fi
34421
34422if test "$wxUSE_ZIPSTREAM" = "yes"; then
34423 cat >>confdefs.h <<\_ACEOF
34424#define wxUSE_ZIPSTREAM 1
34425_ACEOF
34426
34427fi
34428
a848cd7e
SC
34429if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
34430 cat >>confdefs.h <<\_ACEOF
34431#define wxUSE_ON_FATAL_EXCEPTION 1
34432_ACEOF
34433
34434fi
34435
34436if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
34437 cat >>confdefs.h <<\_ACEOF
34438#define wxUSE_SNGLINST_CHECKER 1
34439_ACEOF
34440
34441fi
34442
34443if test "$wxUSE_BUSYINFO" = "yes"; then
34444 cat >>confdefs.h <<\_ACEOF
34445#define wxUSE_BUSYINFO 1
34446_ACEOF
34447
34448fi
34449
34450if test "$wxUSE_STD_IOSTREAM" = "yes"; then
34451 cat >>confdefs.h <<\_ACEOF
34452#define wxUSE_STD_IOSTREAM 1
34453_ACEOF
34454
34455fi
34456
34457if test "$wxUSE_TEXTBUFFER" = "yes"; then
34458 cat >>confdefs.h <<\_ACEOF
34459#define wxUSE_TEXTBUFFER 1
34460_ACEOF
34461
34462fi
34463
34464if test "$wxUSE_TEXTFILE" = "yes"; then
34465 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
34466 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
34467echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
34468 else
34469 cat >>confdefs.h <<\_ACEOF
34470#define wxUSE_TEXTFILE 1
34471_ACEOF
34472
34473 fi
34474fi
34475
34476if test "$wxUSE_CONFIG" = "yes" ; then
34477 if test "$wxUSE_TEXTFILE" != "yes"; then
34478 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
34479echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
34480 else
34481 cat >>confdefs.h <<\_ACEOF
34482#define wxUSE_CONFIG 1
34483_ACEOF
34484
34485 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
34486 fi
34487fi
34488
34489if test "$wxUSE_INTL" = "yes" ; then
34490 if test "$wxUSE_FILE" != "yes"; then
34491 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
34492echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
34493 else
34494 cat >>confdefs.h <<\_ACEOF
34495#define wxUSE_INTL 1
34496_ACEOF
34497
34498 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
34499 GUIDIST="$GUIDIST INTL_DIST"
34500 fi
34501fi
34502
34503if test "$wxUSE_LOG" = "yes"; then
34504 cat >>confdefs.h <<\_ACEOF
34505#define wxUSE_LOG 1
34506_ACEOF
34507
34508
34509 if test "$wxUSE_LOGGUI" = "yes"; then
34510 cat >>confdefs.h <<\_ACEOF
34511#define wxUSE_LOGGUI 1
34512_ACEOF
34513
34514 fi
34515
34516 if test "$wxUSE_LOGWINDOW" = "yes"; then
34517 cat >>confdefs.h <<\_ACEOF
34518#define wxUSE_LOGWINDOW 1
34519_ACEOF
34520
34521 fi
34522
34523 if test "$wxUSE_LOGDIALOG" = "yes"; then
34524 cat >>confdefs.h <<\_ACEOF
34525#define wxUSE_LOG_DIALOG 1
34526_ACEOF
34527
34528 fi
34529fi
34530
34531if test "$wxUSE_LONGLONG" = "yes"; then
34532 cat >>confdefs.h <<\_ACEOF
34533#define wxUSE_LONGLONG 1
34534_ACEOF
34535
34536fi
34537
34538if test "$wxUSE_GEOMETRY" = "yes"; then
34539 cat >>confdefs.h <<\_ACEOF
34540#define wxUSE_GEOMETRY 1
34541_ACEOF
34542
34543fi
34544
34545if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
34546 cat >>confdefs.h <<\_ACEOF
34547#define wxUSE_DIALUP_MANAGER 1
34548_ACEOF
34549
34550 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
34551fi
34552
34553if test "$wxUSE_STREAMS" = "yes" ; then
34554 cat >>confdefs.h <<\_ACEOF
34555#define wxUSE_STREAMS 1
34556_ACEOF
34557
34558fi
34559
34560
34561if test "$wxUSE_DATETIME" = "yes"; then
34562
34563for ac_func in strptime
34564do
34565as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34566echo "$as_me:$LINENO: checking for $ac_func" >&5
34567echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34568if eval "test \"\${$as_ac_var+set}\" = set"; then
34569 echo $ECHO_N "(cached) $ECHO_C" >&6
34570else
34571 cat >conftest.$ac_ext <<_ACEOF
34572/* confdefs.h. */
34573_ACEOF
34574cat confdefs.h >>conftest.$ac_ext
34575cat >>conftest.$ac_ext <<_ACEOF
34576/* end confdefs.h. */
ac1cb8d3
VS
34577/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34579#define $ac_func innocuous_$ac_func
34580
a848cd7e
SC
34581/* System header to define __stub macros and hopefully few prototypes,
34582 which can conflict with char $ac_func (); below.
34583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34584 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34585
a848cd7e
SC
34586#ifdef __STDC__
34587# include <limits.h>
34588#else
34589# include <assert.h>
34590#endif
ac1cb8d3
VS
34591
34592#undef $ac_func
34593
a848cd7e
SC
34594/* Override any gcc2 internal prototype to avoid an error. */
34595#ifdef __cplusplus
34596extern "C"
34597{
34598#endif
34599/* We use char because int might match the return type of a gcc2
34600 builtin and then its argument prototype would still apply. */
34601char $ac_func ();
34602/* The GNU C library defines this for functions which it implements
34603 to always fail with ENOSYS. Some functions are actually named
34604 something starting with __ and the normal name is an alias. */
34605#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34606choke me
34607#else
34608char (*f) () = $ac_func;
34609#endif
34610#ifdef __cplusplus
34611}
34612#endif
34613
34614int
34615main ()
34616{
34617return f != $ac_func;
34618 ;
34619 return 0;
34620}
34621_ACEOF
34622rm -f conftest.$ac_objext conftest$ac_exeext
34623if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34624 (eval $ac_link) 2>conftest.er1
a848cd7e 34625 ac_status=$?
ac1cb8d3
VS
34626 grep -v '^ *+' conftest.er1 >conftest.err
34627 rm -f conftest.er1
34628 cat conftest.err >&5
a848cd7e
SC
34629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34630 (exit $ac_status); } &&
ea7db9ff
DE
34631 { ac_try='test -z "$ac_c_werror_flag"
34632 || test ! -s conftest.err'
ac1cb8d3
VS
34633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34634 (eval $ac_try) 2>&5
34635 ac_status=$?
34636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34637 (exit $ac_status); }; } &&
34638 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34640 (eval $ac_try) 2>&5
34641 ac_status=$?
34642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34643 (exit $ac_status); }; }; then
34644 eval "$as_ac_var=yes"
34645else
34646 echo "$as_me: failed program was:" >&5
34647sed 's/^/| /' conftest.$ac_ext >&5
34648
34649eval "$as_ac_var=no"
34650fi
ac1cb8d3
VS
34651rm -f conftest.err conftest.$ac_objext \
34652 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34653fi
34654echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34655echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34656if test `eval echo '${'$as_ac_var'}'` = yes; then
34657 cat >>confdefs.h <<_ACEOF
34658#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34659_ACEOF
34660
34661fi
34662done
34663
34664
34665 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
34666echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
34667if test "${wx_cv_var_timezone+set}" = set; then
34668 echo $ECHO_N "(cached) $ECHO_C" >&6
34669else
34670
34671 cat >conftest.$ac_ext <<_ACEOF
34672/* confdefs.h. */
34673_ACEOF
34674cat confdefs.h >>conftest.$ac_ext
34675cat >>conftest.$ac_ext <<_ACEOF
34676/* end confdefs.h. */
34677
34678 #include <time.h>
34679
34680int
34681main ()
34682{
34683
34684 int tz;
34685 tz = timezone;
34686
34687 ;
34688 return 0;
34689}
34690_ACEOF
34691rm -f conftest.$ac_objext
34692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34693 (eval $ac_compile) 2>conftest.er1
a848cd7e 34694 ac_status=$?
ac1cb8d3
VS
34695 grep -v '^ *+' conftest.er1 >conftest.err
34696 rm -f conftest.er1
34697 cat conftest.err >&5
a848cd7e
SC
34698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34699 (exit $ac_status); } &&
ea7db9ff
DE
34700 { ac_try='test -z "$ac_c_werror_flag"
34701 || test ! -s conftest.err'
ac1cb8d3
VS
34702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34703 (eval $ac_try) 2>&5
34704 ac_status=$?
34705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34706 (exit $ac_status); }; } &&
34707 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34709 (eval $ac_try) 2>&5
34710 ac_status=$?
34711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34712 (exit $ac_status); }; }; then
34713
34714 wx_cv_var_timezone=timezone
34715
34716else
34717 echo "$as_me: failed program was:" >&5
34718sed 's/^/| /' conftest.$ac_ext >&5
34719
34720
34721 cat >conftest.$ac_ext <<_ACEOF
34722/* confdefs.h. */
34723_ACEOF
34724cat confdefs.h >>conftest.$ac_ext
34725cat >>conftest.$ac_ext <<_ACEOF
34726/* end confdefs.h. */
34727
34728 #include <time.h>
34729
34730int
34731main ()
34732{
34733
34734 int tz;
34735 tz = _timezone;
34736
34737 ;
34738 return 0;
34739}
34740_ACEOF
34741rm -f conftest.$ac_objext
34742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34743 (eval $ac_compile) 2>conftest.er1
a848cd7e 34744 ac_status=$?
ac1cb8d3
VS
34745 grep -v '^ *+' conftest.er1 >conftest.err
34746 rm -f conftest.er1
34747 cat conftest.err >&5
a848cd7e
SC
34748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34749 (exit $ac_status); } &&
ea7db9ff
DE
34750 { ac_try='test -z "$ac_c_werror_flag"
34751 || test ! -s conftest.err'
ac1cb8d3
VS
34752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34753 (eval $ac_try) 2>&5
34754 ac_status=$?
34755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34756 (exit $ac_status); }; } &&
34757 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34759 (eval $ac_try) 2>&5
34760 ac_status=$?
34761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34762 (exit $ac_status); }; }; then
34763
34764 wx_cv_var_timezone=_timezone
34765
34766else
34767 echo "$as_me: failed program was:" >&5
34768sed 's/^/| /' conftest.$ac_ext >&5
34769
34770
34771 cat >conftest.$ac_ext <<_ACEOF
34772/* confdefs.h. */
34773_ACEOF
34774cat confdefs.h >>conftest.$ac_ext
34775cat >>conftest.$ac_ext <<_ACEOF
34776/* end confdefs.h. */
34777
34778 #include <time.h>
34779
34780int
34781main ()
34782{
34783
34784 int tz;
34785 tz = __timezone;
34786
34787 ;
34788 return 0;
34789}
34790_ACEOF
34791rm -f conftest.$ac_objext
34792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34793 (eval $ac_compile) 2>conftest.er1
a848cd7e 34794 ac_status=$?
ac1cb8d3
VS
34795 grep -v '^ *+' conftest.er1 >conftest.err
34796 rm -f conftest.er1
34797 cat conftest.err >&5
a848cd7e
SC
34798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34799 (exit $ac_status); } &&
ea7db9ff
DE
34800 { ac_try='test -z "$ac_c_werror_flag"
34801 || test ! -s conftest.err'
ac1cb8d3
VS
34802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34803 (eval $ac_try) 2>&5
34804 ac_status=$?
34805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34806 (exit $ac_status); }; } &&
34807 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34809 (eval $ac_try) 2>&5
34810 ac_status=$?
34811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34812 (exit $ac_status); }; }; then
34813
34814 wx_cv_var_timezone=__timezone
34815
34816else
34817 echo "$as_me: failed program was:" >&5
34818sed 's/^/| /' conftest.$ac_ext >&5
34819
34820
34821 if test "$USE_DOS" = 0 ; then
34822 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
34823echo "$as_me: WARNING: no timezone variable" >&2;}
34824 fi
34825
34826
34827fi
ac1cb8d3 34828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34829
34830
34831fi
ac1cb8d3 34832rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34833
34834
34835fi
ac1cb8d3 34836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34837
34838
34839fi
34840echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
34841echo "${ECHO_T}$wx_cv_var_timezone" >&6
34842
34843 if test "x$wx_cv_var_timezone" != x ; then
34844 cat >>confdefs.h <<_ACEOF
34845#define WX_TIMEZONE $wx_cv_var_timezone
34846_ACEOF
34847
34848 fi
34849
34850
34851for ac_func in localtime
34852do
34853as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34854echo "$as_me:$LINENO: checking for $ac_func" >&5
34855echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34856if eval "test \"\${$as_ac_var+set}\" = set"; then
34857 echo $ECHO_N "(cached) $ECHO_C" >&6
34858else
34859 cat >conftest.$ac_ext <<_ACEOF
34860/* confdefs.h. */
34861_ACEOF
34862cat confdefs.h >>conftest.$ac_ext
34863cat >>conftest.$ac_ext <<_ACEOF
34864/* end confdefs.h. */
ac1cb8d3
VS
34865/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34867#define $ac_func innocuous_$ac_func
34868
a848cd7e
SC
34869/* System header to define __stub macros and hopefully few prototypes,
34870 which can conflict with char $ac_func (); below.
34871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34872 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34873
a848cd7e
SC
34874#ifdef __STDC__
34875# include <limits.h>
34876#else
34877# include <assert.h>
34878#endif
ac1cb8d3
VS
34879
34880#undef $ac_func
34881
a848cd7e
SC
34882/* Override any gcc2 internal prototype to avoid an error. */
34883#ifdef __cplusplus
34884extern "C"
34885{
34886#endif
34887/* We use char because int might match the return type of a gcc2
34888 builtin and then its argument prototype would still apply. */
34889char $ac_func ();
34890/* The GNU C library defines this for functions which it implements
34891 to always fail with ENOSYS. Some functions are actually named
34892 something starting with __ and the normal name is an alias. */
34893#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34894choke me
34895#else
34896char (*f) () = $ac_func;
34897#endif
34898#ifdef __cplusplus
34899}
34900#endif
34901
34902int
34903main ()
34904{
34905return f != $ac_func;
34906 ;
34907 return 0;
34908}
34909_ACEOF
34910rm -f conftest.$ac_objext conftest$ac_exeext
34911if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34912 (eval $ac_link) 2>conftest.er1
a848cd7e 34913 ac_status=$?
ac1cb8d3
VS
34914 grep -v '^ *+' conftest.er1 >conftest.err
34915 rm -f conftest.er1
34916 cat conftest.err >&5
a848cd7e
SC
34917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34918 (exit $ac_status); } &&
ea7db9ff
DE
34919 { ac_try='test -z "$ac_c_werror_flag"
34920 || test ! -s conftest.err'
ac1cb8d3
VS
34921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34922 (eval $ac_try) 2>&5
34923 ac_status=$?
34924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34925 (exit $ac_status); }; } &&
34926 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34928 (eval $ac_try) 2>&5
34929 ac_status=$?
34930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34931 (exit $ac_status); }; }; then
34932 eval "$as_ac_var=yes"
34933else
34934 echo "$as_me: failed program was:" >&5
34935sed 's/^/| /' conftest.$ac_ext >&5
34936
34937eval "$as_ac_var=no"
34938fi
ac1cb8d3
VS
34939rm -f conftest.err conftest.$ac_objext \
34940 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34941fi
34942echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34943echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34944if test `eval echo '${'$as_ac_var'}'` = yes; then
34945 cat >>confdefs.h <<_ACEOF
34946#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34947_ACEOF
34948
34949fi
34950done
34951
34952
34953 if test "$ac_cv_func_localtime" = "yes"; then
34954 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
34955echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
34956if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
34957 echo $ECHO_N "(cached) $ECHO_C" >&6
34958else
34959
34960 cat >conftest.$ac_ext <<_ACEOF
34961/* confdefs.h. */
34962_ACEOF
34963cat confdefs.h >>conftest.$ac_ext
34964cat >>conftest.$ac_ext <<_ACEOF
34965/* end confdefs.h. */
34966
34967 #include <time.h>
34968
34969int
34970main ()
34971{
34972
34973 struct tm tm;
34974 tm.tm_gmtoff++;
34975
34976 ;
34977 return 0;
34978}
34979_ACEOF
34980rm -f conftest.$ac_objext
34981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34982 (eval $ac_compile) 2>conftest.er1
a848cd7e 34983 ac_status=$?
ac1cb8d3
VS
34984 grep -v '^ *+' conftest.er1 >conftest.err
34985 rm -f conftest.er1
34986 cat conftest.err >&5
a848cd7e
SC
34987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34988 (exit $ac_status); } &&
ea7db9ff
DE
34989 { ac_try='test -z "$ac_c_werror_flag"
34990 || test ! -s conftest.err'
ac1cb8d3
VS
34991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34992 (eval $ac_try) 2>&5
34993 ac_status=$?
34994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34995 (exit $ac_status); }; } &&
34996 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34998 (eval $ac_try) 2>&5
34999 ac_status=$?
35000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35001 (exit $ac_status); }; }; then
35002
35003 wx_cv_struct_tm_has_gmtoff=yes
35004
35005else
35006 echo "$as_me: failed program was:" >&5
35007sed 's/^/| /' conftest.$ac_ext >&5
35008
35009wx_cv_struct_tm_has_gmtoff=no
35010
35011fi
ac1cb8d3 35012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35013
35014fi
35015echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
35016echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
35017 fi
35018
35019 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
35020 cat >>confdefs.h <<\_ACEOF
35021#define WX_GMTOFF_IN_TM 1
35022_ACEOF
35023
35024 fi
35025
35026
35027
35028for ac_func in gettimeofday ftime
35029do
35030as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35031echo "$as_me:$LINENO: checking for $ac_func" >&5
35032echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35033if eval "test \"\${$as_ac_var+set}\" = set"; then
35034 echo $ECHO_N "(cached) $ECHO_C" >&6
35035else
35036 cat >conftest.$ac_ext <<_ACEOF
35037/* confdefs.h. */
35038_ACEOF
35039cat confdefs.h >>conftest.$ac_ext
35040cat >>conftest.$ac_ext <<_ACEOF
35041/* end confdefs.h. */
ac1cb8d3
VS
35042/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35043 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35044#define $ac_func innocuous_$ac_func
35045
a848cd7e
SC
35046/* System header to define __stub macros and hopefully few prototypes,
35047 which can conflict with char $ac_func (); below.
35048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35049 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35050
a848cd7e
SC
35051#ifdef __STDC__
35052# include <limits.h>
35053#else
35054# include <assert.h>
35055#endif
ac1cb8d3
VS
35056
35057#undef $ac_func
35058
a848cd7e
SC
35059/* Override any gcc2 internal prototype to avoid an error. */
35060#ifdef __cplusplus
35061extern "C"
35062{
35063#endif
35064/* We use char because int might match the return type of a gcc2
35065 builtin and then its argument prototype would still apply. */
35066char $ac_func ();
35067/* The GNU C library defines this for functions which it implements
35068 to always fail with ENOSYS. Some functions are actually named
35069 something starting with __ and the normal name is an alias. */
35070#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35071choke me
35072#else
35073char (*f) () = $ac_func;
35074#endif
35075#ifdef __cplusplus
35076}
35077#endif
35078
35079int
35080main ()
35081{
35082return f != $ac_func;
35083 ;
35084 return 0;
35085}
35086_ACEOF
35087rm -f conftest.$ac_objext conftest$ac_exeext
35088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35089 (eval $ac_link) 2>conftest.er1
a848cd7e 35090 ac_status=$?
ac1cb8d3
VS
35091 grep -v '^ *+' conftest.er1 >conftest.err
35092 rm -f conftest.er1
35093 cat conftest.err >&5
a848cd7e
SC
35094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35095 (exit $ac_status); } &&
ea7db9ff
DE
35096 { ac_try='test -z "$ac_c_werror_flag"
35097 || test ! -s conftest.err'
ac1cb8d3
VS
35098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35099 (eval $ac_try) 2>&5
35100 ac_status=$?
35101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35102 (exit $ac_status); }; } &&
35103 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35105 (eval $ac_try) 2>&5
35106 ac_status=$?
35107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35108 (exit $ac_status); }; }; then
35109 eval "$as_ac_var=yes"
35110else
35111 echo "$as_me: failed program was:" >&5
35112sed 's/^/| /' conftest.$ac_ext >&5
35113
35114eval "$as_ac_var=no"
35115fi
ac1cb8d3
VS
35116rm -f conftest.err conftest.$ac_objext \
35117 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35118fi
35119echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35120echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35121if test `eval echo '${'$as_ac_var'}'` = yes; then
35122 cat >>confdefs.h <<_ACEOF
35123#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35124_ACEOF
35125 break
35126fi
35127done
35128
35129
35130 if test "$ac_cv_func_gettimeofday" = "yes"; then
35131 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
35132echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
35133if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
35134 echo $ECHO_N "(cached) $ECHO_C" >&6
35135else
35136
35137
35138
35139 ac_ext=cc
35140ac_cpp='$CXXCPP $CPPFLAGS'
35141ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35142ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35143ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35144
35145
35146 cat >conftest.$ac_ext <<_ACEOF
35147/* confdefs.h. */
35148_ACEOF
35149cat confdefs.h >>conftest.$ac_ext
35150cat >>conftest.$ac_ext <<_ACEOF
35151/* end confdefs.h. */
35152
35153 #include <sys/time.h>
35154 #include <unistd.h>
35155
35156int
35157main ()
35158{
35159
35160 struct timeval tv;
35161 gettimeofday(&tv, NULL);
35162
35163 ;
35164 return 0;
35165}
35166_ACEOF
35167rm -f conftest.$ac_objext
35168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35169 (eval $ac_compile) 2>conftest.er1
a848cd7e 35170 ac_status=$?
ac1cb8d3
VS
35171 grep -v '^ *+' conftest.er1 >conftest.err
35172 rm -f conftest.er1
35173 cat conftest.err >&5
a848cd7e
SC
35174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35175 (exit $ac_status); } &&
ea7db9ff
DE
35176 { ac_try='test -z "$ac_cxx_werror_flag"
35177 || test ! -s conftest.err'
ac1cb8d3
VS
35178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35179 (eval $ac_try) 2>&5
35180 ac_status=$?
35181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35182 (exit $ac_status); }; } &&
35183 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35185 (eval $ac_try) 2>&5
35186 ac_status=$?
35187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35188 (exit $ac_status); }; }; then
35189 wx_cv_func_gettimeofday_has_2_args=yes
35190else
35191 echo "$as_me: failed program was:" >&5
35192sed 's/^/| /' conftest.$ac_ext >&5
35193
35194cat >conftest.$ac_ext <<_ACEOF
35195/* confdefs.h. */
35196_ACEOF
35197cat confdefs.h >>conftest.$ac_ext
35198cat >>conftest.$ac_ext <<_ACEOF
35199/* end confdefs.h. */
35200
35201 #include <sys/time.h>
35202 #include <unistd.h>
35203
35204int
35205main ()
35206{
35207
35208 struct timeval tv;
35209 gettimeofday(&tv);
35210
35211 ;
35212 return 0;
35213}
35214_ACEOF
35215rm -f conftest.$ac_objext
35216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35217 (eval $ac_compile) 2>conftest.er1
a848cd7e 35218 ac_status=$?
ac1cb8d3
VS
35219 grep -v '^ *+' conftest.er1 >conftest.err
35220 rm -f conftest.er1
35221 cat conftest.err >&5
a848cd7e
SC
35222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35223 (exit $ac_status); } &&
ea7db9ff
DE
35224 { ac_try='test -z "$ac_cxx_werror_flag"
35225 || test ! -s conftest.err'
ac1cb8d3
VS
35226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35227 (eval $ac_try) 2>&5
35228 ac_status=$?
35229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35230 (exit $ac_status); }; } &&
35231 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35233 (eval $ac_try) 2>&5
35234 ac_status=$?
35235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35236 (exit $ac_status); }; }; then
35237 wx_cv_func_gettimeofday_has_2_args=no
35238else
35239 echo "$as_me: failed program was:" >&5
35240sed 's/^/| /' conftest.$ac_ext >&5
35241
35242
35243 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
35244echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
35245 wx_cv_func_gettimeofday_has_2_args=unknown
35246
35247
35248fi
ac1cb8d3 35249rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35250
35251fi
ac1cb8d3 35252rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35253 ac_ext=c
35254ac_cpp='$CPP $CPPFLAGS'
35255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35257ac_compiler_gnu=$ac_cv_c_compiler_gnu
35258
35259
35260fi
35261echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
35262echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
35263
35264 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
35265 cat >>confdefs.h <<\_ACEOF
35266#define WX_GETTIMEOFDAY_NO_TZ 1
35267_ACEOF
35268
35269 fi
35270 fi
35271
35272 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
35273fi
35274
35275
35276if test "$wxUSE_SOCKETS" = "yes"; then
35277 if test "$wxUSE_MGL" = "1"; then
35278 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
35279echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
35280 wxUSE_SOCKETS="no"
35281 fi
35282fi
35283
35284if test "$wxUSE_SOCKETS" = "yes"; then
35285 if test "$TOOLKIT" != "MSW"; then
35286 echo "$as_me:$LINENO: checking for socket" >&5
35287echo $ECHO_N "checking for socket... $ECHO_C" >&6
35288if test "${ac_cv_func_socket+set}" = set; then
35289 echo $ECHO_N "(cached) $ECHO_C" >&6
35290else
35291 cat >conftest.$ac_ext <<_ACEOF
35292/* confdefs.h. */
35293_ACEOF
35294cat confdefs.h >>conftest.$ac_ext
35295cat >>conftest.$ac_ext <<_ACEOF
35296/* end confdefs.h. */
ac1cb8d3
VS
35297/* Define socket to an innocuous variant, in case <limits.h> declares socket.
35298 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35299#define socket innocuous_socket
35300
a848cd7e
SC
35301/* System header to define __stub macros and hopefully few prototypes,
35302 which can conflict with char socket (); below.
35303 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35304 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35305
a848cd7e
SC
35306#ifdef __STDC__
35307# include <limits.h>
35308#else
35309# include <assert.h>
35310#endif
ac1cb8d3
VS
35311
35312#undef socket
35313
a848cd7e
SC
35314/* Override any gcc2 internal prototype to avoid an error. */
35315#ifdef __cplusplus
35316extern "C"
35317{
35318#endif
35319/* We use char because int might match the return type of a gcc2
35320 builtin and then its argument prototype would still apply. */
35321char socket ();
35322/* The GNU C library defines this for functions which it implements
35323 to always fail with ENOSYS. Some functions are actually named
35324 something starting with __ and the normal name is an alias. */
35325#if defined (__stub_socket) || defined (__stub___socket)
35326choke me
35327#else
35328char (*f) () = socket;
35329#endif
35330#ifdef __cplusplus
35331}
35332#endif
35333
35334int
35335main ()
35336{
35337return f != socket;
35338 ;
35339 return 0;
35340}
35341_ACEOF
35342rm -f conftest.$ac_objext conftest$ac_exeext
35343if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35344 (eval $ac_link) 2>conftest.er1
a848cd7e 35345 ac_status=$?
ac1cb8d3
VS
35346 grep -v '^ *+' conftest.er1 >conftest.err
35347 rm -f conftest.er1
35348 cat conftest.err >&5
a848cd7e
SC
35349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35350 (exit $ac_status); } &&
ea7db9ff
DE
35351 { ac_try='test -z "$ac_c_werror_flag"
35352 || test ! -s conftest.err'
ac1cb8d3
VS
35353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35354 (eval $ac_try) 2>&5
35355 ac_status=$?
35356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35357 (exit $ac_status); }; } &&
35358 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35360 (eval $ac_try) 2>&5
35361 ac_status=$?
35362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35363 (exit $ac_status); }; }; then
35364 ac_cv_func_socket=yes
35365else
35366 echo "$as_me: failed program was:" >&5
35367sed 's/^/| /' conftest.$ac_ext >&5
35368
35369ac_cv_func_socket=no
35370fi
ac1cb8d3
VS
35371rm -f conftest.err conftest.$ac_objext \
35372 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35373fi
35374echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
35375echo "${ECHO_T}$ac_cv_func_socket" >&6
35376if test $ac_cv_func_socket = yes; then
35377 :
35378else
35379
35380 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
35381echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
35382if test "${ac_cv_lib_socket_socket+set}" = set; then
35383 echo $ECHO_N "(cached) $ECHO_C" >&6
35384else
35385 ac_check_lib_save_LIBS=$LIBS
35386LIBS="-lsocket $LIBS"
35387cat >conftest.$ac_ext <<_ACEOF
35388/* confdefs.h. */
35389_ACEOF
35390cat confdefs.h >>conftest.$ac_ext
35391cat >>conftest.$ac_ext <<_ACEOF
35392/* end confdefs.h. */
35393
35394/* Override any gcc2 internal prototype to avoid an error. */
35395#ifdef __cplusplus
35396extern "C"
35397#endif
35398/* We use char because int might match the return type of a gcc2
35399 builtin and then its argument prototype would still apply. */
35400char socket ();
35401int
35402main ()
35403{
35404socket ();
35405 ;
35406 return 0;
35407}
35408_ACEOF
35409rm -f conftest.$ac_objext conftest$ac_exeext
35410if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35411 (eval $ac_link) 2>conftest.er1
a848cd7e 35412 ac_status=$?
ac1cb8d3
VS
35413 grep -v '^ *+' conftest.er1 >conftest.err
35414 rm -f conftest.er1
35415 cat conftest.err >&5
a848cd7e
SC
35416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35417 (exit $ac_status); } &&
ea7db9ff
DE
35418 { ac_try='test -z "$ac_c_werror_flag"
35419 || test ! -s conftest.err'
ac1cb8d3
VS
35420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35421 (eval $ac_try) 2>&5
35422 ac_status=$?
35423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35424 (exit $ac_status); }; } &&
35425 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35427 (eval $ac_try) 2>&5
35428 ac_status=$?
35429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35430 (exit $ac_status); }; }; then
35431 ac_cv_lib_socket_socket=yes
35432else
35433 echo "$as_me: failed program was:" >&5
35434sed 's/^/| /' conftest.$ac_ext >&5
35435
35436ac_cv_lib_socket_socket=no
35437fi
ac1cb8d3
VS
35438rm -f conftest.err conftest.$ac_objext \
35439 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35440LIBS=$ac_check_lib_save_LIBS
35441fi
35442echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
35443echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
35444if test $ac_cv_lib_socket_socket = yes; then
35445 if test "$INET_LINK" != " -lsocket"; then
35446 INET_LINK="$INET_LINK -lsocket"
35447 fi
35448else
35449
35450 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
35451echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
35452 wxUSE_SOCKETS=no
35453
35454
35455fi
35456
35457
35458
35459fi
35460
35461 fi
35462fi
35463
35464if test "$wxUSE_SOCKETS" = "yes" ; then
35465 if test "$TOOLKIT" != "MSW"; then
35466 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
35467echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
35468if test "${wx_cv_type_getsockname3+set}" = set; then
35469 echo $ECHO_N "(cached) $ECHO_C" >&6
35470else
35471
35472 cat >conftest.$ac_ext <<_ACEOF
35473/* confdefs.h. */
35474_ACEOF
35475cat confdefs.h >>conftest.$ac_ext
35476cat >>conftest.$ac_ext <<_ACEOF
35477/* end confdefs.h. */
35478
35479 #include <sys/types.h>
35480 #include <sys/socket.h>
35481
35482int
35483main ()
35484{
35485
35486 socklen_t len;
35487 getsockname(0, 0, &len);
35488
35489 ;
35490 return 0;
35491}
35492_ACEOF
35493rm -f conftest.$ac_objext
35494if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35495 (eval $ac_compile) 2>conftest.er1
a848cd7e 35496 ac_status=$?
ac1cb8d3
VS
35497 grep -v '^ *+' conftest.er1 >conftest.err
35498 rm -f conftest.er1
35499 cat conftest.err >&5
a848cd7e
SC
35500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35501 (exit $ac_status); } &&
ea7db9ff
DE
35502 { ac_try='test -z "$ac_c_werror_flag"
35503 || test ! -s conftest.err'
ac1cb8d3
VS
35504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35505 (eval $ac_try) 2>&5
35506 ac_status=$?
35507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35508 (exit $ac_status); }; } &&
35509 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35511 (eval $ac_try) 2>&5
35512 ac_status=$?
35513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35514 (exit $ac_status); }; }; then
35515 wx_cv_type_getsockname3=socklen_t
35516else
35517 echo "$as_me: failed program was:" >&5
35518sed 's/^/| /' conftest.$ac_ext >&5
35519
35520
35521 CFLAGS_OLD="$CFLAGS"
35522 if test "$GCC" = yes ; then
35523 CFLAGS="$CFLAGS -Werror"
35524 fi
35525
35526 cat >conftest.$ac_ext <<_ACEOF
35527/* confdefs.h. */
35528_ACEOF
35529cat confdefs.h >>conftest.$ac_ext
35530cat >>conftest.$ac_ext <<_ACEOF
35531/* end confdefs.h. */
35532
35533 #include <sys/types.h>
35534 #include <sys/socket.h>
35535
35536int
35537main ()
35538{
35539
35540 size_t len;
35541 getsockname(0, 0, &len);
35542
35543 ;
35544 return 0;
35545}
35546_ACEOF
35547rm -f conftest.$ac_objext
35548if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35549 (eval $ac_compile) 2>conftest.er1
a848cd7e 35550 ac_status=$?
ac1cb8d3
VS
35551 grep -v '^ *+' conftest.er1 >conftest.err
35552 rm -f conftest.er1
35553 cat conftest.err >&5
a848cd7e
SC
35554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35555 (exit $ac_status); } &&
ea7db9ff
DE
35556 { ac_try='test -z "$ac_c_werror_flag"
35557 || test ! -s conftest.err'
ac1cb8d3
VS
35558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35559 (eval $ac_try) 2>&5
35560 ac_status=$?
35561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35562 (exit $ac_status); }; } &&
35563 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35565 (eval $ac_try) 2>&5
35566 ac_status=$?
35567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35568 (exit $ac_status); }; }; then
35569 wx_cv_type_getsockname3=size_t
35570else
35571 echo "$as_me: failed program was:" >&5
35572sed 's/^/| /' conftest.$ac_ext >&5
35573
35574cat >conftest.$ac_ext <<_ACEOF
35575/* confdefs.h. */
35576_ACEOF
35577cat confdefs.h >>conftest.$ac_ext
35578cat >>conftest.$ac_ext <<_ACEOF
35579/* end confdefs.h. */
35580
35581 #include <sys/types.h>
35582 #include <sys/socket.h>
35583
35584int
35585main ()
35586{
35587
35588 int len;
35589 getsockname(0, 0, &len);
35590
35591 ;
35592 return 0;
35593}
35594_ACEOF
35595rm -f conftest.$ac_objext
35596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35597 (eval $ac_compile) 2>conftest.er1
a848cd7e 35598 ac_status=$?
ac1cb8d3
VS
35599 grep -v '^ *+' conftest.er1 >conftest.err
35600 rm -f conftest.er1
35601 cat conftest.err >&5
a848cd7e
SC
35602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35603 (exit $ac_status); } &&
ea7db9ff
DE
35604 { ac_try='test -z "$ac_c_werror_flag"
35605 || test ! -s conftest.err'
ac1cb8d3
VS
35606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35607 (eval $ac_try) 2>&5
35608 ac_status=$?
35609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35610 (exit $ac_status); }; } &&
35611 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35613 (eval $ac_try) 2>&5
35614 ac_status=$?
35615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35616 (exit $ac_status); }; }; then
35617 wx_cv_type_getsockname3=int
35618else
35619 echo "$as_me: failed program was:" >&5
35620sed 's/^/| /' conftest.$ac_ext >&5
35621
35622wx_cv_type_getsockname3=unknown
35623
35624fi
ac1cb8d3 35625rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35626
35627fi
ac1cb8d3 35628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35629
35630 CFLAGS="$CFLAGS_OLD"
35631
35632
35633fi
ac1cb8d3 35634rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35635
35636fi
35637echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
35638echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
35639
35640 if test "$wx_cv_type_getsockname3" = "unknown"; then
35641 wxUSE_SOCKETS=no
35642 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
35643echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
35644 else
35645 cat >>confdefs.h <<_ACEOF
35646#define SOCKLEN_T $wx_cv_type_getsockname3
35647_ACEOF
35648
35649 fi
35650 fi
35651fi
35652
35653if test "$wxUSE_SOCKETS" = "yes" ; then
35654 cat >>confdefs.h <<\_ACEOF
35655#define wxUSE_SOCKETS 1
35656_ACEOF
35657
35658 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
35659fi
35660
35661if test "$wxUSE_PROTOCOL" = "yes"; then
35662 if test "$wxUSE_SOCKETS" != "yes"; then
35663 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
35664echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
35665 wxUSE_PROTOCOL=no
35666 fi
35667fi
35668
35669if test "$wxUSE_PROTOCOL" = "yes"; then
35670 cat >>confdefs.h <<\_ACEOF
35671#define wxUSE_PROTOCOL 1
35672_ACEOF
35673
35674
35675 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
35676 cat >>confdefs.h <<\_ACEOF
35677#define wxUSE_PROTOCOL_HTTP 1
35678_ACEOF
35679
35680 fi
35681 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
35682 cat >>confdefs.h <<\_ACEOF
35683#define wxUSE_PROTOCOL_FTP 1
35684_ACEOF
35685
35686 fi
35687 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
35688 cat >>confdefs.h <<\_ACEOF
35689#define wxUSE_PROTOCOL_FILE 1
35690_ACEOF
35691
35692 fi
35693else
35694 if test "$wxUSE_FS_INET" = "yes"; then
35695 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
35696echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
35697 wxUSE_FS_INET="no"
35698 fi
35699fi
35700
35701if test "$wxUSE_URL" = "yes"; then
35702 if test "$wxUSE_PROTOCOL" != "yes"; then
35703 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
35704echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
35705 wxUSE_URL=no
35706 fi
35707 if test "$wxUSE_URL" = "yes"; then
35708 cat >>confdefs.h <<\_ACEOF
35709#define wxUSE_URL 1
35710_ACEOF
35711
35712 fi
35713fi
35714
35715if test "$wxUSE_FS_INET" = "yes"; then
35716 cat >>confdefs.h <<\_ACEOF
35717#define wxUSE_FS_INET 1
35718_ACEOF
35719
35720fi
35721
35722
35723if test "$wxUSE_GUI" = "yes"; then
35724
35725 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
35726 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
35727echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
35728 wxUSE_JOYSTICK=no
35729 fi
35730
35731 if test "$TOOLKIT" != "MSW"; then
35732 if test "$wxUSE_JOYSTICK" = "yes"; then
35733
35734for ac_header in linux/joystick.h
35735do
35736as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35737if eval "test \"\${$as_ac_Header+set}\" = set"; then
35738 echo "$as_me:$LINENO: checking for $ac_header" >&5
35739echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35740if eval "test \"\${$as_ac_Header+set}\" = set"; then
35741 echo $ECHO_N "(cached) $ECHO_C" >&6
35742fi
35743echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35744echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35745else
35746 # Is the header compilable?
35747echo "$as_me:$LINENO: checking $ac_header usability" >&5
35748echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35749cat >conftest.$ac_ext <<_ACEOF
35750/* confdefs.h. */
35751_ACEOF
35752cat confdefs.h >>conftest.$ac_ext
35753cat >>conftest.$ac_ext <<_ACEOF
35754/* end confdefs.h. */
35755$ac_includes_default
35756#include <$ac_header>
35757_ACEOF
35758rm -f conftest.$ac_objext
35759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35760 (eval $ac_compile) 2>conftest.er1
a848cd7e 35761 ac_status=$?
ac1cb8d3
VS
35762 grep -v '^ *+' conftest.er1 >conftest.err
35763 rm -f conftest.er1
35764 cat conftest.err >&5
a848cd7e
SC
35765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35766 (exit $ac_status); } &&
ea7db9ff
DE
35767 { ac_try='test -z "$ac_c_werror_flag"
35768 || test ! -s conftest.err'
ac1cb8d3
VS
35769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35770 (eval $ac_try) 2>&5
35771 ac_status=$?
35772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35773 (exit $ac_status); }; } &&
35774 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35776 (eval $ac_try) 2>&5
35777 ac_status=$?
35778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35779 (exit $ac_status); }; }; then
35780 ac_header_compiler=yes
35781else
35782 echo "$as_me: failed program was:" >&5
35783sed 's/^/| /' conftest.$ac_ext >&5
35784
35785ac_header_compiler=no
35786fi
ac1cb8d3 35787rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35788echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35789echo "${ECHO_T}$ac_header_compiler" >&6
35790
35791# Is the header present?
35792echo "$as_me:$LINENO: checking $ac_header presence" >&5
35793echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35794cat >conftest.$ac_ext <<_ACEOF
35795/* confdefs.h. */
35796_ACEOF
35797cat confdefs.h >>conftest.$ac_ext
35798cat >>conftest.$ac_ext <<_ACEOF
35799/* end confdefs.h. */
35800#include <$ac_header>
35801_ACEOF
35802if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35803 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35804 ac_status=$?
35805 grep -v '^ *+' conftest.er1 >conftest.err
35806 rm -f conftest.er1
35807 cat conftest.err >&5
35808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35809 (exit $ac_status); } >/dev/null; then
35810 if test -s conftest.err; then
35811 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 35812 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
35813 else
35814 ac_cpp_err=
35815 fi
35816else
35817 ac_cpp_err=yes
35818fi
35819if test -z "$ac_cpp_err"; then
35820 ac_header_preproc=yes
35821else
35822 echo "$as_me: failed program was:" >&5
35823sed 's/^/| /' conftest.$ac_ext >&5
35824
35825 ac_header_preproc=no
35826fi
35827rm -f conftest.err conftest.$ac_ext
35828echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35829echo "${ECHO_T}$ac_header_preproc" >&6
35830
35831# So? What about this header?
ac1cb8d3
VS
35832case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35833 yes:no: )
a848cd7e
SC
35834 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35835echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
35836 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35837echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35838 ac_header_preproc=yes
a848cd7e 35839 ;;
ac1cb8d3 35840 no:yes:* )
a848cd7e
SC
35841 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35842echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
35843 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35844echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35845 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35846echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35847 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35848echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
35849 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35850echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
35851 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35852echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
35853 (
35854 cat <<\_ASBOX
ac1cb8d3
VS
35855## ----------------------------------------- ##
35856## Report this to wx-dev@lists.wxwidgets.org ##
35857## ----------------------------------------- ##
a848cd7e
SC
35858_ASBOX
35859 ) |
35860 sed "s/^/$as_me: WARNING: /" >&2
35861 ;;
35862esac
35863echo "$as_me:$LINENO: checking for $ac_header" >&5
35864echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35865if eval "test \"\${$as_ac_Header+set}\" = set"; then
35866 echo $ECHO_N "(cached) $ECHO_C" >&6
35867else
ac1cb8d3 35868 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
35869fi
35870echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35871echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35872
35873fi
35874if test `eval echo '${'$as_ac_Header'}'` = yes; then
35875 cat >>confdefs.h <<_ACEOF
35876#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35877_ACEOF
35878
35879fi
35880
35881done
35882
35883 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
35884 wxUSE_JOYSTICK=no
35885 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
35886echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
35887 fi
35888 fi
35889 fi
35890
35891 if test "$wxUSE_JOYSTICK" = "yes"; then
35892 cat >>confdefs.h <<\_ACEOF
35893#define wxUSE_JOYSTICK 1
35894_ACEOF
35895
35896 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
35897 fi
35898fi
35899
35900
35901
35902if test "$wxUSE_FONTMAP" = "yes" ; then
35903 cat >>confdefs.h <<\_ACEOF
35904#define wxUSE_FONTMAP 1
35905_ACEOF
35906
35907fi
35908
35909if test "$wxUSE_UNICODE" = "yes" ; then
35910 cat >>confdefs.h <<\_ACEOF
35911#define wxUSE_UNICODE 1
35912_ACEOF
35913
35914
35915 if test "$USE_WIN32" != 1; then
35916 wxUSE_UNICODE_MSLU=no
35917 fi
35918
35919 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
35920 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
35921echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
35922if test "${ac_cv_lib_unicows_main+set}" = set; then
35923 echo $ECHO_N "(cached) $ECHO_C" >&6
35924else
35925 ac_check_lib_save_LIBS=$LIBS
35926LIBS="-lunicows $LIBS"
35927cat >conftest.$ac_ext <<_ACEOF
35928/* confdefs.h. */
35929_ACEOF
35930cat confdefs.h >>conftest.$ac_ext
35931cat >>conftest.$ac_ext <<_ACEOF
35932/* end confdefs.h. */
35933
35934
35935int
35936main ()
35937{
35938main ();
35939 ;
35940 return 0;
35941}
35942_ACEOF
35943rm -f conftest.$ac_objext conftest$ac_exeext
35944if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35945 (eval $ac_link) 2>conftest.er1
a848cd7e 35946 ac_status=$?
ac1cb8d3
VS
35947 grep -v '^ *+' conftest.er1 >conftest.err
35948 rm -f conftest.er1
35949 cat conftest.err >&5
a848cd7e
SC
35950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35951 (exit $ac_status); } &&
ea7db9ff
DE
35952 { ac_try='test -z "$ac_c_werror_flag"
35953 || test ! -s conftest.err'
ac1cb8d3
VS
35954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35955 (eval $ac_try) 2>&5
35956 ac_status=$?
35957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35958 (exit $ac_status); }; } &&
35959 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35961 (eval $ac_try) 2>&5
35962 ac_status=$?
35963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35964 (exit $ac_status); }; }; then
35965 ac_cv_lib_unicows_main=yes
35966else
35967 echo "$as_me: failed program was:" >&5
35968sed 's/^/| /' conftest.$ac_ext >&5
35969
35970ac_cv_lib_unicows_main=no
35971fi
ac1cb8d3
VS
35972rm -f conftest.err conftest.$ac_objext \
35973 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35974LIBS=$ac_check_lib_save_LIBS
35975fi
35976echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
35977echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
35978if test $ac_cv_lib_unicows_main = yes; then
35979
35980 cat >>confdefs.h <<\_ACEOF
35981#define wxUSE_UNICODE_MSLU 1
35982_ACEOF
35983
35984
35985else
35986
35987 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
35988 Applications will only run on Windows NT/2000/XP!" >&5
35989echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
35990 Applications will only run on Windows NT/2000/XP!" >&2;}
35991 wxUSE_UNICODE_MSLU=no
35992
35993fi
35994
35995 fi
35996fi
35997
35998if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
35999 cat >>confdefs.h <<\_ACEOF
36000#define wxUSE_EXPERIMENTAL_PRINTF 1
36001_ACEOF
36002
36003fi
36004
36005
36006if test "$wxUSE_POSTSCRIPT" = "yes" ; then
36007 cat >>confdefs.h <<\_ACEOF
36008#define wxUSE_POSTSCRIPT 1
36009_ACEOF
36010
36011fi
36012
36013cat >>confdefs.h <<\_ACEOF
36014#define wxUSE_AFM_FOR_POSTSCRIPT 1
36015_ACEOF
36016
36017
36018cat >>confdefs.h <<\_ACEOF
36019#define wxUSE_NORMALIZED_PS_FONTS 1
36020_ACEOF
36021
36022
36023
36024if test "$wxUSE_CONSTRAINTS" = "yes"; then
36025 cat >>confdefs.h <<\_ACEOF
36026#define wxUSE_CONSTRAINTS 1
36027_ACEOF
36028
36029 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
36030fi
36031
8a7b1113
VZ
36032if test "$wxUSE_MDI" = "yes"; then
36033 cat >>confdefs.h <<\_ACEOF
36034#define wxUSE_MDI 1
36035_ACEOF
36036
36037
36038 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
36039 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
36040#define wxUSE_MDI_ARCHITECTURE 1
36041_ACEOF
36042
8a7b1113
VZ
36043 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
36044 fi
a848cd7e
SC
36045fi
36046
36047if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
36048 cat >>confdefs.h <<\_ACEOF
36049#define wxUSE_DOC_VIEW_ARCHITECTURE 1
36050_ACEOF
36051
36052 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
36053 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
36054 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
36055 fi
36056fi
36057
36058if test "$wxUSE_HELP" = "yes"; then
36059 cat >>confdefs.h <<\_ACEOF
36060#define wxUSE_HELP 1
36061_ACEOF
36062
36063 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
36064
36065 if test "$wxUSE_MSW" = 1; then
36066 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
36067 cat >>confdefs.h <<\_ACEOF
36068#define wxUSE_MS_HTML_HELP 1
36069_ACEOF
36070
36071 fi
36072 fi
36073
36074 if test "$wxUSE_WXHTML_HELP" = "yes"; then
36075 if test "$wxUSE_HTML" = "yes"; then
36076 cat >>confdefs.h <<\_ACEOF
36077#define wxUSE_WXHTML_HELP 1
36078_ACEOF
36079
36080 else
36081 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
36082echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
36083 wxUSE_WXHTML_HELP=no
36084 fi
36085 fi
36086fi
36087
36088if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
36089 if test "$wxUSE_CONSTRAINTS" != "yes"; then
36090 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
36091echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
36092 else
36093 cat >>confdefs.h <<\_ACEOF
36094#define wxUSE_PRINTING_ARCHITECTURE 1
36095_ACEOF
36096
36097 fi
36098 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
36099fi
36100
36101if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
36102 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
36103echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
36104 { (exit 1); exit 1; }; }
36105fi
36106
36107
36108if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
36109 -o "$wxUSE_CLIPBOARD" = "yes" \
36110 -o "$wxUSE_OLE" = "yes" \
36111 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
36112
36113for ac_header in ole2.h
36114do
36115as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36116if eval "test \"\${$as_ac_Header+set}\" = set"; then
36117 echo "$as_me:$LINENO: checking for $ac_header" >&5
36118echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36119if eval "test \"\${$as_ac_Header+set}\" = set"; then
36120 echo $ECHO_N "(cached) $ECHO_C" >&6
36121fi
36122echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36123echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36124else
36125 # Is the header compilable?
36126echo "$as_me:$LINENO: checking $ac_header usability" >&5
36127echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36128cat >conftest.$ac_ext <<_ACEOF
36129/* confdefs.h. */
36130_ACEOF
36131cat confdefs.h >>conftest.$ac_ext
36132cat >>conftest.$ac_ext <<_ACEOF
36133/* end confdefs.h. */
36134$ac_includes_default
36135#include <$ac_header>
36136_ACEOF
36137rm -f conftest.$ac_objext
36138if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36139 (eval $ac_compile) 2>conftest.er1
a848cd7e 36140 ac_status=$?
ac1cb8d3
VS
36141 grep -v '^ *+' conftest.er1 >conftest.err
36142 rm -f conftest.er1
36143 cat conftest.err >&5
a848cd7e
SC
36144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36145 (exit $ac_status); } &&
ea7db9ff
DE
36146 { ac_try='test -z "$ac_c_werror_flag"
36147 || test ! -s conftest.err'
ac1cb8d3
VS
36148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36149 (eval $ac_try) 2>&5
36150 ac_status=$?
36151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36152 (exit $ac_status); }; } &&
36153 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36155 (eval $ac_try) 2>&5
36156 ac_status=$?
36157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36158 (exit $ac_status); }; }; then
36159 ac_header_compiler=yes
36160else
36161 echo "$as_me: failed program was:" >&5
36162sed 's/^/| /' conftest.$ac_ext >&5
36163
36164ac_header_compiler=no
36165fi
ac1cb8d3 36166rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36167echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36168echo "${ECHO_T}$ac_header_compiler" >&6
36169
36170# Is the header present?
36171echo "$as_me:$LINENO: checking $ac_header presence" >&5
36172echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36173cat >conftest.$ac_ext <<_ACEOF
36174/* confdefs.h. */
36175_ACEOF
36176cat confdefs.h >>conftest.$ac_ext
36177cat >>conftest.$ac_ext <<_ACEOF
36178/* end confdefs.h. */
36179#include <$ac_header>
36180_ACEOF
36181if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36182 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36183 ac_status=$?
36184 grep -v '^ *+' conftest.er1 >conftest.err
36185 rm -f conftest.er1
36186 cat conftest.err >&5
36187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36188 (exit $ac_status); } >/dev/null; then
36189 if test -s conftest.err; then
36190 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36191 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36192 else
36193 ac_cpp_err=
36194 fi
36195else
36196 ac_cpp_err=yes
36197fi
36198if test -z "$ac_cpp_err"; then
36199 ac_header_preproc=yes
36200else
36201 echo "$as_me: failed program was:" >&5
36202sed 's/^/| /' conftest.$ac_ext >&5
36203
36204 ac_header_preproc=no
36205fi
36206rm -f conftest.err conftest.$ac_ext
36207echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36208echo "${ECHO_T}$ac_header_preproc" >&6
36209
36210# So? What about this header?
ac1cb8d3
VS
36211case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36212 yes:no: )
a848cd7e
SC
36213 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36214echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36216echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36217 ac_header_preproc=yes
a848cd7e 36218 ;;
ac1cb8d3 36219 no:yes:* )
a848cd7e
SC
36220 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36221echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36222 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36223echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36224 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36225echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36226 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36227echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36228 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36229echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36230 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36231echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36232 (
36233 cat <<\_ASBOX
ac1cb8d3
VS
36234## ----------------------------------------- ##
36235## Report this to wx-dev@lists.wxwidgets.org ##
36236## ----------------------------------------- ##
a848cd7e
SC
36237_ASBOX
36238 ) |
36239 sed "s/^/$as_me: WARNING: /" >&2
36240 ;;
36241esac
36242echo "$as_me:$LINENO: checking for $ac_header" >&5
36243echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36244if eval "test \"\${$as_ac_Header+set}\" = set"; then
36245 echo $ECHO_N "(cached) $ECHO_C" >&6
36246else
ac1cb8d3 36247 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36248fi
36249echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36250echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36251
36252fi
36253if test `eval echo '${'$as_ac_Header'}'` = yes; then
36254 cat >>confdefs.h <<_ACEOF
36255#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36256_ACEOF
36257
36258fi
36259
36260done
36261
36262
36263 if test "$ac_cv_header_ole2_h" = "yes" ; then
36264 if test "$GCC" = yes ; then
36265
36266
36267 ac_ext=cc
36268ac_cpp='$CXXCPP $CPPFLAGS'
36269ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36270ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36271ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36272
36273
36274 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
36275echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
36276 cat >conftest.$ac_ext <<_ACEOF
36277/* confdefs.h. */
36278_ACEOF
36279cat confdefs.h >>conftest.$ac_ext
36280cat >>conftest.$ac_ext <<_ACEOF
36281/* end confdefs.h. */
36282#include <windows.h>
36283 #include <ole2.h>
36284int
36285main ()
36286{
36287
36288 ;
36289 return 0;
36290}
36291_ACEOF
36292rm -f conftest.$ac_objext
36293if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36294 (eval $ac_compile) 2>conftest.er1
a848cd7e 36295 ac_status=$?
ac1cb8d3
VS
36296 grep -v '^ *+' conftest.er1 >conftest.err
36297 rm -f conftest.er1
36298 cat conftest.err >&5
a848cd7e
SC
36299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36300 (exit $ac_status); } &&
ea7db9ff
DE
36301 { ac_try='test -z "$ac_cxx_werror_flag"
36302 || test ! -s conftest.err'
ac1cb8d3
VS
36303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36304 (eval $ac_try) 2>&5
36305 ac_status=$?
36306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36307 (exit $ac_status); }; } &&
36308 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36310 (eval $ac_try) 2>&5
36311 ac_status=$?
36312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36313 (exit $ac_status); }; }; then
36314 echo "$as_me:$LINENO: result: no" >&5
36315echo "${ECHO_T}no" >&6
36316else
36317 echo "$as_me: failed program was:" >&5
36318sed 's/^/| /' conftest.$ac_ext >&5
36319
36320echo "$as_me:$LINENO: result: yes" >&5
36321echo "${ECHO_T}yes" >&6
36322 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
36323fi
ac1cb8d3 36324rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36325 ac_ext=c
36326ac_cpp='$CPP $CPPFLAGS'
36327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36329ac_compiler_gnu=$ac_cv_c_compiler_gnu
36330
36331 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
36332 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
36333 if test "$wxUSE_OLE" = "yes" ; then
36334 cat >>confdefs.h <<\_ACEOF
36335#define wxUSE_OLE 1
36336_ACEOF
36337
36338 fi
36339 fi
36340
36341 if test "$wxUSE_DATAOBJ" = "yes" ; then
36342 cat >>confdefs.h <<\_ACEOF
36343#define wxUSE_DATAOBJ 1
36344_ACEOF
36345
36346 fi
36347 else
36348 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
36349echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
36350
36351 wxUSE_CLIPBOARD=no
36352 wxUSE_DRAG_AND_DROP=no
36353 wxUSE_DATAOBJ=no
36354 wxUSE_OLE=no
36355 fi
36356
36357 if test "$wxUSE_METAFILE" = "yes"; then
36358 cat >>confdefs.h <<\_ACEOF
36359#define wxUSE_METAFILE 1
36360_ACEOF
36361
36362
36363 cat >>confdefs.h <<\_ACEOF
36364#define wxUSE_ENH_METAFILE 1
36365_ACEOF
36366
36367 fi
36368fi
36369
36370if test "$wxUSE_IPC" = "yes"; then
36371 if test "$wxUSE_SOCKETS" != "yes"; then
77ffb593
JS
36372 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
36373echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
a848cd7e
SC
36374 fi
36375
36376 cat >>confdefs.h <<\_ACEOF
36377#define wxUSE_IPC 1
36378_ACEOF
36379
36380fi
36381
36382if test "$wxUSE_CLIPBOARD" = "yes"; then
36383 if test "$wxUSE_MGL" = 1; then
36384 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
36385echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
36386 wxUSE_CLIPBOARD=no
36387 fi
36388
36389 if test "$wxUSE_CLIPBOARD" = "yes"; then
36390 cat >>confdefs.h <<\_ACEOF
36391#define wxUSE_CLIPBOARD 1
36392_ACEOF
36393
36394
36395 cat >>confdefs.h <<\_ACEOF
36396#define wxUSE_DATAOBJ 1
36397_ACEOF
36398
36399 fi
36400fi
36401
36402if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
36403 if test "$wxUSE_GTK" = 1; then
36404 if test "$WXGTK12" != 1; then
36405 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
36406echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
36407 wxUSE_DRAG_AND_DROP=no
36408 fi
36409 fi
36410
36411 if test "$wxUSE_MOTIF" = 1; then
36412 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
36413echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
36414 wxUSE_DRAG_AND_DROP=no
36415 fi
36416
36417 if test "$wxUSE_X11" = 1; then
36418 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
36419echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
36420 wxUSE_DRAG_AND_DROP=no
36421 fi
36422
36423 if test "$wxUSE_MGL" = 1; then
36424 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
36425echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
36426 wxUSE_DRAG_AND_DROP=no
36427 fi
36428
36429 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
36430 cat >>confdefs.h <<\_ACEOF
36431#define wxUSE_DRAG_AND_DROP 1
36432_ACEOF
36433
36434 fi
36435
36436fi
36437
36438if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
36439 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
36440fi
36441
36442if test "$wxUSE_SPLINES" = "yes" ; then
36443 cat >>confdefs.h <<\_ACEOF
36444#define wxUSE_SPLINES 1
36445_ACEOF
36446
36447fi
36448
36449
36450USES_CONTROLS=0
36451if test "$wxUSE_CONTROLS" = "yes"; then
36452 USES_CONTROLS=1
36453fi
36454
36455if test "$wxUSE_ACCEL" = "yes"; then
36456 cat >>confdefs.h <<\_ACEOF
36457#define wxUSE_ACCEL 1
36458_ACEOF
36459
36460 USES_CONTROLS=1
36461fi
36462
36463if test "$wxUSE_BUTTON" = "yes"; then
36464 cat >>confdefs.h <<\_ACEOF
36465#define wxUSE_BUTTON 1
36466_ACEOF
36467
36468 USES_CONTROLS=1
36469fi
36470
36471if test "$wxUSE_BMPBUTTON" = "yes"; then
36472 cat >>confdefs.h <<\_ACEOF
36473#define wxUSE_BMPBUTTON 1
36474_ACEOF
36475
36476 USES_CONTROLS=1
36477fi
36478
36479if test "$wxUSE_CALCTRL" = "yes"; then
36480 cat >>confdefs.h <<\_ACEOF
36481#define wxUSE_CALENDARCTRL 1
36482_ACEOF
36483
36484 USES_CONTROLS=1
36485 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
36486fi
36487
36488if test "$wxUSE_CARET" = "yes"; then
36489 cat >>confdefs.h <<\_ACEOF
36490#define wxUSE_CARET 1
36491_ACEOF
36492
36493 USES_CONTROLS=1
36494 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
36495fi
36496
36497if test "$wxUSE_COMBOBOX" = "yes"; then
36498 cat >>confdefs.h <<\_ACEOF
36499#define wxUSE_COMBOBOX 1
36500_ACEOF
36501
36502 USES_CONTROLS=1
36503fi
36504
36505if test "$wxUSE_CHOICE" = "yes"; then
36506 cat >>confdefs.h <<\_ACEOF
36507#define wxUSE_CHOICE 1
36508_ACEOF
36509
36510 USES_CONTROLS=1
36511fi
36512
36513if test "$wxUSE_CHECKBOX" = "yes"; then
36514 cat >>confdefs.h <<\_ACEOF
36515#define wxUSE_CHECKBOX 1
36516_ACEOF
36517
36518 USES_CONTROLS=1
36519fi
36520
36521if test "$wxUSE_CHECKLST" = "yes"; then
36522 cat >>confdefs.h <<\_ACEOF
36523#define wxUSE_CHECKLISTBOX 1
36524_ACEOF
36525
36526 USES_CONTROLS=1
36527 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
36528fi
36529
36530if test "$wxUSE_DISPLAY" = "yes"; then
36531 cat >>confdefs.h <<\_ACEOF
36532#define wxUSE_DISPLAY 1
36533_ACEOF
36534
36535 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
36536fi
36537
36538if test "$wxUSE_GAUGE" = "yes"; then
36539 cat >>confdefs.h <<\_ACEOF
36540#define wxUSE_GAUGE 1
36541_ACEOF
36542
36543 USES_CONTROLS=1
36544fi
36545
36546if test "$wxUSE_GRID" = "yes"; then
36547 cat >>confdefs.h <<\_ACEOF
36548#define wxUSE_GRID 1
36549_ACEOF
36550
36551 USES_CONTROLS=1
36552 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
36553fi
36554
36555if test "$wxUSE_IMAGLIST" = "yes"; then
36556 cat >>confdefs.h <<\_ACEOF
36557#define wxUSE_IMAGLIST 1
36558_ACEOF
36559
36560fi
36561
36562if test "$wxUSE_LISTBOOK" = "yes"; then
36563 cat >>confdefs.h <<\_ACEOF
36564#define wxUSE_LISTBOOK 1
36565_ACEOF
36566
36567 USES_CONTROLS=1
36568fi
36569
36570if test "$wxUSE_LISTBOX" = "yes"; then
36571 cat >>confdefs.h <<\_ACEOF
36572#define wxUSE_LISTBOX 1
36573_ACEOF
36574
36575 USES_CONTROLS=1
36576fi
36577
36578if test "$wxUSE_LISTCTRL" = "yes"; then
36579 if test "$wxUSE_IMAGLIST" = "yes"; then
36580 cat >>confdefs.h <<\_ACEOF
36581#define wxUSE_LISTCTRL 1
36582_ACEOF
36583
36584 USES_CONTROLS=1
36585 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
36586 else
36587 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
36588echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
36589 fi
36590fi
36591
36592if test "$wxUSE_NOTEBOOK" = "yes"; then
36593 cat >>confdefs.h <<\_ACEOF
36594#define wxUSE_NOTEBOOK 1
36595_ACEOF
36596
36597 USES_CONTROLS=1
36598 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
36599fi
36600
36601
36602if test "$wxUSE_RADIOBOX" = "yes"; then
36603 cat >>confdefs.h <<\_ACEOF
36604#define wxUSE_RADIOBOX 1
36605_ACEOF
36606
36607 USES_CONTROLS=1
36608fi
36609
36610if test "$wxUSE_RADIOBTN" = "yes"; then
36611 cat >>confdefs.h <<\_ACEOF
36612#define wxUSE_RADIOBTN 1
36613_ACEOF
36614
36615 USES_CONTROLS=1
36616fi
36617
36618if test "$wxUSE_SASH" = "yes"; then
36619 cat >>confdefs.h <<\_ACEOF
36620#define wxUSE_SASH 1
36621_ACEOF
36622
36623 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
36624fi
36625
36626if test "$wxUSE_SCROLLBAR" = "yes"; then
36627 cat >>confdefs.h <<\_ACEOF
36628#define wxUSE_SCROLLBAR 1
36629_ACEOF
36630
36631 USES_CONTROLS=1
36632 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
36633fi
36634
36635if test "$wxUSE_SLIDER" = "yes"; then
36636 cat >>confdefs.h <<\_ACEOF
36637#define wxUSE_SLIDER 1
36638_ACEOF
36639
36640 USES_CONTROLS=1
36641fi
36642
36643if test "$wxUSE_SPINBTN" = "yes"; then
36644 cat >>confdefs.h <<\_ACEOF
36645#define wxUSE_SPINBTN 1
36646_ACEOF
36647
36648 USES_CONTROLS=1
36649fi
36650
36651if test "$wxUSE_SPINCTRL" = "yes"; then
36652 cat >>confdefs.h <<\_ACEOF
36653#define wxUSE_SPINCTRL 1
36654_ACEOF
36655
36656 USES_CONTROLS=1
36657fi
36658
36659if test "$wxUSE_SPLITTER" = "yes"; then
36660 cat >>confdefs.h <<\_ACEOF
36661#define wxUSE_SPLITTER 1
36662_ACEOF
36663
36664 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
36665fi
36666
36667if test "$wxUSE_STATBMP" = "yes"; then
36668 cat >>confdefs.h <<\_ACEOF
36669#define wxUSE_STATBMP 1
36670_ACEOF
36671
36672 USES_CONTROLS=1
36673fi
36674
36675if test "$wxUSE_STATBOX" = "yes"; then
36676 cat >>confdefs.h <<\_ACEOF
36677#define wxUSE_STATBOX 1
36678_ACEOF
36679
36680 USES_CONTROLS=1
36681fi
36682
36683if test "$wxUSE_STATTEXT" = "yes"; then
36684 cat >>confdefs.h <<\_ACEOF
36685#define wxUSE_STATTEXT 1
36686_ACEOF
36687
36688 USES_CONTROLS=1
36689fi
36690
36691if test "$wxUSE_STATLINE" = "yes"; then
36692 cat >>confdefs.h <<\_ACEOF
36693#define wxUSE_STATLINE 1
36694_ACEOF
36695
36696 USES_CONTROLS=1
36697fi
36698
36699if test "$wxUSE_STATUSBAR" = "yes"; then
36700 cat >>confdefs.h <<\_ACEOF
36701#define wxUSE_STATUSBAR 1
36702_ACEOF
36703
36704 USES_CONTROLS=1
36705
36706 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
36707fi
36708
36709if test "$wxUSE_TABDIALOG" = "yes"; then
36710 cat >>confdefs.h <<\_ACEOF
36711#define wxUSE_TAB_DIALOG 1
36712_ACEOF
36713
36714 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
36715fi
36716
36717if test "$wxUSE_TEXTCTRL" = "yes"; then
36718 cat >>confdefs.h <<\_ACEOF
36719#define wxUSE_TEXTCTRL 1
36720_ACEOF
36721
36722 USES_CONTROLS=1
36723 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
36724fi
36725
36726if test "$wxUSE_TOGGLEBTN" = "yes"; then
36727 if test "$wxUSE_COCOA" = 1 ; then
36728 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
36729echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
36730 wxUSE_TOGGLEBTN=no
bdcade0a
MB
36731 else
36732 if test "$wxUSE_PM" = 1; then
36733 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5
36734echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;}
36735 wxUSE_TOGGLEBTN=no
36736 fi
a848cd7e
SC
36737 fi
36738 if test "$wxUSE_UNIVERSAL" = "yes"; then
36739 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
36740echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
36741 wxUSE_TOGGLEBTN=no
36742 fi
36743
36744 if test "$wxUSE_TOGGLEBTN" = "yes"; then
36745 cat >>confdefs.h <<\_ACEOF
36746#define wxUSE_TOGGLEBTN 1
36747_ACEOF
36748
36749 USES_CONTROLS=1
36750 fi
36751fi
36752
36753if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
36754 cat >>confdefs.h <<\_ACEOF
36755#define wxUSE_TOOLBAR_SIMPLE 1
36756_ACEOF
36757
36758 wxUSE_TOOLBAR="yes"
36759 USES_CONTROLS=1
36760fi
36761
36762if test "$wxUSE_TOOLBAR" = "yes"; then
36763 cat >>confdefs.h <<\_ACEOF
36764#define wxUSE_TOOLBAR 1
36765_ACEOF
36766
36767 USES_CONTROLS=1
36768
36769 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
36770 wxUSE_TOOLBAR_NATIVE="yes"
36771 fi
36772
36773 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
36774 cat >>confdefs.h <<\_ACEOF
36775#define wxUSE_TOOLBAR_NATIVE 1
36776_ACEOF
36777
36778 USES_CONTROLS=1
36779 fi
36780
36781 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
36782fi
36783
36784if test "$wxUSE_TOOLTIPS" = "yes"; then
36785 if test "$wxUSE_MOTIF" = 1; then
36786 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
36787echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
36788 else
36789 if test "$wxUSE_UNIVERSAL" = "yes"; then
36790 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
36791echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
36792 else
36793 cat >>confdefs.h <<\_ACEOF
36794#define wxUSE_TOOLTIPS 1
36795_ACEOF
36796
36797 fi
36798 fi
36799fi
36800
36801if test "$wxUSE_TREECTRL" = "yes"; then
36802 if test "$wxUSE_IMAGLIST" = "yes"; then
36803 cat >>confdefs.h <<\_ACEOF
36804#define wxUSE_TREECTRL 1
36805_ACEOF
36806
36807 USES_CONTROLS=1
36808 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
36809 else
36810 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
36811echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
36812 fi
36813fi
36814
36815if test "$wxUSE_POPUPWIN" = "yes"; then
36816 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
36817 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
36818echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
36819 else
36820 if test "$wxUSE_PM" = 1; then
36821 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
36822echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
36823 else
36824 cat >>confdefs.h <<\_ACEOF
36825#define wxUSE_POPUPWIN 1
36826_ACEOF
36827
36828
36829 USES_CONTROLS=1
36830 fi
36831 fi
36832fi
36833
36834if test "$wxUSE_TIPWINDOW" = "yes"; then
36835 if test "$wxUSE_PM" = 1; then
36836 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
36837echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
36838 else
36839 cat >>confdefs.h <<\_ACEOF
36840#define wxUSE_TIPWINDOW 1
36841_ACEOF
36842
36843 fi
36844fi
36845
36846if test "$USES_CONTROLS" = 1; then
36847 cat >>confdefs.h <<\_ACEOF
36848#define wxUSE_CONTROLS 1
36849_ACEOF
36850
36851fi
36852
36853
36854if test "$wxUSE_ACCESSIBILITY" = "yes"; then
36855 cat >>confdefs.h <<\_ACEOF
36856#define wxUSE_ACCESSIBILITY 1
36857_ACEOF
36858
36859 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
36860fi
36861
36862if test "$wxUSE_DRAGIMAGE" = "yes"; then
36863 cat >>confdefs.h <<\_ACEOF
36864#define wxUSE_DRAGIMAGE 1
36865_ACEOF
36866
36867 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
36868fi
36869
36870if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
36871 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
36872 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
36873echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
36874 else
36875 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
36876#define wxUSE_EXCEPTIONS 1
36877_ACEOF
36878
07bea8f0
VS
36879 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
36880 fi
a848cd7e
SC
36881fi
36882
36883USE_HTML=0
36884if test "$wxUSE_HTML" = "yes"; then
36885 cat >>confdefs.h <<\_ACEOF
36886#define wxUSE_HTML 1
36887_ACEOF
36888
36889 USE_HTML=1
36890 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
36891 if test "$wxUSE_MAC" = 1; then
36892 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
36893 fi
a848cd7e 36894fi
646b6ec1 36895if test "$wxUSE_WEBKIT" = "yes"; then
07bea8f0
VS
36896 if test "$wxUSE_MAC" = 1; then
36897 old_CPPFLAGS="$CPPFLAGS"
36898 CPPFLAGS="$CPPFLAGS -x objective-c++"
36899 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
36900echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
36901if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
36902 echo $ECHO_N "(cached) $ECHO_C" >&6
36903else
36904 cat >conftest.$ac_ext <<_ACEOF
36905/* confdefs.h. */
36906_ACEOF
36907cat confdefs.h >>conftest.$ac_ext
36908cat >>conftest.$ac_ext <<_ACEOF
36909/* end confdefs.h. */
36910#include <Carbon/Carbon.h>
36911
36912#include <WebKit/HIWebView.h>
36913_ACEOF
36914rm -f conftest.$ac_objext
36915if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36916 (eval $ac_compile) 2>conftest.er1
36917 ac_status=$?
36918 grep -v '^ *+' conftest.er1 >conftest.err
36919 rm -f conftest.er1
36920 cat conftest.err >&5
36921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36922 (exit $ac_status); } &&
ea7db9ff
DE
36923 { ac_try='test -z "$ac_c_werror_flag"
36924 || test ! -s conftest.err'
07bea8f0
VS
36925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36926 (eval $ac_try) 2>&5
36927 ac_status=$?
36928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36929 (exit $ac_status); }; } &&
36930 { ac_try='test -s conftest.$ac_objext'
36931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36932 (eval $ac_try) 2>&5
36933 ac_status=$?
36934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36935 (exit $ac_status); }; }; then
36936 ac_cv_header_WebKit_HIWebView_h=yes
36937else
36938 echo "$as_me: failed program was:" >&5
36939sed 's/^/| /' conftest.$ac_ext >&5
36940
36941ac_cv_header_WebKit_HIWebView_h=no
36942fi
36943rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36944fi
36945echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
36946echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
36947if test $ac_cv_header_WebKit_HIWebView_h = yes; then
36948
36949 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
36950#define wxUSE_WEBKIT 1
36951_ACEOF
36952
07bea8f0
VS
36953 WEBKIT_LINK="-framework WebKit"
36954
36955else
36956
36957 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
36958echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
36959 wxUSE_WEBKIT=no
36960
646b6ec1
VS
36961fi
36962
07bea8f0
VS
36963
36964 CPPFLAGS="$old_CPPFLAGS"
36965 elif test "$wxUSE_COCOA" = 1; then
36966 cat >>confdefs.h <<\_ACEOF
36967#define wxUSE_WEBKIT 1
36968_ACEOF
36969
36970 else
36971 wxUSE_WEBKIT=no
36972 fi
36973fi
36974
36975
a848cd7e
SC
36976if test "$wxUSE_MENUS" = "yes"; then
36977 cat >>confdefs.h <<\_ACEOF
36978#define wxUSE_MENUS 1
36979_ACEOF
36980
36981 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
36982fi
36983
36984if test "$wxUSE_METAFILE" = "yes"; then
36985 cat >>confdefs.h <<\_ACEOF
36986#define wxUSE_METAFILE 1
36987_ACEOF
36988
36989fi
36990
36991if test "$wxUSE_MIMETYPE" = "yes"; then
36992 cat >>confdefs.h <<\_ACEOF
36993#define wxUSE_MIMETYPE 1
36994_ACEOF
36995
36996fi
36997
36998if test "$wxUSE_MINIFRAME" = "yes"; then
36999 cat >>confdefs.h <<\_ACEOF
37000#define wxUSE_MINIFRAME 1
37001_ACEOF
37002
37003 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
37004fi
37005
37006if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
37007 cat >>confdefs.h <<\_ACEOF
37008#define wxUSE_SYSTEM_OPTIONS 1
37009_ACEOF
37010
37011 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
37012 "$TOOLKIT" = "MOTIF"; then
37013 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
37014 fi
37015fi
37016
37017
37018if test "$wxUSE_VALIDATORS" = "yes"; then
37019 cat >>confdefs.h <<\_ACEOF
37020#define wxUSE_VALIDATORS 1
37021_ACEOF
37022
37023 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
37024fi
37025
37026if test "$wxUSE_PALETTE" = "yes" ; then
37027 cat >>confdefs.h <<\_ACEOF
37028#define wxUSE_PALETTE 1
37029_ACEOF
37030
37031fi
37032
37033if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
37034 LIBS=" -lunicows $LIBS"
37035fi
37036
37037
37038if test "$wxUSE_IMAGE" = "yes" ; then
37039 cat >>confdefs.h <<\_ACEOF
37040#define wxUSE_IMAGE 1
37041_ACEOF
37042
37043
37044 if test "$wxUSE_GIF" = "yes" ; then
37045 cat >>confdefs.h <<\_ACEOF
37046#define wxUSE_GIF 1
37047_ACEOF
37048
37049 fi
37050
37051 if test "$wxUSE_PCX" = "yes" ; then
37052 cat >>confdefs.h <<\_ACEOF
37053#define wxUSE_PCX 1
37054_ACEOF
37055
37056 fi
37057
37058 if test "$wxUSE_IFF" = "yes" ; then
37059 cat >>confdefs.h <<\_ACEOF
37060#define wxUSE_IFF 1
37061_ACEOF
37062
37063 fi
37064
37065 if test "$wxUSE_PNM" = "yes" ; then
37066 cat >>confdefs.h <<\_ACEOF
37067#define wxUSE_PNM 1
37068_ACEOF
37069
37070 fi
37071
37072 if test "$wxUSE_XPM" = "yes" ; then
37073 cat >>confdefs.h <<\_ACEOF
37074#define wxUSE_XPM 1
37075_ACEOF
37076
37077 fi
37078
37079 if test "$wxUSE_ICO_CUR" = "yes" ; then
37080 cat >>confdefs.h <<\_ACEOF
37081#define wxUSE_ICO_CUR 1
37082_ACEOF
37083
37084 fi
37085fi
37086
37087
37088if test "$wxUSE_CHOICEDLG" = "yes"; then
37089 cat >>confdefs.h <<\_ACEOF
37090#define wxUSE_CHOICEDLG 1
37091_ACEOF
37092
37093fi
37094
37095if test "$wxUSE_COLOURDLG" = "yes"; then
37096 cat >>confdefs.h <<\_ACEOF
37097#define wxUSE_COLOURDLG 1
37098_ACEOF
37099
37100fi
37101
37102if test "$wxUSE_FILEDLG" = "yes"; then
37103 cat >>confdefs.h <<\_ACEOF
37104#define wxUSE_FILEDLG 1
37105_ACEOF
37106
37107fi
37108
37109if test "$wxUSE_FINDREPLDLG" = "yes"; then
37110 cat >>confdefs.h <<\_ACEOF
37111#define wxUSE_FINDREPLDLG 1
37112_ACEOF
37113
37114fi
37115
37116if test "$wxUSE_FONTDLG" = "yes"; then
37117 cat >>confdefs.h <<\_ACEOF
37118#define wxUSE_FONTDLG 1
37119_ACEOF
37120
37121fi
37122
37123if test "$wxUSE_DIRDLG" = "yes"; then
37124 if test "$wxUSE_TREECTRL" != "yes"; then
37125 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
37126echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
37127 else
37128 cat >>confdefs.h <<\_ACEOF
37129#define wxUSE_DIRDLG 1
37130_ACEOF
37131
37132 fi
37133fi
37134
37135if test "$wxUSE_MSGDLG" = "yes"; then
37136 cat >>confdefs.h <<\_ACEOF
37137#define wxUSE_MSGDLG 1
37138_ACEOF
37139
37140fi
37141
37142if test "$wxUSE_NUMBERDLG" = "yes"; then
37143 cat >>confdefs.h <<\_ACEOF
37144#define wxUSE_NUMBERDLG 1
37145_ACEOF
37146
37147fi
37148
37149if test "$wxUSE_PROGRESSDLG" = "yes"; then
37150 if test "$wxUSE_CONSTRAINTS" != "yes"; then
37151 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
37152echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
37153 else
37154 cat >>confdefs.h <<\_ACEOF
37155#define wxUSE_PROGRESSDLG 1
37156_ACEOF
37157
37158 fi
37159fi
37160
37161if test "$wxUSE_SPLASH" = "yes"; then
37162 cat >>confdefs.h <<\_ACEOF
37163#define wxUSE_SPLASH 1
37164_ACEOF
37165
2057db16 37166 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
37167fi
37168
37169if test "$wxUSE_STARTUP_TIPS" = "yes"; then
37170 if test "$wxUSE_CONSTRAINTS" != "yes"; then
37171 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
37172echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
37173 else
37174 cat >>confdefs.h <<\_ACEOF
37175#define wxUSE_STARTUP_TIPS 1
37176_ACEOF
37177
37178 fi
37179fi
37180
37181if test "$wxUSE_TEXTDLG" = "yes"; then
37182 cat >>confdefs.h <<\_ACEOF
37183#define wxUSE_TEXTDLG 1
37184_ACEOF
37185
37186fi
37187
37188if test "$wxUSE_WIZARDDLG" = "yes"; then
37189 cat >>confdefs.h <<\_ACEOF
37190#define wxUSE_WIZARDDLG 1
37191_ACEOF
37192
37193 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
37194fi
37195
37196
37197if test "$cross_compiling" = "yes"; then
37198 OSINFO="\"$host\""
37199else
37200 OSINFO=`uname -s -r -m`
37201 OSINFO="\"$OSINFO\""
37202fi
37203
37204cat >>confdefs.h <<_ACEOF
37205#define WXWIN_OS_DESCRIPTION $OSINFO
37206_ACEOF
37207
37208
37209
37210if test "x$prefix" != "xNONE"; then
37211 wxPREFIX=$prefix
37212else
37213 wxPREFIX=$ac_default_prefix
37214fi
37215
37216cat >>confdefs.h <<_ACEOF
37217#define wxINSTALL_PREFIX "$wxPREFIX"
37218_ACEOF
37219
37220
37221top_builddir_wxconfig=`pwd`
37222
37223
37224
37225CORE_BASE_LIBS="net base"
37226CORE_GUI_LIBS="adv core"
37227
37228if test "$wxUSE_XML" = "yes" ; then
37229 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
37230fi
37231if test "$wxUSE_ODBC" != "no" ; then
37232 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
37233 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
37234fi
37235if test "$wxUSE_HTML" = "yes" ; then
37236 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
37237fi
37238
37239if test "$wxUSE_GUI" != "yes"; then
37240 CORE_GUI_LIBS=""
37241fi
37242
37243
37244
37245
37246
37247
37248
37249
37250if test "$wxUSE_MAC" = 1 ; then
07bea8f0
VS
37251 if test "$wxUSE_SOUND" = "yes"; then
37252 LDFLAGS="$LDFLAGS -framework QuickTime"
37253 fi
37254 LDFLAGS="$LDFLAGS -framework Carbon -framework Cocoa -framework System"
a848cd7e
SC
37255fi
37256if test "$wxUSE_COCOA" = 1 ; then
37257 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
37258fi
37259
37260
37261LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
37262
37263have_cos=0
37264have_floor=0
37265
37266for ac_func in cos
37267do
37268as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37269echo "$as_me:$LINENO: checking for $ac_func" >&5
37270echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37271if eval "test \"\${$as_ac_var+set}\" = set"; then
37272 echo $ECHO_N "(cached) $ECHO_C" >&6
37273else
37274 cat >conftest.$ac_ext <<_ACEOF
37275/* confdefs.h. */
37276_ACEOF
37277cat confdefs.h >>conftest.$ac_ext
37278cat >>conftest.$ac_ext <<_ACEOF
37279/* end confdefs.h. */
ac1cb8d3
VS
37280/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37281 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37282#define $ac_func innocuous_$ac_func
37283
a848cd7e
SC
37284/* System header to define __stub macros and hopefully few prototypes,
37285 which can conflict with char $ac_func (); below.
37286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37287 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37288
a848cd7e
SC
37289#ifdef __STDC__
37290# include <limits.h>
37291#else
37292# include <assert.h>
37293#endif
ac1cb8d3
VS
37294
37295#undef $ac_func
37296
a848cd7e
SC
37297/* Override any gcc2 internal prototype to avoid an error. */
37298#ifdef __cplusplus
37299extern "C"
37300{
37301#endif
37302/* We use char because int might match the return type of a gcc2
37303 builtin and then its argument prototype would still apply. */
37304char $ac_func ();
37305/* The GNU C library defines this for functions which it implements
37306 to always fail with ENOSYS. Some functions are actually named
37307 something starting with __ and the normal name is an alias. */
37308#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37309choke me
37310#else
37311char (*f) () = $ac_func;
37312#endif
37313#ifdef __cplusplus
37314}
37315#endif
37316
37317int
37318main ()
37319{
37320return f != $ac_func;
37321 ;
37322 return 0;
37323}
37324_ACEOF
37325rm -f conftest.$ac_objext conftest$ac_exeext
37326if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37327 (eval $ac_link) 2>conftest.er1
a848cd7e 37328 ac_status=$?
ac1cb8d3
VS
37329 grep -v '^ *+' conftest.er1 >conftest.err
37330 rm -f conftest.er1
37331 cat conftest.err >&5
a848cd7e
SC
37332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37333 (exit $ac_status); } &&
ea7db9ff
DE
37334 { ac_try='test -z "$ac_c_werror_flag"
37335 || test ! -s conftest.err'
ac1cb8d3
VS
37336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37337 (eval $ac_try) 2>&5
37338 ac_status=$?
37339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37340 (exit $ac_status); }; } &&
37341 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37343 (eval $ac_try) 2>&5
37344 ac_status=$?
37345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37346 (exit $ac_status); }; }; then
37347 eval "$as_ac_var=yes"
37348else
37349 echo "$as_me: failed program was:" >&5
37350sed 's/^/| /' conftest.$ac_ext >&5
37351
37352eval "$as_ac_var=no"
37353fi
ac1cb8d3
VS
37354rm -f conftest.err conftest.$ac_objext \
37355 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37356fi
37357echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37358echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37359if test `eval echo '${'$as_ac_var'}'` = yes; then
37360 cat >>confdefs.h <<_ACEOF
37361#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37362_ACEOF
37363 have_cos=1
37364fi
37365done
37366
37367
37368for ac_func in floor
37369do
37370as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37371echo "$as_me:$LINENO: checking for $ac_func" >&5
37372echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37373if eval "test \"\${$as_ac_var+set}\" = set"; then
37374 echo $ECHO_N "(cached) $ECHO_C" >&6
37375else
37376 cat >conftest.$ac_ext <<_ACEOF
37377/* confdefs.h. */
37378_ACEOF
37379cat confdefs.h >>conftest.$ac_ext
37380cat >>conftest.$ac_ext <<_ACEOF
37381/* end confdefs.h. */
ac1cb8d3
VS
37382/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37383 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37384#define $ac_func innocuous_$ac_func
37385
a848cd7e
SC
37386/* System header to define __stub macros and hopefully few prototypes,
37387 which can conflict with char $ac_func (); below.
37388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37389 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37390
a848cd7e
SC
37391#ifdef __STDC__
37392# include <limits.h>
37393#else
37394# include <assert.h>
37395#endif
ac1cb8d3
VS
37396
37397#undef $ac_func
37398
a848cd7e
SC
37399/* Override any gcc2 internal prototype to avoid an error. */
37400#ifdef __cplusplus
37401extern "C"
37402{
37403#endif
37404/* We use char because int might match the return type of a gcc2
37405 builtin and then its argument prototype would still apply. */
37406char $ac_func ();
37407/* The GNU C library defines this for functions which it implements
37408 to always fail with ENOSYS. Some functions are actually named
37409 something starting with __ and the normal name is an alias. */
37410#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37411choke me
37412#else
37413char (*f) () = $ac_func;
37414#endif
37415#ifdef __cplusplus
37416}
37417#endif
37418
37419int
37420main ()
37421{
37422return f != $ac_func;
37423 ;
37424 return 0;
37425}
37426_ACEOF
37427rm -f conftest.$ac_objext conftest$ac_exeext
37428if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37429 (eval $ac_link) 2>conftest.er1
a848cd7e 37430 ac_status=$?
ac1cb8d3
VS
37431 grep -v '^ *+' conftest.er1 >conftest.err
37432 rm -f conftest.er1
37433 cat conftest.err >&5
a848cd7e
SC
37434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37435 (exit $ac_status); } &&
ea7db9ff
DE
37436 { ac_try='test -z "$ac_c_werror_flag"
37437 || test ! -s conftest.err'
ac1cb8d3
VS
37438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37439 (eval $ac_try) 2>&5
37440 ac_status=$?
37441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37442 (exit $ac_status); }; } &&
37443 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37445 (eval $ac_try) 2>&5
37446 ac_status=$?
37447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37448 (exit $ac_status); }; }; then
37449 eval "$as_ac_var=yes"
37450else
37451 echo "$as_me: failed program was:" >&5
37452sed 's/^/| /' conftest.$ac_ext >&5
37453
37454eval "$as_ac_var=no"
37455fi
ac1cb8d3
VS
37456rm -f conftest.err conftest.$ac_objext \
37457 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37458fi
37459echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37460echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37461if test `eval echo '${'$as_ac_var'}'` = yes; then
37462 cat >>confdefs.h <<_ACEOF
37463#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37464_ACEOF
37465 have_floor=1
37466fi
37467done
37468
37469echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
37470echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
37471if test "$have_cos" = 1 -a "$have_floor" = 1; then
37472 echo "$as_me:$LINENO: result: yes" >&5
37473echo "${ECHO_T}yes" >&6
37474else
37475 echo "$as_me:$LINENO: result: no" >&5
37476echo "${ECHO_T}no" >&6
37477 LIBS="$LIBS -lm"
37478 # use different functions to avoid configure caching
37479 have_sin=0
37480 have_ceil=0
37481
37482for ac_func in sin
37483do
37484as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37485echo "$as_me:$LINENO: checking for $ac_func" >&5
37486echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37487if eval "test \"\${$as_ac_var+set}\" = set"; then
37488 echo $ECHO_N "(cached) $ECHO_C" >&6
37489else
37490 cat >conftest.$ac_ext <<_ACEOF
37491/* confdefs.h. */
37492_ACEOF
37493cat confdefs.h >>conftest.$ac_ext
37494cat >>conftest.$ac_ext <<_ACEOF
37495/* end confdefs.h. */
ac1cb8d3
VS
37496/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37498#define $ac_func innocuous_$ac_func
37499
a848cd7e
SC
37500/* System header to define __stub macros and hopefully few prototypes,
37501 which can conflict with char $ac_func (); below.
37502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37503 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37504
a848cd7e
SC
37505#ifdef __STDC__
37506# include <limits.h>
37507#else
37508# include <assert.h>
37509#endif
ac1cb8d3
VS
37510
37511#undef $ac_func
37512
a848cd7e
SC
37513/* Override any gcc2 internal prototype to avoid an error. */
37514#ifdef __cplusplus
37515extern "C"
37516{
37517#endif
37518/* We use char because int might match the return type of a gcc2
37519 builtin and then its argument prototype would still apply. */
37520char $ac_func ();
37521/* The GNU C library defines this for functions which it implements
37522 to always fail with ENOSYS. Some functions are actually named
37523 something starting with __ and the normal name is an alias. */
37524#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37525choke me
37526#else
37527char (*f) () = $ac_func;
37528#endif
37529#ifdef __cplusplus
37530}
37531#endif
37532
37533int
37534main ()
37535{
37536return f != $ac_func;
37537 ;
37538 return 0;
37539}
37540_ACEOF
37541rm -f conftest.$ac_objext conftest$ac_exeext
37542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37543 (eval $ac_link) 2>conftest.er1
a848cd7e 37544 ac_status=$?
ac1cb8d3
VS
37545 grep -v '^ *+' conftest.er1 >conftest.err
37546 rm -f conftest.er1
37547 cat conftest.err >&5
a848cd7e
SC
37548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37549 (exit $ac_status); } &&
ea7db9ff
DE
37550 { ac_try='test -z "$ac_c_werror_flag"
37551 || test ! -s conftest.err'
ac1cb8d3
VS
37552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37553 (eval $ac_try) 2>&5
37554 ac_status=$?
37555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37556 (exit $ac_status); }; } &&
37557 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37559 (eval $ac_try) 2>&5
37560 ac_status=$?
37561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37562 (exit $ac_status); }; }; then
37563 eval "$as_ac_var=yes"
37564else
37565 echo "$as_me: failed program was:" >&5
37566sed 's/^/| /' conftest.$ac_ext >&5
37567
37568eval "$as_ac_var=no"
37569fi
ac1cb8d3
VS
37570rm -f conftest.err conftest.$ac_objext \
37571 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37572fi
37573echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37574echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37575if test `eval echo '${'$as_ac_var'}'` = yes; then
37576 cat >>confdefs.h <<_ACEOF
37577#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37578_ACEOF
37579 have_sin=1
37580fi
37581done
37582
37583
37584for ac_func in ceil
37585do
37586as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37587echo "$as_me:$LINENO: checking for $ac_func" >&5
37588echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37589if eval "test \"\${$as_ac_var+set}\" = set"; then
37590 echo $ECHO_N "(cached) $ECHO_C" >&6
37591else
37592 cat >conftest.$ac_ext <<_ACEOF
37593/* confdefs.h. */
37594_ACEOF
37595cat confdefs.h >>conftest.$ac_ext
37596cat >>conftest.$ac_ext <<_ACEOF
37597/* end confdefs.h. */
ac1cb8d3
VS
37598/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37600#define $ac_func innocuous_$ac_func
37601
a848cd7e
SC
37602/* System header to define __stub macros and hopefully few prototypes,
37603 which can conflict with char $ac_func (); below.
37604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37605 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37606
a848cd7e
SC
37607#ifdef __STDC__
37608# include <limits.h>
37609#else
37610# include <assert.h>
37611#endif
ac1cb8d3
VS
37612
37613#undef $ac_func
37614
a848cd7e
SC
37615/* Override any gcc2 internal prototype to avoid an error. */
37616#ifdef __cplusplus
37617extern "C"
37618{
37619#endif
37620/* We use char because int might match the return type of a gcc2
37621 builtin and then its argument prototype would still apply. */
37622char $ac_func ();
37623/* The GNU C library defines this for functions which it implements
37624 to always fail with ENOSYS. Some functions are actually named
37625 something starting with __ and the normal name is an alias. */
37626#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37627choke me
37628#else
37629char (*f) () = $ac_func;
37630#endif
37631#ifdef __cplusplus
37632}
37633#endif
37634
37635int
37636main ()
37637{
37638return f != $ac_func;
37639 ;
37640 return 0;
37641}
37642_ACEOF
37643rm -f conftest.$ac_objext conftest$ac_exeext
37644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37645 (eval $ac_link) 2>conftest.er1
a848cd7e 37646 ac_status=$?
ac1cb8d3
VS
37647 grep -v '^ *+' conftest.er1 >conftest.err
37648 rm -f conftest.er1
37649 cat conftest.err >&5
a848cd7e
SC
37650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37651 (exit $ac_status); } &&
ea7db9ff
DE
37652 { ac_try='test -z "$ac_c_werror_flag"
37653 || test ! -s conftest.err'
ac1cb8d3
VS
37654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37655 (eval $ac_try) 2>&5
37656 ac_status=$?
37657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37658 (exit $ac_status); }; } &&
37659 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37661 (eval $ac_try) 2>&5
37662 ac_status=$?
37663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37664 (exit $ac_status); }; }; then
37665 eval "$as_ac_var=yes"
37666else
37667 echo "$as_me: failed program was:" >&5
37668sed 's/^/| /' conftest.$ac_ext >&5
37669
37670eval "$as_ac_var=no"
37671fi
ac1cb8d3
VS
37672rm -f conftest.err conftest.$ac_objext \
37673 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37674fi
37675echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37676echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37677if test `eval echo '${'$as_ac_var'}'` = yes; then
37678 cat >>confdefs.h <<_ACEOF
37679#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37680_ACEOF
37681 have_ceil=1
37682fi
37683done
37684
37685 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
37686echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
37687 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
37688 echo "$as_me:$LINENO: result: yes" >&5
37689echo "${ECHO_T}yes" >&6
37690 else
37691 echo "$as_me:$LINENO: result: no" >&5
37692echo "${ECHO_T}no" >&6
37693 # not sure we should warn the user, crash, etc.
37694 fi
37695fi
37696
37697if test "$wxUSE_GUI" = "yes"; then
37698
37699
37700 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
37701 drawing dynamic erase event exec font image \
37702 minimal propsize rotate shaped widgets render"
37703
37704 if test "$wxUSE_MONOLITHIC" != "yes"; then
37705 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
37706 fi
37707else
37708 SAMPLES_SUBDIRS="console"
37709fi
37710
37711
37712INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \
37713-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
37714
37715if test "$GXX" = yes ; then
37716 CXXWARNINGS="-Wall"
37717 fi
37718
37719EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
37720
0c3c69fc
VS
37721CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
37722CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS`
37723CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e
SC
37724
37725
0c3c69fc 37726LIBS=`echo $LIBS`
a848cd7e
SC
37727EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
37728EXTRALIBS_XML="$EXPAT_LINK"
37729EXTRALIBS_HTML="$MSPACK_LINK"
37730EXTRALIBS_ODBC="$ODBC_LINK"
37731if test "$wxUSE_GUI" = "yes"; then
0c3c69fc 37732 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK`
a848cd7e
SC
37733fi
37734if test "$wxUSE_OPENGL" = "yes"; then
37735 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
37736fi
37737
37738LDFLAGS="$LDFLAGS $PROFILE"
37739
37740if test "$wxUSE_GTK" = 1; then
37741 WXCONFIG_INCLUDE=
37742else
37743 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
37744fi
37745
37746WXCONFIG_EXTRALIBS="$LIBS"
37747
37748if test "$wxUSE_REGEX" = "builtin" ; then
37749 wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}"
37750fi
37751if test "$wxUSE_EXPAT" = "builtin" ; then
37752 wxconfig_3rdparty="$wxconfig_3rdparty expat"
37753fi
37754if test "$wxUSE_ODBC" = "builtin" ; then
37755 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
37756fi
37757if test "$wxUSE_LIBTIFF" = "builtin" ; then
37758 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
37759fi
37760if test "$wxUSE_LIBJPEG" = "builtin" ; then
37761 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
37762fi
37763if test "$wxUSE_LIBPNG" = "builtin" ; then
37764 wxconfig_3rdparty="$wxconfig_3rdparty png"
37765fi
37766if test "$wxUSE_ZLIB" = "builtin" ; then
37767 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
37768fi
37769if test "$wxUSE_ODBC" = "builtin" ; then
37770 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
37771fi
37772
37773for i in $wxconfig_3rdparty ; do
37774 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}"
37775done
37776
37777
37778if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
37779 WXUNIV=1
37780else
37781 WXUNIV=0
37782fi
37783
37784
37785
37786
37787
37788
37789
37790
37791
37792if test $wxUSE_MONOLITHIC = "yes" ; then
37793 MONOLITHIC=1
37794else
37795 MONOLITHIC=0
37796fi
37797
37798if test $wxUSE_PLUGINS = "yes" ; then
37799 USE_PLUGINS=1
37800else
37801 USE_PLUGINS=0
37802fi
37803
37804if test $wxUSE_ODBC != "no" ; then
37805 USE_ODBC=1
37806else
37807 USE_ODBC=0
37808fi
37809
37810if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
37811 OFFICIAL_BUILD=1
37812else
37813 OFFICIAL_BUILD=0
37814fi
37815
37816
37817
37818
37819
37820
37821
37822
37823
37824
37825
37826
37827
37828
37829
37830
37831
37832
37833
37834
37835
37836TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
37837
37838
37839
37840
37841
37842
37843
37844
37845
37846 if test "x$BAKEFILE_HOST" = "x"; then
37847 BAKEFILE_HOST="${host}"
37848 fi
37849
37850 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
37851
37852 if test -n "$ac_tool_prefix"; then
37853 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
37854set dummy ${ac_tool_prefix}ranlib; ac_word=$2
37855echo "$as_me:$LINENO: checking for $ac_word" >&5
37856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37857if test "${ac_cv_prog_RANLIB+set}" = set; then
37858 echo $ECHO_N "(cached) $ECHO_C" >&6
37859else
37860 if test -n "$RANLIB"; then
37861 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
37862else
37863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37864for as_dir in $PATH
37865do
37866 IFS=$as_save_IFS
37867 test -z "$as_dir" && as_dir=.
37868 for ac_exec_ext in '' $ac_executable_extensions; do
37869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37870 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
37871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37872 break 2
37873 fi
37874done
37875done
37876
37877fi
37878fi
37879RANLIB=$ac_cv_prog_RANLIB
37880if test -n "$RANLIB"; then
37881 echo "$as_me:$LINENO: result: $RANLIB" >&5
37882echo "${ECHO_T}$RANLIB" >&6
37883else
37884 echo "$as_me:$LINENO: result: no" >&5
37885echo "${ECHO_T}no" >&6
37886fi
37887
37888fi
37889if test -z "$ac_cv_prog_RANLIB"; then
37890 ac_ct_RANLIB=$RANLIB
37891 # Extract the first word of "ranlib", so it can be a program name with args.
37892set dummy ranlib; ac_word=$2
37893echo "$as_me:$LINENO: checking for $ac_word" >&5
37894echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37895if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
37896 echo $ECHO_N "(cached) $ECHO_C" >&6
37897else
37898 if test -n "$ac_ct_RANLIB"; then
37899 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
37900else
37901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37902for as_dir in $PATH
37903do
37904 IFS=$as_save_IFS
37905 test -z "$as_dir" && as_dir=.
37906 for ac_exec_ext in '' $ac_executable_extensions; do
37907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37908 ac_cv_prog_ac_ct_RANLIB="ranlib"
37909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37910 break 2
37911 fi
37912done
37913done
37914
37915 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
37916fi
37917fi
37918ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
37919if test -n "$ac_ct_RANLIB"; then
37920 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
37921echo "${ECHO_T}$ac_ct_RANLIB" >&6
37922else
37923 echo "$as_me:$LINENO: result: no" >&5
37924echo "${ECHO_T}no" >&6
37925fi
37926
37927 RANLIB=$ac_ct_RANLIB
37928else
37929 RANLIB="$ac_cv_prog_RANLIB"
37930fi
37931
37932 # Find a good install program. We prefer a C program (faster),
37933# so one script is as good as another. But avoid the broken or
37934# incompatible versions:
37935# SysV /etc/install, /usr/sbin/install
37936# SunOS /usr/etc/install
37937# IRIX /sbin/install
37938# AIX /bin/install
37939# AmigaOS /C/install, which installs bootblocks on floppy discs
37940# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
37941# AFS /usr/afsws/bin/install, which mishandles nonexistent args
37942# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 37943# OS/2's system install, which has a completely different semantic
a848cd7e
SC
37944# ./install, which can be erroneously created by make from ./install.sh.
37945echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
37946echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
37947if test -z "$INSTALL"; then
37948if test "${ac_cv_path_install+set}" = set; then
37949 echo $ECHO_N "(cached) $ECHO_C" >&6
37950else
37951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37952for as_dir in $PATH
37953do
37954 IFS=$as_save_IFS
37955 test -z "$as_dir" && as_dir=.
37956 # Account for people who put trailing slashes in PATH elements.
37957case $as_dir/ in
37958 ./ | .// | /cC/* | \
37959 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 37960 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
37961 /usr/ucb/* ) ;;
37962 *)
37963 # OSF1 and SCO ODT 3.0 have their own names for install.
37964 # Don't use installbsd from OSF since it installs stuff as root
37965 # by default.
37966 for ac_prog in ginstall scoinst install; do
37967 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
37968 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
37969 if test $ac_prog = install &&
37970 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
37971 # AIX install. It has an incompatible calling convention.
37972 :
37973 elif test $ac_prog = install &&
37974 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
37975 # program-specific install script used by HP pwplus--don't use.
37976 :
37977 else
37978 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
37979 break 3
37980 fi
37981 fi
a848cd7e
SC
37982 done
37983 done
37984 ;;
37985esac
37986done
37987
37988
37989fi
37990 if test "${ac_cv_path_install+set}" = set; then
37991 INSTALL=$ac_cv_path_install
37992 else
37993 # As a last resort, use the slow shell script. We don't cache a
37994 # path for INSTALL within a source directory, because that will
37995 # break other packages using the cache if that directory is
37996 # removed, or if the path is relative.
37997 INSTALL=$ac_install_sh
37998 fi
37999fi
38000echo "$as_me:$LINENO: result: $INSTALL" >&5
38001echo "${ECHO_T}$INSTALL" >&6
38002
38003# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
38004# It thinks the first close brace ends the variable substitution.
38005test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
38006
38007test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
38008
38009test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
38010
38011 echo "$as_me:$LINENO: checking whether ln -s works" >&5
38012echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
38013LN_S=$as_ln_s
38014if test "$LN_S" = "ln -s"; then
38015 echo "$as_me:$LINENO: result: yes" >&5
38016echo "${ECHO_T}yes" >&6
38017else
38018 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
38019echo "${ECHO_T}no, using $LN_S" >&6
38020fi
38021
38022
38023 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
38024echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 38025set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
38026if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
38027 echo $ECHO_N "(cached) $ECHO_C" >&6
38028else
38029 cat >conftest.make <<\_ACEOF
38030all:
38031 @echo 'ac_maketemp="$(MAKE)"'
38032_ACEOF
38033# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
38034eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
38035if test -n "$ac_maketemp"; then
38036 eval ac_cv_prog_make_${ac_make}_set=yes
38037else
38038 eval ac_cv_prog_make_${ac_make}_set=no
38039fi
38040rm -f conftest.make
38041fi
38042if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
38043 echo "$as_me:$LINENO: result: yes" >&5
38044echo "${ECHO_T}yes" >&6
38045 SET_MAKE=
38046else
38047 echo "$as_me:$LINENO: result: no" >&5
38048echo "${ECHO_T}no" >&6
38049 SET_MAKE="MAKE=${MAKE-make}"
38050fi
38051
38052
38053
38054 if test -n "$ac_tool_prefix"; then
38055 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
38056set dummy ${ac_tool_prefix}ar; ac_word=$2
38057echo "$as_me:$LINENO: checking for $ac_word" >&5
38058echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38059if test "${ac_cv_prog_AR+set}" = set; then
38060 echo $ECHO_N "(cached) $ECHO_C" >&6
38061else
38062 if test -n "$AR"; then
38063 ac_cv_prog_AR="$AR" # Let the user override the test.
38064else
38065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38066for as_dir in $PATH
38067do
38068 IFS=$as_save_IFS
38069 test -z "$as_dir" && as_dir=.
38070 for ac_exec_ext in '' $ac_executable_extensions; do
38071 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38072 ac_cv_prog_AR="${ac_tool_prefix}ar"
38073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38074 break 2
38075 fi
38076done
38077done
38078
38079fi
38080fi
38081AR=$ac_cv_prog_AR
38082if test -n "$AR"; then
38083 echo "$as_me:$LINENO: result: $AR" >&5
38084echo "${ECHO_T}$AR" >&6
38085else
38086 echo "$as_me:$LINENO: result: no" >&5
38087echo "${ECHO_T}no" >&6
38088fi
38089
38090fi
38091if test -z "$ac_cv_prog_AR"; then
38092 ac_ct_AR=$AR
38093 # Extract the first word of "ar", so it can be a program name with args.
38094set dummy ar; ac_word=$2
38095echo "$as_me:$LINENO: checking for $ac_word" >&5
38096echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38097if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
38098 echo $ECHO_N "(cached) $ECHO_C" >&6
38099else
38100 if test -n "$ac_ct_AR"; then
38101 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
38102else
38103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38104for as_dir in $PATH
38105do
38106 IFS=$as_save_IFS
38107 test -z "$as_dir" && as_dir=.
38108 for ac_exec_ext in '' $ac_executable_extensions; do
38109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38110 ac_cv_prog_ac_ct_AR="ar"
38111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38112 break 2
38113 fi
38114done
38115done
38116
38117 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
38118fi
38119fi
38120ac_ct_AR=$ac_cv_prog_ac_ct_AR
38121if test -n "$ac_ct_AR"; then
38122 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
38123echo "${ECHO_T}$ac_ct_AR" >&6
38124else
38125 echo "$as_me:$LINENO: result: no" >&5
38126echo "${ECHO_T}no" >&6
38127fi
38128
38129 AR=$ac_ct_AR
38130else
38131 AR="$ac_cv_prog_AR"
38132fi
38133
38134 if test -n "$ac_tool_prefix"; then
38135 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
38136set dummy ${ac_tool_prefix}strip; ac_word=$2
38137echo "$as_me:$LINENO: checking for $ac_word" >&5
38138echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38139if test "${ac_cv_prog_STRIP+set}" = set; then
38140 echo $ECHO_N "(cached) $ECHO_C" >&6
38141else
38142 if test -n "$STRIP"; then
38143 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
38144else
38145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38146for as_dir in $PATH
38147do
38148 IFS=$as_save_IFS
38149 test -z "$as_dir" && as_dir=.
38150 for ac_exec_ext in '' $ac_executable_extensions; do
38151 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38152 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
38153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38154 break 2
38155 fi
38156done
38157done
38158
38159fi
38160fi
38161STRIP=$ac_cv_prog_STRIP
38162if test -n "$STRIP"; then
38163 echo "$as_me:$LINENO: result: $STRIP" >&5
38164echo "${ECHO_T}$STRIP" >&6
38165else
38166 echo "$as_me:$LINENO: result: no" >&5
38167echo "${ECHO_T}no" >&6
38168fi
38169
38170fi
38171if test -z "$ac_cv_prog_STRIP"; then
38172 ac_ct_STRIP=$STRIP
38173 # Extract the first word of "strip", so it can be a program name with args.
38174set dummy strip; ac_word=$2
38175echo "$as_me:$LINENO: checking for $ac_word" >&5
38176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38177if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
38178 echo $ECHO_N "(cached) $ECHO_C" >&6
38179else
38180 if test -n "$ac_ct_STRIP"; then
38181 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
38182else
38183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38184for as_dir in $PATH
38185do
38186 IFS=$as_save_IFS
38187 test -z "$as_dir" && as_dir=.
38188 for ac_exec_ext in '' $ac_executable_extensions; do
38189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38190 ac_cv_prog_ac_ct_STRIP="strip"
38191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38192 break 2
38193 fi
38194done
38195done
38196
38197 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
38198fi
38199fi
38200ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
38201if test -n "$ac_ct_STRIP"; then
38202 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
38203echo "${ECHO_T}$ac_ct_STRIP" >&6
38204else
38205 echo "$as_me:$LINENO: result: no" >&5
38206echo "${ECHO_T}no" >&6
38207fi
38208
38209 STRIP=$ac_ct_STRIP
38210else
38211 STRIP="$ac_cv_prog_STRIP"
38212fi
38213
38214 if test -n "$ac_tool_prefix"; then
38215 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
38216set dummy ${ac_tool_prefix}nm; ac_word=$2
38217echo "$as_me:$LINENO: checking for $ac_word" >&5
38218echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38219if test "${ac_cv_prog_NM+set}" = set; then
38220 echo $ECHO_N "(cached) $ECHO_C" >&6
38221else
38222 if test -n "$NM"; then
38223 ac_cv_prog_NM="$NM" # Let the user override the test.
38224else
38225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38226for as_dir in $PATH
38227do
38228 IFS=$as_save_IFS
38229 test -z "$as_dir" && as_dir=.
38230 for ac_exec_ext in '' $ac_executable_extensions; do
38231 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38232 ac_cv_prog_NM="${ac_tool_prefix}nm"
38233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38234 break 2
38235 fi
38236done
38237done
38238
38239fi
38240fi
38241NM=$ac_cv_prog_NM
38242if test -n "$NM"; then
38243 echo "$as_me:$LINENO: result: $NM" >&5
38244echo "${ECHO_T}$NM" >&6
38245else
38246 echo "$as_me:$LINENO: result: no" >&5
38247echo "${ECHO_T}no" >&6
38248fi
38249
38250fi
38251if test -z "$ac_cv_prog_NM"; then
38252 ac_ct_NM=$NM
38253 # Extract the first word of "nm", so it can be a program name with args.
38254set dummy nm; ac_word=$2
38255echo "$as_me:$LINENO: checking for $ac_word" >&5
38256echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38257if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
38258 echo $ECHO_N "(cached) $ECHO_C" >&6
38259else
38260 if test -n "$ac_ct_NM"; then
38261 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
38262else
38263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38264for as_dir in $PATH
38265do
38266 IFS=$as_save_IFS
38267 test -z "$as_dir" && as_dir=.
38268 for ac_exec_ext in '' $ac_executable_extensions; do
38269 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38270 ac_cv_prog_ac_ct_NM="nm"
38271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38272 break 2
38273 fi
38274done
38275done
38276
38277 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
38278fi
38279fi
38280ac_ct_NM=$ac_cv_prog_ac_ct_NM
38281if test -n "$ac_ct_NM"; then
38282 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
38283echo "${ECHO_T}$ac_ct_NM" >&6
38284else
38285 echo "$as_me:$LINENO: result: no" >&5
38286echo "${ECHO_T}no" >&6
38287fi
38288
38289 NM=$ac_ct_NM
38290else
38291 NM="$ac_cv_prog_NM"
38292fi
38293
38294
38295 case ${BAKEFILE_HOST} in
38296 *-hp-hpux* )
a0f9686d 38297 INSTALL_DIR="mkdir -p"
a848cd7e
SC
38298 ;;
38299 *) INSTALL_DIR="$INSTALL -d"
38300 ;;
38301 esac
38302
38303
38304 LDFLAGS_GUI=
38305 case ${BAKEFILE_HOST} in
38306 *-*-cygwin* | *-*-mingw32* )
38307 LDFLAGS_GUI="-mwindows"
38308 esac
38309
38310
38311 fi
38312
38313 echo "$as_me:$LINENO: checking if make is GNU make" >&5
38314echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
38315if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
38316 echo $ECHO_N "(cached) $ECHO_C" >&6
38317else
38318
38319 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
38320 egrep -s GNU > /dev/null); then
38321 bakefile_cv_prog_makeisgnu="yes"
38322 else
38323 bakefile_cv_prog_makeisgnu="no"
38324 fi
38325
38326fi
38327echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
38328echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
38329
38330 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
38331 IF_GNU_MAKE=""
38332 else
38333 IF_GNU_MAKE="#"
38334 fi
38335
38336
38337
38338 PLATFORM_UNIX=0
38339 PLATFORM_WIN32=0
38340 PLATFORM_MSDOS=0
38341 PLATFORM_MAC=0
38342 PLATFORM_MACOSX=0
38343 PLATFORM_OS2=0
38344
38345 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
38346 case "${BAKEFILE_HOST}" in
38347 *-*-cygwin* | *-*-mingw32* )
38348 PLATFORM_WIN32=1
38349 ;;
38350 *-pc-msdosdjgpp )
38351 PLATFORM_MSDOS=1
38352 ;;
38353 *-pc-os2_emx | *-pc-os2-emx )
38354 PLATFORM_OS2=1
38355 ;;
38356 powerpc-*-darwin* )
38357 PLATFORM_MAC=1
38358 PLATFORM_MACOSX=1
38359 ;;
38360 * )
38361 PLATFORM_UNIX=1
38362 ;;
38363 esac
38364 else
38365 case "$BAKEFILE_FORCE_PLATFORM" in
38366 win32 )
38367 PLATFORM_WIN32=1
38368 ;;
38369 msdos )
38370 PLATFORM_MSDOS=1
38371 ;;
38372 os2 )
38373 PLATFORM_OS2=1
38374 ;;
38375 darwin )
38376 PLATFORM_MAC=1
38377 PLATFORM_MACOSX=1
38378 ;;
38379 unix )
38380 PLATFORM_UNIX=1
38381 ;;
38382 * )
38383 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
38384echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
38385 { (exit 1); exit 1; }; }
38386 ;;
38387 esac
38388 fi
38389
38390
38391
38392
38393
38394
38395
38396
38397
38398 # Check whether --enable-omf or --disable-omf was given.
38399if test "${enable_omf+set}" = set; then
38400 enableval="$enable_omf"
38401 bk_os2_use_omf="$enableval"
38402fi;
38403
38404 case "${BAKEFILE_HOST}" in
38405 *-*-darwin* )
38406 CFLAGS="$CFLAGS -fno-common"
38407 CXXFLAGS="$CXXFLAGS -fno-common"
38408 ;;
38409
38410 *-pc-os2_emx | *-pc-os2-emx )
38411 if test "x$bk_os2_use_omf" = "xyes" ; then
38412 AR=emxomfar
38413 RANLIB=:
38414 LDFLAGS="-Zomf $LDFLAGS"
38415 CFLAGS="-Zomf $CFLAGS"
38416 CXXFLAGS="-Zomf $CXXFLAGS"
38417 OS2_LIBEXT="lib"
38418 else
38419 OS2_LIBEXT="a"
38420 fi
38421 ;;
38422 esac
38423
38424
38425 SO_SUFFIX="so"
38426 SO_SUFFIX_MODULE="so"
38427 EXEEXT=""
38428 LIBPREFIX="lib"
38429 LIBEXT=".a"
38430 DLLPREFIX="lib"
38431 DLLPREFIX_MODULE=""
38432 DLLIMP_SUFFIX=""
38433
38434 case "${BAKEFILE_HOST}" in
38435 *-hp-hpux* )
38436 SO_SUFFIX="sl"
38437 SO_SUFFIX_MODULE="sl"
38438 ;;
38439 *-*-aix* )
38440 SO_SUFFIX="a"
38441 SO_SUFFIX_MODULE="a"
38442 ;;
38443 *-*-cygwin* | *-*-mingw32* )
38444 SO_SUFFIX="dll"
38445 SO_SUFFIX_MODULE="dll"
38446 DLLIMP_SUFFIX="dll.a"
38447 EXEEXT=".exe"
38448 DLLPREFIX=""
38449 ;;
38450 *-pc-msdosdjgpp )
38451 EXEEXT=".exe"
38452 DLLPREFIX=""
38453 ;;
38454 *-pc-os2_emx | *-pc-os2-emx )
38455 SO_SUFFIX="dll"
38456 SO_SUFFIX_MODULE="dll"
38457 DLLIMP_SUFFIX=$OS2_LIBEXT
38458 EXEEXT=".exe"
38459 DLLPREFIX=""
38460 LIBPREFIX=""
38461 LIBEXT=".$OS2_LIBEXT"
38462 ;;
38463 powerpc-*-darwin* )
38464 SO_SUFFIX="dylib"
38465 SO_SUFFIX_MODULE="bundle"
38466 ;;
38467 esac
38468
38469 if test "x$DLLIMP_SUFFIX" = "x" ; then
38470 DLLIMP_SUFFIX="$SO_SUFFIX"
38471 fi
38472
38473
38474
38475
38476
38477
38478
38479
38480
38481
38482
38483 SHARED_LD_CC="\$(CC) -shared -o"
38484 SHARED_LD_CXX="\$(CXX) -shared -o"
38485
38486 if test "x$GCC" = "xyes"; then
38487 PIC_FLAG="-fPIC"
38488 fi
38489
38490 case "${BAKEFILE_HOST}" in
38491 *-hp-hpux* )
38492 if test "x$GCC" = "xyes"; then
38493 SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
38494 SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
38495 else
38496 LDFLAGS="$LDFLAGS -L/usr/lib"
38497
38498 SHARED_LD_CC="${CC} -b -o"
38499 SHARED_LD_CXX="${CXX} -b -o"
38500 PIC_FLAG="+Z"
38501 fi
38502 ;;
38503
38504 *-*-linux* )
38505 if test "x$GCC" != "xyes"; then
38506 echo "$as_me:$LINENO: checking for Intel compiler" >&5
38507echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
38508if test "${bakefile_cv_prog_icc+set}" = set; then
38509 echo $ECHO_N "(cached) $ECHO_C" >&6
38510else
38511
38512 cat >conftest.$ac_ext <<_ACEOF
38513/* confdefs.h. */
38514_ACEOF
38515cat confdefs.h >>conftest.$ac_ext
38516cat >>conftest.$ac_ext <<_ACEOF
38517/* end confdefs.h. */
38518
38519int
38520main ()
38521{
38522
38523 #ifndef __INTEL_COMPILER
38524 #error Not icc
38525 #endif
38526
38527 ;
38528 return 0;
38529}
38530_ACEOF
38531rm -f conftest.$ac_objext
38532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38533 (eval $ac_compile) 2>conftest.er1
a848cd7e 38534 ac_status=$?
ac1cb8d3
VS
38535 grep -v '^ *+' conftest.er1 >conftest.err
38536 rm -f conftest.er1
38537 cat conftest.err >&5
a848cd7e
SC
38538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38539 (exit $ac_status); } &&
ea7db9ff
DE
38540 { ac_try='test -z "$ac_c_werror_flag"
38541 || test ! -s conftest.err'
ac1cb8d3
VS
38542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38543 (eval $ac_try) 2>&5
38544 ac_status=$?
38545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38546 (exit $ac_status); }; } &&
38547 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38549 (eval $ac_try) 2>&5
38550 ac_status=$?
38551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38552 (exit $ac_status); }; }; then
38553 bakefile_cv_prog_icc=yes
38554else
38555 echo "$as_me: failed program was:" >&5
38556sed 's/^/| /' conftest.$ac_ext >&5
38557
38558bakefile_cv_prog_icc=no
38559
38560fi
ac1cb8d3 38561rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38562
38563fi
38564echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
38565echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
38566 if test "$bakefile_cv_prog_icc" = "yes"; then
38567 PIC_FLAG="-KPIC"
38568 fi
38569 fi
38570 ;;
38571
38572 *-*-solaris2* )
38573 if test "x$GCC" != xyes ; then
38574 SHARED_LD_CC="${CC} -G -o"
38575 SHARED_LD_CXX="${CXX} -G -o"
38576 PIC_FLAG="-KPIC"
38577 fi
38578 ;;
38579
38580 *-*-darwin* )
38581
38582 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
38583echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
38584if test "${wx_cv_gcc31+set}" = set; then
38585 echo $ECHO_N "(cached) $ECHO_C" >&6
38586else
38587
38588 cat >conftest.$ac_ext <<_ACEOF
38589/* confdefs.h. */
38590_ACEOF
38591cat confdefs.h >>conftest.$ac_ext
38592cat >>conftest.$ac_ext <<_ACEOF
38593/* end confdefs.h. */
38594
38595int
38596main ()
38597{
38598
38599 #if (__GNUC__ < 3) || \
38600 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
38601 #error old gcc
38602 #endif
38603
38604 ;
38605 return 0;
38606}
38607_ACEOF
38608rm -f conftest.$ac_objext
38609if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38610 (eval $ac_compile) 2>conftest.er1
a848cd7e 38611 ac_status=$?
ac1cb8d3
VS
38612 grep -v '^ *+' conftest.er1 >conftest.err
38613 rm -f conftest.er1
38614 cat conftest.err >&5
a848cd7e
SC
38615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38616 (exit $ac_status); } &&
ea7db9ff
DE
38617 { ac_try='test -z "$ac_c_werror_flag"
38618 || test ! -s conftest.err'
ac1cb8d3
VS
38619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38620 (eval $ac_try) 2>&5
38621 ac_status=$?
38622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38623 (exit $ac_status); }; } &&
38624 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38626 (eval $ac_try) 2>&5
38627 ac_status=$?
38628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38629 (exit $ac_status); }; }; then
38630
38631 wx_cv_gcc31=yes
38632
38633else
38634 echo "$as_me: failed program was:" >&5
38635sed 's/^/| /' conftest.$ac_ext >&5
38636
38637
38638 wx_cv_gcc31=no
38639
38640
38641fi
ac1cb8d3 38642rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38643
38644fi
38645echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
38646echo "${ECHO_T}$wx_cv_gcc31" >&6
38647 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
38648
38649D='$'
38650cat <<EOF >shared-ld-sh
a848cd7e
SC
38651#!/bin/sh
38652#-----------------------------------------------------------------------------
38653#-- Name: distrib/mac/shared-ld-sh
38654#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
38655#-- Author: Gilles Depeyrot
38656#-- Copyright: (c) 2002 Gilles Depeyrot
38657#-- Licence: any use permitted
38658#-----------------------------------------------------------------------------
38659
38660verbose=0
38661args=""
38662objects=""
38663linking_flag="-dynamiclib"
38664
473276a9
VS
38665while test ${D}# -gt 0; do
38666 case ${D}1 in
a848cd7e
SC
38667
38668 -v)
38669 verbose=1
38670 ;;
38671
38672 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
38673 # collect these options and values
473276a9 38674 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
38675 shift
38676 ;;
38677
38678 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
38679 # collect these options
473276a9 38680 args="${D}{args} ${D}1"
a848cd7e
SC
38681 ;;
38682
38683 -dynamiclib|-bundle)
473276a9 38684 linking_flag="${D}1"
a848cd7e
SC
38685 ;;
38686
38687 -*)
473276a9 38688 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
38689 exit 1
38690 ;;
38691
38692 *.o | *.a | *.dylib)
38693 # collect object files
473276a9 38694 objects="${D}{objects} ${D}1"
a848cd7e
SC
38695 ;;
38696
38697 *)
473276a9 38698 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
38699 exit 1
38700 ;;
38701
38702 esac
38703 shift
38704done
38705
38706#
38707# Link one module containing all the others
38708#
473276a9
VS
38709if test ${D}{verbose} = 1; then
38710 echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
a848cd7e 38711fi
473276a9
VS
38712c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
38713status=${D}?
38714if test ${D}{status} != 0; then
38715 exit ${D}{status}
a848cd7e
SC
38716fi
38717
38718#
38719# Link the shared library from the single module created
38720#
473276a9
VS
38721if test ${D}{verbose} = 1; then
38722 echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
a848cd7e 38723fi
473276a9
VS
38724c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
38725status=${D}?
38726if test ${D}{status} != 0; then
38727 exit ${D}{status}
a848cd7e
SC
38728fi
38729
38730#
38731# Remove intermediate module
38732#
473276a9 38733rm -f master.${D}${D}.o
a848cd7e
SC
38734
38735exit 0
38736EOF
473276a9 38737
a848cd7e
SC
38738 chmod +x shared-ld-sh
38739
38740 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
38741 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
38742 SHARED_LD_CXX="$SHARED_LD_CC"
38743 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
38744 else
38745 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
38746 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
38747 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
38748 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
38749 fi
38750
38751 PIC_FLAG="-dynamic -fPIC"
38752 ;;
38753
38754 *-*-aix* )
38755 if test "x$GCC" != "xyes"; then
38756 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
38757set dummy makeC++SharedLib; ac_word=$2
38758echo "$as_me:$LINENO: checking for $ac_word" >&5
38759echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38760if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
38761 echo $ECHO_N "(cached) $ECHO_C" >&6
38762else
38763 if test -n "$AIX_CXX_LD"; then
38764 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
38765else
38766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38767for as_dir in $PATH
38768do
38769 IFS=$as_save_IFS
38770 test -z "$as_dir" && as_dir=.
38771 for ac_exec_ext in '' $ac_executable_extensions; do
38772 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38773 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
38774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38775 break 2
38776 fi
38777done
38778done
38779
38780 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
38781fi
38782fi
38783AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
38784if test -n "$AIX_CXX_LD"; then
38785 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
38786echo "${ECHO_T}$AIX_CXX_LD" >&6
38787else
38788 echo "$as_me:$LINENO: result: no" >&5
38789echo "${ECHO_T}no" >&6
38790fi
38791
38792 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
38793 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
38794 fi
38795 ;;
38796
38797 *-*-beos* )
38798 SHARED_LD_CC="${LD} -shared -o"
38799 SHARED_LD_CXX="${LD} -shared -o"
38800 ;;
38801
38802 *-*-irix* )
38803 if test "x$GCC" != "xyes"; then
38804 PIC_FLAG="-KPIC"
38805 fi
38806 ;;
38807
38808 *-*-cygwin* | *-*-mingw32* )
38809 PIC_FLAG=""
38810 ;;
38811
38812 *-pc-os2_emx | *-pc-os2-emx )
473276a9
VS
38813 SHARED_LD_CC="`pwd`/dllar.sh -o"
38814 SHARED_LD_CXX="`pwd`/dllar.sh -o"
a848cd7e 38815 PIC_FLAG=""
473276a9
VS
38816
38817D='$'
38818cat <<EOF >dllar.sh
38819#!/bin/sh
38820#
38821# dllar - a tool to build both a .dll and an .a file
38822# from a set of object (.o) files for EMX/OS2.
38823#
38824# Written by Andrew Zabolotny, bit@freya.etu.ru
38825# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
38826#
38827# This script will accept a set of files on the command line.
38828# All the public symbols from the .o files will be exported into
38829# a .DEF file, then linker will be run (through gcc) against them to
38830# build a shared library consisting of all given .o files. All libraries
38831# (.a) will be first decompressed into component .o files then act as
38832# described above. You can optionally give a description (-d "description")
38833# which will be put into .DLL. To see the list of accepted options (as well
38834# as command-line format) simply run this program without options. The .DLL
38835# is built to be imported by name (there is no guarantee that new versions
38836# of the library you build will have same ordinals for same symbols).
38837#
38838# dllar is free software; you can redistribute it and/or modify
38839# it under the terms of the GNU General Public License as published by
38840# the Free Software Foundation; either version 2, or (at your option)
38841# any later version.
38842#
38843# dllar is distributed in the hope that it will be useful,
38844# but WITHOUT ANY WARRANTY; without even the implied warranty of
38845# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38846# GNU General Public License for more details.
38847#
38848# You should have received a copy of the GNU General Public License
38849# along with dllar; see the file COPYING. If not, write to the Free
38850# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
38851# 02111-1307, USA.
38852
38853# To successfuly run this program you will need:
38854# - Current drive should have LFN support (HPFS, ext2, network, etc)
38855# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
38856# - gcc
38857# (used to build the .dll)
38858# - emxexp
38859# (used to create .def file from .o files)
38860# - emximp
38861# (used to create .a file from .def file)
38862# - GNU text utilites (cat, sort, uniq)
38863# used to process emxexp output
38864# - GNU file utilities (mv, rm)
38865# - GNU sed
38866# - lxlite (optional, see flag below)
38867# (used for general .dll cleanup)
38868#
38869
38870flag_USE_LXLITE=1;
38871
38872#
38873# helper functions
38874# basnam, variant of basename, which does _not_ remove the path, _iff_
38875# second argument (suffix to remove) is given
38876basnam(){
38877 case ${D}# in
38878 1)
38879 echo ${D}1 | sed 's/.*\///' | sed 's/.*\\//'
38880 ;;
38881 2)
38882 echo ${D}1 | sed 's/'${D}2'${D}//'
38883 ;;
38884 *)
38885 echo "error in basnam ${D}*"
38886 exit 8
38887 ;;
38888 esac
38889}
38890
38891# Cleanup temporary files and output
38892CleanUp() {
38893 cd ${D}curDir
38894 for i in ${D}inputFiles ; do
38895 case ${D}i in
38896 *!)
38897 rm -rf \`basnam ${D}i !\`
38898 ;;
38899 *)
38900 ;;
38901 esac
38902 done
38903
38904 # Kill result in case of failure as there is just to many stupid make/nmake
38905 # things out there which doesn't do this.
2057db16 38906 if [] ${D}# -eq 0 []; then
473276a9
VS
38907 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
38908 fi
38909}
38910
38911# Print usage and exit script with rc=1.
38912PrintHelp() {
2057db16
VS
38913 echo 'Usage: dllar []-o[[]utput[]] output_file[] []-i[[]mport[]] importlib_name[]'
38914 echo ' []-d[[]escription[]] "dll descrption"[] []-cc "CC"[] []-f[[]lags[]] "CFLAGS"[]'
38915 echo ' []-ord[[]inals[]][] -ex[]clude[] "symbol(s)"'
38916 echo ' []-libf[[]lags[]] "{INIT|TERM}{GLOBAL|INSTANCE}"[] []-nocrt[[]dll[]][] []-nolxl[[]ite[]][]'
38917 echo ' []*.o[] []*.a[]'
473276a9
VS
38918 echo '*> "output_file" should have no extension.'
38919 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
38920 echo ' The import library name is derived from this and is set to "name".a,'
38921 echo ' unless overridden by -import'
38922 echo '*> "importlib_name" should have no extension.'
38923 echo ' If it has the .o, or .a extension, it is automatically removed.'
38924 echo ' This name is used as the import library name and may be longer and'
38925 echo ' more descriptive than the DLL name which has to follow the old '
38926 echo ' 8.3 convention of FAT.'
38927 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
38928 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
38929 echo ' These flags will be put at the start of GCC command line.'
2057db16
VS
38930 echo '*> -ord[]inals[] tells dllar to export entries by ordinals. Be careful.'
38931 echo '*> -ex[]clude[] defines symbols which will not be exported. You can define'
473276a9
VS
38932 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
38933 echo ' If the last character of a symbol is "*", all symbols beginning'
38934 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
2057db16 38935 echo '*> -libf[]lags[] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 38936 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
2057db16 38937 echo '*> -nocrt[]dll[] switch will disable linking the library against emx''s'
473276a9 38938 echo ' C runtime DLLs.'
2057db16 38939 echo '*> -nolxl[]ite[] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
38940 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
38941 echo ' unchanged to GCC at the end of command line.'
38942 echo '*> If you create a DLL from a library and you do not specify -o,'
38943 echo ' the basename for DLL and import library will be set to library name,'
38944 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
38945 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
38946 echo ' library will be renamed into gcc_s.a.'
38947 echo '--------'
38948 echo 'Example:'
38949 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
38950 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
38951 CleanUp
38952 exit 1
38953}
38954
38955# Execute a command.
38956# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
38957# @Uses Whatever CleanUp() uses.
38958doCommand() {
38959 echo "${D}*"
38960 eval ${D}*
38961 rcCmd=${D}?
38962
2057db16 38963 if [] ${D}rcCmd -ne 0 []; then
473276a9
VS
38964 echo "command failed, exit code="${D}rcCmd
38965 CleanUp
38966 exit ${D}rcCmd
38967 fi
38968}
38969
38970# main routine
38971# setup globals
38972cmdLine=${D}*
38973outFile=""
38974outimpFile=""
38975inputFiles=""
38976description=""
38977CC=gcc.exe
38978CFLAGS="-s -Zcrtdll"
38979EXTRA_CFLAGS=""
38980EXPORT_BY_ORDINALS=0
38981exclude_symbols=""
38982library_flags=""
38983curDir=\`pwd\`
38984curDirS=curDir
38985case ${D}curDirS in
38986*/)
38987 ;;
38988*)
38989 curDirS=${D}{curDirS}"/"
38990 ;;
38991esac
38992# Parse commandline
38993libsToLink=0
2057db16 38994while [] ${D}1 []; do
473276a9
VS
38995 case ${D}1 in
38996 -ord*)
38997 EXPORT_BY_ORDINALS=1;
38998 ;;
38999 -o*)
39000 shift
39001 outFile=${D}1
39002 ;;
39003 -i*)
39004 shift
39005 outimpFile=${D}1
39006 ;;
39007 -d*)
39008 shift
39009 description=${D}1
39010 ;;
39011 -f*)
39012 shift
39013 CFLAGS=${D}1
39014 ;;
39015 -c*)
39016 shift
39017 CC=${D}1
39018 ;;
39019 -h*)
39020 PrintHelp
39021 ;;
39022 -ex*)
39023 shift
39024 exclude_symbols=${D}{exclude_symbols}${D}1" "
39025 ;;
39026 -libf*)
39027 shift
39028 library_flags=${D}{library_flags}${D}1" "
39029 ;;
39030 -nocrt*)
39031 CFLAGS="-s"
39032 ;;
39033 -nolxl*)
39034 flag_USE_LXLITE=0
39035 ;;
39036 -* | /*)
39037 case ${D}1 in
39038 -L* | -l*)
39039 libsToLink=1
39040 ;;
39041 *)
39042 ;;
39043 esac
39044 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
39045 ;;
39046 *)
39047 found=0;
2057db16 39048 if [] ${D}libsToLink -ne 0 []; then
473276a9
VS
39049 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
39050 else
39051 for file in ${D}1 ; do
2057db16 39052 if [] -f ${D}file []; then
473276a9
VS
39053 inputFiles="${D}{inputFiles} ${D}file"
39054 found=1
39055 fi
39056 done
2057db16 39057 if [] ${D}found -eq 0 []; then
473276a9
VS
39058 echo "ERROR: No file(s) found: "${D}1
39059 exit 8
39060 fi
39061 fi
39062 ;;
39063 esac
39064 shift
39065done # iterate cmdline words
39066
39067#
2057db16 39068if [] -z "${D}inputFiles" []; then
473276a9
VS
39069 echo "dllar: no input files"
39070 PrintHelp
39071fi
39072
39073# Now extract all .o files from .a files
39074newInputFiles=""
39075for file in ${D}inputFiles ; do
39076 case ${D}file in
39077 *.a | *.lib)
39078 case ${D}file in
39079 *.a)
39080 suffix=".a"
39081 AR="ar"
39082 ;;
39083 *.lib)
39084 suffix=".lib"
39085 AR="emxomfar"
39086 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
39087 ;;
39088 *)
39089 ;;
39090 esac
39091 dirname=\`basnam ${D}file ${D}suffix\`"_%"
39092 mkdir ${D}dirname
2057db16 39093 if [] ${D}? -ne 0 []; then
473276a9
VS
39094 echo "Failed to create subdirectory ./${D}dirname"
39095 CleanUp
39096 exit 8;
39097 fi
39098 # Append '!' to indicate archive
39099 newInputFiles="${D}newInputFiles ${D}{dirname}!"
39100 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
39101 cd ${D}curDir
39102 found=0;
39103 for subfile in ${D}dirname/*.o* ; do
2057db16 39104 if [] -f ${D}subfile []; then
473276a9 39105 found=1
2057db16 39106 if [] -s ${D}subfile []; then
473276a9
VS
39107 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
39108 newInputFiles="${D}newInputFiles ${D}subfile"
39109 fi
39110 fi
39111 done
2057db16 39112 if [] ${D}found -eq 0 []; then
473276a9
VS
39113 echo "WARNING: there are no files in archive \'${D}file\'"
39114 fi
39115 ;;
39116 *)
39117 newInputFiles="${D}{newInputFiles} ${D}file"
39118 ;;
39119 esac
39120done
39121inputFiles="${D}newInputFiles"
39122
39123# Output filename(s).
39124do_backup=0;
2057db16 39125if [] -z ${D}outFile []; then
473276a9
VS
39126 do_backup=1;
39127 set outFile ${D}inputFiles; outFile=${D}2
39128fi
39129
39130# If it is an archive, remove the '!' and the '_%' suffixes
39131case ${D}outFile in
39132*_%!)
39133 outFile=\`basnam ${D}outFile _%!\`
39134 ;;
39135*)
39136 ;;
39137esac
39138case ${D}outFile in
39139*.dll)
39140 outFile=\`basnam ${D}outFile .dll\`
39141 ;;
39142*.DLL)
39143 outFile=\`basnam ${D}outFile .DLL\`
39144 ;;
39145*.o)
39146 outFile=\`basnam ${D}outFile .o\`
39147 ;;
39148*.obj)
39149 outFile=\`basnam ${D}outFile .obj\`
39150 ;;
39151*.a)
39152 outFile=\`basnam ${D}outFile .a\`
39153 ;;
39154*.lib)
39155 outFile=\`basnam ${D}outFile .lib\`
39156 ;;
39157*)
39158 ;;
39159esac
39160case ${D}outimpFile in
39161*.a)
39162 outimpFile=\`basnam ${D}outimpFile .a\`
39163 ;;
39164*.lib)
39165 outimpFile=\`basnam ${D}outimpFile .lib\`
39166 ;;
39167*)
39168 ;;
39169esac
2057db16 39170if [] -z ${D}outimpFile []; then
473276a9
VS
39171 outimpFile=${D}outFile
39172fi
39173defFile="${D}{outFile}.def"
39174arcFile="${D}{outimpFile}.a"
39175arcFile2="${D}{outimpFile}.lib"
39176dllFile="${D}outFile"
39177# Add suffix to dllFile later, first we need a version to use as
39178# name in .def file.
39179
2057db16
VS
39180if [] ${D}do_backup -ne 0 [] ; then
39181 if [] -f ${D}arcFile [] ; then
473276a9
VS
39182 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
39183 fi
2057db16 39184 if [] -f ${D}arcFile2 [] ; then
473276a9
VS
39185 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
39186 fi
39187fi
39188
39189# Extract public symbols from all the object files.
39190tmpdefFile=${D}{defFile}_%
39191rm -f ${D}tmpdefFile
39192for file in ${D}inputFiles ; do
39193 case ${D}file in
39194 *!)
39195 ;;
39196 *)
39197 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
39198 ;;
39199 esac
39200done
39201
39202# Create the def file.
39203rm -f ${D}defFile
39204echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
39205dllFile="${D}dllFile.dll"
2057db16 39206if [] -n ${D}description []; then
473276a9
VS
39207 echo "DESCRIPTION \"${D}{description}\"" >> ${D}defFile
39208fi
39209echo "EXPORTS" >> ${D}defFile
39210
39211doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
39212grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
39213
39214# Checks if the export is ok or not.
39215for word in ${D}exclude_symbols; do
39216 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
39217 mv ${D}{tmpdefFile}% ${D}tmpdefFile
39218done
39219
39220
2057db16 39221if [] ${D}EXPORT_BY_ORDINALS -ne 0 []; then
473276a9
VS
39222 sed "=" < ${D}tmpdefFile | \
39223 sed '
39224 N
39225 : loop
2057db16 39226 s/^\([]0-9[]\+\)\([]^;[]*\)\(;.*\)\?/\2 @\1 NONAME/
473276a9
VS
39227 t loop
39228 ' > ${D}{tmpdefFile}%
39229 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
39230else
39231 rm -f ${D}{tmpdefFile}%
39232fi
39233cat ${D}tmpdefFile >> ${D}defFile
39234rm -f ${D}tmpdefFile
39235
39236# Do linking, create implib, and apply lxlite.
39237gccCmdl="";
39238for file in ${D}inputFiles ; do
39239 case ${D}file in
39240 *!)
39241 ;;
39242 *)
39243 gccCmdl="${D}gccCmdl ${D}file"
39244 ;;
39245 esac
39246done
39247doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
39248touch "${D}{outFile}.dll"
39249
39250doCommand "emximp -o ${D}arcFile ${D}defFile"
2057db16 39251if [] ${D}flag_USE_LXLITE -ne 0 []; then
473276a9 39252 add_flags="";
2057db16 39253 if [] ${D}EXPORT_BY_ORDINALS -ne 0 []; then
473276a9
VS
39254 add_flags="-ynd"
39255 fi
39256 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
39257fi
39258doCommand "emxomf -s -l ${D}arcFile"
39259
39260# Successful exit.
39261CleanUp 1
39262exit 0
39263EOF
39264
39265 chmod +x dllar.sh
a848cd7e
SC
39266 ;;
39267
39268 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
39269 *-*-sunos4* | \
39270 *-*-osf* | \
39271 *-*-dgux5* | \
39272 *-*-sysv5* )
39273 ;;
39274
39275 *)
39276 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
39277echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
39278 { (exit 1); exit 1; }; }
39279 esac
39280
2057db16
VS
39281 if test "x$PIC_FLAG" != "x" ; then
39282 PIC_FLAG="$PIC_FLAG -DPIC"
39283 fi
39284
a848cd7e
SC
39285 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
39286 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
39287 fi
39288 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
39289 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
39290 fi
39291
39292
39293
39294
39295
39296
39297
39298
39299 USE_SOVERSION=0
39300 USE_SOVERLINUX=0
39301 USE_SOVERSOLARIS=0
39302 USE_SOSYMLINKS=0
39303 USE_MACVERSION=0
39304 SONAME_FLAG=
39305
39306 case "${BAKEFILE_HOST}" in
39307 *-*-linux* )
39308 SONAME_FLAG="-Wl,-soname,"
39309 USE_SOVERSION=1
39310 USE_SOVERLINUX=1
39311 USE_SOSYMLINKS=1
39312 ;;
39313
39314 *-*-solaris2* )
39315 SONAME_FLAG="-h "
39316 USE_SOVERSION=1
39317 USE_SOVERSOLARIS=1
39318 USE_SOSYMLINKS=1
39319 ;;
39320
39321 *-*-darwin* )
39322 USE_MACVERSION=1
39323 USE_SOVERSION=1
39324 USE_SOSYMLINKS=1
39325 ;;
39326 esac
39327
39328
39329
39330
39331
39332
39333
39334
39335
39336 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
39337echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
39338 DEPS_TRACKING=0
39339
39340 if test "x$GCC" = "xyes"; then
39341 DEPSMODE=gcc
39342 DEPS_TRACKING=1
39343 case "${BAKEFILE_HOST}" in
39344 powerpc-*-darwin* )
39345 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
39346 ;;
39347 * )
39348 DEPSFLAG_GCC="-MMD"
39349 ;;
39350 esac
39351 echo "$as_me:$LINENO: result: gcc" >&5
39352echo "${ECHO_T}gcc" >&6
39353 else
39354 echo "$as_me:$LINENO: result: none" >&5
39355echo "${ECHO_T}none" >&6
39356 fi
39357
39358 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
39359
39360D='$'
39361cat <<EOF >bk-deps
a848cd7e
SC
39362#!/bin/sh
39363
39364# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39365# script. It is used to track C/C++ files dependencies in portable way.
39366#
39367# Permission is given to use this file in any way.
39368
473276a9 39369DEPSMODE=${DEPSMODE}
a848cd7e 39370DEPSDIR=.deps
473276a9 39371DEPSFLAG_GCC="${DEPSFLAG_GCC}"
a848cd7e 39372
473276a9 39373mkdir -p ${D}DEPSDIR
a848cd7e 39374
473276a9
VS
39375if test ${D}DEPSMODE = gcc ; then
39376 ${D}* ${D}{DEPSFLAG_GCC}
39377 status=${D}?
39378 if test ${D}{status} != 0 ; then
39379 exit ${D}{status}
a848cd7e
SC
39380 fi
39381 # move created file to the location we want it in:
473276a9
VS
39382 while test ${D}# -gt 0; do
39383 case "${D}1" in
a848cd7e
SC
39384 -o )
39385 shift
473276a9 39386 objfile=${D}1
a848cd7e
SC
39387 ;;
39388 -* )
39389 ;;
39390 * )
473276a9 39391 srcfile=${D}1
a848cd7e
SC
39392 ;;
39393 esac
39394 shift
39395 done
473276a9
VS
39396 depfile=\`basename ${D}srcfile | sed -e 's/\..*${D}/.d/g'\`
39397 depobjname=\`echo ${D}depfile |sed -e 's/\.d/.o/g'\`
39398 if test -f ${D}depfile ; then
39399 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
39400 rm -f ${D}depfile
a848cd7e 39401 else
473276a9
VS
39402 depfile=\`basename ${D}objfile | sed -e 's/\..*${D}/.d/g'\`
39403 if test -f ${D}depfile ; then
39404 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
39405 rm -f ${D}depfile
a848cd7e
SC
39406 fi
39407 fi
39408 exit 0
39409else
473276a9
VS
39410 ${D}*
39411 exit ${D}?
a848cd7e
SC
39412fi
39413EOF
473276a9 39414
a848cd7e
SC
39415 chmod +x bk-deps
39416 fi
39417
39418
39419
39420
39421 RESCOMP=
39422 SETFILE=
39423
39424 case ${BAKEFILE_HOST} in
39425 *-*-cygwin* | *-*-mingw32* )
39426 if test "$build" != "$host" ; then
39427 RESCOMP=$host_alias-windres
39428 else
39429 # Extract the first word of "windres", so it can be a program name with args.
39430set dummy windres; ac_word=$2
39431echo "$as_me:$LINENO: checking for $ac_word" >&5
39432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39433if test "${ac_cv_prog_RESCOMP+set}" = set; then
39434 echo $ECHO_N "(cached) $ECHO_C" >&6
39435else
39436 if test -n "$RESCOMP"; then
39437 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
39438else
39439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39440for as_dir in $PATH
39441do
39442 IFS=$as_save_IFS
39443 test -z "$as_dir" && as_dir=.
39444 for ac_exec_ext in '' $ac_executable_extensions; do
39445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39446 ac_cv_prog_RESCOMP="windres"
39447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39448 break 2
39449 fi
39450done
39451done
39452
39453 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
39454fi
39455fi
39456RESCOMP=$ac_cv_prog_RESCOMP
39457if test -n "$RESCOMP"; then
39458 echo "$as_me:$LINENO: result: $RESCOMP" >&5
39459echo "${ECHO_T}$RESCOMP" >&6
39460else
39461 echo "$as_me:$LINENO: result: no" >&5
39462echo "${ECHO_T}no" >&6
39463fi
39464
39465 fi
39466 ;;
39467
39468 *-*-darwin* )
39469 # Extract the first word of "Rez", so it can be a program name with args.
39470set dummy Rez; ac_word=$2
39471echo "$as_me:$LINENO: checking for $ac_word" >&5
39472echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39473if test "${ac_cv_prog_RESCOMP+set}" = set; then
39474 echo $ECHO_N "(cached) $ECHO_C" >&6
39475else
39476 if test -n "$RESCOMP"; then
39477 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
39478else
39479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39480for as_dir in $PATH
39481do
39482 IFS=$as_save_IFS
39483 test -z "$as_dir" && as_dir=.
39484 for ac_exec_ext in '' $ac_executable_extensions; do
39485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39486 ac_cv_prog_RESCOMP="Rez"
39487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39488 break 2
39489 fi
39490done
39491done
39492
39493 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
39494fi
39495fi
39496RESCOMP=$ac_cv_prog_RESCOMP
39497if test -n "$RESCOMP"; then
39498 echo "$as_me:$LINENO: result: $RESCOMP" >&5
39499echo "${ECHO_T}$RESCOMP" >&6
39500else
39501 echo "$as_me:$LINENO: result: no" >&5
39502echo "${ECHO_T}no" >&6
39503fi
39504
39505 # Extract the first word of "SetFile", so it can be a program name with args.
39506set dummy SetFile; ac_word=$2
39507echo "$as_me:$LINENO: checking for $ac_word" >&5
39508echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39509if test "${ac_cv_prog_SETFILE+set}" = set; then
39510 echo $ECHO_N "(cached) $ECHO_C" >&6
39511else
39512 if test -n "$SETFILE"; then
39513 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
39514else
39515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39516for as_dir in $PATH
39517do
39518 IFS=$as_save_IFS
39519 test -z "$as_dir" && as_dir=.
39520 for ac_exec_ext in '' $ac_executable_extensions; do
39521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39522 ac_cv_prog_SETFILE="SetFile"
39523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39524 break 2
39525 fi
39526done
39527done
39528
39529 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
39530fi
39531fi
39532SETFILE=$ac_cv_prog_SETFILE
39533if test -n "$SETFILE"; then
39534 echo "$as_me:$LINENO: result: $SETFILE" >&5
39535echo "${ECHO_T}$SETFILE" >&6
39536else
39537 echo "$as_me:$LINENO: result: no" >&5
39538echo "${ECHO_T}no" >&6
39539fi
39540
39541 ;;
39542 esac
39543
39544
39545
39546
39547
2057db16 39548 BAKEFILE_BAKEFILE_M4_VERSION="0.1.4"
a848cd7e 39549
dcc1b6ad 39550
a0f9686d
VS
39551
39552
39553
9f45f08e 39554BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.4"
a848cd7e 39555
646b6ec1 39556
74b84332 39557
a848cd7e
SC
39558 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
39559if test "${enable_precomp_headers+set}" = set; then
39560 enableval="$enable_precomp_headers"
39561 bk_use_pch="$enableval"
39562fi;
39563
39564 GCC_PCH=0
39565
39566 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
39567 if test "x$GCC" = "xyes"; then
39568 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
39569echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
39570 cat >conftest.$ac_ext <<_ACEOF
39571/* confdefs.h. */
39572_ACEOF
39573cat confdefs.h >>conftest.$ac_ext
39574cat >>conftest.$ac_ext <<_ACEOF
39575/* end confdefs.h. */
39576
39577int
39578main ()
39579{
39580
39581 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
39582 #error "no pch support"
39583 #endif
39584 #if (__GNUC__ < 3)
39585 #error "no pch support"
39586 #endif
39587 #if (__GNUC__ == 3) && \
39588 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
39589 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
39590 #error "no pch support"
39591 #endif
39592
39593 ;
39594 return 0;
39595}
39596_ACEOF
39597rm -f conftest.$ac_objext
39598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39599 (eval $ac_compile) 2>conftest.er1
a848cd7e 39600 ac_status=$?
ac1cb8d3
VS
39601 grep -v '^ *+' conftest.er1 >conftest.err
39602 rm -f conftest.er1
39603 cat conftest.err >&5
a848cd7e
SC
39604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39605 (exit $ac_status); } &&
ea7db9ff
DE
39606 { ac_try='test -z "$ac_c_werror_flag"
39607 || test ! -s conftest.err'
ac1cb8d3
VS
39608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39609 (eval $ac_try) 2>&5
39610 ac_status=$?
39611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39612 (exit $ac_status); }; } &&
39613 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39615 (eval $ac_try) 2>&5
39616 ac_status=$?
39617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39618 (exit $ac_status); }; }; then
39619
39620 echo "$as_me:$LINENO: result: yes" >&5
39621echo "${ECHO_T}yes" >&6
a848cd7e
SC
39622 GCC_PCH=1
39623
39624else
39625 echo "$as_me: failed program was:" >&5
39626sed 's/^/| /' conftest.$ac_ext >&5
39627
39628
39629 echo "$as_me:$LINENO: result: no" >&5
39630echo "${ECHO_T}no" >&6
39631
39632fi
ac1cb8d3 39633rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39634 if test $GCC_PCH = 1 ; then
39635 cat <<EOF >bk-make-pch
39636#!/bin/sh
39637
39638# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39639# script. It is used to generated precompiled headers.
39640#
39641# Permission is given to use this file in any way.
39642
39643outfile="\${1}"
39644header="\${2}"
39645shift
39646shift
39647
39648compiler=
39649headerfile=
39650while test \${#} -gt 0; do
39651 case "\${1}" in
39652 -I* )
39653 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
39654 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
39655 headerfile="\${incdir}/\${header}"
39656 fi
39657 ;;
39658 esac
39659 compiler="\${compiler} \${1}"
39660 shift
39661done
39662
39663if test "x\${headerfile}" = "x" ; then
39664 echo "error: can't find header \${header} in include paths" >2
39665else
39666 if test -f \${outfile} ; then
39667 rm -f \${outfile}
39668 else
39669 mkdir -p \`dirname \${outfile}\`
39670 fi
39671 depsfile=".deps/\`basename \${outfile}\`.d"
39672 mkdir -p .deps
39673 # can do this because gcc is >= 3.4:
39674 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
39675 exit \${?}
39676fi
39677EOF
39678 chmod +x bk-make-pch
39679 fi
39680 fi
39681 fi
39682
39683
39684
39685
39686
dcc1b6ad
VS
39687
39688
39689 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
39690if test "${enable_precomp_headers+set}" = set; then
39691 enableval="$enable_precomp_headers"
39692 bk_use_pch="$enableval"
39693fi;
39694
39695 GCC_PCH=0
39696
39697 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
39698 if test "x$GCC" = "xyes"; then
39699 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
39700echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
39701 cat >conftest.$ac_ext <<_ACEOF
39702/* confdefs.h. */
39703_ACEOF
39704cat confdefs.h >>conftest.$ac_ext
39705cat >>conftest.$ac_ext <<_ACEOF
39706/* end confdefs.h. */
39707
39708int
39709main ()
39710{
39711
39712 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
39713 #error "no pch support"
39714 #endif
39715 #if (__GNUC__ < 3)
39716 #error "no pch support"
39717 #endif
39718 #if (__GNUC__ == 3) && \
39719 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
39720 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
39721 #error "no pch support"
39722 #endif
39723
39724 ;
39725 return 0;
39726}
39727_ACEOF
39728rm -f conftest.$ac_objext
39729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39730 (eval $ac_compile) 2>conftest.er1
dcc1b6ad 39731 ac_status=$?
ac1cb8d3
VS
39732 grep -v '^ *+' conftest.er1 >conftest.err
39733 rm -f conftest.er1
39734 cat conftest.err >&5
dcc1b6ad
VS
39735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39736 (exit $ac_status); } &&
ea7db9ff
DE
39737 { ac_try='test -z "$ac_c_werror_flag"
39738 || test ! -s conftest.err'
ac1cb8d3
VS
39739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39740 (eval $ac_try) 2>&5
39741 ac_status=$?
39742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39743 (exit $ac_status); }; } &&
39744 { ac_try='test -s conftest.$ac_objext'
dcc1b6ad
VS
39745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39746 (eval $ac_try) 2>&5
39747 ac_status=$?
39748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39749 (exit $ac_status); }; }; then
39750
39751 echo "$as_me:$LINENO: result: yes" >&5
39752echo "${ECHO_T}yes" >&6
dcc1b6ad
VS
39753 GCC_PCH=1
39754
39755else
39756 echo "$as_me: failed program was:" >&5
39757sed 's/^/| /' conftest.$ac_ext >&5
39758
39759
39760 echo "$as_me:$LINENO: result: no" >&5
39761echo "${ECHO_T}no" >&6
39762
39763fi
ac1cb8d3 39764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dcc1b6ad
VS
39765 if test $GCC_PCH = 1 ; then
39766 cat <<EOF >bk-make-pch
39767#!/bin/sh
39768
39769# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39770# script. It is used to generated precompiled headers.
39771#
39772# Permission is given to use this file in any way.
39773
39774outfile="\${1}"
39775header="\${2}"
39776shift
39777shift
39778
39779compiler=
39780headerfile=
39781while test \${#} -gt 0; do
39782 case "\${1}" in
39783 -I* )
39784 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
39785 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
39786 headerfile="\${incdir}/\${header}"
39787 fi
39788 ;;
39789 esac
39790 compiler="\${compiler} \${1}"
39791 shift
39792done
39793
39794if test "x\${headerfile}" = "x" ; then
39795 echo "error: can't find header \${header} in include paths" >2
39796else
39797 if test -f \${outfile} ; then
39798 rm -f \${outfile}
39799 else
39800 mkdir -p \`dirname \${outfile}\`
39801 fi
39802 depsfile=".deps/\`basename \${outfile}\`.d"
39803 mkdir -p .deps
39804 # can do this because gcc is >= 3.4:
39805 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
39806 exit \${?}
39807fi
39808EOF
39809 chmod +x bk-make-pch
39810 fi
39811 fi
39812 fi
39813
39814
39815
a848cd7e
SC
39816 COND_BUILD_DEBUG="#"
39817 if test "x$BUILD" = "xdebug" ; then
39818 COND_BUILD_DEBUG=""
39819 fi
39820
39821 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
39822 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
39823 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
39824 fi
39825
39826 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
39827 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
39828 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
39829 fi
39830
39831 COND_BUILD_DEBUG_UNICODE_0="#"
39832 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
39833 COND_BUILD_DEBUG_UNICODE_0=""
39834 fi
39835
39836 COND_BUILD_DEBUG_UNICODE_1="#"
39837 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
39838 COND_BUILD_DEBUG_UNICODE_1=""
39839 fi
39840
39841 COND_BUILD_RELEASE="#"
39842 if test "x$BUILD" = "xrelease" ; then
39843 COND_BUILD_RELEASE=""
39844 fi
39845
39846 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
39847 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
39848 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
39849 fi
39850
39851 COND_BUILD_RELEASE_UNICODE_0="#"
39852 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
39853 COND_BUILD_RELEASE_UNICODE_0=""
39854 fi
39855
39856 COND_BUILD_RELEASE_UNICODE_1="#"
39857 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
39858 COND_BUILD_RELEASE_UNICODE_1=""
39859 fi
39860
39861 COND_DEBUG_FLAG_1="#"
39862 if test "x$DEBUG_FLAG" = "x1" ; then
39863 COND_DEBUG_FLAG_1=""
39864 fi
39865
39866 COND_DEBUG_INFO_0="#"
39867 if test "x$DEBUG_INFO" = "x0" ; then
39868 COND_DEBUG_INFO_0=""
39869 fi
39870
39871 COND_DEBUG_INFO_1="#"
39872 if test "x$DEBUG_INFO" = "x1" ; then
39873 COND_DEBUG_INFO_1=""
39874 fi
39875
39876 COND_DEPS_TRACKING_0="#"
39877 if test "x$DEPS_TRACKING" = "x0" ; then
39878 COND_DEPS_TRACKING_0=""
39879 fi
39880
39881 COND_DEPS_TRACKING_1="#"
39882 if test "x$DEPS_TRACKING" = "x1" ; then
39883 COND_DEPS_TRACKING_1=""
39884 fi
39885
39886 COND_GCC_PCH_1="#"
39887 if test "x$GCC_PCH" = "x1" ; then
39888 COND_GCC_PCH_1=""
39889 fi
39890
39891 COND_MONOLITHIC_0="#"
39892 if test "x$MONOLITHIC" = "x0" ; then
39893 COND_MONOLITHIC_0=""
39894 fi
39895
39896 COND_MONOLITHIC_0_SHARED_0="#"
39897 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
39898 COND_MONOLITHIC_0_SHARED_0=""
39899 fi
39900
39901 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
39902 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
39903 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
39904 fi
39905
39906 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
39907 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
39908 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
39909 fi
39910
39911 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
39912 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
39913 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
39914 fi
39915
39916 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
39917 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
39918 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
39919 fi
39920
39921 COND_MONOLITHIC_0_SHARED_1="#"
39922 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
39923 COND_MONOLITHIC_0_SHARED_1=""
39924 fi
39925
39926 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
39927 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
39928 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
39929 fi
39930
39931 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
39932 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
39933 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
39934 fi
39935
39936 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
39937 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
39938 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
39939 fi
39940
39941 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
39942 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
39943 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
39944 fi
39945
39946 COND_MONOLITHIC_0_USE_ODBC_1="#"
39947 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
39948 COND_MONOLITHIC_0_USE_ODBC_1=""
39949 fi
39950
39951 COND_MONOLITHIC_1="#"
39952 if test "x$MONOLITHIC" = "x1" ; then
39953 COND_MONOLITHIC_1=""
39954 fi
39955
39956 COND_MONOLITHIC_1_SHARED_0="#"
39957 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
39958 COND_MONOLITHIC_1_SHARED_0=""
39959 fi
39960
39961 COND_MONOLITHIC_1_SHARED_1="#"
39962 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
39963 COND_MONOLITHIC_1_SHARED_1=""
39964 fi
39965
39966 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
39967 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
39968 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
39969 fi
39970
39971 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
39972 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
39973 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
39974 fi
39975
39976 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
39977 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
39978 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
39979 fi
39980
39981 COND_PLATFORM_MACOSX_1="#"
39982 if test "x$PLATFORM_MACOSX" = "x1" ; then
39983 COND_PLATFORM_MACOSX_1=""
39984 fi
39985
39986 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
39987 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
39988 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
39989 fi
39990
39991 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
39992 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
39993 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
39994 fi
39995
39996 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
39997 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
39998 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
39999 fi
40000
ebee3cd0
VS
40001 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
40002 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
40003 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
40004 fi
40005
40006 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
40007 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
40008 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
40009 fi
40010
a848cd7e
SC
40011 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
40012 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
40013 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
40014 fi
40015
40016 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
40017 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
40018 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
40019 fi
40020
40021 COND_PLATFORM_MAC_1="#"
40022 if test "x$PLATFORM_MAC" = "x1" ; then
40023 COND_PLATFORM_MAC_1=""
40024 fi
40025
40026 COND_PLATFORM_OS2_1="#"
40027 if test "x$PLATFORM_OS2" = "x1" ; then
40028 COND_PLATFORM_OS2_1=""
40029 fi
40030
40031 COND_PLATFORM_UNIX_0="#"
40032 if test "x$PLATFORM_UNIX" = "x0" ; then
40033 COND_PLATFORM_UNIX_0=""
40034 fi
40035
40036 COND_PLATFORM_UNIX_1="#"
40037 if test "x$PLATFORM_UNIX" = "x1" ; then
40038 COND_PLATFORM_UNIX_1=""
40039 fi
40040
40041 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
40042 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
40043 COND_PLATFORM_UNIX_1_USE_GUI_1=""
40044 fi
40045
40046 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
40047 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
40048 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
40049 fi
40050
40051 COND_PLATFORM_WIN32_0="#"
40052 if test "x$PLATFORM_WIN32" = "x0" ; then
40053 COND_PLATFORM_WIN32_0=""
40054 fi
40055
40056 COND_PLATFORM_WIN32_1="#"
40057 if test "x$PLATFORM_WIN32" = "x1" ; then
40058 COND_PLATFORM_WIN32_1=""
40059 fi
40060
40061 COND_SHARED_0="#"
40062 if test "x$SHARED" = "x0" ; then
40063 COND_SHARED_0=""
40064 fi
40065
40066 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
40067 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40068 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
40069 fi
40070
40071 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40072 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40073 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40074 fi
40075
40076 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40077 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40078 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40079 fi
40080
40081 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40082 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40083 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40084 fi
40085
40086 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
40087 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
40088 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
40089 fi
40090
40091 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
40092 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
40093 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
40094 fi
40095
40096 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
40097 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
40098 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
40099 fi
40100
40101 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
40102 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
40103 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
40104 fi
40105
40106 COND_SHARED_1="#"
40107 if test "x$SHARED" = "x1" ; then
40108 COND_SHARED_1=""
40109 fi
40110
40111 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
40112 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40113 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
40114 fi
40115
40116 COND_TOOLKIT_COCOA="#"
40117 if test "x$TOOLKIT" = "xCOCOA" ; then
40118 COND_TOOLKIT_COCOA=""
40119 fi
40120
40121 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
40122 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40123 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
40124 fi
40125
40126 COND_TOOLKIT_GTK="#"
40127 if test "x$TOOLKIT" = "xGTK" ; then
40128 COND_TOOLKIT_GTK=""
40129 fi
40130
40131 COND_TOOLKIT_GTK_USE_GUI_1="#"
40132 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
40133 COND_TOOLKIT_GTK_USE_GUI_1=""
40134 fi
40135
40136 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
40137 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40138 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
40139 fi
40140
40141 COND_TOOLKIT_MAC="#"
40142 if test "x$TOOLKIT" = "xMAC" ; then
40143 COND_TOOLKIT_MAC=""
40144 fi
40145
40146 COND_TOOLKIT_MAC_USE_GUI_1="#"
40147 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
40148 COND_TOOLKIT_MAC_USE_GUI_1=""
40149 fi
40150
40151 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
40152 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40153 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
40154 fi
40155
40156 COND_TOOLKIT_MGL="#"
40157 if test "x$TOOLKIT" = "xMGL" ; then
40158 COND_TOOLKIT_MGL=""
40159 fi
40160
40161 COND_TOOLKIT_MGL_USE_GUI_1="#"
40162 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
40163 COND_TOOLKIT_MGL_USE_GUI_1=""
40164 fi
40165
40166 COND_TOOLKIT_MOTIF="#"
40167 if test "x$TOOLKIT" = "xMOTIF" ; then
40168 COND_TOOLKIT_MOTIF=""
40169 fi
40170
40171 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
40172 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
40173 COND_TOOLKIT_MOTIF_USE_GUI_1=""
40174 fi
40175
40176 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
40177 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40178 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
40179 fi
40180
40181 COND_TOOLKIT_MSW="#"
40182 if test "x$TOOLKIT" = "xMSW" ; then
40183 COND_TOOLKIT_MSW=""
40184 fi
40185
40186 COND_TOOLKIT_MSW_USE_GUI_1="#"
40187 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
40188 COND_TOOLKIT_MSW_USE_GUI_1=""
40189 fi
40190
40191 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
40192 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40193 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
40194 fi
40195
40196 COND_TOOLKIT_PM="#"
40197 if test "x$TOOLKIT" = "xPM" ; then
40198 COND_TOOLKIT_PM=""
40199 fi
40200
40201 COND_TOOLKIT_PM_USE_GUI_1="#"
40202 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
40203 COND_TOOLKIT_PM_USE_GUI_1=""
40204 fi
40205
40206 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
40207 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40208 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
40209 fi
40210
3fd9c298
DE
40211 COND_TOOLKIT_WINCE="#"
40212 if test "x$TOOLKIT" = "xWINCE" ; then
40213 COND_TOOLKIT_WINCE=""
40214 fi
40215
40216 COND_TOOLKIT_WINCE_USE_GUI_1="#"
40217 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
40218 COND_TOOLKIT_WINCE_USE_GUI_1=""
40219 fi
40220
40221 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
40222 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40223 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
40224 fi
40225
a848cd7e
SC
40226 COND_TOOLKIT_X11="#"
40227 if test "x$TOOLKIT" = "xX11" ; then
40228 COND_TOOLKIT_X11=""
40229 fi
40230
40231 COND_TOOLKIT_X11_USE_GUI_1="#"
40232 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
40233 COND_TOOLKIT_X11_USE_GUI_1=""
40234 fi
40235
40236 COND_UNICODE_1="#"
40237 if test "x$UNICODE" = "x1" ; then
40238 COND_UNICODE_1=""
40239 fi
40240
40241 COND_USE_EXCEPTIONS_0="#"
40242 if test "x$USE_EXCEPTIONS" = "x0" ; then
40243 COND_USE_EXCEPTIONS_0=""
40244 fi
40245
40246 COND_USE_EXCEPTIONS_1="#"
40247 if test "x$USE_EXCEPTIONS" = "x1" ; then
40248 COND_USE_EXCEPTIONS_1=""
40249 fi
40250
40251 COND_USE_GUI_0="#"
40252 if test "x$USE_GUI" = "x0" ; then
40253 COND_USE_GUI_0=""
40254 fi
40255
40256 COND_USE_GUI_1="#"
40257 if test "x$USE_GUI" = "x1" ; then
40258 COND_USE_GUI_1=""
40259 fi
40260
40261 COND_USE_GUI_1_WXUNIV_0="#"
40262 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40263 COND_USE_GUI_1_WXUNIV_0=""
40264 fi
40265
40266 COND_USE_GUI_1_WXUNIV_1="#"
40267 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
40268 COND_USE_GUI_1_WXUNIV_1=""
40269 fi
40270
40271 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40272 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40273 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40274 fi
40275
40276 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40277 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40278 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40279 fi
40280
40281 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40282 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40283 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40284 fi
40285
a848cd7e
SC
40286 COND_USE_PLUGINS_0="#"
40287 if test "x$USE_PLUGINS" = "x0" ; then
40288 COND_USE_PLUGINS_0=""
40289 fi
40290
40291 COND_USE_SOSYMLINKS_1="#"
40292 if test "x$USE_SOSYMLINKS" = "x1" ; then
40293 COND_USE_SOSYMLINKS_1=""
40294 fi
40295
40296 COND_USE_SOVERLINUX_1="#"
40297 if test "x$USE_SOVERLINUX" = "x1" ; then
40298 COND_USE_SOVERLINUX_1=""
40299 fi
40300
40301 COND_USE_SOVERSION_0="#"
40302 if test "x$USE_SOVERSION" = "x0" ; then
40303 COND_USE_SOVERSION_0=""
40304 fi
40305
40306 COND_USE_SOVERSOLARIS_1="#"
40307 if test "x$USE_SOVERSOLARIS" = "x1" ; then
40308 COND_USE_SOVERSOLARIS_1=""
40309 fi
40310
40311 COND_WITH_PLUGIN_SDL_1="#"
40312 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
40313 COND_WITH_PLUGIN_SDL_1=""
40314 fi
40315
a848cd7e
SC
40316 COND_WXUNIV_1="#"
40317 if test "x$WXUNIV" = "x1" ; then
40318 COND_WXUNIV_1=""
40319 fi
40320
40321 COND_WXUSE_EXPAT_BUILTIN="#"
40322 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
40323 COND_WXUSE_EXPAT_BUILTIN=""
40324 fi
40325
40326 COND_WXUSE_LIBJPEG_BUILTIN="#"
40327 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40328 COND_WXUSE_LIBJPEG_BUILTIN=""
40329 fi
40330
40331 COND_WXUSE_LIBPNG_BUILTIN="#"
40332 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40333 COND_WXUSE_LIBPNG_BUILTIN=""
40334 fi
40335
40336 COND_WXUSE_LIBTIFF_BUILTIN="#"
40337 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40338 COND_WXUSE_LIBTIFF_BUILTIN=""
40339 fi
40340
40341 COND_WXUSE_ODBC_BUILTIN="#"
40342 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
40343 COND_WXUSE_ODBC_BUILTIN=""
40344 fi
40345
40346 COND_WXUSE_REGEX_BUILTIN="#"
40347 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
40348 COND_WXUSE_REGEX_BUILTIN=""
40349 fi
40350
40351 COND_WXUSE_ZLIB_BUILTIN="#"
40352 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
40353 COND_WXUSE_ZLIB_BUILTIN=""
40354 fi
40355
dcc1b6ad
VS
40356 COND_BUILD_DEBUG="#"
40357 if test "x$BUILD" = "xdebug" ; then
40358 COND_BUILD_DEBUG=""
40359 fi
40360
40361 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
40362 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
40363 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
40364 fi
40365
40366 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
40367 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
40368 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
40369 fi
40370
40371 COND_BUILD_DEBUG_UNICODE_0="#"
40372 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
40373 COND_BUILD_DEBUG_UNICODE_0=""
40374 fi
40375
40376 COND_BUILD_DEBUG_UNICODE_1="#"
40377 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
40378 COND_BUILD_DEBUG_UNICODE_1=""
40379 fi
40380
40381 COND_BUILD_RELEASE="#"
40382 if test "x$BUILD" = "xrelease" ; then
40383 COND_BUILD_RELEASE=""
40384 fi
40385
40386 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
40387 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
40388 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
40389 fi
40390
40391 COND_BUILD_RELEASE_UNICODE_0="#"
40392 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
40393 COND_BUILD_RELEASE_UNICODE_0=""
40394 fi
40395
40396 COND_BUILD_RELEASE_UNICODE_1="#"
40397 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
40398 COND_BUILD_RELEASE_UNICODE_1=""
40399 fi
40400
40401 COND_DEBUG_FLAG_1="#"
40402 if test "x$DEBUG_FLAG" = "x1" ; then
40403 COND_DEBUG_FLAG_1=""
40404 fi
40405
40406 COND_DEBUG_INFO_0="#"
40407 if test "x$DEBUG_INFO" = "x0" ; then
40408 COND_DEBUG_INFO_0=""
40409 fi
40410
40411 COND_DEBUG_INFO_1="#"
40412 if test "x$DEBUG_INFO" = "x1" ; then
40413 COND_DEBUG_INFO_1=""
40414 fi
40415
40416 COND_DEPS_TRACKING_0="#"
40417 if test "x$DEPS_TRACKING" = "x0" ; then
40418 COND_DEPS_TRACKING_0=""
40419 fi
40420
40421 COND_DEPS_TRACKING_1="#"
40422 if test "x$DEPS_TRACKING" = "x1" ; then
40423 COND_DEPS_TRACKING_1=""
40424 fi
40425
40426 COND_GCC_PCH_1="#"
40427 if test "x$GCC_PCH" = "x1" ; then
40428 COND_GCC_PCH_1=""
40429 fi
40430
40431 COND_MONOLITHIC_0="#"
40432 if test "x$MONOLITHIC" = "x0" ; then
40433 COND_MONOLITHIC_0=""
40434 fi
40435
40436 COND_MONOLITHIC_0_SHARED_0="#"
40437 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
40438 COND_MONOLITHIC_0_SHARED_0=""
40439 fi
40440
40441 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
40442 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
40443 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
40444 fi
40445
40446 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
40447 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40448 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
40449 fi
40450
40451 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
40452 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
40453 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
40454 fi
40455
40456 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
40457 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
40458 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
40459 fi
40460
40461 COND_MONOLITHIC_0_SHARED_1="#"
40462 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
40463 COND_MONOLITHIC_0_SHARED_1=""
40464 fi
40465
40466 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
40467 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
40468 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
40469 fi
40470
40471 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
40472 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40473 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
40474 fi
40475
40476 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
40477 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
40478 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
40479 fi
40480
40481 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
40482 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
40483 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
40484 fi
40485
40486 COND_MONOLITHIC_0_USE_ODBC_1="#"
40487 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
40488 COND_MONOLITHIC_0_USE_ODBC_1=""
40489 fi
40490
40491 COND_MONOLITHIC_1="#"
40492 if test "x$MONOLITHIC" = "x1" ; then
40493 COND_MONOLITHIC_1=""
40494 fi
40495
40496 COND_MONOLITHIC_1_SHARED_0="#"
40497 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
40498 COND_MONOLITHIC_1_SHARED_0=""
40499 fi
40500
40501 COND_MONOLITHIC_1_SHARED_1="#"
40502 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
40503 COND_MONOLITHIC_1_SHARED_1=""
40504 fi
40505
40506 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
40507 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
40508 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
40509 fi
40510
40511 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
40512 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
40513 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
40514 fi
40515
40516 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
40517 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
40518 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
40519 fi
40520
40521 COND_PLATFORM_MACOSX_1="#"
40522 if test "x$PLATFORM_MACOSX" = "x1" ; then
40523 COND_PLATFORM_MACOSX_1=""
40524 fi
40525
40526 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
40527 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
40528 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
40529 fi
40530
40531 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
40532 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
40533 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
40534 fi
40535
40536 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
40537 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
40538 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
40539 fi
40540
4b167aca
VS
40541 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
40542 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
40543 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
40544 fi
40545
40546 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
40547 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
40548 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
40549 fi
40550
dcc1b6ad
VS
40551 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
40552 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
40553 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
40554 fi
40555
40556 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
40557 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
40558 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
40559 fi
40560
40561 COND_PLATFORM_MAC_1="#"
40562 if test "x$PLATFORM_MAC" = "x1" ; then
40563 COND_PLATFORM_MAC_1=""
40564 fi
40565
40566 COND_PLATFORM_OS2_1="#"
40567 if test "x$PLATFORM_OS2" = "x1" ; then
40568 COND_PLATFORM_OS2_1=""
40569 fi
40570
40571 COND_PLATFORM_UNIX_0="#"
40572 if test "x$PLATFORM_UNIX" = "x0" ; then
40573 COND_PLATFORM_UNIX_0=""
40574 fi
40575
40576 COND_PLATFORM_UNIX_1="#"
40577 if test "x$PLATFORM_UNIX" = "x1" ; then
40578 COND_PLATFORM_UNIX_1=""
40579 fi
40580
40581 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
40582 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
40583 COND_PLATFORM_UNIX_1_USE_GUI_1=""
40584 fi
40585
40586 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
40587 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
40588 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
40589 fi
40590
40591 COND_PLATFORM_WIN32_0="#"
40592 if test "x$PLATFORM_WIN32" = "x0" ; then
40593 COND_PLATFORM_WIN32_0=""
40594 fi
40595
40596 COND_PLATFORM_WIN32_1="#"
40597 if test "x$PLATFORM_WIN32" = "x1" ; then
40598 COND_PLATFORM_WIN32_1=""
40599 fi
40600
40601 COND_SHARED_0="#"
40602 if test "x$SHARED" = "x0" ; then
40603 COND_SHARED_0=""
40604 fi
40605
40606 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
40607 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40608 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
40609 fi
40610
40611 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40612 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40613 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40614 fi
40615
40616 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40617 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40618 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40619 fi
40620
40621 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40622 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40623 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40624 fi
40625
40626 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
40627 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
40628 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
40629 fi
40630
40631 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
40632 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
40633 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
40634 fi
40635
40636 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
40637 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
40638 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
40639 fi
40640
40641 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
40642 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
40643 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
40644 fi
40645
40646 COND_SHARED_1="#"
40647 if test "x$SHARED" = "x1" ; then
40648 COND_SHARED_1=""
40649 fi
40650
40651 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
40652 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40653 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
40654 fi
40655
40656 COND_TOOLKIT_COCOA="#"
40657 if test "x$TOOLKIT" = "xCOCOA" ; then
40658 COND_TOOLKIT_COCOA=""
40659 fi
40660
40661 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
40662 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40663 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
40664 fi
40665
40666 COND_TOOLKIT_GTK="#"
40667 if test "x$TOOLKIT" = "xGTK" ; then
40668 COND_TOOLKIT_GTK=""
40669 fi
40670
40671 COND_TOOLKIT_GTK_USE_GUI_1="#"
40672 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
40673 COND_TOOLKIT_GTK_USE_GUI_1=""
40674 fi
40675
40676 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
40677 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40678 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
40679 fi
40680
40681 COND_TOOLKIT_MAC="#"
40682 if test "x$TOOLKIT" = "xMAC" ; then
40683 COND_TOOLKIT_MAC=""
40684 fi
40685
40686 COND_TOOLKIT_MAC_USE_GUI_1="#"
40687 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
40688 COND_TOOLKIT_MAC_USE_GUI_1=""
40689 fi
40690
40691 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
40692 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40693 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
40694 fi
40695
a0f9686d
VS
40696 COND_TOOLKIT_MAC_WXUNIV_0="#"
40697 if test "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
40698 COND_TOOLKIT_MAC_WXUNIV_0=""
40699 fi
40700
dcc1b6ad
VS
40701 COND_TOOLKIT_MGL="#"
40702 if test "x$TOOLKIT" = "xMGL" ; then
40703 COND_TOOLKIT_MGL=""
40704 fi
40705
40706 COND_TOOLKIT_MGL_USE_GUI_1="#"
40707 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
40708 COND_TOOLKIT_MGL_USE_GUI_1=""
40709 fi
40710
40711 COND_TOOLKIT_MOTIF="#"
40712 if test "x$TOOLKIT" = "xMOTIF" ; then
40713 COND_TOOLKIT_MOTIF=""
40714 fi
40715
40716 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
40717 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
40718 COND_TOOLKIT_MOTIF_USE_GUI_1=""
40719 fi
40720
40721 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
40722 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40723 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
40724 fi
40725
40726 COND_TOOLKIT_MSW="#"
40727 if test "x$TOOLKIT" = "xMSW" ; then
40728 COND_TOOLKIT_MSW=""
40729 fi
40730
40731 COND_TOOLKIT_MSW_USE_GUI_1="#"
40732 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
40733 COND_TOOLKIT_MSW_USE_GUI_1=""
40734 fi
40735
40736 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
40737 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40738 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
40739 fi
40740
a0f9686d
VS
40741 COND_TOOLKIT_MSW_WXUNIV_0="#"
40742 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
40743 COND_TOOLKIT_MSW_WXUNIV_0=""
40744 fi
40745
dcc1b6ad
VS
40746 COND_TOOLKIT_PM="#"
40747 if test "x$TOOLKIT" = "xPM" ; then
40748 COND_TOOLKIT_PM=""
40749 fi
40750
40751 COND_TOOLKIT_PM_USE_GUI_1="#"
40752 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
40753 COND_TOOLKIT_PM_USE_GUI_1=""
40754 fi
40755
40756 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
40757 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40758 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
40759 fi
40760
a0f9686d
VS
40761 COND_TOOLKIT_PM_WXUNIV_0="#"
40762 if test "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
40763 COND_TOOLKIT_PM_WXUNIV_0=""
40764 fi
40765
dcc1b6ad
VS
40766 COND_TOOLKIT_WINCE="#"
40767 if test "x$TOOLKIT" = "xWINCE" ; then
40768 COND_TOOLKIT_WINCE=""
40769 fi
40770
40771 COND_TOOLKIT_WINCE_USE_GUI_1="#"
40772 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
40773 COND_TOOLKIT_WINCE_USE_GUI_1=""
40774 fi
40775
40776 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
40777 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40778 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
40779 fi
40780
40781 COND_TOOLKIT_X11="#"
40782 if test "x$TOOLKIT" = "xX11" ; then
40783 COND_TOOLKIT_X11=""
40784 fi
40785
40786 COND_TOOLKIT_X11_USE_GUI_1="#"
40787 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
40788 COND_TOOLKIT_X11_USE_GUI_1=""
40789 fi
40790
40791 COND_UNICODE_1="#"
40792 if test "x$UNICODE" = "x1" ; then
40793 COND_UNICODE_1=""
40794 fi
40795
40796 COND_USE_EXCEPTIONS_0="#"
40797 if test "x$USE_EXCEPTIONS" = "x0" ; then
40798 COND_USE_EXCEPTIONS_0=""
40799 fi
40800
40801 COND_USE_EXCEPTIONS_1="#"
40802 if test "x$USE_EXCEPTIONS" = "x1" ; then
40803 COND_USE_EXCEPTIONS_1=""
40804 fi
40805
40806 COND_USE_GUI_0="#"
40807 if test "x$USE_GUI" = "x0" ; then
40808 COND_USE_GUI_0=""
40809 fi
40810
40811 COND_USE_GUI_1="#"
40812 if test "x$USE_GUI" = "x1" ; then
40813 COND_USE_GUI_1=""
40814 fi
40815
40816 COND_USE_GUI_1_WXUNIV_0="#"
40817 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40818 COND_USE_GUI_1_WXUNIV_0=""
40819 fi
40820
40821 COND_USE_GUI_1_WXUNIV_1="#"
40822 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
40823 COND_USE_GUI_1_WXUNIV_1=""
40824 fi
40825
40826 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40827 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40828 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40829 fi
40830
40831 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40832 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40833 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40834 fi
40835
40836 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40837 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40838 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40839 fi
40840
40841 COND_USE_ODBC_1="#"
40842 if test "x$USE_ODBC" = "x1" ; then
40843 COND_USE_ODBC_1=""
40844 fi
40845
40846 COND_USE_PLUGINS_0="#"
40847 if test "x$USE_PLUGINS" = "x0" ; then
40848 COND_USE_PLUGINS_0=""
40849 fi
40850
40851 COND_USE_SOSYMLINKS_1="#"
40852 if test "x$USE_SOSYMLINKS" = "x1" ; then
40853 COND_USE_SOSYMLINKS_1=""
40854 fi
40855
40856 COND_USE_SOVERLINUX_1="#"
40857 if test "x$USE_SOVERLINUX" = "x1" ; then
40858 COND_USE_SOVERLINUX_1=""
40859 fi
40860
40861 COND_USE_SOVERSION_0="#"
40862 if test "x$USE_SOVERSION" = "x0" ; then
40863 COND_USE_SOVERSION_0=""
40864 fi
40865
40866 COND_USE_SOVERSOLARIS_1="#"
40867 if test "x$USE_SOVERSOLARIS" = "x1" ; then
40868 COND_USE_SOVERSOLARIS_1=""
40869 fi
40870
40871 COND_WITH_PLUGIN_SDL_1="#"
40872 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
40873 COND_WITH_PLUGIN_SDL_1=""
40874 fi
40875
40876 COND_WXUNIV_1="#"
40877 if test "x$WXUNIV" = "x1" ; then
40878 COND_WXUNIV_1=""
40879 fi
40880
40881 COND_WXUSE_EXPAT_BUILTIN="#"
40882 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
40883 COND_WXUSE_EXPAT_BUILTIN=""
40884 fi
40885
40886 COND_WXUSE_LIBJPEG_BUILTIN="#"
40887 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40888 COND_WXUSE_LIBJPEG_BUILTIN=""
40889 fi
40890
40891 COND_WXUSE_LIBPNG_BUILTIN="#"
40892 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40893 COND_WXUSE_LIBPNG_BUILTIN=""
40894 fi
40895
40896 COND_WXUSE_LIBTIFF_BUILTIN="#"
40897 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40898 COND_WXUSE_LIBTIFF_BUILTIN=""
40899 fi
40900
40901 COND_WXUSE_ODBC_BUILTIN="#"
40902 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
40903 COND_WXUSE_ODBC_BUILTIN=""
40904 fi
40905
40906 COND_WXUSE_REGEX_BUILTIN="#"
40907 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
40908 COND_WXUSE_REGEX_BUILTIN=""
40909 fi
40910
40911 COND_WXUSE_ZLIB_BUILTIN="#"
40912 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
40913 COND_WXUSE_ZLIB_BUILTIN=""
40914 fi
40915
a848cd7e
SC
40916
40917
2057db16
VS
40918 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
40919 { { 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
40920echo "$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;}
40921 { (exit 1); exit 1; }; }
40922 fi
40923
a848cd7e
SC
40924
40925
74b84332 40926GCC_PRAGMA_FLAGS=""
a848cd7e 40927if test $GCC_PCH = 1 ; then
74b84332 40928 GCC_PRAGMA_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA"
a848cd7e
SC
40929else
40930 case "${host}" in
40931 powerpc-*-darwin* )
74b84332 40932 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
a848cd7e 40933 ;;
bea8e651 40934 *-*-mingw32* )
1f344abf
VS
40935 if test "$wxUSE_STL" = "yes" -o \
40936 "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
40937 "$wxUSE_NO_RTTI" != "yes"; then
40938 echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
40939echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
bea8e651
MB
40940 cat >conftest.$ac_ext <<_ACEOF
40941/* confdefs.h. */
40942_ACEOF
40943cat confdefs.h >>conftest.$ac_ext
40944cat >>conftest.$ac_ext <<_ACEOF
40945/* end confdefs.h. */
40946
40947int
40948main ()
40949{
1f344abf 40950#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
bea8e651
MB
40951 #error "Not GCC 3.2 or greater"
40952 #endif
40953
40954 ;
40955 return 0;
40956}
40957_ACEOF
40958rm -f conftest.$ac_objext
40959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40960 (eval $ac_compile) 2>conftest.er1
bea8e651 40961 ac_status=$?
ac1cb8d3
VS
40962 grep -v '^ *+' conftest.er1 >conftest.err
40963 rm -f conftest.er1
40964 cat conftest.err >&5
bea8e651
MB
40965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40966 (exit $ac_status); } &&
ea7db9ff
DE
40967 { ac_try='test -z "$ac_c_werror_flag"
40968 || test ! -s conftest.err'
ac1cb8d3
VS
40969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40970 (eval $ac_try) 2>&5
40971 ac_status=$?
40972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40973 (exit $ac_status); }; } &&
40974 { ac_try='test -s conftest.$ac_objext'
bea8e651
MB
40975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40976 (eval $ac_try) 2>&5
40977 ac_status=$?
40978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40979 (exit $ac_status); }; }; then
74b84332 40980 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
bea8e651
MB
40981 echo "$as_me:$LINENO: result: yes" >&5
40982echo "${ECHO_T}yes" >&6
40983else
40984 echo "$as_me: failed program was:" >&5
40985sed 's/^/| /' conftest.$ac_ext >&5
40986
40987echo "$as_me:$LINENO: result: no" >&5
40988echo "${ECHO_T}no" >&6
40989fi
ac1cb8d3 40990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bea8e651
MB
40991 fi
40992 ;;
a848cd7e
SC
40993 esac
40994fi
74b84332 40995CPPFLAGS="$GCC_PRAGMA_FLAGS $CPPFLAGS"
a848cd7e
SC
40996
40997
40998SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
40999
41000
41001
41002
41003
41004
41005
41006
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
74b84332 41097
a848cd7e
SC
41098
41099
41100echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
41101echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 41102set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
41103if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
41104 echo $ECHO_N "(cached) $ECHO_C" >&6
41105else
41106 cat >conftest.make <<\_ACEOF
41107all:
41108 @echo 'ac_maketemp="$(MAKE)"'
41109_ACEOF
41110# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
41111eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
41112if test -n "$ac_maketemp"; then
41113 eval ac_cv_prog_make_${ac_make}_set=yes
41114else
41115 eval ac_cv_prog_make_${ac_make}_set=no
41116fi
41117rm -f conftest.make
41118fi
41119if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
41120 echo "$as_me:$LINENO: result: yes" >&5
41121echo "${ECHO_T}yes" >&6
41122 SET_MAKE=
41123else
41124 echo "$as_me:$LINENO: result: no" >&5
41125echo "${ECHO_T}no" >&6
41126 SET_MAKE="MAKE=${MAKE-make}"
41127fi
41128
41129
41130if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
41131 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
41132fi
41133
41134 ac_config_headers="$ac_config_headers setup.h"
41135
41136
8708fa76 41137 ac_config_files="$ac_config_files wx-config wx-config-wrapper version-script Makefile"
a848cd7e
SC
41138
41139
41140 ac_config_commands="$ac_config_commands default"
41141
41142
41143
41144if test "$wxUSE_GUI" = "yes"; then
41145 SUBDIRS="samples demos utils contrib"
41146else SUBDIRS="samples utils"
41147fi
41148
41149
41150
41151# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
41152if test "${with_cppunit_prefix+set}" = set; then
41153 withval="$with_cppunit_prefix"
41154 cppunit_config_prefix="$withval"
41155else
41156 cppunit_config_prefix=""
41157fi;
41158
41159# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
41160if test "${with_cppunit_exec_prefix+set}" = set; then
41161 withval="$with_cppunit_exec_prefix"
41162 cppunit_config_exec_prefix="$withval"
41163else
41164 cppunit_config_exec_prefix=""
41165fi;
41166
41167 if test x$cppunit_config_exec_prefix != x ; then
41168 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
41169 if test x${CPPUNIT_CONFIG+set} != xset ; then
41170 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
41171 fi
41172 fi
41173 if test x$cppunit_config_prefix != x ; then
41174 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
41175 if test x${CPPUNIT_CONFIG+set} != xset ; then
41176 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
41177 fi
41178 fi
41179
41180 # Extract the first word of "cppunit-config", so it can be a program name with args.
41181set dummy cppunit-config; ac_word=$2
41182echo "$as_me:$LINENO: checking for $ac_word" >&5
41183echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41184if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
41185 echo $ECHO_N "(cached) $ECHO_C" >&6
41186else
41187 case $CPPUNIT_CONFIG in
41188 [\\/]* | ?:[\\/]*)
41189 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
41190 ;;
41191 *)
41192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41193for as_dir in $PATH
41194do
41195 IFS=$as_save_IFS
41196 test -z "$as_dir" && as_dir=.
41197 for ac_exec_ext in '' $ac_executable_extensions; do
41198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41199 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41201 break 2
41202 fi
41203done
41204done
41205
41206 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
41207 ;;
41208esac
41209fi
41210CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
41211
41212if test -n "$CPPUNIT_CONFIG"; then
41213 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
41214echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
41215else
41216 echo "$as_me:$LINENO: result: no" >&5
41217echo "${ECHO_T}no" >&6
41218fi
41219
41220 cppunit_version_min=1.8.0
41221
41222 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
41223echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
41224 no_cppunit=""
41225 if test "$CPPUNIT_CONFIG" = "no" ; then
41226 no_cppunit=yes
41227 else
41228 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
41229 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
41230 cppunit_version=`$CPPUNIT_CONFIG --version`
41231
41232 cppunit_major_version=`echo $cppunit_version | \
41233 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41234 cppunit_minor_version=`echo $cppunit_version | \
41235 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41236 cppunit_micro_version=`echo $cppunit_version | \
41237 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41238
41239 cppunit_major_min=`echo $cppunit_version_min | \
41240 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41241 cppunit_minor_min=`echo $cppunit_version_min | \
41242 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41243 cppunit_micro_min=`echo $cppunit_version_min | \
41244 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41245
41246 cppunit_version_proper=`expr \
41247 $cppunit_major_version \> $cppunit_major_min \| \
41248 $cppunit_major_version \= $cppunit_major_min \& \
41249 $cppunit_minor_version \> $cppunit_minor_min \| \
41250 $cppunit_major_version \= $cppunit_major_min \& \
41251 $cppunit_minor_version \= $cppunit_minor_min \& \
41252 $cppunit_micro_version \>= $cppunit_micro_min `
41253
41254 if test "$cppunit_version_proper" = "1" ; then
41255 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
41256echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
41257 else
41258 echo "$as_me:$LINENO: result: no" >&5
41259echo "${ECHO_T}no" >&6
41260 no_cppunit=yes
41261 fi
41262 fi
41263
41264 if test "x$no_cppunit" = x ; then
c2218763 41265 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
41266 else
41267 CPPUNIT_CFLAGS=""
41268 CPPUNIT_LIBS=""
c2218763 41269 :
a848cd7e
SC
41270 fi
41271
41272
41273
41274
41275
41276for subdir in `echo $SUBDIRS`; do
41277 if test -d ${srcdir}/${subdir} ; then
41278 if test "$wxUSE_GUI" = "yes"; then
41279 if test ${subdir} = "samples"; then
41280 makefiles="samples/Makefile.in $makefiles"
41281 for sample in `echo $SAMPLES_SUBDIRS`; do
41282 if test -d $srcdir/samples/$sample; then
41283 makefiles="samples/$sample/Makefile.in $makefiles"
41284 fi
41285 done
41286 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
41287 fi
41288 else if test ${subdir} = "samples"; then
41289 makefiles="samples/Makefile.in samples/console/Makefile.in"
41290 elif test ${subdir} = "utils"; then
41291 makefiles="utils/HelpGen/Makefile.in \
41292 utils/HelpGen/src/Makefile.in \
41293 utils/tex2rtf/Makefile.in \
41294 utils/tex2rtf/src/Makefile.in"
41295 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
41296 fi
41297 fi
41298
41299 for mkin in $makefiles ; do
41300 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
41301 ac_config_files="$ac_config_files $mk"
41302
41303 done
41304 fi
41305done
41306
41307
41308cat >confcache <<\_ACEOF
41309# This file is a shell script that caches the results of configure
41310# tests run on this system so they can be shared between configure
41311# scripts and configure runs, see configure's option --config-cache.
41312# It is not useful on other systems. If it contains results you don't
41313# want to keep, you may remove or edit it.
41314#
41315# config.status only pays attention to the cache file if you give it
41316# the --recheck option to rerun configure.
41317#
41318# `ac_cv_env_foo' variables (set or unset) will be overridden when
41319# loading this file, other *unset* `ac_cv_foo' will be assigned the
41320# following values.
41321
41322_ACEOF
41323
41324# The following way of writing the cache mishandles newlines in values,
41325# but we know of no workaround that is simple, portable, and efficient.
41326# So, don't put newlines in cache variables' values.
41327# Ultrix sh set writes to stderr and can't be redirected directly,
41328# and sets the high bit in the cache file unless we assign to the vars.
41329{
41330 (set) 2>&1 |
41331 case `(ac_space=' '; set | grep ac_space) 2>&1` in
41332 *ac_space=\ *)
41333 # `set' does not quote correctly, so add quotes (double-quote
41334 # substitution turns \\\\ into \\, and sed turns \\ into \).
41335 sed -n \
ac1cb8d3
VS
41336 "s/'/'\\\\''/g;
41337 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
41338 ;;
41339 *)
41340 # `set' quotes correctly as required by POSIX, so do not add quotes.
41341 sed -n \
ac1cb8d3 41342 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
41343 ;;
41344 esac;
41345} |
41346 sed '
41347 t clear
41348 : clear
41349 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41350 t end
41351 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41352 : end' >>confcache
41353if diff $cache_file confcache >/dev/null 2>&1; then :; else
41354 if test -w $cache_file; then
41355 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
41356 cat confcache >$cache_file
41357 else
41358 echo "not updating unwritable cache $cache_file"
41359 fi
41360fi
41361rm -f confcache
41362
41363test "x$prefix" = xNONE && prefix=$ac_default_prefix
41364# Let make expand exec_prefix.
41365test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41366
41367# VPATH may cause trouble with some makes, so we remove $(srcdir),
41368# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
41369# trailing colons and then remove the whole line if VPATH becomes empty
41370# (actually we leave an empty line to preserve line numbers).
41371if test "x$srcdir" = x.; then
ac1cb8d3 41372 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
41373s/:*\$(srcdir):*/:/;
41374s/:*\${srcdir}:*/:/;
41375s/:*@srcdir@:*/:/;
ac1cb8d3 41376s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 41377s/:*$//;
ac1cb8d3 41378s/^[^=]*=[ ]*$//;
a848cd7e
SC
41379}'
41380fi
41381
41382DEFS=-DHAVE_CONFIG_H
41383
41384ac_libobjs=
41385ac_ltlibobjs=
41386for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41387 # 1. Remove the extension, and $U if already installed.
41388 ac_i=`echo "$ac_i" |
ac1cb8d3 41389 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
41390 # 2. Add them.
41391 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
41392 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
41393done
41394LIBOBJS=$ac_libobjs
41395
41396LTLIBOBJS=$ac_ltlibobjs
41397
41398
41399
41400: ${CONFIG_STATUS=./config.status}
41401ac_clean_files_save=$ac_clean_files
41402ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41403{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
41404echo "$as_me: creating $CONFIG_STATUS" >&6;}
41405cat >$CONFIG_STATUS <<_ACEOF
41406#! $SHELL
41407# Generated by $as_me.
41408# Run this file to recreate the current configuration.
41409# Compiler output produced by configure, useful for debugging
41410# configure, is in config.log if it exists.
41411
41412debug=false
41413ac_cs_recheck=false
41414ac_cs_silent=false
41415SHELL=\${CONFIG_SHELL-$SHELL}
41416_ACEOF
41417
41418cat >>$CONFIG_STATUS <<\_ACEOF
41419## --------------------- ##
41420## M4sh Initialization. ##
41421## --------------------- ##
41422
41423# Be Bourne compatible
41424if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
41425 emulate sh
41426 NULLCMD=:
41427 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
41428 # is contrary to our usage. Disable this feature.
41429 alias -g '${1+"$@"}'='"$@"'
41430elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
41431 set -o posix
41432fi
ac1cb8d3 41433DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
41434
41435# Support unset when possible.
ac1cb8d3 41436if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
41437 as_unset=unset
41438else
41439 as_unset=false
41440fi
41441
41442
41443# Work around bugs in pre-3.0 UWIN ksh.
41444$as_unset ENV MAIL MAILPATH
41445PS1='$ '
41446PS2='> '
41447PS4='+ '
41448
41449# NLS nuisances.
41450for as_var in \
41451 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41452 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
41453 LC_TELEPHONE LC_TIME
41454do
ac1cb8d3 41455 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
41456 eval $as_var=C; export $as_var
41457 else
41458 $as_unset $as_var
41459 fi
41460done
41461
41462# Required to use basename.
41463if expr a : '\(a\)' >/dev/null 2>&1; then
41464 as_expr=expr
41465else
41466 as_expr=false
41467fi
41468
41469if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
41470 as_basename=basename
41471else
41472 as_basename=false
41473fi
41474
41475
41476# Name of the executable.
41477as_me=`$as_basename "$0" ||
41478$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41479 X"$0" : 'X\(//\)$' \| \
41480 X"$0" : 'X\(/\)$' \| \
41481 . : '\(.\)' 2>/dev/null ||
41482echo X/"$0" |
41483 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
41484 /^X\/\(\/\/\)$/{ s//\1/; q; }
41485 /^X\/\(\/\).*/{ s//\1/; q; }
41486 s/.*/./; q'`
41487
41488
41489# PATH needs CR, and LINENO needs CR and PATH.
41490# Avoid depending upon Character Ranges.
41491as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41492as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41493as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41494as_cr_digits='0123456789'
41495as_cr_alnum=$as_cr_Letters$as_cr_digits
41496
41497# The user is always right.
41498if test "${PATH_SEPARATOR+set}" != set; then
41499 echo "#! /bin/sh" >conf$$.sh
41500 echo "exit 0" >>conf$$.sh
41501 chmod +x conf$$.sh
41502 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
41503 PATH_SEPARATOR=';'
41504 else
41505 PATH_SEPARATOR=:
41506 fi
41507 rm -f conf$$.sh
41508fi
41509
41510
41511 as_lineno_1=$LINENO
41512 as_lineno_2=$LINENO
41513 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41514 test "x$as_lineno_1" != "x$as_lineno_2" &&
41515 test "x$as_lineno_3" = "x$as_lineno_2" || {
41516 # Find who we are. Look in the path if we contain no path at all
41517 # relative or not.
41518 case $0 in
41519 *[\\/]* ) as_myself=$0 ;;
41520 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41521for as_dir in $PATH
41522do
41523 IFS=$as_save_IFS
41524 test -z "$as_dir" && as_dir=.
41525 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41526done
41527
41528 ;;
41529 esac
41530 # We did not find ourselves, most probably we were run as `sh COMMAND'
41531 # in which case we are not to be found in the path.
41532 if test "x$as_myself" = x; then
41533 as_myself=$0
41534 fi
41535 if test ! -f "$as_myself"; then
41536 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
41537echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
41538 { (exit 1); exit 1; }; }
41539 fi
41540 case $CONFIG_SHELL in
41541 '')
41542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41543for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
41544do
41545 IFS=$as_save_IFS
41546 test -z "$as_dir" && as_dir=.
41547 for as_base in sh bash ksh sh5; do
41548 case $as_dir in
41549 /*)
41550 if ("$as_dir/$as_base" -c '
41551 as_lineno_1=$LINENO
41552 as_lineno_2=$LINENO
41553 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41554 test "x$as_lineno_1" != "x$as_lineno_2" &&
41555 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
41556 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
41557 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
41558 CONFIG_SHELL=$as_dir/$as_base
41559 export CONFIG_SHELL
41560 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
41561 fi;;
41562 esac
41563 done
41564done
41565;;
41566 esac
41567
41568 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
41569 # uniformly replaced by the line number. The first 'sed' inserts a
41570 # line-number line before each line; the second 'sed' does the real
41571 # work. The second script uses 'N' to pair each line-number line
41572 # with the numbered line, and appends trailing '-' during
41573 # substitution so that $LINENO is not a special case at line end.
41574 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
41575 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
41576 sed '=' <$as_myself |
41577 sed '
41578 N
41579 s,$,-,
41580 : loop
41581 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
41582 t loop
41583 s,-$,,
41584 s,^['$as_cr_digits']*\n,,
41585 ' >$as_me.lineno &&
41586 chmod +x $as_me.lineno ||
41587 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
41588echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
41589 { (exit 1); exit 1; }; }
41590
41591 # Don't try to exec as it changes $[0], causing all sort of problems
41592 # (the dirname of $[0] is not the place where we might find the
41593 # original and so on. Autoconf is especially sensible to this).
41594 . ./$as_me.lineno
41595 # Exit status is that of the last command.
41596 exit
41597}
41598
41599
41600case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
41601 *c*,-n*) ECHO_N= ECHO_C='
41602' ECHO_T=' ' ;;
41603 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
41604 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
41605esac
41606
41607if expr a : '\(a\)' >/dev/null 2>&1; then
41608 as_expr=expr
41609else
41610 as_expr=false
41611fi
41612
41613rm -f conf$$ conf$$.exe conf$$.file
41614echo >conf$$.file
41615if ln -s conf$$.file conf$$ 2>/dev/null; then
41616 # We could just check for DJGPP; but this test a) works b) is more generic
41617 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
41618 if test -f conf$$.exe; then
41619 # Don't use ln at all; we don't have any links
41620 as_ln_s='cp -p'
41621 else
41622 as_ln_s='ln -s'
41623 fi
41624elif ln conf$$.file conf$$ 2>/dev/null; then
41625 as_ln_s=ln
41626else
41627 as_ln_s='cp -p'
41628fi
41629rm -f conf$$ conf$$.exe conf$$.file
41630
41631if mkdir -p . 2>/dev/null; then
41632 as_mkdir_p=:
41633else
ac1cb8d3 41634 test -d ./-p && rmdir ./-p
a848cd7e
SC
41635 as_mkdir_p=false
41636fi
41637
41638as_executable_p="test -f"
41639
41640# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 41641as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
41642
41643# Sed expression to map a string onto a valid variable name.
ac1cb8d3 41644as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
41645
41646
41647# IFS
41648# We need space, tab and new line, in precisely that order.
41649as_nl='
41650'
41651IFS=" $as_nl"
41652
41653# CDPATH.
41654$as_unset CDPATH
41655
41656exec 6>&1
41657
41658# Open the log real soon, to keep \$[0] and so on meaningful, and to
41659# report actual input values of CONFIG_FILES etc. instead of their
41660# values after options handling. Logging --version etc. is OK.
41661exec 5>>config.log
41662{
41663 echo
41664 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41665## Running $as_me. ##
41666_ASBOX
41667} >&5
41668cat >&5 <<_CSEOF
41669
77ffb593 41670This file was extended by wxWidgets $as_me 2.5.2, which was
ac1cb8d3 41671generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
41672
41673 CONFIG_FILES = $CONFIG_FILES
41674 CONFIG_HEADERS = $CONFIG_HEADERS
41675 CONFIG_LINKS = $CONFIG_LINKS
41676 CONFIG_COMMANDS = $CONFIG_COMMANDS
41677 $ $0 $@
41678
41679_CSEOF
41680echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
41681echo >&5
41682_ACEOF
41683
41684# Files that config.status was made for.
41685if test -n "$ac_config_files"; then
41686 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
41687fi
41688
41689if test -n "$ac_config_headers"; then
41690 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
41691fi
41692
41693if test -n "$ac_config_links"; then
41694 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
41695fi
41696
41697if test -n "$ac_config_commands"; then
41698 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
41699fi
41700
41701cat >>$CONFIG_STATUS <<\_ACEOF
41702
41703ac_cs_usage="\
41704\`$as_me' instantiates files from templates according to the
41705current configuration.
41706
41707Usage: $0 [OPTIONS] [FILE]...
41708
41709 -h, --help print this help, then exit
41710 -V, --version print version number, then exit
41711 -q, --quiet do not print progress messages
41712 -d, --debug don't remove temporary files
41713 --recheck update $as_me by reconfiguring in the same conditions
41714 --file=FILE[:TEMPLATE]
ac1cb8d3 41715 instantiate the configuration file FILE
a848cd7e 41716 --header=FILE[:TEMPLATE]
ac1cb8d3 41717 instantiate the configuration header FILE
a848cd7e
SC
41718
41719Configuration files:
41720$config_files
41721
41722Configuration headers:
41723$config_headers
41724
41725Configuration commands:
41726$config_commands
41727
41728Report bugs to <bug-autoconf@gnu.org>."
41729_ACEOF
41730
41731cat >>$CONFIG_STATUS <<_ACEOF
41732ac_cs_version="\\
77ffb593 41733wxWidgets config.status 2.5.2
ac1cb8d3 41734configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
41735 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
41736
ac1cb8d3 41737Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
41738This config.status script is free software; the Free Software Foundation
41739gives unlimited permission to copy, distribute and modify it."
41740srcdir=$srcdir
41741INSTALL="$INSTALL"
41742_ACEOF
41743
41744cat >>$CONFIG_STATUS <<\_ACEOF
41745# If no file are specified by the user, then we need to provide default
41746# value. By we need to know if files were specified by the user.
41747ac_need_defaults=:
41748while test $# != 0
41749do
41750 case $1 in
41751 --*=*)
41752 ac_option=`expr "x$1" : 'x\([^=]*\)='`
41753 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
41754 ac_shift=:
41755 ;;
41756 -*)
41757 ac_option=$1
41758 ac_optarg=$2
41759 ac_shift=shift
41760 ;;
41761 *) # This is not an option, so the user has probably given explicit
41762 # arguments.
41763 ac_option=$1
41764 ac_need_defaults=false;;
41765 esac
41766
41767 case $ac_option in
41768 # Handling of the options.
41769_ACEOF
41770cat >>$CONFIG_STATUS <<\_ACEOF
41771 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41772 ac_cs_recheck=: ;;
41773 --version | --vers* | -V )
41774 echo "$ac_cs_version"; exit 0 ;;
41775 --he | --h)
41776 # Conflict between --help and --header
41777 { { echo "$as_me:$LINENO: error: ambiguous option: $1
41778Try \`$0 --help' for more information." >&5
41779echo "$as_me: error: ambiguous option: $1
41780Try \`$0 --help' for more information." >&2;}
41781 { (exit 1); exit 1; }; };;
41782 --help | --hel | -h )
41783 echo "$ac_cs_usage"; exit 0 ;;
41784 --debug | --d* | -d )
41785 debug=: ;;
41786 --file | --fil | --fi | --f )
41787 $ac_shift
41788 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
41789 ac_need_defaults=false;;
41790 --header | --heade | --head | --hea )
41791 $ac_shift
41792 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
41793 ac_need_defaults=false;;
41794 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41795 | -silent | --silent | --silen | --sile | --sil | --si | --s)
41796 ac_cs_silent=: ;;
41797
41798 # This is an error.
41799 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
41800Try \`$0 --help' for more information." >&5
41801echo "$as_me: error: unrecognized option: $1
41802Try \`$0 --help' for more information." >&2;}
41803 { (exit 1); exit 1; }; } ;;
41804
41805 *) ac_config_targets="$ac_config_targets $1" ;;
41806
41807 esac
41808 shift
41809done
41810
41811ac_configure_extra_args=
41812
41813if $ac_cs_silent; then
41814 exec 6>/dev/null
41815 ac_configure_extra_args="$ac_configure_extra_args --silent"
41816fi
41817
41818_ACEOF
41819cat >>$CONFIG_STATUS <<_ACEOF
41820if \$ac_cs_recheck; then
41821 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
41822 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41823fi
41824
41825_ACEOF
41826
41827cat >>$CONFIG_STATUS <<_ACEOF
41828#
41829# INIT-COMMANDS section.
41830#
41831
41832
41833 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
48112931 41834 WXCONFIG_DATA_FILE="${WXCONFIG_DATA_FILE}"
4b167aca 41835 WX_RELEASE="${WX_RELEASE}"
a848cd7e
SC
41836 LN_S="${LN_S}"
41837
41838
41839
41840_ACEOF
41841
41842
41843
41844cat >>$CONFIG_STATUS <<\_ACEOF
41845for ac_config_target in $ac_config_targets
41846do
41847 case "$ac_config_target" in
41848 # Handling of arguments.
41849 "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
8708fa76 41850 "wx-config-wrapper" ) CONFIG_FILES="$CONFIG_FILES wx-config-wrapper" ;;
a848cd7e
SC
41851 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
41852 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
41853 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
41854 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
41855 "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;;
41856 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
41857echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
41858 { (exit 1); exit 1; }; };;
41859 esac
41860done
41861
41862# If the user did not use the arguments to specify the items to instantiate,
41863# then the envvar interface is used. Set only those that are not.
41864# We use the long form for the default assignment because of an extremely
41865# bizarre bug on SunOS 4.1.3.
41866if $ac_need_defaults; then
41867 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
41868 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
41869 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
41870fi
41871
41872# Have a temporary directory for convenience. Make it in the build tree
41873# simply because there is no reason to put it here, and in addition,
41874# creating and moving files from /tmp can sometimes cause problems.
41875# Create a temporary directory, and hook for its removal unless debugging.
41876$debug ||
41877{
41878 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
41879 trap '{ (exit 1); exit 1; }' 1 2 13 15
41880}
41881
41882# Create a (secure) tmp directory for tmp files.
41883
41884{
41885 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
41886 test -n "$tmp" && test -d "$tmp"
41887} ||
41888{
41889 tmp=./confstat$$-$RANDOM
41890 (umask 077 && mkdir $tmp)
41891} ||
41892{
41893 echo "$me: cannot create a temporary directory in ." >&2
41894 { (exit 1); exit 1; }
41895}
41896
41897_ACEOF
41898
41899cat >>$CONFIG_STATUS <<_ACEOF
41900
41901#
41902# CONFIG_FILES section.
41903#
41904
41905# No need to generate the scripts if there are no CONFIG_FILES.
41906# This happens for instance when ./config.status config.h
41907if test -n "\$CONFIG_FILES"; then
41908 # Protect against being on the right side of a sed subst in config.status.
41909 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
41910 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
41911s,@SHELL@,$SHELL,;t t
41912s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
41913s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
41914s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
41915s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
41916s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
41917s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
41918s,@exec_prefix@,$exec_prefix,;t t
41919s,@prefix@,$prefix,;t t
41920s,@program_transform_name@,$program_transform_name,;t t
41921s,@bindir@,$bindir,;t t
41922s,@sbindir@,$sbindir,;t t
41923s,@libexecdir@,$libexecdir,;t t
41924s,@datadir@,$datadir,;t t
41925s,@sysconfdir@,$sysconfdir,;t t
41926s,@sharedstatedir@,$sharedstatedir,;t t
41927s,@localstatedir@,$localstatedir,;t t
41928s,@libdir@,$libdir,;t t
41929s,@includedir@,$includedir,;t t
41930s,@oldincludedir@,$oldincludedir,;t t
41931s,@infodir@,$infodir,;t t
41932s,@mandir@,$mandir,;t t
41933s,@build_alias@,$build_alias,;t t
41934s,@host_alias@,$host_alias,;t t
41935s,@target_alias@,$target_alias,;t t
41936s,@DEFS@,$DEFS,;t t
41937s,@ECHO_C@,$ECHO_C,;t t
41938s,@ECHO_N@,$ECHO_N,;t t
41939s,@ECHO_T@,$ECHO_T,;t t
41940s,@LIBS@,$LIBS,;t t
41941s,@build@,$build,;t t
41942s,@build_cpu@,$build_cpu,;t t
41943s,@build_vendor@,$build_vendor,;t t
41944s,@build_os@,$build_os,;t t
41945s,@host@,$host,;t t
41946s,@host_cpu@,$host_cpu,;t t
41947s,@host_vendor@,$host_vendor,;t t
41948s,@host_os@,$host_os,;t t
41949s,@target@,$target,;t t
41950s,@target_cpu@,$target_cpu,;t t
41951s,@target_vendor@,$target_vendor,;t t
41952s,@target_os@,$target_os,;t t
41953s,@CC@,$CC,;t t
41954s,@CFLAGS@,$CFLAGS,;t t
41955s,@LDFLAGS@,$LDFLAGS,;t t
41956s,@CPPFLAGS@,$CPPFLAGS,;t t
41957s,@ac_ct_CC@,$ac_ct_CC,;t t
41958s,@EXEEXT@,$EXEEXT,;t t
41959s,@OBJEXT@,$OBJEXT,;t t
41960s,@CPP@,$CPP,;t t
41961s,@EGREP@,$EGREP,;t t
41962s,@CXX@,$CXX,;t t
41963s,@CXXFLAGS@,$CXXFLAGS,;t t
41964s,@ac_ct_CXX@,$ac_ct_CXX,;t t
41965s,@RANLIB@,$RANLIB,;t t
41966s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
41967s,@AR@,$AR,;t t
41968s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
41969s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
41970s,@INSTALL_DATA@,$INSTALL_DATA,;t t
41971s,@STRIP@,$STRIP,;t t
41972s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
41973s,@LN_S@,$LN_S,;t t
41974s,@CXXCPP@,$CXXCPP,;t t
41975s,@subdirs@,$subdirs,;t t
41976s,@PKG_CONFIG@,$PKG_CONFIG,;t t
41977s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
41978s,@GTK_LIBS@,$GTK_LIBS,;t t
41979s,@GTK_CONFIG@,$GTK_CONFIG,;t t
41980s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
41981s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
41982s,@X_CFLAGS@,$X_CFLAGS,;t t
41983s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
41984s,@X_LIBS@,$X_LIBS,;t t
41985s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
41986s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
41987s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
41988s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
41989s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
41990s,@RESCOMP@,$RESCOMP,;t t
41991s,@DEREZ@,$DEREZ,;t t
41992s,@SETFILE@,$SETFILE,;t t
41993s,@LIBICONV@,$LIBICONV,;t t
41994s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
41995s,@SDL_CONFIG@,$SDL_CONFIG,;t t
41996s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
41997s,@SDL_LIBS@,$SDL_LIBS,;t t
41998s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
41999s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
42000s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
42001s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
42002s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
42003s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
42004s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
42005s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
42006s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
42007s,@VENDOR@,$VENDOR,;t t
42008s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
42009s,@WXUNIV@,$WXUNIV,;t t
42010s,@MONOLITHIC@,$MONOLITHIC,;t t
42011s,@USE_PLUGINS@,$USE_PLUGINS,;t t
42012s,@EXTRALIBS@,$EXTRALIBS,;t t
42013s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
42014s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
42015s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
42016s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
42017s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
42018s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
42019s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
42020s,@UNICODE@,$UNICODE,;t t
42021s,@BUILD@,$BUILD,;t t
42022s,@DEBUG_INFO@,$DEBUG_INFO,;t t
42023s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
42024s,@SHARED@,$SHARED,;t t
42025s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
42026s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
42027s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
42028s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
42029s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
42030s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
42031s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
42032s,@SET_MAKE@,$SET_MAKE,;t t
42033s,@MAKE_SET@,$MAKE_SET,;t t
42034s,@ac_ct_AR@,$ac_ct_AR,;t t
42035s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
42036s,@NM@,$NM,;t t
42037s,@ac_ct_NM@,$ac_ct_NM,;t t
42038s,@INSTALL_DIR@,$INSTALL_DIR,;t t
42039s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
42040s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
42041s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
42042s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
42043s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
42044s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
42045s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
42046s,@SO_SUFFIX@,$SO_SUFFIX,;t t
42047s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
42048s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
42049s,@LIBPREFIX@,$LIBPREFIX,;t t
42050s,@LIBEXT@,$LIBEXT,;t t
42051s,@DLLPREFIX@,$DLLPREFIX,;t t
42052s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
42053s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
42054s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
42055s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
42056s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
42057s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
42058s,@PIC_FLAG@,$PIC_FLAG,;t t
42059s,@USE_SOVERSION@,$USE_SOVERSION,;t t
42060s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
42061s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
42062s,@USE_MACVERSION@,$USE_MACVERSION,;t t
42063s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
42064s,@SONAME_FLAG@,$SONAME_FLAG,;t t
42065s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
42066s,@GCC_PCH@,$GCC_PCH,;t t
42067s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
42068s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
42069s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
42070s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
42071s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
42072s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
42073s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
42074s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
42075s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
42076s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
42077s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
42078s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
42079s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
42080s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
42081s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
42082s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
42083s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
42084s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
42085s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1,;t t
42086s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
42087s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
42088s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
42089s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
42090s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1,;t t
42091s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
42092s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
42093s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
42094s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
42095s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
42096s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
42097s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
42098s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
42099s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
42100s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
42101s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
42102s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
42103s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
ebee3cd0
VS
42104s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
42105s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
42106s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
42107s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
42108s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
42109s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
42110s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
42111s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
42112s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
42113s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
42114s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
42115s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
42116s,@COND_SHARED_0@,$COND_SHARED_0,;t t
42117s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
42118s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
42119s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
42120s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
42121s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
42122s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
42123s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
42124s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
42125s,@COND_SHARED_1@,$COND_SHARED_1,;t t
42126s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
42127s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
42128s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
42129s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
42130s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
42131s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
42132s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
42133s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
42134s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
42135s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
42136s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
42137s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
42138s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
42139s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
42140s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
42141s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
42142s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
42143s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
42144s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
42145s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
42146s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
42147s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
42148s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
42149s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
42150s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
42151s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
42152s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
42153s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
42154s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
42155s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
42156s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
42157s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
42158s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
42159s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
42160s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
a848cd7e
SC
42161s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
42162s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
42163s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
42164s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
42165s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
42166s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
a848cd7e
SC
42167s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
42168s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
42169s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
42170s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
42171s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
42172s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
42173s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
42174s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
a0f9686d
VS
42175s,@COND_TOOLKIT_MAC_WXUNIV_0@,$COND_TOOLKIT_MAC_WXUNIV_0,;t t
42176s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
42177s,@COND_TOOLKIT_PM_WXUNIV_0@,$COND_TOOLKIT_PM_WXUNIV_0,;t t
42178s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
a848cd7e
SC
42179s,@PATH_IFS@,$PATH_IFS,;t t
42180s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
42181s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
42182s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
224bf05c 42183s,@WX_SUBRELEASE_NUMBER@,$WX_SUBRELEASE_NUMBER,;t t
a848cd7e
SC
42184s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
42185s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
42186s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
42187s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
42188s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t
42189s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
42190s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
42191s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
42192s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
42193s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
42194s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
42195s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
42196s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
42197s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
42198s,@WX_ALL@,$WX_ALL,;t t
42199s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
42200s,@SHARED_LD@,$SHARED_LD,;t t
42201s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
42202s,@STATIC_FLAG@,$STATIC_FLAG,;t t
42203s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
42204s,@USE_GUI@,$USE_GUI,;t t
42205s,@AFMINSTALL@,$AFMINSTALL,;t t
42206s,@WIN32INSTALL@,$WIN32INSTALL,;t t
42207s,@TOOLKIT@,$TOOLKIT,;t t
42208s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
42209s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t
42210s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
42211s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
42212s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
42213s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t
42214s,@cross_compiling@,$cross_compiling,;t t
42215s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
42216s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
42217s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t
42218s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t
42219s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t
42220s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
42221s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
42222s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
48112931 42223s,@WXCONFIG_DATA_FILE@,$WXCONFIG_DATA_FILE,;t t
a848cd7e 42224s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
74b84332 42225s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
42226s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
42227s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
42228s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
42229s,@ALL_HEADERS@,$ALL_HEADERS,;t t
42230s,@ALL_SOURCES@,$ALL_SOURCES,;t t
42231s,@GUIDIST@,$GUIDIST,;t t
42232s,@PORT_FILES@,$PORT_FILES,;t t
42233s,@DISTDIR@,$DISTDIR,;t t
42234s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
42235s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
42236s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t
42237s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t
42238s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
42239s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
42240s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
42241s,@RESFLAGS@,$RESFLAGS,;t t
42242s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
42243s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
42244s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
42245s,@LIBWXMACRES@,$LIBWXMACRES,;t t
42246s,@MACRESCOMP@,$MACRESCOMP,;t t
42247s,@MACSETFILE@,$MACSETFILE,;t t
42248s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
42249s,@GCC@,$GCC,;t t
a848cd7e
SC
42250s,@DLLTOOL@,$DLLTOOL,;t t
42251s,@AS@,$AS,;t t
42252s,@LD@,$LD,;t t
42253s,@MAKEINFO@,$MAKEINFO,;t t
42254s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t
42255s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
42256s,@LIBOBJS@,$LIBOBJS,;t t
42257s,@LTLIBOBJS@,$LTLIBOBJS,;t t
42258CEOF
42259
42260_ACEOF
42261
42262 cat >>$CONFIG_STATUS <<\_ACEOF
42263 # Split the substitutions into bite-sized pieces for seds with
42264 # small command number limits, like on Digital OSF/1 and HP-UX.
42265 ac_max_sed_lines=48
42266 ac_sed_frag=1 # Number of current file.
42267 ac_beg=1 # First line for current file.
42268 ac_end=$ac_max_sed_lines # Line after last line for current file.
42269 ac_more_lines=:
42270 ac_sed_cmds=
42271 while $ac_more_lines; do
42272 if test $ac_beg -gt 1; then
42273 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
42274 else
42275 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
42276 fi
42277 if test ! -s $tmp/subs.frag; then
42278 ac_more_lines=false
42279 else
42280 # The purpose of the label and of the branching condition is to
42281 # speed up the sed processing (if there are no `@' at all, there
42282 # is no need to browse any of the substitutions).
42283 # These are the two extra sed commands mentioned above.
42284 (echo ':t
42285 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
42286 if test -z "$ac_sed_cmds"; then
ac1cb8d3 42287 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 42288 else
ac1cb8d3 42289 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
42290 fi
42291 ac_sed_frag=`expr $ac_sed_frag + 1`
42292 ac_beg=$ac_end
42293 ac_end=`expr $ac_end + $ac_max_sed_lines`
42294 fi
42295 done
42296 if test -z "$ac_sed_cmds"; then
42297 ac_sed_cmds=cat
42298 fi
42299fi # test -n "$CONFIG_FILES"
42300
42301_ACEOF
42302cat >>$CONFIG_STATUS <<\_ACEOF
42303for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
42304 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42305 case $ac_file in
42306 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
42307 cat >$tmp/stdin
42308 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42309 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 42310 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 42311 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
42312 * ) ac_file_in=$ac_file.in ;;
42313 esac
42314
42315 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
42316 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42317$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42318 X"$ac_file" : 'X\(//\)[^/]' \| \
42319 X"$ac_file" : 'X\(//\)$' \| \
42320 X"$ac_file" : 'X\(/\)' \| \
42321 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42322echo X"$ac_file" |
42323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42324 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42325 /^X\(\/\/\)$/{ s//\1/; q; }
42326 /^X\(\/\).*/{ s//\1/; q; }
42327 s/.*/./; q'`
42328 { if $as_mkdir_p; then
42329 mkdir -p "$ac_dir"
42330 else
42331 as_dir="$ac_dir"
42332 as_dirs=
42333 while test ! -d "$as_dir"; do
42334 as_dirs="$as_dir $as_dirs"
42335 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42336$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42337 X"$as_dir" : 'X\(//\)[^/]' \| \
42338 X"$as_dir" : 'X\(//\)$' \| \
42339 X"$as_dir" : 'X\(/\)' \| \
42340 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42341echo X"$as_dir" |
42342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42343 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42344 /^X\(\/\/\)$/{ s//\1/; q; }
42345 /^X\(\/\).*/{ s//\1/; q; }
42346 s/.*/./; q'`
42347 done
42348 test ! -n "$as_dirs" || mkdir $as_dirs
42349 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42350echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42351 { (exit 1); exit 1; }; }; }
42352
42353 ac_builddir=.
42354
42355if test "$ac_dir" != .; then
42356 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42357 # A "../" for each directory in $ac_dir_suffix.
42358 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42359else
42360 ac_dir_suffix= ac_top_builddir=
42361fi
42362
42363case $srcdir in
42364 .) # No --srcdir option. We are building in place.
42365 ac_srcdir=.
42366 if test -z "$ac_top_builddir"; then
42367 ac_top_srcdir=.
42368 else
42369 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42370 fi ;;
42371 [\\/]* | ?:[\\/]* ) # Absolute path.
42372 ac_srcdir=$srcdir$ac_dir_suffix;
42373 ac_top_srcdir=$srcdir ;;
42374 *) # Relative path.
42375 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42376 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42377esac
ac1cb8d3
VS
42378
42379# Do not use `cd foo && pwd` to compute absolute paths, because
42380# the directories may not exist.
42381case `pwd` in
42382.) ac_abs_builddir="$ac_dir";;
42383*)
42384 case "$ac_dir" in
42385 .) ac_abs_builddir=`pwd`;;
42386 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42387 *) ac_abs_builddir=`pwd`/"$ac_dir";;
42388 esac;;
42389esac
42390case $ac_abs_builddir in
42391.) ac_abs_top_builddir=${ac_top_builddir}.;;
42392*)
42393 case ${ac_top_builddir}. in
42394 .) ac_abs_top_builddir=$ac_abs_builddir;;
42395 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42396 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42397 esac;;
42398esac
42399case $ac_abs_builddir in
42400.) ac_abs_srcdir=$ac_srcdir;;
42401*)
42402 case $ac_srcdir in
42403 .) ac_abs_srcdir=$ac_abs_builddir;;
42404 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42405 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42406 esac;;
42407esac
42408case $ac_abs_builddir in
42409.) ac_abs_top_srcdir=$ac_top_srcdir;;
42410*)
42411 case $ac_top_srcdir in
42412 .) ac_abs_top_srcdir=$ac_abs_builddir;;
42413 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42414 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42415 esac;;
42416esac
a848cd7e
SC
42417
42418
42419 case $INSTALL in
42420 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
42421 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
42422 esac
42423
ea7db9ff
DE
42424 if test x"$ac_file" != x-; then
42425 { echo "$as_me:$LINENO: creating $ac_file" >&5
42426echo "$as_me: creating $ac_file" >&6;}
42427 rm -f "$ac_file"
42428 fi
a848cd7e
SC
42429 # Let's still pretend it is `configure' which instantiates (i.e., don't
42430 # use $as_me), people would be surprised to read:
42431 # /* config.h. Generated by config.status. */
42432 if test x"$ac_file" = x-; then
42433 configure_input=
42434 else
42435 configure_input="$ac_file. "
42436 fi
42437 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 42438 sed 's,.*/,,'` by configure."
a848cd7e
SC
42439
42440 # First look for the input files in the build tree, otherwise in the
42441 # src tree.
42442 ac_file_inputs=`IFS=:
42443 for f in $ac_file_in; do
42444 case $f in
42445 -) echo $tmp/stdin ;;
42446 [\\/$]*)
ac1cb8d3
VS
42447 # Absolute (can't be DOS-style, as IFS=:)
42448 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42449echo "$as_me: error: cannot find input file: $f" >&2;}
42450 { (exit 1); exit 1; }; }
ac1cb8d3 42451 echo "$f";;
a848cd7e 42452 *) # Relative
ac1cb8d3
VS
42453 if test -f "$f"; then
42454 # Build tree
42455 echo "$f"
42456 elif test -f "$srcdir/$f"; then
42457 # Source tree
42458 echo "$srcdir/$f"
42459 else
42460 # /dev/null tree
42461 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42462echo "$as_me: error: cannot find input file: $f" >&2;}
42463 { (exit 1); exit 1; }; }
ac1cb8d3 42464 fi;;
a848cd7e
SC
42465 esac
42466 done` || { (exit 1); exit 1; }
42467_ACEOF
42468cat >>$CONFIG_STATUS <<_ACEOF
42469 sed "$ac_vpsub
42470$extrasub
42471_ACEOF
42472cat >>$CONFIG_STATUS <<\_ACEOF
42473:t
42474/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42475s,@configure_input@,$configure_input,;t t
42476s,@srcdir@,$ac_srcdir,;t t
42477s,@abs_srcdir@,$ac_abs_srcdir,;t t
42478s,@top_srcdir@,$ac_top_srcdir,;t t
42479s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
42480s,@builddir@,$ac_builddir,;t t
42481s,@abs_builddir@,$ac_abs_builddir,;t t
42482s,@top_builddir@,$ac_top_builddir,;t t
42483s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
42484s,@INSTALL@,$ac_INSTALL,;t t
42485" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
42486 rm -f $tmp/stdin
42487 if test x"$ac_file" != x-; then
42488 mv $tmp/out $ac_file
42489 else
42490 cat $tmp/out
42491 rm -f $tmp/out
42492 fi
42493
42494done
42495_ACEOF
42496cat >>$CONFIG_STATUS <<\_ACEOF
42497
42498#
42499# CONFIG_HEADER section.
42500#
42501
42502# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
42503# NAME is the cpp macro being defined and VALUE is the value it is being given.
42504#
42505# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
42506ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
42507ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
42508ac_dC=' '
42509ac_dD=',;t'
42510# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 42511ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
42512ac_uB='$,\1#\2define\3'
42513ac_uC=' '
42514ac_uD=',;t'
42515
42516for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
42517 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42518 case $ac_file in
42519 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
42520 cat >$tmp/stdin
42521 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42522 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 42523 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 42524 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
42525 * ) ac_file_in=$ac_file.in ;;
42526 esac
42527
42528 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
42529echo "$as_me: creating $ac_file" >&6;}
42530
42531 # First look for the input files in the build tree, otherwise in the
42532 # src tree.
42533 ac_file_inputs=`IFS=:
42534 for f in $ac_file_in; do
42535 case $f in
42536 -) echo $tmp/stdin ;;
42537 [\\/$]*)
ac1cb8d3
VS
42538 # Absolute (can't be DOS-style, as IFS=:)
42539 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42540echo "$as_me: error: cannot find input file: $f" >&2;}
42541 { (exit 1); exit 1; }; }
ac1cb8d3
VS
42542 # Do quote $f, to prevent DOS paths from being IFS'd.
42543 echo "$f";;
a848cd7e 42544 *) # Relative
ac1cb8d3
VS
42545 if test -f "$f"; then
42546 # Build tree
42547 echo "$f"
42548 elif test -f "$srcdir/$f"; then
42549 # Source tree
42550 echo "$srcdir/$f"
42551 else
42552 # /dev/null tree
42553 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42554echo "$as_me: error: cannot find input file: $f" >&2;}
42555 { (exit 1); exit 1; }; }
ac1cb8d3 42556 fi;;
a848cd7e
SC
42557 esac
42558 done` || { (exit 1); exit 1; }
42559 # Remove the trailing spaces.
ac1cb8d3 42560 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
42561
42562_ACEOF
42563
42564# Transform confdefs.h into two sed scripts, `conftest.defines' and
42565# `conftest.undefs', that substitutes the proper values into
42566# config.h.in to produce config.h. The first handles `#define'
42567# templates, and the second `#undef' templates.
42568# And first: Protect against being on the right side of a sed subst in
42569# config.status. Protect against being in an unquoted here document
42570# in config.status.
42571rm -f conftest.defines conftest.undefs
42572# Using a here document instead of a string reduces the quoting nightmare.
42573# Putting comments in sed scripts is not portable.
42574#
42575# `end' is used to avoid that the second main sed command (meant for
42576# 0-ary CPP macros) applies to n-ary macro definitions.
42577# See the Autoconf documentation for `clear'.
42578cat >confdef2sed.sed <<\_ACEOF
42579s/[\\&,]/\\&/g
42580s,[\\$`],\\&,g
42581t clear
42582: clear
ac1cb8d3 42583s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 42584t end
ac1cb8d3 42585s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
42586: end
42587_ACEOF
42588# If some macros were called several times there might be several times
42589# the same #defines, which is useless. Nevertheless, we may not want to
42590# sort them, since we want the *last* AC-DEFINE to be honored.
42591uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
42592sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
42593rm -f confdef2sed.sed
42594
42595# This sed command replaces #undef with comments. This is necessary, for
42596# example, in the case of _POSIX_SOURCE, which is predefined and required
42597# on some systems where configure will not decide to define it.
42598cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 42599s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
42600_ACEOF
42601
42602# Break up conftest.defines because some shells have a limit on the size
42603# of here documents, and old seds have small limits too (100 cmds).
42604echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 42605echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
42606echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
42607echo ' :' >>$CONFIG_STATUS
42608rm -f conftest.tail
42609while grep . conftest.defines >/dev/null
42610do
42611 # Write a limited-size here document to $tmp/defines.sed.
42612 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
42613 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 42614 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
42615 # Work around the forget-to-reset-the-flag bug.
42616 echo 't clr' >>$CONFIG_STATUS
42617 echo ': clr' >>$CONFIG_STATUS
42618 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
42619 echo 'CEOF
42620 sed -f $tmp/defines.sed $tmp/in >$tmp/out
42621 rm -f $tmp/in
42622 mv $tmp/out $tmp/in
42623' >>$CONFIG_STATUS
42624 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
42625 rm -f conftest.defines
42626 mv conftest.tail conftest.defines
42627done
42628rm -f conftest.defines
42629echo ' fi # grep' >>$CONFIG_STATUS
42630echo >>$CONFIG_STATUS
42631
42632# Break up conftest.undefs because some shells have a limit on the size
42633# of here documents, and old seds have small limits too (100 cmds).
42634echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
42635rm -f conftest.tail
42636while grep . conftest.undefs >/dev/null
42637do
42638 # Write a limited-size here document to $tmp/undefs.sed.
42639 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
42640 # Speed up: don't consider the non `#undef'
ac1cb8d3 42641 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
42642 # Work around the forget-to-reset-the-flag bug.
42643 echo 't clr' >>$CONFIG_STATUS
42644 echo ': clr' >>$CONFIG_STATUS
42645 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
42646 echo 'CEOF
42647 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
42648 rm -f $tmp/in
42649 mv $tmp/out $tmp/in
42650' >>$CONFIG_STATUS
42651 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
42652 rm -f conftest.undefs
42653 mv conftest.tail conftest.undefs
42654done
42655rm -f conftest.undefs
42656
42657cat >>$CONFIG_STATUS <<\_ACEOF
42658 # Let's still pretend it is `configure' which instantiates (i.e., don't
42659 # use $as_me), people would be surprised to read:
42660 # /* config.h. Generated by config.status. */
42661 if test x"$ac_file" = x-; then
42662 echo "/* Generated by configure. */" >$tmp/config.h
42663 else
42664 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
42665 fi
42666 cat $tmp/in >>$tmp/config.h
42667 rm -f $tmp/in
42668 if test x"$ac_file" != x-; then
42669 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
42670 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
42671echo "$as_me: $ac_file is unchanged" >&6;}
42672 else
42673 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42674$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42675 X"$ac_file" : 'X\(//\)[^/]' \| \
42676 X"$ac_file" : 'X\(//\)$' \| \
42677 X"$ac_file" : 'X\(/\)' \| \
42678 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42679echo X"$ac_file" |
42680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42681 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42682 /^X\(\/\/\)$/{ s//\1/; q; }
42683 /^X\(\/\).*/{ s//\1/; q; }
42684 s/.*/./; q'`
42685 { if $as_mkdir_p; then
42686 mkdir -p "$ac_dir"
42687 else
42688 as_dir="$ac_dir"
42689 as_dirs=
42690 while test ! -d "$as_dir"; do
42691 as_dirs="$as_dir $as_dirs"
42692 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42693$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42694 X"$as_dir" : 'X\(//\)[^/]' \| \
42695 X"$as_dir" : 'X\(//\)$' \| \
42696 X"$as_dir" : 'X\(/\)' \| \
42697 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42698echo X"$as_dir" |
42699 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42700 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42701 /^X\(\/\/\)$/{ s//\1/; q; }
42702 /^X\(\/\).*/{ s//\1/; q; }
42703 s/.*/./; q'`
42704 done
42705 test ! -n "$as_dirs" || mkdir $as_dirs
42706 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42707echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42708 { (exit 1); exit 1; }; }; }
42709
42710 rm -f $ac_file
42711 mv $tmp/config.h $ac_file
42712 fi
42713 else
42714 cat $tmp/config.h
42715 rm -f $tmp/config.h
42716 fi
42717done
42718_ACEOF
42719cat >>$CONFIG_STATUS <<\_ACEOF
42720
42721#
42722# CONFIG_COMMANDS section.
42723#
42724for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
42725 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
42726 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
42727 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
42728$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42729 X"$ac_dest" : 'X\(//\)[^/]' \| \
42730 X"$ac_dest" : 'X\(//\)$' \| \
42731 X"$ac_dest" : 'X\(/\)' \| \
42732 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42733echo X"$ac_dest" |
42734 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42735 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42736 /^X\(\/\/\)$/{ s//\1/; q; }
42737 /^X\(\/\).*/{ s//\1/; q; }
42738 s/.*/./; q'`
ac1cb8d3
VS
42739 { if $as_mkdir_p; then
42740 mkdir -p "$ac_dir"
42741 else
42742 as_dir="$ac_dir"
42743 as_dirs=
42744 while test ! -d "$as_dir"; do
42745 as_dirs="$as_dir $as_dirs"
42746 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42747$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42748 X"$as_dir" : 'X\(//\)[^/]' \| \
42749 X"$as_dir" : 'X\(//\)$' \| \
42750 X"$as_dir" : 'X\(/\)' \| \
42751 . : '\(.\)' 2>/dev/null ||
42752echo X"$as_dir" |
42753 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42754 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42755 /^X\(\/\/\)$/{ s//\1/; q; }
42756 /^X\(\/\).*/{ s//\1/; q; }
42757 s/.*/./; q'`
42758 done
42759 test ! -n "$as_dirs" || mkdir $as_dirs
42760 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42761echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42762 { (exit 1); exit 1; }; }; }
42763
a848cd7e
SC
42764 ac_builddir=.
42765
42766if test "$ac_dir" != .; then
42767 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42768 # A "../" for each directory in $ac_dir_suffix.
42769 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42770else
42771 ac_dir_suffix= ac_top_builddir=
42772fi
42773
42774case $srcdir in
42775 .) # No --srcdir option. We are building in place.
42776 ac_srcdir=.
42777 if test -z "$ac_top_builddir"; then
42778 ac_top_srcdir=.
42779 else
42780 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42781 fi ;;
42782 [\\/]* | ?:[\\/]* ) # Absolute path.
42783 ac_srcdir=$srcdir$ac_dir_suffix;
42784 ac_top_srcdir=$srcdir ;;
42785 *) # Relative path.
42786 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42787 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42788esac
ac1cb8d3
VS
42789
42790# Do not use `cd foo && pwd` to compute absolute paths, because
42791# the directories may not exist.
42792case `pwd` in
42793.) ac_abs_builddir="$ac_dir";;
42794*)
42795 case "$ac_dir" in
42796 .) ac_abs_builddir=`pwd`;;
42797 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42798 *) ac_abs_builddir=`pwd`/"$ac_dir";;
42799 esac;;
42800esac
42801case $ac_abs_builddir in
42802.) ac_abs_top_builddir=${ac_top_builddir}.;;
42803*)
42804 case ${ac_top_builddir}. in
42805 .) ac_abs_top_builddir=$ac_abs_builddir;;
42806 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42807 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42808 esac;;
42809esac
42810case $ac_abs_builddir in
42811.) ac_abs_srcdir=$ac_srcdir;;
42812*)
42813 case $ac_srcdir in
42814 .) ac_abs_srcdir=$ac_abs_builddir;;
42815 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42816 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42817 esac;;
42818esac
42819case $ac_abs_builddir in
42820.) ac_abs_top_srcdir=$ac_top_srcdir;;
42821*)
42822 case $ac_top_srcdir in
42823 .) ac_abs_top_srcdir=$ac_abs_builddir;;
42824 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42825 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42826 esac;;
42827esac
a848cd7e
SC
42828
42829
42830 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
42831echo "$as_me: executing $ac_dest commands" >&6;}
42832 case $ac_dest in
42833 default )
a848cd7e
SC
42834 if test ! -d lib; then
42835 mkdir lib
42836 fi
42837 if test ! -d lib/wx; then
42838 mkdir lib/wx
42839 fi
8708fa76
VS
42840 if test ! -d lib/wx/config; then
42841 mkdir lib/wx/config
42842 fi
a848cd7e
SC
42843 if test ! -d lib/wx/include; then
42844 mkdir lib/wx/include
42845 fi
42846 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
42847 mkdir lib/wx/include/${TOOLCHAIN_NAME}
42848 fi
42849 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
42850 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
42851 fi
42852 if test -f setup.h; then
42853 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
42854 fi
8708fa76 42855
4b167aca 42856 if test ! -h wx-config; then
8708fa76 42857 chmod +x wx-config
48112931 42858 mv -f wx-config lib/wx/config/${WXCONFIG_DATA_FILE}
4b167aca 42859 ${LN_S} wx-config-${WX_RELEASE} wx-config
8708fa76 42860 fi
4b167aca
VS
42861 ( cd lib/wx/config ;
42862 rm -f ${TOOLCHAIN_NAME}
42863 ${LN_S} ${WXCONFIG_DATA_FILE} ${TOOLCHAIN_NAME} )
42864
8708fa76
VS
42865 if test -f wx-config-wrapper; then
42866 chmod +x wx-config-wrapper
4b167aca 42867 mv -f wx-config-wrapper wx-config-${WX_RELEASE}
b3de4970 42868 rm -f wx${TOOLCHAIN_NAME}-config
4b167aca 42869 ${LN_S} wx-config-${WX_RELEASE} wx${TOOLCHAIN_NAME}-config
8708fa76 42870 fi
a848cd7e
SC
42871 ;;
42872 esac
42873done
42874_ACEOF
42875
42876cat >>$CONFIG_STATUS <<\_ACEOF
42877
42878{ (exit 0); exit 0; }
42879_ACEOF
42880chmod +x $CONFIG_STATUS
42881ac_clean_files=$ac_clean_files_save
42882
42883
42884# configure is writing to config.log, and then calls config.status.
42885# config.status does its own redirection, appending to config.log.
42886# Unfortunately, on DOS this fails, as config.log is still kept open
42887# by configure, so config.status won't be able to write to it; its
42888# output is simply discarded. So we exec the FD to /dev/null,
42889# effectively closing config.log, so it can be properly (re)opened and
42890# appended to by config.status. When coming back to configure, we
42891# need to make the FD available again.
42892if test "$no_create" != yes; then
42893 ac_cs_success=:
42894 ac_config_status_args=
42895 test "$silent" = yes &&
42896 ac_config_status_args="$ac_config_status_args --quiet"
42897 exec 5>/dev/null
42898 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
42899 exec 5>>config.log
42900 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
42901 # would make configure fail if this is the last instruction.
42902 $ac_cs_success || { (exit 1); exit 1; }
42903fi
42904
42905#
42906# CONFIG_SUBDIRS section.
42907#
42908if test "$no_recursion" != yes; then
42909
42910 # Remove --cache-file and --srcdir arguments so they do not pile up.
42911 ac_sub_configure_args=
42912 ac_prev=
42913 for ac_arg in $ac_configure_args; do
42914 if test -n "$ac_prev"; then
42915 ac_prev=
42916 continue
42917 fi
42918 case $ac_arg in
42919 -cache-file | --cache-file | --cache-fil | --cache-fi \
42920 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
42921 ac_prev=cache_file ;;
42922 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
42923 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
42924 | --c=*)
42925 ;;
42926 --config-cache | -C)
42927 ;;
42928 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
42929 ac_prev=srcdir ;;
42930 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
42931 ;;
42932 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
42933 ac_prev=prefix ;;
42934 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
42935 ;;
42936 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
42937 esac
42938 done
42939
42940 # Always prepend --prefix to ensure using the same prefix
42941 # in subdir configurations.
42942 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
42943
42944 ac_popdir=`pwd`
42945 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
42946
42947 # Do not complain, so a configure script can configure whichever
42948 # parts of a large source tree are present.
42949 test -d $srcdir/$ac_dir || continue
42950
42951 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
42952echo "$as_me: configuring in $ac_dir" >&6;}
42953 { if $as_mkdir_p; then
42954 mkdir -p "$ac_dir"
42955 else
42956 as_dir="$ac_dir"
42957 as_dirs=
42958 while test ! -d "$as_dir"; do
42959 as_dirs="$as_dir $as_dirs"
42960 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42961$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42962 X"$as_dir" : 'X\(//\)[^/]' \| \
42963 X"$as_dir" : 'X\(//\)$' \| \
42964 X"$as_dir" : 'X\(/\)' \| \
42965 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42966echo X"$as_dir" |
42967 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42968 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42969 /^X\(\/\/\)$/{ s//\1/; q; }
42970 /^X\(\/\).*/{ s//\1/; q; }
42971 s/.*/./; q'`
42972 done
42973 test ! -n "$as_dirs" || mkdir $as_dirs
42974 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42975echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42976 { (exit 1); exit 1; }; }; }
42977
42978 ac_builddir=.
42979
42980if test "$ac_dir" != .; then
42981 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42982 # A "../" for each directory in $ac_dir_suffix.
42983 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42984else
42985 ac_dir_suffix= ac_top_builddir=
42986fi
42987
42988case $srcdir in
42989 .) # No --srcdir option. We are building in place.
42990 ac_srcdir=.
42991 if test -z "$ac_top_builddir"; then
42992 ac_top_srcdir=.
42993 else
42994 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42995 fi ;;
42996 [\\/]* | ?:[\\/]* ) # Absolute path.
42997 ac_srcdir=$srcdir$ac_dir_suffix;
42998 ac_top_srcdir=$srcdir ;;
42999 *) # Relative path.
43000 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43001 ac_top_srcdir=$ac_top_builddir$srcdir ;;
43002esac
ac1cb8d3
VS
43003
43004# Do not use `cd foo && pwd` to compute absolute paths, because
43005# the directories may not exist.
43006case `pwd` in
43007.) ac_abs_builddir="$ac_dir";;
43008*)
43009 case "$ac_dir" in
43010 .) ac_abs_builddir=`pwd`;;
43011 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43012 *) ac_abs_builddir=`pwd`/"$ac_dir";;
43013 esac;;
43014esac
43015case $ac_abs_builddir in
43016.) ac_abs_top_builddir=${ac_top_builddir}.;;
43017*)
43018 case ${ac_top_builddir}. in
43019 .) ac_abs_top_builddir=$ac_abs_builddir;;
43020 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43021 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43022 esac;;
43023esac
43024case $ac_abs_builddir in
43025.) ac_abs_srcdir=$ac_srcdir;;
43026*)
43027 case $ac_srcdir in
43028 .) ac_abs_srcdir=$ac_abs_builddir;;
43029 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43030 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43031 esac;;
43032esac
43033case $ac_abs_builddir in
43034.) ac_abs_top_srcdir=$ac_top_srcdir;;
43035*)
43036 case $ac_top_srcdir in
43037 .) ac_abs_top_srcdir=$ac_abs_builddir;;
43038 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43039 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43040 esac;;
43041esac
a848cd7e
SC
43042
43043
43044 cd $ac_dir
43045
43046 # Check for guested configure; otherwise get Cygnus style configure.
43047 if test -f $ac_srcdir/configure.gnu; then
43048 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
43049 elif test -f $ac_srcdir/configure; then
43050 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
43051 elif test -f $ac_srcdir/configure.in; then
43052 ac_sub_configure=$ac_configure
43053 else
43054 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
43055echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
43056 ac_sub_configure=
43057 fi
43058
43059 # The recursion is here.
43060 if test -n "$ac_sub_configure"; then
43061 # Make the cache file name correct relative to the subdirectory.
43062 case $cache_file in
43063 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
43064 *) # Relative path.
ac1cb8d3 43065 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
43066 esac
43067
43068 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
43069echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
43070 # The eval makes quoting arguments work.
43071 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
43072 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
43073 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
43074echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
43075 { (exit 1); exit 1; }; }
43076 fi
43077
ea7db9ff 43078 cd $ac_popdir
a848cd7e
SC
43079 done
43080fi
43081
43082
43083echo
77ffb593 43084echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 43085echo ""
77ffb593
JS
43086echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_LOWERCASE:-base only}"
43087echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 43088
77ffb593
JS
43089echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
43090echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
43091echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 43092
77ffb593
JS
43093echo " What level of wxWidgets compatibility should be enabled?"
43094echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
43095echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 43096
77ffb593 43097echo " Which libraries should wxWidgets use?"
a848cd7e
SC
43098echo " jpeg ${wxUSE_LIBJPEG-none}"
43099echo " png ${wxUSE_LIBPNG-none}"
43100echo " regex ${wxUSE_REGEX}"
43101echo " tiff ${wxUSE_LIBTIFF-none}"
43102if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
43103echo " xpm ${wxUSE_LIBXPM-none}"
43104fi
43105echo " zlib ${wxUSE_ZLIB}"
43106echo " odbc ${wxUSE_ODBC}"
43107echo " expat ${wxUSE_EXPAT}"
43108echo " libmspack ${wxUSE_LIBMSPACK}"
43109echo " sdl ${wxUSE_LIBSDL}"
43110
43111echo ""
43112