]> git.saurik.com Git - wxWidgets.git/blame - configure
Move the WX_FLAVOUR variables to be defined generally, not just for
[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"
ceec2216 316ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG PANGOFT2_CFLAGS PANGOFT2_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL UNICODE BUILD DEBUG_INFO DEBUG_FLAG TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET ac_ct_AR ac_ct_STRIP NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOSX PLATFORM_OS2 SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MAC_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_PLUGINS_0 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN COND_TOOLKIT_MAC_WXUNIV_0 COND_TOOLKIT_MSW_WXUNIV_0 COND_TOOLKIT_PM_WXUNIV_0 SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_EXTRALIBS WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS GCC_PRAGMA_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL CPPUNIT_CONFIG LIBOBJS LTLIBOBJS'
a848cd7e
SC
317ac_subst_files=''
318
319# Initialize some variables set by options.
320ac_init_help=
321ac_init_version=false
322# The variables have the same names as the options, with
323# dashes changed to underlines.
324cache_file=/dev/null
325exec_prefix=NONE
326no_create=
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
335verbose=
336x_includes=NONE
337x_libraries=NONE
338
339# Installation directory options.
340# These are left unexpanded so users can "make install exec_prefix=/foo"
341# and all the variables that are supposed to be based on exec_prefix
342# by default will actually change.
343# Use braces instead of parens because sh, perl, etc. also accept them.
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
347datadir='${prefix}/share'
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
351libdir='${exec_prefix}/lib'
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
354infodir='${prefix}/info'
355mandir='${prefix}/man'
356
357ac_prev=
358for ac_option
359do
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
363 ac_prev=
364 continue
365 fi
366
367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
371 case $ac_option in
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 bindir=$ac_optarg ;;
377
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build_alias ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build_alias=$ac_optarg ;;
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
392
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 ac_prev=datadir ;;
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
397 datadir=$ac_optarg ;;
398
399 -disable-* | --disable-*)
400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401 # Reject names that are not valid shell variable names.
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
407
408 -enable-* | --enable-*)
409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "enable_$ac_feature='$ac_optarg'" ;;
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
428 exec_prefix=$ac_optarg ;;
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
440
441 -host | --host | --hos | --ho)
442 ac_prev=host_alias ;;
443 -host=* | --host=* | --hos=* | --ho=*)
444 host_alias=$ac_optarg ;;
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
451 includedir=$ac_optarg ;;
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456 infodir=$ac_optarg ;;
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 libdir=$ac_optarg ;;
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
468 libexecdir=$ac_optarg ;;
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477 localstatedir=$ac_optarg ;;
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 mandir=$ac_optarg ;;
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c | -n)
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503 oldincludedir=$ac_optarg ;;
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 prefix=$ac_optarg ;;
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515 program_prefix=$ac_optarg ;;
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522 program_suffix=$ac_optarg ;;
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
539 program_transform_name=$ac_optarg ;;
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
549 sbindir=$ac_optarg ;;
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
560 sharedstatedir=$ac_optarg ;;
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
565 site=$ac_optarg ;;
566
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 srcdir=$ac_optarg ;;
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577 sysconfdir=$ac_optarg ;;
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
580 ac_prev=target_alias ;;
581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582 target_alias=$ac_optarg ;;
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
589
590 -with-* | --with-*)
591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
596 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_$ac_package='$ac_optarg'" ;;
602
603 -without-* | --without-*)
604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605 # Reject names that are not valid shell variable names.
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621 x_includes=$ac_optarg ;;
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628 x_libraries=$ac_optarg ;;
629
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
633 ;;
634
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
643 export $ac_envvar ;;
644
645 *)
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
660fi
661
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
664do
665 eval ac_val=$`echo $ac_var`
666 case $ac_val in
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671done
672
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
ac1cb8d3 675 localstatedir libdir includedir oldincludedir infodir mandir
a848cd7e
SC
676do
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
682 esac
683done
684
685# There might be people who depend on the old broken behavior: `$host'
686# used to hold the argument of --host etc.
687# FIXME: To remove some day.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701fi
702
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
707
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
719echo X"$0" |
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
725 srcdir=$ac_confdir
726 if test ! -r $srcdir/$ac_unique_file; then
727 srcdir=..
728 fi
729else
730 ac_srcdir_defaulted=no
731fi
732if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
736 else
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
739 fi
740fi
741(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
777ac_env_CXX_set=${CXX+set}
778ac_env_CXX_value=$CXX
779ac_cv_env_CXX_set=${CXX+set}
780ac_cv_env_CXX_value=$CXX
781ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782ac_env_CXXFLAGS_value=$CXXFLAGS
783ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785ac_env_CXXCPP_set=${CXXCPP+set}
786ac_env_CXXCPP_value=$CXXCPP
787ac_cv_env_CXXCPP_set=${CXXCPP+set}
788ac_cv_env_CXXCPP_value=$CXXCPP
789
790#
791# Report the --help message.
792#
793if test "$ac_init_help" = "long"; then
794 # Omit some internal or obsolete options to make the list less imposing.
795 # This message is too long to be a string in the A/UX 3.1 sh.
796 cat <<_ACEOF
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
9a8f0513 947 --enable-xrc use XRC resources sub-library
a848cd7e
SC
948 --enable-constraints use layout-constraints system
949 --enable-printarch use printing architecture
950 --enable-mdi use multiple document interface architecture
8a7b1113 951 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
952 --enable-loggui use standard GUI logger
953 --enable-logwin use wxLogWindow
954 --enable-logdialog use wxLogDialog
646b6ec1 955 --enable-webkit use wxWebKitCtrl (Mac)
a848cd7e
SC
956 --enable-postscript use wxPostscriptDC device context (default for gtk+)
957 --enable-prologio not available; see contrib
958 --enable-resources not available; see contrib
959 --enable-clipboard use wxClipboard class
960 --enable-dnd use Drag'n'Drop classes
961 --enable-metafile use win32 metafiles
962 --enable-controls use all usual controls
963 --enable-accel use accelerators
964 --enable-button use wxButton class
965 --enable-bmpbutton use wxBitmapButton class
966 --enable-calendar use wxCalendarCtrl class
967 --enable-caret use wxCaret class
968 --enable-checkbox use wxCheckBox class
969 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
970 --enable-choice use wxChoice class
92bbdbcd 971 --enable-choicebook use wxChoicebook class
a848cd7e
SC
972 --enable-combobox use wxComboBox class
973 --enable-display use wxDisplay class
974 --enable-gauge use wxGauge class
975 --enable-grid use wxGrid class
976 --enable-imaglist use wxImageList class
977 --enable-listbook use wxListbook class
978 --enable-listbox use wxListBox class
979 --enable-listctrl use wxListCtrl class
980 --enable-notebook use wxNotebook class
981 --enable-radiobox use wxRadioBox class
982 --enable-radiobtn use wxRadioButton class
983 --enable-sash use wxSashWindow class
984 --enable-scrollbar use wxScrollBar class and scrollable windows
985 --enable-slider use wxSlider class
986 --enable-spinbtn use wxSpinButton class
987 --enable-spinctrl use wxSpinCtrl class
988 --enable-splitter use wxSplitterWindow class
989 --enable-statbmp use wxStaticBitmap class
990 --enable-statbox use wxStaticBox class
991 --enable-statline use wxStaticLine class
992 --enable-stattext use wxStaticText class
993 --enable-statusbar use wxStatusBar class
994 --enable-tabdialog use wxTabControl class
995 --enable-textctrl use wxTextCtrl class
996 --enable-togglebtn use wxToggleButton class
997 --enable-toolbar use wxToolBar class
998 --enable-tbarnative use native wxToolBar class
999 --enable-tbarsmpl use wxToolBarSimple class
1000 --enable-treectrl use wxTreeCtrl class
1001 --enable-tipwindow use wxTipWindow class
1002 --enable-popupwin use wxPopUpWindow class
1003 --enable-commondlg use all common dialogs
1004 --enable-choicedlg use wxChoiceDialog
1005 --enable-coldlg use wxColourDialog
1006 --enable-filedlg use wxFileDialog
1007 --enable-finddlg use wxFindReplaceDialog
1008 --enable-fontdlg use wxFontDialog
1009 --enable-dirdlg use wxDirDialog
1010 --enable-msgdlg use wxMessageDialog
1011 --enable-numberdlg use wxNumberEntryDialog
1012 --enable-splash use wxSplashScreen
1013 --enable-textdlg use wxTextDialog
1014 --enable-tipdlg use startup tips
1015 --enable-progressdlg use wxProgressDialog
1016 --enable-wizarddlg use wxWizard
1017 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1018 --enable-miniframe use wxMiniFrame class
1019 --enable-tooltips use wxToolTip class
1020 --enable-splines use spline drawing code
1021 --enable-validators use wxValidator and derived classes
1022 --enable-busyinfo use wxBusyInfo
1023 --enable-joystick use wxJoystick (Linux only)
1024 --enable-metafiles use wxMetaFile (Windows only)
1025 --enable-dragimage use wxDragImage
1026 --enable-accessibility enable accessibility support
1027 --enable-palette use wxPalette class
1028 --enable-image use wxImage class
1029 --enable-gif use gif images (GIF file format)
1030 --enable-pcx use pcx images (PCX file format)
1031 --enable-iff use iff images (IFF file format)
1032 --enable-pnm use pnm images (PNM file format)
1033 --enable-xpm use xpm images (XPM file format)
1034 --enable-icocur use Windows ICO and CUR formats
77ffb593 1035 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1036 --enable-vendor=VENDOR vendor name (win32 DLL only)
1037 --disable-largefile omit support for large files
1038 --disable-gtktest do not try to compile and run a test GTK+ program
1039 --disable-gtktest Do not try to compile and run a test GTK program
1040 --disable-sdltest Do not try to compile and run a test SDL program
1041 --enable-omf use OMF object format (OS/2)
ebee3cd0
VS
1042 --disable-precomp-headers
1043 don't use precompiled headers even if compiler can
a848cd7e
SC
1044
1045Optional Packages:
1046 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1047 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1048 --with-gtk use GTK+
1049 --with-motif use Motif/Lesstif
1050 --with-mac use Mac OS X
1051 --with-cocoa use Cocoa
1052 --with-wine use Wine
1053 --with-msw use MS-Windows
1054 --with-pm use OS/2 Presentation Manager
1055 --with-mgl use SciTech MGL
1056 --with-microwin use MicroWindows
1057 --with-x11 use X11
1058 --with-libpng use libpng (PNG image format)
1059 --with-libjpeg use libjpeg (JPEG file format)
1060 --with-libtiff use libtiff (TIFF file format)
1061 --with-libxpm use libxpm (XPM file format)
1062 --with-libmspack use libmspack (CHM help files loading)
1063 --with-sdl use SDL for audio on Unix
1064 --with-opengl use OpenGL (or Mesa)
1065 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1066 --with-regex enable support for wxRegEx class
1067 --with-zlib use zlib for LZW compression
1068 --with-odbc use the IODBC and wxODBC classes
1069 --with-expat enable XML support using expat parser
ceec2216 1070 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1071 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1072 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1073 --with-x use the X Window System
1074 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1075 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1076 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1077 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1078 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1079
1080Some influential environment variables:
dcc1b6ad
VS
1081 CC C compiler command
1082 CFLAGS C compiler flags
1083 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1084 nonstandard directory <lib dir>
1085 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1086 headers in a nonstandard directory <include dir>
1087 CPP C preprocessor
1088 CXX C++ compiler command
1089 CXXFLAGS C++ compiler flags
1090 CXXCPP C++ preprocessor
a848cd7e
SC
1091
1092Use these variables to override the choices made by `configure' or to help
1093it to find libraries and programs with nonstandard names/locations.
1094
77ffb593 1095Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1096_ACEOF
1097fi
1098
1099if test "$ac_init_help" = "recursive"; then
1100 # If there are subdirs, report their specific --help.
1101 ac_popdir=`pwd`
1102 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1103 test -d $ac_dir || continue
1104 ac_builddir=.
1105
1106if test "$ac_dir" != .; then
1107 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1108 # A "../" for each directory in $ac_dir_suffix.
1109 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1110else
1111 ac_dir_suffix= ac_top_builddir=
1112fi
1113
1114case $srcdir in
1115 .) # No --srcdir option. We are building in place.
1116 ac_srcdir=.
1117 if test -z "$ac_top_builddir"; then
1118 ac_top_srcdir=.
1119 else
1120 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1121 fi ;;
1122 [\\/]* | ?:[\\/]* ) # Absolute path.
1123 ac_srcdir=$srcdir$ac_dir_suffix;
1124 ac_top_srcdir=$srcdir ;;
1125 *) # Relative path.
1126 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1127 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1128esac
ac1cb8d3
VS
1129
1130# Do not use `cd foo && pwd` to compute absolute paths, because
1131# the directories may not exist.
1132case `pwd` in
1133.) ac_abs_builddir="$ac_dir";;
1134*)
1135 case "$ac_dir" in
1136 .) ac_abs_builddir=`pwd`;;
1137 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1138 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1139 esac;;
1140esac
1141case $ac_abs_builddir in
1142.) ac_abs_top_builddir=${ac_top_builddir}.;;
1143*)
1144 case ${ac_top_builddir}. in
1145 .) ac_abs_top_builddir=$ac_abs_builddir;;
1146 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1147 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1148 esac;;
1149esac
1150case $ac_abs_builddir in
1151.) ac_abs_srcdir=$ac_srcdir;;
1152*)
1153 case $ac_srcdir in
1154 .) ac_abs_srcdir=$ac_abs_builddir;;
1155 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1156 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1157 esac;;
1158esac
1159case $ac_abs_builddir in
1160.) ac_abs_top_srcdir=$ac_top_srcdir;;
1161*)
1162 case $ac_top_srcdir in
1163 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1164 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1165 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1166 esac;;
1167esac
a848cd7e
SC
1168
1169 cd $ac_dir
1170 # Check for guested configure; otherwise get Cygnus style configure.
1171 if test -f $ac_srcdir/configure.gnu; then
1172 echo
1173 $SHELL $ac_srcdir/configure.gnu --help=recursive
1174 elif test -f $ac_srcdir/configure; then
1175 echo
1176 $SHELL $ac_srcdir/configure --help=recursive
1177 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1178 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1179 echo
1180 $ac_configure --help
1181 else
1182 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1183 fi
ceec2216 1184 cd "$ac_popdir"
a848cd7e
SC
1185 done
1186fi
1187
1188test -n "$ac_init_help" && exit 0
1189if $ac_init_version; then
1190 cat <<\_ACEOF
77ffb593 1191wxWidgets configure 2.5.2
ac1cb8d3 1192generated by GNU Autoconf 2.59
a848cd7e 1193
ac1cb8d3 1194Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1195This configure script is free software; the Free Software Foundation
1196gives unlimited permission to copy, distribute and modify it.
1197_ACEOF
1198 exit 0
1199fi
1200exec 5>config.log
1201cat >&5 <<_ACEOF
1202This file contains any messages produced by compilers while
1203running configure, to aid debugging if configure makes a mistake.
1204
77ffb593 1205It was created by wxWidgets $as_me 2.5.2, which was
ac1cb8d3 1206generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1207
1208 $ $0 $@
1209
1210_ACEOF
1211{
1212cat <<_ASUNAME
1213## --------- ##
1214## Platform. ##
1215## --------- ##
1216
1217hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1218uname -m = `(uname -m) 2>/dev/null || echo unknown`
1219uname -r = `(uname -r) 2>/dev/null || echo unknown`
1220uname -s = `(uname -s) 2>/dev/null || echo unknown`
1221uname -v = `(uname -v) 2>/dev/null || echo unknown`
1222
1223/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1224/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1225
1226/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1227/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1228/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1229hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1230/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1231/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1232/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1233
1234_ASUNAME
1235
1236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1237for as_dir in $PATH
1238do
1239 IFS=$as_save_IFS
1240 test -z "$as_dir" && as_dir=.
1241 echo "PATH: $as_dir"
1242done
1243
1244} >&5
1245
1246cat >&5 <<_ACEOF
1247
1248
1249## ----------- ##
1250## Core tests. ##
1251## ----------- ##
1252
1253_ACEOF
1254
1255
1256# Keep a trace of the command line.
1257# Strip out --no-create and --no-recursion so they do not pile up.
1258# Strip out --silent because we don't want to record it for future runs.
1259# Also quote any args containing shell meta-characters.
1260# Make two passes to allow for proper duplicate-argument suppression.
1261ac_configure_args=
1262ac_configure_args0=
1263ac_configure_args1=
1264ac_sep=
1265ac_must_keep_next=false
1266for ac_pass in 1 2
1267do
1268 for ac_arg
1269 do
1270 case $ac_arg in
1271 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1272 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1273 | -silent | --silent | --silen | --sile | --sil)
1274 continue ;;
1275 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1276 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1277 esac
1278 case $ac_pass in
1279 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1280 2)
1281 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1282 if test $ac_must_keep_next = true; then
ac1cb8d3 1283 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1284 else
ac1cb8d3
VS
1285 case $ac_arg in
1286 *=* | --config-cache | -C | -disable-* | --disable-* \
1287 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1288 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1289 | -with-* | --with-* | -without-* | --without-* | --x)
1290 case "$ac_configure_args0 " in
1291 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1292 esac
1293 ;;
1294 -* ) ac_must_keep_next=true ;;
1295 esac
a848cd7e
SC
1296 fi
1297 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1298 # Get rid of the leading space.
1299 ac_sep=" "
1300 ;;
1301 esac
1302 done
1303done
1304$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1305$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1306
1307# When interrupted or exit'd, cleanup temporary files, and complete
1308# config.log. We remove comments because anyway the quotes in there
1309# would cause problems or look ugly.
1310# WARNING: Be sure not to use single quotes in there, as some shells,
1311# such as our DU 5.0 friend, will then `close' the trap.
1312trap 'exit_status=$?
1313 # Save into config.log some information that might help in debugging.
1314 {
1315 echo
1316
1317 cat <<\_ASBOX
1318## ---------------- ##
1319## Cache variables. ##
1320## ---------------- ##
1321_ASBOX
1322 echo
1323 # The following way of writing the cache mishandles newlines in values,
1324{
1325 (set) 2>&1 |
1326 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1327 *ac_space=\ *)
1328 sed -n \
ac1cb8d3
VS
1329 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1330 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1331 ;;
1332 *)
1333 sed -n \
ac1cb8d3 1334 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1335 ;;
1336 esac;
1337}
1338 echo
1339
1340 cat <<\_ASBOX
1341## ----------------- ##
1342## Output variables. ##
1343## ----------------- ##
1344_ASBOX
1345 echo
1346 for ac_var in $ac_subst_vars
1347 do
1348 eval ac_val=$`echo $ac_var`
1349 echo "$ac_var='"'"'$ac_val'"'"'"
1350 done | sort
1351 echo
1352
1353 if test -n "$ac_subst_files"; then
1354 cat <<\_ASBOX
1355## ------------- ##
1356## Output files. ##
1357## ------------- ##
1358_ASBOX
1359 echo
1360 for ac_var in $ac_subst_files
1361 do
1362 eval ac_val=$`echo $ac_var`
ac1cb8d3 1363 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1364 done | sort
1365 echo
1366 fi
1367
1368 if test -s confdefs.h; then
1369 cat <<\_ASBOX
1370## ----------- ##
1371## confdefs.h. ##
1372## ----------- ##
1373_ASBOX
1374 echo
1375 sed "/^$/d" confdefs.h | sort
1376 echo
1377 fi
1378 test "$ac_signal" != 0 &&
1379 echo "$as_me: caught signal $ac_signal"
1380 echo "$as_me: exit $exit_status"
1381 } >&5
ac1cb8d3 1382 rm -f core *.core &&
a848cd7e
SC
1383 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1384 exit $exit_status
1385 ' 0
1386for ac_signal in 1 2 13 15; do
1387 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1388done
1389ac_signal=0
1390
1391# confdefs.h avoids OS command line length limits that DEFS can exceed.
1392rm -rf conftest* confdefs.h
1393# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1394echo >confdefs.h
1395
1396# Predefined preprocessor variables.
1397
1398cat >>confdefs.h <<_ACEOF
1399#define PACKAGE_NAME "$PACKAGE_NAME"
1400_ACEOF
1401
1402
1403cat >>confdefs.h <<_ACEOF
1404#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1405_ACEOF
1406
1407
1408cat >>confdefs.h <<_ACEOF
1409#define PACKAGE_VERSION "$PACKAGE_VERSION"
1410_ACEOF
1411
1412
1413cat >>confdefs.h <<_ACEOF
1414#define PACKAGE_STRING "$PACKAGE_STRING"
1415_ACEOF
1416
1417
1418cat >>confdefs.h <<_ACEOF
1419#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1420_ACEOF
1421
1422
1423# Let the site file select an alternate cache file if it wants to.
1424# Prefer explicitly selected file to automatically selected ones.
1425if test -z "$CONFIG_SITE"; then
1426 if test "x$prefix" != xNONE; then
1427 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1428 else
1429 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1430 fi
1431fi
1432for ac_site_file in $CONFIG_SITE; do
1433 if test -r "$ac_site_file"; then
1434 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1435echo "$as_me: loading site script $ac_site_file" >&6;}
1436 sed 's/^/| /' "$ac_site_file" >&5
1437 . "$ac_site_file"
1438 fi
1439done
1440
1441if test -r "$cache_file"; then
1442 # Some versions of bash will fail to source /dev/null (special
1443 # files actually), so we avoid doing that.
1444 if test -f "$cache_file"; then
1445 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1446echo "$as_me: loading cache $cache_file" >&6;}
1447 case $cache_file in
1448 [\\/]* | ?:[\\/]* ) . $cache_file;;
1449 *) . ./$cache_file;;
1450 esac
1451 fi
1452else
1453 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1454echo "$as_me: creating cache $cache_file" >&6;}
1455 >$cache_file
1456fi
1457
1458# Check that the precious variables saved in the cache have kept the same
1459# value.
1460ac_cache_corrupted=false
1461for ac_var in `(set) 2>&1 |
ac1cb8d3 1462 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1463 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1464 eval ac_new_set=\$ac_env_${ac_var}_set
1465 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1466 eval ac_new_val="\$ac_env_${ac_var}_value"
1467 case $ac_old_set,$ac_new_set in
1468 set,)
1469 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1470echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1471 ac_cache_corrupted=: ;;
1472 ,set)
1473 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1474echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1475 ac_cache_corrupted=: ;;
1476 ,);;
1477 *)
1478 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1479 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1480echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1481 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1482echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1483 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1484echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1485 ac_cache_corrupted=:
a848cd7e
SC
1486 fi;;
1487 esac
1488 # Pass precious variables to config.status.
1489 if test "$ac_new_set" = set; then
1490 case $ac_new_val in
1491 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1492 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1493 *) ac_arg=$ac_var=$ac_new_val ;;
1494 esac
1495 case " $ac_configure_args " in
1496 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1497 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1498 esac
1499 fi
1500done
1501if $ac_cache_corrupted; then
1502 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1503echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1504 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1505echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1506 { (exit 1); exit 1; }; }
1507fi
1508
1509ac_ext=c
1510ac_cpp='$CPP $CPPFLAGS'
1511ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1512ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1513ac_compiler_gnu=$ac_cv_c_compiler_gnu
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544ac_aux_dir=
1545for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1546 if test -f $ac_dir/install-sh; then
1547 ac_aux_dir=$ac_dir
1548 ac_install_sh="$ac_aux_dir/install-sh -c"
1549 break
1550 elif test -f $ac_dir/install.sh; then
1551 ac_aux_dir=$ac_dir
1552 ac_install_sh="$ac_aux_dir/install.sh -c"
1553 break
1554 elif test -f $ac_dir/shtool; then
1555 ac_aux_dir=$ac_dir
1556 ac_install_sh="$ac_aux_dir/shtool install -c"
1557 break
1558 fi
1559done
1560if test -z "$ac_aux_dir"; then
1561 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1562echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1563 { (exit 1); exit 1; }; }
1564fi
1565ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1566ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1567ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1568
1569# Make sure we can run config.sub.
1570$ac_config_sub sun4 >/dev/null 2>&1 ||
1571 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1572echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1573 { (exit 1); exit 1; }; }
1574
1575echo "$as_me:$LINENO: checking build system type" >&5
1576echo $ECHO_N "checking build system type... $ECHO_C" >&6
1577if test "${ac_cv_build+set}" = set; then
1578 echo $ECHO_N "(cached) $ECHO_C" >&6
1579else
1580 ac_cv_build_alias=$build_alias
1581test -z "$ac_cv_build_alias" &&
1582 ac_cv_build_alias=`$ac_config_guess`
1583test -z "$ac_cv_build_alias" &&
1584 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1585echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1586 { (exit 1); exit 1; }; }
1587ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1588 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1589echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1590 { (exit 1); exit 1; }; }
1591
1592fi
1593echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1594echo "${ECHO_T}$ac_cv_build" >&6
1595build=$ac_cv_build
1596build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1597build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1598build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1599
1600
1601echo "$as_me:$LINENO: checking host system type" >&5
1602echo $ECHO_N "checking host system type... $ECHO_C" >&6
1603if test "${ac_cv_host+set}" = set; then
1604 echo $ECHO_N "(cached) $ECHO_C" >&6
1605else
1606 ac_cv_host_alias=$host_alias
1607test -z "$ac_cv_host_alias" &&
1608 ac_cv_host_alias=$ac_cv_build_alias
1609ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1610 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1611echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1612 { (exit 1); exit 1; }; }
1613
1614fi
1615echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1616echo "${ECHO_T}$ac_cv_host" >&6
1617host=$ac_cv_host
1618host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1619host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1620host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1621
1622
1623echo "$as_me:$LINENO: checking target system type" >&5
1624echo $ECHO_N "checking target system type... $ECHO_C" >&6
1625if test "${ac_cv_target+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1627else
1628 ac_cv_target_alias=$target_alias
1629test "x$ac_cv_target_alias" = "x" &&
1630 ac_cv_target_alias=$ac_cv_host_alias
1631ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1632 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1633echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1634 { (exit 1); exit 1; }; }
1635
1636fi
1637echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1638echo "${ECHO_T}$ac_cv_target" >&6
1639target=$ac_cv_target
1640target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1641target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1642target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1643
1644
1645# The aliases save the names the user supplied, while $host etc.
1646# will get canonicalized.
1647test -n "$target_alias" &&
1648 test "$program_prefix$program_suffix$program_transform_name" = \
1649 NONENONEs,x,x, &&
1650 program_prefix=${target_alias}-
1651
1652
1653
ceec2216
RL
1654wx_major_version_number=2
1655wx_minor_version_number=5
1656wx_release_number=2
fdec3549 1657wx_subrelease_number=9
a848cd7e 1658
ceec2216
RL
1659WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1660WX_VERSION=$WX_RELEASE.$wx_release_number
1661WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1662
ceec2216 1663WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1664
de59c161 1665WX_CURRENT=2
a848cd7e
SC
1666WX_REVISION=0
1667WX_AGE=0
1668
1669
1670
1671USE_UNIX=1
1672USE_OS2=0
1673USE_WIN32=0
1674USE_DOS=0
1675USE_BEOS=0
1676USE_MAC=0
1677
1678USE_AIX=
1679USE_BSD= USE_DARWIN= USE_FREEBSD=
1680USE_GNU= USE_HPUX=
1681USE_LINUX=
1682USE_NETBSD=
1683USE_OPENBSD=
1684USE_OSF= USE_SGI=
1685USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1686USE_ULTRIX=
1687USE_UNIXWARE=
1688
1689USE_ALPHA=
1690
1691NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1692
1693ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1694
1695DEFAULT_wxUSE_COCOA=0
1696DEFAULT_wxUSE_GTK=0
1697DEFAULT_wxUSE_MAC=0
1698DEFAULT_wxUSE_MGL=0
1699DEFAULT_wxUSE_MICROWIN=0
1700DEFAULT_wxUSE_MOTIF=0
1701DEFAULT_wxUSE_MSW=0
1702DEFAULT_wxUSE_PM=0
1703DEFAULT_wxUSE_X11=0
1704
1705DEFAULT_DEFAULT_wxUSE_COCOA=0
1706DEFAULT_DEFAULT_wxUSE_GTK=0
1707DEFAULT_DEFAULT_wxUSE_MAC=0
1708DEFAULT_DEFAULT_wxUSE_MGL=0
1709DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1710DEFAULT_DEFAULT_wxUSE_MOTIF=0
1711DEFAULT_DEFAULT_wxUSE_MSW=0
1712DEFAULT_DEFAULT_wxUSE_PM=0
1713DEFAULT_DEFAULT_wxUSE_X11=0
1714
1715PROGRAM_EXT=
1716SO_SUFFIX=so
1717SAMPLES_RPATH_FLAG=
1718SAMPLES_RPATH_POSTLINK=
1719
1720case "${host}" in
1721 *-hp-hpux* )
1722 USE_HPUX=1
1723 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1724 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1725 SO_SUFFIX=sl
1726 cat >>confdefs.h <<\_ACEOF
1727#define __HPUX__ 1
1728_ACEOF
1729
1730 ;;
1731 *-*-linux* )
1732 USE_LINUX=1
1733 cat >>confdefs.h <<\_ACEOF
1734#define __LINUX__ 1
1735_ACEOF
1736
1737 TMP=`uname -m`
1738 if test "x$TMP" = "xalpha"; then
1739 USE_ALPHA=1
1740 cat >>confdefs.h <<\_ACEOF
1741#define __ALPHA__ 1
1742_ACEOF
1743
1744 fi
1745 DEFAULT_DEFAULT_wxUSE_GTK=1
1746 ;;
1747 *-*-gnu* | *-*-k*bsd*-gnu )
1748 USE_GNU=1
1749 TMP=`uname -m`
1750 if test "x$TMP" = "xalpha"; then
1751 USE_ALPHA=1
1752 cat >>confdefs.h <<\_ACEOF
1753#define __ALPHA__ 1
1754_ACEOF
1755
1756 fi
1757 DEFAULT_DEFAULT_wxUSE_GTK=1
1758 ;;
1759 *-*-irix5* | *-*-irix6* )
1760 USE_SGI=1
1761 USE_SVR4=1
1762 cat >>confdefs.h <<\_ACEOF
1763#define __SGI__ 1
1764_ACEOF
1765
1766 cat >>confdefs.h <<\_ACEOF
1767#define __SVR4__ 1
1768_ACEOF
1769
1770 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1771 ;;
1772 *-*-solaris2* )
1773 USE_SUN=1
1774 USE_SOLARIS=1
1775 USE_SVR4=1
1776 cat >>confdefs.h <<\_ACEOF
1777#define __SUN__ 1
1778_ACEOF
1779
1780 cat >>confdefs.h <<\_ACEOF
1781#define __SOLARIS__ 1
1782_ACEOF
1783
1784 cat >>confdefs.h <<\_ACEOF
1785#define __SVR4__ 1
1786_ACEOF
1787
1788 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1789 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1790 ;;
1791 *-*-sunos4* )
1792 USE_SUN=1
1793 USE_SUNOS=1
1794 USE_BSD=1
1795 cat >>confdefs.h <<\_ACEOF
1796#define __SUN__ 1
1797_ACEOF
1798
1799 cat >>confdefs.h <<\_ACEOF
1800#define __SUNOS__ 1
1801_ACEOF
1802
1803 cat >>confdefs.h <<\_ACEOF
1804#define __BSD__ 1
1805_ACEOF
1806
1807 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1808 ;;
1809 *-*-freebsd*)
1810 USE_BSD=1
1811 USE_FREEBSD=1
1812 cat >>confdefs.h <<\_ACEOF
1813#define __FREEBSD__ 1
1814_ACEOF
1815
1816 cat >>confdefs.h <<\_ACEOF
1817#define __BSD__ 1
1818_ACEOF
1819
1820 DEFAULT_DEFAULT_wxUSE_GTK=1
1821 ;;
1822 *-*-openbsd*)
1823 USE_BSD=1
1824 USE_OPENBSD=1
1825 cat >>confdefs.h <<\_ACEOF
1826#define __OPENBSD__ 1
1827_ACEOF
1828
1829 cat >>confdefs.h <<\_ACEOF
1830#define __BSD__ 1
1831_ACEOF
1832
1833 DEFAULT_DEFAULT_wxUSE_GTK=1
1834 ;;
1835 *-*-netbsd*)
1836 USE_BSD=1
1837 USE_NETBSD=1
1838 cat >>confdefs.h <<\_ACEOF
1839#define __NETBSD__ 1
1840_ACEOF
1841
1842 cat >>confdefs.h <<\_ACEOF
1843#define __BSD__ 1
1844_ACEOF
1845
1846 DEFAULT_DEFAULT_wxUSE_GTK=1
1847 ;;
1848 *-*-osf* )
1849 USE_ALPHA=1
1850 USE_OSF=1
1851 cat >>confdefs.h <<\_ACEOF
1852#define __ALPHA__ 1
1853_ACEOF
1854
1855 cat >>confdefs.h <<\_ACEOF
1856#define __OSF__ 1
1857_ACEOF
1858
1859 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1860 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1861 ;;
1862 *-*-dgux5* )
1863 USE_ALPHA=1
1864 USE_SVR4=1
1865 cat >>confdefs.h <<\_ACEOF
1866#define __ALPHA__ 1
1867_ACEOF
1868
1869 cat >>confdefs.h <<\_ACEOF
1870#define __SVR4__ 1
1871_ACEOF
1872
1873 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1874 ;;
1875 *-*-sysv5* )
1876 USE_SYSV=1
1877 USE_SVR4=1
1878 cat >>confdefs.h <<\_ACEOF
1879#define __SYSV__ 1
1880_ACEOF
1881
1882 cat >>confdefs.h <<\_ACEOF
1883#define __SVR4__ 1
1884_ACEOF
1885
1886 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1887 ;;
1888 *-*-aix* )
1889 USE_AIX=1
1890 USE_SYSV=1
1891 USE_SVR4=1
1892 SO_SUFFIX=a
1893 cat >>confdefs.h <<\_ACEOF
1894#define __AIX__ 1
1895_ACEOF
1896
1897 cat >>confdefs.h <<\_ACEOF
1898#define __SYSV__ 1
1899_ACEOF
1900
1901 cat >>confdefs.h <<\_ACEOF
1902#define __SVR4__ 1
1903_ACEOF
1904
1905 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1906 ;;
1907
1908 *-*-*UnixWare*)
1909 USE_SYSV=1
1910 USE_SVR4=1
1911 USE_UNIXWARE=1
1912 cat >>confdefs.h <<\_ACEOF
1913#define __UNIXWARE__ 1
1914_ACEOF
1915
1916 ;;
1917
1918 *-*-cygwin* | *-*-mingw32* )
1919 SO_SUFFIX=dll
1920 PROGRAM_EXT=".exe"
1921 RESCOMP=windres
1922 DEFAULT_DEFAULT_wxUSE_MSW=1
1923 ;;
1924
1925 *-pc-msdosdjgpp )
1926 USE_UNIX=0
1927 USE_DOS=1
1928 cat >>confdefs.h <<\_ACEOF
1929#define __DOS__ 1
1930_ACEOF
1931
1932 PROGRAM_EXT=".exe"
1933 DEFAULT_DEFAULT_wxUSE_MGL=1
1934 LIBS="$LIBS -lstdc++"
1935 ;;
1936
1937 *-pc-os2_emx | *-pc-os2-emx )
1938 cat >>confdefs.h <<\_ACEOF
1939#define __EMX__ 1
1940_ACEOF
1941
1942 USE_OS2=1
1943 cat >>confdefs.h <<\_ACEOF
1944#define __OS2__ 1
1945_ACEOF
1946
1947 PROGRAM_EXT=".exe"
1948 DEFAULT_DEFAULT_wxUSE_PM=1
1949 CXX=gcc
1950 LDFLAGS="$LDFLAGS -Zcrtdll"
1951 ac_executable_extensions=".exe"
1952 export ac_executable_extensions
1953 ac_save_IFS="$IFS"
1954 IFS='\\'
1955 ac_TEMP_PATH=
1956 for ac_dir in $PATH; do
1957 IFS=$ac_save_IFS
1958 if test -z "$ac_TEMP_PATH"; then
1959 ac_TEMP_PATH="$ac_dir"
1960 else
1961 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1962 fi
1963 done
1964 export PATH="$ac_TEMP_PATH"
1965 unset ac_TEMP_PATH
1966 ;;
1967
1968 powerpc-*-darwin* )
1969 USE_BSD=1
1970 USE_DARWIN=1
1971 SO_SUFFIX=dylib
1972 cat >>confdefs.h <<\_ACEOF
1973#define __BSD__ 1
1974_ACEOF
1975
1976 cat >>confdefs.h <<\_ACEOF
1977#define __DARWIN__ 1
1978_ACEOF
1979
1980 cat >>confdefs.h <<\_ACEOF
1981#define __POWERPC__ 1
1982_ACEOF
1983
1984 cat >>confdefs.h <<\_ACEOF
1985#define TARGET_CARBON 1
1986_ACEOF
1987
1988 DEFAULT_DEFAULT_wxUSE_MAC=1
1989 ;;
1990
1991 *-*-beos* )
1992 USE_BEOS=1
1993 cat >>confdefs.h <<\_ACEOF
1994#define __BEOS__ 1
1995_ACEOF
1996
1997 ;;
1998
1999 *)
2000 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2001echo "$as_me: error: unknown system type ${host}." >&2;}
2002 { (exit 1); exit 1; }; }
2003esac
2004
2005
2006
2007
2008 wx_arg_cache_file="configarg.cache"
2009 echo "loading argument cache $wx_arg_cache_file"
2010 rm -f ${wx_arg_cache_file}.tmp
2011 touch ${wx_arg_cache_file}.tmp
2012 touch ${wx_arg_cache_file}
2013
2014
2015DEBUG_CONFIGURE=0
2016if test $DEBUG_CONFIGURE = 1; then
2017 DEFAULT_wxUSE_UNIVERSAL=no
2018 DEFAULT_wxUSE_STL=no
2019
2020 DEFAULT_wxUSE_NANOX=no
2021
2022 DEFAULT_wxUSE_THREADS=yes
2023
2024 DEFAULT_wxUSE_SHARED=yes
2025 DEFAULT_wxUSE_OPTIMISE=no
2026 DEFAULT_wxUSE_PROFILE=no
2027 DEFAULT_wxUSE_NO_DEPS=no
2028 DEFAULT_wxUSE_NO_RTTI=no
2029 DEFAULT_wxUSE_NO_EXCEPTIONS=no
2030 DEFAULT_wxUSE_PERMISSIVE=no
2031 DEFAULT_wxUSE_DEBUG_FLAG=yes
2032 DEFAULT_wxUSE_DEBUG_INFO=yes
2033 DEFAULT_wxUSE_DEBUG_GDB=yes
2034 DEFAULT_wxUSE_MEM_TRACING=no
2035 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2036 DEFAULT_wxUSE_DMALLOC=no
2037 DEFAULT_wxUSE_APPLE_IEEE=no
2038
2039 DEFAULT_wxUSE_EXCEPTIONS=no
2040 DEFAULT_wxUSE_LOG=yes
2041 DEFAULT_wxUSE_LOGWINDOW=no
2042 DEFAULT_wxUSE_LOGGUI=no
2043 DEFAULT_wxUSE_LOGDIALOG=no
2044
2045 DEFAULT_wxUSE_GUI=yes
2046 DEFAULT_wxUSE_CONTROLS=no
2047
2048 DEFAULT_wxUSE_REGEX=no
2049 DEFAULT_wxUSE_XML=no
2050 DEFAULT_wxUSE_EXPAT=no
2051 DEFAULT_wxUSE_ZLIB=no
2052 DEFAULT_wxUSE_LIBPNG=no
2053 DEFAULT_wxUSE_LIBJPEG=no
2054 DEFAULT_wxUSE_LIBTIFF=no
2055 DEFAULT_wxUSE_LIBXPM=no
2056 DEFAULT_wxUSE_LIBMSPACK=no
2057 DEFAULT_wxUSE_LIBSDL=no
2058 DEFAULT_wxUSE_ODBC=no
2059 DEFAULT_wxUSE_OPENGL=no
2060
2061 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
2062 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2063 DEFAULT_wxUSE_STD_IOSTREAM=no
2064 DEFAULT_wxUSE_CMDLINE_PARSER=no
2065 DEFAULT_wxUSE_DATETIME=no
2066 DEFAULT_wxUSE_TIMER=no
2067 DEFAULT_wxUSE_STOPWATCH=no
2068 DEFAULT_wxUSE_FILE=no
2069 DEFAULT_wxUSE_FFILE=no
2070 DEFAULT_wxUSE_TEXTBUFFER=no
2071 DEFAULT_wxUSE_TEXTFILE=no
2072 DEFAULT_wxUSE_SOUND=no
2073 DEFAULT_wxUSE_INTL=no
2074 DEFAULT_wxUSE_CONFIG=no
2075 DEFAULT_wxUSE_FONTMAP=no
2076 DEFAULT_wxUSE_STREAMS=no
2077 DEFAULT_wxUSE_SOCKETS=no
2078 DEFAULT_wxUSE_OLE=no
2079 DEFAULT_wxUSE_DATAOBJ=no
2080 DEFAULT_wxUSE_DIALUP_MANAGER=no
2081 DEFAULT_wxUSE_JOYSTICK=no
2082 DEFAULT_wxUSE_DYNLIB_CLASS=no
2083 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2084 DEFAULT_wxUSE_LONGLONG=no
2085 DEFAULT_wxUSE_GEOMETRY=no
2086
2087 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2088 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2089 DEFAULT_wxUSE_POSTSCRIPT=no
2090
2091 DEFAULT_wxUSE_CLIPBOARD=no
2092 DEFAULT_wxUSE_TOOLTIPS=no
2093 DEFAULT_wxUSE_DRAG_AND_DROP=no
2094 DEFAULT_wxUSE_DRAGIMAGE=no
2095 DEFAULT_wxUSE_SPLINES=no
2096
8a7b1113 2097 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2098 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2099 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2100 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2101
2102 DEFAULT_wxUSE_RESOURCES=no
2103 DEFAULT_wxUSE_CONSTRAINTS=no
2104 DEFAULT_wxUSE_IPC=no
2105 DEFAULT_wxUSE_HELP=no
2106 DEFAULT_wxUSE_MS_HTML_HELP=no
2107 DEFAULT_wxUSE_WXHTML_HELP=no
2108 DEFAULT_wxUSE_TREELAYOUT=no
2109 DEFAULT_wxUSE_METAFILE=no
2110 DEFAULT_wxUSE_MIMETYPE=no
2111 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2112 DEFAULT_wxUSE_PROTOCOL=no
2113 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2114 DEFAULT_wxUSE_PROTOCOL_FTP=no
2115 DEFAULT_wxUSE_PROTOCOL_FILE=no
2116 DEFAULT_wxUSE_URL=no
2117
2118 DEFAULT_wxUSE_COMMONDLGS=no
2119 DEFAULT_wxUSE_CHOICEDLG=no
2120 DEFAULT_wxUSE_COLOURDLG=no
2121 DEFAULT_wxUSE_DIRDLG=no
2122 DEFAULT_wxUSE_FILEDLG=no
2123 DEFAULT_wxUSE_FINDREPLDLG=no
2124 DEFAULT_wxUSE_FONTDLG=no
2125 DEFAULT_wxUSE_MSGDLG=no
2126 DEFAULT_wxUSE_NUMBERDLG=no
2127 DEFAULT_wxUSE_TEXTDLG=no
2128 DEFAULT_wxUSE_SPLASH=no
2129 DEFAULT_wxUSE_STARTUP_TIPS=no
2130 DEFAULT_wxUSE_PROGRESSDLG=no
2131 DEFAULT_wxUSE_WIZARDDLG=no
2132
2133 DEFAULT_wxUSE_MENUS=no
2134 DEFAULT_wxUSE_MINIFRAME=no
2135 DEFAULT_wxUSE_HTML=no
9a8f0513 2136 DEFAULT_wxUSE_XRC=no
646b6ec1 2137 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2138 DEFAULT_wxUSE_FILESYSTEM=no
2139 DEFAULT_wxUSE_FS_INET=no
2140 DEFAULT_wxUSE_FS_ZIP=no
2141 DEFAULT_wxUSE_BUSYINFO=no
2142 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2143 DEFAULT_wxUSE_VALIDATORS=no
2144
2145 DEFAULT_wxUSE_ACCEL=no
2146 DEFAULT_wxUSE_BUTTON=no
2147 DEFAULT_wxUSE_BMPBUTTON=no
2148 DEFAULT_wxUSE_CALCTRL=no
2149 DEFAULT_wxUSE_CARET=no
2150 DEFAULT_wxUSE_CHECKBOX=no
2151 DEFAULT_wxUSE_CHECKLST=no
2152 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2153 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e
SC
2154 DEFAULT_wxUSE_COMBOBOX=no
2155 DEFAULT_wxUSE_DISPLAY=no
2156 DEFAULT_wxUSE_GAUGE=no
2157 DEFAULT_wxUSE_GRID=no
2158 DEFAULT_wxUSE_IMAGLIST=no
2159 DEFAULT_wxUSE_LISTBOOK=no
2160 DEFAULT_wxUSE_LISTBOX=no
2161 DEFAULT_wxUSE_LISTCTRL=no
2162 DEFAULT_wxUSE_NOTEBOOK=no
2163 DEFAULT_wxUSE_RADIOBOX=no
2164 DEFAULT_wxUSE_RADIOBTN=no
2165 DEFAULT_wxUSE_SASH=no
2166 DEFAULT_wxUSE_SCROLLBAR=no
2167 DEFAULT_wxUSE_SLIDER=no
2168 DEFAULT_wxUSE_SPINBTN=no
2169 DEFAULT_wxUSE_SPINCTRL=no
2170 DEFAULT_wxUSE_SPLITTER=no
2171 DEFAULT_wxUSE_STATBMP=no
2172 DEFAULT_wxUSE_STATBOX=no
2173 DEFAULT_wxUSE_STATLINE=no
2174 DEFAULT_wxUSE_STATTEXT=no
2175 DEFAULT_wxUSE_STATUSBAR=yes
2176 DEFAULT_wxUSE_TABDIALOG=no
2177 DEFAULT_wxUSE_TEXTCTRL=no
2178 DEFAULT_wxUSE_TOGGLEBTN=no
2179 DEFAULT_wxUSE_TOOLBAR=no
2180 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2181 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2182 DEFAULT_wxUSE_TREECTRL=no
2183 DEFAULT_wxUSE_POPUPWIN=no
2184 DEFAULT_wxUSE_TIPWINDOW=no
2185
2186 DEFAULT_wxUSE_UNICODE=no
2187 DEFAULT_wxUSE_UNICODE_MSLU=no
2188 DEFAULT_wxUSE_WCSRTOMBS=no
2189
2190 DEFAULT_wxUSE_PALETTE=no
2191 DEFAULT_wxUSE_IMAGE=no
2192 DEFAULT_wxUSE_GIF=no
2193 DEFAULT_wxUSE_PCX=no
2194 DEFAULT_wxUSE_PNM=no
2195 DEFAULT_wxUSE_IFF=no
2196 DEFAULT_wxUSE_XPM=no
2197 DEFAULT_wxUSE_ICO_CUR=no
2198 DEFAULT_wxUSE_ACCESSIBILITY=no
2199
2200 DEFAULT_wxUSE_MONOLITHIC=no
2201 DEFAULT_wxUSE_PLUGINS=no
2202 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2203else
2204 DEFAULT_wxUSE_UNIVERSAL=no
2205 DEFAULT_wxUSE_STL=no
2206
2207 DEFAULT_wxUSE_NANOX=no
2208
2209 DEFAULT_wxUSE_THREADS=yes
2210
2211 DEFAULT_wxUSE_SHARED=yes
2212 DEFAULT_wxUSE_OPTIMISE=yes
2213 DEFAULT_wxUSE_PROFILE=no
2214 DEFAULT_wxUSE_NO_DEPS=no
2215 DEFAULT_wxUSE_NO_RTTI=no
2216 DEFAULT_wxUSE_NO_EXCEPTIONS=no
2217 DEFAULT_wxUSE_PERMISSIVE=no
2218 DEFAULT_wxUSE_DEBUG_FLAG=no
2219 DEFAULT_wxUSE_DEBUG_INFO=no
2220 DEFAULT_wxUSE_DEBUG_GDB=no
2221 DEFAULT_wxUSE_MEM_TRACING=no
2222 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2223 DEFAULT_wxUSE_DMALLOC=no
2224 DEFAULT_wxUSE_APPLE_IEEE=yes
2225
2226 DEFAULT_wxUSE_EXCEPTIONS=yes
2227 DEFAULT_wxUSE_LOG=yes
2228 DEFAULT_wxUSE_LOGWINDOW=yes
2229 DEFAULT_wxUSE_LOGGUI=yes
2230 DEFAULT_wxUSE_LOGDIALOG=yes
2231
2232 DEFAULT_wxUSE_GUI=yes
2233
2234 DEFAULT_wxUSE_REGEX=yes
2235 DEFAULT_wxUSE_XML=yes
2236 DEFAULT_wxUSE_EXPAT=yes
2237 DEFAULT_wxUSE_ZLIB=yes
2238 DEFAULT_wxUSE_LIBPNG=yes
2239 DEFAULT_wxUSE_LIBJPEG=yes
2240 DEFAULT_wxUSE_LIBTIFF=yes
2241 DEFAULT_wxUSE_LIBXPM=yes
2242 DEFAULT_wxUSE_LIBMSPACK=yes
2243 DEFAULT_wxUSE_LIBSDL=no
2244 DEFAULT_wxUSE_ODBC=no
2245 DEFAULT_wxUSE_OPENGL=no
2246
2247 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
2248 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2249 DEFAULT_wxUSE_STD_IOSTREAM=no
2250 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2251 DEFAULT_wxUSE_DATETIME=yes
2252 DEFAULT_wxUSE_TIMER=yes
2253 DEFAULT_wxUSE_STOPWATCH=yes
2254 DEFAULT_wxUSE_FILE=yes
2255 DEFAULT_wxUSE_FFILE=yes
2256 DEFAULT_wxUSE_TEXTBUFFER=yes
2257 DEFAULT_wxUSE_TEXTFILE=yes
2258 DEFAULT_wxUSE_SOUND=yes
2259 DEFAULT_wxUSE_INTL=yes
2260 DEFAULT_wxUSE_CONFIG=yes
2261 DEFAULT_wxUSE_FONTMAP=yes
2262 DEFAULT_wxUSE_STREAMS=yes
2263 DEFAULT_wxUSE_SOCKETS=yes
2264 DEFAULT_wxUSE_OLE=yes
2265 DEFAULT_wxUSE_DATAOBJ=yes
2266 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2267 DEFAULT_wxUSE_JOYSTICK=yes
2268 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2269 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2270 DEFAULT_wxUSE_LONGLONG=yes
2271 DEFAULT_wxUSE_GEOMETRY=yes
2272
2273 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2274 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2275 DEFAULT_wxUSE_POSTSCRIPT=yes
2276
2277 DEFAULT_wxUSE_CLIPBOARD=yes
2278 DEFAULT_wxUSE_TOOLTIPS=yes
2279 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2280 DEFAULT_wxUSE_DRAGIMAGE=yes
2281 DEFAULT_wxUSE_SPLINES=yes
2282
8a7b1113 2283 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2284 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2285 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2286 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2287
2288 DEFAULT_wxUSE_RESOURCES=no
2289 DEFAULT_wxUSE_CONSTRAINTS=yes
2290 DEFAULT_wxUSE_IPC=yes
2291 DEFAULT_wxUSE_HELP=yes
2292 DEFAULT_wxUSE_MS_HTML_HELP=yes
2293 DEFAULT_wxUSE_WXHTML_HELP=yes
2294 DEFAULT_wxUSE_TREELAYOUT=yes
2295 DEFAULT_wxUSE_METAFILE=yes
2296 DEFAULT_wxUSE_MIMETYPE=yes
2297 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2298 DEFAULT_wxUSE_PROTOCOL=yes
2299 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2300 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2301 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2302 DEFAULT_wxUSE_URL=yes
2303
2304 DEFAULT_wxUSE_COMMONDLGS=yes
2305 DEFAULT_wxUSE_CHOICEDLG=yes
2306 DEFAULT_wxUSE_COLOURDLG=yes
2307 DEFAULT_wxUSE_DIRDLG=yes
2308 DEFAULT_wxUSE_FILEDLG=yes
2309 DEFAULT_wxUSE_FINDREPLDLG=yes
2310 DEFAULT_wxUSE_FONTDLG=yes
2311 DEFAULT_wxUSE_MSGDLG=yes
2312 DEFAULT_wxUSE_NUMBERDLG=yes
2313 DEFAULT_wxUSE_TEXTDLG=yes
2314 DEFAULT_wxUSE_SPLASH=yes
2315 DEFAULT_wxUSE_STARTUP_TIPS=yes
2316 DEFAULT_wxUSE_PROGRESSDLG=yes
2317 DEFAULT_wxUSE_WIZARDDLG=yes
2318
2319 DEFAULT_wxUSE_MENUS=yes
2320 DEFAULT_wxUSE_MINIFRAME=yes
2321 DEFAULT_wxUSE_HTML=yes
9a8f0513 2322 DEFAULT_wxUSE_XRC=yes
646b6ec1 2323 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2324 DEFAULT_wxUSE_FILESYSTEM=yes
2325 DEFAULT_wxUSE_FS_INET=yes
2326 DEFAULT_wxUSE_FS_ZIP=yes
2327 DEFAULT_wxUSE_BUSYINFO=yes
2328 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2329 DEFAULT_wxUSE_VALIDATORS=yes
2330
2331 DEFAULT_wxUSE_ACCEL=yes
2332 DEFAULT_wxUSE_BUTTON=yes
2333 DEFAULT_wxUSE_BMPBUTTON=yes
2334 DEFAULT_wxUSE_CALCTRL=yes
2335 DEFAULT_wxUSE_CARET=yes
2336 DEFAULT_wxUSE_CHECKBOX=yes
2337 DEFAULT_wxUSE_CHECKLST=yes
2338 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2339 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e
SC
2340 DEFAULT_wxUSE_COMBOBOX=yes
2341 DEFAULT_wxUSE_DISPLAY=yes
2342 DEFAULT_wxUSE_GAUGE=yes
2343 DEFAULT_wxUSE_GRID=yes
2344 DEFAULT_wxUSE_IMAGLIST=yes
2345 DEFAULT_wxUSE_LISTBOOK=yes
2346 DEFAULT_wxUSE_LISTBOX=yes
2347 DEFAULT_wxUSE_LISTCTRL=yes
2348 DEFAULT_wxUSE_NOTEBOOK=yes
2349 DEFAULT_wxUSE_RADIOBOX=yes
2350 DEFAULT_wxUSE_RADIOBTN=yes
2351 DEFAULT_wxUSE_SASH=yes
2352 DEFAULT_wxUSE_SCROLLBAR=yes
2353 DEFAULT_wxUSE_SLIDER=yes
2354 DEFAULT_wxUSE_SPINBTN=yes
2355 DEFAULT_wxUSE_SPINCTRL=yes
2356 DEFAULT_wxUSE_SPLITTER=yes
2357 DEFAULT_wxUSE_STATBMP=yes
2358 DEFAULT_wxUSE_STATBOX=yes
2359 DEFAULT_wxUSE_STATLINE=yes
2360 DEFAULT_wxUSE_STATTEXT=yes
2361 DEFAULT_wxUSE_STATUSBAR=yes
2362 DEFAULT_wxUSE_TABDIALOG=no
2363 DEFAULT_wxUSE_TEXTCTRL=yes
2364 DEFAULT_wxUSE_TOGGLEBTN=yes
2365 DEFAULT_wxUSE_TOOLBAR=yes
2366 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2367 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2368 DEFAULT_wxUSE_TREECTRL=yes
2369 DEFAULT_wxUSE_POPUPWIN=yes
2370 DEFAULT_wxUSE_TIPWINDOW=yes
2371
2372 DEFAULT_wxUSE_UNICODE=no
2373 DEFAULT_wxUSE_UNICODE_MSLU=yes
2374 DEFAULT_wxUSE_WCSRTOMBS=no
2375
2376 DEFAULT_wxUSE_PALETTE=yes
2377 DEFAULT_wxUSE_IMAGE=yes
2378 DEFAULT_wxUSE_GIF=yes
2379 DEFAULT_wxUSE_PCX=yes
2380 DEFAULT_wxUSE_IFF=no
2381 DEFAULT_wxUSE_PNM=yes
2382 DEFAULT_wxUSE_XPM=yes
2383 DEFAULT_wxUSE_ICO_CUR=yes
2384 DEFAULT_wxUSE_ACCESSIBILITY=no
2385
2386 DEFAULT_wxUSE_MONOLITHIC=no
2387 DEFAULT_wxUSE_PLUGINS=no
2388 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e
VS
2389
2390 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2391fi
2392
2393
2394
2395for toolkit in `echo $ALL_TOOLKITS`; do
2396 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2397 if test "x$LINE" != "x" ; then
2398 has_toolkit_in_cache=1
2399 eval "DEFAULT_$LINE"
2400 eval "CACHE_$toolkit=1"
2401 fi
2402done
2403
2404
2405
2406 enablestring=
2407 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2408echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2409 no_cache=0
2410 # Check whether --enable-gui or --disable-gui was given.
2411if test "${enable_gui+set}" = set; then
2412 enableval="$enable_gui"
2413
2414 if test "$enableval" = yes; then
2415 ac_cv_use_gui='wxUSE_GUI=yes'
2416 else
2417 ac_cv_use_gui='wxUSE_GUI=no'
2418 fi
2419
2420else
2421
2422 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2423 if test "x$LINE" != x ; then
2424 eval "DEFAULT_$LINE"
2425 else
2426 no_cache=1
2427 fi
2428
2429 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2430
2431fi;
2432
2433 eval "$ac_cv_use_gui"
2434 if test "$no_cache" != 1; then
2435 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2436 fi
2437
2438 if test "$wxUSE_GUI" = yes; then
2439 echo "$as_me:$LINENO: result: yes" >&5
2440echo "${ECHO_T}yes" >&6
2441 else
2442 echo "$as_me:$LINENO: result: no" >&5
2443echo "${ECHO_T}no" >&6
2444 fi
2445
2446
2447 enablestring=
2448 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2449echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2450 no_cache=0
2451 # Check whether --enable-monolithic or --disable-monolithic was given.
2452if test "${enable_monolithic+set}" = set; then
2453 enableval="$enable_monolithic"
2454
2455 if test "$enableval" = yes; then
2456 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2457 else
2458 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2459 fi
2460
2461else
2462
2463 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2464 if test "x$LINE" != x ; then
2465 eval "DEFAULT_$LINE"
2466 else
2467 no_cache=1
2468 fi
2469
2470 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2471
2472fi;
2473
2474 eval "$ac_cv_use_monolithic"
2475 if test "$no_cache" != 1; then
2476 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2477 fi
2478
2479 if test "$wxUSE_MONOLITHIC" = yes; then
2480 echo "$as_me:$LINENO: result: yes" >&5
2481echo "${ECHO_T}yes" >&6
2482 else
2483 echo "$as_me:$LINENO: result: no" >&5
2484echo "${ECHO_T}no" >&6
2485 fi
2486
2487
2488 enablestring=
2489 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2490echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2491 no_cache=0
2492 # Check whether --enable-plugins or --disable-plugins was given.
2493if test "${enable_plugins+set}" = set; then
2494 enableval="$enable_plugins"
2495
2496 if test "$enableval" = yes; then
2497 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2498 else
2499 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2500 fi
2501
2502else
2503
2504 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2505 if test "x$LINE" != x ; then
2506 eval "DEFAULT_$LINE"
2507 else
2508 no_cache=1
2509 fi
2510
2511 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2512
2513fi;
2514
2515 eval "$ac_cv_use_plugins"
2516 if test "$no_cache" != 1; then
2517 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2518 fi
2519
2520 if test "$wxUSE_PLUGINS" = yes; then
2521 echo "$as_me:$LINENO: result: yes" >&5
2522echo "${ECHO_T}yes" >&6
2523 else
2524 echo "$as_me:$LINENO: result: no" >&5
2525echo "${ECHO_T}no" >&6
2526 fi
2527
2528
2529if test "$wxUSE_GUI" = "yes"; then
2530
2531
2532 enablestring=
2533 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2534echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2535 no_cache=0
2536 # Check whether --enable-universal or --disable-universal was given.
2537if test "${enable_universal+set}" = set; then
2538 enableval="$enable_universal"
2539
2540 if test "$enableval" = yes; then
2541 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2542 else
2543 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2544 fi
2545
2546else
2547
2548 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2549 if test "x$LINE" != x ; then
2550 eval "DEFAULT_$LINE"
2551 else
2552 no_cache=1
2553 fi
2554
2555 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2556
2557fi;
2558
2559 eval "$ac_cv_use_universal"
2560 if test "$no_cache" != 1; then
2561 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2562 fi
2563
2564 if test "$wxUSE_UNIVERSAL" = yes; then
2565 echo "$as_me:$LINENO: result: yes" >&5
2566echo "${ECHO_T}yes" >&6
2567 else
2568 echo "$as_me:$LINENO: result: no" >&5
2569echo "${ECHO_T}no" >&6
2570 fi
2571
2572
2573# Check whether --with-gtk or --without-gtk was given.
2574if test "${with_gtk+set}" = set; then
2575 withval="$with_gtk"
2576 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2577fi;
2578
2579# Check whether --with-motif or --without-motif was given.
2580if test "${with_motif+set}" = set; then
2581 withval="$with_motif"
2582 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2583fi;
2584
2585# Check whether --with-mac or --without-mac was given.
2586if test "${with_mac+set}" = set; then
2587 withval="$with_mac"
2588 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
2589fi;
2590
2591# Check whether --with-cocoa or --without-cocoa was given.
2592if test "${with_cocoa+set}" = set; then
2593 withval="$with_cocoa"
2594 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
2595fi;
2596
2597# Check whether --with-wine or --without-wine was given.
2598if test "${with_wine+set}" = set; then
2599 withval="$with_wine"
2600 wxUSE_WINE="$withval" CACHE_WINE=1
2601fi;
2602
2603# Check whether --with-msw or --without-msw was given.
2604if test "${with_msw+set}" = set; then
2605 withval="$with_msw"
2606 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2607fi;
2608
2609# Check whether --with-pm or --without-pm was given.
2610if test "${with_pm+set}" = set; then
2611 withval="$with_pm"
2612 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2613fi;
2614
2615# Check whether --with-mgl or --without-mgl was given.
2616if test "${with_mgl+set}" = set; then
2617 withval="$with_mgl"
2618 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2619fi;
2620
2621# Check whether --with-microwin or --without-microwin was given.
2622if test "${with_microwin+set}" = set; then
2623 withval="$with_microwin"
2624 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2625fi;
2626
2627# Check whether --with-x11 or --without-x11 was given.
2628if test "${with_x11+set}" = set; then
2629 withval="$with_x11"
2630 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2631fi;
2632
2633 enablestring=
2634 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2635echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2636 no_cache=0
2637 # Check whether --enable-nanox or --disable-nanox was given.
2638if test "${enable_nanox+set}" = set; then
2639 enableval="$enable_nanox"
2640
2641 if test "$enableval" = yes; then
2642 ac_cv_use_nanox='wxUSE_NANOX=yes'
2643 else
2644 ac_cv_use_nanox='wxUSE_NANOX=no'
2645 fi
2646
2647else
2648
2649 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2650 if test "x$LINE" != x ; then
2651 eval "DEFAULT_$LINE"
2652 else
2653 no_cache=1
2654 fi
2655
2656 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2657
2658fi;
2659
2660 eval "$ac_cv_use_nanox"
2661 if test "$no_cache" != 1; then
2662 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2663 fi
2664
2665 if test "$wxUSE_NANOX" = yes; then
2666 echo "$as_me:$LINENO: result: yes" >&5
2667echo "${ECHO_T}yes" >&6
2668 else
2669 echo "$as_me:$LINENO: result: no" >&5
2670echo "${ECHO_T}no" >&6
2671 fi
2672
2673
2674
2675 enablestring=
2676 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2677echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
2678 no_cache=0
2679 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2680if test "${enable_gtk2+set}" = set; then
2681 enableval="$enable_gtk2"
2682
2683 if test "$enableval" = yes; then
2684 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2685 else
2686 ac_cv_use_gtk2='wxUSE_GTK2=no'
2687 fi
2688
2689else
2690
2691 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2692 if test "x$LINE" != x ; then
2693 eval "DEFAULT_$LINE"
2694 else
2695 no_cache=1
2696 fi
2697
2698 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2699
2700fi;
2701
2702 eval "$ac_cv_use_gtk2"
2703 if test "$no_cache" != 1; then
2704 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2705 fi
2706
2707 if test "$wxUSE_GTK2" = yes; then
2708 echo "$as_me:$LINENO: result: yes" >&5
2709echo "${ECHO_T}yes" >&6
2710 else
2711 echo "$as_me:$LINENO: result: no" >&5
2712echo "${ECHO_T}no" >&6
2713 fi
2714
2715
2716 enablestring=
2717 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2718echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2719 no_cache=0
2720 # Check whether --enable-gpe or --disable-gpe was given.
2721if test "${enable_gpe+set}" = set; then
2722 enableval="$enable_gpe"
2723
2724 if test "$enableval" = yes; then
2725 ac_cv_use_gpe='wxUSE_GPE=yes'
2726 else
2727 ac_cv_use_gpe='wxUSE_GPE=no'
2728 fi
2729
2730else
2731
2732 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2733 if test "x$LINE" != x ; then
2734 eval "DEFAULT_$LINE"
2735 else
2736 no_cache=1
2737 fi
2738
2739 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2740
2741fi;
2742
2743 eval "$ac_cv_use_gpe"
2744 if test "$no_cache" != 1; then
2745 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2746 fi
2747
2748 if test "$wxUSE_GPE" = yes; then
2749 echo "$as_me:$LINENO: result: yes" >&5
2750echo "${ECHO_T}yes" >&6
2751 else
2752 echo "$as_me:$LINENO: result: no" >&5
2753echo "${ECHO_T}no" >&6
2754 fi
2755
2756
2757
2758 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2759echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2760 no_cache=0
2761
2762# Check whether --with-libpng or --without-libpng was given.
2763if test "${with_libpng+set}" = set; then
2764 withval="$with_libpng"
2765
2766 if test "$withval" = yes; then
2767 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2768 elif test "$withval" = no; then
2769 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2770 elif test "$withval" = sys; then
2771 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2772 elif test "$withval" = builtin; then
2773 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2774 else
2775 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2776echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2777 { (exit 1); exit 1; }; }
2778 fi
2779
2780else
2781
2782 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2783 if test "x$LINE" != x ; then
2784 eval "DEFAULT_$LINE"
2785 else
2786 no_cache=1
2787 fi
2788
2789 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2790
2791fi;
2792
2793 eval "$ac_cv_use_libpng"
2794 if test "$no_cache" != 1; then
2795 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2796 fi
2797
2798 if test "$wxUSE_LIBPNG" = yes; then
2799 echo "$as_me:$LINENO: result: yes" >&5
2800echo "${ECHO_T}yes" >&6
2801 elif test "$wxUSE_LIBPNG" = no; then
2802 echo "$as_me:$LINENO: result: no" >&5
2803echo "${ECHO_T}no" >&6
2804 elif test "$wxUSE_LIBPNG" = sys; then
2805 echo "$as_me:$LINENO: result: system version" >&5
2806echo "${ECHO_T}system version" >&6
2807 elif test "$wxUSE_LIBPNG" = builtin; then
2808 echo "$as_me:$LINENO: result: builtin version" >&5
2809echo "${ECHO_T}builtin version" >&6
2810 else
2811 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2812echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2813 { (exit 1); exit 1; }; }
2814 fi
2815
2816
2817 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2818echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2819 no_cache=0
2820
2821# Check whether --with-libjpeg or --without-libjpeg was given.
2822if test "${with_libjpeg+set}" = set; then
2823 withval="$with_libjpeg"
2824
2825 if test "$withval" = yes; then
2826 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2827 elif test "$withval" = no; then
2828 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2829 elif test "$withval" = sys; then
2830 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2831 elif test "$withval" = builtin; then
2832 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2833 else
2834 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2835echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2836 { (exit 1); exit 1; }; }
2837 fi
2838
2839else
2840
2841 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2842 if test "x$LINE" != x ; then
2843 eval "DEFAULT_$LINE"
2844 else
2845 no_cache=1
2846 fi
2847
2848 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2849
2850fi;
2851
2852 eval "$ac_cv_use_libjpeg"
2853 if test "$no_cache" != 1; then
2854 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2855 fi
2856
2857 if test "$wxUSE_LIBJPEG" = yes; then
2858 echo "$as_me:$LINENO: result: yes" >&5
2859echo "${ECHO_T}yes" >&6
2860 elif test "$wxUSE_LIBJPEG" = no; then
2861 echo "$as_me:$LINENO: result: no" >&5
2862echo "${ECHO_T}no" >&6
2863 elif test "$wxUSE_LIBJPEG" = sys; then
2864 echo "$as_me:$LINENO: result: system version" >&5
2865echo "${ECHO_T}system version" >&6
2866 elif test "$wxUSE_LIBJPEG" = builtin; then
2867 echo "$as_me:$LINENO: result: builtin version" >&5
2868echo "${ECHO_T}builtin version" >&6
2869 else
2870 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2871echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2872 { (exit 1); exit 1; }; }
2873 fi
2874
2875
2876 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2877echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2878 no_cache=0
2879
2880# Check whether --with-libtiff or --without-libtiff was given.
2881if test "${with_libtiff+set}" = set; then
2882 withval="$with_libtiff"
2883
2884 if test "$withval" = yes; then
2885 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2886 elif test "$withval" = no; then
2887 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2888 elif test "$withval" = sys; then
2889 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2890 elif test "$withval" = builtin; then
2891 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2892 else
2893 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2894echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2895 { (exit 1); exit 1; }; }
2896 fi
2897
2898else
2899
2900 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2901 if test "x$LINE" != x ; then
2902 eval "DEFAULT_$LINE"
2903 else
2904 no_cache=1
2905 fi
2906
2907 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2908
2909fi;
2910
2911 eval "$ac_cv_use_libtiff"
2912 if test "$no_cache" != 1; then
2913 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2914 fi
2915
2916 if test "$wxUSE_LIBTIFF" = yes; then
2917 echo "$as_me:$LINENO: result: yes" >&5
2918echo "${ECHO_T}yes" >&6
2919 elif test "$wxUSE_LIBTIFF" = no; then
2920 echo "$as_me:$LINENO: result: no" >&5
2921echo "${ECHO_T}no" >&6
2922 elif test "$wxUSE_LIBTIFF" = sys; then
2923 echo "$as_me:$LINENO: result: system version" >&5
2924echo "${ECHO_T}system version" >&6
2925 elif test "$wxUSE_LIBTIFF" = builtin; then
2926 echo "$as_me:$LINENO: result: builtin version" >&5
2927echo "${ECHO_T}builtin version" >&6
2928 else
2929 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2930echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2931 { (exit 1); exit 1; }; }
2932 fi
2933
2934
2935 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2936echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2937 no_cache=0
2938
2939# Check whether --with-libxpm or --without-libxpm was given.
2940if test "${with_libxpm+set}" = set; then
2941 withval="$with_libxpm"
2942
2943 if test "$withval" = yes; then
2944 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2945 elif test "$withval" = no; then
2946 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2947 elif test "$withval" = sys; then
2948 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2949 elif test "$withval" = builtin; then
2950 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2951 else
2952 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2953echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2954 { (exit 1); exit 1; }; }
2955 fi
2956
2957else
2958
2959 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2960 if test "x$LINE" != x ; then
2961 eval "DEFAULT_$LINE"
2962 else
2963 no_cache=1
2964 fi
2965
2966 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2967
2968fi;
2969
2970 eval "$ac_cv_use_libxpm"
2971 if test "$no_cache" != 1; then
2972 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2973 fi
2974
2975 if test "$wxUSE_LIBXPM" = yes; then
2976 echo "$as_me:$LINENO: result: yes" >&5
2977echo "${ECHO_T}yes" >&6
2978 elif test "$wxUSE_LIBXPM" = no; then
2979 echo "$as_me:$LINENO: result: no" >&5
2980echo "${ECHO_T}no" >&6
2981 elif test "$wxUSE_LIBXPM" = sys; then
2982 echo "$as_me:$LINENO: result: system version" >&5
2983echo "${ECHO_T}system version" >&6
2984 elif test "$wxUSE_LIBXPM" = builtin; then
2985 echo "$as_me:$LINENO: result: builtin version" >&5
2986echo "${ECHO_T}builtin version" >&6
2987 else
2988 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2989echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2990 { (exit 1); exit 1; }; }
2991 fi
2992
2993
2994 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
2995echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
2996 no_cache=0
2997
2998# Check whether --with-libmspack or --without-libmspack was given.
2999if test "${with_libmspack+set}" = set; then
3000 withval="$with_libmspack"
3001
3002 if test "$withval" = yes; then
3003 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3004 else
3005 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3006 fi
3007
3008else
3009
3010 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3011 if test "x$LINE" != x ; then
3012 eval "DEFAULT_$LINE"
3013 else
3014 no_cache=1
3015 fi
3016
3017 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3018
3019fi;
3020
3021 eval "$ac_cv_use_libmspack"
3022 if test "$no_cache" != 1; then
3023 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3024 fi
3025
3026 if test "$wxUSE_LIBMSPACK" = yes; then
3027 echo "$as_me:$LINENO: result: yes" >&5
3028echo "${ECHO_T}yes" >&6
3029 else
3030 echo "$as_me:$LINENO: result: no" >&5
3031echo "${ECHO_T}no" >&6
3032 fi
3033
3034
3035 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3036echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3037 no_cache=0
3038
3039# Check whether --with-sdl or --without-sdl was given.
3040if test "${with_sdl+set}" = set; then
3041 withval="$with_sdl"
3042
3043 if test "$withval" = yes; then
3044 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3045 else
3046 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3047 fi
3048
3049else
3050
3051 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3052 if test "x$LINE" != x ; then
3053 eval "DEFAULT_$LINE"
3054 else
3055 no_cache=1
3056 fi
3057
3058 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3059
3060fi;
3061
3062 eval "$ac_cv_use_sdl"
3063 if test "$no_cache" != 1; then
3064 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3065 fi
3066
3067 if test "$wxUSE_LIBSDL" = yes; then
3068 echo "$as_me:$LINENO: result: yes" >&5
3069echo "${ECHO_T}yes" >&6
3070 else
3071 echo "$as_me:$LINENO: result: no" >&5
3072echo "${ECHO_T}no" >&6
3073 fi
3074
3075
3076 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3077echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3078 no_cache=0
3079
3080# Check whether --with-opengl or --without-opengl was given.
3081if test "${with_opengl+set}" = set; then
3082 withval="$with_opengl"
3083
3084 if test "$withval" = yes; then
3085 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3086 else
3087 ac_cv_use_opengl='wxUSE_OPENGL=no'
3088 fi
3089
3090else
3091
3092 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3093 if test "x$LINE" != x ; then
3094 eval "DEFAULT_$LINE"
3095 else
3096 no_cache=1
3097 fi
3098
3099 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3100
3101fi;
3102
3103 eval "$ac_cv_use_opengl"
3104 if test "$no_cache" != 1; then
3105 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3106 fi
3107
3108 if test "$wxUSE_OPENGL" = yes; then
3109 echo "$as_me:$LINENO: result: yes" >&5
3110echo "${ECHO_T}yes" >&6
3111 else
3112 echo "$as_me:$LINENO: result: no" >&5
3113echo "${ECHO_T}no" >&6
3114 fi
3115
3116
3117fi
3118
3119
3120 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3121echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3122 no_cache=0
3123
3124# Check whether --with-dmalloc or --without-dmalloc was given.
3125if test "${with_dmalloc+set}" = set; then
3126 withval="$with_dmalloc"
3127
3128 if test "$withval" = yes; then
3129 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3130 else
3131 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3132 fi
3133
3134else
3135
3136 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3137 if test "x$LINE" != x ; then
3138 eval "DEFAULT_$LINE"
3139 else
3140 no_cache=1
3141 fi
3142
3143 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3144
3145fi;
3146
3147 eval "$ac_cv_use_dmalloc"
3148 if test "$no_cache" != 1; then
3149 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3150 fi
3151
3152 if test "$wxUSE_DMALLOC" = yes; then
3153 echo "$as_me:$LINENO: result: yes" >&5
3154echo "${ECHO_T}yes" >&6
3155 else
3156 echo "$as_me:$LINENO: result: no" >&5
3157echo "${ECHO_T}no" >&6
3158 fi
3159
3160
3161 echo "$as_me:$LINENO: checking for --with-regex" >&5
3162echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3163 no_cache=0
3164
3165# Check whether --with-regex or --without-regex was given.
3166if test "${with_regex+set}" = set; then
3167 withval="$with_regex"
3168
3169 if test "$withval" = yes; then
3170 ac_cv_use_regex='wxUSE_REGEX=yes'
3171 elif test "$withval" = no; then
3172 ac_cv_use_regex='wxUSE_REGEX=no'
3173 elif test "$withval" = sys; then
3174 ac_cv_use_regex='wxUSE_REGEX=sys'
3175 elif test "$withval" = builtin; then
3176 ac_cv_use_regex='wxUSE_REGEX=builtin'
3177 else
3178 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3179echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3180 { (exit 1); exit 1; }; }
3181 fi
3182
3183else
3184
3185 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3186 if test "x$LINE" != x ; then
3187 eval "DEFAULT_$LINE"
3188 else
3189 no_cache=1
3190 fi
3191
3192 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3193
3194fi;
3195
3196 eval "$ac_cv_use_regex"
3197 if test "$no_cache" != 1; then
3198 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3199 fi
3200
3201 if test "$wxUSE_REGEX" = yes; then
3202 echo "$as_me:$LINENO: result: yes" >&5
3203echo "${ECHO_T}yes" >&6
3204 elif test "$wxUSE_REGEX" = no; then
3205 echo "$as_me:$LINENO: result: no" >&5
3206echo "${ECHO_T}no" >&6
3207 elif test "$wxUSE_REGEX" = sys; then
3208 echo "$as_me:$LINENO: result: system version" >&5
3209echo "${ECHO_T}system version" >&6
3210 elif test "$wxUSE_REGEX" = builtin; then
3211 echo "$as_me:$LINENO: result: builtin version" >&5
3212echo "${ECHO_T}builtin version" >&6
3213 else
3214 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3215echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3216 { (exit 1); exit 1; }; }
3217 fi
3218
3219
3220 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3221echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3222 no_cache=0
3223
3224# Check whether --with-zlib or --without-zlib was given.
3225if test "${with_zlib+set}" = set; then
3226 withval="$with_zlib"
3227
3228 if test "$withval" = yes; then
3229 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3230 elif test "$withval" = no; then
3231 ac_cv_use_zlib='wxUSE_ZLIB=no'
3232 elif test "$withval" = sys; then
3233 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3234 elif test "$withval" = builtin; then
3235 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3236 else
3237 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3238echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3239 { (exit 1); exit 1; }; }
3240 fi
3241
3242else
3243
3244 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3245 if test "x$LINE" != x ; then
3246 eval "DEFAULT_$LINE"
3247 else
3248 no_cache=1
3249 fi
3250
3251 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3252
3253fi;
3254
3255 eval "$ac_cv_use_zlib"
3256 if test "$no_cache" != 1; then
3257 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3258 fi
3259
3260 if test "$wxUSE_ZLIB" = yes; then
3261 echo "$as_me:$LINENO: result: yes" >&5
3262echo "${ECHO_T}yes" >&6
3263 elif test "$wxUSE_ZLIB" = no; then
3264 echo "$as_me:$LINENO: result: no" >&5
3265echo "${ECHO_T}no" >&6
3266 elif test "$wxUSE_ZLIB" = sys; then
3267 echo "$as_me:$LINENO: result: system version" >&5
3268echo "${ECHO_T}system version" >&6
3269 elif test "$wxUSE_ZLIB" = builtin; then
3270 echo "$as_me:$LINENO: result: builtin version" >&5
3271echo "${ECHO_T}builtin version" >&6
3272 else
3273 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3274echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3275 { (exit 1); exit 1; }; }
3276 fi
3277
3278
3279 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3280echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3281 no_cache=0
3282
3283# Check whether --with-odbc or --without-odbc was given.
3284if test "${with_odbc+set}" = set; then
3285 withval="$with_odbc"
3286
3287 if test "$withval" = yes; then
3288 ac_cv_use_odbc='wxUSE_ODBC=yes'
3289 elif test "$withval" = no; then
3290 ac_cv_use_odbc='wxUSE_ODBC=no'
3291 elif test "$withval" = sys; then
3292 ac_cv_use_odbc='wxUSE_ODBC=sys'
3293 elif test "$withval" = builtin; then
3294 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3295 else
3296 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3297echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3298 { (exit 1); exit 1; }; }
3299 fi
3300
3301else
3302
3303 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3304 if test "x$LINE" != x ; then
3305 eval "DEFAULT_$LINE"
3306 else
3307 no_cache=1
3308 fi
3309
3310 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3311
3312fi;
3313
3314 eval "$ac_cv_use_odbc"
3315 if test "$no_cache" != 1; then
3316 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3317 fi
3318
3319 if test "$wxUSE_ODBC" = yes; then
3320 echo "$as_me:$LINENO: result: yes" >&5
3321echo "${ECHO_T}yes" >&6
3322 elif test "$wxUSE_ODBC" = no; then
3323 echo "$as_me:$LINENO: result: no" >&5
3324echo "${ECHO_T}no" >&6
3325 elif test "$wxUSE_ODBC" = sys; then
3326 echo "$as_me:$LINENO: result: system version" >&5
3327echo "${ECHO_T}system version" >&6
3328 elif test "$wxUSE_ODBC" = builtin; then
3329 echo "$as_me:$LINENO: result: builtin version" >&5
3330echo "${ECHO_T}builtin version" >&6
3331 else
3332 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3333echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3334 { (exit 1); exit 1; }; }
3335 fi
3336
3337
3338 echo "$as_me:$LINENO: checking for --with-expat" >&5
3339echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3340 no_cache=0
3341
3342# Check whether --with-expat or --without-expat was given.
3343if test "${with_expat+set}" = set; then
3344 withval="$with_expat"
3345
3346 if test "$withval" = yes; then
3347 ac_cv_use_expat='wxUSE_EXPAT=yes'
3348 elif test "$withval" = no; then
3349 ac_cv_use_expat='wxUSE_EXPAT=no'
3350 elif test "$withval" = sys; then
3351 ac_cv_use_expat='wxUSE_EXPAT=sys'
3352 elif test "$withval" = builtin; then
3353 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3354 else
3355 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3356echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3357 { (exit 1); exit 1; }; }
3358 fi
3359
3360else
3361
3362 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3363 if test "x$LINE" != x ; then
3364 eval "DEFAULT_$LINE"
3365 else
3366 no_cache=1
3367 fi
3368
3369 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3370
3371fi;
3372
3373 eval "$ac_cv_use_expat"
3374 if test "$no_cache" != 1; then
3375 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3376 fi
3377
3378 if test "$wxUSE_EXPAT" = yes; then
3379 echo "$as_me:$LINENO: result: yes" >&5
3380echo "${ECHO_T}yes" >&6
3381 elif test "$wxUSE_EXPAT" = no; then
3382 echo "$as_me:$LINENO: result: no" >&5
3383echo "${ECHO_T}no" >&6
3384 elif test "$wxUSE_EXPAT" = sys; then
3385 echo "$as_me:$LINENO: result: system version" >&5
3386echo "${ECHO_T}system version" >&6
3387 elif test "$wxUSE_EXPAT" = builtin; then
3388 echo "$as_me:$LINENO: result: builtin version" >&5
3389echo "${ECHO_T}builtin version" >&6
3390 else
3391 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3392echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3393 { (exit 1); exit 1; }; }
3394 fi
3395
3396
3397
3398
3399 enablestring=
3400 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3401echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3402 no_cache=0
3403 # Check whether --enable-shared or --disable-shared was given.
3404if test "${enable_shared+set}" = set; then
3405 enableval="$enable_shared"
3406
3407 if test "$enableval" = yes; then
3408 ac_cv_use_shared='wxUSE_SHARED=yes'
3409 else
3410 ac_cv_use_shared='wxUSE_SHARED=no'
3411 fi
3412
3413else
3414
3415 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3416 if test "x$LINE" != x ; then
3417 eval "DEFAULT_$LINE"
3418 else
3419 no_cache=1
3420 fi
3421
3422 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3423
3424fi;
3425
3426 eval "$ac_cv_use_shared"
3427 if test "$no_cache" != 1; then
3428 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3429 fi
3430
3431 if test "$wxUSE_SHARED" = yes; then
3432 echo "$as_me:$LINENO: result: yes" >&5
3433echo "${ECHO_T}yes" >&6
3434 else
3435 echo "$as_me:$LINENO: result: no" >&5
3436echo "${ECHO_T}no" >&6
3437 fi
3438
3439
3440 enablestring=
3441 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3442echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3443 no_cache=0
3444 # Check whether --enable-optimise or --disable-optimise was given.
3445if test "${enable_optimise+set}" = set; then
3446 enableval="$enable_optimise"
3447
3448 if test "$enableval" = yes; then
3449 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3450 else
3451 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3452 fi
3453
3454else
3455
3456 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3457 if test "x$LINE" != x ; then
3458 eval "DEFAULT_$LINE"
3459 else
3460 no_cache=1
3461 fi
3462
3463 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3464
3465fi;
3466
3467 eval "$ac_cv_use_optimise"
3468 if test "$no_cache" != 1; then
3469 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3470 fi
3471
3472 if test "$wxUSE_OPTIMISE" = yes; then
3473 echo "$as_me:$LINENO: result: yes" >&5
3474echo "${ECHO_T}yes" >&6
3475 else
3476 echo "$as_me:$LINENO: result: no" >&5
3477echo "${ECHO_T}no" >&6
3478 fi
3479
3480
3481 enablestring=
3482 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3483echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3484 no_cache=0
3485 # Check whether --enable-debug or --disable-debug was given.
3486if test "${enable_debug+set}" = set; then
3487 enableval="$enable_debug"
3488
3489 if test "$enableval" = yes; then
3490 ac_cv_use_debug='wxUSE_DEBUG=yes'
3491 else
3492 ac_cv_use_debug='wxUSE_DEBUG=no'
3493 fi
3494
3495else
3496
3497 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3498 if test "x$LINE" != x ; then
3499 eval "DEFAULT_$LINE"
3500 else
3501 no_cache=1
3502 fi
3503
3504 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3505
3506fi;
3507
3508 eval "$ac_cv_use_debug"
3509 if test "$no_cache" != 1; then
3510 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3511 fi
3512
3513 if test "$wxUSE_DEBUG" = yes; then
3514 echo "$as_me:$LINENO: result: yes" >&5
3515echo "${ECHO_T}yes" >&6
3516 else
3517 echo "$as_me:$LINENO: result: no" >&5
3518echo "${ECHO_T}no" >&6
3519 fi
3520
3521
3522 enablestring=
3523 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3524echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3525 no_cache=0
3526 # Check whether --enable-stl or --disable-stl was given.
3527if test "${enable_stl+set}" = set; then
3528 enableval="$enable_stl"
3529
3530 if test "$enableval" = yes; then
3531 ac_cv_use_stl='wxUSE_STL=yes'
3532 else
3533 ac_cv_use_stl='wxUSE_STL=no'
3534 fi
3535
3536else
3537
3538 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3539 if test "x$LINE" != x ; then
3540 eval "DEFAULT_$LINE"
3541 else
3542 no_cache=1
3543 fi
3544
3545 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3546
3547fi;
3548
3549 eval "$ac_cv_use_stl"
3550 if test "$no_cache" != 1; then
3551 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3552 fi
3553
3554 if test "$wxUSE_STL" = yes; then
3555 echo "$as_me:$LINENO: result: yes" >&5
3556echo "${ECHO_T}yes" >&6
3557 else
3558 echo "$as_me:$LINENO: result: no" >&5
3559echo "${ECHO_T}no" >&6
3560 fi
3561
3562if test "$USE_OS2" = "1"; then
3563
3564 enablestring=
3565 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3566echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3567 no_cache=0
3568 # Check whether --enable-omf or --disable-omf was given.
3569if test "${enable_omf+set}" = set; then
3570 enableval="$enable_omf"
3571
3572 if test "$enableval" = yes; then
3573 ac_cv_use_omf='wxUSE_OMF=yes'
3574 else
3575 ac_cv_use_omf='wxUSE_OMF=no'
3576 fi
3577
3578else
3579
3580 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3581 if test "x$LINE" != x ; then
3582 eval "DEFAULT_$LINE"
3583 else
3584 no_cache=1
3585 fi
3586
3587 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3588
3589fi;
3590
3591 eval "$ac_cv_use_omf"
3592 if test "$no_cache" != 1; then
3593 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3594 fi
3595
3596 if test "$wxUSE_OMF" = yes; then
3597 echo "$as_me:$LINENO: result: yes" >&5
3598echo "${ECHO_T}yes" >&6
3599 else
3600 echo "$as_me:$LINENO: result: no" >&5
3601echo "${ECHO_T}no" >&6
3602 fi
3603
3604fi
3605
3606if test "$wxUSE_DEBUG" = "yes"; then
3607 DEFAULT_wxUSE_DEBUG_FLAG=yes
3608 DEFAULT_wxUSE_DEBUG_INFO=yes
3609 BUILD=debug
3610elif test "$wxUSE_DEBUG" = "no"; then
3611 DEFAULT_wxUSE_DEBUG_FLAG=no
3612 DEFAULT_wxUSE_DEBUG_INFO=no
3613 BUILD=release
3614fi
3615
3616
3617 enablestring=
3618 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3619echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3620 no_cache=0
3621 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3622if test "${enable_debug_flag+set}" = set; then
3623 enableval="$enable_debug_flag"
3624
3625 if test "$enableval" = yes; then
3626 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3627 else
3628 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3629 fi
3630
3631else
3632
3633 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3634 if test "x$LINE" != x ; then
3635 eval "DEFAULT_$LINE"
3636 else
3637 no_cache=1
3638 fi
3639
3640 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3641
3642fi;
3643
3644 eval "$ac_cv_use_debug_flag"
3645 if test "$no_cache" != 1; then
3646 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3647 fi
3648
3649 if test "$wxUSE_DEBUG_FLAG" = yes; then
3650 echo "$as_me:$LINENO: result: yes" >&5
3651echo "${ECHO_T}yes" >&6
3652 else
3653 echo "$as_me:$LINENO: result: no" >&5
3654echo "${ECHO_T}no" >&6
3655 fi
3656
3657
3658 enablestring=
3659 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3660echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3661 no_cache=0
3662 # Check whether --enable-debug_info or --disable-debug_info was given.
3663if test "${enable_debug_info+set}" = set; then
3664 enableval="$enable_debug_info"
3665
3666 if test "$enableval" = yes; then
3667 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3668 else
3669 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3670 fi
3671
3672else
3673
3674 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3675 if test "x$LINE" != x ; then
3676 eval "DEFAULT_$LINE"
3677 else
3678 no_cache=1
3679 fi
3680
3681 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3682
3683fi;
3684
3685 eval "$ac_cv_use_debug_info"
3686 if test "$no_cache" != 1; then
3687 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3688 fi
3689
3690 if test "$wxUSE_DEBUG_INFO" = yes; then
3691 echo "$as_me:$LINENO: result: yes" >&5
3692echo "${ECHO_T}yes" >&6
3693 else
3694 echo "$as_me:$LINENO: result: no" >&5
3695echo "${ECHO_T}no" >&6
3696 fi
3697
3698
3699 enablestring=
3700 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3701echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3702 no_cache=0
3703 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3704if test "${enable_debug_gdb+set}" = set; then
3705 enableval="$enable_debug_gdb"
3706
3707 if test "$enableval" = yes; then
3708 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3709 else
3710 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3711 fi
3712
3713else
3714
3715 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3716 if test "x$LINE" != x ; then
3717 eval "DEFAULT_$LINE"
3718 else
3719 no_cache=1
3720 fi
3721
3722 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3723
3724fi;
3725
3726 eval "$ac_cv_use_debug_gdb"
3727 if test "$no_cache" != 1; then
3728 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3729 fi
3730
3731 if test "$wxUSE_DEBUG_GDB" = yes; then
3732 echo "$as_me:$LINENO: result: yes" >&5
3733echo "${ECHO_T}yes" >&6
3734 else
3735 echo "$as_me:$LINENO: result: no" >&5
3736echo "${ECHO_T}no" >&6
3737 fi
3738
3739
3740 enablestring=
3741 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3742echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3743 no_cache=0
3744 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3745if test "${enable_debug_cntxt+set}" = set; then
3746 enableval="$enable_debug_cntxt"
3747
3748 if test "$enableval" = yes; then
3749 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3750 else
3751 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3752 fi
3753
3754else
3755
3756 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3757 if test "x$LINE" != x ; then
3758 eval "DEFAULT_$LINE"
3759 else
3760 no_cache=1
3761 fi
3762
3763 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3764
3765fi;
3766
3767 eval "$ac_cv_use_debug_cntxt"
3768 if test "$no_cache" != 1; then
3769 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3770 fi
3771
3772 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3773 echo "$as_me:$LINENO: result: yes" >&5
3774echo "${ECHO_T}yes" >&6
3775 else
3776 echo "$as_me:$LINENO: result: no" >&5
3777echo "${ECHO_T}no" >&6
3778 fi
3779
3780
3781 enablestring=
3782 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3783echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3784 no_cache=0
3785 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3786if test "${enable_mem_tracing+set}" = set; then
3787 enableval="$enable_mem_tracing"
3788
3789 if test "$enableval" = yes; then
3790 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3791 else
3792 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3793 fi
3794
3795else
3796
3797 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3798 if test "x$LINE" != x ; then
3799 eval "DEFAULT_$LINE"
3800 else
3801 no_cache=1
3802 fi
3803
3804 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3805
3806fi;
3807
3808 eval "$ac_cv_use_mem_tracing"
3809 if test "$no_cache" != 1; then
3810 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3811 fi
3812
3813 if test "$wxUSE_MEM_TRACING" = yes; then
3814 echo "$as_me:$LINENO: result: yes" >&5
3815echo "${ECHO_T}yes" >&6
3816 else
3817 echo "$as_me:$LINENO: result: no" >&5
3818echo "${ECHO_T}no" >&6
3819 fi
3820
3821
3822 enablestring=
3823 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3824echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3825 no_cache=0
3826 # Check whether --enable-profile or --disable-profile was given.
3827if test "${enable_profile+set}" = set; then
3828 enableval="$enable_profile"
3829
3830 if test "$enableval" = yes; then
3831 ac_cv_use_profile='wxUSE_PROFILE=yes'
3832 else
3833 ac_cv_use_profile='wxUSE_PROFILE=no'
3834 fi
3835
3836else
3837
3838 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3839 if test "x$LINE" != x ; then
3840 eval "DEFAULT_$LINE"
3841 else
3842 no_cache=1
3843 fi
3844
3845 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3846
3847fi;
3848
3849 eval "$ac_cv_use_profile"
3850 if test "$no_cache" != 1; then
3851 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3852 fi
3853
3854 if test "$wxUSE_PROFILE" = yes; then
3855 echo "$as_me:$LINENO: result: yes" >&5
3856echo "${ECHO_T}yes" >&6
3857 else
3858 echo "$as_me:$LINENO: result: no" >&5
3859echo "${ECHO_T}no" >&6
3860 fi
3861
3862
3863 enablestring=
3864 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3865echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3866 no_cache=0
3867 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3868if test "${enable_no_rtti+set}" = set; then
3869 enableval="$enable_no_rtti"
3870
3871 if test "$enableval" = yes; then
3872 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3873 else
3874 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3875 fi
3876
3877else
3878
3879 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3880 if test "x$LINE" != x ; then
3881 eval "DEFAULT_$LINE"
3882 else
3883 no_cache=1
3884 fi
3885
3886 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3887
3888fi;
3889
3890 eval "$ac_cv_use_no_rtti"
3891 if test "$no_cache" != 1; then
3892 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3893 fi
3894
3895 if test "$wxUSE_NO_RTTI" = yes; then
3896 echo "$as_me:$LINENO: result: yes" >&5
3897echo "${ECHO_T}yes" >&6
3898 else
3899 echo "$as_me:$LINENO: result: no" >&5
3900echo "${ECHO_T}no" >&6
3901 fi
3902
3903
3904 enablestring=
3905 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3906echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3907 no_cache=0
3908 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3909if test "${enable_no_exceptions+set}" = set; then
3910 enableval="$enable_no_exceptions"
3911
3912 if test "$enableval" = yes; then
3913 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3914 else
3915 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3916 fi
3917
3918else
3919
3920 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3921 if test "x$LINE" != x ; then
3922 eval "DEFAULT_$LINE"
3923 else
3924 no_cache=1
3925 fi
3926
3927 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3928
3929fi;
3930
3931 eval "$ac_cv_use_no_exceptions"
3932 if test "$no_cache" != 1; then
3933 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3934 fi
3935
3936 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3937 echo "$as_me:$LINENO: result: yes" >&5
3938echo "${ECHO_T}yes" >&6
3939 else
3940 echo "$as_me:$LINENO: result: no" >&5
3941echo "${ECHO_T}no" >&6
3942 fi
3943
3944
3945 enablestring=
3946 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3947echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
3948 no_cache=0
3949 # Check whether --enable-permissive or --disable-permissive was given.
3950if test "${enable_permissive+set}" = set; then
3951 enableval="$enable_permissive"
3952
3953 if test "$enableval" = yes; then
3954 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3955 else
3956 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3957 fi
3958
3959else
3960
3961 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3962 if test "x$LINE" != x ; then
3963 eval "DEFAULT_$LINE"
3964 else
3965 no_cache=1
3966 fi
3967
3968 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
3969
3970fi;
3971
3972 eval "$ac_cv_use_permissive"
3973 if test "$no_cache" != 1; then
3974 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3975 fi
3976
3977 if test "$wxUSE_PERMISSIVE" = yes; then
3978 echo "$as_me:$LINENO: result: yes" >&5
3979echo "${ECHO_T}yes" >&6
3980 else
3981 echo "$as_me:$LINENO: result: no" >&5
3982echo "${ECHO_T}no" >&6
3983 fi
3984
3985
3986 enablestring=
3987 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3988echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
3989 no_cache=0
3990 # Check whether --enable-no_deps or --disable-no_deps was given.
3991if test "${enable_no_deps+set}" = set; then
3992 enableval="$enable_no_deps"
3993
3994 if test "$enableval" = yes; then
3995 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3996 else
3997 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3998 fi
3999
4000else
4001
4002 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4003 if test "x$LINE" != x ; then
4004 eval "DEFAULT_$LINE"
4005 else
4006 no_cache=1
4007 fi
4008
4009 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4010
4011fi;
4012
4013 eval "$ac_cv_use_no_deps"
4014 if test "$no_cache" != 1; then
4015 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4016 fi
4017
4018 if test "$wxUSE_NO_DEPS" = yes; then
4019 echo "$as_me:$LINENO: result: yes" >&5
4020echo "${ECHO_T}yes" >&6
4021 else
4022 echo "$as_me:$LINENO: result: no" >&5
4023echo "${ECHO_T}no" >&6
4024 fi
4025
4026
4027
4028 enablestring=
4029 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4030echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4031 no_cache=0
4032 # Check whether --enable-compat22 or --disable-compat22 was given.
4033if test "${enable_compat22+set}" = set; then
4034 enableval="$enable_compat22"
4035
4036 if test "$enableval" = yes; then
4037 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4038 else
4039 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4040 fi
4041
4042else
4043
4044 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4045 if test "x$LINE" != x ; then
4046 eval "DEFAULT_$LINE"
4047 else
4048 no_cache=1
4049 fi
4050
4051 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4052
4053fi;
4054
4055 eval "$ac_cv_use_compat22"
4056 if test "$no_cache" != 1; then
4057 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4058 fi
4059
4060 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4061 echo "$as_me:$LINENO: result: yes" >&5
4062echo "${ECHO_T}yes" >&6
4063 else
4064 echo "$as_me:$LINENO: result: no" >&5
4065echo "${ECHO_T}no" >&6
4066 fi
4067
4068
4069 enablestring=disable
4070 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4071echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4072 no_cache=0
4073 # Check whether --enable-compat24 or --disable-compat24 was given.
4074if test "${enable_compat24+set}" = set; then
4075 enableval="$enable_compat24"
4076
4077 if test "$enableval" = yes; then
4078 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4079 else
4080 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4081 fi
4082
4083else
4084
4085 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4086 if test "x$LINE" != x ; then
4087 eval "DEFAULT_$LINE"
4088 else
4089 no_cache=1
4090 fi
4091
4092 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4093
4094fi;
4095
4096 eval "$ac_cv_use_compat24"
4097 if test "$no_cache" != 1; then
4098 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4099 fi
4100
4101 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4102 echo "$as_me:$LINENO: result: yes" >&5
4103echo "${ECHO_T}yes" >&6
4104 else
4105 echo "$as_me:$LINENO: result: no" >&5
4106echo "${ECHO_T}no" >&6
4107 fi
4108
4109
4110# Check whether --enable-rpath or --disable-rpath was given.
4111if test "${enable_rpath+set}" = set; then
4112 enableval="$enable_rpath"
4113 wxRPATH_DIR="$enableval"
4114fi;
4115
ac1cb8d3 4116if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable" -a "$wxRPATH_DIR" != "no"; then
a848cd7e
SC
4117 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
4118fi
4119
4120
4121
4122
4123 enablestring=
4124 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4125echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4126 no_cache=0
4127 # Check whether --enable-intl or --disable-intl was given.
4128if test "${enable_intl+set}" = set; then
4129 enableval="$enable_intl"
4130
4131 if test "$enableval" = yes; then
4132 ac_cv_use_intl='wxUSE_INTL=yes'
4133 else
4134 ac_cv_use_intl='wxUSE_INTL=no'
4135 fi
4136
4137else
4138
4139 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4140 if test "x$LINE" != x ; then
4141 eval "DEFAULT_$LINE"
4142 else
4143 no_cache=1
4144 fi
4145
4146 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4147
4148fi;
4149
4150 eval "$ac_cv_use_intl"
4151 if test "$no_cache" != 1; then
4152 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4153 fi
4154
4155 if test "$wxUSE_INTL" = yes; then
4156 echo "$as_me:$LINENO: result: yes" >&5
4157echo "${ECHO_T}yes" >&6
4158 else
4159 echo "$as_me:$LINENO: result: no" >&5
4160echo "${ECHO_T}no" >&6
4161 fi
4162
4163
4164 enablestring=
4165 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4166echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4167 no_cache=0
4168 # Check whether --enable-config or --disable-config was given.
4169if test "${enable_config+set}" = set; then
4170 enableval="$enable_config"
4171
4172 if test "$enableval" = yes; then
4173 ac_cv_use_config='wxUSE_CONFIG=yes'
4174 else
4175 ac_cv_use_config='wxUSE_CONFIG=no'
4176 fi
4177
4178else
4179
4180 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4181 if test "x$LINE" != x ; then
4182 eval "DEFAULT_$LINE"
4183 else
4184 no_cache=1
4185 fi
4186
4187 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4188
4189fi;
4190
4191 eval "$ac_cv_use_config"
4192 if test "$no_cache" != 1; then
4193 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4194 fi
4195
4196 if test "$wxUSE_CONFIG" = yes; then
4197 echo "$as_me:$LINENO: result: yes" >&5
4198echo "${ECHO_T}yes" >&6
4199 else
4200 echo "$as_me:$LINENO: result: no" >&5
4201echo "${ECHO_T}no" >&6
4202 fi
4203
4204
4205
4206 enablestring=
4207 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4208echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4209 no_cache=0
4210 # Check whether --enable-protocols or --disable-protocols was given.
4211if test "${enable_protocols+set}" = set; then
4212 enableval="$enable_protocols"
4213
4214 if test "$enableval" = yes; then
4215 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4216 else
4217 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4218 fi
4219
4220else
4221
4222 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4223 if test "x$LINE" != x ; then
4224 eval "DEFAULT_$LINE"
4225 else
4226 no_cache=1
4227 fi
4228
4229 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4230
4231fi;
4232
4233 eval "$ac_cv_use_protocols"
4234 if test "$no_cache" != 1; then
4235 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4236 fi
4237
4238 if test "$wxUSE_PROTOCOL" = yes; then
4239 echo "$as_me:$LINENO: result: yes" >&5
4240echo "${ECHO_T}yes" >&6
4241 else
4242 echo "$as_me:$LINENO: result: no" >&5
4243echo "${ECHO_T}no" >&6
4244 fi
4245
4246
4247 enablestring=
4248 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4249echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4250 no_cache=0
4251 # Check whether --enable-ftp or --disable-ftp was given.
4252if test "${enable_ftp+set}" = set; then
4253 enableval="$enable_ftp"
4254
4255 if test "$enableval" = yes; then
4256 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4257 else
4258 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4259 fi
4260
4261else
4262
4263 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4264 if test "x$LINE" != x ; then
4265 eval "DEFAULT_$LINE"
4266 else
4267 no_cache=1
4268 fi
4269
4270 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4271
4272fi;
4273
4274 eval "$ac_cv_use_ftp"
4275 if test "$no_cache" != 1; then
4276 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4277 fi
4278
4279 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4280 echo "$as_me:$LINENO: result: yes" >&5
4281echo "${ECHO_T}yes" >&6
4282 else
4283 echo "$as_me:$LINENO: result: no" >&5
4284echo "${ECHO_T}no" >&6
4285 fi
4286
4287
4288 enablestring=
4289 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4290echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4291 no_cache=0
4292 # Check whether --enable-http or --disable-http was given.
4293if test "${enable_http+set}" = set; then
4294 enableval="$enable_http"
4295
4296 if test "$enableval" = yes; then
4297 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4298 else
4299 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4300 fi
4301
4302else
4303
4304 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4305 if test "x$LINE" != x ; then
4306 eval "DEFAULT_$LINE"
4307 else
4308 no_cache=1
4309 fi
4310
4311 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4312
4313fi;
4314
4315 eval "$ac_cv_use_http"
4316 if test "$no_cache" != 1; then
4317 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4318 fi
4319
4320 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4321 echo "$as_me:$LINENO: result: yes" >&5
4322echo "${ECHO_T}yes" >&6
4323 else
4324 echo "$as_me:$LINENO: result: no" >&5
4325echo "${ECHO_T}no" >&6
4326 fi
4327
4328
4329 enablestring=
4330 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4331echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4332 no_cache=0
4333 # Check whether --enable-fileproto or --disable-fileproto was given.
4334if test "${enable_fileproto+set}" = set; then
4335 enableval="$enable_fileproto"
4336
4337 if test "$enableval" = yes; then
4338 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4339 else
4340 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4341 fi
4342
4343else
4344
4345 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4346 if test "x$LINE" != x ; then
4347 eval "DEFAULT_$LINE"
4348 else
4349 no_cache=1
4350 fi
4351
4352 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4353
4354fi;
4355
4356 eval "$ac_cv_use_fileproto"
4357 if test "$no_cache" != 1; then
4358 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4359 fi
4360
4361 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4362 echo "$as_me:$LINENO: result: yes" >&5
4363echo "${ECHO_T}yes" >&6
4364 else
4365 echo "$as_me:$LINENO: result: no" >&5
4366echo "${ECHO_T}no" >&6
4367 fi
4368
4369
4370 enablestring=
4371 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4372echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4373 no_cache=0
4374 # Check whether --enable-sockets or --disable-sockets was given.
4375if test "${enable_sockets+set}" = set; then
4376 enableval="$enable_sockets"
4377
4378 if test "$enableval" = yes; then
4379 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4380 else
4381 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4382 fi
4383
4384else
4385
4386 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4387 if test "x$LINE" != x ; then
4388 eval "DEFAULT_$LINE"
4389 else
4390 no_cache=1
4391 fi
4392
4393 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4394
4395fi;
4396
4397 eval "$ac_cv_use_sockets"
4398 if test "$no_cache" != 1; then
4399 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4400 fi
4401
4402 if test "$wxUSE_SOCKETS" = yes; then
4403 echo "$as_me:$LINENO: result: yes" >&5
4404echo "${ECHO_T}yes" >&6
4405 else
4406 echo "$as_me:$LINENO: result: no" >&5
4407echo "${ECHO_T}no" >&6
4408 fi
4409
4410
4411 enablestring=
4412 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4413echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4414 no_cache=0
4415 # Check whether --enable-ole or --disable-ole was given.
4416if test "${enable_ole+set}" = set; then
4417 enableval="$enable_ole"
4418
4419 if test "$enableval" = yes; then
4420 ac_cv_use_ole='wxUSE_OLE=yes'
4421 else
4422 ac_cv_use_ole='wxUSE_OLE=no'
4423 fi
4424
4425else
4426
4427 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4428 if test "x$LINE" != x ; then
4429 eval "DEFAULT_$LINE"
4430 else
4431 no_cache=1
4432 fi
4433
4434 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4435
4436fi;
4437
4438 eval "$ac_cv_use_ole"
4439 if test "$no_cache" != 1; then
4440 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4441 fi
4442
4443 if test "$wxUSE_OLE" = yes; then
4444 echo "$as_me:$LINENO: result: yes" >&5
4445echo "${ECHO_T}yes" >&6
4446 else
4447 echo "$as_me:$LINENO: result: no" >&5
4448echo "${ECHO_T}no" >&6
4449 fi
4450
4451
4452 enablestring=
4453 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4454echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4455 no_cache=0
4456 # Check whether --enable-dataobj or --disable-dataobj was given.
4457if test "${enable_dataobj+set}" = set; then
4458 enableval="$enable_dataobj"
4459
4460 if test "$enableval" = yes; then
4461 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4462 else
4463 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4464 fi
4465
4466else
4467
4468 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4469 if test "x$LINE" != x ; then
4470 eval "DEFAULT_$LINE"
4471 else
4472 no_cache=1
4473 fi
4474
4475 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4476
4477fi;
4478
4479 eval "$ac_cv_use_dataobj"
4480 if test "$no_cache" != 1; then
4481 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4482 fi
4483
4484 if test "$wxUSE_DATAOBJ" = yes; then
4485 echo "$as_me:$LINENO: result: yes" >&5
4486echo "${ECHO_T}yes" >&6
4487 else
4488 echo "$as_me:$LINENO: result: no" >&5
4489echo "${ECHO_T}no" >&6
4490 fi
4491
4492
4493
4494 enablestring=
4495 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4496echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4497 no_cache=0
4498 # Check whether --enable-ipc or --disable-ipc was given.
4499if test "${enable_ipc+set}" = set; then
4500 enableval="$enable_ipc"
4501
4502 if test "$enableval" = yes; then
4503 ac_cv_use_ipc='wxUSE_IPC=yes'
4504 else
4505 ac_cv_use_ipc='wxUSE_IPC=no'
4506 fi
4507
4508else
4509
4510 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4511 if test "x$LINE" != x ; then
4512 eval "DEFAULT_$LINE"
4513 else
4514 no_cache=1
4515 fi
4516
4517 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4518
4519fi;
4520
4521 eval "$ac_cv_use_ipc"
4522 if test "$no_cache" != 1; then
4523 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4524 fi
4525
4526 if test "$wxUSE_IPC" = yes; then
4527 echo "$as_me:$LINENO: result: yes" >&5
4528echo "${ECHO_T}yes" >&6
4529 else
4530 echo "$as_me:$LINENO: result: no" >&5
4531echo "${ECHO_T}no" >&6
4532 fi
4533
4534
4535
4536 enablestring=
4537 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4538echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4539 no_cache=0
4540 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4541if test "${enable_apple_ieee+set}" = set; then
4542 enableval="$enable_apple_ieee"
4543
4544 if test "$enableval" = yes; then
4545 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4546 else
4547 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4548 fi
4549
4550else
4551
4552 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4553 if test "x$LINE" != x ; then
4554 eval "DEFAULT_$LINE"
4555 else
4556 no_cache=1
4557 fi
4558
4559 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4560
4561fi;
4562
4563 eval "$ac_cv_use_apple_ieee"
4564 if test "$no_cache" != 1; then
4565 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4566 fi
4567
4568 if test "$wxUSE_APPLE_IEEE" = yes; then
4569 echo "$as_me:$LINENO: result: yes" >&5
4570echo "${ECHO_T}yes" >&6
4571 else
4572 echo "$as_me:$LINENO: result: no" >&5
4573echo "${ECHO_T}no" >&6
4574 fi
4575
4576
4577 enablestring=
4578 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4579echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
4580 no_cache=0
4581 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4582if test "${enable_catch_segvs+set}" = set; then
4583 enableval="$enable_catch_segvs"
4584
4585 if test "$enableval" = yes; then
4586 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4587 else
4588 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4589 fi
4590
4591else
4592
4593 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4594 if test "x$LINE" != x ; then
4595 eval "DEFAULT_$LINE"
4596 else
4597 no_cache=1
4598 fi
4599
4600 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4601
4602fi;
4603
4604 eval "$ac_cv_use_catch_segvs"
4605 if test "$no_cache" != 1; then
4606 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4607 fi
4608
4609 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4610 echo "$as_me:$LINENO: result: yes" >&5
4611echo "${ECHO_T}yes" >&6
4612 else
4613 echo "$as_me:$LINENO: result: no" >&5
4614echo "${ECHO_T}no" >&6
4615 fi
4616
4617
4618 enablestring=
4619 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4620echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4621 no_cache=0
4622 # Check whether --enable-cmdline or --disable-cmdline was given.
4623if test "${enable_cmdline+set}" = set; then
4624 enableval="$enable_cmdline"
4625
4626 if test "$enableval" = yes; then
4627 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4628 else
4629 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4630 fi
4631
4632else
4633
4634 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4635 if test "x$LINE" != x ; then
4636 eval "DEFAULT_$LINE"
4637 else
4638 no_cache=1
4639 fi
4640
4641 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4642
4643fi;
4644
4645 eval "$ac_cv_use_cmdline"
4646 if test "$no_cache" != 1; then
4647 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4648 fi
4649
4650 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4651 echo "$as_me:$LINENO: result: yes" >&5
4652echo "${ECHO_T}yes" >&6
4653 else
4654 echo "$as_me:$LINENO: result: no" >&5
4655echo "${ECHO_T}no" >&6
4656 fi
4657
4658
4659 enablestring=
4660 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4661echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4662 no_cache=0
4663 # Check whether --enable-datetime or --disable-datetime was given.
4664if test "${enable_datetime+set}" = set; then
4665 enableval="$enable_datetime"
4666
4667 if test "$enableval" = yes; then
4668 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4669 else
4670 ac_cv_use_datetime='wxUSE_DATETIME=no'
4671 fi
4672
4673else
4674
4675 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4676 if test "x$LINE" != x ; then
4677 eval "DEFAULT_$LINE"
4678 else
4679 no_cache=1
4680 fi
4681
4682 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4683
4684fi;
4685
4686 eval "$ac_cv_use_datetime"
4687 if test "$no_cache" != 1; then
4688 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4689 fi
4690
4691 if test "$wxUSE_DATETIME" = yes; then
4692 echo "$as_me:$LINENO: result: yes" >&5
4693echo "${ECHO_T}yes" >&6
4694 else
4695 echo "$as_me:$LINENO: result: no" >&5
4696echo "${ECHO_T}no" >&6
4697 fi
4698
4699
4700 enablestring=
4701 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4702echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4703 no_cache=0
4704 # Check whether --enable-dialupman or --disable-dialupman was given.
4705if test "${enable_dialupman+set}" = set; then
4706 enableval="$enable_dialupman"
4707
4708 if test "$enableval" = yes; then
4709 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4710 else
4711 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4712 fi
4713
4714else
4715
4716 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4717 if test "x$LINE" != x ; then
4718 eval "DEFAULT_$LINE"
4719 else
4720 no_cache=1
4721 fi
4722
4723 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4724
4725fi;
4726
4727 eval "$ac_cv_use_dialupman"
4728 if test "$no_cache" != 1; then
4729 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4730 fi
4731
4732 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4733 echo "$as_me:$LINENO: result: yes" >&5
4734echo "${ECHO_T}yes" >&6
4735 else
4736 echo "$as_me:$LINENO: result: no" >&5
4737echo "${ECHO_T}no" >&6
4738 fi
4739
4740
4741 enablestring=
4742 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4743echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4744 no_cache=0
4745 # Check whether --enable-dynlib or --disable-dynlib was given.
4746if test "${enable_dynlib+set}" = set; then
4747 enableval="$enable_dynlib"
4748
4749 if test "$enableval" = yes; then
4750 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4751 else
4752 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4753 fi
4754
4755else
4756
4757 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4758 if test "x$LINE" != x ; then
4759 eval "DEFAULT_$LINE"
4760 else
4761 no_cache=1
4762 fi
4763
4764 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4765
4766fi;
4767
4768 eval "$ac_cv_use_dynlib"
4769 if test "$no_cache" != 1; then
4770 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4771 fi
4772
4773 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4774 echo "$as_me:$LINENO: result: yes" >&5
4775echo "${ECHO_T}yes" >&6
4776 else
4777 echo "$as_me:$LINENO: result: no" >&5
4778echo "${ECHO_T}no" >&6
4779 fi
4780
4781
4782 enablestring=
4783 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4784echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4785 no_cache=0
4786 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4787if test "${enable_dynamicloader+set}" = set; then
4788 enableval="$enable_dynamicloader"
4789
4790 if test "$enableval" = yes; then
4791 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4792 else
4793 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4794 fi
4795
4796else
4797
4798 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4799 if test "x$LINE" != x ; then
4800 eval "DEFAULT_$LINE"
4801 else
4802 no_cache=1
4803 fi
4804
4805 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
4806
4807fi;
4808
4809 eval "$ac_cv_use_dynamicloader"
4810 if test "$no_cache" != 1; then
4811 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4812 fi
4813
4814 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
4815 echo "$as_me:$LINENO: result: yes" >&5
4816echo "${ECHO_T}yes" >&6
4817 else
4818 echo "$as_me:$LINENO: result: no" >&5
4819echo "${ECHO_T}no" >&6
4820 fi
4821
4822
4823 enablestring=
4824 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
4825echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
4826 no_cache=0
4827 # Check whether --enable-exceptions or --disable-exceptions was given.
4828if test "${enable_exceptions+set}" = set; then
4829 enableval="$enable_exceptions"
4830
4831 if test "$enableval" = yes; then
4832 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
4833 else
4834 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
4835 fi
4836
4837else
4838
4839 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
4840 if test "x$LINE" != x ; then
4841 eval "DEFAULT_$LINE"
4842 else
4843 no_cache=1
4844 fi
4845
4846 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
4847
4848fi;
4849
4850 eval "$ac_cv_use_exceptions"
4851 if test "$no_cache" != 1; then
4852 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
4853 fi
4854
4855 if test "$wxUSE_EXCEPTIONS" = yes; then
4856 echo "$as_me:$LINENO: result: yes" >&5
4857echo "${ECHO_T}yes" >&6
4858 else
4859 echo "$as_me:$LINENO: result: no" >&5
4860echo "${ECHO_T}no" >&6
4861 fi
4862
4863
4864 enablestring=
4865 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4866echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
4867 no_cache=0
4868 # Check whether --enable-ffile or --disable-ffile was given.
4869if test "${enable_ffile+set}" = set; then
4870 enableval="$enable_ffile"
4871
4872 if test "$enableval" = yes; then
4873 ac_cv_use_ffile='wxUSE_FFILE=yes'
4874 else
4875 ac_cv_use_ffile='wxUSE_FFILE=no'
4876 fi
4877
4878else
4879
4880 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4881 if test "x$LINE" != x ; then
4882 eval "DEFAULT_$LINE"
4883 else
4884 no_cache=1
4885 fi
4886
4887 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4888
4889fi;
4890
4891 eval "$ac_cv_use_ffile"
4892 if test "$no_cache" != 1; then
4893 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4894 fi
4895
4896 if test "$wxUSE_FFILE" = yes; then
4897 echo "$as_me:$LINENO: result: yes" >&5
4898echo "${ECHO_T}yes" >&6
4899 else
4900 echo "$as_me:$LINENO: result: no" >&5
4901echo "${ECHO_T}no" >&6
4902 fi
4903
4904
4905 enablestring=
4906 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4907echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
4908 no_cache=0
4909 # Check whether --enable-file or --disable-file was given.
4910if test "${enable_file+set}" = set; then
4911 enableval="$enable_file"
4912
4913 if test "$enableval" = yes; then
4914 ac_cv_use_file='wxUSE_FILE=yes'
4915 else
4916 ac_cv_use_file='wxUSE_FILE=no'
4917 fi
4918
4919else
4920
4921 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4922 if test "x$LINE" != x ; then
4923 eval "DEFAULT_$LINE"
4924 else
4925 no_cache=1
4926 fi
4927
4928 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
4929
4930fi;
4931
4932 eval "$ac_cv_use_file"
4933 if test "$no_cache" != 1; then
4934 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4935 fi
4936
4937 if test "$wxUSE_FILE" = yes; then
4938 echo "$as_me:$LINENO: result: yes" >&5
4939echo "${ECHO_T}yes" >&6
4940 else
4941 echo "$as_me:$LINENO: result: no" >&5
4942echo "${ECHO_T}no" >&6
4943 fi
4944
4945
4946 enablestring=
4947 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
4948echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
4949 no_cache=0
4950 # Check whether --enable-filesystem or --disable-filesystem was given.
4951if test "${enable_filesystem+set}" = set; then
4952 enableval="$enable_filesystem"
4953
4954 if test "$enableval" = yes; then
4955 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4956 else
4957 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4958 fi
4959
4960else
4961
4962 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4963 if test "x$LINE" != x ; then
4964 eval "DEFAULT_$LINE"
4965 else
4966 no_cache=1
4967 fi
4968
4969 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4970
4971fi;
4972
4973 eval "$ac_cv_use_filesystem"
4974 if test "$no_cache" != 1; then
4975 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4976 fi
4977
4978 if test "$wxUSE_FILESYSTEM" = yes; then
4979 echo "$as_me:$LINENO: result: yes" >&5
4980echo "${ECHO_T}yes" >&6
4981 else
4982 echo "$as_me:$LINENO: result: no" >&5
4983echo "${ECHO_T}no" >&6
4984 fi
4985
4986
4987 enablestring=
4988 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
4989echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
4990 no_cache=0
4991 # Check whether --enable-fontmap or --disable-fontmap was given.
4992if test "${enable_fontmap+set}" = set; then
4993 enableval="$enable_fontmap"
4994
4995 if test "$enableval" = yes; then
4996 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4997 else
4998 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4999 fi
5000
5001else
5002
5003 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5004 if test "x$LINE" != x ; then
5005 eval "DEFAULT_$LINE"
5006 else
5007 no_cache=1
5008 fi
5009
5010 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5011
5012fi;
5013
5014 eval "$ac_cv_use_fontmap"
5015 if test "$no_cache" != 1; then
5016 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5017 fi
5018
5019 if test "$wxUSE_FONTMAP" = yes; then
5020 echo "$as_me:$LINENO: result: yes" >&5
5021echo "${ECHO_T}yes" >&6
5022 else
5023 echo "$as_me:$LINENO: result: no" >&5
5024echo "${ECHO_T}no" >&6
5025 fi
5026
5027
5028 enablestring=
5029 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5030echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5031 no_cache=0
5032 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5033if test "${enable_fs_inet+set}" = set; then
5034 enableval="$enable_fs_inet"
5035
5036 if test "$enableval" = yes; then
5037 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5038 else
5039 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5040 fi
5041
5042else
5043
5044 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5045 if test "x$LINE" != x ; then
5046 eval "DEFAULT_$LINE"
5047 else
5048 no_cache=1
5049 fi
5050
5051 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5052
5053fi;
5054
5055 eval "$ac_cv_use_fs_inet"
5056 if test "$no_cache" != 1; then
5057 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5058 fi
5059
5060 if test "$wxUSE_FS_INET" = yes; then
5061 echo "$as_me:$LINENO: result: yes" >&5
5062echo "${ECHO_T}yes" >&6
5063 else
5064 echo "$as_me:$LINENO: result: no" >&5
5065echo "${ECHO_T}no" >&6
5066 fi
5067
5068
5069 enablestring=
5070 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5071echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5072 no_cache=0
5073 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5074if test "${enable_fs_zip+set}" = set; then
5075 enableval="$enable_fs_zip"
5076
5077 if test "$enableval" = yes; then
5078 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5079 else
5080 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5081 fi
5082
5083else
5084
5085 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5086 if test "x$LINE" != x ; then
5087 eval "DEFAULT_$LINE"
5088 else
5089 no_cache=1
5090 fi
5091
5092 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5093
5094fi;
5095
5096 eval "$ac_cv_use_fs_zip"
5097 if test "$no_cache" != 1; then
5098 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5099 fi
5100
5101 if test "$wxUSE_FS_ZIP" = yes; then
5102 echo "$as_me:$LINENO: result: yes" >&5
5103echo "${ECHO_T}yes" >&6
5104 else
5105 echo "$as_me:$LINENO: result: no" >&5
5106echo "${ECHO_T}no" >&6
5107 fi
5108
5109
5110 enablestring=
5111 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5112echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5113 no_cache=0
5114 # Check whether --enable-geometry or --disable-geometry was given.
5115if test "${enable_geometry+set}" = set; then
5116 enableval="$enable_geometry"
5117
5118 if test "$enableval" = yes; then
5119 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5120 else
5121 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5122 fi
5123
5124else
5125
5126 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5127 if test "x$LINE" != x ; then
5128 eval "DEFAULT_$LINE"
5129 else
5130 no_cache=1
5131 fi
5132
5133 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5134
5135fi;
5136
5137 eval "$ac_cv_use_geometry"
5138 if test "$no_cache" != 1; then
5139 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5140 fi
5141
5142 if test "$wxUSE_GEOMETRY" = yes; then
5143 echo "$as_me:$LINENO: result: yes" >&5
5144echo "${ECHO_T}yes" >&6
5145 else
5146 echo "$as_me:$LINENO: result: no" >&5
5147echo "${ECHO_T}no" >&6
5148 fi
5149
5150
5151 enablestring=
5152 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5153echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5154 no_cache=0
5155 # Check whether --enable-log or --disable-log was given.
5156if test "${enable_log+set}" = set; then
5157 enableval="$enable_log"
5158
5159 if test "$enableval" = yes; then
5160 ac_cv_use_log='wxUSE_LOG=yes'
5161 else
5162 ac_cv_use_log='wxUSE_LOG=no'
5163 fi
5164
5165else
5166
5167 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5168 if test "x$LINE" != x ; then
5169 eval "DEFAULT_$LINE"
5170 else
5171 no_cache=1
5172 fi
5173
5174 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5175
5176fi;
5177
5178 eval "$ac_cv_use_log"
5179 if test "$no_cache" != 1; then
5180 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5181 fi
5182
5183 if test "$wxUSE_LOG" = yes; then
5184 echo "$as_me:$LINENO: result: yes" >&5
5185echo "${ECHO_T}yes" >&6
5186 else
5187 echo "$as_me:$LINENO: result: no" >&5
5188echo "${ECHO_T}no" >&6
5189 fi
5190
5191
5192 enablestring=
5193 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5194echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5195 no_cache=0
5196 # Check whether --enable-longlong or --disable-longlong was given.
5197if test "${enable_longlong+set}" = set; then
5198 enableval="$enable_longlong"
5199
5200 if test "$enableval" = yes; then
5201 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5202 else
5203 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5204 fi
5205
5206else
5207
5208 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5209 if test "x$LINE" != x ; then
5210 eval "DEFAULT_$LINE"
5211 else
5212 no_cache=1
5213 fi
5214
5215 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5216
5217fi;
5218
5219 eval "$ac_cv_use_longlong"
5220 if test "$no_cache" != 1; then
5221 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5222 fi
5223
5224 if test "$wxUSE_LONGLONG" = yes; then
5225 echo "$as_me:$LINENO: result: yes" >&5
5226echo "${ECHO_T}yes" >&6
5227 else
5228 echo "$as_me:$LINENO: result: no" >&5
5229echo "${ECHO_T}no" >&6
5230 fi
5231
5232
5233 enablestring=
5234 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5235echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5236 no_cache=0
5237 # Check whether --enable-mimetype or --disable-mimetype was given.
5238if test "${enable_mimetype+set}" = set; then
5239 enableval="$enable_mimetype"
5240
5241 if test "$enableval" = yes; then
5242 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5243 else
5244 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5245 fi
5246
5247else
5248
5249 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5250 if test "x$LINE" != x ; then
5251 eval "DEFAULT_$LINE"
5252 else
5253 no_cache=1
5254 fi
5255
5256 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5257
5258fi;
5259
5260 eval "$ac_cv_use_mimetype"
5261 if test "$no_cache" != 1; then
5262 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5263 fi
5264
5265 if test "$wxUSE_MIMETYPE" = yes; then
5266 echo "$as_me:$LINENO: result: yes" >&5
5267echo "${ECHO_T}yes" >&6
5268 else
5269 echo "$as_me:$LINENO: result: no" >&5
5270echo "${ECHO_T}no" >&6
5271 fi
5272
5273
5274 enablestring=
5275 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5276echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5277 no_cache=0
5278 # Check whether --enable-mslu or --disable-mslu was given.
5279if test "${enable_mslu+set}" = set; then
5280 enableval="$enable_mslu"
5281
5282 if test "$enableval" = yes; then
5283 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5284 else
5285 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5286 fi
5287
5288else
5289
5290 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5291 if test "x$LINE" != x ; then
5292 eval "DEFAULT_$LINE"
5293 else
5294 no_cache=1
5295 fi
5296
5297 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5298
5299fi;
5300
5301 eval "$ac_cv_use_mslu"
5302 if test "$no_cache" != 1; then
5303 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5304 fi
5305
5306 if test "$wxUSE_UNICODE_MSLU" = yes; then
5307 echo "$as_me:$LINENO: result: yes" >&5
5308echo "${ECHO_T}yes" >&6
5309 else
5310 echo "$as_me:$LINENO: result: no" >&5
5311echo "${ECHO_T}no" >&6
5312 fi
5313
5314
5315 enablestring=
5316 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5317echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5318 no_cache=0
5319 # Check whether --enable-snglinst or --disable-snglinst was given.
5320if test "${enable_snglinst+set}" = set; then
5321 enableval="$enable_snglinst"
5322
5323 if test "$enableval" = yes; then
5324 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5325 else
5326 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5327 fi
5328
5329else
5330
5331 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5332 if test "x$LINE" != x ; then
5333 eval "DEFAULT_$LINE"
5334 else
5335 no_cache=1
5336 fi
5337
5338 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5339
5340fi;
5341
5342 eval "$ac_cv_use_snglinst"
5343 if test "$no_cache" != 1; then
5344 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5345 fi
5346
5347 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5348 echo "$as_me:$LINENO: result: yes" >&5
5349echo "${ECHO_T}yes" >&6
5350 else
5351 echo "$as_me:$LINENO: result: no" >&5
5352echo "${ECHO_T}no" >&6
5353 fi
5354
5355
5356 enablestring=
5357 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5358echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5359 no_cache=0
5360 # Check whether --enable-streams or --disable-streams was given.
5361if test "${enable_streams+set}" = set; then
5362 enableval="$enable_streams"
5363
5364 if test "$enableval" = yes; then
5365 ac_cv_use_streams='wxUSE_STREAMS=yes'
5366 else
5367 ac_cv_use_streams='wxUSE_STREAMS=no'
5368 fi
5369
5370else
5371
5372 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5373 if test "x$LINE" != x ; then
5374 eval "DEFAULT_$LINE"
5375 else
5376 no_cache=1
5377 fi
5378
5379 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5380
5381fi;
5382
5383 eval "$ac_cv_use_streams"
5384 if test "$no_cache" != 1; then
5385 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5386 fi
5387
5388 if test "$wxUSE_STREAMS" = yes; then
5389 echo "$as_me:$LINENO: result: yes" >&5
5390echo "${ECHO_T}yes" >&6
5391 else
5392 echo "$as_me:$LINENO: result: no" >&5
5393echo "${ECHO_T}no" >&6
5394 fi
5395
5396
5397 enablestring=
5398 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5399echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5400 no_cache=0
5401 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5402if test "${enable_std_iostreams+set}" = set; then
5403 enableval="$enable_std_iostreams"
5404
5405 if test "$enableval" = yes; then
5406 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5407 else
5408 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5409 fi
5410
5411else
5412
5413 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5414 if test "x$LINE" != x ; then
5415 eval "DEFAULT_$LINE"
5416 else
5417 no_cache=1
5418 fi
5419
5420 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5421
5422fi;
5423
5424 eval "$ac_cv_use_std_iostreams"
5425 if test "$no_cache" != 1; then
5426 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5427 fi
5428
5429 if test "$wxUSE_STD_IOSTREAM" = yes; then
5430 echo "$as_me:$LINENO: result: yes" >&5
5431echo "${ECHO_T}yes" >&6
5432 else
5433 echo "$as_me:$LINENO: result: no" >&5
5434echo "${ECHO_T}no" >&6
5435 fi
5436
5437
5438 enablestring=
5439 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5440echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5441 no_cache=0
5442 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5443if test "${enable_stopwatch+set}" = set; then
5444 enableval="$enable_stopwatch"
5445
5446 if test "$enableval" = yes; then
5447 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5448 else
5449 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5450 fi
5451
5452else
5453
5454 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5455 if test "x$LINE" != x ; then
5456 eval "DEFAULT_$LINE"
5457 else
5458 no_cache=1
5459 fi
5460
5461 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5462
5463fi;
5464
5465 eval "$ac_cv_use_stopwatch"
5466 if test "$no_cache" != 1; then
5467 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5468 fi
5469
5470 if test "$wxUSE_STOPWATCH" = yes; then
5471 echo "$as_me:$LINENO: result: yes" >&5
5472echo "${ECHO_T}yes" >&6
5473 else
5474 echo "$as_me:$LINENO: result: no" >&5
5475echo "${ECHO_T}no" >&6
5476 fi
5477
5478
5479 enablestring=
5480 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5481echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5482 no_cache=0
5483 # Check whether --enable-system_options or --disable-system_options was given.
5484if test "${enable_system_options+set}" = set; then
5485 enableval="$enable_system_options"
5486
5487 if test "$enableval" = yes; then
5488 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5489 else
5490 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5491 fi
5492
5493else
5494
5495 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5496 if test "x$LINE" != x ; then
5497 eval "DEFAULT_$LINE"
5498 else
5499 no_cache=1
5500 fi
5501
5502 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5503
5504fi;
5505
5506 eval "$ac_cv_use_system_options"
5507 if test "$no_cache" != 1; then
5508 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5509 fi
5510
5511 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5512 echo "$as_me:$LINENO: result: yes" >&5
5513echo "${ECHO_T}yes" >&6
5514 else
5515 echo "$as_me:$LINENO: result: no" >&5
5516echo "${ECHO_T}no" >&6
5517 fi
5518
5519
5520 enablestring=
5521 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5522echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5523 no_cache=0
5524 # Check whether --enable-textbuf or --disable-textbuf was given.
5525if test "${enable_textbuf+set}" = set; then
5526 enableval="$enable_textbuf"
5527
5528 if test "$enableval" = yes; then
5529 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5530 else
5531 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5532 fi
5533
5534else
5535
5536 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5537 if test "x$LINE" != x ; then
5538 eval "DEFAULT_$LINE"
5539 else
5540 no_cache=1
5541 fi
5542
5543 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5544
5545fi;
5546
5547 eval "$ac_cv_use_textbuf"
5548 if test "$no_cache" != 1; then
5549 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5550 fi
5551
5552 if test "$wxUSE_TEXTBUFFER" = yes; then
5553 echo "$as_me:$LINENO: result: yes" >&5
5554echo "${ECHO_T}yes" >&6
5555 else
5556 echo "$as_me:$LINENO: result: no" >&5
5557echo "${ECHO_T}no" >&6
5558 fi
5559
5560
5561 enablestring=
5562 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5563echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5564 no_cache=0
5565 # Check whether --enable-textfile or --disable-textfile was given.
5566if test "${enable_textfile+set}" = set; then
5567 enableval="$enable_textfile"
5568
5569 if test "$enableval" = yes; then
5570 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5571 else
5572 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5573 fi
5574
5575else
5576
5577 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5578 if test "x$LINE" != x ; then
5579 eval "DEFAULT_$LINE"
5580 else
5581 no_cache=1
5582 fi
5583
5584 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5585
5586fi;
5587
5588 eval "$ac_cv_use_textfile"
5589 if test "$no_cache" != 1; then
5590 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5591 fi
5592
5593 if test "$wxUSE_TEXTFILE" = yes; then
5594 echo "$as_me:$LINENO: result: yes" >&5
5595echo "${ECHO_T}yes" >&6
5596 else
5597 echo "$as_me:$LINENO: result: no" >&5
5598echo "${ECHO_T}no" >&6
5599 fi
5600
5601
5602 enablestring=
5603 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5604echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5605 no_cache=0
5606 # Check whether --enable-timer or --disable-timer was given.
5607if test "${enable_timer+set}" = set; then
5608 enableval="$enable_timer"
5609
5610 if test "$enableval" = yes; then
5611 ac_cv_use_timer='wxUSE_TIMER=yes'
5612 else
5613 ac_cv_use_timer='wxUSE_TIMER=no'
5614 fi
5615
5616else
5617
5618 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5619 if test "x$LINE" != x ; then
5620 eval "DEFAULT_$LINE"
5621 else
5622 no_cache=1
5623 fi
5624
5625 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5626
5627fi;
5628
5629 eval "$ac_cv_use_timer"
5630 if test "$no_cache" != 1; then
5631 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5632 fi
5633
5634 if test "$wxUSE_TIMER" = yes; then
5635 echo "$as_me:$LINENO: result: yes" >&5
5636echo "${ECHO_T}yes" >&6
5637 else
5638 echo "$as_me:$LINENO: result: no" >&5
5639echo "${ECHO_T}no" >&6
5640 fi
5641
5642
5643 enablestring=
5644 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5645echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5646 no_cache=0
5647 # Check whether --enable-unicode or --disable-unicode was given.
5648if test "${enable_unicode+set}" = set; then
5649 enableval="$enable_unicode"
5650
5651 if test "$enableval" = yes; then
5652 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5653 else
5654 ac_cv_use_unicode='wxUSE_UNICODE=no'
5655 fi
5656
5657else
5658
5659 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5660 if test "x$LINE" != x ; then
5661 eval "DEFAULT_$LINE"
5662 else
5663 no_cache=1
5664 fi
5665
5666 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5667
5668fi;
5669
5670 eval "$ac_cv_use_unicode"
5671 if test "$no_cache" != 1; then
5672 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5673 fi
5674
5675 if test "$wxUSE_UNICODE" = yes; then
5676 echo "$as_me:$LINENO: result: yes" >&5
5677echo "${ECHO_T}yes" >&6
5678 else
5679 echo "$as_me:$LINENO: result: no" >&5
5680echo "${ECHO_T}no" >&6
5681 fi
5682
5683
5684 enablestring=
5685 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5686echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5687 no_cache=0
5688 # Check whether --enable-sound or --disable-sound was given.
5689if test "${enable_sound+set}" = set; then
5690 enableval="$enable_sound"
5691
5692 if test "$enableval" = yes; then
5693 ac_cv_use_sound='wxUSE_SOUND=yes'
5694 else
5695 ac_cv_use_sound='wxUSE_SOUND=no'
5696 fi
5697
5698else
5699
5700 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5701 if test "x$LINE" != x ; then
5702 eval "DEFAULT_$LINE"
5703 else
5704 no_cache=1
5705 fi
5706
5707 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5708
5709fi;
5710
5711 eval "$ac_cv_use_sound"
5712 if test "$no_cache" != 1; then
5713 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5714 fi
5715
5716 if test "$wxUSE_SOUND" = yes; then
5717 echo "$as_me:$LINENO: result: yes" >&5
5718echo "${ECHO_T}yes" >&6
5719 else
5720 echo "$as_me:$LINENO: result: no" >&5
5721echo "${ECHO_T}no" >&6
5722 fi
5723
5724
5725 enablestring=
5726 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5727echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
5728 no_cache=0
5729 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5730if test "${enable_wxprintfv+set}" = set; then
5731 enableval="$enable_wxprintfv"
5732
5733 if test "$enableval" = yes; then
5734 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5735 else
5736 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5737 fi
5738
5739else
5740
5741 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5742 if test "x$LINE" != x ; then
5743 eval "DEFAULT_$LINE"
5744 else
5745 no_cache=1
5746 fi
5747
5748 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
5749
5750fi;
5751
5752 eval "$ac_cv_use_wxprintfv"
5753 if test "$no_cache" != 1; then
5754 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5755 fi
5756
5757 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
5758 echo "$as_me:$LINENO: result: yes" >&5
5759echo "${ECHO_T}yes" >&6
5760 else
5761 echo "$as_me:$LINENO: result: no" >&5
5762echo "${ECHO_T}no" >&6
5763 fi
5764
5765
5766 enablestring=
5767 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5768echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
5769 no_cache=0
5770 # Check whether --enable-zipstream or --disable-zipstream was given.
5771if test "${enable_zipstream+set}" = set; then
5772 enableval="$enable_zipstream"
5773
5774 if test "$enableval" = yes; then
5775 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5776 else
5777 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5778 fi
5779
5780else
5781
5782 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
5783 if test "x$LINE" != x ; then
5784 eval "DEFAULT_$LINE"
5785 else
5786 no_cache=1
5787 fi
5788
5789 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
5790
5791fi;
5792
5793 eval "$ac_cv_use_zipstream"
5794 if test "$no_cache" != 1; then
5795 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
5796 fi
5797
5798 if test "$wxUSE_ZIPSTREAM" = yes; then
5799 echo "$as_me:$LINENO: result: yes" >&5
5800echo "${ECHO_T}yes" >&6
5801 else
5802 echo "$as_me:$LINENO: result: no" >&5
5803echo "${ECHO_T}no" >&6
5804 fi
5805
5806
a848cd7e
SC
5807
5808 enablestring=
5809 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5810echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
5811 no_cache=0
5812 # Check whether --enable-url or --disable-url was given.
5813if test "${enable_url+set}" = set; then
5814 enableval="$enable_url"
5815
5816 if test "$enableval" = yes; then
5817 ac_cv_use_url='wxUSE_URL=yes'
5818 else
5819 ac_cv_use_url='wxUSE_URL=no'
5820 fi
5821
5822else
5823
5824 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5825 if test "x$LINE" != x ; then
5826 eval "DEFAULT_$LINE"
5827 else
5828 no_cache=1
5829 fi
5830
5831 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
5832
5833fi;
5834
5835 eval "$ac_cv_use_url"
5836 if test "$no_cache" != 1; then
5837 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5838 fi
5839
5840 if test "$wxUSE_URL" = yes; then
5841 echo "$as_me:$LINENO: result: yes" >&5
5842echo "${ECHO_T}yes" >&6
5843 else
5844 echo "$as_me:$LINENO: result: no" >&5
5845echo "${ECHO_T}no" >&6
5846 fi
5847
5848
5849 enablestring=
5850 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5851echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
5852 no_cache=0
5853 # Check whether --enable-protocol or --disable-protocol was given.
5854if test "${enable_protocol+set}" = set; then
5855 enableval="$enable_protocol"
5856
5857 if test "$enableval" = yes; then
5858 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5859 else
5860 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5861 fi
5862
5863else
5864
5865 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5866 if test "x$LINE" != x ; then
5867 eval "DEFAULT_$LINE"
5868 else
5869 no_cache=1
5870 fi
5871
5872 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
5873
5874fi;
5875
5876 eval "$ac_cv_use_protocol"
5877 if test "$no_cache" != 1; then
5878 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5879 fi
5880
5881 if test "$wxUSE_PROTOCOL" = yes; then
5882 echo "$as_me:$LINENO: result: yes" >&5
5883echo "${ECHO_T}yes" >&6
5884 else
5885 echo "$as_me:$LINENO: result: no" >&5
5886echo "${ECHO_T}no" >&6
5887 fi
5888
5889
5890 enablestring=
5891 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5892echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
5893 no_cache=0
5894 # Check whether --enable-protocol_http or --disable-protocol_http was given.
5895if test "${enable_protocol_http+set}" = set; then
5896 enableval="$enable_protocol_http"
5897
5898 if test "$enableval" = yes; then
5899 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5900 else
5901 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5902 fi
5903
5904else
5905
5906 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5907 if test "x$LINE" != x ; then
5908 eval "DEFAULT_$LINE"
5909 else
5910 no_cache=1
5911 fi
5912
5913 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
5914
5915fi;
5916
5917 eval "$ac_cv_use_protocol_http"
5918 if test "$no_cache" != 1; then
5919 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5920 fi
5921
5922 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
5923 echo "$as_me:$LINENO: result: yes" >&5
5924echo "${ECHO_T}yes" >&6
5925 else
5926 echo "$as_me:$LINENO: result: no" >&5
5927echo "${ECHO_T}no" >&6
5928 fi
5929
5930
5931 enablestring=
5932 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5933echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
5934 no_cache=0
5935 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5936if test "${enable_protocol_ftp+set}" = set; then
5937 enableval="$enable_protocol_ftp"
5938
5939 if test "$enableval" = yes; then
5940 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5941 else
5942 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5943 fi
5944
5945else
5946
5947 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5948 if test "x$LINE" != x ; then
5949 eval "DEFAULT_$LINE"
5950 else
5951 no_cache=1
5952 fi
5953
5954 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
5955
5956fi;
5957
5958 eval "$ac_cv_use_protocol_ftp"
5959 if test "$no_cache" != 1; then
5960 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5961 fi
5962
5963 if test "$wxUSE_PROTOCOL_FTP" = yes; then
5964 echo "$as_me:$LINENO: result: yes" >&5
5965echo "${ECHO_T}yes" >&6
5966 else
5967 echo "$as_me:$LINENO: result: no" >&5
5968echo "${ECHO_T}no" >&6
5969 fi
5970
5971
5972 enablestring=
5973 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
5974echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
5975 no_cache=0
5976 # Check whether --enable-protocol_file or --disable-protocol_file was given.
5977if test "${enable_protocol_file+set}" = set; then
5978 enableval="$enable_protocol_file"
5979
5980 if test "$enableval" = yes; then
5981 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
5982 else
5983 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
5984 fi
5985
5986else
5987
5988 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
5989 if test "x$LINE" != x ; then
5990 eval "DEFAULT_$LINE"
5991 else
5992 no_cache=1
5993 fi
5994
5995 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
5996
5997fi;
5998
5999 eval "$ac_cv_use_protocol_file"
6000 if test "$no_cache" != 1; then
6001 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6002 fi
6003
6004 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6005 echo "$as_me:$LINENO: result: yes" >&5
6006echo "${ECHO_T}yes" >&6
6007 else
6008 echo "$as_me:$LINENO: result: no" >&5
6009echo "${ECHO_T}no" >&6
6010 fi
6011
6012
6013
6014
6015
6016 enablestring=
6017 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6018echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6019 no_cache=0
6020 # Check whether --enable-threads or --disable-threads was given.
6021if test "${enable_threads+set}" = set; then
6022 enableval="$enable_threads"
6023
6024 if test "$enableval" = yes; then
6025 ac_cv_use_threads='wxUSE_THREADS=yes'
6026 else
6027 ac_cv_use_threads='wxUSE_THREADS=no'
6028 fi
6029
6030else
6031
6032 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6033 if test "x$LINE" != x ; then
6034 eval "DEFAULT_$LINE"
6035 else
6036 no_cache=1
6037 fi
6038
6039 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6040
6041fi;
6042
6043 eval "$ac_cv_use_threads"
6044 if test "$no_cache" != 1; then
6045 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6046 fi
6047
6048 if test "$wxUSE_THREADS" = yes; then
6049 echo "$as_me:$LINENO: result: yes" >&5
6050echo "${ECHO_T}yes" >&6
6051 else
6052 echo "$as_me:$LINENO: result: no" >&5
6053echo "${ECHO_T}no" >&6
6054 fi
6055
6056
6057if test "$wxUSE_GUI" = "yes"; then
6058
6059
6060
6061 enablestring=
6062 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6063echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6064 no_cache=0
6065 # Check whether --enable-docview or --disable-docview was given.
6066if test "${enable_docview+set}" = set; then
6067 enableval="$enable_docview"
6068
6069 if test "$enableval" = yes; then
6070 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6071 else
6072 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6073 fi
6074
6075else
6076
6077 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6078 if test "x$LINE" != x ; then
6079 eval "DEFAULT_$LINE"
6080 else
6081 no_cache=1
6082 fi
6083
6084 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6085
6086fi;
6087
6088 eval "$ac_cv_use_docview"
6089 if test "$no_cache" != 1; then
6090 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6091 fi
6092
6093 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6094 echo "$as_me:$LINENO: result: yes" >&5
6095echo "${ECHO_T}yes" >&6
6096 else
6097 echo "$as_me:$LINENO: result: no" >&5
6098echo "${ECHO_T}no" >&6
6099 fi
6100
6101
6102 enablestring=
6103 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6104echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6105 no_cache=0
6106 # Check whether --enable-help or --disable-help was given.
6107if test "${enable_help+set}" = set; then
6108 enableval="$enable_help"
6109
6110 if test "$enableval" = yes; then
6111 ac_cv_use_help='wxUSE_HELP=yes'
6112 else
6113 ac_cv_use_help='wxUSE_HELP=no'
6114 fi
6115
6116else
6117
6118 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6119 if test "x$LINE" != x ; then
6120 eval "DEFAULT_$LINE"
6121 else
6122 no_cache=1
6123 fi
6124
6125 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6126
6127fi;
6128
6129 eval "$ac_cv_use_help"
6130 if test "$no_cache" != 1; then
6131 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6132 fi
6133
6134 if test "$wxUSE_HELP" = yes; then
6135 echo "$as_me:$LINENO: result: yes" >&5
6136echo "${ECHO_T}yes" >&6
6137 else
6138 echo "$as_me:$LINENO: result: no" >&5
6139echo "${ECHO_T}no" >&6
6140 fi
6141
6142
6143 enablestring=
6144 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6145echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6146 no_cache=0
6147 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6148if test "${enable_mshtmlhelp+set}" = set; then
6149 enableval="$enable_mshtmlhelp"
6150
6151 if test "$enableval" = yes; then
6152 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6153 else
6154 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6155 fi
6156
6157else
6158
6159 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6160 if test "x$LINE" != x ; then
6161 eval "DEFAULT_$LINE"
6162 else
6163 no_cache=1
6164 fi
6165
6166 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6167
6168fi;
6169
6170 eval "$ac_cv_use_mshtmlhelp"
6171 if test "$no_cache" != 1; then
6172 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6173 fi
6174
6175 if test "$wxUSE_MS_HTML_HELP" = yes; then
6176 echo "$as_me:$LINENO: result: yes" >&5
6177echo "${ECHO_T}yes" >&6
6178 else
6179 echo "$as_me:$LINENO: result: no" >&5
6180echo "${ECHO_T}no" >&6
6181 fi
6182
6183
6184 enablestring=
6185 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6186echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6187 no_cache=0
6188 # Check whether --enable-html or --disable-html was given.
6189if test "${enable_html+set}" = set; then
6190 enableval="$enable_html"
6191
6192 if test "$enableval" = yes; then
6193 ac_cv_use_html='wxUSE_HTML=yes'
6194 else
6195 ac_cv_use_html='wxUSE_HTML=no'
6196 fi
6197
6198else
6199
6200 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6201 if test "x$LINE" != x ; then
6202 eval "DEFAULT_$LINE"
6203 else
6204 no_cache=1
6205 fi
6206
6207 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6208
6209fi;
6210
6211 eval "$ac_cv_use_html"
6212 if test "$no_cache" != 1; then
6213 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6214 fi
6215
6216 if test "$wxUSE_HTML" = yes; then
6217 echo "$as_me:$LINENO: result: yes" >&5
6218echo "${ECHO_T}yes" >&6
6219 else
6220 echo "$as_me:$LINENO: result: no" >&5
6221echo "${ECHO_T}no" >&6
6222 fi
6223
6224
6225 enablestring=
6226 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6227echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6228 no_cache=0
6229 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6230if test "${enable_htmlhelp+set}" = set; then
6231 enableval="$enable_htmlhelp"
6232
6233 if test "$enableval" = yes; then
6234 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6235 else
6236 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6237 fi
6238
6239else
6240
6241 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6242 if test "x$LINE" != x ; then
6243 eval "DEFAULT_$LINE"
6244 else
6245 no_cache=1
6246 fi
6247
6248 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6249
6250fi;
6251
6252 eval "$ac_cv_use_htmlhelp"
6253 if test "$no_cache" != 1; then
6254 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6255 fi
6256
6257 if test "$wxUSE_WXHTML_HELP" = yes; then
6258 echo "$as_me:$LINENO: result: yes" >&5
6259echo "${ECHO_T}yes" >&6
6260 else
6261 echo "$as_me:$LINENO: result: no" >&5
6262echo "${ECHO_T}no" >&6
6263 fi
6264
6265
9a8f0513
VS
6266 enablestring=
6267 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6268echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6269 no_cache=0
6270 # Check whether --enable-xrc or --disable-xrc was given.
6271if test "${enable_xrc+set}" = set; then
6272 enableval="$enable_xrc"
6273
6274 if test "$enableval" = yes; then
6275 ac_cv_use_xrc='wxUSE_XRC=yes'
6276 else
6277 ac_cv_use_xrc='wxUSE_XRC=no'
6278 fi
6279
6280else
6281
6282 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6283 if test "x$LINE" != x ; then
6284 eval "DEFAULT_$LINE"
6285 else
6286 no_cache=1
6287 fi
6288
6289 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6290
6291fi;
6292
6293 eval "$ac_cv_use_xrc"
6294 if test "$no_cache" != 1; then
6295 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6296 fi
6297
6298 if test "$wxUSE_XRC" = yes; then
6299 echo "$as_me:$LINENO: result: yes" >&5
6300echo "${ECHO_T}yes" >&6
6301 else
6302 echo "$as_me:$LINENO: result: no" >&5
6303echo "${ECHO_T}no" >&6
6304 fi
6305
6306
a848cd7e
SC
6307 enablestring=
6308 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6309echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6310 no_cache=0
6311 # Check whether --enable-constraints or --disable-constraints was given.
6312if test "${enable_constraints+set}" = set; then
6313 enableval="$enable_constraints"
6314
6315 if test "$enableval" = yes; then
6316 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6317 else
6318 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6319 fi
6320
6321else
6322
6323 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6324 if test "x$LINE" != x ; then
6325 eval "DEFAULT_$LINE"
6326 else
6327 no_cache=1
6328 fi
6329
6330 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6331
6332fi;
6333
6334 eval "$ac_cv_use_constraints"
6335 if test "$no_cache" != 1; then
6336 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6337 fi
6338
6339 if test "$wxUSE_CONSTRAINTS" = yes; then
6340 echo "$as_me:$LINENO: result: yes" >&5
6341echo "${ECHO_T}yes" >&6
6342 else
6343 echo "$as_me:$LINENO: result: no" >&5
6344echo "${ECHO_T}no" >&6
6345 fi
6346
6347
6348 enablestring=
6349 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6350echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6351 no_cache=0
6352 # Check whether --enable-printarch or --disable-printarch was given.
6353if test "${enable_printarch+set}" = set; then
6354 enableval="$enable_printarch"
6355
6356 if test "$enableval" = yes; then
6357 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6358 else
6359 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6360 fi
6361
6362else
6363
6364 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6365 if test "x$LINE" != x ; then
6366 eval "DEFAULT_$LINE"
6367 else
6368 no_cache=1
6369 fi
6370
6371 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6372
6373fi;
6374
6375 eval "$ac_cv_use_printarch"
6376 if test "$no_cache" != 1; then
6377 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6378 fi
6379
6380 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6381 echo "$as_me:$LINENO: result: yes" >&5
6382echo "${ECHO_T}yes" >&6
6383 else
6384 echo "$as_me:$LINENO: result: no" >&5
6385echo "${ECHO_T}no" >&6
6386 fi
6387
6388
6389 enablestring=
6390 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6391echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6392 no_cache=0
6393 # Check whether --enable-mdi or --disable-mdi was given.
6394if test "${enable_mdi+set}" = set; then
6395 enableval="$enable_mdi"
6396
6397 if test "$enableval" = yes; then
8a7b1113 6398 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6399 else
8a7b1113 6400 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6401 fi
6402
6403else
6404
8a7b1113 6405 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6406 if test "x$LINE" != x ; then
6407 eval "DEFAULT_$LINE"
6408 else
6409 no_cache=1
6410 fi
6411
8a7b1113 6412 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6413
6414fi;
6415
6416 eval "$ac_cv_use_mdi"
6417 if test "$no_cache" != 1; then
6418 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6419 fi
6420
8a7b1113
VZ
6421 if test "$wxUSE_MDI" = yes; then
6422 echo "$as_me:$LINENO: result: yes" >&5
6423echo "${ECHO_T}yes" >&6
6424 else
6425 echo "$as_me:$LINENO: result: no" >&5
6426echo "${ECHO_T}no" >&6
6427 fi
6428
6429
6430 enablestring=
6431 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6432echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6433 no_cache=0
6434 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6435if test "${enable_mdidoc+set}" = set; then
6436 enableval="$enable_mdidoc"
6437
6438 if test "$enableval" = yes; then
6439 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6440 else
6441 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6442 fi
6443
6444else
6445
6446 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6447 if test "x$LINE" != x ; then
6448 eval "DEFAULT_$LINE"
6449 else
6450 no_cache=1
6451 fi
6452
6453 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6454
6455fi;
6456
6457 eval "$ac_cv_use_mdidoc"
6458 if test "$no_cache" != 1; then
6459 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6460 fi
6461
a848cd7e
SC
6462 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6463 echo "$as_me:$LINENO: result: yes" >&5
6464echo "${ECHO_T}yes" >&6
6465 else
6466 echo "$as_me:$LINENO: result: no" >&5
6467echo "${ECHO_T}no" >&6
6468 fi
6469
6470
6471 enablestring=
6472 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6473echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6474 no_cache=0
6475 # Check whether --enable-loggui or --disable-loggui was given.
6476if test "${enable_loggui+set}" = set; then
6477 enableval="$enable_loggui"
6478
6479 if test "$enableval" = yes; then
6480 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6481 else
6482 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6483 fi
6484
6485else
6486
6487 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6488 if test "x$LINE" != x ; then
6489 eval "DEFAULT_$LINE"
6490 else
6491 no_cache=1
6492 fi
6493
6494 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6495
6496fi;
6497
6498 eval "$ac_cv_use_loggui"
6499 if test "$no_cache" != 1; then
6500 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6501 fi
6502
6503 if test "$wxUSE_LOGGUI" = yes; then
6504 echo "$as_me:$LINENO: result: yes" >&5
6505echo "${ECHO_T}yes" >&6
6506 else
6507 echo "$as_me:$LINENO: result: no" >&5
6508echo "${ECHO_T}no" >&6
6509 fi
6510
6511
6512 enablestring=
6513 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6514echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6515 no_cache=0
6516 # Check whether --enable-logwin or --disable-logwin was given.
6517if test "${enable_logwin+set}" = set; then
6518 enableval="$enable_logwin"
6519
6520 if test "$enableval" = yes; then
6521 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6522 else
6523 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6524 fi
6525
6526else
6527
6528 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6529 if test "x$LINE" != x ; then
6530 eval "DEFAULT_$LINE"
6531 else
6532 no_cache=1
6533 fi
6534
6535 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6536
6537fi;
6538
6539 eval "$ac_cv_use_logwin"
6540 if test "$no_cache" != 1; then
6541 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6542 fi
6543
6544 if test "$wxUSE_LOGWINDOW" = yes; then
6545 echo "$as_me:$LINENO: result: yes" >&5
6546echo "${ECHO_T}yes" >&6
6547 else
6548 echo "$as_me:$LINENO: result: no" >&5
6549echo "${ECHO_T}no" >&6
6550 fi
6551
6552
6553 enablestring=
6554 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6555echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6556 no_cache=0
6557 # Check whether --enable-logdialog or --disable-logdialog was given.
6558if test "${enable_logdialog+set}" = set; then
6559 enableval="$enable_logdialog"
6560
6561 if test "$enableval" = yes; then
6562 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6563 else
6564 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6565 fi
6566
6567else
6568
6569 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6570 if test "x$LINE" != x ; then
6571 eval "DEFAULT_$LINE"
6572 else
6573 no_cache=1
6574 fi
6575
6576 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6577
6578fi;
6579
6580 eval "$ac_cv_use_logdialog"
6581 if test "$no_cache" != 1; then
6582 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6583 fi
6584
6585 if test "$wxUSE_LOGDIALOG" = yes; then
6586 echo "$as_me:$LINENO: result: yes" >&5
6587echo "${ECHO_T}yes" >&6
6588 else
6589 echo "$as_me:$LINENO: result: no" >&5
6590echo "${ECHO_T}no" >&6
6591 fi
6592
6593
646b6ec1
VS
6594 enablestring=
6595 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6596echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6597 no_cache=0
6598 # Check whether --enable-webkit or --disable-webkit was given.
6599if test "${enable_webkit+set}" = set; then
6600 enableval="$enable_webkit"
6601
6602 if test "$enableval" = yes; then
6603 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6604 else
6605 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6606 fi
6607
6608else
6609
6610 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6611 if test "x$LINE" != x ; then
6612 eval "DEFAULT_$LINE"
6613 else
6614 no_cache=1
6615 fi
6616
6617 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6618
6619fi;
6620
6621 eval "$ac_cv_use_webkit"
6622 if test "$no_cache" != 1; then
6623 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6624 fi
6625
6626 if test "$wxUSE_WEBKIT" = yes; then
6627 echo "$as_me:$LINENO: result: yes" >&5
6628echo "${ECHO_T}yes" >&6
6629 else
6630 echo "$as_me:$LINENO: result: no" >&5
6631echo "${ECHO_T}no" >&6
6632 fi
6633
6634
a848cd7e
SC
6635
6636 enablestring=
6637 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6638echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6639 no_cache=0
6640 # Check whether --enable-postscript or --disable-postscript was given.
6641if test "${enable_postscript+set}" = set; then
6642 enableval="$enable_postscript"
6643
6644 if test "$enableval" = yes; then
6645 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6646 else
6647 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6648 fi
6649
6650else
6651
6652 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6653 if test "x$LINE" != x ; then
6654 eval "DEFAULT_$LINE"
6655 else
6656 no_cache=1
6657 fi
6658
6659 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6660
6661fi;
6662
6663 eval "$ac_cv_use_postscript"
6664 if test "$no_cache" != 1; then
6665 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6666 fi
6667
6668 if test "$wxUSE_POSTSCRIPT" = yes; then
6669 echo "$as_me:$LINENO: result: yes" >&5
6670echo "${ECHO_T}yes" >&6
6671 else
6672 echo "$as_me:$LINENO: result: no" >&5
6673echo "${ECHO_T}no" >&6
6674 fi
6675
6676
6677
6678
6679
6680 enablestring=
6681 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6682echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
6683 no_cache=0
6684 # Check whether --enable-prologio or --disable-prologio was given.
6685if test "${enable_prologio+set}" = set; then
6686 enableval="$enable_prologio"
6687
6688 if test "$enableval" = yes; then
6689 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
6690 else
6691 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
6692 fi
6693
6694else
6695
6696 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
6697 if test "x$LINE" != x ; then
6698 eval "DEFAULT_$LINE"
6699 else
6700 no_cache=1
6701 fi
6702
6703 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
6704
6705fi;
6706
6707 eval "$ac_cv_use_prologio"
6708 if test "$no_cache" != 1; then
6709 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
6710 fi
6711
6712 if test "$wxUSE_PROLOGIO" = yes; then
6713 echo "$as_me:$LINENO: result: yes" >&5
6714echo "${ECHO_T}yes" >&6
6715 else
6716 echo "$as_me:$LINENO: result: no" >&5
6717echo "${ECHO_T}no" >&6
6718 fi
6719
6720
6721 enablestring=
6722 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6723echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
6724 no_cache=0
6725 # Check whether --enable-resources or --disable-resources was given.
6726if test "${enable_resources+set}" = set; then
6727 enableval="$enable_resources"
6728
6729 if test "$enableval" = yes; then
6730 ac_cv_use_resources='wxUSE_RESOURCES=yes'
6731 else
6732 ac_cv_use_resources='wxUSE_RESOURCES=no'
6733 fi
6734
6735else
6736
6737 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
6738 if test "x$LINE" != x ; then
6739 eval "DEFAULT_$LINE"
6740 else
6741 no_cache=1
6742 fi
6743
6744 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
6745
6746fi;
6747
6748 eval "$ac_cv_use_resources"
6749 if test "$no_cache" != 1; then
6750 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
6751 fi
6752
6753 if test "$wxUSE_RESOURCES" = yes; then
6754 echo "$as_me:$LINENO: result: yes" >&5
6755echo "${ECHO_T}yes" >&6
6756 else
6757 echo "$as_me:$LINENO: result: no" >&5
6758echo "${ECHO_T}no" >&6
6759 fi
6760
6761
6762
6763
6764 enablestring=
6765 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6766echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
6767 no_cache=0
6768 # Check whether --enable-clipboard or --disable-clipboard was given.
6769if test "${enable_clipboard+set}" = set; then
6770 enableval="$enable_clipboard"
6771
6772 if test "$enableval" = yes; then
6773 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6774 else
6775 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6776 fi
6777
6778else
6779
6780 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6781 if test "x$LINE" != x ; then
6782 eval "DEFAULT_$LINE"
6783 else
6784 no_cache=1
6785 fi
6786
6787 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
6788
6789fi;
6790
6791 eval "$ac_cv_use_clipboard"
6792 if test "$no_cache" != 1; then
6793 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6794 fi
6795
6796 if test "$wxUSE_CLIPBOARD" = yes; then
6797 echo "$as_me:$LINENO: result: yes" >&5
6798echo "${ECHO_T}yes" >&6
6799 else
6800 echo "$as_me:$LINENO: result: no" >&5
6801echo "${ECHO_T}no" >&6
6802 fi
6803
6804
6805 enablestring=
6806 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6807echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
6808 no_cache=0
6809 # Check whether --enable-dnd or --disable-dnd was given.
6810if test "${enable_dnd+set}" = set; then
6811 enableval="$enable_dnd"
6812
6813 if test "$enableval" = yes; then
6814 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6815 else
6816 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6817 fi
6818
6819else
6820
6821 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6822 if test "x$LINE" != x ; then
6823 eval "DEFAULT_$LINE"
6824 else
6825 no_cache=1
6826 fi
6827
6828 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
6829
6830fi;
6831
6832 eval "$ac_cv_use_dnd"
6833 if test "$no_cache" != 1; then
6834 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6835 fi
6836
6837 if test "$wxUSE_DRAG_AND_DROP" = yes; then
6838 echo "$as_me:$LINENO: result: yes" >&5
6839echo "${ECHO_T}yes" >&6
6840 else
6841 echo "$as_me:$LINENO: result: no" >&5
6842echo "${ECHO_T}no" >&6
6843 fi
6844
6845
6846 enablestring=
6847 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6848echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
6849 no_cache=0
6850 # Check whether --enable-metafile or --disable-metafile was given.
6851if test "${enable_metafile+set}" = set; then
6852 enableval="$enable_metafile"
6853
6854 if test "$enableval" = yes; then
6855 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6856 else
6857 ac_cv_use_metafile='wxUSE_METAFILE=no'
6858 fi
6859
6860else
6861
6862 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6863 if test "x$LINE" != x ; then
6864 eval "DEFAULT_$LINE"
6865 else
6866 no_cache=1
6867 fi
6868
6869 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
6870
6871fi;
6872
6873 eval "$ac_cv_use_metafile"
6874 if test "$no_cache" != 1; then
6875 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6876 fi
6877
6878 if test "$wxUSE_METAFILE" = yes; then
6879 echo "$as_me:$LINENO: result: yes" >&5
6880echo "${ECHO_T}yes" >&6
6881 else
6882 echo "$as_me:$LINENO: result: no" >&5
6883echo "${ECHO_T}no" >&6
6884 fi
6885
6886
6887
6888
6889
6890 enablestring=
6891 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6892echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
6893 no_cache=0
6894 # Check whether --enable-controls or --disable-controls was given.
6895if test "${enable_controls+set}" = set; then
6896 enableval="$enable_controls"
6897
6898 if test "$enableval" = yes; then
6899 ac_cv_use_controls='wxUSE_CONTROLS=yes'
6900 else
6901 ac_cv_use_controls='wxUSE_CONTROLS=no'
6902 fi
6903
6904else
6905
6906 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6907 if test "x$LINE" != x ; then
6908 eval "DEFAULT_$LINE"
6909 else
6910 no_cache=1
6911 fi
6912
6913 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
6914
6915fi;
6916
6917 eval "$ac_cv_use_controls"
6918 if test "$no_cache" != 1; then
6919 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6920 fi
6921
6922 if test "$wxUSE_CONTROLS" = yes; then
6923 echo "$as_me:$LINENO: result: yes" >&5
6924echo "${ECHO_T}yes" >&6
6925 else
6926 echo "$as_me:$LINENO: result: no" >&5
6927echo "${ECHO_T}no" >&6
6928 fi
6929
6930
6931if test "$wxUSE_CONTROLS" = "yes"; then
6932 DEFAULT_wxUSE_ACCEL=yes
6933 DEFAULT_wxUSE_BMPBUTTON=yes
6934 DEFAULT_wxUSE_BUTTON=yes
6935 DEFAULT_wxUSE_CALCTRL=no
6936 DEFAULT_wxUSE_CARET=yes
6937 DEFAULT_wxUSE_COMBOBOX=yes
6938 DEFAULT_wxUSE_CHECKBOX=yes
6939 DEFAULT_wxUSE_CHECKLISTBOX=yes
6940 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 6941 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e
SC
6942 DEFAULT_wxUSE_GAUGE=yes
6943 DEFAULT_wxUSE_GRID=yes
6944 DEFAULT_wxUSE_IMAGLIST=yes
6945 DEFAULT_wxUSE_LISTBOOK=yes
6946 DEFAULT_wxUSE_LISTBOX=yes
6947 DEFAULT_wxUSE_LISTCTRL=yes
6948 DEFAULT_wxUSE_NOTEBOOK=yes
6949 DEFAULT_wxUSE_RADIOBOX=yes
6950 DEFAULT_wxUSE_RADIOBTN=yes
6951 DEFAULT_wxUSE_SASH=yes
6952 DEFAULT_wxUSE_SCROLLBAR=yes
6953 DEFAULT_wxUSE_SLIDER=yes
6954 DEFAULT_wxUSE_SPINBTN=yes
6955 DEFAULT_wxUSE_SPINCTRL=yes
6956 DEFAULT_wxUSE_SPLITTER=yes
6957 DEFAULT_wxUSE_STATBMP=yes
6958 DEFAULT_wxUSE_STATBOX=yes
6959 DEFAULT_wxUSE_STATLINE=yes
6960 DEFAULT_wxUSE_STATUSBAR=yes
6961 DEFAULT_wxUSE_TAB_DIALOG=yes
6962 DEFAULT_wxUSE_TOGGLEBTN=yes
6963 DEFAULT_wxUSE_TOOLBAR=yes
6964 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6965 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
6966 DEFAULT_wxUSE_TOOLTIPS=yes
6967 DEFAULT_wxUSE_TREECTRL=yes
6968 DEFAULT_wxUSE_POPUPWIN=yes
6969 DEFAULT_wxUSE_TIPWINDOW=yes
6970elif test "$wxUSE_CONTROLS" = "no"; then
6971 DEFAULT_wxUSE_ACCEL=no
6972 DEFAULT_wxUSE_BMPBUTTON=no
6973 DEFAULT_wxUSE_BUTTON=no
6974 DEFAULT_wxUSE_CALCTRL=no
6975 DEFAULT_wxUSE_CARET=no
6976 DEFAULT_wxUSE_COMBOBOX=no
6977 DEFAULT_wxUSE_CHECKBOX=no
6978 DEFAULT_wxUSE_CHECKLISTBOX=no
6979 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 6980 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e
SC
6981 DEFAULT_wxUSE_GAUGE=no
6982 DEFAULT_wxUSE_GRID=no
6983 DEFAULT_wxUSE_IMAGLIST=no
6984 DEFAULT_wxUSE_LISTBOOK=no
6985 DEFAULT_wxUSE_LISTBOX=no
6986 DEFAULT_wxUSE_LISTCTRL=no
6987 DEFAULT_wxUSE_NOTEBOOK=no
6988 DEFAULT_wxUSE_RADIOBOX=no
6989 DEFAULT_wxUSE_RADIOBTN=no
6990 DEFAULT_wxUSE_SASH=no
6991 DEFAULT_wxUSE_SCROLLBAR=no
6992 DEFAULT_wxUSE_SLIDER=no
6993 DEFAULT_wxUSE_SPINBTN=no
6994 DEFAULT_wxUSE_SPINCTRL=no
6995 DEFAULT_wxUSE_SPLITTER=no
6996 DEFAULT_wxUSE_STATBMP=no
6997 DEFAULT_wxUSE_STATBOX=no
6998 DEFAULT_wxUSE_STATLINE=no
6999 DEFAULT_wxUSE_STATUSBAR=no
7000 DEFAULT_wxUSE_TAB_DIALOG=no
7001 DEFAULT_wxUSE_TOGGLEBTN=no
7002 DEFAULT_wxUSE_TOOLBAR=no
7003 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7004 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7005 DEFAULT_wxUSE_TOOLTIPS=no
7006 DEFAULT_wxUSE_TREECTRL=no
7007 DEFAULT_wxUSE_POPUPWIN=no
7008 DEFAULT_wxUSE_TIPWINDOW=no
7009fi
7010
7011## FIXME: This is a blatant hack
7012if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
7013 wxUSE_PRINTING_ARCHITECTURE=no
7014 wxUSE_DRAG_AND_DROP=no
a848cd7e
SC
7015 DEFAULT_wxUSE_TOOLTIPS=no
7016 DEFAULT_wxUSE_DRAGIMAGE=no
7017fi
7018
7019
7020 enablestring=
7021 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7022echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7023 no_cache=0
7024 # Check whether --enable-accel or --disable-accel was given.
7025if test "${enable_accel+set}" = set; then
7026 enableval="$enable_accel"
7027
7028 if test "$enableval" = yes; then
7029 ac_cv_use_accel='wxUSE_ACCEL=yes'
7030 else
7031 ac_cv_use_accel='wxUSE_ACCEL=no'
7032 fi
7033
7034else
7035
7036 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7037 if test "x$LINE" != x ; then
7038 eval "DEFAULT_$LINE"
7039 else
7040 no_cache=1
7041 fi
7042
7043 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7044
7045fi;
7046
7047 eval "$ac_cv_use_accel"
7048 if test "$no_cache" != 1; then
7049 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7050 fi
7051
7052 if test "$wxUSE_ACCEL" = yes; then
7053 echo "$as_me:$LINENO: result: yes" >&5
7054echo "${ECHO_T}yes" >&6
7055 else
7056 echo "$as_me:$LINENO: result: no" >&5
7057echo "${ECHO_T}no" >&6
7058 fi
7059
7060
7061 enablestring=
7062 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7063echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7064 no_cache=0
7065 # Check whether --enable-button or --disable-button was given.
7066if test "${enable_button+set}" = set; then
7067 enableval="$enable_button"
7068
7069 if test "$enableval" = yes; then
7070 ac_cv_use_button='wxUSE_BUTTON=yes'
7071 else
7072 ac_cv_use_button='wxUSE_BUTTON=no'
7073 fi
7074
7075else
7076
7077 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7078 if test "x$LINE" != x ; then
7079 eval "DEFAULT_$LINE"
7080 else
7081 no_cache=1
7082 fi
7083
7084 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7085
7086fi;
7087
7088 eval "$ac_cv_use_button"
7089 if test "$no_cache" != 1; then
7090 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7091 fi
7092
7093 if test "$wxUSE_BUTTON" = yes; then
7094 echo "$as_me:$LINENO: result: yes" >&5
7095echo "${ECHO_T}yes" >&6
7096 else
7097 echo "$as_me:$LINENO: result: no" >&5
7098echo "${ECHO_T}no" >&6
7099 fi
7100
7101
7102 enablestring=
7103 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7104echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7105 no_cache=0
7106 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7107if test "${enable_bmpbutton+set}" = set; then
7108 enableval="$enable_bmpbutton"
7109
7110 if test "$enableval" = yes; then
7111 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7112 else
7113 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7114 fi
7115
7116else
7117
7118 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7119 if test "x$LINE" != x ; then
7120 eval "DEFAULT_$LINE"
7121 else
7122 no_cache=1
7123 fi
7124
7125 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7126
7127fi;
7128
7129 eval "$ac_cv_use_bmpbutton"
7130 if test "$no_cache" != 1; then
7131 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7132 fi
7133
7134 if test "$wxUSE_BMPBUTTON" = yes; then
7135 echo "$as_me:$LINENO: result: yes" >&5
7136echo "${ECHO_T}yes" >&6
7137 else
7138 echo "$as_me:$LINENO: result: no" >&5
7139echo "${ECHO_T}no" >&6
7140 fi
7141
7142
7143 enablestring=
7144 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7145echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7146 no_cache=0
7147 # Check whether --enable-calendar or --disable-calendar was given.
7148if test "${enable_calendar+set}" = set; then
7149 enableval="$enable_calendar"
7150
7151 if test "$enableval" = yes; then
7152 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7153 else
7154 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7155 fi
7156
7157else
7158
7159 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7160 if test "x$LINE" != x ; then
7161 eval "DEFAULT_$LINE"
7162 else
7163 no_cache=1
7164 fi
7165
7166 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7167
7168fi;
7169
7170 eval "$ac_cv_use_calendar"
7171 if test "$no_cache" != 1; then
7172 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7173 fi
7174
7175 if test "$wxUSE_CALCTRL" = yes; then
7176 echo "$as_me:$LINENO: result: yes" >&5
7177echo "${ECHO_T}yes" >&6
7178 else
7179 echo "$as_me:$LINENO: result: no" >&5
7180echo "${ECHO_T}no" >&6
7181 fi
7182
7183
7184 enablestring=
7185 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7186echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7187 no_cache=0
7188 # Check whether --enable-caret or --disable-caret was given.
7189if test "${enable_caret+set}" = set; then
7190 enableval="$enable_caret"
7191
7192 if test "$enableval" = yes; then
7193 ac_cv_use_caret='wxUSE_CARET=yes'
7194 else
7195 ac_cv_use_caret='wxUSE_CARET=no'
7196 fi
7197
7198else
7199
7200 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7201 if test "x$LINE" != x ; then
7202 eval "DEFAULT_$LINE"
7203 else
7204 no_cache=1
7205 fi
7206
7207 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7208
7209fi;
7210
7211 eval "$ac_cv_use_caret"
7212 if test "$no_cache" != 1; then
7213 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7214 fi
7215
7216 if test "$wxUSE_CARET" = yes; then
7217 echo "$as_me:$LINENO: result: yes" >&5
7218echo "${ECHO_T}yes" >&6
7219 else
7220 echo "$as_me:$LINENO: result: no" >&5
7221echo "${ECHO_T}no" >&6
7222 fi
7223
7224
7225 enablestring=
7226 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7227echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7228 no_cache=0
7229 # Check whether --enable-checkbox or --disable-checkbox was given.
7230if test "${enable_checkbox+set}" = set; then
7231 enableval="$enable_checkbox"
7232
7233 if test "$enableval" = yes; then
7234 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7235 else
7236 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7237 fi
7238
7239else
7240
7241 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7242 if test "x$LINE" != x ; then
7243 eval "DEFAULT_$LINE"
7244 else
7245 no_cache=1
7246 fi
7247
7248 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7249
7250fi;
7251
7252 eval "$ac_cv_use_checkbox"
7253 if test "$no_cache" != 1; then
7254 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7255 fi
7256
7257 if test "$wxUSE_CHECKBOX" = yes; then
7258 echo "$as_me:$LINENO: result: yes" >&5
7259echo "${ECHO_T}yes" >&6
7260 else
7261 echo "$as_me:$LINENO: result: no" >&5
7262echo "${ECHO_T}no" >&6
7263 fi
7264
7265
7266 enablestring=
7267 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7268echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7269 no_cache=0
7270 # Check whether --enable-checklst or --disable-checklst was given.
7271if test "${enable_checklst+set}" = set; then
7272 enableval="$enable_checklst"
7273
7274 if test "$enableval" = yes; then
7275 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7276 else
7277 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7278 fi
7279
7280else
7281
7282 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7283 if test "x$LINE" != x ; then
7284 eval "DEFAULT_$LINE"
7285 else
7286 no_cache=1
7287 fi
7288
7289 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7290
7291fi;
7292
7293 eval "$ac_cv_use_checklst"
7294 if test "$no_cache" != 1; then
7295 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7296 fi
7297
7298 if test "$wxUSE_CHECKLST" = yes; then
7299 echo "$as_me:$LINENO: result: yes" >&5
7300echo "${ECHO_T}yes" >&6
7301 else
7302 echo "$as_me:$LINENO: result: no" >&5
7303echo "${ECHO_T}no" >&6
7304 fi
7305
7306
7307 enablestring=
7308 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7309echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7310 no_cache=0
7311 # Check whether --enable-choice or --disable-choice was given.
7312if test "${enable_choice+set}" = set; then
7313 enableval="$enable_choice"
7314
7315 if test "$enableval" = yes; then
7316 ac_cv_use_choice='wxUSE_CHOICE=yes'
7317 else
7318 ac_cv_use_choice='wxUSE_CHOICE=no'
7319 fi
7320
7321else
7322
7323 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7324 if test "x$LINE" != x ; then
7325 eval "DEFAULT_$LINE"
7326 else
7327 no_cache=1
7328 fi
7329
7330 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7331
7332fi;
7333
7334 eval "$ac_cv_use_choice"
7335 if test "$no_cache" != 1; then
7336 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7337 fi
7338
7339 if test "$wxUSE_CHOICE" = yes; then
7340 echo "$as_me:$LINENO: result: yes" >&5
7341echo "${ECHO_T}yes" >&6
7342 else
7343 echo "$as_me:$LINENO: result: no" >&5
7344echo "${ECHO_T}no" >&6
7345 fi
7346
7347
92bbdbcd
WS
7348 enablestring=
7349 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7350echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7351 no_cache=0
7352 # Check whether --enable-choicebook or --disable-choicebook was given.
7353if test "${enable_choicebook+set}" = set; then
7354 enableval="$enable_choicebook"
7355
7356 if test "$enableval" = yes; then
7357 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7358 else
7359 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7360 fi
7361
7362else
7363
7364 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7365 if test "x$LINE" != x ; then
7366 eval "DEFAULT_$LINE"
7367 else
7368 no_cache=1
7369 fi
7370
7371 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7372
7373fi;
7374
7375 eval "$ac_cv_use_choicebook"
7376 if test "$no_cache" != 1; then
7377 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7378 fi
7379
7380 if test "$wxUSE_CHOICEBOOK" = yes; then
7381 echo "$as_me:$LINENO: result: yes" >&5
7382echo "${ECHO_T}yes" >&6
7383 else
7384 echo "$as_me:$LINENO: result: no" >&5
7385echo "${ECHO_T}no" >&6
7386 fi
7387
7388
a848cd7e
SC
7389 enablestring=
7390 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7391echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7392 no_cache=0
7393 # Check whether --enable-combobox or --disable-combobox was given.
7394if test "${enable_combobox+set}" = set; then
7395 enableval="$enable_combobox"
7396
7397 if test "$enableval" = yes; then
7398 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7399 else
7400 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7401 fi
7402
7403else
7404
7405 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7406 if test "x$LINE" != x ; then
7407 eval "DEFAULT_$LINE"
7408 else
7409 no_cache=1
7410 fi
7411
7412 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7413
7414fi;
7415
7416 eval "$ac_cv_use_combobox"
7417 if test "$no_cache" != 1; then
7418 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7419 fi
7420
7421 if test "$wxUSE_COMBOBOX" = yes; then
7422 echo "$as_me:$LINENO: result: yes" >&5
7423echo "${ECHO_T}yes" >&6
7424 else
7425 echo "$as_me:$LINENO: result: no" >&5
7426echo "${ECHO_T}no" >&6
7427 fi
7428
7429
7430 enablestring=
7431 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7432echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7433 no_cache=0
7434 # Check whether --enable-display or --disable-display was given.
7435if test "${enable_display+set}" = set; then
7436 enableval="$enable_display"
7437
7438 if test "$enableval" = yes; then
7439 ac_cv_use_display='wxUSE_DISPLAY=yes'
7440 else
7441 ac_cv_use_display='wxUSE_DISPLAY=no'
7442 fi
7443
7444else
7445
7446 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7447 if test "x$LINE" != x ; then
7448 eval "DEFAULT_$LINE"
7449 else
7450 no_cache=1
7451 fi
7452
7453 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7454
7455fi;
7456
7457 eval "$ac_cv_use_display"
7458 if test "$no_cache" != 1; then
7459 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7460 fi
7461
7462 if test "$wxUSE_DISPLAY" = yes; then
7463 echo "$as_me:$LINENO: result: yes" >&5
7464echo "${ECHO_T}yes" >&6
7465 else
7466 echo "$as_me:$LINENO: result: no" >&5
7467echo "${ECHO_T}no" >&6
7468 fi
7469
7470
7471 enablestring=
7472 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7473echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7474 no_cache=0
7475 # Check whether --enable-gauge or --disable-gauge was given.
7476if test "${enable_gauge+set}" = set; then
7477 enableval="$enable_gauge"
7478
7479 if test "$enableval" = yes; then
7480 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7481 else
7482 ac_cv_use_gauge='wxUSE_GAUGE=no'
7483 fi
7484
7485else
7486
7487 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7488 if test "x$LINE" != x ; then
7489 eval "DEFAULT_$LINE"
7490 else
7491 no_cache=1
7492 fi
7493
7494 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7495
7496fi;
7497
7498 eval "$ac_cv_use_gauge"
7499 if test "$no_cache" != 1; then
7500 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7501 fi
7502
7503 if test "$wxUSE_GAUGE" = yes; then
7504 echo "$as_me:$LINENO: result: yes" >&5
7505echo "${ECHO_T}yes" >&6
7506 else
7507 echo "$as_me:$LINENO: result: no" >&5
7508echo "${ECHO_T}no" >&6
7509 fi
7510
7511
7512 enablestring=
7513 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7514echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7515 no_cache=0
7516 # Check whether --enable-grid or --disable-grid was given.
7517if test "${enable_grid+set}" = set; then
7518 enableval="$enable_grid"
7519
7520 if test "$enableval" = yes; then
7521 ac_cv_use_grid='wxUSE_GRID=yes'
7522 else
7523 ac_cv_use_grid='wxUSE_GRID=no'
7524 fi
7525
7526else
7527
7528 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7529 if test "x$LINE" != x ; then
7530 eval "DEFAULT_$LINE"
7531 else
7532 no_cache=1
7533 fi
7534
7535 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7536
7537fi;
7538
7539 eval "$ac_cv_use_grid"
7540 if test "$no_cache" != 1; then
7541 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7542 fi
7543
7544 if test "$wxUSE_GRID" = yes; then
7545 echo "$as_me:$LINENO: result: yes" >&5
7546echo "${ECHO_T}yes" >&6
7547 else
7548 echo "$as_me:$LINENO: result: no" >&5
7549echo "${ECHO_T}no" >&6
7550 fi
7551
7552
7553 enablestring=
7554 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7555echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7556 no_cache=0
7557 # Check whether --enable-imaglist or --disable-imaglist was given.
7558if test "${enable_imaglist+set}" = set; then
7559 enableval="$enable_imaglist"
7560
7561 if test "$enableval" = yes; then
7562 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7563 else
7564 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7565 fi
7566
7567else
7568
7569 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7570 if test "x$LINE" != x ; then
7571 eval "DEFAULT_$LINE"
7572 else
7573 no_cache=1
7574 fi
7575
7576 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7577
7578fi;
7579
7580 eval "$ac_cv_use_imaglist"
7581 if test "$no_cache" != 1; then
7582 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7583 fi
7584
7585 if test "$wxUSE_IMAGLIST" = yes; then
7586 echo "$as_me:$LINENO: result: yes" >&5
7587echo "${ECHO_T}yes" >&6
7588 else
7589 echo "$as_me:$LINENO: result: no" >&5
7590echo "${ECHO_T}no" >&6
7591 fi
7592
7593
7594 enablestring=
7595 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7596echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7597 no_cache=0
7598 # Check whether --enable-listbook or --disable-listbook was given.
7599if test "${enable_listbook+set}" = set; then
7600 enableval="$enable_listbook"
7601
7602 if test "$enableval" = yes; then
7603 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7604 else
7605 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7606 fi
7607
7608else
7609
7610 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7611 if test "x$LINE" != x ; then
7612 eval "DEFAULT_$LINE"
7613 else
7614 no_cache=1
7615 fi
7616
7617 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7618
7619fi;
7620
7621 eval "$ac_cv_use_listbook"
7622 if test "$no_cache" != 1; then
7623 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7624 fi
7625
7626 if test "$wxUSE_LISTBOOK" = yes; then
7627 echo "$as_me:$LINENO: result: yes" >&5
7628echo "${ECHO_T}yes" >&6
7629 else
7630 echo "$as_me:$LINENO: result: no" >&5
7631echo "${ECHO_T}no" >&6
7632 fi
7633
7634
7635 enablestring=
7636 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7637echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7638 no_cache=0
7639 # Check whether --enable-listbox or --disable-listbox was given.
7640if test "${enable_listbox+set}" = set; then
7641 enableval="$enable_listbox"
7642
7643 if test "$enableval" = yes; then
7644 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7645 else
7646 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7647 fi
7648
7649else
7650
7651 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7652 if test "x$LINE" != x ; then
7653 eval "DEFAULT_$LINE"
7654 else
7655 no_cache=1
7656 fi
7657
7658 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
7659
7660fi;
7661
7662 eval "$ac_cv_use_listbox"
7663 if test "$no_cache" != 1; then
7664 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7665 fi
7666
7667 if test "$wxUSE_LISTBOX" = yes; then
7668 echo "$as_me:$LINENO: result: yes" >&5
7669echo "${ECHO_T}yes" >&6
7670 else
7671 echo "$as_me:$LINENO: result: no" >&5
7672echo "${ECHO_T}no" >&6
7673 fi
7674
7675
7676 enablestring=
7677 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7678echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
7679 no_cache=0
7680 # Check whether --enable-listctrl or --disable-listctrl was given.
7681if test "${enable_listctrl+set}" = set; then
7682 enableval="$enable_listctrl"
7683
7684 if test "$enableval" = yes; then
7685 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7686 else
7687 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7688 fi
7689
7690else
7691
7692 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7693 if test "x$LINE" != x ; then
7694 eval "DEFAULT_$LINE"
7695 else
7696 no_cache=1
7697 fi
7698
7699 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
7700
7701fi;
7702
7703 eval "$ac_cv_use_listctrl"
7704 if test "$no_cache" != 1; then
7705 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7706 fi
7707
7708 if test "$wxUSE_LISTCTRL" = yes; then
7709 echo "$as_me:$LINENO: result: yes" >&5
7710echo "${ECHO_T}yes" >&6
7711 else
7712 echo "$as_me:$LINENO: result: no" >&5
7713echo "${ECHO_T}no" >&6
7714 fi
7715
7716
7717 enablestring=
7718 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7719echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
7720 no_cache=0
7721 # Check whether --enable-notebook or --disable-notebook was given.
7722if test "${enable_notebook+set}" = set; then
7723 enableval="$enable_notebook"
7724
7725 if test "$enableval" = yes; then
7726 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7727 else
7728 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7729 fi
7730
7731else
7732
7733 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7734 if test "x$LINE" != x ; then
7735 eval "DEFAULT_$LINE"
7736 else
7737 no_cache=1
7738 fi
7739
7740 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
7741
7742fi;
7743
7744 eval "$ac_cv_use_notebook"
7745 if test "$no_cache" != 1; then
7746 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7747 fi
7748
7749 if test "$wxUSE_NOTEBOOK" = yes; then
7750 echo "$as_me:$LINENO: result: yes" >&5
7751echo "${ECHO_T}yes" >&6
7752 else
7753 echo "$as_me:$LINENO: result: no" >&5
7754echo "${ECHO_T}no" >&6
7755 fi
7756
7757
7758 enablestring=
7759 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7760echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
7761 no_cache=0
7762 # Check whether --enable-radiobox or --disable-radiobox was given.
7763if test "${enable_radiobox+set}" = set; then
7764 enableval="$enable_radiobox"
7765
7766 if test "$enableval" = yes; then
7767 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7768 else
7769 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7770 fi
7771
7772else
7773
7774 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7775 if test "x$LINE" != x ; then
7776 eval "DEFAULT_$LINE"
7777 else
7778 no_cache=1
7779 fi
7780
7781 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
7782
7783fi;
7784
7785 eval "$ac_cv_use_radiobox"
7786 if test "$no_cache" != 1; then
7787 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7788 fi
7789
7790 if test "$wxUSE_RADIOBOX" = yes; then
7791 echo "$as_me:$LINENO: result: yes" >&5
7792echo "${ECHO_T}yes" >&6
7793 else
7794 echo "$as_me:$LINENO: result: no" >&5
7795echo "${ECHO_T}no" >&6
7796 fi
7797
7798
7799 enablestring=
7800 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7801echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
7802 no_cache=0
7803 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7804if test "${enable_radiobtn+set}" = set; then
7805 enableval="$enable_radiobtn"
7806
7807 if test "$enableval" = yes; then
7808 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7809 else
7810 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7811 fi
7812
7813else
7814
7815 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7816 if test "x$LINE" != x ; then
7817 eval "DEFAULT_$LINE"
7818 else
7819 no_cache=1
7820 fi
7821
7822 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
7823
7824fi;
7825
7826 eval "$ac_cv_use_radiobtn"
7827 if test "$no_cache" != 1; then
7828 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7829 fi
7830
7831 if test "$wxUSE_RADIOBTN" = yes; then
7832 echo "$as_me:$LINENO: result: yes" >&5
7833echo "${ECHO_T}yes" >&6
7834 else
7835 echo "$as_me:$LINENO: result: no" >&5
7836echo "${ECHO_T}no" >&6
7837 fi
7838
7839
7840 enablestring=
7841 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7842echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
7843 no_cache=0
7844 # Check whether --enable-sash or --disable-sash was given.
7845if test "${enable_sash+set}" = set; then
7846 enableval="$enable_sash"
7847
7848 if test "$enableval" = yes; then
7849 ac_cv_use_sash='wxUSE_SASH=yes'
7850 else
7851 ac_cv_use_sash='wxUSE_SASH=no'
7852 fi
7853
7854else
7855
7856 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7857 if test "x$LINE" != x ; then
7858 eval "DEFAULT_$LINE"
7859 else
7860 no_cache=1
7861 fi
7862
7863 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
7864
7865fi;
7866
7867 eval "$ac_cv_use_sash"
7868 if test "$no_cache" != 1; then
7869 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7870 fi
7871
7872 if test "$wxUSE_SASH" = yes; then
7873 echo "$as_me:$LINENO: result: yes" >&5
7874echo "${ECHO_T}yes" >&6
7875 else
7876 echo "$as_me:$LINENO: result: no" >&5
7877echo "${ECHO_T}no" >&6
7878 fi
7879
7880
7881 enablestring=
7882 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7883echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
7884 no_cache=0
7885 # Check whether --enable-scrollbar or --disable-scrollbar was given.
7886if test "${enable_scrollbar+set}" = set; then
7887 enableval="$enable_scrollbar"
7888
7889 if test "$enableval" = yes; then
7890 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7891 else
7892 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7893 fi
7894
7895else
7896
7897 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7898 if test "x$LINE" != x ; then
7899 eval "DEFAULT_$LINE"
7900 else
7901 no_cache=1
7902 fi
7903
7904 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
7905
7906fi;
7907
7908 eval "$ac_cv_use_scrollbar"
7909 if test "$no_cache" != 1; then
7910 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7911 fi
7912
7913 if test "$wxUSE_SCROLLBAR" = yes; then
7914 echo "$as_me:$LINENO: result: yes" >&5
7915echo "${ECHO_T}yes" >&6
7916 else
7917 echo "$as_me:$LINENO: result: no" >&5
7918echo "${ECHO_T}no" >&6
7919 fi
7920
7921
7922 enablestring=
7923 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7924echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
7925 no_cache=0
7926 # Check whether --enable-slider or --disable-slider was given.
7927if test "${enable_slider+set}" = set; then
7928 enableval="$enable_slider"
7929
7930 if test "$enableval" = yes; then
7931 ac_cv_use_slider='wxUSE_SLIDER=yes'
7932 else
7933 ac_cv_use_slider='wxUSE_SLIDER=no'
7934 fi
7935
7936else
7937
7938 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7939 if test "x$LINE" != x ; then
7940 eval "DEFAULT_$LINE"
7941 else
7942 no_cache=1
7943 fi
7944
7945 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
7946
7947fi;
7948
7949 eval "$ac_cv_use_slider"
7950 if test "$no_cache" != 1; then
7951 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7952 fi
7953
7954 if test "$wxUSE_SLIDER" = yes; then
7955 echo "$as_me:$LINENO: result: yes" >&5
7956echo "${ECHO_T}yes" >&6
7957 else
7958 echo "$as_me:$LINENO: result: no" >&5
7959echo "${ECHO_T}no" >&6
7960 fi
7961
7962
7963 enablestring=
7964 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7965echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
7966 no_cache=0
7967 # Check whether --enable-spinbtn or --disable-spinbtn was given.
7968if test "${enable_spinbtn+set}" = set; then
7969 enableval="$enable_spinbtn"
7970
7971 if test "$enableval" = yes; then
7972 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7973 else
7974 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7975 fi
7976
7977else
7978
7979 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7980 if test "x$LINE" != x ; then
7981 eval "DEFAULT_$LINE"
7982 else
7983 no_cache=1
7984 fi
7985
7986 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
7987
7988fi;
7989
7990 eval "$ac_cv_use_spinbtn"
7991 if test "$no_cache" != 1; then
7992 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7993 fi
7994
7995 if test "$wxUSE_SPINBTN" = yes; then
7996 echo "$as_me:$LINENO: result: yes" >&5
7997echo "${ECHO_T}yes" >&6
7998 else
7999 echo "$as_me:$LINENO: result: no" >&5
8000echo "${ECHO_T}no" >&6
8001 fi
8002
8003
8004 enablestring=
8005 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8006echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8007 no_cache=0
8008 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8009if test "${enable_spinctrl+set}" = set; then
8010 enableval="$enable_spinctrl"
8011
8012 if test "$enableval" = yes; then
8013 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8014 else
8015 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8016 fi
8017
8018else
8019
8020 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8021 if test "x$LINE" != x ; then
8022 eval "DEFAULT_$LINE"
8023 else
8024 no_cache=1
8025 fi
8026
8027 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8028
8029fi;
8030
8031 eval "$ac_cv_use_spinctrl"
8032 if test "$no_cache" != 1; then
8033 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8034 fi
8035
8036 if test "$wxUSE_SPINCTRL" = yes; then
8037 echo "$as_me:$LINENO: result: yes" >&5
8038echo "${ECHO_T}yes" >&6
8039 else
8040 echo "$as_me:$LINENO: result: no" >&5
8041echo "${ECHO_T}no" >&6
8042 fi
8043
8044
8045 enablestring=
8046 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8047echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8048 no_cache=0
8049 # Check whether --enable-splitter or --disable-splitter was given.
8050if test "${enable_splitter+set}" = set; then
8051 enableval="$enable_splitter"
8052
8053 if test "$enableval" = yes; then
8054 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8055 else
8056 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8057 fi
8058
8059else
8060
8061 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8062 if test "x$LINE" != x ; then
8063 eval "DEFAULT_$LINE"
8064 else
8065 no_cache=1
8066 fi
8067
8068 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8069
8070fi;
8071
8072 eval "$ac_cv_use_splitter"
8073 if test "$no_cache" != 1; then
8074 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8075 fi
8076
8077 if test "$wxUSE_SPLITTER" = yes; then
8078 echo "$as_me:$LINENO: result: yes" >&5
8079echo "${ECHO_T}yes" >&6
8080 else
8081 echo "$as_me:$LINENO: result: no" >&5
8082echo "${ECHO_T}no" >&6
8083 fi
8084
8085
8086 enablestring=
8087 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8088echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8089 no_cache=0
8090 # Check whether --enable-statbmp or --disable-statbmp was given.
8091if test "${enable_statbmp+set}" = set; then
8092 enableval="$enable_statbmp"
8093
8094 if test "$enableval" = yes; then
8095 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8096 else
8097 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8098 fi
8099
8100else
8101
8102 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8103 if test "x$LINE" != x ; then
8104 eval "DEFAULT_$LINE"
8105 else
8106 no_cache=1
8107 fi
8108
8109 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8110
8111fi;
8112
8113 eval "$ac_cv_use_statbmp"
8114 if test "$no_cache" != 1; then
8115 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8116 fi
8117
8118 if test "$wxUSE_STATBMP" = yes; then
8119 echo "$as_me:$LINENO: result: yes" >&5
8120echo "${ECHO_T}yes" >&6
8121 else
8122 echo "$as_me:$LINENO: result: no" >&5
8123echo "${ECHO_T}no" >&6
8124 fi
8125
8126
8127 enablestring=
8128 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8129echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8130 no_cache=0
8131 # Check whether --enable-statbox or --disable-statbox was given.
8132if test "${enable_statbox+set}" = set; then
8133 enableval="$enable_statbox"
8134
8135 if test "$enableval" = yes; then
8136 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8137 else
8138 ac_cv_use_statbox='wxUSE_STATBOX=no'
8139 fi
8140
8141else
8142
8143 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8144 if test "x$LINE" != x ; then
8145 eval "DEFAULT_$LINE"
8146 else
8147 no_cache=1
8148 fi
8149
8150 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8151
8152fi;
8153
8154 eval "$ac_cv_use_statbox"
8155 if test "$no_cache" != 1; then
8156 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8157 fi
8158
8159 if test "$wxUSE_STATBOX" = yes; then
8160 echo "$as_me:$LINENO: result: yes" >&5
8161echo "${ECHO_T}yes" >&6
8162 else
8163 echo "$as_me:$LINENO: result: no" >&5
8164echo "${ECHO_T}no" >&6
8165 fi
8166
8167
8168 enablestring=
8169 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8170echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8171 no_cache=0
8172 # Check whether --enable-statline or --disable-statline was given.
8173if test "${enable_statline+set}" = set; then
8174 enableval="$enable_statline"
8175
8176 if test "$enableval" = yes; then
8177 ac_cv_use_statline='wxUSE_STATLINE=yes'
8178 else
8179 ac_cv_use_statline='wxUSE_STATLINE=no'
8180 fi
8181
8182else
8183
8184 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8185 if test "x$LINE" != x ; then
8186 eval "DEFAULT_$LINE"
8187 else
8188 no_cache=1
8189 fi
8190
8191 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8192
8193fi;
8194
8195 eval "$ac_cv_use_statline"
8196 if test "$no_cache" != 1; then
8197 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8198 fi
8199
8200 if test "$wxUSE_STATLINE" = yes; then
8201 echo "$as_me:$LINENO: result: yes" >&5
8202echo "${ECHO_T}yes" >&6
8203 else
8204 echo "$as_me:$LINENO: result: no" >&5
8205echo "${ECHO_T}no" >&6
8206 fi
8207
8208
8209 enablestring=
8210 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8211echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8212 no_cache=0
8213 # Check whether --enable-stattext or --disable-stattext was given.
8214if test "${enable_stattext+set}" = set; then
8215 enableval="$enable_stattext"
8216
8217 if test "$enableval" = yes; then
8218 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8219 else
8220 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8221 fi
8222
8223else
8224
8225 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8226 if test "x$LINE" != x ; then
8227 eval "DEFAULT_$LINE"
8228 else
8229 no_cache=1
8230 fi
8231
8232 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8233
8234fi;
8235
8236 eval "$ac_cv_use_stattext"
8237 if test "$no_cache" != 1; then
8238 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8239 fi
8240
8241 if test "$wxUSE_STATTEXT" = yes; then
8242 echo "$as_me:$LINENO: result: yes" >&5
8243echo "${ECHO_T}yes" >&6
8244 else
8245 echo "$as_me:$LINENO: result: no" >&5
8246echo "${ECHO_T}no" >&6
8247 fi
8248
8249
8250 enablestring=
8251 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8252echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8253 no_cache=0
8254 # Check whether --enable-statusbar or --disable-statusbar was given.
8255if test "${enable_statusbar+set}" = set; then
8256 enableval="$enable_statusbar"
8257
8258 if test "$enableval" = yes; then
8259 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8260 else
8261 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8262 fi
8263
8264else
8265
8266 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8267 if test "x$LINE" != x ; then
8268 eval "DEFAULT_$LINE"
8269 else
8270 no_cache=1
8271 fi
8272
8273 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8274
8275fi;
8276
8277 eval "$ac_cv_use_statusbar"
8278 if test "$no_cache" != 1; then
8279 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8280 fi
8281
8282 if test "$wxUSE_STATUSBAR" = yes; then
8283 echo "$as_me:$LINENO: result: yes" >&5
8284echo "${ECHO_T}yes" >&6
8285 else
8286 echo "$as_me:$LINENO: result: no" >&5
8287echo "${ECHO_T}no" >&6
8288 fi
8289
8290
8291 enablestring=
8292 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8293echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8294 no_cache=0
8295 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8296if test "${enable_tabdialog+set}" = set; then
8297 enableval="$enable_tabdialog"
8298
8299 if test "$enableval" = yes; then
8300 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8301 else
8302 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8303 fi
8304
8305else
8306
8307 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8308 if test "x$LINE" != x ; then
8309 eval "DEFAULT_$LINE"
8310 else
8311 no_cache=1
8312 fi
8313
8314 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8315
8316fi;
8317
8318 eval "$ac_cv_use_tabdialog"
8319 if test "$no_cache" != 1; then
8320 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8321 fi
8322
8323 if test "$wxUSE_TABDIALOG" = yes; then
8324 echo "$as_me:$LINENO: result: yes" >&5
8325echo "${ECHO_T}yes" >&6
8326 else
8327 echo "$as_me:$LINENO: result: no" >&5
8328echo "${ECHO_T}no" >&6
8329 fi
8330
8331
8332 enablestring=
8333 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8334echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8335 no_cache=0
8336 # Check whether --enable-textctrl or --disable-textctrl was given.
8337if test "${enable_textctrl+set}" = set; then
8338 enableval="$enable_textctrl"
8339
8340 if test "$enableval" = yes; then
8341 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8342 else
8343 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8344 fi
8345
8346else
8347
8348 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8349 if test "x$LINE" != x ; then
8350 eval "DEFAULT_$LINE"
8351 else
8352 no_cache=1
8353 fi
8354
8355 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8356
8357fi;
8358
8359 eval "$ac_cv_use_textctrl"
8360 if test "$no_cache" != 1; then
8361 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8362 fi
8363
8364 if test "$wxUSE_TEXTCTRL" = yes; then
8365 echo "$as_me:$LINENO: result: yes" >&5
8366echo "${ECHO_T}yes" >&6
8367 else
8368 echo "$as_me:$LINENO: result: no" >&5
8369echo "${ECHO_T}no" >&6
8370 fi
8371
8372
8373 enablestring=
8374 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8375echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8376 no_cache=0
8377 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8378if test "${enable_togglebtn+set}" = set; then
8379 enableval="$enable_togglebtn"
8380
8381 if test "$enableval" = yes; then
8382 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8383 else
8384 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8385 fi
8386
8387else
8388
8389 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8390 if test "x$LINE" != x ; then
8391 eval "DEFAULT_$LINE"
8392 else
8393 no_cache=1
8394 fi
8395
8396 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8397
8398fi;
8399
8400 eval "$ac_cv_use_togglebtn"
8401 if test "$no_cache" != 1; then
8402 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8403 fi
8404
8405 if test "$wxUSE_TOGGLEBTN" = yes; then
8406 echo "$as_me:$LINENO: result: yes" >&5
8407echo "${ECHO_T}yes" >&6
8408 else
8409 echo "$as_me:$LINENO: result: no" >&5
8410echo "${ECHO_T}no" >&6
8411 fi
8412
8413
8414 enablestring=
8415 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8416echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8417 no_cache=0
8418 # Check whether --enable-toolbar or --disable-toolbar was given.
8419if test "${enable_toolbar+set}" = set; then
8420 enableval="$enable_toolbar"
8421
8422 if test "$enableval" = yes; then
8423 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8424 else
8425 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8426 fi
8427
8428else
8429
8430 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8431 if test "x$LINE" != x ; then
8432 eval "DEFAULT_$LINE"
8433 else
8434 no_cache=1
8435 fi
8436
8437 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8438
8439fi;
8440
8441 eval "$ac_cv_use_toolbar"
8442 if test "$no_cache" != 1; then
8443 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8444 fi
8445
8446 if test "$wxUSE_TOOLBAR" = yes; then
8447 echo "$as_me:$LINENO: result: yes" >&5
8448echo "${ECHO_T}yes" >&6
8449 else
8450 echo "$as_me:$LINENO: result: no" >&5
8451echo "${ECHO_T}no" >&6
8452 fi
8453
8454
8455 enablestring=
8456 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8457echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8458 no_cache=0
8459 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8460if test "${enable_tbarnative+set}" = set; then
8461 enableval="$enable_tbarnative"
8462
8463 if test "$enableval" = yes; then
8464 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8465 else
8466 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8467 fi
8468
8469else
8470
8471 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8472 if test "x$LINE" != x ; then
8473 eval "DEFAULT_$LINE"
8474 else
8475 no_cache=1
8476 fi
8477
8478 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8479
8480fi;
8481
8482 eval "$ac_cv_use_tbarnative"
8483 if test "$no_cache" != 1; then
8484 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8485 fi
8486
8487 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8488 echo "$as_me:$LINENO: result: yes" >&5
8489echo "${ECHO_T}yes" >&6
8490 else
8491 echo "$as_me:$LINENO: result: no" >&5
8492echo "${ECHO_T}no" >&6
8493 fi
8494
8495
8496 enablestring=
8497 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8498echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8499 no_cache=0
8500 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8501if test "${enable_tbarsmpl+set}" = set; then
8502 enableval="$enable_tbarsmpl"
8503
8504 if test "$enableval" = yes; then
8505 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8506 else
8507 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8508 fi
8509
8510else
8511
8512 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8513 if test "x$LINE" != x ; then
8514 eval "DEFAULT_$LINE"
8515 else
8516 no_cache=1
8517 fi
8518
8519 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8520
8521fi;
8522
8523 eval "$ac_cv_use_tbarsmpl"
8524 if test "$no_cache" != 1; then
8525 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8526 fi
8527
8528 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8529 echo "$as_me:$LINENO: result: yes" >&5
8530echo "${ECHO_T}yes" >&6
8531 else
8532 echo "$as_me:$LINENO: result: no" >&5
8533echo "${ECHO_T}no" >&6
8534 fi
8535
8536
8537 enablestring=
8538 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8539echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8540 no_cache=0
8541 # Check whether --enable-treectrl or --disable-treectrl was given.
8542if test "${enable_treectrl+set}" = set; then
8543 enableval="$enable_treectrl"
8544
8545 if test "$enableval" = yes; then
8546 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8547 else
8548 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8549 fi
8550
8551else
8552
8553 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8554 if test "x$LINE" != x ; then
8555 eval "DEFAULT_$LINE"
8556 else
8557 no_cache=1
8558 fi
8559
8560 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8561
8562fi;
8563
8564 eval "$ac_cv_use_treectrl"
8565 if test "$no_cache" != 1; then
8566 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8567 fi
8568
8569 if test "$wxUSE_TREECTRL" = yes; then
8570 echo "$as_me:$LINENO: result: yes" >&5
8571echo "${ECHO_T}yes" >&6
8572 else
8573 echo "$as_me:$LINENO: result: no" >&5
8574echo "${ECHO_T}no" >&6
8575 fi
8576
8577
8578 enablestring=
8579 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8580echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8581 no_cache=0
8582 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8583if test "${enable_tipwindow+set}" = set; then
8584 enableval="$enable_tipwindow"
8585
8586 if test "$enableval" = yes; then
8587 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8588 else
8589 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8590 fi
8591
8592else
8593
8594 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8595 if test "x$LINE" != x ; then
8596 eval "DEFAULT_$LINE"
8597 else
8598 no_cache=1
8599 fi
8600
8601 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8602
8603fi;
8604
8605 eval "$ac_cv_use_tipwindow"
8606 if test "$no_cache" != 1; then
8607 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8608 fi
8609
8610 if test "$wxUSE_TIPWINDOW" = yes; then
8611 echo "$as_me:$LINENO: result: yes" >&5
8612echo "${ECHO_T}yes" >&6
8613 else
8614 echo "$as_me:$LINENO: result: no" >&5
8615echo "${ECHO_T}no" >&6
8616 fi
8617
8618
8619 enablestring=
8620 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8621echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8622 no_cache=0
8623 # Check whether --enable-popupwin or --disable-popupwin was given.
8624if test "${enable_popupwin+set}" = set; then
8625 enableval="$enable_popupwin"
8626
8627 if test "$enableval" = yes; then
8628 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8629 else
8630 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8631 fi
8632
8633else
8634
8635 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8636 if test "x$LINE" != x ; then
8637 eval "DEFAULT_$LINE"
8638 else
8639 no_cache=1
8640 fi
8641
8642 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
8643
8644fi;
8645
8646 eval "$ac_cv_use_popupwin"
8647 if test "$no_cache" != 1; then
8648 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8649 fi
8650
8651 if test "$wxUSE_POPUPWIN" = yes; then
8652 echo "$as_me:$LINENO: result: yes" >&5
8653echo "${ECHO_T}yes" >&6
8654 else
8655 echo "$as_me:$LINENO: result: no" >&5
8656echo "${ECHO_T}no" >&6
8657 fi
8658
8659
8660
8661
8662 enablestring=
8663 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8664echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
8665 no_cache=0
8666 # Check whether --enable-commondlg or --disable-commondlg was given.
8667if test "${enable_commondlg+set}" = set; then
8668 enableval="$enable_commondlg"
8669
8670 if test "$enableval" = yes; then
8671 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8672 else
8673 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8674 fi
8675
8676else
8677
8678 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8679 if test "x$LINE" != x ; then
8680 eval "DEFAULT_$LINE"
8681 else
8682 no_cache=1
8683 fi
8684
8685 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
8686
8687fi;
8688
8689 eval "$ac_cv_use_commondlg"
8690 if test "$no_cache" != 1; then
8691 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8692 fi
8693
8694 if test "$wxUSE_COMMONDLGS" = yes; then
8695 echo "$as_me:$LINENO: result: yes" >&5
8696echo "${ECHO_T}yes" >&6
8697 else
8698 echo "$as_me:$LINENO: result: no" >&5
8699echo "${ECHO_T}no" >&6
8700 fi
8701
8702
8703 enablestring=
8704 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8705echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
8706 no_cache=0
8707 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8708if test "${enable_choicedlg+set}" = set; then
8709 enableval="$enable_choicedlg"
8710
8711 if test "$enableval" = yes; then
8712 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8713 else
8714 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8715 fi
8716
8717else
8718
8719 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8720 if test "x$LINE" != x ; then
8721 eval "DEFAULT_$LINE"
8722 else
8723 no_cache=1
8724 fi
8725
8726 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
8727
8728fi;
8729
8730 eval "$ac_cv_use_choicedlg"
8731 if test "$no_cache" != 1; then
8732 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8733 fi
8734
8735 if test "$wxUSE_CHOICEDLG" = yes; then
8736 echo "$as_me:$LINENO: result: yes" >&5
8737echo "${ECHO_T}yes" >&6
8738 else
8739 echo "$as_me:$LINENO: result: no" >&5
8740echo "${ECHO_T}no" >&6
8741 fi
8742
8743
8744 enablestring=
8745 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8746echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
8747 no_cache=0
8748 # Check whether --enable-coldlg or --disable-coldlg was given.
8749if test "${enable_coldlg+set}" = set; then
8750 enableval="$enable_coldlg"
8751
8752 if test "$enableval" = yes; then
8753 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8754 else
8755 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8756 fi
8757
8758else
8759
8760 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8761 if test "x$LINE" != x ; then
8762 eval "DEFAULT_$LINE"
8763 else
8764 no_cache=1
8765 fi
8766
8767 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
8768
8769fi;
8770
8771 eval "$ac_cv_use_coldlg"
8772 if test "$no_cache" != 1; then
8773 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8774 fi
8775
8776 if test "$wxUSE_COLOURDLG" = yes; then
8777 echo "$as_me:$LINENO: result: yes" >&5
8778echo "${ECHO_T}yes" >&6
8779 else
8780 echo "$as_me:$LINENO: result: no" >&5
8781echo "${ECHO_T}no" >&6
8782 fi
8783
8784
8785 enablestring=
8786 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8787echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
8788 no_cache=0
8789 # Check whether --enable-filedlg or --disable-filedlg was given.
8790if test "${enable_filedlg+set}" = set; then
8791 enableval="$enable_filedlg"
8792
8793 if test "$enableval" = yes; then
8794 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8795 else
8796 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8797 fi
8798
8799else
8800
8801 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8802 if test "x$LINE" != x ; then
8803 eval "DEFAULT_$LINE"
8804 else
8805 no_cache=1
8806 fi
8807
8808 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
8809
8810fi;
8811
8812 eval "$ac_cv_use_filedlg"
8813 if test "$no_cache" != 1; then
8814 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8815 fi
8816
8817 if test "$wxUSE_FILEDLG" = yes; then
8818 echo "$as_me:$LINENO: result: yes" >&5
8819echo "${ECHO_T}yes" >&6
8820 else
8821 echo "$as_me:$LINENO: result: no" >&5
8822echo "${ECHO_T}no" >&6
8823 fi
8824
8825
8826 enablestring=
8827 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8828echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8829 no_cache=0
8830 # Check whether --enable-finddlg or --disable-finddlg was given.
8831if test "${enable_finddlg+set}" = set; then
8832 enableval="$enable_finddlg"
8833
8834 if test "$enableval" = yes; then
8835 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8836 else
8837 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8838 fi
8839
8840else
8841
8842 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8843 if test "x$LINE" != x ; then
8844 eval "DEFAULT_$LINE"
8845 else
8846 no_cache=1
8847 fi
8848
8849 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8850
8851fi;
8852
8853 eval "$ac_cv_use_finddlg"
8854 if test "$no_cache" != 1; then
8855 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8856 fi
8857
8858 if test "$wxUSE_FINDREPLDLG" = yes; then
8859 echo "$as_me:$LINENO: result: yes" >&5
8860echo "${ECHO_T}yes" >&6
8861 else
8862 echo "$as_me:$LINENO: result: no" >&5
8863echo "${ECHO_T}no" >&6
8864 fi
8865
8866
8867 enablestring=
8868 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8869echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
8870 no_cache=0
8871 # Check whether --enable-fontdlg or --disable-fontdlg was given.
8872if test "${enable_fontdlg+set}" = set; then
8873 enableval="$enable_fontdlg"
8874
8875 if test "$enableval" = yes; then
8876 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8877 else
8878 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8879 fi
8880
8881else
8882
8883 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8884 if test "x$LINE" != x ; then
8885 eval "DEFAULT_$LINE"
8886 else
8887 no_cache=1
8888 fi
8889
8890 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
8891
8892fi;
8893
8894 eval "$ac_cv_use_fontdlg"
8895 if test "$no_cache" != 1; then
8896 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8897 fi
8898
8899 if test "$wxUSE_FONTDLG" = yes; then
8900 echo "$as_me:$LINENO: result: yes" >&5
8901echo "${ECHO_T}yes" >&6
8902 else
8903 echo "$as_me:$LINENO: result: no" >&5
8904echo "${ECHO_T}no" >&6
8905 fi
8906
8907
8908 enablestring=
8909 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8910echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
8911 no_cache=0
8912 # Check whether --enable-dirdlg or --disable-dirdlg was given.
8913if test "${enable_dirdlg+set}" = set; then
8914 enableval="$enable_dirdlg"
8915
8916 if test "$enableval" = yes; then
8917 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8918 else
8919 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8920 fi
8921
8922else
8923
8924 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8925 if test "x$LINE" != x ; then
8926 eval "DEFAULT_$LINE"
8927 else
8928 no_cache=1
8929 fi
8930
8931 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
8932
8933fi;
8934
8935 eval "$ac_cv_use_dirdlg"
8936 if test "$no_cache" != 1; then
8937 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
8938 fi
8939
8940 if test "$wxUSE_DIRDLG" = yes; then
8941 echo "$as_me:$LINENO: result: yes" >&5
8942echo "${ECHO_T}yes" >&6
8943 else
8944 echo "$as_me:$LINENO: result: no" >&5
8945echo "${ECHO_T}no" >&6
8946 fi
8947
8948
8949 enablestring=
8950 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8951echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
8952 no_cache=0
8953 # Check whether --enable-msgdlg or --disable-msgdlg was given.
8954if test "${enable_msgdlg+set}" = set; then
8955 enableval="$enable_msgdlg"
8956
8957 if test "$enableval" = yes; then
8958 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
8959 else
8960 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
8961 fi
8962
8963else
8964
8965 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
8966 if test "x$LINE" != x ; then
8967 eval "DEFAULT_$LINE"
8968 else
8969 no_cache=1
8970 fi
8971
8972 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
8973
8974fi;
8975
8976 eval "$ac_cv_use_msgdlg"
8977 if test "$no_cache" != 1; then
8978 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
8979 fi
8980
8981 if test "$wxUSE_MSGDLG" = yes; then
8982 echo "$as_me:$LINENO: result: yes" >&5
8983echo "${ECHO_T}yes" >&6
8984 else
8985 echo "$as_me:$LINENO: result: no" >&5
8986echo "${ECHO_T}no" >&6
8987 fi
8988
8989
8990 enablestring=
8991 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
8992echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
8993 no_cache=0
8994 # Check whether --enable-numberdlg or --disable-numberdlg was given.
8995if test "${enable_numberdlg+set}" = set; then
8996 enableval="$enable_numberdlg"
8997
8998 if test "$enableval" = yes; then
8999 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9000 else
9001 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9002 fi
9003
9004else
9005
9006 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9007 if test "x$LINE" != x ; then
9008 eval "DEFAULT_$LINE"
9009 else
9010 no_cache=1
9011 fi
9012
9013 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9014
9015fi;
9016
9017 eval "$ac_cv_use_numberdlg"
9018 if test "$no_cache" != 1; then
9019 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9020 fi
9021
9022 if test "$wxUSE_NUMBERDLG" = yes; then
9023 echo "$as_me:$LINENO: result: yes" >&5
9024echo "${ECHO_T}yes" >&6
9025 else
9026 echo "$as_me:$LINENO: result: no" >&5
9027echo "${ECHO_T}no" >&6
9028 fi
9029
9030
9031 enablestring=
9032 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9033echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9034 no_cache=0
9035 # Check whether --enable-splash or --disable-splash was given.
9036if test "${enable_splash+set}" = set; then
9037 enableval="$enable_splash"
9038
9039 if test "$enableval" = yes; then
9040 ac_cv_use_splash='wxUSE_SPLASH=yes'
9041 else
9042 ac_cv_use_splash='wxUSE_SPLASH=no'
9043 fi
9044
9045else
9046
9047 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9048 if test "x$LINE" != x ; then
9049 eval "DEFAULT_$LINE"
9050 else
9051 no_cache=1
9052 fi
9053
9054 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9055
9056fi;
9057
9058 eval "$ac_cv_use_splash"
9059 if test "$no_cache" != 1; then
9060 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9061 fi
9062
9063 if test "$wxUSE_SPLASH" = yes; then
9064 echo "$as_me:$LINENO: result: yes" >&5
9065echo "${ECHO_T}yes" >&6
9066 else
9067 echo "$as_me:$LINENO: result: no" >&5
9068echo "${ECHO_T}no" >&6
9069 fi
9070
9071
9072 enablestring=
9073 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9074echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9075 no_cache=0
9076 # Check whether --enable-textdlg or --disable-textdlg was given.
9077if test "${enable_textdlg+set}" = set; then
9078 enableval="$enable_textdlg"
9079
9080 if test "$enableval" = yes; then
9081 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9082 else
9083 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9084 fi
9085
9086else
9087
9088 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9089 if test "x$LINE" != x ; then
9090 eval "DEFAULT_$LINE"
9091 else
9092 no_cache=1
9093 fi
9094
9095 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9096
9097fi;
9098
9099 eval "$ac_cv_use_textdlg"
9100 if test "$no_cache" != 1; then
9101 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9102 fi
9103
9104 if test "$wxUSE_TEXTDLG" = yes; then
9105 echo "$as_me:$LINENO: result: yes" >&5
9106echo "${ECHO_T}yes" >&6
9107 else
9108 echo "$as_me:$LINENO: result: no" >&5
9109echo "${ECHO_T}no" >&6
9110 fi
9111
9112
9113 enablestring=
9114 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9115echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9116 no_cache=0
9117 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9118if test "${enable_tipdlg+set}" = set; then
9119 enableval="$enable_tipdlg"
9120
9121 if test "$enableval" = yes; then
9122 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9123 else
9124 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9125 fi
9126
9127else
9128
9129 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9130 if test "x$LINE" != x ; then
9131 eval "DEFAULT_$LINE"
9132 else
9133 no_cache=1
9134 fi
9135
9136 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9137
9138fi;
9139
9140 eval "$ac_cv_use_tipdlg"
9141 if test "$no_cache" != 1; then
9142 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9143 fi
9144
9145 if test "$wxUSE_STARTUP_TIPS" = yes; then
9146 echo "$as_me:$LINENO: result: yes" >&5
9147echo "${ECHO_T}yes" >&6
9148 else
9149 echo "$as_me:$LINENO: result: no" >&5
9150echo "${ECHO_T}no" >&6
9151 fi
9152
9153
9154 enablestring=
9155 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9156echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9157 no_cache=0
9158 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9159if test "${enable_progressdlg+set}" = set; then
9160 enableval="$enable_progressdlg"
9161
9162 if test "$enableval" = yes; then
9163 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9164 else
9165 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9166 fi
9167
9168else
9169
9170 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9171 if test "x$LINE" != x ; then
9172 eval "DEFAULT_$LINE"
9173 else
9174 no_cache=1
9175 fi
9176
9177 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9178
9179fi;
9180
9181 eval "$ac_cv_use_progressdlg"
9182 if test "$no_cache" != 1; then
9183 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9184 fi
9185
9186 if test "$wxUSE_PROGRESSDLG" = yes; then
9187 echo "$as_me:$LINENO: result: yes" >&5
9188echo "${ECHO_T}yes" >&6
9189 else
9190 echo "$as_me:$LINENO: result: no" >&5
9191echo "${ECHO_T}no" >&6
9192 fi
9193
9194
9195 enablestring=
9196 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9197echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9198 no_cache=0
9199 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9200if test "${enable_wizarddlg+set}" = set; then
9201 enableval="$enable_wizarddlg"
9202
9203 if test "$enableval" = yes; then
9204 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9205 else
9206 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9207 fi
9208
9209else
9210
9211 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9212 if test "x$LINE" != x ; then
9213 eval "DEFAULT_$LINE"
9214 else
9215 no_cache=1
9216 fi
9217
9218 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9219
9220fi;
9221
9222 eval "$ac_cv_use_wizarddlg"
9223 if test "$no_cache" != 1; then
9224 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9225 fi
9226
9227 if test "$wxUSE_WIZARDDLG" = yes; then
9228 echo "$as_me:$LINENO: result: yes" >&5
9229echo "${ECHO_T}yes" >&6
9230 else
9231 echo "$as_me:$LINENO: result: no" >&5
9232echo "${ECHO_T}no" >&6
9233 fi
9234
9235
9236
9237
9238 enablestring=
9239 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9240echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9241 no_cache=0
9242 # Check whether --enable-menus or --disable-menus was given.
9243if test "${enable_menus+set}" = set; then
9244 enableval="$enable_menus"
9245
9246 if test "$enableval" = yes; then
9247 ac_cv_use_menus='wxUSE_MENUS=yes'
9248 else
9249 ac_cv_use_menus='wxUSE_MENUS=no'
9250 fi
9251
9252else
9253
9254 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9255 if test "x$LINE" != x ; then
9256 eval "DEFAULT_$LINE"
9257 else
9258 no_cache=1
9259 fi
9260
9261 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9262
9263fi;
9264
9265 eval "$ac_cv_use_menus"
9266 if test "$no_cache" != 1; then
9267 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9268 fi
9269
9270 if test "$wxUSE_MENUS" = yes; then
9271 echo "$as_me:$LINENO: result: yes" >&5
9272echo "${ECHO_T}yes" >&6
9273 else
9274 echo "$as_me:$LINENO: result: no" >&5
9275echo "${ECHO_T}no" >&6
9276 fi
9277
9278
9279 enablestring=
9280 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9281echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9282 no_cache=0
9283 # Check whether --enable-miniframe or --disable-miniframe was given.
9284if test "${enable_miniframe+set}" = set; then
9285 enableval="$enable_miniframe"
9286
9287 if test "$enableval" = yes; then
9288 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9289 else
9290 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9291 fi
9292
9293else
9294
9295 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9296 if test "x$LINE" != x ; then
9297 eval "DEFAULT_$LINE"
9298 else
9299 no_cache=1
9300 fi
9301
9302 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9303
9304fi;
9305
9306 eval "$ac_cv_use_miniframe"
9307 if test "$no_cache" != 1; then
9308 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9309 fi
9310
9311 if test "$wxUSE_MINIFRAME" = yes; then
9312 echo "$as_me:$LINENO: result: yes" >&5
9313echo "${ECHO_T}yes" >&6
9314 else
9315 echo "$as_me:$LINENO: result: no" >&5
9316echo "${ECHO_T}no" >&6
9317 fi
9318
9319
9320 enablestring=
9321 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9322echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9323 no_cache=0
9324 # Check whether --enable-tooltips or --disable-tooltips was given.
9325if test "${enable_tooltips+set}" = set; then
9326 enableval="$enable_tooltips"
9327
9328 if test "$enableval" = yes; then
9329 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9330 else
9331 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9332 fi
9333
9334else
9335
9336 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9337 if test "x$LINE" != x ; then
9338 eval "DEFAULT_$LINE"
9339 else
9340 no_cache=1
9341 fi
9342
9343 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9344
9345fi;
9346
9347 eval "$ac_cv_use_tooltips"
9348 if test "$no_cache" != 1; then
9349 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9350 fi
9351
9352 if test "$wxUSE_TOOLTIPS" = yes; then
9353 echo "$as_me:$LINENO: result: yes" >&5
9354echo "${ECHO_T}yes" >&6
9355 else
9356 echo "$as_me:$LINENO: result: no" >&5
9357echo "${ECHO_T}no" >&6
9358 fi
9359
9360
9361 enablestring=
9362 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9363echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9364 no_cache=0
9365 # Check whether --enable-splines or --disable-splines was given.
9366if test "${enable_splines+set}" = set; then
9367 enableval="$enable_splines"
9368
9369 if test "$enableval" = yes; then
9370 ac_cv_use_splines='wxUSE_SPLINES=yes'
9371 else
9372 ac_cv_use_splines='wxUSE_SPLINES=no'
9373 fi
9374
9375else
9376
9377 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9378 if test "x$LINE" != x ; then
9379 eval "DEFAULT_$LINE"
9380 else
9381 no_cache=1
9382 fi
9383
9384 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9385
9386fi;
9387
9388 eval "$ac_cv_use_splines"
9389 if test "$no_cache" != 1; then
9390 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9391 fi
9392
9393 if test "$wxUSE_SPLINES" = yes; then
9394 echo "$as_me:$LINENO: result: yes" >&5
9395echo "${ECHO_T}yes" >&6
9396 else
9397 echo "$as_me:$LINENO: result: no" >&5
9398echo "${ECHO_T}no" >&6
9399 fi
9400
9401
9402 enablestring=
9403 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9404echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9405 no_cache=0
9406 # Check whether --enable-validators or --disable-validators was given.
9407if test "${enable_validators+set}" = set; then
9408 enableval="$enable_validators"
9409
9410 if test "$enableval" = yes; then
9411 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9412 else
9413 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9414 fi
9415
9416else
9417
9418 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9419 if test "x$LINE" != x ; then
9420 eval "DEFAULT_$LINE"
9421 else
9422 no_cache=1
9423 fi
9424
9425 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9426
9427fi;
9428
9429 eval "$ac_cv_use_validators"
9430 if test "$no_cache" != 1; then
9431 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9432 fi
9433
9434 if test "$wxUSE_VALIDATORS" = yes; then
9435 echo "$as_me:$LINENO: result: yes" >&5
9436echo "${ECHO_T}yes" >&6
9437 else
9438 echo "$as_me:$LINENO: result: no" >&5
9439echo "${ECHO_T}no" >&6
9440 fi
9441
9442
9443 enablestring=
9444 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9445echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9446 no_cache=0
9447 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9448if test "${enable_busyinfo+set}" = set; then
9449 enableval="$enable_busyinfo"
9450
9451 if test "$enableval" = yes; then
9452 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9453 else
9454 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9455 fi
9456
9457else
9458
9459 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9460 if test "x$LINE" != x ; then
9461 eval "DEFAULT_$LINE"
9462 else
9463 no_cache=1
9464 fi
9465
9466 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9467
9468fi;
9469
9470 eval "$ac_cv_use_busyinfo"
9471 if test "$no_cache" != 1; then
9472 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9473 fi
9474
9475 if test "$wxUSE_BUSYINFO" = yes; then
9476 echo "$as_me:$LINENO: result: yes" >&5
9477echo "${ECHO_T}yes" >&6
9478 else
9479 echo "$as_me:$LINENO: result: no" >&5
9480echo "${ECHO_T}no" >&6
9481 fi
9482
9483
9484 enablestring=
9485 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9486echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9487 no_cache=0
9488 # Check whether --enable-joystick or --disable-joystick was given.
9489if test "${enable_joystick+set}" = set; then
9490 enableval="$enable_joystick"
9491
9492 if test "$enableval" = yes; then
9493 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9494 else
9495 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9496 fi
9497
9498else
9499
9500 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9501 if test "x$LINE" != x ; then
9502 eval "DEFAULT_$LINE"
9503 else
9504 no_cache=1
9505 fi
9506
9507 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9508
9509fi;
9510
9511 eval "$ac_cv_use_joystick"
9512 if test "$no_cache" != 1; then
9513 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9514 fi
9515
9516 if test "$wxUSE_JOYSTICK" = yes; then
9517 echo "$as_me:$LINENO: result: yes" >&5
9518echo "${ECHO_T}yes" >&6
9519 else
9520 echo "$as_me:$LINENO: result: no" >&5
9521echo "${ECHO_T}no" >&6
9522 fi
9523
9524
9525 enablestring=
9526 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9527echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9528 no_cache=0
9529 # Check whether --enable-metafile or --disable-metafile was given.
9530if test "${enable_metafile+set}" = set; then
9531 enableval="$enable_metafile"
9532
9533 if test "$enableval" = yes; then
9534 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9535 else
9536 ac_cv_use_metafile='wxUSE_METAFILE=no'
9537 fi
9538
9539else
9540
9541 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9542 if test "x$LINE" != x ; then
9543 eval "DEFAULT_$LINE"
9544 else
9545 no_cache=1
9546 fi
9547
9548 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9549
9550fi;
9551
9552 eval "$ac_cv_use_metafile"
9553 if test "$no_cache" != 1; then
9554 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9555 fi
9556
9557 if test "$wxUSE_METAFILE" = yes; then
9558 echo "$as_me:$LINENO: result: yes" >&5
9559echo "${ECHO_T}yes" >&6
9560 else
9561 echo "$as_me:$LINENO: result: no" >&5
9562echo "${ECHO_T}no" >&6
9563 fi
9564
9565
9566 enablestring=
9567 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9568echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9569 no_cache=0
9570 # Check whether --enable-dragimage or --disable-dragimage was given.
9571if test "${enable_dragimage+set}" = set; then
9572 enableval="$enable_dragimage"
9573
9574 if test "$enableval" = yes; then
9575 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9576 else
9577 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9578 fi
9579
9580else
9581
9582 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9583 if test "x$LINE" != x ; then
9584 eval "DEFAULT_$LINE"
9585 else
9586 no_cache=1
9587 fi
9588
9589 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9590
9591fi;
9592
9593 eval "$ac_cv_use_dragimage"
9594 if test "$no_cache" != 1; then
9595 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9596 fi
9597
9598 if test "$wxUSE_DRAGIMAGE" = yes; then
9599 echo "$as_me:$LINENO: result: yes" >&5
9600echo "${ECHO_T}yes" >&6
9601 else
9602 echo "$as_me:$LINENO: result: no" >&5
9603echo "${ECHO_T}no" >&6
9604 fi
9605
9606
9607 enablestring=
9608 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9609echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
9610 no_cache=0
9611 # Check whether --enable-accessibility or --disable-accessibility was given.
9612if test "${enable_accessibility+set}" = set; then
9613 enableval="$enable_accessibility"
9614
9615 if test "$enableval" = yes; then
9616 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9617 else
9618 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9619 fi
9620
9621else
9622
9623 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9624 if test "x$LINE" != x ; then
9625 eval "DEFAULT_$LINE"
9626 else
9627 no_cache=1
9628 fi
9629
9630 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
9631
9632fi;
9633
9634 eval "$ac_cv_use_accessibility"
9635 if test "$no_cache" != 1; then
9636 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9637 fi
9638
9639 if test "$wxUSE_ACCESSIBILITY" = yes; then
9640 echo "$as_me:$LINENO: result: yes" >&5
9641echo "${ECHO_T}yes" >&6
9642 else
9643 echo "$as_me:$LINENO: result: no" >&5
9644echo "${ECHO_T}no" >&6
9645 fi
9646
9647
9648
9649
9650 enablestring=
9651 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9652echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
9653 no_cache=0
9654 # Check whether --enable-palette or --disable-palette was given.
9655if test "${enable_palette+set}" = set; then
9656 enableval="$enable_palette"
9657
9658 if test "$enableval" = yes; then
9659 ac_cv_use_palette='wxUSE_PALETTE=yes'
9660 else
9661 ac_cv_use_palette='wxUSE_PALETTE=no'
9662 fi
9663
9664else
9665
9666 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9667 if test "x$LINE" != x ; then
9668 eval "DEFAULT_$LINE"
9669 else
9670 no_cache=1
9671 fi
9672
9673 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
9674
9675fi;
9676
9677 eval "$ac_cv_use_palette"
9678 if test "$no_cache" != 1; then
9679 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9680 fi
9681
9682 if test "$wxUSE_PALETTE" = yes; then
9683 echo "$as_me:$LINENO: result: yes" >&5
9684echo "${ECHO_T}yes" >&6
9685 else
9686 echo "$as_me:$LINENO: result: no" >&5
9687echo "${ECHO_T}no" >&6
9688 fi
9689
9690
9691 enablestring=
9692 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9693echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
9694 no_cache=0
9695 # Check whether --enable-image or --disable-image was given.
9696if test "${enable_image+set}" = set; then
9697 enableval="$enable_image"
9698
9699 if test "$enableval" = yes; then
9700 ac_cv_use_image='wxUSE_IMAGE=yes'
9701 else
9702 ac_cv_use_image='wxUSE_IMAGE=no'
9703 fi
9704
9705else
9706
9707 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9708 if test "x$LINE" != x ; then
9709 eval "DEFAULT_$LINE"
9710 else
9711 no_cache=1
9712 fi
9713
9714 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
9715
9716fi;
9717
9718 eval "$ac_cv_use_image"
9719 if test "$no_cache" != 1; then
9720 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9721 fi
9722
9723 if test "$wxUSE_IMAGE" = yes; then
9724 echo "$as_me:$LINENO: result: yes" >&5
9725echo "${ECHO_T}yes" >&6
9726 else
9727 echo "$as_me:$LINENO: result: no" >&5
9728echo "${ECHO_T}no" >&6
9729 fi
9730
9731
9732 enablestring=
9733 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9734echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
9735 no_cache=0
9736 # Check whether --enable-gif or --disable-gif was given.
9737if test "${enable_gif+set}" = set; then
9738 enableval="$enable_gif"
9739
9740 if test "$enableval" = yes; then
9741 ac_cv_use_gif='wxUSE_GIF=yes'
9742 else
9743 ac_cv_use_gif='wxUSE_GIF=no'
9744 fi
9745
9746else
9747
9748 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9749 if test "x$LINE" != x ; then
9750 eval "DEFAULT_$LINE"
9751 else
9752 no_cache=1
9753 fi
9754
9755 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
9756
9757fi;
9758
9759 eval "$ac_cv_use_gif"
9760 if test "$no_cache" != 1; then
9761 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9762 fi
9763
9764 if test "$wxUSE_GIF" = yes; then
9765 echo "$as_me:$LINENO: result: yes" >&5
9766echo "${ECHO_T}yes" >&6
9767 else
9768 echo "$as_me:$LINENO: result: no" >&5
9769echo "${ECHO_T}no" >&6
9770 fi
9771
9772
9773 enablestring=
9774 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9775echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
9776 no_cache=0
9777 # Check whether --enable-pcx or --disable-pcx was given.
9778if test "${enable_pcx+set}" = set; then
9779 enableval="$enable_pcx"
9780
9781 if test "$enableval" = yes; then
9782 ac_cv_use_pcx='wxUSE_PCX=yes'
9783 else
9784 ac_cv_use_pcx='wxUSE_PCX=no'
9785 fi
9786
9787else
9788
9789 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9790 if test "x$LINE" != x ; then
9791 eval "DEFAULT_$LINE"
9792 else
9793 no_cache=1
9794 fi
9795
9796 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
9797
9798fi;
9799
9800 eval "$ac_cv_use_pcx"
9801 if test "$no_cache" != 1; then
9802 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9803 fi
9804
9805 if test "$wxUSE_PCX" = yes; then
9806 echo "$as_me:$LINENO: result: yes" >&5
9807echo "${ECHO_T}yes" >&6
9808 else
9809 echo "$as_me:$LINENO: result: no" >&5
9810echo "${ECHO_T}no" >&6
9811 fi
9812
9813
9814 enablestring=
9815 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9816echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
9817 no_cache=0
9818 # Check whether --enable-iff or --disable-iff was given.
9819if test "${enable_iff+set}" = set; then
9820 enableval="$enable_iff"
9821
9822 if test "$enableval" = yes; then
9823 ac_cv_use_iff='wxUSE_IFF=yes'
9824 else
9825 ac_cv_use_iff='wxUSE_IFF=no'
9826 fi
9827
9828else
9829
9830 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9831 if test "x$LINE" != x ; then
9832 eval "DEFAULT_$LINE"
9833 else
9834 no_cache=1
9835 fi
9836
9837 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
9838
9839fi;
9840
9841 eval "$ac_cv_use_iff"
9842 if test "$no_cache" != 1; then
9843 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9844 fi
9845
9846 if test "$wxUSE_IFF" = yes; then
9847 echo "$as_me:$LINENO: result: yes" >&5
9848echo "${ECHO_T}yes" >&6
9849 else
9850 echo "$as_me:$LINENO: result: no" >&5
9851echo "${ECHO_T}no" >&6
9852 fi
9853
9854
9855 enablestring=
9856 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9857echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
9858 no_cache=0
9859 # Check whether --enable-pnm or --disable-pnm was given.
9860if test "${enable_pnm+set}" = set; then
9861 enableval="$enable_pnm"
9862
9863 if test "$enableval" = yes; then
9864 ac_cv_use_pnm='wxUSE_PNM=yes'
9865 else
9866 ac_cv_use_pnm='wxUSE_PNM=no'
9867 fi
9868
9869else
9870
9871 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9872 if test "x$LINE" != x ; then
9873 eval "DEFAULT_$LINE"
9874 else
9875 no_cache=1
9876 fi
9877
9878 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
9879
9880fi;
9881
9882 eval "$ac_cv_use_pnm"
9883 if test "$no_cache" != 1; then
9884 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9885 fi
9886
9887 if test "$wxUSE_PNM" = yes; then
9888 echo "$as_me:$LINENO: result: yes" >&5
9889echo "${ECHO_T}yes" >&6
9890 else
9891 echo "$as_me:$LINENO: result: no" >&5
9892echo "${ECHO_T}no" >&6
9893 fi
9894
9895
9896 enablestring=
9897 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9898echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
9899 no_cache=0
9900 # Check whether --enable-xpm or --disable-xpm was given.
9901if test "${enable_xpm+set}" = set; then
9902 enableval="$enable_xpm"
9903
9904 if test "$enableval" = yes; then
9905 ac_cv_use_xpm='wxUSE_XPM=yes'
9906 else
9907 ac_cv_use_xpm='wxUSE_XPM=no'
9908 fi
9909
9910else
9911
9912 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9913 if test "x$LINE" != x ; then
9914 eval "DEFAULT_$LINE"
9915 else
9916 no_cache=1
9917 fi
9918
9919 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
9920
9921fi;
9922
9923 eval "$ac_cv_use_xpm"
9924 if test "$no_cache" != 1; then
9925 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
9926 fi
9927
9928 if test "$wxUSE_XPM" = yes; then
9929 echo "$as_me:$LINENO: result: yes" >&5
9930echo "${ECHO_T}yes" >&6
9931 else
9932 echo "$as_me:$LINENO: result: no" >&5
9933echo "${ECHO_T}no" >&6
9934 fi
9935
9936
9937 enablestring=
9938 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9939echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
9940 no_cache=0
9941 # Check whether --enable-ico_cur or --disable-ico_cur was given.
9942if test "${enable_ico_cur+set}" = set; then
9943 enableval="$enable_ico_cur"
9944
9945 if test "$enableval" = yes; then
9946 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
9947 else
9948 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
9949 fi
9950
9951else
9952
9953 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9954 if test "x$LINE" != x ; then
9955 eval "DEFAULT_$LINE"
9956 else
9957 no_cache=1
9958 fi
9959
9960 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
9961
9962fi;
9963
9964 eval "$ac_cv_use_ico_cur"
9965 if test "$no_cache" != 1; then
9966 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
9967 fi
9968
9969 if test "$wxUSE_ICO_CUR" = yes; then
9970 echo "$as_me:$LINENO: result: yes" >&5
9971echo "${ECHO_T}yes" >&6
9972 else
9973 echo "$as_me:$LINENO: result: no" >&5
9974echo "${ECHO_T}no" >&6
9975 fi
9976
9977
9978fi
9979
9980
9981
ceec2216
RL
9982# Check whether --with-flavour or --without-flavour was given.
9983if test "${with_flavour+set}" = set; then
9984 withval="$with_flavour"
9985 WX_FLAVOUR="$withval"
9986fi;
9987
9988
9989
a848cd7e
SC
9990 enablestring=
9991 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
9992echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
9993 no_cache=0
9994 # Check whether --enable-official_build or --disable-official_build was given.
9995if test "${enable_official_build+set}" = set; then
9996 enableval="$enable_official_build"
9997
9998 if test "$enableval" = yes; then
9999 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10000 else
10001 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10002 fi
10003
10004else
10005
10006 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10007 if test "x$LINE" != x ; then
10008 eval "DEFAULT_$LINE"
10009 else
10010 no_cache=1
10011 fi
10012
10013 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10014
10015fi;
10016
10017 eval "$ac_cv_use_official_build"
10018 if test "$no_cache" != 1; then
10019 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10020 fi
10021
10022 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10023 echo "$as_me:$LINENO: result: yes" >&5
10024echo "${ECHO_T}yes" >&6
10025 else
10026 echo "$as_me:$LINENO: result: no" >&5
10027echo "${ECHO_T}no" >&6
10028 fi
10029
10030# Check whether --enable-vendor or --disable-vendor was given.
10031if test "${enable_vendor+set}" = set; then
10032 enableval="$enable_vendor"
10033 VENDOR="$enableval"
10034fi;
10035if test "x$VENDOR" = "x"; then
10036 VENDOR="custom"
10037fi
10038
a848cd7e
SC
10039
10040
10041
10042 echo "saving argument cache $wx_arg_cache_file"
10043 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10044
10045
10046
10047echo "$as_me:$LINENO: checking for toolkit" >&5
10048echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10049
10050# In Wine, we need to default to MSW, not GTK or MOTIF
10051if test "$wxUSE_WINE" = "yes"; then
10052 DEFAULT_DEFAULT_wxUSE_GTK=0
10053 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10054 DEFAULT_DEFAULT_wxUSE_MSW=1
10055 wxUSE_SHARED=no
10056fi
10057
10058if test "$wxUSE_GUI" = "yes"; then
10059
10060 if test "$USE_BEOS" = 1; then
10061 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10062echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10063 { (exit 1); exit 1; }; }
10064 fi
10065
10066 if test "$TOOLKIT_GIVEN" = 1; then
10067 for toolkit in `echo $ALL_TOOLKITS`; do
10068 var=wxUSE_$toolkit
10069 eval "value=\$${var}"
10070 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
10071 done
10072 else
10073 for toolkit in `echo $ALL_TOOLKITS`; do
10074 if test "$has_toolkit_in_cache" != 1; then
10075 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10076 else
10077 var=DEFAULT_wxUSE_$toolkit
10078 fi
10079 eval "wxUSE_$toolkit=\$${var}"
10080 done
10081 fi
10082
10083 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10084 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10085 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10086
10087 case "${host}" in
10088 *-pc-os2_emx | *-pc-os2-emx )
10089 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10090 esac
10091
10092 case "$NUM_TOOLKITS" in
10093 1)
10094 ;;
10095 0)
10096 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10097echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10098 { (exit 1); exit 1; }; }
10099 ;;
10100 *)
10101 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10102echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10103 { (exit 1); exit 1; }; }
10104 esac
10105
10106 for toolkit in `echo $ALL_TOOLKITS`; do
10107 var=wxUSE_$toolkit
10108 eval "value=\$${var}"
10109 if test "x$value" != x; then
10110 cache_var=CACHE_$toolkit
10111 eval "cache=\$${cache_var}"
10112 if test "$cache" = 1; then
10113 echo "$var=$value" >> ${wx_arg_cache_file}
10114 fi
10115 if test "$value" = 1; then
10116 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10117 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10118echo "${ECHO_T}$toolkit_echo" >&6
10119 fi
10120 fi
10121 done
10122else
10123 if test "x$host_alias" != "x"; then
10124 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10125echo "${ECHO_T}base ($host_alias hosted) only" >&6
10126 else
10127 echo "$as_me:$LINENO: result: base only" >&5
10128echo "${ECHO_T}base only" >&6
10129 fi
10130fi
10131
10132wants_win32=0
10133doesnt_want_win32=0
10134case "${host}" in
10135 *-*-cygwin*)
10136 if test "$wxUSE_MSW" = 1 ; then
10137 wants_win32=1
10138 else
10139 doesnt_want_win32=1
10140 fi
10141 ;;
10142 *-*-mingw*)
10143 wants_win32=1
10144 ;;
10145esac
10146
10147if test "$wxUSE_WINE" = "yes"; then
10148 wants_win32=1
10149 CC=winegcc
10150 CXX=wineg++
10151 RESCOMP=wrc
10152 LDFLAGS_GUI="-mwindows"
10153fi
10154
10155if test "$wants_win32" = 1 ; then
10156 USE_UNIX=0
10157 USE_WIN32=1
10158 cat >>confdefs.h <<\_ACEOF
10159#define __WIN32__ 1
10160_ACEOF
10161
10162 cat >>confdefs.h <<\_ACEOF
10163#define __WIN95__ 1
10164_ACEOF
10165
10166 cat >>confdefs.h <<\_ACEOF
10167#define __WINDOWS__ 1
10168_ACEOF
10169
10170 cat >>confdefs.h <<\_ACEOF
10171#define __GNUWIN32__ 1
10172_ACEOF
10173
10174 cat >>confdefs.h <<\_ACEOF
10175#define STRICT 1
10176_ACEOF
10177
10178 cat >>confdefs.h <<\_ACEOF
10179#define WINVER 0x0400
10180_ACEOF
10181
10182fi
10183if test "$doesnt_want_win32" = 1 ; then
10184 USE_UNIX=1
10185 USE_WIN32=0
10186fi
10187
10188if test "$USE_UNIX" = 1 ; then
10189 wxUSE_UNIX=yes
10190 cat >>confdefs.h <<\_ACEOF
10191#define __UNIX__ 1
10192_ACEOF
10193
10194fi
10195
10196
10197cat >confcache <<\_ACEOF
10198# This file is a shell script that caches the results of configure
10199# tests run on this system so they can be shared between configure
10200# scripts and configure runs, see configure's option --config-cache.
10201# It is not useful on other systems. If it contains results you don't
10202# want to keep, you may remove or edit it.
10203#
10204# config.status only pays attention to the cache file if you give it
10205# the --recheck option to rerun configure.
10206#
10207# `ac_cv_env_foo' variables (set or unset) will be overridden when
10208# loading this file, other *unset* `ac_cv_foo' will be assigned the
10209# following values.
10210
10211_ACEOF
10212
10213# The following way of writing the cache mishandles newlines in values,
10214# but we know of no workaround that is simple, portable, and efficient.
10215# So, don't put newlines in cache variables' values.
10216# Ultrix sh set writes to stderr and can't be redirected directly,
10217# and sets the high bit in the cache file unless we assign to the vars.
10218{
10219 (set) 2>&1 |
10220 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10221 *ac_space=\ *)
10222 # `set' does not quote correctly, so add quotes (double-quote
10223 # substitution turns \\\\ into \\, and sed turns \\ into \).
10224 sed -n \
ac1cb8d3
VS
10225 "s/'/'\\\\''/g;
10226 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10227 ;;
10228 *)
10229 # `set' quotes correctly as required by POSIX, so do not add quotes.
10230 sed -n \
ac1cb8d3 10231 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10232 ;;
10233 esac;
10234} |
10235 sed '
10236 t clear
10237 : clear
10238 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10239 t end
10240 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10241 : end' >>confcache
10242if diff $cache_file confcache >/dev/null 2>&1; then :; else
10243 if test -w $cache_file; then
10244 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10245 cat confcache >$cache_file
10246 else
10247 echo "not updating unwritable cache $cache_file"
10248 fi
10249fi
10250rm -f confcache
10251
10252if test "$build" != "$host" ; then
10253 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
10254 CC=$host_alias-gcc
10255 CXX=$host_alias-c++
10256 AR=$host_alias-ar
10257 RANLIB=$host_alias-ranlib
10258 DLLTOOL=$host_alias-dlltool
10259 RESCOMP=$host_alias-windres
a848cd7e
SC
10260 STRIP=$host_alias-strip
10261 else
10262 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10263echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10264 { (exit 1); exit 1; }; }
10265 fi
10266fi
10267
10268CFLAGS=${CFLAGS:=}
10269ac_ext=c
10270ac_cpp='$CPP $CPPFLAGS'
10271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10273ac_compiler_gnu=$ac_cv_c_compiler_gnu
10274if test -n "$ac_tool_prefix"; then
10275 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10276set dummy ${ac_tool_prefix}gcc; ac_word=$2
10277echo "$as_me:$LINENO: checking for $ac_word" >&5
10278echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10279if test "${ac_cv_prog_CC+set}" = set; then
10280 echo $ECHO_N "(cached) $ECHO_C" >&6
10281else
10282 if test -n "$CC"; then
10283 ac_cv_prog_CC="$CC" # Let the user override the test.
10284else
10285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10286for as_dir in $PATH
10287do
10288 IFS=$as_save_IFS
10289 test -z "$as_dir" && as_dir=.
10290 for ac_exec_ext in '' $ac_executable_extensions; do
10291 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10292 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10294 break 2
10295 fi
10296done
10297done
10298
10299fi
10300fi
10301CC=$ac_cv_prog_CC
10302if test -n "$CC"; then
10303 echo "$as_me:$LINENO: result: $CC" >&5
10304echo "${ECHO_T}$CC" >&6
10305else
10306 echo "$as_me:$LINENO: result: no" >&5
10307echo "${ECHO_T}no" >&6
10308fi
10309
10310fi
10311if test -z "$ac_cv_prog_CC"; then
10312 ac_ct_CC=$CC
10313 # Extract the first word of "gcc", so it can be a program name with args.
10314set dummy gcc; ac_word=$2
10315echo "$as_me:$LINENO: checking for $ac_word" >&5
10316echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10317if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10318 echo $ECHO_N "(cached) $ECHO_C" >&6
10319else
10320 if test -n "$ac_ct_CC"; then
10321 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10322else
10323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10324for as_dir in $PATH
10325do
10326 IFS=$as_save_IFS
10327 test -z "$as_dir" && as_dir=.
10328 for ac_exec_ext in '' $ac_executable_extensions; do
10329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10330 ac_cv_prog_ac_ct_CC="gcc"
10331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10332 break 2
10333 fi
10334done
10335done
10336
10337fi
10338fi
10339ac_ct_CC=$ac_cv_prog_ac_ct_CC
10340if test -n "$ac_ct_CC"; then
10341 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10342echo "${ECHO_T}$ac_ct_CC" >&6
10343else
10344 echo "$as_me:$LINENO: result: no" >&5
10345echo "${ECHO_T}no" >&6
10346fi
10347
10348 CC=$ac_ct_CC
10349else
10350 CC="$ac_cv_prog_CC"
10351fi
10352
10353if test -z "$CC"; then
10354 if test -n "$ac_tool_prefix"; then
10355 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10356set dummy ${ac_tool_prefix}cc; ac_word=$2
10357echo "$as_me:$LINENO: checking for $ac_word" >&5
10358echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10359if test "${ac_cv_prog_CC+set}" = set; then
10360 echo $ECHO_N "(cached) $ECHO_C" >&6
10361else
10362 if test -n "$CC"; then
10363 ac_cv_prog_CC="$CC" # Let the user override the test.
10364else
10365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10366for as_dir in $PATH
10367do
10368 IFS=$as_save_IFS
10369 test -z "$as_dir" && as_dir=.
10370 for ac_exec_ext in '' $ac_executable_extensions; do
10371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10372 ac_cv_prog_CC="${ac_tool_prefix}cc"
10373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10374 break 2
10375 fi
10376done
10377done
10378
10379fi
10380fi
10381CC=$ac_cv_prog_CC
10382if test -n "$CC"; then
10383 echo "$as_me:$LINENO: result: $CC" >&5
10384echo "${ECHO_T}$CC" >&6
10385else
10386 echo "$as_me:$LINENO: result: no" >&5
10387echo "${ECHO_T}no" >&6
10388fi
10389
10390fi
10391if test -z "$ac_cv_prog_CC"; then
10392 ac_ct_CC=$CC
10393 # Extract the first word of "cc", so it can be a program name with args.
10394set dummy cc; ac_word=$2
10395echo "$as_me:$LINENO: checking for $ac_word" >&5
10396echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10397if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10398 echo $ECHO_N "(cached) $ECHO_C" >&6
10399else
10400 if test -n "$ac_ct_CC"; then
10401 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10402else
10403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10404for as_dir in $PATH
10405do
10406 IFS=$as_save_IFS
10407 test -z "$as_dir" && as_dir=.
10408 for ac_exec_ext in '' $ac_executable_extensions; do
10409 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10410 ac_cv_prog_ac_ct_CC="cc"
10411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10412 break 2
10413 fi
10414done
10415done
10416
10417fi
10418fi
10419ac_ct_CC=$ac_cv_prog_ac_ct_CC
10420if test -n "$ac_ct_CC"; then
10421 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10422echo "${ECHO_T}$ac_ct_CC" >&6
10423else
10424 echo "$as_me:$LINENO: result: no" >&5
10425echo "${ECHO_T}no" >&6
10426fi
10427
10428 CC=$ac_ct_CC
10429else
10430 CC="$ac_cv_prog_CC"
10431fi
10432
10433fi
10434if test -z "$CC"; then
10435 # Extract the first word of "cc", so it can be a program name with args.
10436set dummy cc; ac_word=$2
10437echo "$as_me:$LINENO: checking for $ac_word" >&5
10438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10439if test "${ac_cv_prog_CC+set}" = set; then
10440 echo $ECHO_N "(cached) $ECHO_C" >&6
10441else
10442 if test -n "$CC"; then
10443 ac_cv_prog_CC="$CC" # Let the user override the test.
10444else
10445 ac_prog_rejected=no
10446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10447for as_dir in $PATH
10448do
10449 IFS=$as_save_IFS
10450 test -z "$as_dir" && as_dir=.
10451 for ac_exec_ext in '' $ac_executable_extensions; do
10452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10453 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10454 ac_prog_rejected=yes
10455 continue
10456 fi
10457 ac_cv_prog_CC="cc"
10458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10459 break 2
10460 fi
10461done
10462done
10463
10464if test $ac_prog_rejected = yes; then
10465 # We found a bogon in the path, so make sure we never use it.
10466 set dummy $ac_cv_prog_CC
10467 shift
10468 if test $# != 0; then
10469 # We chose a different compiler from the bogus one.
10470 # However, it has the same basename, so the bogon will be chosen
10471 # first if we set CC to just the basename; use the full file name.
10472 shift
10473 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10474 fi
10475fi
10476fi
10477fi
10478CC=$ac_cv_prog_CC
10479if test -n "$CC"; then
10480 echo "$as_me:$LINENO: result: $CC" >&5
10481echo "${ECHO_T}$CC" >&6
10482else
10483 echo "$as_me:$LINENO: result: no" >&5
10484echo "${ECHO_T}no" >&6
10485fi
10486
10487fi
10488if test -z "$CC"; then
10489 if test -n "$ac_tool_prefix"; then
10490 for ac_prog in cl
10491 do
10492 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10493set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10494echo "$as_me:$LINENO: checking for $ac_word" >&5
10495echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10496if test "${ac_cv_prog_CC+set}" = set; then
10497 echo $ECHO_N "(cached) $ECHO_C" >&6
10498else
10499 if test -n "$CC"; then
10500 ac_cv_prog_CC="$CC" # Let the user override the test.
10501else
10502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10503for as_dir in $PATH
10504do
10505 IFS=$as_save_IFS
10506 test -z "$as_dir" && as_dir=.
10507 for ac_exec_ext in '' $ac_executable_extensions; do
10508 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10509 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10511 break 2
10512 fi
10513done
10514done
10515
10516fi
10517fi
10518CC=$ac_cv_prog_CC
10519if test -n "$CC"; then
10520 echo "$as_me:$LINENO: result: $CC" >&5
10521echo "${ECHO_T}$CC" >&6
10522else
10523 echo "$as_me:$LINENO: result: no" >&5
10524echo "${ECHO_T}no" >&6
10525fi
10526
10527 test -n "$CC" && break
10528 done
10529fi
10530if test -z "$CC"; then
10531 ac_ct_CC=$CC
10532 for ac_prog in cl
10533do
10534 # Extract the first word of "$ac_prog", so it can be a program name with args.
10535set dummy $ac_prog; ac_word=$2
10536echo "$as_me:$LINENO: checking for $ac_word" >&5
10537echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10538if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10539 echo $ECHO_N "(cached) $ECHO_C" >&6
10540else
10541 if test -n "$ac_ct_CC"; then
10542 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10543else
10544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10545for as_dir in $PATH
10546do
10547 IFS=$as_save_IFS
10548 test -z "$as_dir" && as_dir=.
10549 for ac_exec_ext in '' $ac_executable_extensions; do
10550 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10551 ac_cv_prog_ac_ct_CC="$ac_prog"
10552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10553 break 2
10554 fi
10555done
10556done
10557
10558fi
10559fi
10560ac_ct_CC=$ac_cv_prog_ac_ct_CC
10561if test -n "$ac_ct_CC"; then
10562 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10563echo "${ECHO_T}$ac_ct_CC" >&6
10564else
10565 echo "$as_me:$LINENO: result: no" >&5
10566echo "${ECHO_T}no" >&6
10567fi
10568
10569 test -n "$ac_ct_CC" && break
10570done
10571
10572 CC=$ac_ct_CC
10573fi
10574
10575fi
10576
10577
10578test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10579See \`config.log' for more details." >&5
10580echo "$as_me: error: no acceptable C compiler found in \$PATH
10581See \`config.log' for more details." >&2;}
10582 { (exit 1); exit 1; }; }
10583
10584# Provide some information about the compiler.
10585echo "$as_me:$LINENO:" \
10586 "checking for C compiler version" >&5
10587ac_compiler=`set X $ac_compile; echo $2`
10588{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10589 (eval $ac_compiler --version </dev/null >&5) 2>&5
10590 ac_status=$?
10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 (exit $ac_status); }
10593{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10594 (eval $ac_compiler -v </dev/null >&5) 2>&5
10595 ac_status=$?
10596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597 (exit $ac_status); }
10598{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10599 (eval $ac_compiler -V </dev/null >&5) 2>&5
10600 ac_status=$?
10601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602 (exit $ac_status); }
10603
10604cat >conftest.$ac_ext <<_ACEOF
10605/* confdefs.h. */
10606_ACEOF
10607cat confdefs.h >>conftest.$ac_ext
10608cat >>conftest.$ac_ext <<_ACEOF
10609/* end confdefs.h. */
10610
10611int
10612main ()
10613{
10614
10615 ;
10616 return 0;
10617}
10618_ACEOF
10619ac_clean_files_save=$ac_clean_files
10620ac_clean_files="$ac_clean_files a.out a.exe b.out"
10621# Try to create an executable without -o first, disregard a.out.
10622# It will help us diagnose broken compilers, and finding out an intuition
10623# of exeext.
ac1cb8d3
VS
10624echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
10625echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
10626ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10627if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10628 (eval $ac_link_default) 2>&5
10629 ac_status=$?
10630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631 (exit $ac_status); }; then
10632 # Find the output, starting from the most likely. This scheme is
10633# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10634# resort.
10635
10636# Be careful to initialize this variable, since it used to be cached.
10637# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10638ac_cv_exeext=
10639# b.out is created by i960 compilers.
10640for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10641do
10642 test -f "$ac_file" || continue
10643 case $ac_file in
10644 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 10645 ;;
a848cd7e 10646 conftest.$ac_ext )
ac1cb8d3
VS
10647 # This is the source file.
10648 ;;
a848cd7e 10649 [ab].out )
ac1cb8d3
VS
10650 # We found the default executable, but exeext='' is most
10651 # certainly right.
10652 break;;
a848cd7e 10653 *.* )
ac1cb8d3
VS
10654 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10655 # FIXME: I believe we export ac_cv_exeext for Libtool,
10656 # but it would be cool to find out if it's true. Does anybody
10657 # maintain Libtool? --akim.
10658 export ac_cv_exeext
10659 break;;
a848cd7e 10660 * )
ac1cb8d3 10661 break;;
a848cd7e
SC
10662 esac
10663done
10664else
10665 echo "$as_me: failed program was:" >&5
10666sed 's/^/| /' conftest.$ac_ext >&5
10667
10668{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10669See \`config.log' for more details." >&5
10670echo "$as_me: error: C compiler cannot create executables
10671See \`config.log' for more details." >&2;}
10672 { (exit 77); exit 77; }; }
10673fi
10674
10675ac_exeext=$ac_cv_exeext
10676echo "$as_me:$LINENO: result: $ac_file" >&5
10677echo "${ECHO_T}$ac_file" >&6
10678
10679# Check the compiler produces executables we can run. If not, either
10680# the compiler is broken, or we cross compile.
10681echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10682echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10683# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10684# If not cross compiling, check that we can run a simple program.
10685if test "$cross_compiling" != yes; then
10686 if { ac_try='./$ac_file'
10687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10688 (eval $ac_try) 2>&5
10689 ac_status=$?
10690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691 (exit $ac_status); }; }; then
10692 cross_compiling=no
10693 else
10694 if test "$cross_compiling" = maybe; then
10695 cross_compiling=yes
10696 else
10697 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10698If you meant to cross compile, use \`--host'.
10699See \`config.log' for more details." >&5
10700echo "$as_me: error: cannot run C compiled programs.
10701If you meant to cross compile, use \`--host'.
10702See \`config.log' for more details." >&2;}
10703 { (exit 1); exit 1; }; }
10704 fi
10705 fi
10706fi
10707echo "$as_me:$LINENO: result: yes" >&5
10708echo "${ECHO_T}yes" >&6
10709
10710rm -f a.out a.exe conftest$ac_cv_exeext b.out
10711ac_clean_files=$ac_clean_files_save
10712# Check the compiler produces executables we can run. If not, either
10713# the compiler is broken, or we cross compile.
10714echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10715echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10716echo "$as_me:$LINENO: result: $cross_compiling" >&5
10717echo "${ECHO_T}$cross_compiling" >&6
10718
10719echo "$as_me:$LINENO: checking for suffix of executables" >&5
10720echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10722 (eval $ac_link) 2>&5
10723 ac_status=$?
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); }; then
10726 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10727# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10728# work properly (i.e., refer to `conftest.exe'), while it won't with
10729# `rm'.
10730for ac_file in conftest.exe conftest conftest.*; do
10731 test -f "$ac_file" || continue
10732 case $ac_file in
10733 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10734 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
10735 export ac_cv_exeext
10736 break;;
a848cd7e
SC
10737 * ) break;;
10738 esac
10739done
10740else
10741 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10742See \`config.log' for more details." >&5
10743echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10744See \`config.log' for more details." >&2;}
10745 { (exit 1); exit 1; }; }
10746fi
10747
10748rm -f conftest$ac_cv_exeext
10749echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10750echo "${ECHO_T}$ac_cv_exeext" >&6
10751
10752rm -f conftest.$ac_ext
10753EXEEXT=$ac_cv_exeext
10754ac_exeext=$EXEEXT
10755echo "$as_me:$LINENO: checking for suffix of object files" >&5
10756echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10757if test "${ac_cv_objext+set}" = set; then
10758 echo $ECHO_N "(cached) $ECHO_C" >&6
10759else
10760 cat >conftest.$ac_ext <<_ACEOF
10761/* confdefs.h. */
10762_ACEOF
10763cat confdefs.h >>conftest.$ac_ext
10764cat >>conftest.$ac_ext <<_ACEOF
10765/* end confdefs.h. */
10766
10767int
10768main ()
10769{
10770
10771 ;
10772 return 0;
10773}
10774_ACEOF
10775rm -f conftest.o conftest.obj
10776if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10777 (eval $ac_compile) 2>&5
10778 ac_status=$?
10779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780 (exit $ac_status); }; then
10781 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10782 case $ac_file in
10783 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10784 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10785 break;;
10786 esac
10787done
10788else
10789 echo "$as_me: failed program was:" >&5
10790sed 's/^/| /' conftest.$ac_ext >&5
10791
10792{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10793See \`config.log' for more details." >&5
10794echo "$as_me: error: cannot compute suffix of object files: cannot compile
10795See \`config.log' for more details." >&2;}
10796 { (exit 1); exit 1; }; }
10797fi
10798
10799rm -f conftest.$ac_cv_objext conftest.$ac_ext
10800fi
10801echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10802echo "${ECHO_T}$ac_cv_objext" >&6
10803OBJEXT=$ac_cv_objext
10804ac_objext=$OBJEXT
10805echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10806echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10807if test "${ac_cv_c_compiler_gnu+set}" = set; then
10808 echo $ECHO_N "(cached) $ECHO_C" >&6
10809else
10810 cat >conftest.$ac_ext <<_ACEOF
10811/* confdefs.h. */
10812_ACEOF
10813cat confdefs.h >>conftest.$ac_ext
10814cat >>conftest.$ac_ext <<_ACEOF
10815/* end confdefs.h. */
10816
10817int
10818main ()
10819{
10820#ifndef __GNUC__
10821 choke me
10822#endif
10823
10824 ;
10825 return 0;
10826}
10827_ACEOF
10828rm -f conftest.$ac_objext
10829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 10830 (eval $ac_compile) 2>conftest.er1
a848cd7e 10831 ac_status=$?
ac1cb8d3
VS
10832 grep -v '^ *+' conftest.er1 >conftest.err
10833 rm -f conftest.er1
10834 cat conftest.err >&5
a848cd7e
SC
10835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836 (exit $ac_status); } &&
ceec2216 10837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
10838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10839 (eval $ac_try) 2>&5
10840 ac_status=$?
10841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842 (exit $ac_status); }; } &&
10843 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10845 (eval $ac_try) 2>&5
10846 ac_status=$?
10847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10848 (exit $ac_status); }; }; then
10849 ac_compiler_gnu=yes
10850else
10851 echo "$as_me: failed program was:" >&5
10852sed 's/^/| /' conftest.$ac_ext >&5
10853
10854ac_compiler_gnu=no
10855fi
ac1cb8d3 10856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
10857ac_cv_c_compiler_gnu=$ac_compiler_gnu
10858
10859fi
10860echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10861echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10862GCC=`test $ac_compiler_gnu = yes && echo yes`
10863ac_test_CFLAGS=${CFLAGS+set}
10864ac_save_CFLAGS=$CFLAGS
10865CFLAGS="-g"
10866echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10867echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10868if test "${ac_cv_prog_cc_g+set}" = set; then
10869 echo $ECHO_N "(cached) $ECHO_C" >&6
10870else
10871 cat >conftest.$ac_ext <<_ACEOF
10872/* confdefs.h. */
10873_ACEOF
10874cat confdefs.h >>conftest.$ac_ext
10875cat >>conftest.$ac_ext <<_ACEOF
10876/* end confdefs.h. */
10877
10878int
10879main ()
10880{
10881
10882 ;
10883 return 0;
10884}
10885_ACEOF
10886rm -f conftest.$ac_objext
10887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 10888 (eval $ac_compile) 2>conftest.er1
a848cd7e 10889 ac_status=$?
ac1cb8d3
VS
10890 grep -v '^ *+' conftest.er1 >conftest.err
10891 rm -f conftest.er1
10892 cat conftest.err >&5
a848cd7e
SC
10893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894 (exit $ac_status); } &&
ceec2216 10895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
10896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10897 (eval $ac_try) 2>&5
10898 ac_status=$?
10899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900 (exit $ac_status); }; } &&
10901 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10903 (eval $ac_try) 2>&5
10904 ac_status=$?
10905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10906 (exit $ac_status); }; }; then
10907 ac_cv_prog_cc_g=yes
10908else
10909 echo "$as_me: failed program was:" >&5
10910sed 's/^/| /' conftest.$ac_ext >&5
10911
10912ac_cv_prog_cc_g=no
10913fi
ac1cb8d3 10914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
10915fi
10916echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10917echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
10918if test "$ac_test_CFLAGS" = set; then
10919 CFLAGS=$ac_save_CFLAGS
10920elif test $ac_cv_prog_cc_g = yes; then
10921 if test "$GCC" = yes; then
10922 CFLAGS="-g -O2"
10923 else
10924 CFLAGS="-g"
10925 fi
10926else
10927 if test "$GCC" = yes; then
10928 CFLAGS="-O2"
10929 else
10930 CFLAGS=
10931 fi
10932fi
10933echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10934echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10935if test "${ac_cv_prog_cc_stdc+set}" = set; then
10936 echo $ECHO_N "(cached) $ECHO_C" >&6
10937else
10938 ac_cv_prog_cc_stdc=no
10939ac_save_CC=$CC
10940cat >conftest.$ac_ext <<_ACEOF
10941/* confdefs.h. */
10942_ACEOF
10943cat confdefs.h >>conftest.$ac_ext
10944cat >>conftest.$ac_ext <<_ACEOF
10945/* end confdefs.h. */
10946#include <stdarg.h>
10947#include <stdio.h>
10948#include <sys/types.h>
10949#include <sys/stat.h>
10950/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10951struct buf { int x; };
10952FILE * (*rcsopen) (struct buf *, struct stat *, int);
10953static char *e (p, i)
10954 char **p;
10955 int i;
10956{
10957 return p[i];
10958}
10959static char *f (char * (*g) (char **, int), char **p, ...)
10960{
10961 char *s;
10962 va_list v;
10963 va_start (v,p);
10964 s = g (p, va_arg (v,int));
10965 va_end (v);
10966 return s;
10967}
ac1cb8d3
VS
10968
10969/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
10970 function prototypes and stuff, but not '\xHH' hex character constants.
10971 These don't provoke an error unfortunately, instead are silently treated
10972 as 'x'. The following induces an error, until -std1 is added to get
10973 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
10974 array size at least. It's necessary to write '\x00'==0 to get something
10975 that's true only with -std1. */
10976int osf4_cc_array ['\x00' == 0 ? 1 : -1];
10977
a848cd7e
SC
10978int test (int i, double x);
10979struct s1 {int (*f) (int a);};
10980struct s2 {int (*f) (double a);};
10981int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10982int argc;
10983char **argv;
10984int
10985main ()
10986{
10987return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10988 ;
10989 return 0;
10990}
10991_ACEOF
10992# Don't try gcc -ansi; that turns off useful extensions and
10993# breaks some systems' header files.
10994# AIX -qlanglvl=ansi
10995# Ultrix and OSF/1 -std1
10996# HP-UX 10.20 and later -Ae
10997# HP-UX older versions -Aa -D_HPUX_SOURCE
10998# SVR4 -Xc -D__EXTENSIONS__
10999for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11000do
11001 CC="$ac_save_CC $ac_arg"
11002 rm -f conftest.$ac_objext
11003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11004 (eval $ac_compile) 2>conftest.er1
a848cd7e 11005 ac_status=$?
ac1cb8d3
VS
11006 grep -v '^ *+' conftest.er1 >conftest.err
11007 rm -f conftest.er1
11008 cat conftest.err >&5
a848cd7e
SC
11009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010 (exit $ac_status); } &&
ceec2216 11011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11013 (eval $ac_try) 2>&5
11014 ac_status=$?
11015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016 (exit $ac_status); }; } &&
11017 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11019 (eval $ac_try) 2>&5
11020 ac_status=$?
11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); }; }; then
11023 ac_cv_prog_cc_stdc=$ac_arg
11024break
11025else
11026 echo "$as_me: failed program was:" >&5
11027sed 's/^/| /' conftest.$ac_ext >&5
11028
11029fi
ac1cb8d3 11030rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11031done
11032rm -f conftest.$ac_ext conftest.$ac_objext
11033CC=$ac_save_CC
11034
11035fi
11036
11037case "x$ac_cv_prog_cc_stdc" in
11038 x|xno)
11039 echo "$as_me:$LINENO: result: none needed" >&5
11040echo "${ECHO_T}none needed" >&6 ;;
11041 *)
11042 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11043echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11044 CC="$CC $ac_cv_prog_cc_stdc" ;;
11045esac
11046
11047# Some people use a C++ compiler to compile C. Since we use `exit',
11048# in C++ we need to declare it. In case someone uses the same compiler
11049# for both compiling C and C++ we need to have the C++ compiler decide
11050# the declaration of exit, since it's the most demanding environment.
11051cat >conftest.$ac_ext <<_ACEOF
11052#ifndef __cplusplus
11053 choke me
11054#endif
11055_ACEOF
11056rm -f conftest.$ac_objext
11057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11058 (eval $ac_compile) 2>conftest.er1
a848cd7e 11059 ac_status=$?
ac1cb8d3
VS
11060 grep -v '^ *+' conftest.er1 >conftest.err
11061 rm -f conftest.er1
11062 cat conftest.err >&5
a848cd7e
SC
11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); } &&
ceec2216 11065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11067 (eval $ac_try) 2>&5
11068 ac_status=$?
11069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070 (exit $ac_status); }; } &&
11071 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11073 (eval $ac_try) 2>&5
11074 ac_status=$?
11075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076 (exit $ac_status); }; }; then
11077 for ac_declaration in \
ac1cb8d3 11078 '' \
a848cd7e
SC
11079 'extern "C" void std::exit (int) throw (); using std::exit;' \
11080 'extern "C" void std::exit (int); using std::exit;' \
11081 'extern "C" void exit (int) throw ();' \
11082 'extern "C" void exit (int);' \
11083 'void exit (int);'
11084do
11085 cat >conftest.$ac_ext <<_ACEOF
11086/* confdefs.h. */
11087_ACEOF
11088cat confdefs.h >>conftest.$ac_ext
11089cat >>conftest.$ac_ext <<_ACEOF
11090/* end confdefs.h. */
de59c161 11091$ac_declaration
ac1cb8d3 11092#include <stdlib.h>
a848cd7e
SC
11093int
11094main ()
11095{
11096exit (42);
11097 ;
11098 return 0;
11099}
11100_ACEOF
11101rm -f conftest.$ac_objext
11102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11103 (eval $ac_compile) 2>conftest.er1
a848cd7e 11104 ac_status=$?
ac1cb8d3
VS
11105 grep -v '^ *+' conftest.er1 >conftest.err
11106 rm -f conftest.er1
11107 cat conftest.err >&5
a848cd7e
SC
11108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109 (exit $ac_status); } &&
ceec2216 11110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11112 (eval $ac_try) 2>&5
11113 ac_status=$?
11114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115 (exit $ac_status); }; } &&
11116 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11118 (eval $ac_try) 2>&5
11119 ac_status=$?
11120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121 (exit $ac_status); }; }; then
11122 :
11123else
11124 echo "$as_me: failed program was:" >&5
11125sed 's/^/| /' conftest.$ac_ext >&5
11126
11127continue
11128fi
ac1cb8d3 11129rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11130 cat >conftest.$ac_ext <<_ACEOF
11131/* confdefs.h. */
11132_ACEOF
11133cat confdefs.h >>conftest.$ac_ext
11134cat >>conftest.$ac_ext <<_ACEOF
11135/* end confdefs.h. */
11136$ac_declaration
11137int
11138main ()
11139{
11140exit (42);
11141 ;
11142 return 0;
11143}
11144_ACEOF
11145rm -f conftest.$ac_objext
11146if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11147 (eval $ac_compile) 2>conftest.er1
a848cd7e 11148 ac_status=$?
ac1cb8d3
VS
11149 grep -v '^ *+' conftest.er1 >conftest.err
11150 rm -f conftest.er1
11151 cat conftest.err >&5
a848cd7e
SC
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); } &&
ceec2216 11154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11156 (eval $ac_try) 2>&5
11157 ac_status=$?
11158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159 (exit $ac_status); }; } &&
11160 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11162 (eval $ac_try) 2>&5
11163 ac_status=$?
11164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165 (exit $ac_status); }; }; then
11166 break
11167else
11168 echo "$as_me: failed program was:" >&5
11169sed 's/^/| /' conftest.$ac_ext >&5
11170
11171fi
ac1cb8d3 11172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11173done
11174rm -f conftest*
11175if test -n "$ac_declaration"; then
11176 echo '#ifdef __cplusplus' >>confdefs.h
11177 echo $ac_declaration >>confdefs.h
11178 echo '#endif' >>confdefs.h
11179fi
11180
11181else
11182 echo "$as_me: failed program was:" >&5
11183sed 's/^/| /' conftest.$ac_ext >&5
11184
11185fi
ac1cb8d3 11186rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11187ac_ext=c
11188ac_cpp='$CPP $CPPFLAGS'
11189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11191ac_compiler_gnu=$ac_cv_c_compiler_gnu
11192
11193
11194
11195ac_ext=c
11196ac_cpp='$CPP $CPPFLAGS'
11197ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11198ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11199ac_compiler_gnu=$ac_cv_c_compiler_gnu
11200echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11201echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11202# On Suns, sometimes $CPP names a directory.
11203if test -n "$CPP" && test -d "$CPP"; then
11204 CPP=
11205fi
11206if test -z "$CPP"; then
11207 if test "${ac_cv_prog_CPP+set}" = set; then
11208 echo $ECHO_N "(cached) $ECHO_C" >&6
11209else
11210 # Double quotes because CPP needs to be expanded
11211 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11212 do
11213 ac_preproc_ok=false
11214for ac_c_preproc_warn_flag in '' yes
11215do
11216 # Use a header file that comes with gcc, so configuring glibc
11217 # with a fresh cross-compiler works.
11218 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11219 # <limits.h> exists even on freestanding compilers.
11220 # On the NeXT, cc -E runs the code through the compiler's parser,
11221 # not just through cpp. "Syntax error" is here to catch this case.
11222 cat >conftest.$ac_ext <<_ACEOF
11223/* confdefs.h. */
11224_ACEOF
11225cat confdefs.h >>conftest.$ac_ext
11226cat >>conftest.$ac_ext <<_ACEOF
11227/* end confdefs.h. */
11228#ifdef __STDC__
11229# include <limits.h>
11230#else
11231# include <assert.h>
11232#endif
ac1cb8d3 11233 Syntax error
a848cd7e
SC
11234_ACEOF
11235if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11236 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11237 ac_status=$?
11238 grep -v '^ *+' conftest.er1 >conftest.err
11239 rm -f conftest.er1
11240 cat conftest.err >&5
11241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242 (exit $ac_status); } >/dev/null; then
11243 if test -s conftest.err; then
11244 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11245 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11246 else
11247 ac_cpp_err=
11248 fi
11249else
11250 ac_cpp_err=yes
11251fi
11252if test -z "$ac_cpp_err"; then
11253 :
11254else
11255 echo "$as_me: failed program was:" >&5
11256sed 's/^/| /' conftest.$ac_ext >&5
11257
11258 # Broken: fails on valid input.
11259continue
11260fi
11261rm -f conftest.err conftest.$ac_ext
11262
11263 # OK, works on sane cases. Now check whether non-existent headers
11264 # can be detected and how.
11265 cat >conftest.$ac_ext <<_ACEOF
11266/* confdefs.h. */
11267_ACEOF
11268cat confdefs.h >>conftest.$ac_ext
11269cat >>conftest.$ac_ext <<_ACEOF
11270/* end confdefs.h. */
11271#include <ac_nonexistent.h>
11272_ACEOF
11273if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11274 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11275 ac_status=$?
11276 grep -v '^ *+' conftest.er1 >conftest.err
11277 rm -f conftest.er1
11278 cat conftest.err >&5
11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 (exit $ac_status); } >/dev/null; then
11281 if test -s conftest.err; then
11282 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11283 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11284 else
11285 ac_cpp_err=
11286 fi
11287else
11288 ac_cpp_err=yes
11289fi
11290if test -z "$ac_cpp_err"; then
11291 # Broken: success on invalid input.
11292continue
11293else
11294 echo "$as_me: failed program was:" >&5
11295sed 's/^/| /' conftest.$ac_ext >&5
11296
11297 # Passes both tests.
11298ac_preproc_ok=:
11299break
11300fi
11301rm -f conftest.err conftest.$ac_ext
11302
11303done
11304# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11305rm -f conftest.err conftest.$ac_ext
11306if $ac_preproc_ok; then
11307 break
11308fi
11309
11310 done
11311 ac_cv_prog_CPP=$CPP
11312
11313fi
11314 CPP=$ac_cv_prog_CPP
11315else
11316 ac_cv_prog_CPP=$CPP
11317fi
11318echo "$as_me:$LINENO: result: $CPP" >&5
11319echo "${ECHO_T}$CPP" >&6
11320ac_preproc_ok=false
11321for ac_c_preproc_warn_flag in '' yes
11322do
11323 # Use a header file that comes with gcc, so configuring glibc
11324 # with a fresh cross-compiler works.
11325 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11326 # <limits.h> exists even on freestanding compilers.
11327 # On the NeXT, cc -E runs the code through the compiler's parser,
11328 # not just through cpp. "Syntax error" is here to catch this case.
11329 cat >conftest.$ac_ext <<_ACEOF
11330/* confdefs.h. */
11331_ACEOF
11332cat confdefs.h >>conftest.$ac_ext
11333cat >>conftest.$ac_ext <<_ACEOF
11334/* end confdefs.h. */
11335#ifdef __STDC__
11336# include <limits.h>
11337#else
11338# include <assert.h>
11339#endif
ac1cb8d3 11340 Syntax error
a848cd7e
SC
11341_ACEOF
11342if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11343 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11344 ac_status=$?
11345 grep -v '^ *+' conftest.er1 >conftest.err
11346 rm -f conftest.er1
11347 cat conftest.err >&5
11348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349 (exit $ac_status); } >/dev/null; then
11350 if test -s conftest.err; then
11351 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11352 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11353 else
11354 ac_cpp_err=
11355 fi
11356else
11357 ac_cpp_err=yes
11358fi
11359if test -z "$ac_cpp_err"; then
11360 :
11361else
11362 echo "$as_me: failed program was:" >&5
11363sed 's/^/| /' conftest.$ac_ext >&5
11364
11365 # Broken: fails on valid input.
11366continue
11367fi
11368rm -f conftest.err conftest.$ac_ext
11369
11370 # OK, works on sane cases. Now check whether non-existent headers
11371 # can be detected and how.
11372 cat >conftest.$ac_ext <<_ACEOF
11373/* confdefs.h. */
11374_ACEOF
11375cat confdefs.h >>conftest.$ac_ext
11376cat >>conftest.$ac_ext <<_ACEOF
11377/* end confdefs.h. */
11378#include <ac_nonexistent.h>
11379_ACEOF
11380if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11381 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11382 ac_status=$?
11383 grep -v '^ *+' conftest.er1 >conftest.err
11384 rm -f conftest.er1
11385 cat conftest.err >&5
11386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387 (exit $ac_status); } >/dev/null; then
11388 if test -s conftest.err; then
11389 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11390 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11391 else
11392 ac_cpp_err=
11393 fi
11394else
11395 ac_cpp_err=yes
11396fi
11397if test -z "$ac_cpp_err"; then
11398 # Broken: success on invalid input.
11399continue
11400else
11401 echo "$as_me: failed program was:" >&5
11402sed 's/^/| /' conftest.$ac_ext >&5
11403
11404 # Passes both tests.
11405ac_preproc_ok=:
11406break
11407fi
11408rm -f conftest.err conftest.$ac_ext
11409
11410done
11411# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11412rm -f conftest.err conftest.$ac_ext
11413if $ac_preproc_ok; then
11414 :
11415else
11416 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11417See \`config.log' for more details." >&5
11418echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11419See \`config.log' for more details." >&2;}
11420 { (exit 1); exit 1; }; }
11421fi
11422
11423ac_ext=c
11424ac_cpp='$CPP $CPPFLAGS'
11425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11427ac_compiler_gnu=$ac_cv_c_compiler_gnu
11428
11429
11430echo "$as_me:$LINENO: checking for egrep" >&5
11431echo $ECHO_N "checking for egrep... $ECHO_C" >&6
11432if test "${ac_cv_prog_egrep+set}" = set; then
11433 echo $ECHO_N "(cached) $ECHO_C" >&6
11434else
11435 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
11436 then ac_cv_prog_egrep='grep -E'
11437 else ac_cv_prog_egrep='egrep'
11438 fi
11439fi
11440echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
11441echo "${ECHO_T}$ac_cv_prog_egrep" >&6
11442 EGREP=$ac_cv_prog_egrep
11443
11444
11445if test $ac_cv_c_compiler_gnu = yes; then
11446 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11447echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11448if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11449 echo $ECHO_N "(cached) $ECHO_C" >&6
11450else
11451 ac_pattern="Autoconf.*'x'"
11452 cat >conftest.$ac_ext <<_ACEOF
11453/* confdefs.h. */
11454_ACEOF
11455cat confdefs.h >>conftest.$ac_ext
11456cat >>conftest.$ac_ext <<_ACEOF
11457/* end confdefs.h. */
11458#include <sgtty.h>
11459Autoconf TIOCGETP
11460_ACEOF
11461if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11462 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11463 ac_cv_prog_gcc_traditional=yes
11464else
11465 ac_cv_prog_gcc_traditional=no
11466fi
11467rm -f conftest*
11468
11469
11470 if test $ac_cv_prog_gcc_traditional = no; then
11471 cat >conftest.$ac_ext <<_ACEOF
11472/* confdefs.h. */
11473_ACEOF
11474cat confdefs.h >>conftest.$ac_ext
11475cat >>conftest.$ac_ext <<_ACEOF
11476/* end confdefs.h. */
11477#include <termio.h>
11478Autoconf TCGETA
11479_ACEOF
11480if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11481 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11482 ac_cv_prog_gcc_traditional=yes
11483fi
11484rm -f conftest*
11485
11486 fi
11487fi
11488echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11489echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
11490 if test $ac_cv_prog_gcc_traditional = yes; then
11491 CC="$CC -traditional"
11492 fi
11493fi
11494
11495
11496
11497
11498ac_ext=cc
11499ac_cpp='$CXXCPP $CPPFLAGS'
11500ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11501ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11502ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11503
11504
11505CXXFLAGS=${CXXFLAGS:=}
11506ac_ext=cc
11507ac_cpp='$CXXCPP $CPPFLAGS'
11508ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11509ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11510ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11511if test -n "$ac_tool_prefix"; then
11512 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11513 do
11514 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11515set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11516echo "$as_me:$LINENO: checking for $ac_word" >&5
11517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11518if test "${ac_cv_prog_CXX+set}" = set; then
11519 echo $ECHO_N "(cached) $ECHO_C" >&6
11520else
11521 if test -n "$CXX"; then
11522 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11523else
11524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11525for as_dir in $PATH
11526do
11527 IFS=$as_save_IFS
11528 test -z "$as_dir" && as_dir=.
11529 for ac_exec_ext in '' $ac_executable_extensions; do
11530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11531 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11533 break 2
11534 fi
11535done
11536done
11537
11538fi
11539fi
11540CXX=$ac_cv_prog_CXX
11541if test -n "$CXX"; then
11542 echo "$as_me:$LINENO: result: $CXX" >&5
11543echo "${ECHO_T}$CXX" >&6
11544else
11545 echo "$as_me:$LINENO: result: no" >&5
11546echo "${ECHO_T}no" >&6
11547fi
11548
11549 test -n "$CXX" && break
11550 done
11551fi
11552if test -z "$CXX"; then
11553 ac_ct_CXX=$CXX
11554 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11555do
11556 # Extract the first word of "$ac_prog", so it can be a program name with args.
11557set dummy $ac_prog; ac_word=$2
11558echo "$as_me:$LINENO: checking for $ac_word" >&5
11559echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11560if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11561 echo $ECHO_N "(cached) $ECHO_C" >&6
11562else
11563 if test -n "$ac_ct_CXX"; then
11564 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11565else
11566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11567for as_dir in $PATH
11568do
11569 IFS=$as_save_IFS
11570 test -z "$as_dir" && as_dir=.
11571 for ac_exec_ext in '' $ac_executable_extensions; do
11572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11573 ac_cv_prog_ac_ct_CXX="$ac_prog"
11574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11575 break 2
11576 fi
11577done
11578done
11579
11580fi
11581fi
11582ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11583if test -n "$ac_ct_CXX"; then
11584 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11585echo "${ECHO_T}$ac_ct_CXX" >&6
11586else
11587 echo "$as_me:$LINENO: result: no" >&5
11588echo "${ECHO_T}no" >&6
11589fi
11590
11591 test -n "$ac_ct_CXX" && break
11592done
11593test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11594
11595 CXX=$ac_ct_CXX
11596fi
11597
11598
11599# Provide some information about the compiler.
11600echo "$as_me:$LINENO:" \
11601 "checking for C++ compiler version" >&5
11602ac_compiler=`set X $ac_compile; echo $2`
11603{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11604 (eval $ac_compiler --version </dev/null >&5) 2>&5
11605 ac_status=$?
11606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607 (exit $ac_status); }
11608{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11609 (eval $ac_compiler -v </dev/null >&5) 2>&5
11610 ac_status=$?
11611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612 (exit $ac_status); }
11613{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11614 (eval $ac_compiler -V </dev/null >&5) 2>&5
11615 ac_status=$?
11616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617 (exit $ac_status); }
11618
11619echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11620echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11621if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11622 echo $ECHO_N "(cached) $ECHO_C" >&6
11623else
11624 cat >conftest.$ac_ext <<_ACEOF
11625/* confdefs.h. */
11626_ACEOF
11627cat confdefs.h >>conftest.$ac_ext
11628cat >>conftest.$ac_ext <<_ACEOF
11629/* end confdefs.h. */
11630
11631int
11632main ()
11633{
11634#ifndef __GNUC__
11635 choke me
11636#endif
11637
11638 ;
11639 return 0;
11640}
11641_ACEOF
11642rm -f conftest.$ac_objext
11643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11644 (eval $ac_compile) 2>conftest.er1
a848cd7e 11645 ac_status=$?
ac1cb8d3
VS
11646 grep -v '^ *+' conftest.er1 >conftest.err
11647 rm -f conftest.er1
11648 cat conftest.err >&5
a848cd7e
SC
11649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650 (exit $ac_status); } &&
ceec2216 11651 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11653 (eval $ac_try) 2>&5
11654 ac_status=$?
11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656 (exit $ac_status); }; } &&
11657 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11659 (eval $ac_try) 2>&5
11660 ac_status=$?
11661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662 (exit $ac_status); }; }; then
11663 ac_compiler_gnu=yes
11664else
11665 echo "$as_me: failed program was:" >&5
11666sed 's/^/| /' conftest.$ac_ext >&5
11667
11668ac_compiler_gnu=no
11669fi
ac1cb8d3 11670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11671ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11672
11673fi
11674echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11675echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11676GXX=`test $ac_compiler_gnu = yes && echo yes`
11677ac_test_CXXFLAGS=${CXXFLAGS+set}
11678ac_save_CXXFLAGS=$CXXFLAGS
11679CXXFLAGS="-g"
11680echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11681echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11682if test "${ac_cv_prog_cxx_g+set}" = set; then
11683 echo $ECHO_N "(cached) $ECHO_C" >&6
11684else
11685 cat >conftest.$ac_ext <<_ACEOF
11686/* confdefs.h. */
11687_ACEOF
11688cat confdefs.h >>conftest.$ac_ext
11689cat >>conftest.$ac_ext <<_ACEOF
11690/* end confdefs.h. */
11691
11692int
11693main ()
11694{
11695
11696 ;
11697 return 0;
11698}
11699_ACEOF
11700rm -f conftest.$ac_objext
11701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11702 (eval $ac_compile) 2>conftest.er1
a848cd7e 11703 ac_status=$?
ac1cb8d3
VS
11704 grep -v '^ *+' conftest.er1 >conftest.err
11705 rm -f conftest.er1
11706 cat conftest.err >&5
a848cd7e
SC
11707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708 (exit $ac_status); } &&
ceec2216 11709 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11711 (eval $ac_try) 2>&5
11712 ac_status=$?
11713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714 (exit $ac_status); }; } &&
11715 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11717 (eval $ac_try) 2>&5
11718 ac_status=$?
11719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720 (exit $ac_status); }; }; then
11721 ac_cv_prog_cxx_g=yes
11722else
11723 echo "$as_me: failed program was:" >&5
11724sed 's/^/| /' conftest.$ac_ext >&5
11725
11726ac_cv_prog_cxx_g=no
11727fi
ac1cb8d3 11728rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11729fi
11730echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11731echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
11732if test "$ac_test_CXXFLAGS" = set; then
11733 CXXFLAGS=$ac_save_CXXFLAGS
11734elif test $ac_cv_prog_cxx_g = yes; then
11735 if test "$GXX" = yes; then
11736 CXXFLAGS="-g -O2"
11737 else
11738 CXXFLAGS="-g"
11739 fi
11740else
11741 if test "$GXX" = yes; then
11742 CXXFLAGS="-O2"
11743 else
11744 CXXFLAGS=
11745 fi
11746fi
11747for ac_declaration in \
ac1cb8d3 11748 '' \
a848cd7e
SC
11749 'extern "C" void std::exit (int) throw (); using std::exit;' \
11750 'extern "C" void std::exit (int); using std::exit;' \
11751 'extern "C" void exit (int) throw ();' \
11752 'extern "C" void exit (int);' \
11753 'void exit (int);'
11754do
11755 cat >conftest.$ac_ext <<_ACEOF
11756/* confdefs.h. */
11757_ACEOF
11758cat confdefs.h >>conftest.$ac_ext
11759cat >>conftest.$ac_ext <<_ACEOF
11760/* end confdefs.h. */
de59c161 11761$ac_declaration
ac1cb8d3 11762#include <stdlib.h>
a848cd7e
SC
11763int
11764main ()
11765{
11766exit (42);
11767 ;
11768 return 0;
11769}
11770_ACEOF
11771rm -f conftest.$ac_objext
11772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11773 (eval $ac_compile) 2>conftest.er1
a848cd7e 11774 ac_status=$?
ac1cb8d3
VS
11775 grep -v '^ *+' conftest.er1 >conftest.err
11776 rm -f conftest.er1
11777 cat conftest.err >&5
a848cd7e
SC
11778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779 (exit $ac_status); } &&
ceec2216 11780 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11782 (eval $ac_try) 2>&5
11783 ac_status=$?
11784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785 (exit $ac_status); }; } &&
11786 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11788 (eval $ac_try) 2>&5
11789 ac_status=$?
11790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791 (exit $ac_status); }; }; then
11792 :
11793else
11794 echo "$as_me: failed program was:" >&5
11795sed 's/^/| /' conftest.$ac_ext >&5
11796
11797continue
11798fi
ac1cb8d3 11799rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11800 cat >conftest.$ac_ext <<_ACEOF
11801/* confdefs.h. */
11802_ACEOF
11803cat confdefs.h >>conftest.$ac_ext
11804cat >>conftest.$ac_ext <<_ACEOF
11805/* end confdefs.h. */
11806$ac_declaration
11807int
11808main ()
11809{
11810exit (42);
11811 ;
11812 return 0;
11813}
11814_ACEOF
11815rm -f conftest.$ac_objext
11816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11817 (eval $ac_compile) 2>conftest.er1
a848cd7e 11818 ac_status=$?
ac1cb8d3
VS
11819 grep -v '^ *+' conftest.er1 >conftest.err
11820 rm -f conftest.er1
11821 cat conftest.err >&5
a848cd7e
SC
11822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823 (exit $ac_status); } &&
ceec2216 11824 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11826 (eval $ac_try) 2>&5
11827 ac_status=$?
11828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829 (exit $ac_status); }; } &&
11830 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11832 (eval $ac_try) 2>&5
11833 ac_status=$?
11834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835 (exit $ac_status); }; }; then
11836 break
11837else
11838 echo "$as_me: failed program was:" >&5
11839sed 's/^/| /' conftest.$ac_ext >&5
11840
11841fi
ac1cb8d3 11842rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11843done
11844rm -f conftest*
11845if test -n "$ac_declaration"; then
11846 echo '#ifdef __cplusplus' >>confdefs.h
11847 echo $ac_declaration >>confdefs.h
11848 echo '#endif' >>confdefs.h
11849fi
11850
11851ac_ext=cc
11852ac_cpp='$CXXCPP $CPPFLAGS'
11853ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11854ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11855ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11856
11857
11858ac_ext=c
11859ac_cpp='$CPP $CPPFLAGS'
11860ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11861ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11862ac_compiler_gnu=$ac_cv_c_compiler_gnu
11863
11864
a848cd7e
SC
11865if test -n "$ac_tool_prefix"; then
11866 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11867set dummy ${ac_tool_prefix}ranlib; 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_RANLIB+set}" = set; then
11871 echo $ECHO_N "(cached) $ECHO_C" >&6
11872else
11873 if test -n "$RANLIB"; then
11874 ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="${ac_tool_prefix}ranlib"
11884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11885 break 2
11886 fi
11887done
11888done
11889
11890fi
11891fi
11892RANLIB=$ac_cv_prog_RANLIB
11893if test -n "$RANLIB"; then
11894 echo "$as_me:$LINENO: result: $RANLIB" >&5
11895echo "${ECHO_T}$RANLIB" >&6
11896else
11897 echo "$as_me:$LINENO: result: no" >&5
11898echo "${ECHO_T}no" >&6
11899fi
11900
11901fi
11902if test -z "$ac_cv_prog_RANLIB"; then
11903 ac_ct_RANLIB=$RANLIB
11904 # Extract the first word of "ranlib", so it can be a program name with args.
11905set dummy ranlib; ac_word=$2
11906echo "$as_me:$LINENO: checking for $ac_word" >&5
11907echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11908if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11909 echo $ECHO_N "(cached) $ECHO_C" >&6
11910else
11911 if test -n "$ac_ct_RANLIB"; then
11912 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11913else
11914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11915for as_dir in $PATH
11916do
11917 IFS=$as_save_IFS
11918 test -z "$as_dir" && as_dir=.
11919 for ac_exec_ext in '' $ac_executable_extensions; do
11920 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11921 ac_cv_prog_ac_ct_RANLIB="ranlib"
11922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11923 break 2
11924 fi
11925done
11926done
11927
11928 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11929fi
11930fi
11931ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11932if test -n "$ac_ct_RANLIB"; then
11933 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11934echo "${ECHO_T}$ac_ct_RANLIB" >&6
11935else
11936 echo "$as_me:$LINENO: result: no" >&5
11937echo "${ECHO_T}no" >&6
11938fi
11939
11940 RANLIB=$ac_ct_RANLIB
11941else
11942 RANLIB="$ac_cv_prog_RANLIB"
11943fi
11944
11945
11946# Extract the first word of "ar", so it can be a program name with args.
11947set dummy ar; ac_word=$2
11948echo "$as_me:$LINENO: checking for $ac_word" >&5
11949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11950if test "${ac_cv_prog_AR+set}" = set; then
11951 echo $ECHO_N "(cached) $ECHO_C" >&6
11952else
11953 if test -n "$AR"; then
11954 ac_cv_prog_AR="$AR" # Let the user override the test.
11955else
11956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11957for as_dir in $PATH
11958do
11959 IFS=$as_save_IFS
11960 test -z "$as_dir" && as_dir=.
11961 for ac_exec_ext in '' $ac_executable_extensions; do
11962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11963 ac_cv_prog_AR="ar"
11964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11965 break 2
11966 fi
11967done
11968done
11969
11970fi
11971fi
11972AR=$ac_cv_prog_AR
11973if test -n "$AR"; then
11974 echo "$as_me:$LINENO: result: $AR" >&5
11975echo "${ECHO_T}$AR" >&6
11976else
11977 echo "$as_me:$LINENO: result: no" >&5
11978echo "${ECHO_T}no" >&6
11979fi
11980
11981if test "x$AR" = "x" ; then
77ffb593
JS
11982 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
11983echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
11984 { (exit 1); exit 1; }; }
11985fi
11986
11987# Find a good install program. We prefer a C program (faster),
11988# so one script is as good as another. But avoid the broken or
11989# incompatible versions:
11990# SysV /etc/install, /usr/sbin/install
11991# SunOS /usr/etc/install
11992# IRIX /sbin/install
11993# AIX /bin/install
11994# AmigaOS /C/install, which installs bootblocks on floppy discs
11995# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11996# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11997# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 11998# OS/2's system install, which has a completely different semantic
a848cd7e
SC
11999# ./install, which can be erroneously created by make from ./install.sh.
12000echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12001echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12002if test -z "$INSTALL"; then
12003if test "${ac_cv_path_install+set}" = set; then
12004 echo $ECHO_N "(cached) $ECHO_C" >&6
12005else
12006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12007for as_dir in $PATH
12008do
12009 IFS=$as_save_IFS
12010 test -z "$as_dir" && as_dir=.
12011 # Account for people who put trailing slashes in PATH elements.
12012case $as_dir/ in
12013 ./ | .// | /cC/* | \
12014 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 12015 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
12016 /usr/ucb/* ) ;;
12017 *)
12018 # OSF1 and SCO ODT 3.0 have their own names for install.
12019 # Don't use installbsd from OSF since it installs stuff as root
12020 # by default.
12021 for ac_prog in ginstall scoinst install; do
12022 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
12023 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12024 if test $ac_prog = install &&
12025 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12026 # AIX install. It has an incompatible calling convention.
12027 :
12028 elif test $ac_prog = install &&
12029 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12030 # program-specific install script used by HP pwplus--don't use.
12031 :
12032 else
12033 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12034 break 3
12035 fi
12036 fi
a848cd7e
SC
12037 done
12038 done
12039 ;;
12040esac
12041done
12042
12043
12044fi
12045 if test "${ac_cv_path_install+set}" = set; then
12046 INSTALL=$ac_cv_path_install
12047 else
12048 # As a last resort, use the slow shell script. We don't cache a
12049 # path for INSTALL within a source directory, because that will
12050 # break other packages using the cache if that directory is
12051 # removed, or if the path is relative.
12052 INSTALL=$ac_install_sh
12053 fi
12054fi
12055echo "$as_me:$LINENO: result: $INSTALL" >&5
12056echo "${ECHO_T}$INSTALL" >&6
12057
12058# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12059# It thinks the first close brace ends the variable substitution.
12060test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12061
12062test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12063
12064test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12065
12066
12067case ${INSTALL} in
12068 /* ) # Absolute
12069 ;;
12070 ?:* ) # Drive letter, considered as absolute.
12071 ;;
12072 *)
12073 INSTALL=`pwd`/${INSTALL} ;;
12074esac
12075
a848cd7e
SC
12076
12077case "${host}" in
12078
12079 powerpc-*-darwin* )
12080 INSTALL_PROGRAM="cp -fp"
12081 INSTALL_DATA="cp -fp"
12082 ;;
12083 *)
12084 ;;
12085esac
12086
12087# Extract the first word of "strip", so it can be a program name with args.
12088set dummy strip; ac_word=$2
12089echo "$as_me:$LINENO: checking for $ac_word" >&5
12090echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12091if test "${ac_cv_prog_STRIP+set}" = set; then
12092 echo $ECHO_N "(cached) $ECHO_C" >&6
12093else
12094 if test -n "$STRIP"; then
12095 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12096else
12097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12098for as_dir in $PATH
12099do
12100 IFS=$as_save_IFS
12101 test -z "$as_dir" && as_dir=.
12102 for ac_exec_ext in '' $ac_executable_extensions; do
12103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12104 ac_cv_prog_STRIP="strip"
12105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12106 break 2
12107 fi
12108done
12109done
12110
12111 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
12112fi
12113fi
12114STRIP=$ac_cv_prog_STRIP
12115if test -n "$STRIP"; then
12116 echo "$as_me:$LINENO: result: $STRIP" >&5
12117echo "${ECHO_T}$STRIP" >&6
12118else
12119 echo "$as_me:$LINENO: result: no" >&5
12120echo "${ECHO_T}no" >&6
12121fi
12122
12123
12124echo "$as_me:$LINENO: checking if make is GNU make" >&5
12125echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
12126if test "${wx_cv_prog_makeisgnu+set}" = set; then
12127 echo $ECHO_N "(cached) $ECHO_C" >&6
12128else
12129
12130 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
12131 egrep -s GNU > /dev/null); then
12132 wx_cv_prog_makeisgnu="yes"
12133 else
12134 wx_cv_prog_makeisgnu="no"
12135 fi
12136
12137fi
12138echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
12139echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
12140
12141if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
12142 IF_GNU_MAKE=""
12143else
12144 IF_GNU_MAKE="#"
12145fi
12146
12147
12148
12149if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
12150echo "$as_me:$LINENO: checking if make supports VPATH" >&5
12151echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
12152if test "${wx_cv_prog_makevpath+set}" = set; then
12153 echo $ECHO_N "(cached) $ECHO_C" >&6
12154else
12155
12156cat - << EOF > confMake
12157check : file
12158 cp \$? \$@
12159 cp \$? final_file
12160EOF
12161
12162if test ! -d sub ; then
12163 mkdir sub
12164fi
12165echo dummy > sub/file
12166${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
12167RESULT=$?
12168rm -f sub/file check final_file confMake
12169rmdir sub
12170if test "$RESULT" = 0; then
12171 wx_cv_prog_makevpath="yes"
12172else
12173 wx_cv_prog_makevpath="no"
12174fi
12175
12176fi
12177echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
12178echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
12179
12180if test "x$wx_cv_prog_makevpath" != "xyes"; then
12181{ { echo "$as_me:$LINENO: error:
12182You need a make-utility that is able to use the variable
12183VPATH correctly.
12184If your version of make does not support VPATH correctly,
12185please install GNU-make (possibly as gmake), and start
12186configure with the following command:
12187export MAKE=gmake; ./configure for sh-type shells
12188setenv MAKE gmake; ./configure for csh-type shells
12189Also please do remember to use gmake in this case every time
12190you are trying to compile.
12191" >&5
12192echo "$as_me: error:
12193You need a make-utility that is able to use the variable
12194VPATH correctly.
12195If your version of make does not support VPATH correctly,
12196please install GNU-make (possibly as gmake), and start
12197configure with the following command:
12198export MAKE=gmake; ./configure for sh-type shells
12199setenv MAKE gmake; ./configure for csh-type shells
12200Also please do remember to use gmake in this case every time
12201you are trying to compile.
12202" >&2;}
12203 { (exit 1); exit 1; }; }
12204fi fi
12205echo "$as_me:$LINENO: checking whether ln -s works" >&5
12206echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
12207LN_S=$as_ln_s
12208if test "$LN_S" = "ln -s"; then
12209 echo "$as_me:$LINENO: result: yes" >&5
12210echo "${ECHO_T}yes" >&6
12211else
12212 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
12213echo "${ECHO_T}no, using $LN_S" >&6
12214fi
12215
12216
12217
12218case "${host}" in
12219 *-pc-os2_emx | *-pc-os2-emx )
12220 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
12221 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
12222echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
12223if test "${ac_cv_lib_cExt_drand48+set}" = set; then
12224 echo $ECHO_N "(cached) $ECHO_C" >&6
12225else
12226 ac_check_lib_save_LIBS=$LIBS
12227LIBS="-lcExt $LIBS"
12228cat >conftest.$ac_ext <<_ACEOF
12229/* confdefs.h. */
12230_ACEOF
12231cat confdefs.h >>conftest.$ac_ext
12232cat >>conftest.$ac_ext <<_ACEOF
12233/* end confdefs.h. */
12234
12235/* Override any gcc2 internal prototype to avoid an error. */
12236#ifdef __cplusplus
12237extern "C"
12238#endif
12239/* We use char because int might match the return type of a gcc2
12240 builtin and then its argument prototype would still apply. */
12241char drand48 ();
12242int
12243main ()
12244{
12245drand48 ();
12246 ;
12247 return 0;
12248}
12249_ACEOF
12250rm -f conftest.$ac_objext conftest$ac_exeext
12251if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12252 (eval $ac_link) 2>conftest.er1
a848cd7e 12253 ac_status=$?
ac1cb8d3
VS
12254 grep -v '^ *+' conftest.er1 >conftest.err
12255 rm -f conftest.er1
12256 cat conftest.err >&5
a848cd7e
SC
12257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258 (exit $ac_status); } &&
ceec2216 12259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12261 (eval $ac_try) 2>&5
12262 ac_status=$?
12263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264 (exit $ac_status); }; } &&
12265 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12267 (eval $ac_try) 2>&5
12268 ac_status=$?
12269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270 (exit $ac_status); }; }; then
12271 ac_cv_lib_cExt_drand48=yes
12272else
12273 echo "$as_me: failed program was:" >&5
12274sed 's/^/| /' conftest.$ac_ext >&5
12275
12276ac_cv_lib_cExt_drand48=no
12277fi
ac1cb8d3
VS
12278rm -f conftest.err conftest.$ac_objext \
12279 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12280LIBS=$ac_check_lib_save_LIBS
12281fi
12282echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
12283echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
12284if test $ac_cv_lib_cExt_drand48 = yes; then
12285 LIBS="$LIBS -lcExt"
12286fi
12287
12288 else
12289 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
12290 fi
12291 echo "$as_me:$LINENO: checking for gcc version" >&5
12292echo $ECHO_N "checking for gcc version... $ECHO_C" >&6
12293if test "${wx_cv_gccversion+set}" = set; then
12294 echo $ECHO_N "(cached) $ECHO_C" >&6
12295else
12296
12297 cat >conftest.$ac_ext <<_ACEOF
12298/* confdefs.h. */
12299_ACEOF
12300cat confdefs.h >>conftest.$ac_ext
12301cat >>conftest.$ac_ext <<_ACEOF
12302/* end confdefs.h. */
12303
12304int
12305main ()
12306{
12307
12308 #if (__GNUC__ < 3)
12309 #error old gcc
12310 #endif
12311
12312 ;
12313 return 0;
12314}
12315_ACEOF
12316rm -f conftest.$ac_objext
12317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12318 (eval $ac_compile) 2>conftest.er1
a848cd7e 12319 ac_status=$?
ac1cb8d3
VS
12320 grep -v '^ *+' conftest.er1 >conftest.err
12321 rm -f conftest.er1
12322 cat conftest.err >&5
a848cd7e
SC
12323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324 (exit $ac_status); } &&
ceec2216 12325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12327 (eval $ac_try) 2>&5
12328 ac_status=$?
12329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330 (exit $ac_status); }; } &&
12331 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12333 (eval $ac_try) 2>&5
12334 ac_status=$?
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); }; }; then
12337
12338 cat >conftest.$ac_ext <<_ACEOF
12339/* confdefs.h. */
12340_ACEOF
12341cat confdefs.h >>conftest.$ac_ext
12342cat >>conftest.$ac_ext <<_ACEOF
12343/* end confdefs.h. */
12344
12345int
12346main ()
12347{
12348
12349 #if (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
12350 #error intermediate gcc
12351 #endif
12352
12353 ;
12354 return 0;
12355}
12356_ACEOF
12357rm -f conftest.$ac_objext
12358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12359 (eval $ac_compile) 2>conftest.er1
a848cd7e 12360 ac_status=$?
ac1cb8d3
VS
12361 grep -v '^ *+' conftest.er1 >conftest.err
12362 rm -f conftest.er1
12363 cat conftest.err >&5
a848cd7e
SC
12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); } &&
ceec2216 12366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12368 (eval $ac_try) 2>&5
12369 ac_status=$?
12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371 (exit $ac_status); }; } &&
12372 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12374 (eval $ac_try) 2>&5
12375 ac_status=$?
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 (exit $ac_status); }; }; then
12378
12379 wx_cv_gccversion=Innotek
12380
12381else
12382 echo "$as_me: failed program was:" >&5
12383sed 's/^/| /' conftest.$ac_ext >&5
12384
12385
12386 wx_cv_gccversion=3
12387
12388
12389fi
ac1cb8d3 12390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12391
12392else
12393 echo "$as_me: failed program was:" >&5
12394sed 's/^/| /' conftest.$ac_ext >&5
12395
12396
12397 wx_cv_gccversion=2
12398
12399
12400fi
ac1cb8d3 12401rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12402
12403fi
12404echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
12405echo "${ECHO_T}$wx_cv_gccversion" >&6
12406 if test "$wx_cv_gccversion" = "2"; then
12407 LIBS="$LIBS -lstdcpp"
12408 LDFLAGS="$LDFLAGS -Zsysv-signals"
12409 else
12410 if test "$wx_cv_gccversion" = "3"; then
12411 LIBS="$LIBS -lstdcxx"
12412 LDFLAGS="$LDFLAGS -Zsysv-signals"
12413 else
12414 LIBS="$LIBS -lstdc++"
12415 fi
12416 fi
12417 if test "$wxUSE_OMF" = "yes"; then
de59c161 12418 LDFLAGS="$LDFLAGS -Zomf -Zlinker /PMTYPE:PM -Zlinker /EXEPACK"
a848cd7e
SC
12419 fi
12420 ;;
12421 *)
12422
12423
12424
12425 ac_ext=cc
12426ac_cpp='$CXXCPP $CPPFLAGS'
12427ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12428ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12429ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12430
12431
12432
12433echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
12434echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
12435if test "${ac_cv_string_strcasecmp+set}" = set; then
12436 echo $ECHO_N "(cached) $ECHO_C" >&6
12437else
12438
12439 cat >conftest.$ac_ext <<_ACEOF
12440/* confdefs.h. */
12441_ACEOF
12442cat confdefs.h >>conftest.$ac_ext
12443cat >>conftest.$ac_ext <<_ACEOF
12444/* end confdefs.h. */
12445
12446 #include <string.h>
12447
12448int
12449main ()
12450{
12451
12452 strcasecmp("foo", "bar");
12453
12454 ;
12455 return 0;
12456}
12457_ACEOF
12458rm -f conftest.$ac_objext conftest$ac_exeext
12459if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12460 (eval $ac_link) 2>conftest.er1
a848cd7e 12461 ac_status=$?
ac1cb8d3
VS
12462 grep -v '^ *+' conftest.er1 >conftest.err
12463 rm -f conftest.er1
12464 cat conftest.err >&5
a848cd7e
SC
12465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466 (exit $ac_status); } &&
ceec2216 12467 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12469 (eval $ac_try) 2>&5
12470 ac_status=$?
12471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472 (exit $ac_status); }; } &&
12473 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12475 (eval $ac_try) 2>&5
12476 ac_status=$?
12477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478 (exit $ac_status); }; }; then
12479 ac_cv_string_strcasecmp=yes
12480else
12481 echo "$as_me: failed program was:" >&5
12482sed 's/^/| /' conftest.$ac_ext >&5
12483
12484ac_cv_string_strcasecmp=no
12485
12486fi
ac1cb8d3
VS
12487rm -f conftest.err conftest.$ac_objext \
12488 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12489
12490fi
12491echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
12492echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
12493
12494 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12495 cat >>confdefs.h <<\_ACEOF
12496#define HAVE_STRCASECMP_IN_STRING_H 1
12497_ACEOF
12498
12499 else
12500 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
12501echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
12502if test "${ac_cv_strings_strcasecmp+set}" = set; then
12503 echo $ECHO_N "(cached) $ECHO_C" >&6
12504else
12505
12506 cat >conftest.$ac_ext <<_ACEOF
12507/* confdefs.h. */
12508_ACEOF
12509cat confdefs.h >>conftest.$ac_ext
12510cat >>conftest.$ac_ext <<_ACEOF
12511/* end confdefs.h. */
12512
12513 #include <strings.h>
12514
12515int
12516main ()
12517{
12518
12519 strcasecmp("foo", "bar");
12520
12521 ;
12522 return 0;
12523}
12524_ACEOF
12525rm -f conftest.$ac_objext conftest$ac_exeext
12526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12527 (eval $ac_link) 2>conftest.er1
a848cd7e 12528 ac_status=$?
ac1cb8d3
VS
12529 grep -v '^ *+' conftest.er1 >conftest.err
12530 rm -f conftest.er1
12531 cat conftest.err >&5
a848cd7e
SC
12532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533 (exit $ac_status); } &&
ceec2216 12534 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12536 (eval $ac_try) 2>&5
12537 ac_status=$?
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); }; } &&
12540 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12542 (eval $ac_try) 2>&5
12543 ac_status=$?
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); }; }; then
12546 ac_cv_strings_strcasecmp=yes
12547else
12548 echo "$as_me: failed program was:" >&5
12549sed 's/^/| /' conftest.$ac_ext >&5
12550
12551ac_cv_strings_strcasecmp=no
12552
12553fi
ac1cb8d3
VS
12554rm -f conftest.err conftest.$ac_objext \
12555 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12556
12557fi
12558echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
12559echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
12560
0c3c69fc 12561 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
12562 cat >>confdefs.h <<\_ACEOF
12563#define HAVE_STRCASECMP_IN_STRINGS_H 1
12564_ACEOF
12565
12566 else
12567 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
12568echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
12569 { (exit 1); exit 1; }; }
12570 fi
12571 fi
12572
12573 ac_ext=c
12574ac_cpp='$CPP $CPPFLAGS'
12575ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12576ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12577ac_compiler_gnu=$ac_cv_c_compiler_gnu
12578
12579 ;;
12580esac
12581
12582
12583echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12584echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12585if test "${ac_cv_header_stdc+set}" = set; then
12586 echo $ECHO_N "(cached) $ECHO_C" >&6
12587else
12588 cat >conftest.$ac_ext <<_ACEOF
12589/* confdefs.h. */
12590_ACEOF
12591cat confdefs.h >>conftest.$ac_ext
12592cat >>conftest.$ac_ext <<_ACEOF
12593/* end confdefs.h. */
12594#include <stdlib.h>
12595#include <stdarg.h>
12596#include <string.h>
12597#include <float.h>
12598
12599int
12600main ()
12601{
12602
12603 ;
12604 return 0;
12605}
12606_ACEOF
12607rm -f conftest.$ac_objext
12608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12609 (eval $ac_compile) 2>conftest.er1
a848cd7e 12610 ac_status=$?
ac1cb8d3
VS
12611 grep -v '^ *+' conftest.er1 >conftest.err
12612 rm -f conftest.er1
12613 cat conftest.err >&5
a848cd7e
SC
12614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615 (exit $ac_status); } &&
ceec2216 12616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12618 (eval $ac_try) 2>&5
12619 ac_status=$?
12620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621 (exit $ac_status); }; } &&
12622 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12624 (eval $ac_try) 2>&5
12625 ac_status=$?
12626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627 (exit $ac_status); }; }; then
12628 ac_cv_header_stdc=yes
12629else
12630 echo "$as_me: failed program was:" >&5
12631sed 's/^/| /' conftest.$ac_ext >&5
12632
12633ac_cv_header_stdc=no
12634fi
ac1cb8d3 12635rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12636
12637if test $ac_cv_header_stdc = yes; then
12638 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12639 cat >conftest.$ac_ext <<_ACEOF
12640/* confdefs.h. */
12641_ACEOF
12642cat confdefs.h >>conftest.$ac_ext
12643cat >>conftest.$ac_ext <<_ACEOF
12644/* end confdefs.h. */
12645#include <string.h>
12646
12647_ACEOF
12648if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12649 $EGREP "memchr" >/dev/null 2>&1; then
12650 :
12651else
12652 ac_cv_header_stdc=no
12653fi
12654rm -f conftest*
12655
12656fi
12657
12658if test $ac_cv_header_stdc = yes; then
12659 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12660 cat >conftest.$ac_ext <<_ACEOF
12661/* confdefs.h. */
12662_ACEOF
12663cat confdefs.h >>conftest.$ac_ext
12664cat >>conftest.$ac_ext <<_ACEOF
12665/* end confdefs.h. */
12666#include <stdlib.h>
12667
12668_ACEOF
12669if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12670 $EGREP "free" >/dev/null 2>&1; then
12671 :
12672else
12673 ac_cv_header_stdc=no
12674fi
12675rm -f conftest*
12676
12677fi
12678
12679if test $ac_cv_header_stdc = yes; then
12680 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12681 if test "$cross_compiling" = yes; then
12682 :
12683else
12684 cat >conftest.$ac_ext <<_ACEOF
12685/* confdefs.h. */
12686_ACEOF
12687cat confdefs.h >>conftest.$ac_ext
12688cat >>conftest.$ac_ext <<_ACEOF
12689/* end confdefs.h. */
12690#include <ctype.h>
12691#if ((' ' & 0x0FF) == 0x020)
12692# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12693# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12694#else
12695# define ISLOWER(c) \
ac1cb8d3
VS
12696 (('a' <= (c) && (c) <= 'i') \
12697 || ('j' <= (c) && (c) <= 'r') \
12698 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
12699# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12700#endif
12701
12702#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12703int
12704main ()
12705{
12706 int i;
12707 for (i = 0; i < 256; i++)
12708 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 12709 || toupper (i) != TOUPPER (i))
a848cd7e
SC
12710 exit(2);
12711 exit (0);
12712}
12713_ACEOF
12714rm -f conftest$ac_exeext
12715if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12716 (eval $ac_link) 2>&5
12717 ac_status=$?
12718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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 :
12726else
12727 echo "$as_me: program exited with status $ac_status" >&5
12728echo "$as_me: failed program was:" >&5
12729sed 's/^/| /' conftest.$ac_ext >&5
12730
12731( exit $ac_status )
12732ac_cv_header_stdc=no
12733fi
ac1cb8d3 12734rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12735fi
12736fi
12737fi
12738echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12739echo "${ECHO_T}$ac_cv_header_stdc" >&6
12740if test $ac_cv_header_stdc = yes; then
12741
12742cat >>confdefs.h <<\_ACEOF
12743#define STDC_HEADERS 1
12744_ACEOF
12745
12746fi
12747
12748# On IRIX 5.3, sys/types and inttypes.h are conflicting.
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 12759 inttypes.h stdint.h unistd.h
a848cd7e
SC
12760do
12761as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12762echo "$as_me:$LINENO: checking for $ac_header" >&5
12763echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12764if eval "test \"\${$as_ac_Header+set}\" = set"; then
12765 echo $ECHO_N "(cached) $ECHO_C" >&6
12766else
12767 cat >conftest.$ac_ext <<_ACEOF
12768/* confdefs.h. */
12769_ACEOF
12770cat confdefs.h >>conftest.$ac_ext
12771cat >>conftest.$ac_ext <<_ACEOF
12772/* end confdefs.h. */
12773$ac_includes_default
12774
12775#include <$ac_header>
12776_ACEOF
12777rm -f conftest.$ac_objext
12778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12779 (eval $ac_compile) 2>conftest.er1
a848cd7e 12780 ac_status=$?
ac1cb8d3
VS
12781 grep -v '^ *+' conftest.er1 >conftest.err
12782 rm -f conftest.er1
12783 cat conftest.err >&5
a848cd7e
SC
12784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785 (exit $ac_status); } &&
ceec2216 12786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12788 (eval $ac_try) 2>&5
12789 ac_status=$?
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); }; } &&
12792 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12794 (eval $ac_try) 2>&5
12795 ac_status=$?
12796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797 (exit $ac_status); }; }; then
12798 eval "$as_ac_Header=yes"
12799else
12800 echo "$as_me: failed program was:" >&5
12801sed 's/^/| /' conftest.$ac_ext >&5
12802
12803eval "$as_ac_Header=no"
12804fi
ac1cb8d3 12805rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12806fi
12807echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12808echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12809if test `eval echo '${'$as_ac_Header'}'` = yes; then
12810 cat >>confdefs.h <<_ACEOF
12811#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12812_ACEOF
12813
12814fi
12815
12816done
12817
12818
12819
12820for ac_header in stdlib.h
12821do
12822as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12823if eval "test \"\${$as_ac_Header+set}\" = set"; then
12824 echo "$as_me:$LINENO: checking for $ac_header" >&5
12825echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12826if eval "test \"\${$as_ac_Header+set}\" = set"; then
12827 echo $ECHO_N "(cached) $ECHO_C" >&6
12828fi
12829echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12830echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12831else
12832 # Is the header compilable?
12833echo "$as_me:$LINENO: checking $ac_header usability" >&5
12834echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12835cat >conftest.$ac_ext <<_ACEOF
12836/* confdefs.h. */
12837_ACEOF
12838cat confdefs.h >>conftest.$ac_ext
12839cat >>conftest.$ac_ext <<_ACEOF
12840/* end confdefs.h. */
12841$ac_includes_default
12842#include <$ac_header>
12843_ACEOF
12844rm -f conftest.$ac_objext
12845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12846 (eval $ac_compile) 2>conftest.er1
a848cd7e 12847 ac_status=$?
ac1cb8d3
VS
12848 grep -v '^ *+' conftest.er1 >conftest.err
12849 rm -f conftest.er1
12850 cat conftest.err >&5
a848cd7e
SC
12851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12852 (exit $ac_status); } &&
ceec2216 12853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12855 (eval $ac_try) 2>&5
12856 ac_status=$?
12857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858 (exit $ac_status); }; } &&
12859 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12861 (eval $ac_try) 2>&5
12862 ac_status=$?
12863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); }; }; then
12865 ac_header_compiler=yes
12866else
12867 echo "$as_me: failed program was:" >&5
12868sed 's/^/| /' conftest.$ac_ext >&5
12869
12870ac_header_compiler=no
12871fi
ac1cb8d3 12872rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12873echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12874echo "${ECHO_T}$ac_header_compiler" >&6
12875
12876# Is the header present?
12877echo "$as_me:$LINENO: checking $ac_header presence" >&5
12878echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12879cat >conftest.$ac_ext <<_ACEOF
12880/* confdefs.h. */
12881_ACEOF
12882cat confdefs.h >>conftest.$ac_ext
12883cat >>conftest.$ac_ext <<_ACEOF
12884/* end confdefs.h. */
12885#include <$ac_header>
12886_ACEOF
12887if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12888 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12889 ac_status=$?
12890 grep -v '^ *+' conftest.er1 >conftest.err
12891 rm -f conftest.er1
12892 cat conftest.err >&5
12893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894 (exit $ac_status); } >/dev/null; then
12895 if test -s conftest.err; then
12896 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12897 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12898 else
12899 ac_cpp_err=
12900 fi
12901else
12902 ac_cpp_err=yes
12903fi
12904if test -z "$ac_cpp_err"; then
12905 ac_header_preproc=yes
12906else
12907 echo "$as_me: failed program was:" >&5
12908sed 's/^/| /' conftest.$ac_ext >&5
12909
12910 ac_header_preproc=no
12911fi
12912rm -f conftest.err conftest.$ac_ext
12913echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12914echo "${ECHO_T}$ac_header_preproc" >&6
12915
12916# So? What about this header?
ac1cb8d3
VS
12917case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12918 yes:no: )
a848cd7e
SC
12919 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12920echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
12921 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12922echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12923 ac_header_preproc=yes
a848cd7e 12924 ;;
ac1cb8d3 12925 no:yes:* )
a848cd7e
SC
12926 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12927echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
12928 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12929echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12930 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12931echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12932 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12933echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
12934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12935echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
12936 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12937echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
12938 (
12939 cat <<\_ASBOX
ac1cb8d3
VS
12940## ----------------------------------------- ##
12941## Report this to wx-dev@lists.wxwidgets.org ##
12942## ----------------------------------------- ##
a848cd7e
SC
12943_ASBOX
12944 ) |
12945 sed "s/^/$as_me: WARNING: /" >&2
12946 ;;
12947esac
12948echo "$as_me:$LINENO: checking for $ac_header" >&5
12949echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12950if eval "test \"\${$as_ac_Header+set}\" = set"; then
12951 echo $ECHO_N "(cached) $ECHO_C" >&6
12952else
ac1cb8d3 12953 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
12954fi
12955echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12956echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12957
12958fi
12959if test `eval echo '${'$as_ac_Header'}'` = yes; then
12960 cat >>confdefs.h <<_ACEOF
12961#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12962_ACEOF
12963
12964fi
12965
12966done
12967
12968
12969for ac_header in malloc.h
12970do
12971as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12972if eval "test \"\${$as_ac_Header+set}\" = set"; then
12973 echo "$as_me:$LINENO: checking for $ac_header" >&5
12974echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12975if eval "test \"\${$as_ac_Header+set}\" = set"; then
12976 echo $ECHO_N "(cached) $ECHO_C" >&6
12977fi
12978echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12979echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12980else
12981 # Is the header compilable?
12982echo "$as_me:$LINENO: checking $ac_header usability" >&5
12983echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12984cat >conftest.$ac_ext <<_ACEOF
12985/* confdefs.h. */
12986_ACEOF
12987cat confdefs.h >>conftest.$ac_ext
12988cat >>conftest.$ac_ext <<_ACEOF
12989/* end confdefs.h. */
12990$ac_includes_default
12991#include <$ac_header>
12992_ACEOF
12993rm -f conftest.$ac_objext
12994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12995 (eval $ac_compile) 2>conftest.er1
a848cd7e 12996 ac_status=$?
ac1cb8d3
VS
12997 grep -v '^ *+' conftest.er1 >conftest.err
12998 rm -f conftest.er1
12999 cat conftest.err >&5
a848cd7e
SC
13000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001 (exit $ac_status); } &&
ceec2216 13002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13004 (eval $ac_try) 2>&5
13005 ac_status=$?
13006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007 (exit $ac_status); }; } &&
13008 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13010 (eval $ac_try) 2>&5
13011 ac_status=$?
13012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013 (exit $ac_status); }; }; then
13014 ac_header_compiler=yes
13015else
13016 echo "$as_me: failed program was:" >&5
13017sed 's/^/| /' conftest.$ac_ext >&5
13018
13019ac_header_compiler=no
13020fi
ac1cb8d3 13021rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13022echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13023echo "${ECHO_T}$ac_header_compiler" >&6
13024
13025# Is the header present?
13026echo "$as_me:$LINENO: checking $ac_header presence" >&5
13027echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13028cat >conftest.$ac_ext <<_ACEOF
13029/* confdefs.h. */
13030_ACEOF
13031cat confdefs.h >>conftest.$ac_ext
13032cat >>conftest.$ac_ext <<_ACEOF
13033/* end confdefs.h. */
13034#include <$ac_header>
13035_ACEOF
13036if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13037 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13038 ac_status=$?
13039 grep -v '^ *+' conftest.er1 >conftest.err
13040 rm -f conftest.er1
13041 cat conftest.err >&5
13042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13043 (exit $ac_status); } >/dev/null; then
13044 if test -s conftest.err; then
13045 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13046 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13047 else
13048 ac_cpp_err=
13049 fi
13050else
13051 ac_cpp_err=yes
13052fi
13053if test -z "$ac_cpp_err"; then
13054 ac_header_preproc=yes
13055else
13056 echo "$as_me: failed program was:" >&5
13057sed 's/^/| /' conftest.$ac_ext >&5
13058
13059 ac_header_preproc=no
13060fi
13061rm -f conftest.err conftest.$ac_ext
13062echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13063echo "${ECHO_T}$ac_header_preproc" >&6
13064
13065# So? What about this header?
ac1cb8d3
VS
13066case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13067 yes:no: )
a848cd7e
SC
13068 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13069echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13070 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13071echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13072 ac_header_preproc=yes
a848cd7e 13073 ;;
ac1cb8d3 13074 no:yes:* )
a848cd7e
SC
13075 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13076echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13077 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13078echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13079 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13080echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13081 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13082echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13084echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13085 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13086echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13087 (
13088 cat <<\_ASBOX
ac1cb8d3
VS
13089## ----------------------------------------- ##
13090## Report this to wx-dev@lists.wxwidgets.org ##
13091## ----------------------------------------- ##
a848cd7e
SC
13092_ASBOX
13093 ) |
13094 sed "s/^/$as_me: WARNING: /" >&2
13095 ;;
13096esac
13097echo "$as_me:$LINENO: checking for $ac_header" >&5
13098echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13099if eval "test \"\${$as_ac_Header+set}\" = set"; then
13100 echo $ECHO_N "(cached) $ECHO_C" >&6
13101else
ac1cb8d3 13102 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13103fi
13104echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13105echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13106
13107fi
13108if test `eval echo '${'$as_ac_Header'}'` = yes; then
13109 cat >>confdefs.h <<_ACEOF
13110#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13111_ACEOF
13112
13113fi
13114
13115done
13116
13117
13118for ac_header in unistd.h
13119do
13120as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13121if eval "test \"\${$as_ac_Header+set}\" = set"; then
13122 echo "$as_me:$LINENO: checking for $ac_header" >&5
13123echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13124if eval "test \"\${$as_ac_Header+set}\" = set"; then
13125 echo $ECHO_N "(cached) $ECHO_C" >&6
13126fi
13127echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13128echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13129else
13130 # Is the header compilable?
13131echo "$as_me:$LINENO: checking $ac_header usability" >&5
13132echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13133cat >conftest.$ac_ext <<_ACEOF
13134/* confdefs.h. */
13135_ACEOF
13136cat confdefs.h >>conftest.$ac_ext
13137cat >>conftest.$ac_ext <<_ACEOF
13138/* end confdefs.h. */
13139$ac_includes_default
13140#include <$ac_header>
13141_ACEOF
13142rm -f conftest.$ac_objext
13143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13144 (eval $ac_compile) 2>conftest.er1
a848cd7e 13145 ac_status=$?
ac1cb8d3
VS
13146 grep -v '^ *+' conftest.er1 >conftest.err
13147 rm -f conftest.er1
13148 cat conftest.err >&5
a848cd7e
SC
13149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150 (exit $ac_status); } &&
ceec2216 13151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13153 (eval $ac_try) 2>&5
13154 ac_status=$?
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); }; } &&
13157 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13159 (eval $ac_try) 2>&5
13160 ac_status=$?
13161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13162 (exit $ac_status); }; }; then
13163 ac_header_compiler=yes
13164else
13165 echo "$as_me: failed program was:" >&5
13166sed 's/^/| /' conftest.$ac_ext >&5
13167
13168ac_header_compiler=no
13169fi
ac1cb8d3 13170rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13171echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13172echo "${ECHO_T}$ac_header_compiler" >&6
13173
13174# Is the header present?
13175echo "$as_me:$LINENO: checking $ac_header presence" >&5
13176echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13177cat >conftest.$ac_ext <<_ACEOF
13178/* confdefs.h. */
13179_ACEOF
13180cat confdefs.h >>conftest.$ac_ext
13181cat >>conftest.$ac_ext <<_ACEOF
13182/* end confdefs.h. */
13183#include <$ac_header>
13184_ACEOF
13185if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13186 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13187 ac_status=$?
13188 grep -v '^ *+' conftest.er1 >conftest.err
13189 rm -f conftest.er1
13190 cat conftest.err >&5
13191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13192 (exit $ac_status); } >/dev/null; then
13193 if test -s conftest.err; then
13194 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13195 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13196 else
13197 ac_cpp_err=
13198 fi
13199else
13200 ac_cpp_err=yes
13201fi
13202if test -z "$ac_cpp_err"; then
13203 ac_header_preproc=yes
13204else
13205 echo "$as_me: failed program was:" >&5
13206sed 's/^/| /' conftest.$ac_ext >&5
13207
13208 ac_header_preproc=no
13209fi
13210rm -f conftest.err conftest.$ac_ext
13211echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13212echo "${ECHO_T}$ac_header_preproc" >&6
13213
13214# So? What about this header?
ac1cb8d3
VS
13215case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13216 yes:no: )
a848cd7e
SC
13217 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13218echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13220echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13221 ac_header_preproc=yes
a848cd7e 13222 ;;
ac1cb8d3 13223 no:yes:* )
a848cd7e
SC
13224 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13225echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13226 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13227echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13228 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13229echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13230 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13231echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13232 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13233echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13234 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13235echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13236 (
13237 cat <<\_ASBOX
ac1cb8d3
VS
13238## ----------------------------------------- ##
13239## Report this to wx-dev@lists.wxwidgets.org ##
13240## ----------------------------------------- ##
a848cd7e
SC
13241_ASBOX
13242 ) |
13243 sed "s/^/$as_me: WARNING: /" >&2
13244 ;;
13245esac
13246echo "$as_me:$LINENO: checking for $ac_header" >&5
13247echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13248if eval "test \"\${$as_ac_Header+set}\" = set"; then
13249 echo $ECHO_N "(cached) $ECHO_C" >&6
13250else
ac1cb8d3 13251 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13252fi
13253echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13254echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13255
13256fi
13257if test `eval echo '${'$as_ac_Header'}'` = yes; then
13258 cat >>confdefs.h <<_ACEOF
13259#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13260_ACEOF
13261
13262fi
13263
13264done
13265
13266
13267for ac_header in wchar.h
13268do
13269as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13270if eval "test \"\${$as_ac_Header+set}\" = set"; then
13271 echo "$as_me:$LINENO: checking for $ac_header" >&5
13272echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13273if eval "test \"\${$as_ac_Header+set}\" = set"; then
13274 echo $ECHO_N "(cached) $ECHO_C" >&6
13275fi
13276echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13277echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13278else
13279 # Is the header compilable?
13280echo "$as_me:$LINENO: checking $ac_header usability" >&5
13281echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13282cat >conftest.$ac_ext <<_ACEOF
13283/* confdefs.h. */
13284_ACEOF
13285cat confdefs.h >>conftest.$ac_ext
13286cat >>conftest.$ac_ext <<_ACEOF
13287/* end confdefs.h. */
13288$ac_includes_default
13289#include <$ac_header>
13290_ACEOF
13291rm -f conftest.$ac_objext
13292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13293 (eval $ac_compile) 2>conftest.er1
a848cd7e 13294 ac_status=$?
ac1cb8d3
VS
13295 grep -v '^ *+' conftest.er1 >conftest.err
13296 rm -f conftest.er1
13297 cat conftest.err >&5
a848cd7e
SC
13298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299 (exit $ac_status); } &&
ceec2216 13300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13302 (eval $ac_try) 2>&5
13303 ac_status=$?
13304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305 (exit $ac_status); }; } &&
13306 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13308 (eval $ac_try) 2>&5
13309 ac_status=$?
13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 (exit $ac_status); }; }; then
13312 ac_header_compiler=yes
13313else
13314 echo "$as_me: failed program was:" >&5
13315sed 's/^/| /' conftest.$ac_ext >&5
13316
13317ac_header_compiler=no
13318fi
ac1cb8d3 13319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13320echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13321echo "${ECHO_T}$ac_header_compiler" >&6
13322
13323# Is the header present?
13324echo "$as_me:$LINENO: checking $ac_header presence" >&5
13325echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13326cat >conftest.$ac_ext <<_ACEOF
13327/* confdefs.h. */
13328_ACEOF
13329cat confdefs.h >>conftest.$ac_ext
13330cat >>conftest.$ac_ext <<_ACEOF
13331/* end confdefs.h. */
13332#include <$ac_header>
13333_ACEOF
13334if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13335 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13336 ac_status=$?
13337 grep -v '^ *+' conftest.er1 >conftest.err
13338 rm -f conftest.er1
13339 cat conftest.err >&5
13340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341 (exit $ac_status); } >/dev/null; then
13342 if test -s conftest.err; then
13343 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13344 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13345 else
13346 ac_cpp_err=
13347 fi
13348else
13349 ac_cpp_err=yes
13350fi
13351if test -z "$ac_cpp_err"; then
13352 ac_header_preproc=yes
13353else
13354 echo "$as_me: failed program was:" >&5
13355sed 's/^/| /' conftest.$ac_ext >&5
13356
13357 ac_header_preproc=no
13358fi
13359rm -f conftest.err conftest.$ac_ext
13360echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13361echo "${ECHO_T}$ac_header_preproc" >&6
13362
13363# So? What about this header?
ac1cb8d3
VS
13364case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13365 yes:no: )
a848cd7e
SC
13366 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13367echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13369echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13370 ac_header_preproc=yes
a848cd7e 13371 ;;
ac1cb8d3 13372 no:yes:* )
a848cd7e
SC
13373 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13374echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13375 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13376echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13377 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13378echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13379 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13380echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13382echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13383 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13384echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13385 (
13386 cat <<\_ASBOX
ac1cb8d3
VS
13387## ----------------------------------------- ##
13388## Report this to wx-dev@lists.wxwidgets.org ##
13389## ----------------------------------------- ##
a848cd7e
SC
13390_ASBOX
13391 ) |
13392 sed "s/^/$as_me: WARNING: /" >&2
13393 ;;
13394esac
13395echo "$as_me:$LINENO: checking for $ac_header" >&5
13396echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13397if eval "test \"\${$as_ac_Header+set}\" = set"; then
13398 echo $ECHO_N "(cached) $ECHO_C" >&6
13399else
ac1cb8d3 13400 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13401fi
13402echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13403echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13404
13405fi
13406if test `eval echo '${'$as_ac_Header'}'` = yes; then
13407 cat >>confdefs.h <<_ACEOF
13408#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13409_ACEOF
13410
13411fi
13412
13413done
13414
13415
13416if test "$ac_cv_header_wchar_h" != "yes"; then
13417
13418for ac_header in wcstr.h
13419do
13420as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13421if eval "test \"\${$as_ac_Header+set}\" = set"; then
13422 echo "$as_me:$LINENO: checking for $ac_header" >&5
13423echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13424if eval "test \"\${$as_ac_Header+set}\" = set"; then
13425 echo $ECHO_N "(cached) $ECHO_C" >&6
13426fi
13427echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13428echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13429else
13430 # Is the header compilable?
13431echo "$as_me:$LINENO: checking $ac_header usability" >&5
13432echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13433cat >conftest.$ac_ext <<_ACEOF
13434/* confdefs.h. */
13435_ACEOF
13436cat confdefs.h >>conftest.$ac_ext
13437cat >>conftest.$ac_ext <<_ACEOF
13438/* end confdefs.h. */
13439$ac_includes_default
13440#include <$ac_header>
13441_ACEOF
13442rm -f conftest.$ac_objext
13443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13444 (eval $ac_compile) 2>conftest.er1
a848cd7e 13445 ac_status=$?
ac1cb8d3
VS
13446 grep -v '^ *+' conftest.er1 >conftest.err
13447 rm -f conftest.er1
13448 cat conftest.err >&5
a848cd7e
SC
13449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13450 (exit $ac_status); } &&
ceec2216 13451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13453 (eval $ac_try) 2>&5
13454 ac_status=$?
13455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456 (exit $ac_status); }; } &&
13457 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13459 (eval $ac_try) 2>&5
13460 ac_status=$?
13461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462 (exit $ac_status); }; }; then
13463 ac_header_compiler=yes
13464else
13465 echo "$as_me: failed program was:" >&5
13466sed 's/^/| /' conftest.$ac_ext >&5
13467
13468ac_header_compiler=no
13469fi
ac1cb8d3 13470rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13471echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13472echo "${ECHO_T}$ac_header_compiler" >&6
13473
13474# Is the header present?
13475echo "$as_me:$LINENO: checking $ac_header presence" >&5
13476echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13477cat >conftest.$ac_ext <<_ACEOF
13478/* confdefs.h. */
13479_ACEOF
13480cat confdefs.h >>conftest.$ac_ext
13481cat >>conftest.$ac_ext <<_ACEOF
13482/* end confdefs.h. */
13483#include <$ac_header>
13484_ACEOF
13485if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13486 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13487 ac_status=$?
13488 grep -v '^ *+' conftest.er1 >conftest.err
13489 rm -f conftest.er1
13490 cat conftest.err >&5
13491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492 (exit $ac_status); } >/dev/null; then
13493 if test -s conftest.err; then
13494 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13495 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13496 else
13497 ac_cpp_err=
13498 fi
13499else
13500 ac_cpp_err=yes
13501fi
13502if test -z "$ac_cpp_err"; then
13503 ac_header_preproc=yes
13504else
13505 echo "$as_me: failed program was:" >&5
13506sed 's/^/| /' conftest.$ac_ext >&5
13507
13508 ac_header_preproc=no
13509fi
13510rm -f conftest.err conftest.$ac_ext
13511echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13512echo "${ECHO_T}$ac_header_preproc" >&6
13513
13514# So? What about this header?
ac1cb8d3
VS
13515case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13516 yes:no: )
a848cd7e
SC
13517 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13518echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13520echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13521 ac_header_preproc=yes
a848cd7e 13522 ;;
ac1cb8d3 13523 no:yes:* )
a848cd7e
SC
13524 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13525echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13526 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13527echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13528 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13529echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13530 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13531echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13532 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13533echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13534 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13535echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13536 (
13537 cat <<\_ASBOX
ac1cb8d3
VS
13538## ----------------------------------------- ##
13539## Report this to wx-dev@lists.wxwidgets.org ##
13540## ----------------------------------------- ##
a848cd7e
SC
13541_ASBOX
13542 ) |
13543 sed "s/^/$as_me: WARNING: /" >&2
13544 ;;
13545esac
13546echo "$as_me:$LINENO: checking for $ac_header" >&5
13547echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13548if eval "test \"\${$as_ac_Header+set}\" = set"; then
13549 echo $ECHO_N "(cached) $ECHO_C" >&6
13550else
ac1cb8d3 13551 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13552fi
13553echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13554echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13555
13556fi
13557if test `eval echo '${'$as_ac_Header'}'` = yes; then
13558 cat >>confdefs.h <<_ACEOF
13559#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13560_ACEOF
13561
13562fi
13563
13564done
13565
13566fi
13567
13568
13569for ac_header in fnmatch.h
13570do
13571as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13572if eval "test \"\${$as_ac_Header+set}\" = set"; then
13573 echo "$as_me:$LINENO: checking for $ac_header" >&5
13574echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13575if eval "test \"\${$as_ac_Header+set}\" = set"; then
13576 echo $ECHO_N "(cached) $ECHO_C" >&6
13577fi
13578echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13579echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13580else
13581 # Is the header compilable?
13582echo "$as_me:$LINENO: checking $ac_header usability" >&5
13583echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13584cat >conftest.$ac_ext <<_ACEOF
13585/* confdefs.h. */
13586_ACEOF
13587cat confdefs.h >>conftest.$ac_ext
13588cat >>conftest.$ac_ext <<_ACEOF
13589/* end confdefs.h. */
13590$ac_includes_default
13591#include <$ac_header>
13592_ACEOF
13593rm -f conftest.$ac_objext
13594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13595 (eval $ac_compile) 2>conftest.er1
a848cd7e 13596 ac_status=$?
ac1cb8d3
VS
13597 grep -v '^ *+' conftest.er1 >conftest.err
13598 rm -f conftest.er1
13599 cat conftest.err >&5
a848cd7e
SC
13600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13601 (exit $ac_status); } &&
ceec2216 13602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13604 (eval $ac_try) 2>&5
13605 ac_status=$?
13606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607 (exit $ac_status); }; } &&
13608 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13610 (eval $ac_try) 2>&5
13611 ac_status=$?
13612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613 (exit $ac_status); }; }; then
13614 ac_header_compiler=yes
13615else
13616 echo "$as_me: failed program was:" >&5
13617sed 's/^/| /' conftest.$ac_ext >&5
13618
13619ac_header_compiler=no
13620fi
ac1cb8d3 13621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13622echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13623echo "${ECHO_T}$ac_header_compiler" >&6
13624
13625# Is the header present?
13626echo "$as_me:$LINENO: checking $ac_header presence" >&5
13627echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13628cat >conftest.$ac_ext <<_ACEOF
13629/* confdefs.h. */
13630_ACEOF
13631cat confdefs.h >>conftest.$ac_ext
13632cat >>conftest.$ac_ext <<_ACEOF
13633/* end confdefs.h. */
13634#include <$ac_header>
13635_ACEOF
13636if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13637 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13638 ac_status=$?
13639 grep -v '^ *+' conftest.er1 >conftest.err
13640 rm -f conftest.er1
13641 cat conftest.err >&5
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); } >/dev/null; then
13644 if test -s conftest.err; then
13645 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13646 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13647 else
13648 ac_cpp_err=
13649 fi
13650else
13651 ac_cpp_err=yes
13652fi
13653if test -z "$ac_cpp_err"; then
13654 ac_header_preproc=yes
13655else
13656 echo "$as_me: failed program was:" >&5
13657sed 's/^/| /' conftest.$ac_ext >&5
13658
13659 ac_header_preproc=no
13660fi
13661rm -f conftest.err conftest.$ac_ext
13662echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13663echo "${ECHO_T}$ac_header_preproc" >&6
13664
13665# So? What about this header?
ac1cb8d3
VS
13666case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13667 yes:no: )
a848cd7e
SC
13668 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13669echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13671echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13672 ac_header_preproc=yes
a848cd7e 13673 ;;
ac1cb8d3 13674 no:yes:* )
a848cd7e
SC
13675 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13676echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13677 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13678echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13679 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13680echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13681 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13682echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13684echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13685 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13686echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13687 (
13688 cat <<\_ASBOX
ac1cb8d3
VS
13689## ----------------------------------------- ##
13690## Report this to wx-dev@lists.wxwidgets.org ##
13691## ----------------------------------------- ##
a848cd7e
SC
13692_ASBOX
13693 ) |
13694 sed "s/^/$as_me: WARNING: /" >&2
13695 ;;
13696esac
13697echo "$as_me:$LINENO: checking for $ac_header" >&5
13698echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13699if eval "test \"\${$as_ac_Header+set}\" = set"; then
13700 echo $ECHO_N "(cached) $ECHO_C" >&6
13701else
ac1cb8d3 13702 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13703fi
13704echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13705echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13706
13707fi
13708if test `eval echo '${'$as_ac_Header'}'` = yes; then
13709 cat >>confdefs.h <<_ACEOF
13710#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13711_ACEOF
13712
13713fi
13714
13715done
13716
13717
13718if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
13719
13720for ac_func in fnmatch
13721do
13722as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13723echo "$as_me:$LINENO: checking for $ac_func" >&5
13724echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13725if eval "test \"\${$as_ac_var+set}\" = set"; then
13726 echo $ECHO_N "(cached) $ECHO_C" >&6
13727else
13728 cat >conftest.$ac_ext <<_ACEOF
13729/* confdefs.h. */
13730_ACEOF
13731cat confdefs.h >>conftest.$ac_ext
13732cat >>conftest.$ac_ext <<_ACEOF
13733/* end confdefs.h. */
ac1cb8d3
VS
13734/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13735 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13736#define $ac_func innocuous_$ac_func
13737
a848cd7e
SC
13738/* System header to define __stub macros and hopefully few prototypes,
13739 which can conflict with char $ac_func (); below.
13740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13741 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 13742
a848cd7e
SC
13743#ifdef __STDC__
13744# include <limits.h>
13745#else
13746# include <assert.h>
13747#endif
ac1cb8d3
VS
13748
13749#undef $ac_func
13750
a848cd7e
SC
13751/* Override any gcc2 internal prototype to avoid an error. */
13752#ifdef __cplusplus
13753extern "C"
13754{
13755#endif
13756/* We use char because int might match the return type of a gcc2
13757 builtin and then its argument prototype would still apply. */
13758char $ac_func ();
13759/* The GNU C library defines this for functions which it implements
13760 to always fail with ENOSYS. Some functions are actually named
13761 something starting with __ and the normal name is an alias. */
13762#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13763choke me
13764#else
13765char (*f) () = $ac_func;
13766#endif
13767#ifdef __cplusplus
13768}
13769#endif
13770
13771int
13772main ()
13773{
13774return f != $ac_func;
13775 ;
13776 return 0;
13777}
13778_ACEOF
13779rm -f conftest.$ac_objext conftest$ac_exeext
13780if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13781 (eval $ac_link) 2>conftest.er1
a848cd7e 13782 ac_status=$?
ac1cb8d3
VS
13783 grep -v '^ *+' conftest.er1 >conftest.err
13784 rm -f conftest.er1
13785 cat conftest.err >&5
a848cd7e
SC
13786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787 (exit $ac_status); } &&
ceec2216 13788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13790 (eval $ac_try) 2>&5
13791 ac_status=$?
13792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793 (exit $ac_status); }; } &&
13794 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13796 (eval $ac_try) 2>&5
13797 ac_status=$?
13798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13799 (exit $ac_status); }; }; then
13800 eval "$as_ac_var=yes"
13801else
13802 echo "$as_me: failed program was:" >&5
13803sed 's/^/| /' conftest.$ac_ext >&5
13804
13805eval "$as_ac_var=no"
13806fi
ac1cb8d3
VS
13807rm -f conftest.err conftest.$ac_objext \
13808 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13809fi
13810echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13811echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13812if test `eval echo '${'$as_ac_var'}'` = yes; then
13813 cat >>confdefs.h <<_ACEOF
13814#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13815_ACEOF
13816
13817fi
13818done
13819
13820fi
13821
13822
13823for ac_header in langinfo.h
13824do
13825as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13826if eval "test \"\${$as_ac_Header+set}\" = set"; then
13827 echo "$as_me:$LINENO: checking for $ac_header" >&5
13828echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13829if eval "test \"\${$as_ac_Header+set}\" = set"; then
13830 echo $ECHO_N "(cached) $ECHO_C" >&6
13831fi
13832echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13833echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13834else
13835 # Is the header compilable?
13836echo "$as_me:$LINENO: checking $ac_header usability" >&5
13837echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13838cat >conftest.$ac_ext <<_ACEOF
13839/* confdefs.h. */
13840_ACEOF
13841cat confdefs.h >>conftest.$ac_ext
13842cat >>conftest.$ac_ext <<_ACEOF
13843/* end confdefs.h. */
13844$ac_includes_default
13845#include <$ac_header>
13846_ACEOF
13847rm -f conftest.$ac_objext
13848if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13849 (eval $ac_compile) 2>conftest.er1
a848cd7e 13850 ac_status=$?
ac1cb8d3
VS
13851 grep -v '^ *+' conftest.er1 >conftest.err
13852 rm -f conftest.er1
13853 cat conftest.err >&5
a848cd7e
SC
13854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855 (exit $ac_status); } &&
ceec2216 13856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13858 (eval $ac_try) 2>&5
13859 ac_status=$?
13860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861 (exit $ac_status); }; } &&
13862 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13864 (eval $ac_try) 2>&5
13865 ac_status=$?
13866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13867 (exit $ac_status); }; }; then
13868 ac_header_compiler=yes
13869else
13870 echo "$as_me: failed program was:" >&5
13871sed 's/^/| /' conftest.$ac_ext >&5
13872
13873ac_header_compiler=no
13874fi
ac1cb8d3 13875rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13876echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13877echo "${ECHO_T}$ac_header_compiler" >&6
13878
13879# Is the header present?
13880echo "$as_me:$LINENO: checking $ac_header presence" >&5
13881echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13882cat >conftest.$ac_ext <<_ACEOF
13883/* confdefs.h. */
13884_ACEOF
13885cat confdefs.h >>conftest.$ac_ext
13886cat >>conftest.$ac_ext <<_ACEOF
13887/* end confdefs.h. */
13888#include <$ac_header>
13889_ACEOF
13890if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13891 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13892 ac_status=$?
13893 grep -v '^ *+' conftest.er1 >conftest.err
13894 rm -f conftest.er1
13895 cat conftest.err >&5
13896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897 (exit $ac_status); } >/dev/null; then
13898 if test -s conftest.err; then
13899 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13900 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13901 else
13902 ac_cpp_err=
13903 fi
13904else
13905 ac_cpp_err=yes
13906fi
13907if test -z "$ac_cpp_err"; then
13908 ac_header_preproc=yes
13909else
13910 echo "$as_me: failed program was:" >&5
13911sed 's/^/| /' conftest.$ac_ext >&5
13912
13913 ac_header_preproc=no
13914fi
13915rm -f conftest.err conftest.$ac_ext
13916echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13917echo "${ECHO_T}$ac_header_preproc" >&6
13918
13919# So? What about this header?
ac1cb8d3
VS
13920case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13921 yes:no: )
a848cd7e
SC
13922 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13923echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13924 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13925echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13926 ac_header_preproc=yes
a848cd7e 13927 ;;
ac1cb8d3 13928 no:yes:* )
a848cd7e
SC
13929 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13930echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13931 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13932echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13933 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13934echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13935 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13936echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13937 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13938echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13939 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13940echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13941 (
13942 cat <<\_ASBOX
ac1cb8d3
VS
13943## ----------------------------------------- ##
13944## Report this to wx-dev@lists.wxwidgets.org ##
13945## ----------------------------------------- ##
a848cd7e
SC
13946_ASBOX
13947 ) |
13948 sed "s/^/$as_me: WARNING: /" >&2
13949 ;;
13950esac
13951echo "$as_me:$LINENO: checking for $ac_header" >&5
13952echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13953if eval "test \"\${$as_ac_Header+set}\" = set"; then
13954 echo $ECHO_N "(cached) $ECHO_C" >&6
13955else
ac1cb8d3 13956 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13957fi
13958echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13959echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13960
13961fi
13962if test `eval echo '${'$as_ac_Header'}'` = yes; then
13963 cat >>confdefs.h <<_ACEOF
13964#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13965_ACEOF
13966
13967fi
13968
13969done
13970
13971
13972case "${host}" in
13973 *-pc-os2_emx | *-pc-os2-emx )
13974 if test $ac_cv_header_langinfo_h = "yes"; then
13975 LIBS="$LIBS -lintl"
13976 fi
13977 ;;
13978esac
13979
13980if test "$wxUSE_GUI" = "yes"; then
13981 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
13982
13983for ac_header in X11/Xlib.h
13984do
13985as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13986if eval "test \"\${$as_ac_Header+set}\" = set"; then
13987 echo "$as_me:$LINENO: checking for $ac_header" >&5
13988echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13989if eval "test \"\${$as_ac_Header+set}\" = set"; then
13990 echo $ECHO_N "(cached) $ECHO_C" >&6
13991fi
13992echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13993echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13994else
13995 # Is the header compilable?
13996echo "$as_me:$LINENO: checking $ac_header usability" >&5
13997echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13998cat >conftest.$ac_ext <<_ACEOF
13999/* confdefs.h. */
14000_ACEOF
14001cat confdefs.h >>conftest.$ac_ext
14002cat >>conftest.$ac_ext <<_ACEOF
14003/* end confdefs.h. */
14004$ac_includes_default
14005#include <$ac_header>
14006_ACEOF
14007rm -f conftest.$ac_objext
14008if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14009 (eval $ac_compile) 2>conftest.er1
a848cd7e 14010 ac_status=$?
ac1cb8d3
VS
14011 grep -v '^ *+' conftest.er1 >conftest.err
14012 rm -f conftest.er1
14013 cat conftest.err >&5
a848cd7e
SC
14014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015 (exit $ac_status); } &&
ceec2216 14016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14018 (eval $ac_try) 2>&5
14019 ac_status=$?
14020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021 (exit $ac_status); }; } &&
14022 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14024 (eval $ac_try) 2>&5
14025 ac_status=$?
14026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027 (exit $ac_status); }; }; then
14028 ac_header_compiler=yes
14029else
14030 echo "$as_me: failed program was:" >&5
14031sed 's/^/| /' conftest.$ac_ext >&5
14032
14033ac_header_compiler=no
14034fi
ac1cb8d3 14035rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14036echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14037echo "${ECHO_T}$ac_header_compiler" >&6
14038
14039# Is the header present?
14040echo "$as_me:$LINENO: checking $ac_header presence" >&5
14041echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14042cat >conftest.$ac_ext <<_ACEOF
14043/* confdefs.h. */
14044_ACEOF
14045cat confdefs.h >>conftest.$ac_ext
14046cat >>conftest.$ac_ext <<_ACEOF
14047/* end confdefs.h. */
14048#include <$ac_header>
14049_ACEOF
14050if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14051 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14052 ac_status=$?
14053 grep -v '^ *+' conftest.er1 >conftest.err
14054 rm -f conftest.er1
14055 cat conftest.err >&5
14056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057 (exit $ac_status); } >/dev/null; then
14058 if test -s conftest.err; then
14059 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14060 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14061 else
14062 ac_cpp_err=
14063 fi
14064else
14065 ac_cpp_err=yes
14066fi
14067if test -z "$ac_cpp_err"; then
14068 ac_header_preproc=yes
14069else
14070 echo "$as_me: failed program was:" >&5
14071sed 's/^/| /' conftest.$ac_ext >&5
14072
14073 ac_header_preproc=no
14074fi
14075rm -f conftest.err conftest.$ac_ext
14076echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14077echo "${ECHO_T}$ac_header_preproc" >&6
14078
14079# So? What about this header?
ac1cb8d3
VS
14080case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14081 yes:no: )
a848cd7e
SC
14082 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14083echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14084 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14085echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14086 ac_header_preproc=yes
a848cd7e 14087 ;;
ac1cb8d3 14088 no:yes:* )
a848cd7e
SC
14089 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14090echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14091 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14092echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14093 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14094echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14095 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14096echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14098echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14099 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14100echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14101 (
14102 cat <<\_ASBOX
ac1cb8d3
VS
14103## ----------------------------------------- ##
14104## Report this to wx-dev@lists.wxwidgets.org ##
14105## ----------------------------------------- ##
a848cd7e
SC
14106_ASBOX
14107 ) |
14108 sed "s/^/$as_me: WARNING: /" >&2
14109 ;;
14110esac
14111echo "$as_me:$LINENO: checking for $ac_header" >&5
14112echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14113if eval "test \"\${$as_ac_Header+set}\" = set"; then
14114 echo $ECHO_N "(cached) $ECHO_C" >&6
14115else
ac1cb8d3 14116 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14117fi
14118echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14119echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14120
14121fi
14122if test `eval echo '${'$as_ac_Header'}'` = yes; then
14123 cat >>confdefs.h <<_ACEOF
14124#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14125_ACEOF
14126
14127fi
14128
14129done
14130
14131
14132for ac_header in X11/XKBlib.h
14133do
14134as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14135echo "$as_me:$LINENO: checking for $ac_header" >&5
14136echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14137if eval "test \"\${$as_ac_Header+set}\" = set"; then
14138 echo $ECHO_N "(cached) $ECHO_C" >&6
14139else
14140 cat >conftest.$ac_ext <<_ACEOF
14141/* confdefs.h. */
14142_ACEOF
14143cat confdefs.h >>conftest.$ac_ext
14144cat >>conftest.$ac_ext <<_ACEOF
14145/* end confdefs.h. */
14146
14147 #if HAVE_X11_XLIB_H
14148 #include <X11/Xlib.h>
14149 #endif
14150
14151
14152#include <$ac_header>
14153_ACEOF
14154rm -f conftest.$ac_objext
14155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14156 (eval $ac_compile) 2>conftest.er1
a848cd7e 14157 ac_status=$?
ac1cb8d3
VS
14158 grep -v '^ *+' conftest.er1 >conftest.err
14159 rm -f conftest.er1
14160 cat conftest.err >&5
a848cd7e
SC
14161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14162 (exit $ac_status); } &&
ceec2216 14163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14165 (eval $ac_try) 2>&5
14166 ac_status=$?
14167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168 (exit $ac_status); }; } &&
14169 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14171 (eval $ac_try) 2>&5
14172 ac_status=$?
14173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174 (exit $ac_status); }; }; then
14175 eval "$as_ac_Header=yes"
14176else
14177 echo "$as_me: failed program was:" >&5
14178sed 's/^/| /' conftest.$ac_ext >&5
14179
14180eval "$as_ac_Header=no"
14181fi
ac1cb8d3 14182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14183fi
14184echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14185echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14186if test `eval echo '${'$as_ac_Header'}'` = yes; then
14187 cat >>confdefs.h <<_ACEOF
14188#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14189_ACEOF
14190
14191fi
14192
14193done
14194
14195 fi
14196fi
14197
14198
14199echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14200echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14201if test "${ac_cv_c_const+set}" = set; then
14202 echo $ECHO_N "(cached) $ECHO_C" >&6
14203else
14204 cat >conftest.$ac_ext <<_ACEOF
14205/* confdefs.h. */
14206_ACEOF
14207cat confdefs.h >>conftest.$ac_ext
14208cat >>conftest.$ac_ext <<_ACEOF
14209/* end confdefs.h. */
14210
14211int
14212main ()
14213{
14214/* FIXME: Include the comments suggested by Paul. */
14215#ifndef __cplusplus
14216 /* Ultrix mips cc rejects this. */
14217 typedef int charset[2];
14218 const charset x;
14219 /* SunOS 4.1.1 cc rejects this. */
14220 char const *const *ccp;
14221 char **p;
14222 /* NEC SVR4.0.2 mips cc rejects this. */
14223 struct point {int x, y;};
14224 static struct point const zero = {0,0};
14225 /* AIX XL C 1.02.0.0 rejects this.
14226 It does not let you subtract one const X* pointer from another in
14227 an arm of an if-expression whose if-part is not a constant
14228 expression */
14229 const char *g = "string";
14230 ccp = &g + (g ? g-g : 0);
14231 /* HPUX 7.0 cc rejects these. */
14232 ++ccp;
14233 p = (char**) ccp;
14234 ccp = (char const *const *) p;
14235 { /* SCO 3.2v4 cc rejects this. */
14236 char *t;
14237 char const *s = 0 ? (char *) 0 : (char const *) 0;
14238
14239 *t++ = 0;
14240 }
14241 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14242 int x[] = {25, 17};
14243 const int *foo = &x[0];
14244 ++foo;
14245 }
14246 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14247 typedef const int *iptr;
14248 iptr p = 0;
14249 ++p;
14250 }
14251 { /* AIX XL C 1.02.0.0 rejects this saying
14252 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14253 struct s { int j; const int *ap[3]; };
14254 struct s *b; b->j = 5;
14255 }
14256 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14257 const int foo = 10;
14258 }
14259#endif
14260
14261 ;
14262 return 0;
14263}
14264_ACEOF
14265rm -f conftest.$ac_objext
14266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14267 (eval $ac_compile) 2>conftest.er1
a848cd7e 14268 ac_status=$?
ac1cb8d3
VS
14269 grep -v '^ *+' conftest.er1 >conftest.err
14270 rm -f conftest.er1
14271 cat conftest.err >&5
a848cd7e
SC
14272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273 (exit $ac_status); } &&
ceec2216 14274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14276 (eval $ac_try) 2>&5
14277 ac_status=$?
14278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 (exit $ac_status); }; } &&
14280 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14282 (eval $ac_try) 2>&5
14283 ac_status=$?
14284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285 (exit $ac_status); }; }; then
14286 ac_cv_c_const=yes
14287else
14288 echo "$as_me: failed program was:" >&5
14289sed 's/^/| /' conftest.$ac_ext >&5
14290
14291ac_cv_c_const=no
14292fi
ac1cb8d3 14293rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14294fi
14295echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14296echo "${ECHO_T}$ac_cv_c_const" >&6
14297if test $ac_cv_c_const = no; then
14298
14299cat >>confdefs.h <<\_ACEOF
14300#define const
14301_ACEOF
14302
14303fi
14304
14305echo "$as_me:$LINENO: checking for inline" >&5
14306echo $ECHO_N "checking for inline... $ECHO_C" >&6
14307if test "${ac_cv_c_inline+set}" = set; then
14308 echo $ECHO_N "(cached) $ECHO_C" >&6
14309else
14310 ac_cv_c_inline=no
14311for ac_kw in inline __inline__ __inline; do
14312 cat >conftest.$ac_ext <<_ACEOF
14313/* confdefs.h. */
14314_ACEOF
14315cat confdefs.h >>conftest.$ac_ext
14316cat >>conftest.$ac_ext <<_ACEOF
14317/* end confdefs.h. */
14318#ifndef __cplusplus
14319typedef int foo_t;
14320static $ac_kw foo_t static_foo () {return 0; }
14321$ac_kw foo_t foo () {return 0; }
14322#endif
14323
14324_ACEOF
14325rm -f conftest.$ac_objext
14326if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14327 (eval $ac_compile) 2>conftest.er1
a848cd7e 14328 ac_status=$?
ac1cb8d3
VS
14329 grep -v '^ *+' conftest.er1 >conftest.err
14330 rm -f conftest.er1
14331 cat conftest.err >&5
a848cd7e
SC
14332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333 (exit $ac_status); } &&
ceec2216 14334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14336 (eval $ac_try) 2>&5
14337 ac_status=$?
14338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14339 (exit $ac_status); }; } &&
14340 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14342 (eval $ac_try) 2>&5
14343 ac_status=$?
14344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345 (exit $ac_status); }; }; then
14346 ac_cv_c_inline=$ac_kw; break
14347else
14348 echo "$as_me: failed program was:" >&5
14349sed 's/^/| /' conftest.$ac_ext >&5
14350
14351fi
ac1cb8d3 14352rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14353done
14354
14355fi
14356echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14357echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
14358
14359
a848cd7e
SC
14360case $ac_cv_c_inline in
14361 inline | yes) ;;
ac1cb8d3
VS
14362 *)
14363 case $ac_cv_c_inline in
14364 no) ac_val=;;
14365 *) ac_val=$ac_cv_c_inline;;
14366 esac
14367 cat >>confdefs.h <<_ACEOF
14368#ifndef __cplusplus
14369#define inline $ac_val
14370#endif
de59c161 14371_ACEOF
ac1cb8d3 14372 ;;
a848cd7e
SC
14373esac
14374
14375
14376echo "$as_me:$LINENO: checking for char" >&5
14377echo $ECHO_N "checking for char... $ECHO_C" >&6
14378if test "${ac_cv_type_char+set}" = set; then
14379 echo $ECHO_N "(cached) $ECHO_C" >&6
14380else
14381 cat >conftest.$ac_ext <<_ACEOF
14382/* confdefs.h. */
14383_ACEOF
14384cat confdefs.h >>conftest.$ac_ext
14385cat >>conftest.$ac_ext <<_ACEOF
14386/* end confdefs.h. */
14387$ac_includes_default
14388int
14389main ()
14390{
14391if ((char *) 0)
14392 return 0;
14393if (sizeof (char))
14394 return 0;
14395 ;
14396 return 0;
14397}
14398_ACEOF
14399rm -f conftest.$ac_objext
14400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14401 (eval $ac_compile) 2>conftest.er1
a848cd7e 14402 ac_status=$?
ac1cb8d3
VS
14403 grep -v '^ *+' conftest.er1 >conftest.err
14404 rm -f conftest.er1
14405 cat conftest.err >&5
a848cd7e
SC
14406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407 (exit $ac_status); } &&
ceec2216 14408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14410 (eval $ac_try) 2>&5
14411 ac_status=$?
14412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413 (exit $ac_status); }; } &&
14414 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14416 (eval $ac_try) 2>&5
14417 ac_status=$?
14418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 (exit $ac_status); }; }; then
14420 ac_cv_type_char=yes
14421else
14422 echo "$as_me: failed program was:" >&5
14423sed 's/^/| /' conftest.$ac_ext >&5
14424
14425ac_cv_type_char=no
14426fi
ac1cb8d3 14427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14428fi
14429echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14430echo "${ECHO_T}$ac_cv_type_char" >&6
14431
14432echo "$as_me:$LINENO: checking size of char" >&5
14433echo $ECHO_N "checking size of char... $ECHO_C" >&6
14434if test "${ac_cv_sizeof_char+set}" = set; then
14435 echo $ECHO_N "(cached) $ECHO_C" >&6
14436else
14437 if test "$ac_cv_type_char" = yes; then
14438 # The cast to unsigned long works around a bug in the HP C Compiler
14439 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14440 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14441 # This bug is HP SR number 8606223364.
14442 if test "$cross_compiling" = yes; then
14443 # Depending upon the size, compute the lo and hi bounds.
14444cat >conftest.$ac_ext <<_ACEOF
14445/* confdefs.h. */
14446_ACEOF
14447cat confdefs.h >>conftest.$ac_ext
14448cat >>conftest.$ac_ext <<_ACEOF
14449/* end confdefs.h. */
14450$ac_includes_default
14451int
14452main ()
14453{
14454static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14455test_array [0] = 0
14456
14457 ;
14458 return 0;
14459}
14460_ACEOF
14461rm -f conftest.$ac_objext
14462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14463 (eval $ac_compile) 2>conftest.er1
a848cd7e 14464 ac_status=$?
ac1cb8d3
VS
14465 grep -v '^ *+' conftest.er1 >conftest.err
14466 rm -f conftest.er1
14467 cat conftest.err >&5
a848cd7e
SC
14468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14469 (exit $ac_status); } &&
ceec2216 14470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14472 (eval $ac_try) 2>&5
14473 ac_status=$?
14474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475 (exit $ac_status); }; } &&
14476 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14478 (eval $ac_try) 2>&5
14479 ac_status=$?
14480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481 (exit $ac_status); }; }; then
14482 ac_lo=0 ac_mid=0
14483 while :; do
14484 cat >conftest.$ac_ext <<_ACEOF
14485/* confdefs.h. */
14486_ACEOF
14487cat confdefs.h >>conftest.$ac_ext
14488cat >>conftest.$ac_ext <<_ACEOF
14489/* end confdefs.h. */
14490$ac_includes_default
14491int
14492main ()
14493{
14494static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14495test_array [0] = 0
14496
14497 ;
14498 return 0;
14499}
14500_ACEOF
14501rm -f conftest.$ac_objext
14502if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14503 (eval $ac_compile) 2>conftest.er1
a848cd7e 14504 ac_status=$?
ac1cb8d3
VS
14505 grep -v '^ *+' conftest.er1 >conftest.err
14506 rm -f conftest.er1
14507 cat conftest.err >&5
a848cd7e
SC
14508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14509 (exit $ac_status); } &&
ceec2216 14510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14512 (eval $ac_try) 2>&5
14513 ac_status=$?
14514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515 (exit $ac_status); }; } &&
14516 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14518 (eval $ac_try) 2>&5
14519 ac_status=$?
14520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521 (exit $ac_status); }; }; then
14522 ac_hi=$ac_mid; break
14523else
14524 echo "$as_me: failed program was:" >&5
14525sed 's/^/| /' conftest.$ac_ext >&5
14526
14527ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
14528 if test $ac_lo -le $ac_mid; then
14529 ac_lo= ac_hi=
14530 break
14531 fi
14532 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 14533fi
ac1cb8d3 14534rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14535 done
14536else
14537 echo "$as_me: failed program was:" >&5
14538sed 's/^/| /' conftest.$ac_ext >&5
14539
14540cat >conftest.$ac_ext <<_ACEOF
14541/* confdefs.h. */
14542_ACEOF
14543cat confdefs.h >>conftest.$ac_ext
14544cat >>conftest.$ac_ext <<_ACEOF
14545/* end confdefs.h. */
14546$ac_includes_default
14547int
14548main ()
14549{
14550static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14551test_array [0] = 0
14552
14553 ;
14554 return 0;
14555}
14556_ACEOF
14557rm -f conftest.$ac_objext
14558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14559 (eval $ac_compile) 2>conftest.er1
a848cd7e 14560 ac_status=$?
ac1cb8d3
VS
14561 grep -v '^ *+' conftest.er1 >conftest.err
14562 rm -f conftest.er1
14563 cat conftest.err >&5
a848cd7e
SC
14564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565 (exit $ac_status); } &&
ceec2216 14566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14568 (eval $ac_try) 2>&5
14569 ac_status=$?
14570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14571 (exit $ac_status); }; } &&
14572 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14574 (eval $ac_try) 2>&5
14575 ac_status=$?
14576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577 (exit $ac_status); }; }; then
14578 ac_hi=-1 ac_mid=-1
14579 while :; do
14580 cat >conftest.$ac_ext <<_ACEOF
14581/* confdefs.h. */
14582_ACEOF
14583cat confdefs.h >>conftest.$ac_ext
14584cat >>conftest.$ac_ext <<_ACEOF
14585/* end confdefs.h. */
14586$ac_includes_default
14587int
14588main ()
14589{
14590static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14591test_array [0] = 0
14592
14593 ;
14594 return 0;
14595}
14596_ACEOF
14597rm -f conftest.$ac_objext
14598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14599 (eval $ac_compile) 2>conftest.er1
a848cd7e 14600 ac_status=$?
ac1cb8d3
VS
14601 grep -v '^ *+' conftest.er1 >conftest.err
14602 rm -f conftest.er1
14603 cat conftest.err >&5
a848cd7e
SC
14604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605 (exit $ac_status); } &&
ceec2216 14606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14608 (eval $ac_try) 2>&5
14609 ac_status=$?
14610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611 (exit $ac_status); }; } &&
14612 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14614 (eval $ac_try) 2>&5
14615 ac_status=$?
14616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617 (exit $ac_status); }; }; then
14618 ac_lo=$ac_mid; break
14619else
14620 echo "$as_me: failed program was:" >&5
14621sed 's/^/| /' conftest.$ac_ext >&5
14622
14623ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
14624 if test $ac_mid -le $ac_hi; then
14625 ac_lo= ac_hi=
14626 break
14627 fi
14628 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 14629fi
ac1cb8d3 14630rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14631 done
14632else
14633 echo "$as_me: failed program was:" >&5
14634sed 's/^/| /' conftest.$ac_ext >&5
14635
14636ac_lo= ac_hi=
14637fi
ac1cb8d3 14638rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 14639fi
ac1cb8d3 14640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14641# Binary search between lo and hi bounds.
14642while test "x$ac_lo" != "x$ac_hi"; do
14643 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14644 cat >conftest.$ac_ext <<_ACEOF
14645/* confdefs.h. */
14646_ACEOF
14647cat confdefs.h >>conftest.$ac_ext
14648cat >>conftest.$ac_ext <<_ACEOF
14649/* end confdefs.h. */
14650$ac_includes_default
14651int
14652main ()
14653{
14654static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14655test_array [0] = 0
14656
14657 ;
14658 return 0;
14659}
14660_ACEOF
14661rm -f conftest.$ac_objext
14662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14663 (eval $ac_compile) 2>conftest.er1
a848cd7e 14664 ac_status=$?
ac1cb8d3
VS
14665 grep -v '^ *+' conftest.er1 >conftest.err
14666 rm -f conftest.er1
14667 cat conftest.err >&5
a848cd7e
SC
14668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14669 (exit $ac_status); } &&
ceec2216 14670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14672 (eval $ac_try) 2>&5
14673 ac_status=$?
14674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675 (exit $ac_status); }; } &&
14676 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14678 (eval $ac_try) 2>&5
14679 ac_status=$?
14680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681 (exit $ac_status); }; }; then
14682 ac_hi=$ac_mid
14683else
14684 echo "$as_me: failed program was:" >&5
14685sed 's/^/| /' conftest.$ac_ext >&5
14686
14687ac_lo=`expr '(' $ac_mid ')' + 1`
14688fi
ac1cb8d3 14689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14690done
14691case $ac_lo in
14692?*) ac_cv_sizeof_char=$ac_lo;;
14693'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14694See \`config.log' for more details." >&5
14695echo "$as_me: error: cannot compute sizeof (char), 77
14696See \`config.log' for more details." >&2;}
14697 { (exit 1); exit 1; }; } ;;
14698esac
14699else
14700 if test "$cross_compiling" = yes; then
ceec2216
RL
14701 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
14702echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
14703 { (exit 1); exit 1; }; }
14704else
14705 cat >conftest.$ac_ext <<_ACEOF
14706/* confdefs.h. */
14707_ACEOF
14708cat confdefs.h >>conftest.$ac_ext
14709cat >>conftest.$ac_ext <<_ACEOF
14710/* end confdefs.h. */
14711$ac_includes_default
14712long longval () { return (long) (sizeof (char)); }
14713unsigned long ulongval () { return (long) (sizeof (char)); }
14714#include <stdio.h>
14715#include <stdlib.h>
14716int
14717main ()
14718{
14719
14720 FILE *f = fopen ("conftest.val", "w");
14721 if (! f)
14722 exit (1);
14723 if (((long) (sizeof (char))) < 0)
14724 {
14725 long i = longval ();
14726 if (i != ((long) (sizeof (char))))
14727 exit (1);
14728 fprintf (f, "%ld\n", i);
14729 }
14730 else
14731 {
14732 unsigned long i = ulongval ();
14733 if (i != ((long) (sizeof (char))))
14734 exit (1);
14735 fprintf (f, "%lu\n", i);
14736 }
14737 exit (ferror (f) || fclose (f) != 0);
14738
14739 ;
14740 return 0;
14741}
14742_ACEOF
14743rm -f conftest$ac_exeext
14744if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14745 (eval $ac_link) 2>&5
14746 ac_status=$?
14747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14750 (eval $ac_try) 2>&5
14751 ac_status=$?
14752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14753 (exit $ac_status); }; }; then
14754 ac_cv_sizeof_char=`cat conftest.val`
14755else
14756 echo "$as_me: program exited with status $ac_status" >&5
14757echo "$as_me: failed program was:" >&5
14758sed 's/^/| /' conftest.$ac_ext >&5
14759
14760( exit $ac_status )
14761{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14762See \`config.log' for more details." >&5
14763echo "$as_me: error: cannot compute sizeof (char), 77
14764See \`config.log' for more details." >&2;}
14765 { (exit 1); exit 1; }; }
14766fi
ac1cb8d3 14767rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14768fi
14769fi
14770rm -f conftest.val
14771else
14772 ac_cv_sizeof_char=0
14773fi
14774fi
14775echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14776echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14777cat >>confdefs.h <<_ACEOF
14778#define SIZEOF_CHAR $ac_cv_sizeof_char
14779_ACEOF
14780
14781
14782echo "$as_me:$LINENO: checking for short" >&5
14783echo $ECHO_N "checking for short... $ECHO_C" >&6
14784if test "${ac_cv_type_short+set}" = set; then
14785 echo $ECHO_N "(cached) $ECHO_C" >&6
14786else
14787 cat >conftest.$ac_ext <<_ACEOF
14788/* confdefs.h. */
14789_ACEOF
14790cat confdefs.h >>conftest.$ac_ext
14791cat >>conftest.$ac_ext <<_ACEOF
14792/* end confdefs.h. */
14793$ac_includes_default
14794int
14795main ()
14796{
14797if ((short *) 0)
14798 return 0;
14799if (sizeof (short))
14800 return 0;
14801 ;
14802 return 0;
14803}
14804_ACEOF
14805rm -f conftest.$ac_objext
14806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14807 (eval $ac_compile) 2>conftest.er1
a848cd7e 14808 ac_status=$?
ac1cb8d3
VS
14809 grep -v '^ *+' conftest.er1 >conftest.err
14810 rm -f conftest.er1
14811 cat conftest.err >&5
a848cd7e
SC
14812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813 (exit $ac_status); } &&
ceec2216 14814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14816 (eval $ac_try) 2>&5
14817 ac_status=$?
14818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819 (exit $ac_status); }; } &&
14820 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14822 (eval $ac_try) 2>&5
14823 ac_status=$?
14824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825 (exit $ac_status); }; }; then
14826 ac_cv_type_short=yes
14827else
14828 echo "$as_me: failed program was:" >&5
14829sed 's/^/| /' conftest.$ac_ext >&5
14830
14831ac_cv_type_short=no
14832fi
ac1cb8d3 14833rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14834fi
14835echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14836echo "${ECHO_T}$ac_cv_type_short" >&6
14837
14838echo "$as_me:$LINENO: checking size of short" >&5
14839echo $ECHO_N "checking size of short... $ECHO_C" >&6
14840if test "${ac_cv_sizeof_short+set}" = set; then
14841 echo $ECHO_N "(cached) $ECHO_C" >&6
14842else
14843 if test "$ac_cv_type_short" = yes; then
14844 # The cast to unsigned long works around a bug in the HP C Compiler
14845 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14846 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14847 # This bug is HP SR number 8606223364.
14848 if test "$cross_compiling" = yes; then
14849 # Depending upon the size, compute the lo and hi bounds.
14850cat >conftest.$ac_ext <<_ACEOF
14851/* confdefs.h. */
14852_ACEOF
14853cat confdefs.h >>conftest.$ac_ext
14854cat >>conftest.$ac_ext <<_ACEOF
14855/* end confdefs.h. */
14856$ac_includes_default
14857int
14858main ()
14859{
14860static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14861test_array [0] = 0
14862
14863 ;
14864 return 0;
14865}
14866_ACEOF
14867rm -f conftest.$ac_objext
14868if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14869 (eval $ac_compile) 2>conftest.er1
a848cd7e 14870 ac_status=$?
ac1cb8d3
VS
14871 grep -v '^ *+' conftest.er1 >conftest.err
14872 rm -f conftest.er1
14873 cat conftest.err >&5
a848cd7e
SC
14874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875 (exit $ac_status); } &&
ceec2216 14876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14878 (eval $ac_try) 2>&5
14879 ac_status=$?
14880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881 (exit $ac_status); }; } &&
14882 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14884 (eval $ac_try) 2>&5
14885 ac_status=$?
14886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14887 (exit $ac_status); }; }; then
14888 ac_lo=0 ac_mid=0
14889 while :; do
14890 cat >conftest.$ac_ext <<_ACEOF
14891/* confdefs.h. */
14892_ACEOF
14893cat confdefs.h >>conftest.$ac_ext
14894cat >>conftest.$ac_ext <<_ACEOF
14895/* end confdefs.h. */
14896$ac_includes_default
14897int
14898main ()
14899{
14900static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14901test_array [0] = 0
14902
14903 ;
14904 return 0;
14905}
14906_ACEOF
14907rm -f conftest.$ac_objext
14908if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14909 (eval $ac_compile) 2>conftest.er1
a848cd7e 14910 ac_status=$?
ac1cb8d3
VS
14911 grep -v '^ *+' conftest.er1 >conftest.err
14912 rm -f conftest.er1
14913 cat conftest.err >&5
a848cd7e
SC
14914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915 (exit $ac_status); } &&
ceec2216 14916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14918 (eval $ac_try) 2>&5
14919 ac_status=$?
14920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921 (exit $ac_status); }; } &&
14922 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14924 (eval $ac_try) 2>&5
14925 ac_status=$?
14926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927 (exit $ac_status); }; }; then
14928 ac_hi=$ac_mid; break
14929else
14930 echo "$as_me: failed program was:" >&5
14931sed 's/^/| /' conftest.$ac_ext >&5
14932
14933ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
14934 if test $ac_lo -le $ac_mid; then
14935 ac_lo= ac_hi=
14936 break
14937 fi
14938 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 14939fi
ac1cb8d3 14940rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14941 done
14942else
14943 echo "$as_me: failed program was:" >&5
14944sed 's/^/| /' conftest.$ac_ext >&5
14945
14946cat >conftest.$ac_ext <<_ACEOF
14947/* confdefs.h. */
14948_ACEOF
14949cat confdefs.h >>conftest.$ac_ext
14950cat >>conftest.$ac_ext <<_ACEOF
14951/* end confdefs.h. */
14952$ac_includes_default
14953int
14954main ()
14955{
14956static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14957test_array [0] = 0
14958
14959 ;
14960 return 0;
14961}
14962_ACEOF
14963rm -f conftest.$ac_objext
14964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14965 (eval $ac_compile) 2>conftest.er1
a848cd7e 14966 ac_status=$?
ac1cb8d3
VS
14967 grep -v '^ *+' conftest.er1 >conftest.err
14968 rm -f conftest.er1
14969 cat conftest.err >&5
a848cd7e
SC
14970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971 (exit $ac_status); } &&
ceec2216 14972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14974 (eval $ac_try) 2>&5
14975 ac_status=$?
14976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14977 (exit $ac_status); }; } &&
14978 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14980 (eval $ac_try) 2>&5
14981 ac_status=$?
14982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983 (exit $ac_status); }; }; then
14984 ac_hi=-1 ac_mid=-1
14985 while :; do
14986 cat >conftest.$ac_ext <<_ACEOF
14987/* confdefs.h. */
14988_ACEOF
14989cat confdefs.h >>conftest.$ac_ext
14990cat >>conftest.$ac_ext <<_ACEOF
14991/* end confdefs.h. */
14992$ac_includes_default
14993int
14994main ()
14995{
14996static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14997test_array [0] = 0
14998
14999 ;
15000 return 0;
15001}
15002_ACEOF
15003rm -f conftest.$ac_objext
15004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15005 (eval $ac_compile) 2>conftest.er1
a848cd7e 15006 ac_status=$?
ac1cb8d3
VS
15007 grep -v '^ *+' conftest.er1 >conftest.err
15008 rm -f conftest.er1
15009 cat conftest.err >&5
a848cd7e
SC
15010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15011 (exit $ac_status); } &&
ceec2216 15012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15014 (eval $ac_try) 2>&5
15015 ac_status=$?
15016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15017 (exit $ac_status); }; } &&
15018 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15020 (eval $ac_try) 2>&5
15021 ac_status=$?
15022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023 (exit $ac_status); }; }; then
15024 ac_lo=$ac_mid; break
15025else
15026 echo "$as_me: failed program was:" >&5
15027sed 's/^/| /' conftest.$ac_ext >&5
15028
15029ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15030 if test $ac_mid -le $ac_hi; then
15031 ac_lo= ac_hi=
15032 break
15033 fi
15034 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15035fi
ac1cb8d3 15036rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15037 done
15038else
15039 echo "$as_me: failed program was:" >&5
15040sed 's/^/| /' conftest.$ac_ext >&5
15041
15042ac_lo= ac_hi=
15043fi
ac1cb8d3 15044rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15045fi
ac1cb8d3 15046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15047# Binary search between lo and hi bounds.
15048while test "x$ac_lo" != "x$ac_hi"; do
15049 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15050 cat >conftest.$ac_ext <<_ACEOF
15051/* confdefs.h. */
15052_ACEOF
15053cat confdefs.h >>conftest.$ac_ext
15054cat >>conftest.$ac_ext <<_ACEOF
15055/* end confdefs.h. */
15056$ac_includes_default
15057int
15058main ()
15059{
15060static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15061test_array [0] = 0
15062
15063 ;
15064 return 0;
15065}
15066_ACEOF
15067rm -f conftest.$ac_objext
15068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15069 (eval $ac_compile) 2>conftest.er1
a848cd7e 15070 ac_status=$?
ac1cb8d3
VS
15071 grep -v '^ *+' conftest.er1 >conftest.err
15072 rm -f conftest.er1
15073 cat conftest.err >&5
a848cd7e
SC
15074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15075 (exit $ac_status); } &&
ceec2216 15076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15078 (eval $ac_try) 2>&5
15079 ac_status=$?
15080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15081 (exit $ac_status); }; } &&
15082 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15084 (eval $ac_try) 2>&5
15085 ac_status=$?
15086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15087 (exit $ac_status); }; }; then
15088 ac_hi=$ac_mid
15089else
15090 echo "$as_me: failed program was:" >&5
15091sed 's/^/| /' conftest.$ac_ext >&5
15092
15093ac_lo=`expr '(' $ac_mid ')' + 1`
15094fi
ac1cb8d3 15095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15096done
15097case $ac_lo in
15098?*) ac_cv_sizeof_short=$ac_lo;;
15099'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15100See \`config.log' for more details." >&5
15101echo "$as_me: error: cannot compute sizeof (short), 77
15102See \`config.log' for more details." >&2;}
15103 { (exit 1); exit 1; }; } ;;
15104esac
15105else
15106 if test "$cross_compiling" = yes; then
ceec2216
RL
15107 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15108echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
15109 { (exit 1); exit 1; }; }
15110else
15111 cat >conftest.$ac_ext <<_ACEOF
15112/* confdefs.h. */
15113_ACEOF
15114cat confdefs.h >>conftest.$ac_ext
15115cat >>conftest.$ac_ext <<_ACEOF
15116/* end confdefs.h. */
15117$ac_includes_default
15118long longval () { return (long) (sizeof (short)); }
15119unsigned long ulongval () { return (long) (sizeof (short)); }
15120#include <stdio.h>
15121#include <stdlib.h>
15122int
15123main ()
15124{
15125
15126 FILE *f = fopen ("conftest.val", "w");
15127 if (! f)
15128 exit (1);
15129 if (((long) (sizeof (short))) < 0)
15130 {
15131 long i = longval ();
15132 if (i != ((long) (sizeof (short))))
15133 exit (1);
15134 fprintf (f, "%ld\n", i);
15135 }
15136 else
15137 {
15138 unsigned long i = ulongval ();
15139 if (i != ((long) (sizeof (short))))
15140 exit (1);
15141 fprintf (f, "%lu\n", i);
15142 }
15143 exit (ferror (f) || fclose (f) != 0);
15144
15145 ;
15146 return 0;
15147}
15148_ACEOF
15149rm -f conftest$ac_exeext
15150if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15151 (eval $ac_link) 2>&5
15152 ac_status=$?
15153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15156 (eval $ac_try) 2>&5
15157 ac_status=$?
15158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); }; }; then
15160 ac_cv_sizeof_short=`cat conftest.val`
15161else
15162 echo "$as_me: program exited with status $ac_status" >&5
15163echo "$as_me: failed program was:" >&5
15164sed 's/^/| /' conftest.$ac_ext >&5
15165
15166( exit $ac_status )
15167{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15168See \`config.log' for more details." >&5
15169echo "$as_me: error: cannot compute sizeof (short), 77
15170See \`config.log' for more details." >&2;}
15171 { (exit 1); exit 1; }; }
15172fi
ac1cb8d3 15173rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15174fi
15175fi
15176rm -f conftest.val
15177else
15178 ac_cv_sizeof_short=0
15179fi
15180fi
15181echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15182echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15183cat >>confdefs.h <<_ACEOF
15184#define SIZEOF_SHORT $ac_cv_sizeof_short
15185_ACEOF
15186
15187
15188echo "$as_me:$LINENO: checking for void *" >&5
15189echo $ECHO_N "checking for void *... $ECHO_C" >&6
15190if test "${ac_cv_type_void_p+set}" = set; then
15191 echo $ECHO_N "(cached) $ECHO_C" >&6
15192else
15193 cat >conftest.$ac_ext <<_ACEOF
15194/* confdefs.h. */
15195_ACEOF
15196cat confdefs.h >>conftest.$ac_ext
15197cat >>conftest.$ac_ext <<_ACEOF
15198/* end confdefs.h. */
15199$ac_includes_default
15200int
15201main ()
15202{
15203if ((void * *) 0)
15204 return 0;
15205if (sizeof (void *))
15206 return 0;
15207 ;
15208 return 0;
15209}
15210_ACEOF
15211rm -f conftest.$ac_objext
15212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15213 (eval $ac_compile) 2>conftest.er1
a848cd7e 15214 ac_status=$?
ac1cb8d3
VS
15215 grep -v '^ *+' conftest.er1 >conftest.err
15216 rm -f conftest.er1
15217 cat conftest.err >&5
a848cd7e
SC
15218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219 (exit $ac_status); } &&
ceec2216 15220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15222 (eval $ac_try) 2>&5
15223 ac_status=$?
15224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15225 (exit $ac_status); }; } &&
15226 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15228 (eval $ac_try) 2>&5
15229 ac_status=$?
15230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15231 (exit $ac_status); }; }; then
15232 ac_cv_type_void_p=yes
15233else
15234 echo "$as_me: failed program was:" >&5
15235sed 's/^/| /' conftest.$ac_ext >&5
15236
15237ac_cv_type_void_p=no
15238fi
ac1cb8d3 15239rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15240fi
15241echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
15242echo "${ECHO_T}$ac_cv_type_void_p" >&6
15243
15244echo "$as_me:$LINENO: checking size of void *" >&5
15245echo $ECHO_N "checking size of void *... $ECHO_C" >&6
15246if test "${ac_cv_sizeof_void_p+set}" = set; then
15247 echo $ECHO_N "(cached) $ECHO_C" >&6
15248else
15249 if test "$ac_cv_type_void_p" = yes; then
15250 # The cast to unsigned long works around a bug in the HP C Compiler
15251 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15252 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15253 # This bug is HP SR number 8606223364.
15254 if test "$cross_compiling" = yes; then
15255 # Depending upon the size, compute the lo and hi bounds.
15256cat >conftest.$ac_ext <<_ACEOF
15257/* confdefs.h. */
15258_ACEOF
15259cat confdefs.h >>conftest.$ac_ext
15260cat >>conftest.$ac_ext <<_ACEOF
15261/* end confdefs.h. */
15262$ac_includes_default
15263int
15264main ()
15265{
15266static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
15267test_array [0] = 0
15268
15269 ;
15270 return 0;
15271}
15272_ACEOF
15273rm -f conftest.$ac_objext
15274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15275 (eval $ac_compile) 2>conftest.er1
a848cd7e 15276 ac_status=$?
ac1cb8d3
VS
15277 grep -v '^ *+' conftest.er1 >conftest.err
15278 rm -f conftest.er1
15279 cat conftest.err >&5
a848cd7e
SC
15280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15281 (exit $ac_status); } &&
ceec2216 15282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15284 (eval $ac_try) 2>&5
15285 ac_status=$?
15286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287 (exit $ac_status); }; } &&
15288 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15290 (eval $ac_try) 2>&5
15291 ac_status=$?
15292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15293 (exit $ac_status); }; }; then
15294 ac_lo=0 ac_mid=0
15295 while :; do
15296 cat >conftest.$ac_ext <<_ACEOF
15297/* confdefs.h. */
15298_ACEOF
15299cat confdefs.h >>conftest.$ac_ext
15300cat >>conftest.$ac_ext <<_ACEOF
15301/* end confdefs.h. */
15302$ac_includes_default
15303int
15304main ()
15305{
15306static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15307test_array [0] = 0
15308
15309 ;
15310 return 0;
15311}
15312_ACEOF
15313rm -f conftest.$ac_objext
15314if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15315 (eval $ac_compile) 2>conftest.er1
a848cd7e 15316 ac_status=$?
ac1cb8d3
VS
15317 grep -v '^ *+' conftest.er1 >conftest.err
15318 rm -f conftest.er1
15319 cat conftest.err >&5
a848cd7e
SC
15320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321 (exit $ac_status); } &&
ceec2216 15322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15324 (eval $ac_try) 2>&5
15325 ac_status=$?
15326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327 (exit $ac_status); }; } &&
15328 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15330 (eval $ac_try) 2>&5
15331 ac_status=$?
15332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333 (exit $ac_status); }; }; then
15334 ac_hi=$ac_mid; break
15335else
15336 echo "$as_me: failed program was:" >&5
15337sed 's/^/| /' conftest.$ac_ext >&5
15338
15339ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15340 if test $ac_lo -le $ac_mid; then
15341 ac_lo= ac_hi=
15342 break
15343 fi
15344 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15345fi
ac1cb8d3 15346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15347 done
15348else
15349 echo "$as_me: failed program was:" >&5
15350sed 's/^/| /' conftest.$ac_ext >&5
15351
15352cat >conftest.$ac_ext <<_ACEOF
15353/* confdefs.h. */
15354_ACEOF
15355cat confdefs.h >>conftest.$ac_ext
15356cat >>conftest.$ac_ext <<_ACEOF
15357/* end confdefs.h. */
15358$ac_includes_default
15359int
15360main ()
15361{
15362static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15363test_array [0] = 0
15364
15365 ;
15366 return 0;
15367}
15368_ACEOF
15369rm -f conftest.$ac_objext
15370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15371 (eval $ac_compile) 2>conftest.er1
a848cd7e 15372 ac_status=$?
ac1cb8d3
VS
15373 grep -v '^ *+' conftest.er1 >conftest.err
15374 rm -f conftest.er1
15375 cat conftest.err >&5
a848cd7e
SC
15376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); } &&
ceec2216 15378 { ac_try='test -z "$ac_c_werror_flag" || 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_hi=-1 ac_mid=-1
15391 while :; do
15392 cat >conftest.$ac_ext <<_ACEOF
15393/* confdefs.h. */
15394_ACEOF
15395cat confdefs.h >>conftest.$ac_ext
15396cat >>conftest.$ac_ext <<_ACEOF
15397/* end confdefs.h. */
15398$ac_includes_default
15399int
15400main ()
15401{
15402static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15403test_array [0] = 0
15404
15405 ;
15406 return 0;
15407}
15408_ACEOF
15409rm -f conftest.$ac_objext
15410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15411 (eval $ac_compile) 2>conftest.er1
a848cd7e 15412 ac_status=$?
ac1cb8d3
VS
15413 grep -v '^ *+' conftest.er1 >conftest.err
15414 rm -f conftest.er1
15415 cat conftest.err >&5
a848cd7e
SC
15416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417 (exit $ac_status); } &&
ceec2216 15418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15420 (eval $ac_try) 2>&5
15421 ac_status=$?
15422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423 (exit $ac_status); }; } &&
15424 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15426 (eval $ac_try) 2>&5
15427 ac_status=$?
15428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429 (exit $ac_status); }; }; then
15430 ac_lo=$ac_mid; break
15431else
15432 echo "$as_me: failed program was:" >&5
15433sed 's/^/| /' conftest.$ac_ext >&5
15434
15435ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15436 if test $ac_mid -le $ac_hi; then
15437 ac_lo= ac_hi=
15438 break
15439 fi
15440 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15441fi
ac1cb8d3 15442rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15443 done
15444else
15445 echo "$as_me: failed program was:" >&5
15446sed 's/^/| /' conftest.$ac_ext >&5
15447
15448ac_lo= ac_hi=
15449fi
ac1cb8d3 15450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15451fi
ac1cb8d3 15452rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15453# Binary search between lo and hi bounds.
15454while test "x$ac_lo" != "x$ac_hi"; do
15455 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15456 cat >conftest.$ac_ext <<_ACEOF
15457/* confdefs.h. */
15458_ACEOF
15459cat confdefs.h >>conftest.$ac_ext
15460cat >>conftest.$ac_ext <<_ACEOF
15461/* end confdefs.h. */
15462$ac_includes_default
15463int
15464main ()
15465{
15466static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15467test_array [0] = 0
15468
15469 ;
15470 return 0;
15471}
15472_ACEOF
15473rm -f conftest.$ac_objext
15474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15475 (eval $ac_compile) 2>conftest.er1
a848cd7e 15476 ac_status=$?
ac1cb8d3
VS
15477 grep -v '^ *+' conftest.er1 >conftest.err
15478 rm -f conftest.er1
15479 cat conftest.err >&5
a848cd7e
SC
15480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15481 (exit $ac_status); } &&
ceec2216 15482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15484 (eval $ac_try) 2>&5
15485 ac_status=$?
15486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15487 (exit $ac_status); }; } &&
15488 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15490 (eval $ac_try) 2>&5
15491 ac_status=$?
15492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493 (exit $ac_status); }; }; then
15494 ac_hi=$ac_mid
15495else
15496 echo "$as_me: failed program was:" >&5
15497sed 's/^/| /' conftest.$ac_ext >&5
15498
15499ac_lo=`expr '(' $ac_mid ')' + 1`
15500fi
ac1cb8d3 15501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15502done
15503case $ac_lo in
15504?*) ac_cv_sizeof_void_p=$ac_lo;;
15505'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15506See \`config.log' for more details." >&5
15507echo "$as_me: error: cannot compute sizeof (void *), 77
15508See \`config.log' for more details." >&2;}
15509 { (exit 1); exit 1; }; } ;;
15510esac
15511else
15512 if test "$cross_compiling" = yes; then
ceec2216
RL
15513 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15514echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
15515 { (exit 1); exit 1; }; }
15516else
15517 cat >conftest.$ac_ext <<_ACEOF
15518/* confdefs.h. */
15519_ACEOF
15520cat confdefs.h >>conftest.$ac_ext
15521cat >>conftest.$ac_ext <<_ACEOF
15522/* end confdefs.h. */
15523$ac_includes_default
15524long longval () { return (long) (sizeof (void *)); }
15525unsigned long ulongval () { return (long) (sizeof (void *)); }
15526#include <stdio.h>
15527#include <stdlib.h>
15528int
15529main ()
15530{
15531
15532 FILE *f = fopen ("conftest.val", "w");
15533 if (! f)
15534 exit (1);
15535 if (((long) (sizeof (void *))) < 0)
15536 {
15537 long i = longval ();
15538 if (i != ((long) (sizeof (void *))))
15539 exit (1);
15540 fprintf (f, "%ld\n", i);
15541 }
15542 else
15543 {
15544 unsigned long i = ulongval ();
15545 if (i != ((long) (sizeof (void *))))
15546 exit (1);
15547 fprintf (f, "%lu\n", i);
15548 }
15549 exit (ferror (f) || fclose (f) != 0);
15550
15551 ;
15552 return 0;
15553}
15554_ACEOF
15555rm -f conftest$ac_exeext
15556if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15557 (eval $ac_link) 2>&5
15558 ac_status=$?
15559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15562 (eval $ac_try) 2>&5
15563 ac_status=$?
15564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15565 (exit $ac_status); }; }; then
15566 ac_cv_sizeof_void_p=`cat conftest.val`
15567else
15568 echo "$as_me: program exited with status $ac_status" >&5
15569echo "$as_me: failed program was:" >&5
15570sed 's/^/| /' conftest.$ac_ext >&5
15571
15572( exit $ac_status )
15573{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15574See \`config.log' for more details." >&5
15575echo "$as_me: error: cannot compute sizeof (void *), 77
15576See \`config.log' for more details." >&2;}
15577 { (exit 1); exit 1; }; }
15578fi
ac1cb8d3 15579rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15580fi
15581fi
15582rm -f conftest.val
15583else
15584 ac_cv_sizeof_void_p=0
15585fi
15586fi
15587echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15588echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15589cat >>confdefs.h <<_ACEOF
15590#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15591_ACEOF
15592
15593
15594echo "$as_me:$LINENO: checking for int" >&5
15595echo $ECHO_N "checking for int... $ECHO_C" >&6
15596if test "${ac_cv_type_int+set}" = set; then
15597 echo $ECHO_N "(cached) $ECHO_C" >&6
15598else
15599 cat >conftest.$ac_ext <<_ACEOF
15600/* confdefs.h. */
15601_ACEOF
15602cat confdefs.h >>conftest.$ac_ext
15603cat >>conftest.$ac_ext <<_ACEOF
15604/* end confdefs.h. */
15605$ac_includes_default
15606int
15607main ()
15608{
15609if ((int *) 0)
15610 return 0;
15611if (sizeof (int))
15612 return 0;
15613 ;
15614 return 0;
15615}
15616_ACEOF
15617rm -f conftest.$ac_objext
15618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15619 (eval $ac_compile) 2>conftest.er1
a848cd7e 15620 ac_status=$?
ac1cb8d3
VS
15621 grep -v '^ *+' conftest.er1 >conftest.err
15622 rm -f conftest.er1
15623 cat conftest.err >&5
a848cd7e
SC
15624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15625 (exit $ac_status); } &&
ceec2216 15626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15628 (eval $ac_try) 2>&5
15629 ac_status=$?
15630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15631 (exit $ac_status); }; } &&
15632 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15634 (eval $ac_try) 2>&5
15635 ac_status=$?
15636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637 (exit $ac_status); }; }; then
15638 ac_cv_type_int=yes
15639else
15640 echo "$as_me: failed program was:" >&5
15641sed 's/^/| /' conftest.$ac_ext >&5
15642
15643ac_cv_type_int=no
15644fi
ac1cb8d3 15645rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15646fi
15647echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15648echo "${ECHO_T}$ac_cv_type_int" >&6
15649
15650echo "$as_me:$LINENO: checking size of int" >&5
15651echo $ECHO_N "checking size of int... $ECHO_C" >&6
15652if test "${ac_cv_sizeof_int+set}" = set; then
15653 echo $ECHO_N "(cached) $ECHO_C" >&6
15654else
15655 if test "$ac_cv_type_int" = yes; then
15656 # The cast to unsigned long works around a bug in the HP C Compiler
15657 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15658 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15659 # This bug is HP SR number 8606223364.
15660 if test "$cross_compiling" = yes; then
15661 # Depending upon the size, compute the lo and hi bounds.
15662cat >conftest.$ac_ext <<_ACEOF
15663/* confdefs.h. */
15664_ACEOF
15665cat confdefs.h >>conftest.$ac_ext
15666cat >>conftest.$ac_ext <<_ACEOF
15667/* end confdefs.h. */
15668$ac_includes_default
15669int
15670main ()
15671{
15672static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15673test_array [0] = 0
15674
15675 ;
15676 return 0;
15677}
15678_ACEOF
15679rm -f conftest.$ac_objext
15680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15681 (eval $ac_compile) 2>conftest.er1
a848cd7e 15682 ac_status=$?
ac1cb8d3
VS
15683 grep -v '^ *+' conftest.er1 >conftest.err
15684 rm -f conftest.er1
15685 cat conftest.err >&5
a848cd7e
SC
15686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15687 (exit $ac_status); } &&
ceec2216 15688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15690 (eval $ac_try) 2>&5
15691 ac_status=$?
15692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693 (exit $ac_status); }; } &&
15694 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
15700 ac_lo=0 ac_mid=0
15701 while :; do
15702 cat >conftest.$ac_ext <<_ACEOF
15703/* confdefs.h. */
15704_ACEOF
15705cat confdefs.h >>conftest.$ac_ext
15706cat >>conftest.$ac_ext <<_ACEOF
15707/* end confdefs.h. */
15708$ac_includes_default
15709int
15710main ()
15711{
15712static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15713test_array [0] = 0
15714
15715 ;
15716 return 0;
15717}
15718_ACEOF
15719rm -f conftest.$ac_objext
15720if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15721 (eval $ac_compile) 2>conftest.er1
a848cd7e 15722 ac_status=$?
ac1cb8d3
VS
15723 grep -v '^ *+' conftest.er1 >conftest.err
15724 rm -f conftest.er1
15725 cat conftest.err >&5
a848cd7e
SC
15726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15727 (exit $ac_status); } &&
ceec2216 15728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15730 (eval $ac_try) 2>&5
15731 ac_status=$?
15732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733 (exit $ac_status); }; } &&
15734 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15736 (eval $ac_try) 2>&5
15737 ac_status=$?
15738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15739 (exit $ac_status); }; }; then
15740 ac_hi=$ac_mid; break
15741else
15742 echo "$as_me: failed program was:" >&5
15743sed 's/^/| /' conftest.$ac_ext >&5
15744
15745ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15746 if test $ac_lo -le $ac_mid; then
15747 ac_lo= ac_hi=
15748 break
15749 fi
15750 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15751fi
ac1cb8d3 15752rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15753 done
15754else
15755 echo "$as_me: failed program was:" >&5
15756sed 's/^/| /' conftest.$ac_ext >&5
15757
15758cat >conftest.$ac_ext <<_ACEOF
15759/* confdefs.h. */
15760_ACEOF
15761cat confdefs.h >>conftest.$ac_ext
15762cat >>conftest.$ac_ext <<_ACEOF
15763/* end confdefs.h. */
15764$ac_includes_default
15765int
15766main ()
15767{
15768static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15769test_array [0] = 0
15770
15771 ;
15772 return 0;
15773}
15774_ACEOF
15775rm -f conftest.$ac_objext
15776if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15777 (eval $ac_compile) 2>conftest.er1
a848cd7e 15778 ac_status=$?
ac1cb8d3
VS
15779 grep -v '^ *+' conftest.er1 >conftest.err
15780 rm -f conftest.er1
15781 cat conftest.err >&5
a848cd7e
SC
15782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783 (exit $ac_status); } &&
ceec2216 15784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15786 (eval $ac_try) 2>&5
15787 ac_status=$?
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); }; } &&
15790 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15792 (eval $ac_try) 2>&5
15793 ac_status=$?
15794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795 (exit $ac_status); }; }; then
15796 ac_hi=-1 ac_mid=-1
15797 while :; do
15798 cat >conftest.$ac_ext <<_ACEOF
15799/* confdefs.h. */
15800_ACEOF
15801cat confdefs.h >>conftest.$ac_ext
15802cat >>conftest.$ac_ext <<_ACEOF
15803/* end confdefs.h. */
15804$ac_includes_default
15805int
15806main ()
15807{
15808static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15809test_array [0] = 0
15810
15811 ;
15812 return 0;
15813}
15814_ACEOF
15815rm -f conftest.$ac_objext
15816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15817 (eval $ac_compile) 2>conftest.er1
a848cd7e 15818 ac_status=$?
ac1cb8d3
VS
15819 grep -v '^ *+' conftest.er1 >conftest.err
15820 rm -f conftest.er1
15821 cat conftest.err >&5
a848cd7e
SC
15822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823 (exit $ac_status); } &&
ceec2216 15824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15826 (eval $ac_try) 2>&5
15827 ac_status=$?
15828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15829 (exit $ac_status); }; } &&
15830 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15832 (eval $ac_try) 2>&5
15833 ac_status=$?
15834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835 (exit $ac_status); }; }; then
15836 ac_lo=$ac_mid; break
15837else
15838 echo "$as_me: failed program was:" >&5
15839sed 's/^/| /' conftest.$ac_ext >&5
15840
15841ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15842 if test $ac_mid -le $ac_hi; then
15843 ac_lo= ac_hi=
15844 break
15845 fi
15846 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15847fi
ac1cb8d3 15848rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15849 done
15850else
15851 echo "$as_me: failed program was:" >&5
15852sed 's/^/| /' conftest.$ac_ext >&5
15853
15854ac_lo= ac_hi=
15855fi
ac1cb8d3 15856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15857fi
ac1cb8d3 15858rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15859# Binary search between lo and hi bounds.
15860while test "x$ac_lo" != "x$ac_hi"; do
15861 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15862 cat >conftest.$ac_ext <<_ACEOF
15863/* confdefs.h. */
15864_ACEOF
15865cat confdefs.h >>conftest.$ac_ext
15866cat >>conftest.$ac_ext <<_ACEOF
15867/* end confdefs.h. */
15868$ac_includes_default
15869int
15870main ()
15871{
15872static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15873test_array [0] = 0
15874
15875 ;
15876 return 0;
15877}
15878_ACEOF
15879rm -f conftest.$ac_objext
15880if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15881 (eval $ac_compile) 2>conftest.er1
a848cd7e 15882 ac_status=$?
ac1cb8d3
VS
15883 grep -v '^ *+' conftest.er1 >conftest.err
15884 rm -f conftest.er1
15885 cat conftest.err >&5
a848cd7e
SC
15886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15887 (exit $ac_status); } &&
ceec2216 15888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15890 (eval $ac_try) 2>&5
15891 ac_status=$?
15892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893 (exit $ac_status); }; } &&
15894 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15896 (eval $ac_try) 2>&5
15897 ac_status=$?
15898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15899 (exit $ac_status); }; }; then
15900 ac_hi=$ac_mid
15901else
15902 echo "$as_me: failed program was:" >&5
15903sed 's/^/| /' conftest.$ac_ext >&5
15904
15905ac_lo=`expr '(' $ac_mid ')' + 1`
15906fi
ac1cb8d3 15907rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15908done
15909case $ac_lo in
15910?*) ac_cv_sizeof_int=$ac_lo;;
15911'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15912See \`config.log' for more details." >&5
15913echo "$as_me: error: cannot compute sizeof (int), 77
15914See \`config.log' for more details." >&2;}
15915 { (exit 1); exit 1; }; } ;;
15916esac
15917else
15918 if test "$cross_compiling" = yes; then
ceec2216
RL
15919 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15920echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
15921 { (exit 1); exit 1; }; }
15922else
15923 cat >conftest.$ac_ext <<_ACEOF
15924/* confdefs.h. */
15925_ACEOF
15926cat confdefs.h >>conftest.$ac_ext
15927cat >>conftest.$ac_ext <<_ACEOF
15928/* end confdefs.h. */
15929$ac_includes_default
15930long longval () { return (long) (sizeof (int)); }
15931unsigned long ulongval () { return (long) (sizeof (int)); }
15932#include <stdio.h>
15933#include <stdlib.h>
15934int
15935main ()
15936{
15937
15938 FILE *f = fopen ("conftest.val", "w");
15939 if (! f)
15940 exit (1);
15941 if (((long) (sizeof (int))) < 0)
15942 {
15943 long i = longval ();
15944 if (i != ((long) (sizeof (int))))
15945 exit (1);
15946 fprintf (f, "%ld\n", i);
15947 }
15948 else
15949 {
15950 unsigned long i = ulongval ();
15951 if (i != ((long) (sizeof (int))))
15952 exit (1);
15953 fprintf (f, "%lu\n", i);
15954 }
15955 exit (ferror (f) || fclose (f) != 0);
15956
15957 ;
15958 return 0;
15959}
15960_ACEOF
15961rm -f conftest$ac_exeext
15962if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15963 (eval $ac_link) 2>&5
15964 ac_status=$?
15965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15966 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15968 (eval $ac_try) 2>&5
15969 ac_status=$?
15970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15971 (exit $ac_status); }; }; then
15972 ac_cv_sizeof_int=`cat conftest.val`
15973else
15974 echo "$as_me: program exited with status $ac_status" >&5
15975echo "$as_me: failed program was:" >&5
15976sed 's/^/| /' conftest.$ac_ext >&5
15977
15978( exit $ac_status )
15979{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15980See \`config.log' for more details." >&5
15981echo "$as_me: error: cannot compute sizeof (int), 77
15982See \`config.log' for more details." >&2;}
15983 { (exit 1); exit 1; }; }
15984fi
ac1cb8d3 15985rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15986fi
15987fi
15988rm -f conftest.val
15989else
15990 ac_cv_sizeof_int=0
15991fi
15992fi
15993echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15994echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15995cat >>confdefs.h <<_ACEOF
15996#define SIZEOF_INT $ac_cv_sizeof_int
15997_ACEOF
15998
15999
16000echo "$as_me:$LINENO: checking for long" >&5
16001echo $ECHO_N "checking for long... $ECHO_C" >&6
16002if test "${ac_cv_type_long+set}" = set; then
16003 echo $ECHO_N "(cached) $ECHO_C" >&6
16004else
16005 cat >conftest.$ac_ext <<_ACEOF
16006/* confdefs.h. */
16007_ACEOF
16008cat confdefs.h >>conftest.$ac_ext
16009cat >>conftest.$ac_ext <<_ACEOF
16010/* end confdefs.h. */
16011$ac_includes_default
16012int
16013main ()
16014{
16015if ((long *) 0)
16016 return 0;
16017if (sizeof (long))
16018 return 0;
16019 ;
16020 return 0;
16021}
16022_ACEOF
16023rm -f conftest.$ac_objext
16024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16025 (eval $ac_compile) 2>conftest.er1
a848cd7e 16026 ac_status=$?
ac1cb8d3
VS
16027 grep -v '^ *+' conftest.er1 >conftest.err
16028 rm -f conftest.er1
16029 cat conftest.err >&5
a848cd7e
SC
16030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031 (exit $ac_status); } &&
ceec2216 16032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16034 (eval $ac_try) 2>&5
16035 ac_status=$?
16036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037 (exit $ac_status); }; } &&
16038 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16040 (eval $ac_try) 2>&5
16041 ac_status=$?
16042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043 (exit $ac_status); }; }; then
16044 ac_cv_type_long=yes
16045else
16046 echo "$as_me: failed program was:" >&5
16047sed 's/^/| /' conftest.$ac_ext >&5
16048
16049ac_cv_type_long=no
16050fi
ac1cb8d3 16051rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16052fi
16053echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
16054echo "${ECHO_T}$ac_cv_type_long" >&6
16055
16056echo "$as_me:$LINENO: checking size of long" >&5
16057echo $ECHO_N "checking size of long... $ECHO_C" >&6
16058if test "${ac_cv_sizeof_long+set}" = set; then
16059 echo $ECHO_N "(cached) $ECHO_C" >&6
16060else
16061 if test "$ac_cv_type_long" = yes; then
16062 # The cast to unsigned long works around a bug in the HP C Compiler
16063 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16064 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16065 # This bug is HP SR number 8606223364.
16066 if test "$cross_compiling" = yes; then
16067 # Depending upon the size, compute the lo and hi bounds.
16068cat >conftest.$ac_ext <<_ACEOF
16069/* confdefs.h. */
16070_ACEOF
16071cat confdefs.h >>conftest.$ac_ext
16072cat >>conftest.$ac_ext <<_ACEOF
16073/* end confdefs.h. */
16074$ac_includes_default
16075int
16076main ()
16077{
16078static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
16079test_array [0] = 0
16080
16081 ;
16082 return 0;
16083}
16084_ACEOF
16085rm -f conftest.$ac_objext
16086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16087 (eval $ac_compile) 2>conftest.er1
a848cd7e 16088 ac_status=$?
ac1cb8d3
VS
16089 grep -v '^ *+' conftest.er1 >conftest.err
16090 rm -f conftest.er1
16091 cat conftest.err >&5
a848cd7e
SC
16092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16093 (exit $ac_status); } &&
ceec2216 16094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16096 (eval $ac_try) 2>&5
16097 ac_status=$?
16098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099 (exit $ac_status); }; } &&
16100 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16102 (eval $ac_try) 2>&5
16103 ac_status=$?
16104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105 (exit $ac_status); }; }; then
16106 ac_lo=0 ac_mid=0
16107 while :; do
16108 cat >conftest.$ac_ext <<_ACEOF
16109/* confdefs.h. */
16110_ACEOF
16111cat confdefs.h >>conftest.$ac_ext
16112cat >>conftest.$ac_ext <<_ACEOF
16113/* end confdefs.h. */
16114$ac_includes_default
16115int
16116main ()
16117{
16118static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16119test_array [0] = 0
16120
16121 ;
16122 return 0;
16123}
16124_ACEOF
16125rm -f conftest.$ac_objext
16126if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16127 (eval $ac_compile) 2>conftest.er1
a848cd7e 16128 ac_status=$?
ac1cb8d3
VS
16129 grep -v '^ *+' conftest.er1 >conftest.err
16130 rm -f conftest.er1
16131 cat conftest.err >&5
a848cd7e
SC
16132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133 (exit $ac_status); } &&
ceec2216 16134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16136 (eval $ac_try) 2>&5
16137 ac_status=$?
16138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16139 (exit $ac_status); }; } &&
16140 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16142 (eval $ac_try) 2>&5
16143 ac_status=$?
16144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16145 (exit $ac_status); }; }; then
16146 ac_hi=$ac_mid; break
16147else
16148 echo "$as_me: failed program was:" >&5
16149sed 's/^/| /' conftest.$ac_ext >&5
16150
16151ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16152 if test $ac_lo -le $ac_mid; then
16153 ac_lo= ac_hi=
16154 break
16155 fi
16156 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16157fi
ac1cb8d3 16158rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16159 done
16160else
16161 echo "$as_me: failed program was:" >&5
16162sed 's/^/| /' conftest.$ac_ext >&5
16163
16164cat >conftest.$ac_ext <<_ACEOF
16165/* confdefs.h. */
16166_ACEOF
16167cat confdefs.h >>conftest.$ac_ext
16168cat >>conftest.$ac_ext <<_ACEOF
16169/* end confdefs.h. */
16170$ac_includes_default
16171int
16172main ()
16173{
16174static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
16175test_array [0] = 0
16176
16177 ;
16178 return 0;
16179}
16180_ACEOF
16181rm -f conftest.$ac_objext
16182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16183 (eval $ac_compile) 2>conftest.er1
a848cd7e 16184 ac_status=$?
ac1cb8d3
VS
16185 grep -v '^ *+' conftest.er1 >conftest.err
16186 rm -f conftest.er1
16187 cat conftest.err >&5
a848cd7e
SC
16188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189 (exit $ac_status); } &&
ceec2216 16190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16192 (eval $ac_try) 2>&5
16193 ac_status=$?
16194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195 (exit $ac_status); }; } &&
16196 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16198 (eval $ac_try) 2>&5
16199 ac_status=$?
16200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16201 (exit $ac_status); }; }; then
16202 ac_hi=-1 ac_mid=-1
16203 while :; do
16204 cat >conftest.$ac_ext <<_ACEOF
16205/* confdefs.h. */
16206_ACEOF
16207cat confdefs.h >>conftest.$ac_ext
16208cat >>conftest.$ac_ext <<_ACEOF
16209/* end confdefs.h. */
16210$ac_includes_default
16211int
16212main ()
16213{
16214static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
16215test_array [0] = 0
16216
16217 ;
16218 return 0;
16219}
16220_ACEOF
16221rm -f conftest.$ac_objext
16222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16223 (eval $ac_compile) 2>conftest.er1
a848cd7e 16224 ac_status=$?
ac1cb8d3
VS
16225 grep -v '^ *+' conftest.er1 >conftest.err
16226 rm -f conftest.er1
16227 cat conftest.err >&5
a848cd7e
SC
16228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229 (exit $ac_status); } &&
ceec2216 16230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16232 (eval $ac_try) 2>&5
16233 ac_status=$?
16234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16235 (exit $ac_status); }; } &&
16236 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16238 (eval $ac_try) 2>&5
16239 ac_status=$?
16240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241 (exit $ac_status); }; }; then
16242 ac_lo=$ac_mid; break
16243else
16244 echo "$as_me: failed program was:" >&5
16245sed 's/^/| /' conftest.$ac_ext >&5
16246
16247ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16248 if test $ac_mid -le $ac_hi; then
16249 ac_lo= ac_hi=
16250 break
16251 fi
16252 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16253fi
ac1cb8d3 16254rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16255 done
16256else
16257 echo "$as_me: failed program was:" >&5
16258sed 's/^/| /' conftest.$ac_ext >&5
16259
16260ac_lo= ac_hi=
16261fi
ac1cb8d3 16262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16263fi
ac1cb8d3 16264rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16265# Binary search between lo and hi bounds.
16266while test "x$ac_lo" != "x$ac_hi"; do
16267 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16268 cat >conftest.$ac_ext <<_ACEOF
16269/* confdefs.h. */
16270_ACEOF
16271cat confdefs.h >>conftest.$ac_ext
16272cat >>conftest.$ac_ext <<_ACEOF
16273/* end confdefs.h. */
16274$ac_includes_default
16275int
16276main ()
16277{
16278static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16279test_array [0] = 0
16280
16281 ;
16282 return 0;
16283}
16284_ACEOF
16285rm -f conftest.$ac_objext
16286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16287 (eval $ac_compile) 2>conftest.er1
a848cd7e 16288 ac_status=$?
ac1cb8d3
VS
16289 grep -v '^ *+' conftest.er1 >conftest.err
16290 rm -f conftest.er1
16291 cat conftest.err >&5
a848cd7e
SC
16292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293 (exit $ac_status); } &&
ceec2216 16294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16296 (eval $ac_try) 2>&5
16297 ac_status=$?
16298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16299 (exit $ac_status); }; } &&
16300 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16302 (eval $ac_try) 2>&5
16303 ac_status=$?
16304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16305 (exit $ac_status); }; }; then
16306 ac_hi=$ac_mid
16307else
16308 echo "$as_me: failed program was:" >&5
16309sed 's/^/| /' conftest.$ac_ext >&5
16310
16311ac_lo=`expr '(' $ac_mid ')' + 1`
16312fi
ac1cb8d3 16313rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16314done
16315case $ac_lo in
16316?*) ac_cv_sizeof_long=$ac_lo;;
16317'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16318See \`config.log' for more details." >&5
16319echo "$as_me: error: cannot compute sizeof (long), 77
16320See \`config.log' for more details." >&2;}
16321 { (exit 1); exit 1; }; } ;;
16322esac
16323else
16324 if test "$cross_compiling" = yes; then
ceec2216
RL
16325 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16326echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16327 { (exit 1); exit 1; }; }
16328else
16329 cat >conftest.$ac_ext <<_ACEOF
16330/* confdefs.h. */
16331_ACEOF
16332cat confdefs.h >>conftest.$ac_ext
16333cat >>conftest.$ac_ext <<_ACEOF
16334/* end confdefs.h. */
16335$ac_includes_default
16336long longval () { return (long) (sizeof (long)); }
16337unsigned long ulongval () { return (long) (sizeof (long)); }
16338#include <stdio.h>
16339#include <stdlib.h>
16340int
16341main ()
16342{
16343
16344 FILE *f = fopen ("conftest.val", "w");
16345 if (! f)
16346 exit (1);
16347 if (((long) (sizeof (long))) < 0)
16348 {
16349 long i = longval ();
16350 if (i != ((long) (sizeof (long))))
16351 exit (1);
16352 fprintf (f, "%ld\n", i);
16353 }
16354 else
16355 {
16356 unsigned long i = ulongval ();
16357 if (i != ((long) (sizeof (long))))
16358 exit (1);
16359 fprintf (f, "%lu\n", i);
16360 }
16361 exit (ferror (f) || fclose (f) != 0);
16362
16363 ;
16364 return 0;
16365}
16366_ACEOF
16367rm -f conftest$ac_exeext
16368if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16369 (eval $ac_link) 2>&5
16370 ac_status=$?
16371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16372 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16374 (eval $ac_try) 2>&5
16375 ac_status=$?
16376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377 (exit $ac_status); }; }; then
16378 ac_cv_sizeof_long=`cat conftest.val`
16379else
16380 echo "$as_me: program exited with status $ac_status" >&5
16381echo "$as_me: failed program was:" >&5
16382sed 's/^/| /' conftest.$ac_ext >&5
16383
16384( exit $ac_status )
16385{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16386See \`config.log' for more details." >&5
16387echo "$as_me: error: cannot compute sizeof (long), 77
16388See \`config.log' for more details." >&2;}
16389 { (exit 1); exit 1; }; }
16390fi
ac1cb8d3 16391rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16392fi
16393fi
16394rm -f conftest.val
16395else
16396 ac_cv_sizeof_long=0
16397fi
16398fi
16399echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
16400echo "${ECHO_T}$ac_cv_sizeof_long" >&6
16401cat >>confdefs.h <<_ACEOF
16402#define SIZEOF_LONG $ac_cv_sizeof_long
16403_ACEOF
16404
16405
16406echo "$as_me:$LINENO: checking for size_t" >&5
16407echo $ECHO_N "checking for size_t... $ECHO_C" >&6
16408if test "${ac_cv_type_size_t+set}" = set; then
16409 echo $ECHO_N "(cached) $ECHO_C" >&6
16410else
16411 cat >conftest.$ac_ext <<_ACEOF
16412/* confdefs.h. */
16413_ACEOF
16414cat confdefs.h >>conftest.$ac_ext
16415cat >>conftest.$ac_ext <<_ACEOF
16416/* end confdefs.h. */
16417$ac_includes_default
16418int
16419main ()
16420{
16421if ((size_t *) 0)
16422 return 0;
16423if (sizeof (size_t))
16424 return 0;
16425 ;
16426 return 0;
16427}
16428_ACEOF
16429rm -f conftest.$ac_objext
16430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16431 (eval $ac_compile) 2>conftest.er1
a848cd7e 16432 ac_status=$?
ac1cb8d3
VS
16433 grep -v '^ *+' conftest.er1 >conftest.err
16434 rm -f conftest.er1
16435 cat conftest.err >&5
a848cd7e
SC
16436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437 (exit $ac_status); } &&
ceec2216 16438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16440 (eval $ac_try) 2>&5
16441 ac_status=$?
16442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443 (exit $ac_status); }; } &&
16444 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16446 (eval $ac_try) 2>&5
16447 ac_status=$?
16448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449 (exit $ac_status); }; }; then
16450 ac_cv_type_size_t=yes
16451else
16452 echo "$as_me: failed program was:" >&5
16453sed 's/^/| /' conftest.$ac_ext >&5
16454
16455ac_cv_type_size_t=no
16456fi
ac1cb8d3 16457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16458fi
16459echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16460echo "${ECHO_T}$ac_cv_type_size_t" >&6
16461
16462echo "$as_me:$LINENO: checking size of size_t" >&5
16463echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
16464if test "${ac_cv_sizeof_size_t+set}" = set; then
16465 echo $ECHO_N "(cached) $ECHO_C" >&6
16466else
16467 if test "$ac_cv_type_size_t" = yes; then
16468 # The cast to unsigned long works around a bug in the HP C Compiler
16469 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16470 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16471 # This bug is HP SR number 8606223364.
16472 if test "$cross_compiling" = yes; then
16473 # Depending upon the size, compute the lo and hi bounds.
16474cat >conftest.$ac_ext <<_ACEOF
16475/* confdefs.h. */
16476_ACEOF
16477cat confdefs.h >>conftest.$ac_ext
16478cat >>conftest.$ac_ext <<_ACEOF
16479/* end confdefs.h. */
16480$ac_includes_default
16481int
16482main ()
16483{
16484static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
16485test_array [0] = 0
16486
16487 ;
16488 return 0;
16489}
16490_ACEOF
16491rm -f conftest.$ac_objext
16492if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16493 (eval $ac_compile) 2>conftest.er1
a848cd7e 16494 ac_status=$?
ac1cb8d3
VS
16495 grep -v '^ *+' conftest.er1 >conftest.err
16496 rm -f conftest.er1
16497 cat conftest.err >&5
a848cd7e
SC
16498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16499 (exit $ac_status); } &&
ceec2216 16500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16502 (eval $ac_try) 2>&5
16503 ac_status=$?
16504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505 (exit $ac_status); }; } &&
16506 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16508 (eval $ac_try) 2>&5
16509 ac_status=$?
16510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16511 (exit $ac_status); }; }; then
16512 ac_lo=0 ac_mid=0
16513 while :; do
16514 cat >conftest.$ac_ext <<_ACEOF
16515/* confdefs.h. */
16516_ACEOF
16517cat confdefs.h >>conftest.$ac_ext
16518cat >>conftest.$ac_ext <<_ACEOF
16519/* end confdefs.h. */
16520$ac_includes_default
16521int
16522main ()
16523{
16524static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16525test_array [0] = 0
16526
16527 ;
16528 return 0;
16529}
16530_ACEOF
16531rm -f conftest.$ac_objext
16532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16533 (eval $ac_compile) 2>conftest.er1
a848cd7e 16534 ac_status=$?
ac1cb8d3
VS
16535 grep -v '^ *+' conftest.er1 >conftest.err
16536 rm -f conftest.er1
16537 cat conftest.err >&5
a848cd7e
SC
16538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16539 (exit $ac_status); } &&
ceec2216 16540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16542 (eval $ac_try) 2>&5
16543 ac_status=$?
16544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16545 (exit $ac_status); }; } &&
16546 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16548 (eval $ac_try) 2>&5
16549 ac_status=$?
16550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16551 (exit $ac_status); }; }; then
16552 ac_hi=$ac_mid; break
16553else
16554 echo "$as_me: failed program was:" >&5
16555sed 's/^/| /' conftest.$ac_ext >&5
16556
16557ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16558 if test $ac_lo -le $ac_mid; then
16559 ac_lo= ac_hi=
16560 break
16561 fi
16562 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16563fi
ac1cb8d3 16564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16565 done
16566else
16567 echo "$as_me: failed program was:" >&5
16568sed 's/^/| /' conftest.$ac_ext >&5
16569
16570cat >conftest.$ac_ext <<_ACEOF
16571/* confdefs.h. */
16572_ACEOF
16573cat confdefs.h >>conftest.$ac_ext
16574cat >>conftest.$ac_ext <<_ACEOF
16575/* end confdefs.h. */
16576$ac_includes_default
16577int
16578main ()
16579{
16580static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
16581test_array [0] = 0
16582
16583 ;
16584 return 0;
16585}
16586_ACEOF
16587rm -f conftest.$ac_objext
16588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16589 (eval $ac_compile) 2>conftest.er1
a848cd7e 16590 ac_status=$?
ac1cb8d3
VS
16591 grep -v '^ *+' conftest.er1 >conftest.err
16592 rm -f conftest.er1
16593 cat conftest.err >&5
a848cd7e
SC
16594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595 (exit $ac_status); } &&
ceec2216 16596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16598 (eval $ac_try) 2>&5
16599 ac_status=$?
16600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16601 (exit $ac_status); }; } &&
16602 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16604 (eval $ac_try) 2>&5
16605 ac_status=$?
16606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607 (exit $ac_status); }; }; then
16608 ac_hi=-1 ac_mid=-1
16609 while :; do
16610 cat >conftest.$ac_ext <<_ACEOF
16611/* confdefs.h. */
16612_ACEOF
16613cat confdefs.h >>conftest.$ac_ext
16614cat >>conftest.$ac_ext <<_ACEOF
16615/* end confdefs.h. */
16616$ac_includes_default
16617int
16618main ()
16619{
16620static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
16621test_array [0] = 0
16622
16623 ;
16624 return 0;
16625}
16626_ACEOF
16627rm -f conftest.$ac_objext
16628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16629 (eval $ac_compile) 2>conftest.er1
a848cd7e 16630 ac_status=$?
ac1cb8d3
VS
16631 grep -v '^ *+' conftest.er1 >conftest.err
16632 rm -f conftest.er1
16633 cat conftest.err >&5
a848cd7e
SC
16634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16635 (exit $ac_status); } &&
ceec2216 16636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16638 (eval $ac_try) 2>&5
16639 ac_status=$?
16640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16641 (exit $ac_status); }; } &&
16642 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16644 (eval $ac_try) 2>&5
16645 ac_status=$?
16646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647 (exit $ac_status); }; }; then
16648 ac_lo=$ac_mid; break
16649else
16650 echo "$as_me: failed program was:" >&5
16651sed 's/^/| /' conftest.$ac_ext >&5
16652
16653ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16654 if test $ac_mid -le $ac_hi; then
16655 ac_lo= ac_hi=
16656 break
16657 fi
16658 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16659fi
ac1cb8d3 16660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16661 done
16662else
16663 echo "$as_me: failed program was:" >&5
16664sed 's/^/| /' conftest.$ac_ext >&5
16665
16666ac_lo= ac_hi=
16667fi
ac1cb8d3 16668rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16669fi
ac1cb8d3 16670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16671# Binary search between lo and hi bounds.
16672while test "x$ac_lo" != "x$ac_hi"; do
16673 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16674 cat >conftest.$ac_ext <<_ACEOF
16675/* confdefs.h. */
16676_ACEOF
16677cat confdefs.h >>conftest.$ac_ext
16678cat >>conftest.$ac_ext <<_ACEOF
16679/* end confdefs.h. */
16680$ac_includes_default
16681int
16682main ()
16683{
16684static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16685test_array [0] = 0
16686
16687 ;
16688 return 0;
16689}
16690_ACEOF
16691rm -f conftest.$ac_objext
16692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16693 (eval $ac_compile) 2>conftest.er1
a848cd7e 16694 ac_status=$?
ac1cb8d3
VS
16695 grep -v '^ *+' conftest.er1 >conftest.err
16696 rm -f conftest.er1
16697 cat conftest.err >&5
a848cd7e
SC
16698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16699 (exit $ac_status); } &&
ceec2216 16700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16702 (eval $ac_try) 2>&5
16703 ac_status=$?
16704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705 (exit $ac_status); }; } &&
16706 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16708 (eval $ac_try) 2>&5
16709 ac_status=$?
16710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16711 (exit $ac_status); }; }; then
16712 ac_hi=$ac_mid
16713else
16714 echo "$as_me: failed program was:" >&5
16715sed 's/^/| /' conftest.$ac_ext >&5
16716
16717ac_lo=`expr '(' $ac_mid ')' + 1`
16718fi
ac1cb8d3 16719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16720done
16721case $ac_lo in
16722?*) ac_cv_sizeof_size_t=$ac_lo;;
16723'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16724See \`config.log' for more details." >&5
16725echo "$as_me: error: cannot compute sizeof (size_t), 77
16726See \`config.log' for more details." >&2;}
16727 { (exit 1); exit 1; }; } ;;
16728esac
16729else
16730 if test "$cross_compiling" = yes; then
ceec2216
RL
16731 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16732echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16733 { (exit 1); exit 1; }; }
16734else
16735 cat >conftest.$ac_ext <<_ACEOF
16736/* confdefs.h. */
16737_ACEOF
16738cat confdefs.h >>conftest.$ac_ext
16739cat >>conftest.$ac_ext <<_ACEOF
16740/* end confdefs.h. */
16741$ac_includes_default
16742long longval () { return (long) (sizeof (size_t)); }
16743unsigned long ulongval () { return (long) (sizeof (size_t)); }
16744#include <stdio.h>
16745#include <stdlib.h>
16746int
16747main ()
16748{
16749
16750 FILE *f = fopen ("conftest.val", "w");
16751 if (! f)
16752 exit (1);
16753 if (((long) (sizeof (size_t))) < 0)
16754 {
16755 long i = longval ();
16756 if (i != ((long) (sizeof (size_t))))
16757 exit (1);
16758 fprintf (f, "%ld\n", i);
16759 }
16760 else
16761 {
16762 unsigned long i = ulongval ();
16763 if (i != ((long) (sizeof (size_t))))
16764 exit (1);
16765 fprintf (f, "%lu\n", i);
16766 }
16767 exit (ferror (f) || fclose (f) != 0);
16768
16769 ;
16770 return 0;
16771}
16772_ACEOF
16773rm -f conftest$ac_exeext
16774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16775 (eval $ac_link) 2>&5
16776 ac_status=$?
16777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16780 (eval $ac_try) 2>&5
16781 ac_status=$?
16782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783 (exit $ac_status); }; }; then
16784 ac_cv_sizeof_size_t=`cat conftest.val`
16785else
16786 echo "$as_me: program exited with status $ac_status" >&5
16787echo "$as_me: failed program was:" >&5
16788sed 's/^/| /' conftest.$ac_ext >&5
16789
16790( exit $ac_status )
16791{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16792See \`config.log' for more details." >&5
16793echo "$as_me: error: cannot compute sizeof (size_t), 77
16794See \`config.log' for more details." >&2;}
16795 { (exit 1); exit 1; }; }
16796fi
ac1cb8d3 16797rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16798fi
16799fi
16800rm -f conftest.val
16801else
16802 ac_cv_sizeof_size_t=0
16803fi
16804fi
16805echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
16806echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
16807cat >>confdefs.h <<_ACEOF
16808#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
16809_ACEOF
16810
16811
16812
16813case "${host}" in
16814 arm-*-linux* )
16815 echo "$as_me:$LINENO: checking for long long" >&5
16816echo $ECHO_N "checking for long long... $ECHO_C" >&6
16817if test "${ac_cv_type_long_long+set}" = set; then
16818 echo $ECHO_N "(cached) $ECHO_C" >&6
16819else
16820 cat >conftest.$ac_ext <<_ACEOF
16821/* confdefs.h. */
16822_ACEOF
16823cat confdefs.h >>conftest.$ac_ext
16824cat >>conftest.$ac_ext <<_ACEOF
16825/* end confdefs.h. */
16826$ac_includes_default
16827int
16828main ()
16829{
16830if ((long long *) 0)
16831 return 0;
16832if (sizeof (long long))
16833 return 0;
16834 ;
16835 return 0;
16836}
16837_ACEOF
16838rm -f conftest.$ac_objext
16839if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16840 (eval $ac_compile) 2>conftest.er1
a848cd7e 16841 ac_status=$?
ac1cb8d3
VS
16842 grep -v '^ *+' conftest.er1 >conftest.err
16843 rm -f conftest.er1
16844 cat conftest.err >&5
a848cd7e
SC
16845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16846 (exit $ac_status); } &&
ceec2216 16847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16849 (eval $ac_try) 2>&5
16850 ac_status=$?
16851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852 (exit $ac_status); }; } &&
16853 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16855 (eval $ac_try) 2>&5
16856 ac_status=$?
16857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858 (exit $ac_status); }; }; then
16859 ac_cv_type_long_long=yes
16860else
16861 echo "$as_me: failed program was:" >&5
16862sed 's/^/| /' conftest.$ac_ext >&5
16863
16864ac_cv_type_long_long=no
16865fi
ac1cb8d3 16866rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16867fi
16868echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16869echo "${ECHO_T}$ac_cv_type_long_long" >&6
16870
16871echo "$as_me:$LINENO: checking size of long long" >&5
16872echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16873if test "${ac_cv_sizeof_long_long+set}" = set; then
16874 echo $ECHO_N "(cached) $ECHO_C" >&6
16875else
16876 if test "$ac_cv_type_long_long" = yes; then
16877 # The cast to unsigned long works around a bug in the HP C Compiler
16878 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16879 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16880 # This bug is HP SR number 8606223364.
16881 if test "$cross_compiling" = yes; then
16882 # Depending upon the size, compute the lo and hi bounds.
16883cat >conftest.$ac_ext <<_ACEOF
16884/* confdefs.h. */
16885_ACEOF
16886cat confdefs.h >>conftest.$ac_ext
16887cat >>conftest.$ac_ext <<_ACEOF
16888/* end confdefs.h. */
16889$ac_includes_default
16890int
16891main ()
16892{
16893static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16894test_array [0] = 0
16895
16896 ;
16897 return 0;
16898}
16899_ACEOF
16900rm -f conftest.$ac_objext
16901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16902 (eval $ac_compile) 2>conftest.er1
a848cd7e 16903 ac_status=$?
ac1cb8d3
VS
16904 grep -v '^ *+' conftest.er1 >conftest.err
16905 rm -f conftest.er1
16906 cat conftest.err >&5
a848cd7e
SC
16907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16908 (exit $ac_status); } &&
ceec2216 16909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16911 (eval $ac_try) 2>&5
16912 ac_status=$?
16913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16914 (exit $ac_status); }; } &&
16915 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16917 (eval $ac_try) 2>&5
16918 ac_status=$?
16919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920 (exit $ac_status); }; }; then
16921 ac_lo=0 ac_mid=0
16922 while :; do
16923 cat >conftest.$ac_ext <<_ACEOF
16924/* confdefs.h. */
16925_ACEOF
16926cat confdefs.h >>conftest.$ac_ext
16927cat >>conftest.$ac_ext <<_ACEOF
16928/* end confdefs.h. */
16929$ac_includes_default
16930int
16931main ()
16932{
16933static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16934test_array [0] = 0
16935
16936 ;
16937 return 0;
16938}
16939_ACEOF
16940rm -f conftest.$ac_objext
16941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16942 (eval $ac_compile) 2>conftest.er1
a848cd7e 16943 ac_status=$?
ac1cb8d3
VS
16944 grep -v '^ *+' conftest.er1 >conftest.err
16945 rm -f conftest.er1
16946 cat conftest.err >&5
a848cd7e
SC
16947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948 (exit $ac_status); } &&
ceec2216 16949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16951 (eval $ac_try) 2>&5
16952 ac_status=$?
16953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954 (exit $ac_status); }; } &&
16955 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16957 (eval $ac_try) 2>&5
16958 ac_status=$?
16959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960 (exit $ac_status); }; }; then
16961 ac_hi=$ac_mid; break
16962else
16963 echo "$as_me: failed program was:" >&5
16964sed 's/^/| /' conftest.$ac_ext >&5
16965
16966ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16967 if test $ac_lo -le $ac_mid; then
16968 ac_lo= ac_hi=
16969 break
16970 fi
16971 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16972fi
ac1cb8d3 16973rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16974 done
16975else
16976 echo "$as_me: failed program was:" >&5
16977sed 's/^/| /' conftest.$ac_ext >&5
16978
16979cat >conftest.$ac_ext <<_ACEOF
16980/* confdefs.h. */
16981_ACEOF
16982cat confdefs.h >>conftest.$ac_ext
16983cat >>conftest.$ac_ext <<_ACEOF
16984/* end confdefs.h. */
16985$ac_includes_default
16986int
16987main ()
16988{
16989static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16990test_array [0] = 0
16991
16992 ;
16993 return 0;
16994}
16995_ACEOF
16996rm -f conftest.$ac_objext
16997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16998 (eval $ac_compile) 2>conftest.er1
a848cd7e 16999 ac_status=$?
ac1cb8d3
VS
17000 grep -v '^ *+' conftest.er1 >conftest.err
17001 rm -f conftest.er1
17002 cat conftest.err >&5
a848cd7e
SC
17003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004 (exit $ac_status); } &&
ceec2216 17005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17007 (eval $ac_try) 2>&5
17008 ac_status=$?
17009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17010 (exit $ac_status); }; } &&
17011 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17013 (eval $ac_try) 2>&5
17014 ac_status=$?
17015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016 (exit $ac_status); }; }; then
17017 ac_hi=-1 ac_mid=-1
17018 while :; do
17019 cat >conftest.$ac_ext <<_ACEOF
17020/* confdefs.h. */
17021_ACEOF
17022cat confdefs.h >>conftest.$ac_ext
17023cat >>conftest.$ac_ext <<_ACEOF
17024/* end confdefs.h. */
17025$ac_includes_default
17026int
17027main ()
17028{
17029static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17030test_array [0] = 0
17031
17032 ;
17033 return 0;
17034}
17035_ACEOF
17036rm -f conftest.$ac_objext
17037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17038 (eval $ac_compile) 2>conftest.er1
a848cd7e 17039 ac_status=$?
ac1cb8d3
VS
17040 grep -v '^ *+' conftest.er1 >conftest.err
17041 rm -f conftest.er1
17042 cat conftest.err >&5
a848cd7e
SC
17043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044 (exit $ac_status); } &&
ceec2216 17045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17047 (eval $ac_try) 2>&5
17048 ac_status=$?
17049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17050 (exit $ac_status); }; } &&
17051 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17053 (eval $ac_try) 2>&5
17054 ac_status=$?
17055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056 (exit $ac_status); }; }; then
17057 ac_lo=$ac_mid; break
17058else
17059 echo "$as_me: failed program was:" >&5
17060sed 's/^/| /' conftest.$ac_ext >&5
17061
17062ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17063 if test $ac_mid -le $ac_hi; then
17064 ac_lo= ac_hi=
17065 break
17066 fi
17067 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17068fi
ac1cb8d3 17069rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17070 done
17071else
17072 echo "$as_me: failed program was:" >&5
17073sed 's/^/| /' conftest.$ac_ext >&5
17074
17075ac_lo= ac_hi=
17076fi
ac1cb8d3 17077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17078fi
ac1cb8d3 17079rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17080# Binary search between lo and hi bounds.
17081while test "x$ac_lo" != "x$ac_hi"; do
17082 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17083 cat >conftest.$ac_ext <<_ACEOF
17084/* confdefs.h. */
17085_ACEOF
17086cat confdefs.h >>conftest.$ac_ext
17087cat >>conftest.$ac_ext <<_ACEOF
17088/* end confdefs.h. */
17089$ac_includes_default
17090int
17091main ()
17092{
17093static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17094test_array [0] = 0
17095
17096 ;
17097 return 0;
17098}
17099_ACEOF
17100rm -f conftest.$ac_objext
17101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17102 (eval $ac_compile) 2>conftest.er1
a848cd7e 17103 ac_status=$?
ac1cb8d3
VS
17104 grep -v '^ *+' conftest.er1 >conftest.err
17105 rm -f conftest.er1
17106 cat conftest.err >&5
a848cd7e
SC
17107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17108 (exit $ac_status); } &&
ceec2216 17109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17111 (eval $ac_try) 2>&5
17112 ac_status=$?
17113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17114 (exit $ac_status); }; } &&
17115 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17117 (eval $ac_try) 2>&5
17118 ac_status=$?
17119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17120 (exit $ac_status); }; }; then
17121 ac_hi=$ac_mid
17122else
17123 echo "$as_me: failed program was:" >&5
17124sed 's/^/| /' conftest.$ac_ext >&5
17125
17126ac_lo=`expr '(' $ac_mid ')' + 1`
17127fi
ac1cb8d3 17128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17129done
17130case $ac_lo in
17131?*) ac_cv_sizeof_long_long=$ac_lo;;
17132'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17133See \`config.log' for more details." >&5
17134echo "$as_me: error: cannot compute sizeof (long long), 77
17135See \`config.log' for more details." >&2;}
17136 { (exit 1); exit 1; }; } ;;
17137esac
17138else
17139 if test "$cross_compiling" = yes; then
ceec2216
RL
17140 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17141echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17142 { (exit 1); exit 1; }; }
17143else
17144 cat >conftest.$ac_ext <<_ACEOF
17145/* confdefs.h. */
17146_ACEOF
17147cat confdefs.h >>conftest.$ac_ext
17148cat >>conftest.$ac_ext <<_ACEOF
17149/* end confdefs.h. */
17150$ac_includes_default
17151long longval () { return (long) (sizeof (long long)); }
17152unsigned long ulongval () { return (long) (sizeof (long long)); }
17153#include <stdio.h>
17154#include <stdlib.h>
17155int
17156main ()
17157{
17158
17159 FILE *f = fopen ("conftest.val", "w");
17160 if (! f)
17161 exit (1);
17162 if (((long) (sizeof (long long))) < 0)
17163 {
17164 long i = longval ();
17165 if (i != ((long) (sizeof (long long))))
17166 exit (1);
17167 fprintf (f, "%ld\n", i);
17168 }
17169 else
17170 {
17171 unsigned long i = ulongval ();
17172 if (i != ((long) (sizeof (long long))))
17173 exit (1);
17174 fprintf (f, "%lu\n", i);
17175 }
17176 exit (ferror (f) || fclose (f) != 0);
17177
17178 ;
17179 return 0;
17180}
17181_ACEOF
17182rm -f conftest$ac_exeext
17183if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17184 (eval $ac_link) 2>&5
17185 ac_status=$?
17186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17187 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17189 (eval $ac_try) 2>&5
17190 ac_status=$?
17191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17192 (exit $ac_status); }; }; then
17193 ac_cv_sizeof_long_long=`cat conftest.val`
17194else
17195 echo "$as_me: program exited with status $ac_status" >&5
17196echo "$as_me: failed program was:" >&5
17197sed 's/^/| /' conftest.$ac_ext >&5
17198
17199( exit $ac_status )
17200{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17201See \`config.log' for more details." >&5
17202echo "$as_me: error: cannot compute sizeof (long long), 77
17203See \`config.log' for more details." >&2;}
17204 { (exit 1); exit 1; }; }
17205fi
ac1cb8d3 17206rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17207fi
17208fi
17209rm -f conftest.val
17210else
17211 ac_cv_sizeof_long_long=0
17212fi
17213fi
17214echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17215echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17216cat >>confdefs.h <<_ACEOF
17217#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17218_ACEOF
17219
17220
17221 ;;
17222 *-hp-hpux* )
17223 echo "$as_me:$LINENO: checking for long long" >&5
17224echo $ECHO_N "checking for long long... $ECHO_C" >&6
17225if test "${ac_cv_type_long_long+set}" = set; then
17226 echo $ECHO_N "(cached) $ECHO_C" >&6
17227else
17228 cat >conftest.$ac_ext <<_ACEOF
17229/* confdefs.h. */
17230_ACEOF
17231cat confdefs.h >>conftest.$ac_ext
17232cat >>conftest.$ac_ext <<_ACEOF
17233/* end confdefs.h. */
17234$ac_includes_default
17235int
17236main ()
17237{
17238if ((long long *) 0)
17239 return 0;
17240if (sizeof (long long))
17241 return 0;
17242 ;
17243 return 0;
17244}
17245_ACEOF
17246rm -f conftest.$ac_objext
17247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17248 (eval $ac_compile) 2>conftest.er1
a848cd7e 17249 ac_status=$?
ac1cb8d3
VS
17250 grep -v '^ *+' conftest.er1 >conftest.err
17251 rm -f conftest.er1
17252 cat conftest.err >&5
a848cd7e
SC
17253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254 (exit $ac_status); } &&
ceec2216 17255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17257 (eval $ac_try) 2>&5
17258 ac_status=$?
17259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260 (exit $ac_status); }; } &&
17261 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17263 (eval $ac_try) 2>&5
17264 ac_status=$?
17265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266 (exit $ac_status); }; }; then
17267 ac_cv_type_long_long=yes
17268else
17269 echo "$as_me: failed program was:" >&5
17270sed 's/^/| /' conftest.$ac_ext >&5
17271
17272ac_cv_type_long_long=no
17273fi
ac1cb8d3 17274rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17275fi
17276echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17277echo "${ECHO_T}$ac_cv_type_long_long" >&6
17278
17279echo "$as_me:$LINENO: checking size of long long" >&5
17280echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17281if test "${ac_cv_sizeof_long_long+set}" = set; then
17282 echo $ECHO_N "(cached) $ECHO_C" >&6
17283else
17284 if test "$ac_cv_type_long_long" = yes; then
17285 # The cast to unsigned long works around a bug in the HP C Compiler
17286 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17287 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17288 # This bug is HP SR number 8606223364.
17289 if test "$cross_compiling" = yes; then
17290 # Depending upon the size, compute the lo and hi bounds.
17291cat >conftest.$ac_ext <<_ACEOF
17292/* confdefs.h. */
17293_ACEOF
17294cat confdefs.h >>conftest.$ac_ext
17295cat >>conftest.$ac_ext <<_ACEOF
17296/* end confdefs.h. */
17297$ac_includes_default
17298int
17299main ()
17300{
17301static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17302test_array [0] = 0
17303
17304 ;
17305 return 0;
17306}
17307_ACEOF
17308rm -f conftest.$ac_objext
17309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17310 (eval $ac_compile) 2>conftest.er1
a848cd7e 17311 ac_status=$?
ac1cb8d3
VS
17312 grep -v '^ *+' conftest.er1 >conftest.err
17313 rm -f conftest.er1
17314 cat conftest.err >&5
a848cd7e
SC
17315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316 (exit $ac_status); } &&
ceec2216 17317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17319 (eval $ac_try) 2>&5
17320 ac_status=$?
17321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322 (exit $ac_status); }; } &&
17323 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17325 (eval $ac_try) 2>&5
17326 ac_status=$?
17327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328 (exit $ac_status); }; }; then
17329 ac_lo=0 ac_mid=0
17330 while :; do
17331 cat >conftest.$ac_ext <<_ACEOF
17332/* confdefs.h. */
17333_ACEOF
17334cat confdefs.h >>conftest.$ac_ext
17335cat >>conftest.$ac_ext <<_ACEOF
17336/* end confdefs.h. */
17337$ac_includes_default
17338int
17339main ()
17340{
17341static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17342test_array [0] = 0
17343
17344 ;
17345 return 0;
17346}
17347_ACEOF
17348rm -f conftest.$ac_objext
17349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17350 (eval $ac_compile) 2>conftest.er1
a848cd7e 17351 ac_status=$?
ac1cb8d3
VS
17352 grep -v '^ *+' conftest.er1 >conftest.err
17353 rm -f conftest.er1
17354 cat conftest.err >&5
a848cd7e
SC
17355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356 (exit $ac_status); } &&
ceec2216 17357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17359 (eval $ac_try) 2>&5
17360 ac_status=$?
17361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17362 (exit $ac_status); }; } &&
17363 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17365 (eval $ac_try) 2>&5
17366 ac_status=$?
17367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17368 (exit $ac_status); }; }; then
17369 ac_hi=$ac_mid; break
17370else
17371 echo "$as_me: failed program was:" >&5
17372sed 's/^/| /' conftest.$ac_ext >&5
17373
17374ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17375 if test $ac_lo -le $ac_mid; then
17376 ac_lo= ac_hi=
17377 break
17378 fi
17379 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17380fi
ac1cb8d3 17381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17382 done
17383else
17384 echo "$as_me: failed program was:" >&5
17385sed 's/^/| /' conftest.$ac_ext >&5
17386
17387cat >conftest.$ac_ext <<_ACEOF
17388/* confdefs.h. */
17389_ACEOF
17390cat confdefs.h >>conftest.$ac_ext
17391cat >>conftest.$ac_ext <<_ACEOF
17392/* end confdefs.h. */
17393$ac_includes_default
17394int
17395main ()
17396{
17397static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17398test_array [0] = 0
17399
17400 ;
17401 return 0;
17402}
17403_ACEOF
17404rm -f conftest.$ac_objext
17405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17406 (eval $ac_compile) 2>conftest.er1
a848cd7e 17407 ac_status=$?
ac1cb8d3
VS
17408 grep -v '^ *+' conftest.er1 >conftest.err
17409 rm -f conftest.er1
17410 cat conftest.err >&5
a848cd7e
SC
17411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17412 (exit $ac_status); } &&
ceec2216 17413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17415 (eval $ac_try) 2>&5
17416 ac_status=$?
17417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17418 (exit $ac_status); }; } &&
17419 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17421 (eval $ac_try) 2>&5
17422 ac_status=$?
17423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424 (exit $ac_status); }; }; then
17425 ac_hi=-1 ac_mid=-1
17426 while :; do
17427 cat >conftest.$ac_ext <<_ACEOF
17428/* confdefs.h. */
17429_ACEOF
17430cat confdefs.h >>conftest.$ac_ext
17431cat >>conftest.$ac_ext <<_ACEOF
17432/* end confdefs.h. */
17433$ac_includes_default
17434int
17435main ()
17436{
17437static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17438test_array [0] = 0
17439
17440 ;
17441 return 0;
17442}
17443_ACEOF
17444rm -f conftest.$ac_objext
17445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17446 (eval $ac_compile) 2>conftest.er1
a848cd7e 17447 ac_status=$?
ac1cb8d3
VS
17448 grep -v '^ *+' conftest.er1 >conftest.err
17449 rm -f conftest.er1
17450 cat conftest.err >&5
a848cd7e
SC
17451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452 (exit $ac_status); } &&
ceec2216 17453 { ac_try='test -z "$ac_c_werror_flag" || 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); } &&
ceec2216 17517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17519 (eval $ac_try) 2>&5
17520 ac_status=$?
17521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17522 (exit $ac_status); }; } &&
17523 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17525 (eval $ac_try) 2>&5
17526 ac_status=$?
17527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17528 (exit $ac_status); }; }; then
17529 ac_hi=$ac_mid
17530else
17531 echo "$as_me: failed program was:" >&5
17532sed 's/^/| /' conftest.$ac_ext >&5
17533
17534ac_lo=`expr '(' $ac_mid ')' + 1`
17535fi
ac1cb8d3 17536rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17537done
17538case $ac_lo in
17539?*) ac_cv_sizeof_long_long=$ac_lo;;
17540'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17541See \`config.log' for more details." >&5
17542echo "$as_me: error: cannot compute sizeof (long long), 77
17543See \`config.log' for more details." >&2;}
17544 { (exit 1); exit 1; }; } ;;
17545esac
17546else
17547 if test "$cross_compiling" = yes; then
ceec2216
RL
17548 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17549echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17550 { (exit 1); exit 1; }; }
17551else
17552 cat >conftest.$ac_ext <<_ACEOF
17553/* confdefs.h. */
17554_ACEOF
17555cat confdefs.h >>conftest.$ac_ext
17556cat >>conftest.$ac_ext <<_ACEOF
17557/* end confdefs.h. */
17558$ac_includes_default
17559long longval () { return (long) (sizeof (long long)); }
17560unsigned long ulongval () { return (long) (sizeof (long long)); }
17561#include <stdio.h>
17562#include <stdlib.h>
17563int
17564main ()
17565{
17566
17567 FILE *f = fopen ("conftest.val", "w");
17568 if (! f)
17569 exit (1);
17570 if (((long) (sizeof (long long))) < 0)
17571 {
17572 long i = longval ();
17573 if (i != ((long) (sizeof (long long))))
17574 exit (1);
17575 fprintf (f, "%ld\n", i);
17576 }
17577 else
17578 {
17579 unsigned long i = ulongval ();
17580 if (i != ((long) (sizeof (long long))))
17581 exit (1);
17582 fprintf (f, "%lu\n", i);
17583 }
17584 exit (ferror (f) || fclose (f) != 0);
17585
17586 ;
17587 return 0;
17588}
17589_ACEOF
17590rm -f conftest$ac_exeext
17591if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17592 (eval $ac_link) 2>&5
17593 ac_status=$?
17594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17595 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17597 (eval $ac_try) 2>&5
17598 ac_status=$?
17599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600 (exit $ac_status); }; }; then
17601 ac_cv_sizeof_long_long=`cat conftest.val`
17602else
17603 echo "$as_me: program exited with status $ac_status" >&5
17604echo "$as_me: failed program was:" >&5
17605sed 's/^/| /' conftest.$ac_ext >&5
17606
17607( exit $ac_status )
17608{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17609See \`config.log' for more details." >&5
17610echo "$as_me: error: cannot compute sizeof (long long), 77
17611See \`config.log' for more details." >&2;}
17612 { (exit 1); exit 1; }; }
17613fi
ac1cb8d3 17614rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17615fi
17616fi
17617rm -f conftest.val
17618else
17619 ac_cv_sizeof_long_long=0
17620fi
17621fi
17622echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17623echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17624cat >>confdefs.h <<_ACEOF
17625#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17626_ACEOF
17627
17628
17629 if test "$ac_cv_sizeof_long_long" != "0"; then
17630 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
17631 fi
17632 ;;
17633 * )
17634 echo "$as_me:$LINENO: checking for long long" >&5
17635echo $ECHO_N "checking for long long... $ECHO_C" >&6
17636if test "${ac_cv_type_long_long+set}" = set; then
17637 echo $ECHO_N "(cached) $ECHO_C" >&6
17638else
17639 cat >conftest.$ac_ext <<_ACEOF
17640/* confdefs.h. */
17641_ACEOF
17642cat confdefs.h >>conftest.$ac_ext
17643cat >>conftest.$ac_ext <<_ACEOF
17644/* end confdefs.h. */
17645$ac_includes_default
17646int
17647main ()
17648{
17649if ((long long *) 0)
17650 return 0;
17651if (sizeof (long long))
17652 return 0;
17653 ;
17654 return 0;
17655}
17656_ACEOF
17657rm -f conftest.$ac_objext
17658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17659 (eval $ac_compile) 2>conftest.er1
a848cd7e 17660 ac_status=$?
ac1cb8d3
VS
17661 grep -v '^ *+' conftest.er1 >conftest.err
17662 rm -f conftest.er1
17663 cat conftest.err >&5
a848cd7e
SC
17664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665 (exit $ac_status); } &&
ceec2216 17666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17668 (eval $ac_try) 2>&5
17669 ac_status=$?
17670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671 (exit $ac_status); }; } &&
17672 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17674 (eval $ac_try) 2>&5
17675 ac_status=$?
17676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17677 (exit $ac_status); }; }; then
17678 ac_cv_type_long_long=yes
17679else
17680 echo "$as_me: failed program was:" >&5
17681sed 's/^/| /' conftest.$ac_ext >&5
17682
17683ac_cv_type_long_long=no
17684fi
ac1cb8d3 17685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17686fi
17687echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17688echo "${ECHO_T}$ac_cv_type_long_long" >&6
17689
17690echo "$as_me:$LINENO: checking size of long long" >&5
17691echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17692if test "${ac_cv_sizeof_long_long+set}" = set; then
17693 echo $ECHO_N "(cached) $ECHO_C" >&6
17694else
17695 if test "$ac_cv_type_long_long" = yes; then
17696 # The cast to unsigned long works around a bug in the HP C Compiler
17697 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17698 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17699 # This bug is HP SR number 8606223364.
17700 if test "$cross_compiling" = yes; then
17701 # Depending upon the size, compute the lo and hi bounds.
17702cat >conftest.$ac_ext <<_ACEOF
17703/* confdefs.h. */
17704_ACEOF
17705cat confdefs.h >>conftest.$ac_ext
17706cat >>conftest.$ac_ext <<_ACEOF
17707/* end confdefs.h. */
17708$ac_includes_default
17709int
17710main ()
17711{
17712static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17713test_array [0] = 0
17714
17715 ;
17716 return 0;
17717}
17718_ACEOF
17719rm -f conftest.$ac_objext
17720if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17721 (eval $ac_compile) 2>conftest.er1
a848cd7e 17722 ac_status=$?
ac1cb8d3
VS
17723 grep -v '^ *+' conftest.er1 >conftest.err
17724 rm -f conftest.er1
17725 cat conftest.err >&5
a848cd7e
SC
17726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727 (exit $ac_status); } &&
ceec2216 17728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17730 (eval $ac_try) 2>&5
17731 ac_status=$?
17732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733 (exit $ac_status); }; } &&
17734 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17736 (eval $ac_try) 2>&5
17737 ac_status=$?
17738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17739 (exit $ac_status); }; }; then
17740 ac_lo=0 ac_mid=0
17741 while :; do
17742 cat >conftest.$ac_ext <<_ACEOF
17743/* confdefs.h. */
17744_ACEOF
17745cat confdefs.h >>conftest.$ac_ext
17746cat >>conftest.$ac_ext <<_ACEOF
17747/* end confdefs.h. */
17748$ac_includes_default
17749int
17750main ()
17751{
17752static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17753test_array [0] = 0
17754
17755 ;
17756 return 0;
17757}
17758_ACEOF
17759rm -f conftest.$ac_objext
17760if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17761 (eval $ac_compile) 2>conftest.er1
a848cd7e 17762 ac_status=$?
ac1cb8d3
VS
17763 grep -v '^ *+' conftest.er1 >conftest.err
17764 rm -f conftest.er1
17765 cat conftest.err >&5
a848cd7e
SC
17766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767 (exit $ac_status); } &&
ceec2216 17768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17770 (eval $ac_try) 2>&5
17771 ac_status=$?
17772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773 (exit $ac_status); }; } &&
17774 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
17780 ac_hi=$ac_mid; break
17781else
17782 echo "$as_me: failed program was:" >&5
17783sed 's/^/| /' conftest.$ac_ext >&5
17784
17785ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17786 if test $ac_lo -le $ac_mid; then
17787 ac_lo= ac_hi=
17788 break
17789 fi
17790 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17791fi
ac1cb8d3 17792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17793 done
17794else
17795 echo "$as_me: failed program was:" >&5
17796sed 's/^/| /' conftest.$ac_ext >&5
17797
17798cat >conftest.$ac_ext <<_ACEOF
17799/* confdefs.h. */
17800_ACEOF
17801cat confdefs.h >>conftest.$ac_ext
17802cat >>conftest.$ac_ext <<_ACEOF
17803/* end confdefs.h. */
17804$ac_includes_default
17805int
17806main ()
17807{
17808static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17809test_array [0] = 0
17810
17811 ;
17812 return 0;
17813}
17814_ACEOF
17815rm -f conftest.$ac_objext
17816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17817 (eval $ac_compile) 2>conftest.er1
a848cd7e 17818 ac_status=$?
ac1cb8d3
VS
17819 grep -v '^ *+' conftest.er1 >conftest.err
17820 rm -f conftest.er1
17821 cat conftest.err >&5
a848cd7e
SC
17822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823 (exit $ac_status); } &&
ceec2216 17824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17826 (eval $ac_try) 2>&5
17827 ac_status=$?
17828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829 (exit $ac_status); }; } &&
17830 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17832 (eval $ac_try) 2>&5
17833 ac_status=$?
17834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835 (exit $ac_status); }; }; then
17836 ac_hi=-1 ac_mid=-1
17837 while :; do
17838 cat >conftest.$ac_ext <<_ACEOF
17839/* confdefs.h. */
17840_ACEOF
17841cat confdefs.h >>conftest.$ac_ext
17842cat >>conftest.$ac_ext <<_ACEOF
17843/* end confdefs.h. */
17844$ac_includes_default
17845int
17846main ()
17847{
17848static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17849test_array [0] = 0
17850
17851 ;
17852 return 0;
17853}
17854_ACEOF
17855rm -f conftest.$ac_objext
17856if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17857 (eval $ac_compile) 2>conftest.er1
a848cd7e 17858 ac_status=$?
ac1cb8d3
VS
17859 grep -v '^ *+' conftest.er1 >conftest.err
17860 rm -f conftest.er1
17861 cat conftest.err >&5
a848cd7e
SC
17862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17863 (exit $ac_status); } &&
ceec2216 17864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17866 (eval $ac_try) 2>&5
17867 ac_status=$?
17868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869 (exit $ac_status); }; } &&
17870 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17872 (eval $ac_try) 2>&5
17873 ac_status=$?
17874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875 (exit $ac_status); }; }; then
17876 ac_lo=$ac_mid; break
17877else
17878 echo "$as_me: failed program was:" >&5
17879sed 's/^/| /' conftest.$ac_ext >&5
17880
17881ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17882 if test $ac_mid -le $ac_hi; then
17883 ac_lo= ac_hi=
17884 break
17885 fi
17886 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17887fi
ac1cb8d3 17888rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17889 done
17890else
17891 echo "$as_me: failed program was:" >&5
17892sed 's/^/| /' conftest.$ac_ext >&5
17893
17894ac_lo= ac_hi=
17895fi
ac1cb8d3 17896rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17897fi
ac1cb8d3 17898rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17899# Binary search between lo and hi bounds.
17900while test "x$ac_lo" != "x$ac_hi"; do
17901 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17902 cat >conftest.$ac_ext <<_ACEOF
17903/* confdefs.h. */
17904_ACEOF
17905cat confdefs.h >>conftest.$ac_ext
17906cat >>conftest.$ac_ext <<_ACEOF
17907/* end confdefs.h. */
17908$ac_includes_default
17909int
17910main ()
17911{
17912static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17913test_array [0] = 0
17914
17915 ;
17916 return 0;
17917}
17918_ACEOF
17919rm -f conftest.$ac_objext
17920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17921 (eval $ac_compile) 2>conftest.er1
a848cd7e 17922 ac_status=$?
ac1cb8d3
VS
17923 grep -v '^ *+' conftest.er1 >conftest.err
17924 rm -f conftest.er1
17925 cat conftest.err >&5
a848cd7e
SC
17926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927 (exit $ac_status); } &&
ceec2216 17928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17930 (eval $ac_try) 2>&5
17931 ac_status=$?
17932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933 (exit $ac_status); }; } &&
17934 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17936 (eval $ac_try) 2>&5
17937 ac_status=$?
17938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939 (exit $ac_status); }; }; then
17940 ac_hi=$ac_mid
17941else
17942 echo "$as_me: failed program was:" >&5
17943sed 's/^/| /' conftest.$ac_ext >&5
17944
17945ac_lo=`expr '(' $ac_mid ')' + 1`
17946fi
ac1cb8d3 17947rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17948done
17949case $ac_lo in
17950?*) ac_cv_sizeof_long_long=$ac_lo;;
17951'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17952See \`config.log' for more details." >&5
17953echo "$as_me: error: cannot compute sizeof (long long), 77
17954See \`config.log' for more details." >&2;}
17955 { (exit 1); exit 1; }; } ;;
17956esac
17957else
17958 if test "$cross_compiling" = yes; then
ceec2216
RL
17959 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17960echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17961 { (exit 1); exit 1; }; }
17962else
17963 cat >conftest.$ac_ext <<_ACEOF
17964/* confdefs.h. */
17965_ACEOF
17966cat confdefs.h >>conftest.$ac_ext
17967cat >>conftest.$ac_ext <<_ACEOF
17968/* end confdefs.h. */
17969$ac_includes_default
17970long longval () { return (long) (sizeof (long long)); }
17971unsigned long ulongval () { return (long) (sizeof (long long)); }
17972#include <stdio.h>
17973#include <stdlib.h>
17974int
17975main ()
17976{
17977
17978 FILE *f = fopen ("conftest.val", "w");
17979 if (! f)
17980 exit (1);
17981 if (((long) (sizeof (long long))) < 0)
17982 {
17983 long i = longval ();
17984 if (i != ((long) (sizeof (long long))))
17985 exit (1);
17986 fprintf (f, "%ld\n", i);
17987 }
17988 else
17989 {
17990 unsigned long i = ulongval ();
17991 if (i != ((long) (sizeof (long long))))
17992 exit (1);
17993 fprintf (f, "%lu\n", i);
17994 }
17995 exit (ferror (f) || fclose (f) != 0);
17996
17997 ;
17998 return 0;
17999}
18000_ACEOF
18001rm -f conftest$ac_exeext
18002if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18003 (eval $ac_link) 2>&5
18004 ac_status=$?
18005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18008 (eval $ac_try) 2>&5
18009 ac_status=$?
18010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18011 (exit $ac_status); }; }; then
18012 ac_cv_sizeof_long_long=`cat conftest.val`
18013else
18014 echo "$as_me: program exited with status $ac_status" >&5
18015echo "$as_me: failed program was:" >&5
18016sed 's/^/| /' conftest.$ac_ext >&5
18017
18018( exit $ac_status )
18019{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18020See \`config.log' for more details." >&5
18021echo "$as_me: error: cannot compute sizeof (long long), 77
18022See \`config.log' for more details." >&2;}
18023 { (exit 1); exit 1; }; }
18024fi
ac1cb8d3 18025rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18026fi
18027fi
18028rm -f conftest.val
18029else
18030 ac_cv_sizeof_long_long=0
18031fi
18032fi
18033echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18034echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18035cat >>confdefs.h <<_ACEOF
18036#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18037_ACEOF
18038
18039
18040esac
18041
18042echo "$as_me:$LINENO: checking size of wchar_t" >&5
18043echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
18044if test "${wx_cv_sizeof_wchar_t+set}" = set; then
18045 echo $ECHO_N "(cached) $ECHO_C" >&6
18046else
18047
18048 if test "$cross_compiling" = yes; then
18049
18050 case "${host}" in
18051 *-pc-msdosdjgpp )
18052 wx_cv_sizeof_wchar_t=0
18053 ;;
18054 * )
18055 wx_cv_sizeof_wchar_t=4
18056 ;;
18057 esac
18058
18059
18060else
18061 cat >conftest.$ac_ext <<_ACEOF
18062/* confdefs.h. */
18063_ACEOF
18064cat confdefs.h >>conftest.$ac_ext
18065cat >>conftest.$ac_ext <<_ACEOF
18066/* end confdefs.h. */
18067
18068 /* DJGPP only has fake wchar_t: */
18069 #ifdef __DJGPP__
18070 # error "fake wchar_t"
18071 #endif
18072 #ifdef HAVE_WCHAR_H
18073 # ifdef __CYGWIN__
18074 # include <stddef.h>
18075 # endif
18076 # include <wchar.h>
18077 #endif
18078 #ifdef HAVE_STDLIB_H
18079 # include <stdlib.h>
18080 #endif
18081 #include <stdio.h>
18082 int main()
18083 {
18084 FILE *f=fopen("conftestval", "w");
18085 if (!f) exit(1);
18086 fprintf(f, "%i", sizeof(wchar_t));
18087 exit(0);
18088 }
18089
18090_ACEOF
18091rm -f conftest$ac_exeext
18092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18093 (eval $ac_link) 2>&5
18094 ac_status=$?
18095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18098 (eval $ac_try) 2>&5
18099 ac_status=$?
18100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101 (exit $ac_status); }; }; then
18102 wx_cv_sizeof_wchar_t=`cat conftestval`
18103else
18104 echo "$as_me: program exited with status $ac_status" >&5
18105echo "$as_me: failed program was:" >&5
18106sed 's/^/| /' conftest.$ac_ext >&5
18107
18108( exit $ac_status )
18109wx_cv_sizeof_wchar_t=0
18110fi
ac1cb8d3 18111rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18112fi
18113
18114fi
18115echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
18116echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
18117
18118cat >>confdefs.h <<_ACEOF
18119#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
18120_ACEOF
18121
18122
18123# Check whether --enable-largefile or --disable-largefile was given.
18124if test "${enable_largefile+set}" = set; then
18125 enableval="$enable_largefile"
18126
18127fi;
18128if test "$enable_largefile" != no; then
18129 wx_largefile=no
18130
18131 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18132echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
18133if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18134 echo $ECHO_N "(cached) $ECHO_C" >&6
18135else
18136
18137 cat >conftest.$ac_ext <<_ACEOF
18138/* confdefs.h. */
18139_ACEOF
18140cat confdefs.h >>conftest.$ac_ext
18141cat >>conftest.$ac_ext <<_ACEOF
18142/* end confdefs.h. */
18143#define _FILE_OFFSET_BITS 64
18144 #include <sys/types.h>
18145int
18146main ()
18147{
18148typedef struct {
18149 unsigned int field: sizeof(off_t) == 8;
18150} wxlf;
18151
18152 ;
18153 return 0;
18154}
18155_ACEOF
18156rm -f conftest.$ac_objext
18157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18158 (eval $ac_compile) 2>conftest.er1
a848cd7e 18159 ac_status=$?
ac1cb8d3
VS
18160 grep -v '^ *+' conftest.er1 >conftest.err
18161 rm -f conftest.er1
18162 cat conftest.err >&5
a848cd7e
SC
18163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164 (exit $ac_status); } &&
ceec2216 18165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18167 (eval $ac_try) 2>&5
18168 ac_status=$?
18169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170 (exit $ac_status); }; } &&
18171 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18173 (eval $ac_try) 2>&5
18174 ac_status=$?
18175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176 (exit $ac_status); }; }; then
18177 ac_cv_sys_file_offset_bits=64
18178else
18179 echo "$as_me: failed program was:" >&5
18180sed 's/^/| /' conftest.$ac_ext >&5
18181
18182ac_cv_sys_file_offset_bits=no
18183fi
ac1cb8d3 18184rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18185
18186
18187fi
18188echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18189echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
18190
18191 if test "$ac_cv_sys_file_offset_bits" != no; then
18192 wx_largefile=yes
18193 cat >>confdefs.h <<_ACEOF
18194#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18195_ACEOF
18196
18197 fi
18198
18199 if test "x$wx_largefile" != "xyes"; then
18200
18201 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18202echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
18203if test "${ac_cv_sys_large_files+set}" = set; then
18204 echo $ECHO_N "(cached) $ECHO_C" >&6
18205else
18206
18207 cat >conftest.$ac_ext <<_ACEOF
18208/* confdefs.h. */
18209_ACEOF
18210cat confdefs.h >>conftest.$ac_ext
18211cat >>conftest.$ac_ext <<_ACEOF
18212/* end confdefs.h. */
18213#define _LARGE_FILES 1
18214 #include <sys/types.h>
18215int
18216main ()
18217{
18218typedef struct {
18219 unsigned int field: sizeof(off_t) == 8;
18220} wxlf;
18221
18222 ;
18223 return 0;
18224}
18225_ACEOF
18226rm -f conftest.$ac_objext
18227if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18228 (eval $ac_compile) 2>conftest.er1
a848cd7e 18229 ac_status=$?
ac1cb8d3
VS
18230 grep -v '^ *+' conftest.er1 >conftest.err
18231 rm -f conftest.er1
18232 cat conftest.err >&5
a848cd7e
SC
18233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18234 (exit $ac_status); } &&
ceec2216 18235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18237 (eval $ac_try) 2>&5
18238 ac_status=$?
18239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240 (exit $ac_status); }; } &&
18241 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18243 (eval $ac_try) 2>&5
18244 ac_status=$?
18245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18246 (exit $ac_status); }; }; then
18247 ac_cv_sys_large_files=1
18248else
18249 echo "$as_me: failed program was:" >&5
18250sed 's/^/| /' conftest.$ac_ext >&5
18251
18252ac_cv_sys_large_files=no
18253fi
ac1cb8d3 18254rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18255
18256
18257fi
18258echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18259echo "${ECHO_T}$ac_cv_sys_large_files" >&6
18260
18261 if test "$ac_cv_sys_large_files" != no; then
18262 wx_largefile=yes
18263 cat >>confdefs.h <<_ACEOF
18264#define _LARGE_FILES $ac_cv_sys_large_files
18265_ACEOF
18266
18267 fi
18268
18269 fi
18270
18271 echo "$as_me:$LINENO: checking if large file support is available" >&5
18272echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
18273 if test "x$wx_largefile" = "xyes"; then
18274 cat >>confdefs.h <<\_ACEOF
18275#define HAVE_LARGEFILE_SUPPORT 1
18276_ACEOF
18277
18278 fi
18279 echo "$as_me:$LINENO: result: $wx_largefile" >&5
18280echo "${ECHO_T}$wx_largefile" >&6
18281fi
18282
18283
18284if test "x$wx_largefile" = "xyes"; then
18285 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
18286 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
18287 else
18288 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
18289 fi
18290 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
18291fi
18292
18293echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
18294echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
18295if test "${ac_cv_c_bigendian+set}" = set; then
18296 echo $ECHO_N "(cached) $ECHO_C" >&6
18297else
18298 ac_cv_c_bigendian=unknown
18299# See if sys/param.h defines the BYTE_ORDER macro.
18300cat >conftest.$ac_ext <<_ACEOF
18301/* confdefs.h. */
18302_ACEOF
18303cat confdefs.h >>conftest.$ac_ext
18304cat >>conftest.$ac_ext <<_ACEOF
18305/* end confdefs.h. */
18306#include <sys/types.h>
18307#include <sys/param.h>
18308int
18309main ()
18310{
18311
18312#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
18313 bogus endian macros
18314#endif
18315 ;
18316 return 0;
18317}
18318_ACEOF
18319rm -f conftest.$ac_objext
18320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18321 (eval $ac_compile) 2>conftest.er1
a848cd7e 18322 ac_status=$?
ac1cb8d3
VS
18323 grep -v '^ *+' conftest.er1 >conftest.err
18324 rm -f conftest.er1
18325 cat conftest.err >&5
a848cd7e
SC
18326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18327 (exit $ac_status); } &&
ceec2216 18328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18330 (eval $ac_try) 2>&5
18331 ac_status=$?
18332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18333 (exit $ac_status); }; } &&
18334 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18336 (eval $ac_try) 2>&5
18337 ac_status=$?
18338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339 (exit $ac_status); }; }; then
18340 # It does; now see whether it defined to BIG_ENDIAN or not.
18341cat >conftest.$ac_ext <<_ACEOF
18342/* confdefs.h. */
18343_ACEOF
18344cat confdefs.h >>conftest.$ac_ext
18345cat >>conftest.$ac_ext <<_ACEOF
18346/* end confdefs.h. */
18347#include <sys/types.h>
18348#include <sys/param.h>
18349int
18350main ()
18351{
18352
18353#if BYTE_ORDER != BIG_ENDIAN
18354 not big endian
18355#endif
18356 ;
18357 return 0;
18358}
18359_ACEOF
18360rm -f conftest.$ac_objext
18361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18362 (eval $ac_compile) 2>conftest.er1
a848cd7e 18363 ac_status=$?
ac1cb8d3
VS
18364 grep -v '^ *+' conftest.er1 >conftest.err
18365 rm -f conftest.er1
18366 cat conftest.err >&5
a848cd7e
SC
18367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18368 (exit $ac_status); } &&
ceec2216 18369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18371 (eval $ac_try) 2>&5
18372 ac_status=$?
18373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18374 (exit $ac_status); }; } &&
18375 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18377 (eval $ac_try) 2>&5
18378 ac_status=$?
18379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18380 (exit $ac_status); }; }; then
18381 ac_cv_c_bigendian=yes
18382else
18383 echo "$as_me: failed program was:" >&5
18384sed 's/^/| /' conftest.$ac_ext >&5
18385
18386ac_cv_c_bigendian=no
18387fi
ac1cb8d3 18388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18389else
18390 echo "$as_me: failed program was:" >&5
18391sed 's/^/| /' conftest.$ac_ext >&5
18392
18393fi
ac1cb8d3 18394rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18395if test $ac_cv_c_bigendian = unknown; then
18396if test "$cross_compiling" = yes; then
18397 ac_cv_c_bigendian=unknown
18398else
18399 cat >conftest.$ac_ext <<_ACEOF
18400/* confdefs.h. */
18401_ACEOF
18402cat confdefs.h >>conftest.$ac_ext
18403cat >>conftest.$ac_ext <<_ACEOF
18404/* end confdefs.h. */
18405main () {
18406 /* Are we little or big endian? From Harbison&Steele. */
18407 union
18408 {
18409 long l;
18410 char c[sizeof (long)];
18411 } u;
18412 u.l = 1;
18413 exit (u.c[sizeof (long) - 1] == 1);
18414}
18415_ACEOF
18416rm -f conftest$ac_exeext
18417if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18418 (eval $ac_link) 2>&5
18419 ac_status=$?
18420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18423 (eval $ac_try) 2>&5
18424 ac_status=$?
18425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18426 (exit $ac_status); }; }; then
18427 ac_cv_c_bigendian=no
18428else
18429 echo "$as_me: program exited with status $ac_status" >&5
18430echo "$as_me: failed program was:" >&5
18431sed 's/^/| /' conftest.$ac_ext >&5
18432
18433( exit $ac_status )
18434ac_cv_c_bigendian=yes
18435fi
ac1cb8d3 18436rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18437fi
18438fi
18439fi
18440echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
18441echo "${ECHO_T}$ac_cv_c_bigendian" >&6
18442if test $ac_cv_c_bigendian = unknown; then
18443 { 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
18444echo "$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;}
18445fi
18446if test $ac_cv_c_bigendian = yes; then
18447 cat >>confdefs.h <<\_ACEOF
18448#define WORDS_BIGENDIAN 1
18449_ACEOF
18450
18451fi
18452
18453
18454ac_ext=cc
18455ac_cpp='$CXXCPP $CPPFLAGS'
18456ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18457ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18458ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18459echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
18460echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
18461if test -z "$CXXCPP"; then
18462 if test "${ac_cv_prog_CXXCPP+set}" = set; then
18463 echo $ECHO_N "(cached) $ECHO_C" >&6
18464else
18465 # Double quotes because CXXCPP needs to be expanded
18466 for CXXCPP in "$CXX -E" "/lib/cpp"
18467 do
18468 ac_preproc_ok=false
18469for ac_cxx_preproc_warn_flag in '' yes
18470do
18471 # Use a header file that comes with gcc, so configuring glibc
18472 # with a fresh cross-compiler works.
18473 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18474 # <limits.h> exists even on freestanding compilers.
18475 # On the NeXT, cc -E runs the code through the compiler's parser,
18476 # not just through cpp. "Syntax error" is here to catch this case.
18477 cat >conftest.$ac_ext <<_ACEOF
18478/* confdefs.h. */
18479_ACEOF
18480cat confdefs.h >>conftest.$ac_ext
18481cat >>conftest.$ac_ext <<_ACEOF
18482/* end confdefs.h. */
18483#ifdef __STDC__
18484# include <limits.h>
18485#else
18486# include <assert.h>
18487#endif
ac1cb8d3 18488 Syntax error
a848cd7e
SC
18489_ACEOF
18490if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18491 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18492 ac_status=$?
18493 grep -v '^ *+' conftest.er1 >conftest.err
18494 rm -f conftest.er1
18495 cat conftest.err >&5
18496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18497 (exit $ac_status); } >/dev/null; then
18498 if test -s conftest.err; then
18499 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18500 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18501 else
18502 ac_cpp_err=
18503 fi
18504else
18505 ac_cpp_err=yes
18506fi
18507if test -z "$ac_cpp_err"; then
18508 :
18509else
18510 echo "$as_me: failed program was:" >&5
18511sed 's/^/| /' conftest.$ac_ext >&5
18512
18513 # Broken: fails on valid input.
18514continue
18515fi
18516rm -f conftest.err conftest.$ac_ext
18517
18518 # OK, works on sane cases. Now check whether non-existent headers
18519 # can be detected and how.
18520 cat >conftest.$ac_ext <<_ACEOF
18521/* confdefs.h. */
18522_ACEOF
18523cat confdefs.h >>conftest.$ac_ext
18524cat >>conftest.$ac_ext <<_ACEOF
18525/* end confdefs.h. */
18526#include <ac_nonexistent.h>
18527_ACEOF
18528if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18529 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18530 ac_status=$?
18531 grep -v '^ *+' conftest.er1 >conftest.err
18532 rm -f conftest.er1
18533 cat conftest.err >&5
18534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535 (exit $ac_status); } >/dev/null; then
18536 if test -s conftest.err; then
18537 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18538 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18539 else
18540 ac_cpp_err=
18541 fi
18542else
18543 ac_cpp_err=yes
18544fi
18545if test -z "$ac_cpp_err"; then
18546 # Broken: success on invalid input.
18547continue
18548else
18549 echo "$as_me: failed program was:" >&5
18550sed 's/^/| /' conftest.$ac_ext >&5
18551
18552 # Passes both tests.
18553ac_preproc_ok=:
18554break
18555fi
18556rm -f conftest.err conftest.$ac_ext
18557
18558done
18559# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18560rm -f conftest.err conftest.$ac_ext
18561if $ac_preproc_ok; then
18562 break
18563fi
18564
18565 done
18566 ac_cv_prog_CXXCPP=$CXXCPP
18567
18568fi
18569 CXXCPP=$ac_cv_prog_CXXCPP
18570else
18571 ac_cv_prog_CXXCPP=$CXXCPP
18572fi
18573echo "$as_me:$LINENO: result: $CXXCPP" >&5
18574echo "${ECHO_T}$CXXCPP" >&6
18575ac_preproc_ok=false
18576for ac_cxx_preproc_warn_flag in '' yes
18577do
18578 # Use a header file that comes with gcc, so configuring glibc
18579 # with a fresh cross-compiler works.
18580 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18581 # <limits.h> exists even on freestanding compilers.
18582 # On the NeXT, cc -E runs the code through the compiler's parser,
18583 # not just through cpp. "Syntax error" is here to catch this case.
18584 cat >conftest.$ac_ext <<_ACEOF
18585/* confdefs.h. */
18586_ACEOF
18587cat confdefs.h >>conftest.$ac_ext
18588cat >>conftest.$ac_ext <<_ACEOF
18589/* end confdefs.h. */
18590#ifdef __STDC__
18591# include <limits.h>
18592#else
18593# include <assert.h>
18594#endif
ac1cb8d3 18595 Syntax error
a848cd7e
SC
18596_ACEOF
18597if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18598 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18599 ac_status=$?
18600 grep -v '^ *+' conftest.er1 >conftest.err
18601 rm -f conftest.er1
18602 cat conftest.err >&5
18603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18604 (exit $ac_status); } >/dev/null; then
18605 if test -s conftest.err; then
18606 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18607 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18608 else
18609 ac_cpp_err=
18610 fi
18611else
18612 ac_cpp_err=yes
18613fi
18614if test -z "$ac_cpp_err"; then
18615 :
18616else
18617 echo "$as_me: failed program was:" >&5
18618sed 's/^/| /' conftest.$ac_ext >&5
18619
18620 # Broken: fails on valid input.
18621continue
18622fi
18623rm -f conftest.err conftest.$ac_ext
18624
18625 # OK, works on sane cases. Now check whether non-existent headers
18626 # can be detected and how.
18627 cat >conftest.$ac_ext <<_ACEOF
18628/* confdefs.h. */
18629_ACEOF
18630cat confdefs.h >>conftest.$ac_ext
18631cat >>conftest.$ac_ext <<_ACEOF
18632/* end confdefs.h. */
18633#include <ac_nonexistent.h>
18634_ACEOF
18635if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18636 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18637 ac_status=$?
18638 grep -v '^ *+' conftest.er1 >conftest.err
18639 rm -f conftest.er1
18640 cat conftest.err >&5
18641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18642 (exit $ac_status); } >/dev/null; then
18643 if test -s conftest.err; then
18644 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18645 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18646 else
18647 ac_cpp_err=
18648 fi
18649else
18650 ac_cpp_err=yes
18651fi
18652if test -z "$ac_cpp_err"; then
18653 # Broken: success on invalid input.
18654continue
18655else
18656 echo "$as_me: failed program was:" >&5
18657sed 's/^/| /' conftest.$ac_ext >&5
18658
18659 # Passes both tests.
18660ac_preproc_ok=:
18661break
18662fi
18663rm -f conftest.err conftest.$ac_ext
18664
18665done
18666# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18667rm -f conftest.err conftest.$ac_ext
18668if $ac_preproc_ok; then
18669 :
18670else
18671 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18672See \`config.log' for more details." >&5
18673echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18674See \`config.log' for more details." >&2;}
18675 { (exit 1); exit 1; }; }
18676fi
18677
18678ac_ext=cc
18679ac_cpp='$CXXCPP $CPPFLAGS'
18680ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18681ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18682ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18683
18684
18685
18686
18687
18688 ac_ext=cc
18689ac_cpp='$CXXCPP $CPPFLAGS'
18690ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18691ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18692ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18693
18694
18695
18696for ac_header in iostream
18697do
18698as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18699if eval "test \"\${$as_ac_Header+set}\" = set"; then
18700 echo "$as_me:$LINENO: checking for $ac_header" >&5
18701echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18702if eval "test \"\${$as_ac_Header+set}\" = set"; then
18703 echo $ECHO_N "(cached) $ECHO_C" >&6
18704fi
18705echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18706echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18707else
18708 # Is the header compilable?
18709echo "$as_me:$LINENO: checking $ac_header usability" >&5
18710echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18711cat >conftest.$ac_ext <<_ACEOF
18712/* confdefs.h. */
18713_ACEOF
18714cat confdefs.h >>conftest.$ac_ext
18715cat >>conftest.$ac_ext <<_ACEOF
18716/* end confdefs.h. */
18717$ac_includes_default
18718#include <$ac_header>
18719_ACEOF
18720rm -f conftest.$ac_objext
18721if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18722 (eval $ac_compile) 2>conftest.er1
a848cd7e 18723 ac_status=$?
ac1cb8d3
VS
18724 grep -v '^ *+' conftest.er1 >conftest.err
18725 rm -f conftest.er1
18726 cat conftest.err >&5
a848cd7e
SC
18727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728 (exit $ac_status); } &&
ceec2216 18729 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18731 (eval $ac_try) 2>&5
18732 ac_status=$?
18733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18734 (exit $ac_status); }; } &&
18735 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18737 (eval $ac_try) 2>&5
18738 ac_status=$?
18739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18740 (exit $ac_status); }; }; then
18741 ac_header_compiler=yes
18742else
18743 echo "$as_me: failed program was:" >&5
18744sed 's/^/| /' conftest.$ac_ext >&5
18745
18746ac_header_compiler=no
18747fi
ac1cb8d3 18748rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18749echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18750echo "${ECHO_T}$ac_header_compiler" >&6
18751
18752# Is the header present?
18753echo "$as_me:$LINENO: checking $ac_header presence" >&5
18754echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18755cat >conftest.$ac_ext <<_ACEOF
18756/* confdefs.h. */
18757_ACEOF
18758cat confdefs.h >>conftest.$ac_ext
18759cat >>conftest.$ac_ext <<_ACEOF
18760/* end confdefs.h. */
18761#include <$ac_header>
18762_ACEOF
18763if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18764 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18765 ac_status=$?
18766 grep -v '^ *+' conftest.er1 >conftest.err
18767 rm -f conftest.er1
18768 cat conftest.err >&5
18769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770 (exit $ac_status); } >/dev/null; then
18771 if test -s conftest.err; then
18772 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18773 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18774 else
18775 ac_cpp_err=
18776 fi
18777else
18778 ac_cpp_err=yes
18779fi
18780if test -z "$ac_cpp_err"; then
18781 ac_header_preproc=yes
18782else
18783 echo "$as_me: failed program was:" >&5
18784sed 's/^/| /' conftest.$ac_ext >&5
18785
18786 ac_header_preproc=no
18787fi
18788rm -f conftest.err conftest.$ac_ext
18789echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18790echo "${ECHO_T}$ac_header_preproc" >&6
18791
18792# So? What about this header?
ac1cb8d3
VS
18793case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
18794 yes:no: )
a848cd7e
SC
18795 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18796echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
18797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18798echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18799 ac_header_preproc=yes
a848cd7e 18800 ;;
ac1cb8d3 18801 no:yes:* )
a848cd7e
SC
18802 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18803echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
18804 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18805echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18806 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18807echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18808 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18809echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
18810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18811echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
18812 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18813echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
18814 (
18815 cat <<\_ASBOX
ac1cb8d3
VS
18816## ----------------------------------------- ##
18817## Report this to wx-dev@lists.wxwidgets.org ##
18818## ----------------------------------------- ##
a848cd7e
SC
18819_ASBOX
18820 ) |
18821 sed "s/^/$as_me: WARNING: /" >&2
18822 ;;
18823esac
18824echo "$as_me:$LINENO: checking for $ac_header" >&5
18825echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18826if eval "test \"\${$as_ac_Header+set}\" = set"; then
18827 echo $ECHO_N "(cached) $ECHO_C" >&6
18828else
ac1cb8d3 18829 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
18830fi
18831echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18832echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18833
18834fi
18835if test `eval echo '${'$as_ac_Header'}'` = yes; then
18836 cat >>confdefs.h <<_ACEOF
18837#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18838_ACEOF
18839
18840fi
18841
18842done
18843
18844
18845 if test "$ac_cv_header_iostream" = "yes" ; then
18846 :
18847 else
18848 cat >>confdefs.h <<\_ACEOF
18849#define wxUSE_IOSTREAMH 1
18850_ACEOF
18851
18852 fi
18853
18854 ac_ext=c
18855ac_cpp='$CPP $CPPFLAGS'
18856ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18857ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18858ac_compiler_gnu=$ac_cv_c_compiler_gnu
18859
18860
18861
18862
18863 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
18864echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
18865if test "${wx_cv_cpp_bool+set}" = set; then
18866 echo $ECHO_N "(cached) $ECHO_C" >&6
18867else
18868
18869
18870
18871 ac_ext=cc
18872ac_cpp='$CXXCPP $CPPFLAGS'
18873ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18874ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18875ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18876
18877
18878 cat >conftest.$ac_ext <<_ACEOF
18879/* confdefs.h. */
18880_ACEOF
18881cat confdefs.h >>conftest.$ac_ext
18882cat >>conftest.$ac_ext <<_ACEOF
18883/* end confdefs.h. */
18884
18885
18886int
18887main ()
18888{
18889
18890 bool b = true;
18891
18892 return 0;
18893
18894 ;
18895 return 0;
18896}
18897_ACEOF
18898rm -f conftest.$ac_objext
18899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18900 (eval $ac_compile) 2>conftest.er1
a848cd7e 18901 ac_status=$?
ac1cb8d3
VS
18902 grep -v '^ *+' conftest.er1 >conftest.err
18903 rm -f conftest.er1
18904 cat conftest.err >&5
a848cd7e
SC
18905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18906 (exit $ac_status); } &&
ceec2216 18907 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18909 (eval $ac_try) 2>&5
18910 ac_status=$?
18911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912 (exit $ac_status); }; } &&
18913 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18915 (eval $ac_try) 2>&5
18916 ac_status=$?
18917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18918 (exit $ac_status); }; }; then
18919
18920 wx_cv_cpp_bool=yes
18921
18922else
18923 echo "$as_me: failed program was:" >&5
18924sed 's/^/| /' conftest.$ac_ext >&5
18925
18926
18927 wx_cv_cpp_bool=no
18928
18929
18930fi
ac1cb8d3 18931rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18932
18933 ac_ext=c
18934ac_cpp='$CPP $CPPFLAGS'
18935ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18936ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18937ac_compiler_gnu=$ac_cv_c_compiler_gnu
18938
18939
18940fi
18941echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
18942echo "${ECHO_T}$wx_cv_cpp_bool" >&6
18943
18944 if test "$wx_cv_cpp_bool" = "yes"; then
18945 cat >>confdefs.h <<\_ACEOF
18946#define HAVE_BOOL 1
18947_ACEOF
18948
18949 fi
18950
18951
18952
18953 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
18954echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
18955if test "${wx_cv_explicit+set}" = set; then
18956 echo $ECHO_N "(cached) $ECHO_C" >&6
18957else
18958
18959
18960
18961 ac_ext=cc
18962ac_cpp='$CXXCPP $CPPFLAGS'
18963ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18964ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18965ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18966
18967
18968 cat >conftest.$ac_ext <<_ACEOF
18969/* confdefs.h. */
18970_ACEOF
18971cat confdefs.h >>conftest.$ac_ext
18972cat >>conftest.$ac_ext <<_ACEOF
18973/* end confdefs.h. */
18974
18975 class Foo { public: explicit Foo(int) {} };
18976
18977int
18978main ()
18979{
18980
18981 return 0;
18982
18983 ;
18984 return 0;
18985}
18986_ACEOF
18987rm -f conftest.$ac_objext
18988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18989 (eval $ac_compile) 2>conftest.er1
a848cd7e 18990 ac_status=$?
ac1cb8d3
VS
18991 grep -v '^ *+' conftest.er1 >conftest.err
18992 rm -f conftest.er1
18993 cat conftest.err >&5
a848cd7e
SC
18994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995 (exit $ac_status); } &&
ceec2216 18996 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18998 (eval $ac_try) 2>&5
18999 ac_status=$?
19000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001 (exit $ac_status); }; } &&
19002 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19004 (eval $ac_try) 2>&5
19005 ac_status=$?
19006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19007 (exit $ac_status); }; }; then
19008
19009 cat >conftest.$ac_ext <<_ACEOF
19010/* confdefs.h. */
19011_ACEOF
19012cat confdefs.h >>conftest.$ac_ext
19013cat >>conftest.$ac_ext <<_ACEOF
19014/* end confdefs.h. */
19015
19016 class Foo { public: explicit Foo(int) {} };
19017 static void TakeFoo(const Foo& foo) { }
19018
19019int
19020main ()
19021{
19022
19023 TakeFoo(17);
19024 return 0;
19025
19026 ;
19027 return 0;
19028}
19029_ACEOF
19030rm -f conftest.$ac_objext
19031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19032 (eval $ac_compile) 2>conftest.er1
a848cd7e 19033 ac_status=$?
ac1cb8d3
VS
19034 grep -v '^ *+' conftest.er1 >conftest.err
19035 rm -f conftest.er1
19036 cat conftest.err >&5
a848cd7e
SC
19037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038 (exit $ac_status); } &&
ceec2216 19039 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19041 (eval $ac_try) 2>&5
19042 ac_status=$?
19043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044 (exit $ac_status); }; } &&
19045 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19047 (eval $ac_try) 2>&5
19048 ac_status=$?
19049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19050 (exit $ac_status); }; }; then
19051 wx_cv_explicit=no
19052else
19053 echo "$as_me: failed program was:" >&5
19054sed 's/^/| /' conftest.$ac_ext >&5
19055
19056wx_cv_explicit=yes
19057
19058fi
ac1cb8d3 19059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19060
19061else
19062 echo "$as_me: failed program was:" >&5
19063sed 's/^/| /' conftest.$ac_ext >&5
19064
19065wx_cv_explicit=no
19066
19067fi
ac1cb8d3 19068rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19069
19070 ac_ext=c
19071ac_cpp='$CPP $CPPFLAGS'
19072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19074ac_compiler_gnu=$ac_cv_c_compiler_gnu
19075
19076
19077fi
19078echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
19079echo "${ECHO_T}$wx_cv_explicit" >&6
19080
19081 if test "$wx_cv_explicit" = "yes"; then
19082 cat >>confdefs.h <<\_ACEOF
19083#define HAVE_EXPLICIT 1
19084_ACEOF
19085
19086 fi
19087
19088
19089echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
19090echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
19091if test "${ac_cv_cxx_const_cast+set}" = set; then
19092 echo $ECHO_N "(cached) $ECHO_C" >&6
19093else
19094
19095
19096 ac_ext=cc
19097ac_cpp='$CXXCPP $CPPFLAGS'
19098ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19099ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19100ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19101
19102 cat >conftest.$ac_ext <<_ACEOF
19103/* confdefs.h. */
19104_ACEOF
19105cat confdefs.h >>conftest.$ac_ext
19106cat >>conftest.$ac_ext <<_ACEOF
19107/* end confdefs.h. */
19108
19109int
19110main ()
19111{
19112int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
19113 ;
19114 return 0;
19115}
19116_ACEOF
19117rm -f conftest.$ac_objext
19118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19119 (eval $ac_compile) 2>conftest.er1
a848cd7e 19120 ac_status=$?
ac1cb8d3
VS
19121 grep -v '^ *+' conftest.er1 >conftest.err
19122 rm -f conftest.er1
19123 cat conftest.err >&5
a848cd7e
SC
19124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19125 (exit $ac_status); } &&
ceec2216 19126 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19128 (eval $ac_try) 2>&5
19129 ac_status=$?
19130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131 (exit $ac_status); }; } &&
19132 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19134 (eval $ac_try) 2>&5
19135 ac_status=$?
19136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19137 (exit $ac_status); }; }; then
19138 ac_cv_cxx_const_cast=yes
19139else
19140 echo "$as_me: failed program was:" >&5
19141sed 's/^/| /' conftest.$ac_ext >&5
19142
19143ac_cv_cxx_const_cast=no
19144fi
ac1cb8d3 19145rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19146 ac_ext=c
19147ac_cpp='$CPP $CPPFLAGS'
19148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19150ac_compiler_gnu=$ac_cv_c_compiler_gnu
19151
19152
19153fi
19154echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
19155echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
19156if test "$ac_cv_cxx_const_cast" = yes; then
19157
19158cat >>confdefs.h <<\_ACEOF
19159#define HAVE_CONST_CAST
19160_ACEOF
19161
19162fi
19163
19164echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
19165echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
19166if test "${ac_cv_cxx_static_cast+set}" = set; then
19167 echo $ECHO_N "(cached) $ECHO_C" >&6
19168else
19169
19170
19171 ac_ext=cc
19172ac_cpp='$CXXCPP $CPPFLAGS'
19173ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19174ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19175ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19176
19177 cat >conftest.$ac_ext <<_ACEOF
19178/* confdefs.h. */
19179_ACEOF
19180cat confdefs.h >>conftest.$ac_ext
19181cat >>conftest.$ac_ext <<_ACEOF
19182/* end confdefs.h. */
19183#include <typeinfo>
19184class Base { public : Base () {} virtual void f () = 0; };
19185class Derived : public Base { public : Derived () {} virtual void f () {} };
19186int g (Derived&) { return 0; }
19187int
19188main ()
19189{
19190
19191Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
19192 ;
19193 return 0;
19194}
19195_ACEOF
19196rm -f conftest.$ac_objext
19197if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19198 (eval $ac_compile) 2>conftest.er1
a848cd7e 19199 ac_status=$?
ac1cb8d3
VS
19200 grep -v '^ *+' conftest.er1 >conftest.err
19201 rm -f conftest.er1
19202 cat conftest.err >&5
a848cd7e
SC
19203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204 (exit $ac_status); } &&
ceec2216 19205 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19207 (eval $ac_try) 2>&5
19208 ac_status=$?
19209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19210 (exit $ac_status); }; } &&
19211 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19213 (eval $ac_try) 2>&5
19214 ac_status=$?
19215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216 (exit $ac_status); }; }; then
19217 ac_cv_cxx_static_cast=yes
19218else
19219 echo "$as_me: failed program was:" >&5
19220sed 's/^/| /' conftest.$ac_ext >&5
19221
19222ac_cv_cxx_static_cast=no
19223fi
ac1cb8d3 19224rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19225 ac_ext=c
19226ac_cpp='$CPP $CPPFLAGS'
19227ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19228ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19229ac_compiler_gnu=$ac_cv_c_compiler_gnu
19230
19231
19232fi
19233echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
19234echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
19235if test "$ac_cv_cxx_static_cast" = yes; then
19236
19237cat >>confdefs.h <<\_ACEOF
19238#define HAVE_STATIC_CAST
19239_ACEOF
19240
19241fi
19242
19243
19244if test "$wxUSE_STL" = "yes"; then
19245 ac_ext=cc
19246ac_cpp='$CXXCPP $CPPFLAGS'
19247ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19248ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19249ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19250
19251
19252 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
19253echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
19254 cat >conftest.$ac_ext <<_ACEOF
19255/* confdefs.h. */
19256_ACEOF
19257cat confdefs.h >>conftest.$ac_ext
19258cat >>conftest.$ac_ext <<_ACEOF
19259/* end confdefs.h. */
19260#include <string>
19261 #include <functional>
19262 #include <algorithm>
19263 #include <vector>
19264 #include <list>
19265int
19266main ()
19267{
19268std::vector<int> moo;
19269 std::list<int> foo;
19270 std::vector<int>::iterator it =
19271 std::find_if(moo.begin(), moo.end(),
19272 std::bind2nd(std::less<int>(), 3));
19273 ;
19274 return 0;
19275}
19276_ACEOF
19277rm -f conftest.$ac_objext
19278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19279 (eval $ac_compile) 2>conftest.er1
a848cd7e 19280 ac_status=$?
ac1cb8d3
VS
19281 grep -v '^ *+' conftest.er1 >conftest.err
19282 rm -f conftest.er1
19283 cat conftest.err >&5
a848cd7e
SC
19284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19285 (exit $ac_status); } &&
ceec2216 19286 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19288 (eval $ac_try) 2>&5
19289 ac_status=$?
19290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291 (exit $ac_status); }; } &&
19292 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19294 (eval $ac_try) 2>&5
19295 ac_status=$?
19296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297 (exit $ac_status); }; }; then
19298 echo "$as_me:$LINENO: result: yes" >&5
19299echo "${ECHO_T}yes" >&6
19300else
19301 echo "$as_me: failed program was:" >&5
19302sed 's/^/| /' conftest.$ac_ext >&5
19303
19304echo "$as_me:$LINENO: result: no" >&5
19305echo "${ECHO_T}no" >&6
19306 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
19307echo "$as_me: error: Basic STL functionality missing" >&2;}
19308 { (exit 1); exit 1; }; }
19309fi
ac1cb8d3 19310rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19311
19312 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
19313echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
19314 cat >conftest.$ac_ext <<_ACEOF
19315/* confdefs.h. */
19316_ACEOF
19317cat confdefs.h >>conftest.$ac_ext
19318cat >>conftest.$ac_ext <<_ACEOF
19319/* end confdefs.h. */
19320#include <string>
19321int
19322main ()
19323{
19324std::wstring foo;
19325 ;
19326 return 0;
19327}
19328_ACEOF
19329rm -f conftest.$ac_objext
19330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19331 (eval $ac_compile) 2>conftest.er1
a848cd7e 19332 ac_status=$?
ac1cb8d3
VS
19333 grep -v '^ *+' conftest.er1 >conftest.err
19334 rm -f conftest.er1
19335 cat conftest.err >&5
a848cd7e
SC
19336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337 (exit $ac_status); } &&
ceec2216 19338 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19340 (eval $ac_try) 2>&5
19341 ac_status=$?
19342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343 (exit $ac_status); }; } &&
19344 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19346 (eval $ac_try) 2>&5
19347 ac_status=$?
19348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19349 (exit $ac_status); }; }; then
19350 echo "$as_me:$LINENO: result: yes" >&5
19351echo "${ECHO_T}yes" >&6
19352 cat >>confdefs.h <<\_ACEOF
19353#define HAVE_STD_WSTRING 1
19354_ACEOF
19355
19356else
19357 echo "$as_me: failed program was:" >&5
19358sed 's/^/| /' conftest.$ac_ext >&5
19359
19360echo "$as_me:$LINENO: result: no" >&5
19361echo "${ECHO_T}no" >&6
19362fi
ac1cb8d3 19363rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19364
19365 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
19366echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
19367 cat >conftest.$ac_ext <<_ACEOF
19368/* confdefs.h. */
19369_ACEOF
19370cat confdefs.h >>conftest.$ac_ext
19371cat >>conftest.$ac_ext <<_ACEOF
19372/* end confdefs.h. */
19373#include <string>
19374int
19375main ()
19376{
19377std::string foo, bar;
19378 foo.compare(bar);
19379 foo.compare(1, 1, bar);
19380 foo.compare(1, 1, bar, 1, 1);
19381 foo.compare("");
19382 foo.compare(1, 1, "");
19383 foo.compare(1, 1, "", 2);
19384 ;
19385 return 0;
19386}
19387_ACEOF
19388rm -f conftest.$ac_objext
19389if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19390 (eval $ac_compile) 2>conftest.er1
a848cd7e 19391 ac_status=$?
ac1cb8d3
VS
19392 grep -v '^ *+' conftest.er1 >conftest.err
19393 rm -f conftest.er1
19394 cat conftest.err >&5
a848cd7e
SC
19395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19396 (exit $ac_status); } &&
ceec2216 19397 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19399 (eval $ac_try) 2>&5
19400 ac_status=$?
19401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19402 (exit $ac_status); }; } &&
19403 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19405 (eval $ac_try) 2>&5
19406 ac_status=$?
19407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408 (exit $ac_status); }; }; then
19409 echo "$as_me:$LINENO: result: yes" >&5
19410echo "${ECHO_T}yes" >&6
19411 cat >>confdefs.h <<\_ACEOF
19412#define HAVE_STD_STRING_COMPARE 1
19413_ACEOF
19414
19415else
19416 echo "$as_me: failed program was:" >&5
19417sed 's/^/| /' conftest.$ac_ext >&5
19418
19419echo "$as_me:$LINENO: result: no" >&5
19420echo "${ECHO_T}no" >&6
19421fi
ac1cb8d3 19422rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19423
19424 if test "${ac_cv_header_hash_map+set}" = set; then
19425 echo "$as_me:$LINENO: checking for hash_map" >&5
19426echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
19427if test "${ac_cv_header_hash_map+set}" = set; then
19428 echo $ECHO_N "(cached) $ECHO_C" >&6
19429fi
19430echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
19431echo "${ECHO_T}$ac_cv_header_hash_map" >&6
19432else
19433 # Is the header compilable?
19434echo "$as_me:$LINENO: checking hash_map usability" >&5
19435echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
19436cat >conftest.$ac_ext <<_ACEOF
19437/* confdefs.h. */
19438_ACEOF
19439cat confdefs.h >>conftest.$ac_ext
19440cat >>conftest.$ac_ext <<_ACEOF
19441/* end confdefs.h. */
19442$ac_includes_default
19443#include <hash_map>
19444_ACEOF
19445rm -f conftest.$ac_objext
19446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19447 (eval $ac_compile) 2>conftest.er1
bdcade0a 19448 ac_status=$?
ac1cb8d3
VS
19449 grep -v '^ *+' conftest.er1 >conftest.err
19450 rm -f conftest.er1
19451 cat conftest.err >&5
bdcade0a
MB
19452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453 (exit $ac_status); } &&
ceec2216 19454 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19456 (eval $ac_try) 2>&5
19457 ac_status=$?
19458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19459 (exit $ac_status); }; } &&
19460 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19462 (eval $ac_try) 2>&5
19463 ac_status=$?
19464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465 (exit $ac_status); }; }; then
19466 ac_header_compiler=yes
19467else
19468 echo "$as_me: failed program was:" >&5
19469sed 's/^/| /' conftest.$ac_ext >&5
19470
19471ac_header_compiler=no
19472fi
ac1cb8d3 19473rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19474echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19475echo "${ECHO_T}$ac_header_compiler" >&6
19476
19477# Is the header present?
19478echo "$as_me:$LINENO: checking hash_map presence" >&5
19479echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
19480cat >conftest.$ac_ext <<_ACEOF
19481/* confdefs.h. */
19482_ACEOF
19483cat confdefs.h >>conftest.$ac_ext
19484cat >>conftest.$ac_ext <<_ACEOF
19485/* end confdefs.h. */
19486#include <hash_map>
19487_ACEOF
19488if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19489 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19490 ac_status=$?
19491 grep -v '^ *+' conftest.er1 >conftest.err
19492 rm -f conftest.er1
19493 cat conftest.err >&5
19494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495 (exit $ac_status); } >/dev/null; then
19496 if test -s conftest.err; then
19497 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19498 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
19499 else
19500 ac_cpp_err=
19501 fi
19502else
19503 ac_cpp_err=yes
19504fi
19505if test -z "$ac_cpp_err"; then
19506 ac_header_preproc=yes
19507else
19508 echo "$as_me: failed program was:" >&5
19509sed 's/^/| /' conftest.$ac_ext >&5
19510
19511 ac_header_preproc=no
19512fi
19513rm -f conftest.err conftest.$ac_ext
19514echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19515echo "${ECHO_T}$ac_header_preproc" >&6
19516
19517# So? What about this header?
ac1cb8d3
VS
19518case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19519 yes:no: )
bdcade0a
MB
19520 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
19521echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
19522 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
19523echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
19524 ac_header_preproc=yes
bdcade0a 19525 ;;
ac1cb8d3 19526 no:yes:* )
bdcade0a
MB
19527 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
19528echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
19529 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
19530echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
19531 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
19532echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
19533 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
19534echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
19535 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
19536echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
19537 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
19538echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
19539 (
19540 cat <<\_ASBOX
ac1cb8d3
VS
19541## ----------------------------------------- ##
19542## Report this to wx-dev@lists.wxwidgets.org ##
19543## ----------------------------------------- ##
bdcade0a
MB
19544_ASBOX
19545 ) |
19546 sed "s/^/$as_me: WARNING: /" >&2
19547 ;;
19548esac
19549echo "$as_me:$LINENO: checking for hash_map" >&5
19550echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
19551if test "${ac_cv_header_hash_map+set}" = set; then
19552 echo $ECHO_N "(cached) $ECHO_C" >&6
19553else
19554 ac_cv_header_hash_map=$ac_header_preproc
19555fi
19556echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
19557echo "${ECHO_T}$ac_cv_header_hash_map" >&6
19558
19559fi
19560if test $ac_cv_header_hash_map = yes; then
19561 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
19562echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
19563 cat >conftest.$ac_ext <<_ACEOF
19564/* confdefs.h. */
19565_ACEOF
19566cat confdefs.h >>conftest.$ac_ext
19567cat >>conftest.$ac_ext <<_ACEOF
19568/* end confdefs.h. */
19569#include <hash_map>
19570 #include <hash_set>
19571int
19572main ()
19573{
19574std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
19575 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
19576 ;
19577 return 0;
19578}
19579_ACEOF
19580rm -f conftest.$ac_objext
19581if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19582 (eval $ac_compile) 2>conftest.er1
bdcade0a 19583 ac_status=$?
ac1cb8d3
VS
19584 grep -v '^ *+' conftest.er1 >conftest.err
19585 rm -f conftest.er1
19586 cat conftest.err >&5
bdcade0a
MB
19587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588 (exit $ac_status); } &&
ceec2216 19589 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19591 (eval $ac_try) 2>&5
19592 ac_status=$?
19593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19594 (exit $ac_status); }; } &&
19595 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19597 (eval $ac_try) 2>&5
19598 ac_status=$?
19599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600 (exit $ac_status); }; }; then
19601 echo "$as_me:$LINENO: result: yes" >&5
19602echo "${ECHO_T}yes" >&6
19603 cat >>confdefs.h <<\_ACEOF
19604#define HAVE_HASH_MAP 1
19605_ACEOF
19606
19607 cat >>confdefs.h <<\_ACEOF
19608#define HAVE_STD_HASH_MAP 1
19609_ACEOF
19610
19611else
19612 echo "$as_me: failed program was:" >&5
19613sed 's/^/| /' conftest.$ac_ext >&5
19614
19615echo "$as_me:$LINENO: result: no" >&5
19616echo "${ECHO_T}no" >&6
19617fi
ac1cb8d3 19618rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19619
19620fi
19621
19622
19623
19624 if test "${ac_cv_header_ext_hash_map+set}" = set; then
19625 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
19626echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
19627if test "${ac_cv_header_ext_hash_map+set}" = set; then
19628 echo $ECHO_N "(cached) $ECHO_C" >&6
19629fi
19630echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
19631echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
19632else
19633 # Is the header compilable?
19634echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
19635echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
19636cat >conftest.$ac_ext <<_ACEOF
19637/* confdefs.h. */
19638_ACEOF
19639cat confdefs.h >>conftest.$ac_ext
19640cat >>conftest.$ac_ext <<_ACEOF
19641/* end confdefs.h. */
19642$ac_includes_default
19643#include <ext/hash_map>
19644_ACEOF
19645rm -f conftest.$ac_objext
19646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19647 (eval $ac_compile) 2>conftest.er1
bdcade0a 19648 ac_status=$?
ac1cb8d3
VS
19649 grep -v '^ *+' conftest.er1 >conftest.err
19650 rm -f conftest.er1
19651 cat conftest.err >&5
bdcade0a
MB
19652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653 (exit $ac_status); } &&
ceec2216 19654 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19656 (eval $ac_try) 2>&5
19657 ac_status=$?
19658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659 (exit $ac_status); }; } &&
19660 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19662 (eval $ac_try) 2>&5
19663 ac_status=$?
19664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665 (exit $ac_status); }; }; then
19666 ac_header_compiler=yes
19667else
19668 echo "$as_me: failed program was:" >&5
19669sed 's/^/| /' conftest.$ac_ext >&5
19670
19671ac_header_compiler=no
19672fi
ac1cb8d3 19673rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19674echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19675echo "${ECHO_T}$ac_header_compiler" >&6
19676
19677# Is the header present?
19678echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
19679echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
19680cat >conftest.$ac_ext <<_ACEOF
19681/* confdefs.h. */
19682_ACEOF
19683cat confdefs.h >>conftest.$ac_ext
19684cat >>conftest.$ac_ext <<_ACEOF
19685/* end confdefs.h. */
19686#include <ext/hash_map>
19687_ACEOF
19688if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19689 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19690 ac_status=$?
19691 grep -v '^ *+' conftest.er1 >conftest.err
19692 rm -f conftest.er1
19693 cat conftest.err >&5
19694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695 (exit $ac_status); } >/dev/null; then
19696 if test -s conftest.err; then
19697 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19698 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
19699 else
19700 ac_cpp_err=
19701 fi
19702else
19703 ac_cpp_err=yes
19704fi
19705if test -z "$ac_cpp_err"; then
19706 ac_header_preproc=yes
19707else
19708 echo "$as_me: failed program was:" >&5
19709sed 's/^/| /' conftest.$ac_ext >&5
19710
19711 ac_header_preproc=no
19712fi
19713rm -f conftest.err conftest.$ac_ext
19714echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19715echo "${ECHO_T}$ac_header_preproc" >&6
19716
19717# So? What about this header?
ac1cb8d3
VS
19718case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19719 yes:no: )
bdcade0a
MB
19720 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
19721echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
19722 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
19723echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
19724 ac_header_preproc=yes
bdcade0a 19725 ;;
ac1cb8d3 19726 no:yes:* )
bdcade0a
MB
19727 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
19728echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
19729 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
19730echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
19731 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
19732echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
19733 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
19734echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
19735 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
19736echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
19737 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
19738echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
19739 (
19740 cat <<\_ASBOX
ac1cb8d3
VS
19741## ----------------------------------------- ##
19742## Report this to wx-dev@lists.wxwidgets.org ##
19743## ----------------------------------------- ##
bdcade0a
MB
19744_ASBOX
19745 ) |
19746 sed "s/^/$as_me: WARNING: /" >&2
19747 ;;
19748esac
19749echo "$as_me:$LINENO: checking for ext/hash_map" >&5
19750echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
19751if test "${ac_cv_header_ext_hash_map+set}" = set; then
19752 echo $ECHO_N "(cached) $ECHO_C" >&6
19753else
19754 ac_cv_header_ext_hash_map=$ac_header_preproc
19755fi
19756echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
19757echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
19758
19759fi
19760if test $ac_cv_header_ext_hash_map = yes; then
19761 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
19762echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
19763 cat >conftest.$ac_ext <<_ACEOF
19764/* confdefs.h. */
19765_ACEOF
19766cat confdefs.h >>conftest.$ac_ext
19767cat >>conftest.$ac_ext <<_ACEOF
19768/* end confdefs.h. */
19769#include <ext/hash_map>
19770 #include <ext/hash_set>
19771int
19772main ()
19773{
19774__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
19775 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
19776 ;
19777 return 0;
19778}
19779_ACEOF
19780rm -f conftest.$ac_objext
19781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19782 (eval $ac_compile) 2>conftest.er1
bdcade0a 19783 ac_status=$?
ac1cb8d3
VS
19784 grep -v '^ *+' conftest.er1 >conftest.err
19785 rm -f conftest.er1
19786 cat conftest.err >&5
bdcade0a
MB
19787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19788 (exit $ac_status); } &&
ceec2216 19789 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19791 (eval $ac_try) 2>&5
19792 ac_status=$?
19793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19794 (exit $ac_status); }; } &&
19795 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19797 (eval $ac_try) 2>&5
19798 ac_status=$?
19799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800 (exit $ac_status); }; }; then
19801 echo "$as_me:$LINENO: result: yes" >&5
19802echo "${ECHO_T}yes" >&6
19803 cat >>confdefs.h <<\_ACEOF
19804#define HAVE_EXT_HASH_MAP 1
19805_ACEOF
19806
19807 cat >>confdefs.h <<\_ACEOF
19808#define HAVE_GNU_CXX_HASH_MAP 1
19809_ACEOF
19810
19811else
19812 echo "$as_me: failed program was:" >&5
19813sed 's/^/| /' conftest.$ac_ext >&5
19814
19815echo "$as_me:$LINENO: result: no" >&5
19816echo "${ECHO_T}no" >&6
19817fi
ac1cb8d3 19818rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19819
19820fi
19821
19822
a848cd7e
SC
19823
19824 ac_ext=c
19825ac_cpp='$CPP $CPPFLAGS'
19826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19828ac_compiler_gnu=$ac_cv_c_compiler_gnu
19829
19830fi
19831
19832
19833SEARCH_INCLUDE="\
19834 /usr/local/include \
19835 \
19836 /usr/Motif-2.1/include \
19837 /usr/Motif-1.2/include \
19838 /usr/include/Motif1.2 \
19839 /opt/xpm/include/X11 \
19840 /opt/GBxpm/include/ \
19841 /opt/GBxpm/X11/include/ \
19842 \
19843 /usr/dt/include \
19844 /usr/openwin/include \
19845 \
19846 /usr/include/Xm \
19847 \
19848 /usr/X11R6/include \
19849 /usr/X11R6.4/include \
19850 /usr/X11R5/include \
19851 /usr/X11R4/include \
19852 \
19853 /usr/include/X11R6 \
19854 /usr/include/X11R5 \
19855 /usr/include/X11R4 \
19856 \
19857 /usr/local/X11R6/include \
19858 /usr/local/X11R5/include \
19859 /usr/local/X11R4/include \
19860 \
19861 /usr/local/include/X11R6 \
19862 /usr/local/include/X11R5 \
19863 /usr/local/include/X11R4 \
19864 \
19865 /usr/X11/include \
19866 /usr/include/X11 \
19867 /usr/local/X11/include \
19868 /usr/local/include/X11 \
19869 \
19870 /usr/X386/include \
19871 /usr/x386/include \
19872 /usr/XFree86/include/X11 \
19873 \
19874 X:/XFree86/include \
19875 X:/XFree86/include/X11 \
19876 \
19877 /usr/include/gtk \
19878 /usr/local/include/gtk \
19879 /usr/include/glib \
19880 /usr/local/include/glib \
19881 \
19882 /usr/include/qt \
19883 /usr/local/include/qt \
19884 \
19885 /usr/local/arm/3.3.2/include \
19886 \
19887 /usr/include/windows \
19888 /usr/include/wine \
19889 /usr/local/include/wine \
19890 \
19891 /usr/unsupported/include \
19892 /usr/athena/include \
19893 /usr/local/x11r5/include \
19894 /usr/lpp/Xamples/include \
19895 \
19896 /usr/openwin/share/include"
19897
19898SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64"
19899
19900
19901cat >confcache <<\_ACEOF
19902# This file is a shell script that caches the results of configure
19903# tests run on this system so they can be shared between configure
19904# scripts and configure runs, see configure's option --config-cache.
19905# It is not useful on other systems. If it contains results you don't
19906# want to keep, you may remove or edit it.
19907#
19908# config.status only pays attention to the cache file if you give it
19909# the --recheck option to rerun configure.
19910#
19911# `ac_cv_env_foo' variables (set or unset) will be overridden when
19912# loading this file, other *unset* `ac_cv_foo' will be assigned the
19913# following values.
19914
19915_ACEOF
19916
19917# The following way of writing the cache mishandles newlines in values,
19918# but we know of no workaround that is simple, portable, and efficient.
19919# So, don't put newlines in cache variables' values.
19920# Ultrix sh set writes to stderr and can't be redirected directly,
19921# and sets the high bit in the cache file unless we assign to the vars.
19922{
19923 (set) 2>&1 |
19924 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19925 *ac_space=\ *)
19926 # `set' does not quote correctly, so add quotes (double-quote
19927 # substitution turns \\\\ into \\, and sed turns \\ into \).
19928 sed -n \
ac1cb8d3
VS
19929 "s/'/'\\\\''/g;
19930 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
19931 ;;
19932 *)
19933 # `set' quotes correctly as required by POSIX, so do not add quotes.
19934 sed -n \
ac1cb8d3 19935 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
19936 ;;
19937 esac;
19938} |
19939 sed '
19940 t clear
19941 : clear
19942 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19943 t end
19944 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19945 : end' >>confcache
19946if diff $cache_file confcache >/dev/null 2>&1; then :; else
19947 if test -w $cache_file; then
19948 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19949 cat confcache >$cache_file
19950 else
19951 echo "not updating unwritable cache $cache_file"
19952 fi
19953fi
19954rm -f confcache
19955
19956if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
19957 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
19958echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
19959if test "${wx_cv_lib_glibc21+set}" = set; then
19960 echo $ECHO_N "(cached) $ECHO_C" >&6
19961else
19962
19963 cat >conftest.$ac_ext <<_ACEOF
19964/* confdefs.h. */
19965_ACEOF
19966cat confdefs.h >>conftest.$ac_ext
19967cat >>conftest.$ac_ext <<_ACEOF
19968/* end confdefs.h. */
19969#include <features.h>
19970int
19971main ()
19972{
19973
19974 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
19975 #error not glibc2.1
19976 #endif
19977
19978 ;
19979 return 0;
19980}
19981_ACEOF
19982rm -f conftest.$ac_objext
19983if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19984 (eval $ac_compile) 2>conftest.er1
a848cd7e 19985 ac_status=$?
ac1cb8d3
VS
19986 grep -v '^ *+' conftest.er1 >conftest.err
19987 rm -f conftest.er1
19988 cat conftest.err >&5
a848cd7e
SC
19989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990 (exit $ac_status); } &&
ceec2216 19991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19993 (eval $ac_try) 2>&5
19994 ac_status=$?
19995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996 (exit $ac_status); }; } &&
19997 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19999 (eval $ac_try) 2>&5
20000 ac_status=$?
20001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002 (exit $ac_status); }; }; then
20003
20004 wx_cv_lib_glibc21=yes
20005
20006else
20007 echo "$as_me: failed program was:" >&5
20008sed 's/^/| /' conftest.$ac_ext >&5
20009
20010
20011 wx_cv_lib_glibc21=no
20012
20013
20014fi
ac1cb8d3 20015rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20016
20017fi
20018echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
20019echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
20020 if test "$wx_cv_lib_glibc21" = "yes"; then
20021 cat >>confdefs.h <<\_ACEOF
20022#define wxHAVE_GLIBC2 1
20023_ACEOF
20024
20025 fi
20026fi
20027
20028if test "x$wx_cv_lib_glibc21" = "xyes"; then
20029 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
20030 cat >>confdefs.h <<\_ACEOF
20031#define _GNU_SOURCE 1
20032_ACEOF
20033
20034 fi
20035fi
20036
20037
20038
20039if test "$wxUSE_REGEX" != "no"; then
20040 cat >>confdefs.h <<\_ACEOF
20041#define wxUSE_REGEX 1
20042_ACEOF
20043
20044
20045 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
20046 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
20047echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
20048 wxUSE_REGEX=builtin
20049 fi
20050
20051 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
20052 if test "${ac_cv_header_regex_h+set}" = set; then
20053 echo "$as_me:$LINENO: checking for regex.h" >&5
20054echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20055if test "${ac_cv_header_regex_h+set}" = set; then
20056 echo $ECHO_N "(cached) $ECHO_C" >&6
20057fi
20058echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20059echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20060else
20061 # Is the header compilable?
20062echo "$as_me:$LINENO: checking regex.h usability" >&5
20063echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
20064cat >conftest.$ac_ext <<_ACEOF
20065/* confdefs.h. */
20066_ACEOF
20067cat confdefs.h >>conftest.$ac_ext
20068cat >>conftest.$ac_ext <<_ACEOF
20069/* end confdefs.h. */
20070$ac_includes_default
20071#include <regex.h>
20072_ACEOF
20073rm -f conftest.$ac_objext
20074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20075 (eval $ac_compile) 2>conftest.er1
a848cd7e 20076 ac_status=$?
ac1cb8d3
VS
20077 grep -v '^ *+' conftest.er1 >conftest.err
20078 rm -f conftest.er1
20079 cat conftest.err >&5
a848cd7e
SC
20080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20081 (exit $ac_status); } &&
ceec2216 20082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20084 (eval $ac_try) 2>&5
20085 ac_status=$?
20086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20087 (exit $ac_status); }; } &&
20088 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20090 (eval $ac_try) 2>&5
20091 ac_status=$?
20092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093 (exit $ac_status); }; }; then
20094 ac_header_compiler=yes
20095else
20096 echo "$as_me: failed program was:" >&5
20097sed 's/^/| /' conftest.$ac_ext >&5
20098
20099ac_header_compiler=no
20100fi
ac1cb8d3 20101rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20102echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20103echo "${ECHO_T}$ac_header_compiler" >&6
20104
20105# Is the header present?
20106echo "$as_me:$LINENO: checking regex.h presence" >&5
20107echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
20108cat >conftest.$ac_ext <<_ACEOF
20109/* confdefs.h. */
20110_ACEOF
20111cat confdefs.h >>conftest.$ac_ext
20112cat >>conftest.$ac_ext <<_ACEOF
20113/* end confdefs.h. */
20114#include <regex.h>
20115_ACEOF
20116if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20117 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20118 ac_status=$?
20119 grep -v '^ *+' conftest.er1 >conftest.err
20120 rm -f conftest.er1
20121 cat conftest.err >&5
20122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123 (exit $ac_status); } >/dev/null; then
20124 if test -s conftest.err; then
20125 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20126 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20127 else
20128 ac_cpp_err=
20129 fi
20130else
20131 ac_cpp_err=yes
20132fi
20133if test -z "$ac_cpp_err"; then
20134 ac_header_preproc=yes
20135else
20136 echo "$as_me: failed program was:" >&5
20137sed 's/^/| /' conftest.$ac_ext >&5
20138
20139 ac_header_preproc=no
20140fi
20141rm -f conftest.err conftest.$ac_ext
20142echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20143echo "${ECHO_T}$ac_header_preproc" >&6
20144
20145# So? What about this header?
ac1cb8d3
VS
20146case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20147 yes:no: )
a848cd7e
SC
20148 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
20149echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20150 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
20151echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
20152 ac_header_preproc=yes
a848cd7e 20153 ;;
ac1cb8d3 20154 no:yes:* )
a848cd7e
SC
20155 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
20156echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20157 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
20158echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
20159 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
20160echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
20161 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
20162echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20163 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
20164echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20165 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
20166echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20167 (
20168 cat <<\_ASBOX
ac1cb8d3
VS
20169## ----------------------------------------- ##
20170## Report this to wx-dev@lists.wxwidgets.org ##
20171## ----------------------------------------- ##
a848cd7e
SC
20172_ASBOX
20173 ) |
20174 sed "s/^/$as_me: WARNING: /" >&2
20175 ;;
20176esac
20177echo "$as_me:$LINENO: checking for regex.h" >&5
20178echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20179if test "${ac_cv_header_regex_h+set}" = set; then
20180 echo $ECHO_N "(cached) $ECHO_C" >&6
20181else
20182 ac_cv_header_regex_h=$ac_header_preproc
20183fi
20184echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20185echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20186
20187fi
20188if test $ac_cv_header_regex_h = yes; then
20189
20190for ac_func in regcomp
20191do
20192as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20193echo "$as_me:$LINENO: checking for $ac_func" >&5
20194echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20195if eval "test \"\${$as_ac_var+set}\" = set"; then
20196 echo $ECHO_N "(cached) $ECHO_C" >&6
20197else
20198 cat >conftest.$ac_ext <<_ACEOF
20199/* confdefs.h. */
20200_ACEOF
20201cat confdefs.h >>conftest.$ac_ext
20202cat >>conftest.$ac_ext <<_ACEOF
20203/* end confdefs.h. */
ac1cb8d3
VS
20204/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20205 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20206#define $ac_func innocuous_$ac_func
20207
a848cd7e
SC
20208/* System header to define __stub macros and hopefully few prototypes,
20209 which can conflict with char $ac_func (); below.
20210 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20211 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 20212
a848cd7e
SC
20213#ifdef __STDC__
20214# include <limits.h>
20215#else
20216# include <assert.h>
20217#endif
ac1cb8d3
VS
20218
20219#undef $ac_func
20220
a848cd7e
SC
20221/* Override any gcc2 internal prototype to avoid an error. */
20222#ifdef __cplusplus
20223extern "C"
20224{
20225#endif
20226/* We use char because int might match the return type of a gcc2
20227 builtin and then its argument prototype would still apply. */
20228char $ac_func ();
20229/* The GNU C library defines this for functions which it implements
20230 to always fail with ENOSYS. Some functions are actually named
20231 something starting with __ and the normal name is an alias. */
20232#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20233choke me
20234#else
20235char (*f) () = $ac_func;
20236#endif
20237#ifdef __cplusplus
20238}
20239#endif
20240
20241int
20242main ()
20243{
20244return f != $ac_func;
20245 ;
20246 return 0;
20247}
20248_ACEOF
20249rm -f conftest.$ac_objext conftest$ac_exeext
20250if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20251 (eval $ac_link) 2>conftest.er1
a848cd7e 20252 ac_status=$?
ac1cb8d3
VS
20253 grep -v '^ *+' conftest.er1 >conftest.err
20254 rm -f conftest.er1
20255 cat conftest.err >&5
a848cd7e
SC
20256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20257 (exit $ac_status); } &&
ceec2216 20258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20260 (eval $ac_try) 2>&5
20261 ac_status=$?
20262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20263 (exit $ac_status); }; } &&
20264 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20266 (eval $ac_try) 2>&5
20267 ac_status=$?
20268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20269 (exit $ac_status); }; }; then
20270 eval "$as_ac_var=yes"
20271else
20272 echo "$as_me: failed program was:" >&5
20273sed 's/^/| /' conftest.$ac_ext >&5
20274
20275eval "$as_ac_var=no"
20276fi
ac1cb8d3
VS
20277rm -f conftest.err conftest.$ac_objext \
20278 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20279fi
20280echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20281echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20282if test `eval echo '${'$as_ac_var'}'` = yes; then
20283 cat >>confdefs.h <<_ACEOF
20284#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20285_ACEOF
20286
20287fi
20288done
20289
20290fi
20291
20292
20293
20294 if test "x$ac_cv_func_regcomp" != "xyes"; then
20295 if test "$wxUSE_REGEX" = "sys" ; then
20296 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
20297echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
20298 { (exit 1); exit 1; }; }
20299 else
20300 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
20301echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
20302 wxUSE_REGEX=builtin
20303 fi
20304 else
20305 wxUSE_REGEX=sys
20306 cat >>confdefs.h <<\_ACEOF
20307#define WX_NO_REGEX_ADVANCED 1
20308_ACEOF
20309
20310 fi
20311 fi
20312fi
20313
20314
20315ZLIB_LINK=
20316if test "$wxUSE_ZLIB" != "no" ; then
20317 cat >>confdefs.h <<\_ACEOF
20318#define wxUSE_ZLIB 1
20319_ACEOF
20320
20321
20322 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
20323 if test "$USE_DARWIN" = 1; then
20324 system_zlib_h_ok="yes"
20325 else
20326 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
20327echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
20328if test "${ac_cv_header_zlib_h+set}" = set; then
20329 echo $ECHO_N "(cached) $ECHO_C" >&6
20330else
20331 if test "$cross_compiling" = yes; then
20332 unset ac_cv_header_zlib_h
20333
20334else
20335 cat >conftest.$ac_ext <<_ACEOF
20336/* confdefs.h. */
20337_ACEOF
20338cat confdefs.h >>conftest.$ac_ext
20339cat >>conftest.$ac_ext <<_ACEOF
20340/* end confdefs.h. */
20341
20342 #include <zlib.h>
20343 #include <stdio.h>
20344
20345 int main()
20346 {
20347 FILE *f=fopen("conftestval", "w");
20348 if (!f) exit(1);
20349 fprintf(f, "%s",
20350 ZLIB_VERSION[0] == '1' &&
20351 (ZLIB_VERSION[2] > '1' ||
20352 (ZLIB_VERSION[2] == '1' &&
20353 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
20354 exit(0);
20355 }
20356
20357_ACEOF
20358rm -f conftest$ac_exeext
20359if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20360 (eval $ac_link) 2>&5
20361 ac_status=$?
20362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20365 (eval $ac_try) 2>&5
20366 ac_status=$?
20367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368 (exit $ac_status); }; }; then
20369 ac_cv_header_zlib_h=`cat conftestval`
20370else
20371 echo "$as_me: program exited with status $ac_status" >&5
20372echo "$as_me: failed program was:" >&5
20373sed 's/^/| /' conftest.$ac_ext >&5
20374
20375( exit $ac_status )
20376ac_cv_header_zlib_h=no
20377fi
ac1cb8d3 20378rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20379fi
20380
20381fi
20382echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20383echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20384 if test "${ac_cv_header_zlib_h+set}" = set; then
20385 echo "$as_me:$LINENO: checking for zlib.h" >&5
20386echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
20387if test "${ac_cv_header_zlib_h+set}" = set; then
20388 echo $ECHO_N "(cached) $ECHO_C" >&6
20389fi
20390echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20391echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20392else
20393 # Is the header compilable?
20394echo "$as_me:$LINENO: checking zlib.h usability" >&5
20395echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
20396cat >conftest.$ac_ext <<_ACEOF
20397/* confdefs.h. */
20398_ACEOF
20399cat confdefs.h >>conftest.$ac_ext
20400cat >>conftest.$ac_ext <<_ACEOF
20401/* end confdefs.h. */
20402$ac_includes_default
20403#include <zlib.h>
20404_ACEOF
20405rm -f conftest.$ac_objext
20406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20407 (eval $ac_compile) 2>conftest.er1
a848cd7e 20408 ac_status=$?
ac1cb8d3
VS
20409 grep -v '^ *+' conftest.er1 >conftest.err
20410 rm -f conftest.er1
20411 cat conftest.err >&5
a848cd7e
SC
20412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413 (exit $ac_status); } &&
ceec2216 20414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20416 (eval $ac_try) 2>&5
20417 ac_status=$?
20418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20419 (exit $ac_status); }; } &&
20420 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20422 (eval $ac_try) 2>&5
20423 ac_status=$?
20424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20425 (exit $ac_status); }; }; then
20426 ac_header_compiler=yes
20427else
20428 echo "$as_me: failed program was:" >&5
20429sed 's/^/| /' conftest.$ac_ext >&5
20430
20431ac_header_compiler=no
20432fi
ac1cb8d3 20433rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20434echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20435echo "${ECHO_T}$ac_header_compiler" >&6
20436
20437# Is the header present?
20438echo "$as_me:$LINENO: checking zlib.h presence" >&5
20439echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
20440cat >conftest.$ac_ext <<_ACEOF
20441/* confdefs.h. */
20442_ACEOF
20443cat confdefs.h >>conftest.$ac_ext
20444cat >>conftest.$ac_ext <<_ACEOF
20445/* end confdefs.h. */
20446#include <zlib.h>
20447_ACEOF
20448if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20449 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20450 ac_status=$?
20451 grep -v '^ *+' conftest.er1 >conftest.err
20452 rm -f conftest.er1
20453 cat conftest.err >&5
20454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20455 (exit $ac_status); } >/dev/null; then
20456 if test -s conftest.err; then
20457 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20458 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20459 else
20460 ac_cpp_err=
20461 fi
20462else
20463 ac_cpp_err=yes
20464fi
20465if test -z "$ac_cpp_err"; then
20466 ac_header_preproc=yes
20467else
20468 echo "$as_me: failed program was:" >&5
20469sed 's/^/| /' conftest.$ac_ext >&5
20470
20471 ac_header_preproc=no
20472fi
20473rm -f conftest.err conftest.$ac_ext
20474echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20475echo "${ECHO_T}$ac_header_preproc" >&6
20476
20477# So? What about this header?
ac1cb8d3
VS
20478case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20479 yes:no: )
a848cd7e
SC
20480 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
20481echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20482 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
20483echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
20484 ac_header_preproc=yes
a848cd7e 20485 ;;
ac1cb8d3 20486 no:yes:* )
a848cd7e
SC
20487 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
20488echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20489 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
20490echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
20491 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
20492echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
20493 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
20494echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20495 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
20496echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20497 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
20498echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20499 (
20500 cat <<\_ASBOX
ac1cb8d3
VS
20501## ----------------------------------------- ##
20502## Report this to wx-dev@lists.wxwidgets.org ##
20503## ----------------------------------------- ##
a848cd7e
SC
20504_ASBOX
20505 ) |
20506 sed "s/^/$as_me: WARNING: /" >&2
20507 ;;
20508esac
20509echo "$as_me:$LINENO: checking for zlib.h" >&5
20510echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
20511if test "${ac_cv_header_zlib_h+set}" = set; then
20512 echo $ECHO_N "(cached) $ECHO_C" >&6
20513else
20514 ac_cv_header_zlib_h=$ac_header_preproc
20515fi
20516echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20517echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20518
20519fi
20520
20521
20522
20523 system_zlib_h_ok=$ac_cv_header_zlib_h
20524 fi
20525
20526 if test "$system_zlib_h_ok" = "yes"; then
20527 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
20528echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
20529if test "${ac_cv_lib_z_deflate+set}" = set; then
20530 echo $ECHO_N "(cached) $ECHO_C" >&6
20531else
20532 ac_check_lib_save_LIBS=$LIBS
20533LIBS="-lz $LIBS"
20534cat >conftest.$ac_ext <<_ACEOF
20535/* confdefs.h. */
20536_ACEOF
20537cat confdefs.h >>conftest.$ac_ext
20538cat >>conftest.$ac_ext <<_ACEOF
20539/* end confdefs.h. */
20540
20541/* Override any gcc2 internal prototype to avoid an error. */
20542#ifdef __cplusplus
20543extern "C"
20544#endif
20545/* We use char because int might match the return type of a gcc2
20546 builtin and then its argument prototype would still apply. */
20547char deflate ();
20548int
20549main ()
20550{
20551deflate ();
20552 ;
20553 return 0;
20554}
20555_ACEOF
20556rm -f conftest.$ac_objext conftest$ac_exeext
20557if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20558 (eval $ac_link) 2>conftest.er1
a848cd7e 20559 ac_status=$?
ac1cb8d3
VS
20560 grep -v '^ *+' conftest.er1 >conftest.err
20561 rm -f conftest.er1
20562 cat conftest.err >&5
a848cd7e
SC
20563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20564 (exit $ac_status); } &&
ceec2216 20565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20567 (eval $ac_try) 2>&5
20568 ac_status=$?
20569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20570 (exit $ac_status); }; } &&
20571 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20573 (eval $ac_try) 2>&5
20574 ac_status=$?
20575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20576 (exit $ac_status); }; }; then
20577 ac_cv_lib_z_deflate=yes
20578else
20579 echo "$as_me: failed program was:" >&5
20580sed 's/^/| /' conftest.$ac_ext >&5
20581
20582ac_cv_lib_z_deflate=no
20583fi
ac1cb8d3
VS
20584rm -f conftest.err conftest.$ac_objext \
20585 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20586LIBS=$ac_check_lib_save_LIBS
20587fi
20588echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
20589echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
20590if test $ac_cv_lib_z_deflate = yes; then
20591 ZLIB_LINK=" -lz"
20592fi
20593
20594 fi
20595
20596 if test "x$ZLIB_LINK" = "x" ; then
20597 if test "$wxUSE_ZLIB" = "sys" ; then
20598 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
20599echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
20600 { (exit 1); exit 1; }; }
20601 else
20602 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
20603echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
20604 wxUSE_ZLIB=builtin
20605 fi
20606 else
20607 wxUSE_ZLIB=sys
20608 fi
20609 fi
20610fi
20611
20612
20613PNG_LINK=
20614if test "$wxUSE_LIBPNG" != "no" ; then
20615 cat >>confdefs.h <<\_ACEOF
20616#define wxUSE_LIBPNG 1
20617_ACEOF
20618
20619
20620 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
20621 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
20622echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
20623 wxUSE_LIBPNG=sys
20624 fi
20625
20626 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
20627 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
20628echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
20629 wxUSE_LIBPNG=builtin
20630 fi
20631
20632 if test "$wxUSE_MGL" != 1 ; then
20633 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
20634 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
20635echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
20636if test "${ac_cv_header_png_h+set}" = set; then
20637 echo $ECHO_N "(cached) $ECHO_C" >&6
20638else
20639 if test "$cross_compiling" = yes; then
20640 unset ac_cv_header_png_h
20641
20642else
20643 cat >conftest.$ac_ext <<_ACEOF
20644/* confdefs.h. */
20645_ACEOF
20646cat confdefs.h >>conftest.$ac_ext
20647cat >>conftest.$ac_ext <<_ACEOF
20648/* end confdefs.h. */
20649
20650 #include <png.h>
20651 #include <stdio.h>
20652
20653 int main()
20654 {
20655 FILE *f=fopen("conftestval", "w");
20656 if (!f) exit(1);
20657 fprintf(f, "%s",
20658 PNG_LIBPNG_VER > 90 ? "yes" : "no");
20659 exit(0);
20660 }
20661
20662_ACEOF
20663rm -f conftest$ac_exeext
20664if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20665 (eval $ac_link) 2>&5
20666 ac_status=$?
20667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20668 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20670 (eval $ac_try) 2>&5
20671 ac_status=$?
20672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20673 (exit $ac_status); }; }; then
20674 ac_cv_header_png_h=`cat conftestval`
20675else
20676 echo "$as_me: program exited with status $ac_status" >&5
20677echo "$as_me: failed program was:" >&5
20678sed 's/^/| /' conftest.$ac_ext >&5
20679
20680( exit $ac_status )
20681ac_cv_header_png_h=no
20682fi
ac1cb8d3 20683rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20684fi
20685
20686fi
20687echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20688echo "${ECHO_T}$ac_cv_header_png_h" >&6
20689 if test "${ac_cv_header_png_h+set}" = set; then
20690 echo "$as_me:$LINENO: checking for png.h" >&5
20691echo $ECHO_N "checking for png.h... $ECHO_C" >&6
20692if test "${ac_cv_header_png_h+set}" = set; then
20693 echo $ECHO_N "(cached) $ECHO_C" >&6
20694fi
20695echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20696echo "${ECHO_T}$ac_cv_header_png_h" >&6
20697else
20698 # Is the header compilable?
20699echo "$as_me:$LINENO: checking png.h usability" >&5
20700echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
20701cat >conftest.$ac_ext <<_ACEOF
20702/* confdefs.h. */
20703_ACEOF
20704cat confdefs.h >>conftest.$ac_ext
20705cat >>conftest.$ac_ext <<_ACEOF
20706/* end confdefs.h. */
20707$ac_includes_default
20708#include <png.h>
20709_ACEOF
20710rm -f conftest.$ac_objext
20711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20712 (eval $ac_compile) 2>conftest.er1
a848cd7e 20713 ac_status=$?
ac1cb8d3
VS
20714 grep -v '^ *+' conftest.er1 >conftest.err
20715 rm -f conftest.er1
20716 cat conftest.err >&5
a848cd7e
SC
20717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20718 (exit $ac_status); } &&
ceec2216 20719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20721 (eval $ac_try) 2>&5
20722 ac_status=$?
20723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20724 (exit $ac_status); }; } &&
20725 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20727 (eval $ac_try) 2>&5
20728 ac_status=$?
20729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20730 (exit $ac_status); }; }; then
20731 ac_header_compiler=yes
20732else
20733 echo "$as_me: failed program was:" >&5
20734sed 's/^/| /' conftest.$ac_ext >&5
20735
20736ac_header_compiler=no
20737fi
ac1cb8d3 20738rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20739echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20740echo "${ECHO_T}$ac_header_compiler" >&6
20741
20742# Is the header present?
20743echo "$as_me:$LINENO: checking png.h presence" >&5
20744echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
20745cat >conftest.$ac_ext <<_ACEOF
20746/* confdefs.h. */
20747_ACEOF
20748cat confdefs.h >>conftest.$ac_ext
20749cat >>conftest.$ac_ext <<_ACEOF
20750/* end confdefs.h. */
20751#include <png.h>
20752_ACEOF
20753if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20754 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20755 ac_status=$?
20756 grep -v '^ *+' conftest.er1 >conftest.err
20757 rm -f conftest.er1
20758 cat conftest.err >&5
20759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20760 (exit $ac_status); } >/dev/null; then
20761 if test -s conftest.err; then
20762 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20763 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20764 else
20765 ac_cpp_err=
20766 fi
20767else
20768 ac_cpp_err=yes
20769fi
20770if test -z "$ac_cpp_err"; then
20771 ac_header_preproc=yes
20772else
20773 echo "$as_me: failed program was:" >&5
20774sed 's/^/| /' conftest.$ac_ext >&5
20775
20776 ac_header_preproc=no
20777fi
20778rm -f conftest.err conftest.$ac_ext
20779echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20780echo "${ECHO_T}$ac_header_preproc" >&6
20781
20782# So? What about this header?
ac1cb8d3
VS
20783case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20784 yes:no: )
a848cd7e
SC
20785 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
20786echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20787 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
20788echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
20789 ac_header_preproc=yes
a848cd7e 20790 ;;
ac1cb8d3 20791 no:yes:* )
a848cd7e
SC
20792 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
20793echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20794 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
20795echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
20796 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
20797echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
20798 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
20799echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20800 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
20801echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20802 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
20803echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20804 (
20805 cat <<\_ASBOX
ac1cb8d3
VS
20806## ----------------------------------------- ##
20807## Report this to wx-dev@lists.wxwidgets.org ##
20808## ----------------------------------------- ##
a848cd7e
SC
20809_ASBOX
20810 ) |
20811 sed "s/^/$as_me: WARNING: /" >&2
20812 ;;
20813esac
20814echo "$as_me:$LINENO: checking for png.h" >&5
20815echo $ECHO_N "checking for png.h... $ECHO_C" >&6
20816if test "${ac_cv_header_png_h+set}" = set; then
20817 echo $ECHO_N "(cached) $ECHO_C" >&6
20818else
20819 ac_cv_header_png_h=$ac_header_preproc
20820fi
20821echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20822echo "${ECHO_T}$ac_cv_header_png_h" >&6
20823
20824fi
20825
20826
20827
20828 if test "$ac_cv_header_png_h" = "yes"; then
20829 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
20830echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
20831if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
20832 echo $ECHO_N "(cached) $ECHO_C" >&6
20833else
20834 ac_check_lib_save_LIBS=$LIBS
20835LIBS="-lpng -lz -lm $LIBS"
20836cat >conftest.$ac_ext <<_ACEOF
20837/* confdefs.h. */
20838_ACEOF
20839cat confdefs.h >>conftest.$ac_ext
20840cat >>conftest.$ac_ext <<_ACEOF
20841/* end confdefs.h. */
20842
20843/* Override any gcc2 internal prototype to avoid an error. */
20844#ifdef __cplusplus
20845extern "C"
20846#endif
20847/* We use char because int might match the return type of a gcc2
20848 builtin and then its argument prototype would still apply. */
20849char png_check_sig ();
20850int
20851main ()
20852{
20853png_check_sig ();
20854 ;
20855 return 0;
20856}
20857_ACEOF
20858rm -f conftest.$ac_objext conftest$ac_exeext
20859if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20860 (eval $ac_link) 2>conftest.er1
a848cd7e 20861 ac_status=$?
ac1cb8d3
VS
20862 grep -v '^ *+' conftest.er1 >conftest.err
20863 rm -f conftest.er1
20864 cat conftest.err >&5
a848cd7e
SC
20865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20866 (exit $ac_status); } &&
ceec2216 20867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20869 (eval $ac_try) 2>&5
20870 ac_status=$?
20871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872 (exit $ac_status); }; } &&
20873 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20875 (eval $ac_try) 2>&5
20876 ac_status=$?
20877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20878 (exit $ac_status); }; }; then
20879 ac_cv_lib_png_png_check_sig=yes
20880else
20881 echo "$as_me: failed program was:" >&5
20882sed 's/^/| /' conftest.$ac_ext >&5
20883
20884ac_cv_lib_png_png_check_sig=no
20885fi
ac1cb8d3
VS
20886rm -f conftest.err conftest.$ac_objext \
20887 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20888LIBS=$ac_check_lib_save_LIBS
20889fi
20890echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
20891echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
20892if test $ac_cv_lib_png_png_check_sig = yes; then
20893 PNG_LINK=" -lpng -lz"
20894fi
20895
20896 fi
20897
20898 if test "x$PNG_LINK" = "x" ; then
20899 if test "$wxUSE_LIBPNG" = "sys" ; then
20900 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
20901echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
20902 { (exit 1); exit 1; }; }
20903 else
20904 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
20905echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
20906 wxUSE_LIBPNG=builtin
20907 fi
20908 else
20909 wxUSE_LIBPNG=sys
20910 fi
20911 fi
20912 fi
20913
20914 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
20915fi
20916
20917
20918JPEG_LINK=
20919if test "$wxUSE_LIBJPEG" != "no" ; then
20920 cat >>confdefs.h <<\_ACEOF
20921#define wxUSE_LIBJPEG 1
20922_ACEOF
20923
20924
20925 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
20926 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
20927echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
20928 wxUSE_LIBJPEG=sys
20929 fi
20930
20931 if test "$wxUSE_MGL" != 1 ; then
20932 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
20933 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
20934echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
20935 if test "${ac_cv_header_jpeglib_h+set}" = set; then
20936 echo $ECHO_N "(cached) $ECHO_C" >&6
20937else
20938 cat >conftest.$ac_ext <<_ACEOF
20939/* confdefs.h. */
20940_ACEOF
20941cat confdefs.h >>conftest.$ac_ext
20942cat >>conftest.$ac_ext <<_ACEOF
20943/* end confdefs.h. */
20944
20945 #undef HAVE_STDLIB_H
20946 #include <stdio.h>
20947 #include <jpeglib.h>
20948
20949int
20950main ()
20951{
20952
20953
20954 ;
20955 return 0;
20956}
20957_ACEOF
20958rm -f conftest.$ac_objext
20959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20960 (eval $ac_compile) 2>conftest.er1
a848cd7e 20961 ac_status=$?
ac1cb8d3
VS
20962 grep -v '^ *+' conftest.er1 >conftest.err
20963 rm -f conftest.er1
20964 cat conftest.err >&5
a848cd7e
SC
20965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20966 (exit $ac_status); } &&
ceec2216 20967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20969 (eval $ac_try) 2>&5
20970 ac_status=$?
20971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20972 (exit $ac_status); }; } &&
20973 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20975 (eval $ac_try) 2>&5
20976 ac_status=$?
20977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20978 (exit $ac_status); }; }; then
20979 ac_cv_header_jpeglib_h=yes
20980else
20981 echo "$as_me: failed program was:" >&5
20982sed 's/^/| /' conftest.$ac_ext >&5
20983
20984ac_cv_header_jpeglib_h=no
20985
20986fi
ac1cb8d3 20987rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20988
20989fi
20990
20991 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
20992echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
20993
20994 if test "$ac_cv_header_jpeglib_h" = "yes"; then
20995 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
20996echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
20997if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
20998 echo $ECHO_N "(cached) $ECHO_C" >&6
20999else
21000 ac_check_lib_save_LIBS=$LIBS
21001LIBS="-ljpeg $LIBS"
21002cat >conftest.$ac_ext <<_ACEOF
21003/* confdefs.h. */
21004_ACEOF
21005cat confdefs.h >>conftest.$ac_ext
21006cat >>conftest.$ac_ext <<_ACEOF
21007/* end confdefs.h. */
21008
21009/* Override any gcc2 internal prototype to avoid an error. */
21010#ifdef __cplusplus
21011extern "C"
21012#endif
21013/* We use char because int might match the return type of a gcc2
21014 builtin and then its argument prototype would still apply. */
21015char jpeg_read_header ();
21016int
21017main ()
21018{
21019jpeg_read_header ();
21020 ;
21021 return 0;
21022}
21023_ACEOF
21024rm -f conftest.$ac_objext conftest$ac_exeext
21025if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21026 (eval $ac_link) 2>conftest.er1
a848cd7e 21027 ac_status=$?
ac1cb8d3
VS
21028 grep -v '^ *+' conftest.er1 >conftest.err
21029 rm -f conftest.er1
21030 cat conftest.err >&5
a848cd7e
SC
21031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21032 (exit $ac_status); } &&
ceec2216 21033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21035 (eval $ac_try) 2>&5
21036 ac_status=$?
21037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21038 (exit $ac_status); }; } &&
21039 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21041 (eval $ac_try) 2>&5
21042 ac_status=$?
21043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044 (exit $ac_status); }; }; then
21045 ac_cv_lib_jpeg_jpeg_read_header=yes
21046else
21047 echo "$as_me: failed program was:" >&5
21048sed 's/^/| /' conftest.$ac_ext >&5
21049
21050ac_cv_lib_jpeg_jpeg_read_header=no
21051fi
ac1cb8d3
VS
21052rm -f conftest.err conftest.$ac_objext \
21053 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21054LIBS=$ac_check_lib_save_LIBS
21055fi
21056echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
21057echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
21058if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21059 JPEG_LINK=" -ljpeg"
21060fi
21061
21062 fi
21063
21064 if test "x$JPEG_LINK" = "x" ; then
21065 if test "$wxUSE_LIBJPEG" = "sys" ; then
21066 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
21067echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
21068 { (exit 1); exit 1; }; }
21069 else
21070 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
21071echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21072 wxUSE_LIBJPEG=builtin
21073 fi
21074 else
21075 wxUSE_LIBJPEG=sys
21076 fi
21077 fi
21078 fi
21079fi
21080
21081
21082TIFF_LINK=
21083TIFF_PREREQ_LINKS=-lm
21084if test "$wxUSE_LIBTIFF" != "no" ; then
21085 cat >>confdefs.h <<\_ACEOF
21086#define wxUSE_LIBTIFF 1
21087_ACEOF
21088
21089
21090 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
21091 if test "$wxUSE_LIBJPEG" = "sys"; then
21092 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
21093 fi
21094 if test "$wxUSE_ZLIB" = "sys"; then
21095 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
21096 fi
21097 if test "${ac_cv_header_tiffio_h+set}" = set; then
21098 echo "$as_me:$LINENO: checking for tiffio.h" >&5
21099echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21100if test "${ac_cv_header_tiffio_h+set}" = set; then
21101 echo $ECHO_N "(cached) $ECHO_C" >&6
21102fi
21103echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21104echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21105else
21106 # Is the header compilable?
21107echo "$as_me:$LINENO: checking tiffio.h usability" >&5
21108echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
21109cat >conftest.$ac_ext <<_ACEOF
21110/* confdefs.h. */
21111_ACEOF
21112cat confdefs.h >>conftest.$ac_ext
21113cat >>conftest.$ac_ext <<_ACEOF
21114/* end confdefs.h. */
21115$ac_includes_default
21116#include <tiffio.h>
21117_ACEOF
21118rm -f conftest.$ac_objext
21119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21120 (eval $ac_compile) 2>conftest.er1
a848cd7e 21121 ac_status=$?
ac1cb8d3
VS
21122 grep -v '^ *+' conftest.er1 >conftest.err
21123 rm -f conftest.er1
21124 cat conftest.err >&5
a848cd7e
SC
21125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21126 (exit $ac_status); } &&
ceec2216 21127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21129 (eval $ac_try) 2>&5
21130 ac_status=$?
21131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21132 (exit $ac_status); }; } &&
21133 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21135 (eval $ac_try) 2>&5
21136 ac_status=$?
21137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21138 (exit $ac_status); }; }; then
21139 ac_header_compiler=yes
21140else
21141 echo "$as_me: failed program was:" >&5
21142sed 's/^/| /' conftest.$ac_ext >&5
21143
21144ac_header_compiler=no
21145fi
ac1cb8d3 21146rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21147echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21148echo "${ECHO_T}$ac_header_compiler" >&6
21149
21150# Is the header present?
21151echo "$as_me:$LINENO: checking tiffio.h presence" >&5
21152echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
21153cat >conftest.$ac_ext <<_ACEOF
21154/* confdefs.h. */
21155_ACEOF
21156cat confdefs.h >>conftest.$ac_ext
21157cat >>conftest.$ac_ext <<_ACEOF
21158/* end confdefs.h. */
21159#include <tiffio.h>
21160_ACEOF
21161if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21162 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21163 ac_status=$?
21164 grep -v '^ *+' conftest.er1 >conftest.err
21165 rm -f conftest.er1
21166 cat conftest.err >&5
21167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21168 (exit $ac_status); } >/dev/null; then
21169 if test -s conftest.err; then
21170 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21171 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21172 else
21173 ac_cpp_err=
21174 fi
21175else
21176 ac_cpp_err=yes
21177fi
21178if test -z "$ac_cpp_err"; then
21179 ac_header_preproc=yes
21180else
21181 echo "$as_me: failed program was:" >&5
21182sed 's/^/| /' conftest.$ac_ext >&5
21183
21184 ac_header_preproc=no
21185fi
21186rm -f conftest.err conftest.$ac_ext
21187echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21188echo "${ECHO_T}$ac_header_preproc" >&6
21189
21190# So? What about this header?
ac1cb8d3
VS
21191case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21192 yes:no: )
a848cd7e
SC
21193 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
21194echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21195 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
21196echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
21197 ac_header_preproc=yes
a848cd7e 21198 ;;
ac1cb8d3 21199 no:yes:* )
a848cd7e
SC
21200 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
21201echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21202 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
21203echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
21204 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
21205echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
21206 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
21207echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21208 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
21209echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21210 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
21211echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21212 (
21213 cat <<\_ASBOX
ac1cb8d3
VS
21214## ----------------------------------------- ##
21215## Report this to wx-dev@lists.wxwidgets.org ##
21216## ----------------------------------------- ##
a848cd7e
SC
21217_ASBOX
21218 ) |
21219 sed "s/^/$as_me: WARNING: /" >&2
21220 ;;
21221esac
21222echo "$as_me:$LINENO: checking for tiffio.h" >&5
21223echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21224if test "${ac_cv_header_tiffio_h+set}" = set; then
21225 echo $ECHO_N "(cached) $ECHO_C" >&6
21226else
21227 ac_cv_header_tiffio_h=$ac_header_preproc
21228fi
21229echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21230echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21231
21232fi
21233if test $ac_cv_header_tiffio_h = yes; then
21234
21235 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
21236echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
21237if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
21238 echo $ECHO_N "(cached) $ECHO_C" >&6
21239else
21240 ac_check_lib_save_LIBS=$LIBS
21241LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
21242cat >conftest.$ac_ext <<_ACEOF
21243/* confdefs.h. */
21244_ACEOF
21245cat confdefs.h >>conftest.$ac_ext
21246cat >>conftest.$ac_ext <<_ACEOF
21247/* end confdefs.h. */
21248
21249/* Override any gcc2 internal prototype to avoid an error. */
21250#ifdef __cplusplus
21251extern "C"
21252#endif
21253/* We use char because int might match the return type of a gcc2
21254 builtin and then its argument prototype would still apply. */
21255char TIFFError ();
21256int
21257main ()
21258{
21259TIFFError ();
21260 ;
21261 return 0;
21262}
21263_ACEOF
21264rm -f conftest.$ac_objext conftest$ac_exeext
21265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21266 (eval $ac_link) 2>conftest.er1
a848cd7e 21267 ac_status=$?
ac1cb8d3
VS
21268 grep -v '^ *+' conftest.er1 >conftest.err
21269 rm -f conftest.er1
21270 cat conftest.err >&5
a848cd7e
SC
21271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21272 (exit $ac_status); } &&
ceec2216 21273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21275 (eval $ac_try) 2>&5
21276 ac_status=$?
21277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278 (exit $ac_status); }; } &&
21279 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21281 (eval $ac_try) 2>&5
21282 ac_status=$?
21283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21284 (exit $ac_status); }; }; then
21285 ac_cv_lib_tiff_TIFFError=yes
21286else
21287 echo "$as_me: failed program was:" >&5
21288sed 's/^/| /' conftest.$ac_ext >&5
21289
21290ac_cv_lib_tiff_TIFFError=no
21291fi
ac1cb8d3
VS
21292rm -f conftest.err conftest.$ac_objext \
21293 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21294LIBS=$ac_check_lib_save_LIBS
21295fi
21296echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
21297echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
21298if test $ac_cv_lib_tiff_TIFFError = yes; then
21299 TIFF_LINK=" -ltiff"
21300fi
21301
21302
21303
21304fi
21305
21306
21307
21308 if test "x$TIFF_LINK" = "x" ; then
21309 if test "$wxUSE_LIBTIFF" = "sys" ; then
21310 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
21311echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
21312 { (exit 1); exit 1; }; }
21313 else
21314 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
21315echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
21316 wxUSE_LIBTIFF=builtin
21317 fi
21318 else
21319 wxUSE_LIBTIFF=sys
21320 fi
21321 fi
21322fi
21323
21324
21325if test "$wxUSE_EXPAT" != "no"; then
21326 wxUSE_XML=yes
21327 cat >>confdefs.h <<\_ACEOF
21328#define wxUSE_EXPAT 1
21329_ACEOF
21330
21331 cat >>confdefs.h <<\_ACEOF
21332#define wxUSE_XML 1
21333_ACEOF
21334
21335
21336 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
21337 if test "${ac_cv_header_expat_h+set}" = set; then
21338 echo "$as_me:$LINENO: checking for expat.h" >&5
21339echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
21340if test "${ac_cv_header_expat_h+set}" = set; then
21341 echo $ECHO_N "(cached) $ECHO_C" >&6
21342fi
21343echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
21344echo "${ECHO_T}$ac_cv_header_expat_h" >&6
21345else
21346 # Is the header compilable?
21347echo "$as_me:$LINENO: checking expat.h usability" >&5
21348echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
21349cat >conftest.$ac_ext <<_ACEOF
21350/* confdefs.h. */
21351_ACEOF
21352cat confdefs.h >>conftest.$ac_ext
21353cat >>conftest.$ac_ext <<_ACEOF
21354/* end confdefs.h. */
21355$ac_includes_default
21356#include <expat.h>
21357_ACEOF
21358rm -f conftest.$ac_objext
21359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21360 (eval $ac_compile) 2>conftest.er1
a848cd7e 21361 ac_status=$?
ac1cb8d3
VS
21362 grep -v '^ *+' conftest.er1 >conftest.err
21363 rm -f conftest.er1
21364 cat conftest.err >&5
a848cd7e
SC
21365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21366 (exit $ac_status); } &&
ceec2216 21367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21369 (eval $ac_try) 2>&5
21370 ac_status=$?
21371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21372 (exit $ac_status); }; } &&
21373 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21375 (eval $ac_try) 2>&5
21376 ac_status=$?
21377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21378 (exit $ac_status); }; }; then
21379 ac_header_compiler=yes
21380else
21381 echo "$as_me: failed program was:" >&5
21382sed 's/^/| /' conftest.$ac_ext >&5
21383
21384ac_header_compiler=no
21385fi
ac1cb8d3 21386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21387echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21388echo "${ECHO_T}$ac_header_compiler" >&6
21389
21390# Is the header present?
21391echo "$as_me:$LINENO: checking expat.h presence" >&5
21392echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
21393cat >conftest.$ac_ext <<_ACEOF
21394/* confdefs.h. */
21395_ACEOF
21396cat confdefs.h >>conftest.$ac_ext
21397cat >>conftest.$ac_ext <<_ACEOF
21398/* end confdefs.h. */
21399#include <expat.h>
21400_ACEOF
21401if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21402 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21403 ac_status=$?
21404 grep -v '^ *+' conftest.er1 >conftest.err
21405 rm -f conftest.er1
21406 cat conftest.err >&5
21407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21408 (exit $ac_status); } >/dev/null; then
21409 if test -s conftest.err; then
21410 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21411 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21412 else
21413 ac_cpp_err=
21414 fi
21415else
21416 ac_cpp_err=yes
21417fi
21418if test -z "$ac_cpp_err"; then
21419 ac_header_preproc=yes
21420else
21421 echo "$as_me: failed program was:" >&5
21422sed 's/^/| /' conftest.$ac_ext >&5
21423
21424 ac_header_preproc=no
21425fi
21426rm -f conftest.err conftest.$ac_ext
21427echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21428echo "${ECHO_T}$ac_header_preproc" >&6
21429
21430# So? What about this header?
ac1cb8d3
VS
21431case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21432 yes:no: )
a848cd7e
SC
21433 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
21434echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21435 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
21436echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
21437 ac_header_preproc=yes
a848cd7e 21438 ;;
ac1cb8d3 21439 no:yes:* )
a848cd7e
SC
21440 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
21441echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21442 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
21443echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
21444 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
21445echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
21446 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
21447echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21448 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
21449echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21450 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
21451echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21452 (
21453 cat <<\_ASBOX
ac1cb8d3
VS
21454## ----------------------------------------- ##
21455## Report this to wx-dev@lists.wxwidgets.org ##
21456## ----------------------------------------- ##
a848cd7e
SC
21457_ASBOX
21458 ) |
21459 sed "s/^/$as_me: WARNING: /" >&2
21460 ;;
21461esac
21462echo "$as_me:$LINENO: checking for expat.h" >&5
21463echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
21464if test "${ac_cv_header_expat_h+set}" = set; then
21465 echo $ECHO_N "(cached) $ECHO_C" >&6
21466else
21467 ac_cv_header_expat_h=$ac_header_preproc
21468fi
21469echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
21470echo "${ECHO_T}$ac_cv_header_expat_h" >&6
21471
21472fi
21473if test $ac_cv_header_expat_h = yes; then
21474 found_expat_h=1
21475fi
21476
21477
21478 if test "x$found_expat_h" = "x1"; then
21479 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
21480echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
21481if test "${wx_cv_expat_is_not_broken+set}" = set; then
21482 echo $ECHO_N "(cached) $ECHO_C" >&6
21483else
21484
21485
21486
21487 ac_ext=cc
21488ac_cpp='$CXXCPP $CPPFLAGS'
21489ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21490ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21491ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21492
21493 cat >conftest.$ac_ext <<_ACEOF
21494/* confdefs.h. */
21495_ACEOF
21496cat confdefs.h >>conftest.$ac_ext
21497cat >>conftest.$ac_ext <<_ACEOF
21498/* end confdefs.h. */
21499#include <expat.h>
21500int
21501main ()
21502{
21503
21504 ;
21505 return 0;
21506}
21507_ACEOF
21508rm -f conftest.$ac_objext
21509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21510 (eval $ac_compile) 2>conftest.er1
a848cd7e 21511 ac_status=$?
ac1cb8d3
VS
21512 grep -v '^ *+' conftest.er1 >conftest.err
21513 rm -f conftest.er1
21514 cat conftest.err >&5
a848cd7e
SC
21515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21516 (exit $ac_status); } &&
ceec2216 21517 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21519 (eval $ac_try) 2>&5
21520 ac_status=$?
21521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21522 (exit $ac_status); }; } &&
21523 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21525 (eval $ac_try) 2>&5
21526 ac_status=$?
21527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21528 (exit $ac_status); }; }; then
21529 wx_cv_expat_is_not_broken=yes
21530else
21531 echo "$as_me: failed program was:" >&5
21532sed 's/^/| /' conftest.$ac_ext >&5
21533
21534wx_cv_expat_is_not_broken=no
21535
21536fi
ac1cb8d3 21537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21538 ac_ext=c
21539ac_cpp='$CPP $CPPFLAGS'
21540ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21541ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21542ac_compiler_gnu=$ac_cv_c_compiler_gnu
21543
21544
21545
21546fi
21547echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
21548echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
21549 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
21550 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
21551echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
21552if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
21553 echo $ECHO_N "(cached) $ECHO_C" >&6
21554else
21555 ac_check_lib_save_LIBS=$LIBS
21556LIBS="-lexpat $LIBS"
21557cat >conftest.$ac_ext <<_ACEOF
21558/* confdefs.h. */
21559_ACEOF
21560cat confdefs.h >>conftest.$ac_ext
21561cat >>conftest.$ac_ext <<_ACEOF
21562/* end confdefs.h. */
21563
21564/* Override any gcc2 internal prototype to avoid an error. */
21565#ifdef __cplusplus
21566extern "C"
21567#endif
21568/* We use char because int might match the return type of a gcc2
21569 builtin and then its argument prototype would still apply. */
21570char XML_ParserCreate ();
21571int
21572main ()
21573{
21574XML_ParserCreate ();
21575 ;
21576 return 0;
21577}
21578_ACEOF
21579rm -f conftest.$ac_objext conftest$ac_exeext
21580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21581 (eval $ac_link) 2>conftest.er1
a848cd7e 21582 ac_status=$?
ac1cb8d3
VS
21583 grep -v '^ *+' conftest.er1 >conftest.err
21584 rm -f conftest.er1
21585 cat conftest.err >&5
a848cd7e
SC
21586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21587 (exit $ac_status); } &&
ceec2216 21588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21590 (eval $ac_try) 2>&5
21591 ac_status=$?
21592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21593 (exit $ac_status); }; } &&
21594 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21596 (eval $ac_try) 2>&5
21597 ac_status=$?
21598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21599 (exit $ac_status); }; }; then
21600 ac_cv_lib_expat_XML_ParserCreate=yes
21601else
21602 echo "$as_me: failed program was:" >&5
21603sed 's/^/| /' conftest.$ac_ext >&5
21604
21605ac_cv_lib_expat_XML_ParserCreate=no
21606fi
ac1cb8d3
VS
21607rm -f conftest.err conftest.$ac_objext \
21608 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21609LIBS=$ac_check_lib_save_LIBS
21610fi
21611echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
21612echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
21613if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
21614 EXPAT_LINK=" -lexpat"
21615fi
21616
21617 fi
21618 fi
21619 if test "x$EXPAT_LINK" = "x" ; then
21620 if test "$wxUSE_EXPAT" = "sys" ; then
21621 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
21622echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
21623 { (exit 1); exit 1; }; }
21624 else
21625 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
21626echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
21627 wxUSE_EXPAT=builtin
21628 fi
21629 else
21630 wxUSE_EXPAT=sys
21631 fi
21632 fi
21633 if test "$wxUSE_EXPAT" = "builtin" ; then
21634
21635
21636subdirs="$subdirs src/expat"
21637
21638 fi
21639fi
21640
21641
21642
21643if test "$wxUSE_LIBMSPACK" != "no"; then
21644
21645 if test "${ac_cv_header_mspack_h+set}" = set; then
21646 echo "$as_me:$LINENO: checking for mspack.h" >&5
21647echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
21648if test "${ac_cv_header_mspack_h+set}" = set; then
21649 echo $ECHO_N "(cached) $ECHO_C" >&6
21650fi
21651echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
21652echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
21653else
21654 # Is the header compilable?
21655echo "$as_me:$LINENO: checking mspack.h usability" >&5
21656echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
21657cat >conftest.$ac_ext <<_ACEOF
21658/* confdefs.h. */
21659_ACEOF
21660cat confdefs.h >>conftest.$ac_ext
21661cat >>conftest.$ac_ext <<_ACEOF
21662/* end confdefs.h. */
21663$ac_includes_default
21664#include <mspack.h>
21665_ACEOF
21666rm -f conftest.$ac_objext
21667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21668 (eval $ac_compile) 2>conftest.er1
a848cd7e 21669 ac_status=$?
ac1cb8d3
VS
21670 grep -v '^ *+' conftest.er1 >conftest.err
21671 rm -f conftest.er1
21672 cat conftest.err >&5
a848cd7e
SC
21673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21674 (exit $ac_status); } &&
ceec2216 21675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21677 (eval $ac_try) 2>&5
21678 ac_status=$?
21679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21680 (exit $ac_status); }; } &&
21681 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21683 (eval $ac_try) 2>&5
21684 ac_status=$?
21685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21686 (exit $ac_status); }; }; then
21687 ac_header_compiler=yes
21688else
21689 echo "$as_me: failed program was:" >&5
21690sed 's/^/| /' conftest.$ac_ext >&5
21691
21692ac_header_compiler=no
21693fi
ac1cb8d3 21694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21695echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21696echo "${ECHO_T}$ac_header_compiler" >&6
21697
21698# Is the header present?
21699echo "$as_me:$LINENO: checking mspack.h presence" >&5
21700echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
21701cat >conftest.$ac_ext <<_ACEOF
21702/* confdefs.h. */
21703_ACEOF
21704cat confdefs.h >>conftest.$ac_ext
21705cat >>conftest.$ac_ext <<_ACEOF
21706/* end confdefs.h. */
21707#include <mspack.h>
21708_ACEOF
21709if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21710 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21711 ac_status=$?
21712 grep -v '^ *+' conftest.er1 >conftest.err
21713 rm -f conftest.er1
21714 cat conftest.err >&5
21715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21716 (exit $ac_status); } >/dev/null; then
21717 if test -s conftest.err; then
21718 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21719 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21720 else
21721 ac_cpp_err=
21722 fi
21723else
21724 ac_cpp_err=yes
21725fi
21726if test -z "$ac_cpp_err"; then
21727 ac_header_preproc=yes
21728else
21729 echo "$as_me: failed program was:" >&5
21730sed 's/^/| /' conftest.$ac_ext >&5
21731
21732 ac_header_preproc=no
21733fi
21734rm -f conftest.err conftest.$ac_ext
21735echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21736echo "${ECHO_T}$ac_header_preproc" >&6
21737
21738# So? What about this header?
ac1cb8d3
VS
21739case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21740 yes:no: )
a848cd7e
SC
21741 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
21742echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21743 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
21744echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
21745 ac_header_preproc=yes
a848cd7e 21746 ;;
ac1cb8d3 21747 no:yes:* )
a848cd7e
SC
21748 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
21749echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21750 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
21751echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
21752 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
21753echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
21754 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
21755echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21756 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
21757echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21758 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
21759echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21760 (
21761 cat <<\_ASBOX
ac1cb8d3
VS
21762## ----------------------------------------- ##
21763## Report this to wx-dev@lists.wxwidgets.org ##
21764## ----------------------------------------- ##
a848cd7e
SC
21765_ASBOX
21766 ) |
21767 sed "s/^/$as_me: WARNING: /" >&2
21768 ;;
21769esac
21770echo "$as_me:$LINENO: checking for mspack.h" >&5
21771echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
21772if test "${ac_cv_header_mspack_h+set}" = set; then
21773 echo $ECHO_N "(cached) $ECHO_C" >&6
21774else
21775 ac_cv_header_mspack_h=$ac_header_preproc
21776fi
21777echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
21778echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
21779
21780fi
21781if test $ac_cv_header_mspack_h = yes; then
21782 found_mspack_h=1
21783fi
21784
21785
21786 if test "x$found_mspack_h" = "x1"; then
21787 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
21788echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
21789if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
21790 echo $ECHO_N "(cached) $ECHO_C" >&6
21791else
21792 ac_check_lib_save_LIBS=$LIBS
21793LIBS="-lmspack $LIBS"
21794cat >conftest.$ac_ext <<_ACEOF
21795/* confdefs.h. */
21796_ACEOF
21797cat confdefs.h >>conftest.$ac_ext
21798cat >>conftest.$ac_ext <<_ACEOF
21799/* end confdefs.h. */
21800
21801/* Override any gcc2 internal prototype to avoid an error. */
21802#ifdef __cplusplus
21803extern "C"
21804#endif
21805/* We use char because int might match the return type of a gcc2
21806 builtin and then its argument prototype would still apply. */
21807char mspack_create_chm_decompressor ();
21808int
21809main ()
21810{
21811mspack_create_chm_decompressor ();
21812 ;
21813 return 0;
21814}
21815_ACEOF
21816rm -f conftest.$ac_objext conftest$ac_exeext
21817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21818 (eval $ac_link) 2>conftest.er1
a848cd7e 21819 ac_status=$?
ac1cb8d3
VS
21820 grep -v '^ *+' conftest.er1 >conftest.err
21821 rm -f conftest.er1
21822 cat conftest.err >&5
a848cd7e
SC
21823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21824 (exit $ac_status); } &&
ceec2216 21825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21827 (eval $ac_try) 2>&5
21828 ac_status=$?
21829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21830 (exit $ac_status); }; } &&
21831 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21833 (eval $ac_try) 2>&5
21834 ac_status=$?
21835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21836 (exit $ac_status); }; }; then
21837 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
21838else
21839 echo "$as_me: failed program was:" >&5
21840sed 's/^/| /' conftest.$ac_ext >&5
21841
21842ac_cv_lib_mspack_mspack_create_chm_decompressor=no
21843fi
ac1cb8d3
VS
21844rm -f conftest.err conftest.$ac_objext \
21845 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21846LIBS=$ac_check_lib_save_LIBS
21847fi
21848echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
21849echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
21850if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
21851 MSPACK_LINK=" -lmspack"
21852fi
21853
21854 fi
21855 if test "x$MSPACK_LINK" = "x" ; then
21856 wxUSE_LIBMSPACK=no
21857 else
21858 cat >>confdefs.h <<\_ACEOF
21859#define wxUSE_LIBMSPACK 1
21860_ACEOF
21861
21862 fi
21863fi
21864
21865
21866
21867AFMINSTALL=
21868WIN32INSTALL=
21869
21870TOOLKIT=
21871TOOLKIT_INCLUDE=
21872WIDGET_SET=
21873
21874if test "$USE_WIN32" = 1 ; then
21875
21876for ac_header in w32api.h
21877do
21878as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21879if eval "test \"\${$as_ac_Header+set}\" = set"; then
21880 echo "$as_me:$LINENO: checking for $ac_header" >&5
21881echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21882if eval "test \"\${$as_ac_Header+set}\" = set"; then
21883 echo $ECHO_N "(cached) $ECHO_C" >&6
21884fi
21885echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21886echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21887else
21888 # Is the header compilable?
21889echo "$as_me:$LINENO: checking $ac_header usability" >&5
21890echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21891cat >conftest.$ac_ext <<_ACEOF
21892/* confdefs.h. */
21893_ACEOF
21894cat confdefs.h >>conftest.$ac_ext
21895cat >>conftest.$ac_ext <<_ACEOF
21896/* end confdefs.h. */
21897$ac_includes_default
21898#include <$ac_header>
21899_ACEOF
21900rm -f conftest.$ac_objext
21901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21902 (eval $ac_compile) 2>conftest.er1
a848cd7e 21903 ac_status=$?
ac1cb8d3
VS
21904 grep -v '^ *+' conftest.er1 >conftest.err
21905 rm -f conftest.er1
21906 cat conftest.err >&5
a848cd7e
SC
21907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21908 (exit $ac_status); } &&
ceec2216 21909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21911 (eval $ac_try) 2>&5
21912 ac_status=$?
21913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21914 (exit $ac_status); }; } &&
21915 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21917 (eval $ac_try) 2>&5
21918 ac_status=$?
21919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21920 (exit $ac_status); }; }; then
21921 ac_header_compiler=yes
21922else
21923 echo "$as_me: failed program was:" >&5
21924sed 's/^/| /' conftest.$ac_ext >&5
21925
21926ac_header_compiler=no
21927fi
ac1cb8d3 21928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21929echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21930echo "${ECHO_T}$ac_header_compiler" >&6
21931
21932# Is the header present?
21933echo "$as_me:$LINENO: checking $ac_header presence" >&5
21934echo $ECHO_N "checking $ac_header presence... $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#include <$ac_header>
21942_ACEOF
21943if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21944 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21945 ac_status=$?
21946 grep -v '^ *+' conftest.er1 >conftest.err
21947 rm -f conftest.er1
21948 cat conftest.err >&5
21949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21950 (exit $ac_status); } >/dev/null; then
21951 if test -s conftest.err; then
21952 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21953 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21954 else
21955 ac_cpp_err=
21956 fi
21957else
21958 ac_cpp_err=yes
21959fi
21960if test -z "$ac_cpp_err"; then
21961 ac_header_preproc=yes
21962else
21963 echo "$as_me: failed program was:" >&5
21964sed 's/^/| /' conftest.$ac_ext >&5
21965
21966 ac_header_preproc=no
21967fi
21968rm -f conftest.err conftest.$ac_ext
21969echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21970echo "${ECHO_T}$ac_header_preproc" >&6
21971
21972# So? What about this header?
ac1cb8d3
VS
21973case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21974 yes:no: )
a848cd7e
SC
21975 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21976echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21977 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21978echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21979 ac_header_preproc=yes
a848cd7e 21980 ;;
ac1cb8d3 21981 no:yes:* )
a848cd7e
SC
21982 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21983echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21984 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21985echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21986 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21987echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21988 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21989echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21990 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21991echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21992 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21993echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21994 (
21995 cat <<\_ASBOX
ac1cb8d3
VS
21996## ----------------------------------------- ##
21997## Report this to wx-dev@lists.wxwidgets.org ##
21998## ----------------------------------------- ##
a848cd7e
SC
21999_ASBOX
22000 ) |
22001 sed "s/^/$as_me: WARNING: /" >&2
22002 ;;
22003esac
22004echo "$as_me:$LINENO: checking for $ac_header" >&5
22005echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22006if eval "test \"\${$as_ac_Header+set}\" = set"; then
22007 echo $ECHO_N "(cached) $ECHO_C" >&6
22008else
ac1cb8d3 22009 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
22010fi
22011echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22012echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22013
22014fi
22015if test `eval echo '${'$as_ac_Header'}'` = yes; then
22016 cat >>confdefs.h <<_ACEOF
22017#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22018_ACEOF
22019
22020fi
22021
22022done
22023
22024 if test "${ac_cv_header_windows_h+set}" = set; then
22025 echo "$as_me:$LINENO: checking for windows.h" >&5
22026echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
22027if test "${ac_cv_header_windows_h+set}" = set; then
22028 echo $ECHO_N "(cached) $ECHO_C" >&6
22029fi
22030echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
22031echo "${ECHO_T}$ac_cv_header_windows_h" >&6
22032else
22033 # Is the header compilable?
22034echo "$as_me:$LINENO: checking windows.h usability" >&5
22035echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
22036cat >conftest.$ac_ext <<_ACEOF
22037/* confdefs.h. */
22038_ACEOF
22039cat confdefs.h >>conftest.$ac_ext
22040cat >>conftest.$ac_ext <<_ACEOF
22041/* end confdefs.h. */
22042$ac_includes_default
22043#include <windows.h>
22044_ACEOF
22045rm -f conftest.$ac_objext
22046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22047 (eval $ac_compile) 2>conftest.er1
a848cd7e 22048 ac_status=$?
ac1cb8d3
VS
22049 grep -v '^ *+' conftest.er1 >conftest.err
22050 rm -f conftest.er1
22051 cat conftest.err >&5
a848cd7e
SC
22052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22053 (exit $ac_status); } &&
ceec2216 22054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22056 (eval $ac_try) 2>&5
22057 ac_status=$?
22058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22059 (exit $ac_status); }; } &&
22060 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22062 (eval $ac_try) 2>&5
22063 ac_status=$?
22064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22065 (exit $ac_status); }; }; then
22066 ac_header_compiler=yes
22067else
22068 echo "$as_me: failed program was:" >&5
22069sed 's/^/| /' conftest.$ac_ext >&5
22070
22071ac_header_compiler=no
22072fi
ac1cb8d3 22073rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22074echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22075echo "${ECHO_T}$ac_header_compiler" >&6
22076
22077# Is the header present?
22078echo "$as_me:$LINENO: checking windows.h presence" >&5
22079echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
22080cat >conftest.$ac_ext <<_ACEOF
22081/* confdefs.h. */
22082_ACEOF
22083cat confdefs.h >>conftest.$ac_ext
22084cat >>conftest.$ac_ext <<_ACEOF
22085/* end confdefs.h. */
22086#include <windows.h>
22087_ACEOF
22088if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22089 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22090 ac_status=$?
22091 grep -v '^ *+' conftest.er1 >conftest.err
22092 rm -f conftest.er1
22093 cat conftest.err >&5
22094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22095 (exit $ac_status); } >/dev/null; then
22096 if test -s conftest.err; then
22097 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22098 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22099 else
22100 ac_cpp_err=
22101 fi
22102else
22103 ac_cpp_err=yes
22104fi
22105if test -z "$ac_cpp_err"; then
22106 ac_header_preproc=yes
22107else
22108 echo "$as_me: failed program was:" >&5
22109sed 's/^/| /' conftest.$ac_ext >&5
22110
22111 ac_header_preproc=no
22112fi
22113rm -f conftest.err conftest.$ac_ext
22114echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22115echo "${ECHO_T}$ac_header_preproc" >&6
22116
22117# So? What about this header?
ac1cb8d3
VS
22118case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22119 yes:no: )
a848cd7e
SC
22120 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
22121echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22122 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
22123echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
22124 ac_header_preproc=yes
a848cd7e 22125 ;;
ac1cb8d3 22126 no:yes:* )
a848cd7e
SC
22127 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
22128echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22129 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
22130echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
22131 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
22132echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
22133 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
22134echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22135 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
22136echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22137 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
22138echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22139 (
22140 cat <<\_ASBOX
ac1cb8d3
VS
22141## ----------------------------------------- ##
22142## Report this to wx-dev@lists.wxwidgets.org ##
22143## ----------------------------------------- ##
a848cd7e
SC
22144_ASBOX
22145 ) |
22146 sed "s/^/$as_me: WARNING: /" >&2
22147 ;;
22148esac
22149echo "$as_me:$LINENO: checking for windows.h" >&5
22150echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
22151if test "${ac_cv_header_windows_h+set}" = set; then
22152 echo $ECHO_N "(cached) $ECHO_C" >&6
22153else
22154 ac_cv_header_windows_h=$ac_header_preproc
22155fi
22156echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
22157echo "${ECHO_T}$ac_cv_header_windows_h" >&6
22158
22159fi
22160if test $ac_cv_header_windows_h = yes; then
22161 :
22162else
22163
22164 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
22165echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
22166 { (exit 1); exit 1; }; }
22167
22168fi
22169
22170
22171
22172 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
22173
22174 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
22175 LIBS="$LIBS -loleacc"
22176 fi
22177
22178 case "${host}" in
22179 *-*-cygwin* )
22180 LIBS="$LIBS -lkernel32 -luser32"
22181 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
22182 esac
22183
22184 if test "$wxUSE_ODBC" = "sys" ; then
22185 wxUSE_ODBC = "yes"
22186 fi
22187 if test "$wxUSE_ODBC" = "yes" ; then
22188 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
22189 cat >>confdefs.h <<\_ACEOF
22190#define wxUSE_ODBC 1
22191_ACEOF
22192
22193 fi
22194
22195 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
22196 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
22197
22198 WIN32INSTALL=win32install
22199fi
22200
22201if test "$wxUSE_GUI" = "yes"; then
22202 USE_GUI=1
22203
22204 GUI_TK_LIBRARY=
22205
22206 WXGTK12=
22207 WXGTK127=
22208 WXGTK20=
22209 WXGPE=
22210
22211 if test "$wxUSE_MSW" = 1 ; then
22212 TOOLKIT=MSW
22213 GUIDIST=MSW_DIST
22214
ceec2216 22215 case "${host}" in
a848cd7e
SC
22216 *-*-mingw32* )
22217 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
22218 esac
22219 fi
22220
22221 if test "$wxUSE_GTK" = 1; then
22222 echo "$as_me:$LINENO: checking for GTK+ version" >&5
22223echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
22224
22225 gtk_version_cached=1
22226 if test "${wx_cv_lib_gtk+set}" = set; then
22227 echo $ECHO_N "(cached) $ECHO_C" >&6
22228else
22229
22230 gtk_version_cached=0
22231 echo "$as_me:$LINENO: result: " >&5
22232echo "${ECHO_T}" >&6
22233
22234 GTK_MODULES=
22235 if test "$wxUSE_THREADS" = "yes"; then
22236 GTK_MODULES=gthread
22237 fi
22238
22239 wx_cv_lib_gtk=
22240 if test "x$wxUSE_GTK2" = "xyes"; then
22241 # Check whether --enable-gtktest or --disable-gtktest was given.
22242if test "${enable_gtktest+set}" = set; then
22243 enableval="$enable_gtktest"
22244
22245else
22246 enable_gtktest=yes
22247fi;
22248
22249 pkg_config_args=gtk+-2.0
22250 for module in . $GTK_MODULES
22251 do
22252 case "$module" in
22253 gthread)
22254 pkg_config_args="$pkg_config_args gthread-2.0"
22255 ;;
22256 esac
22257 done
22258
22259 no_gtk=""
22260
22261 # Extract the first word of "pkg-config", so it can be a program name with args.
22262set dummy pkg-config; ac_word=$2
22263echo "$as_me:$LINENO: checking for $ac_word" >&5
22264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22265if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22266 echo $ECHO_N "(cached) $ECHO_C" >&6
22267else
22268 case $PKG_CONFIG in
22269 [\\/]* | ?:[\\/]*)
22270 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22271 ;;
22272 *)
22273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22274for as_dir in $PATH
22275do
22276 IFS=$as_save_IFS
22277 test -z "$as_dir" && as_dir=.
22278 for ac_exec_ext in '' $ac_executable_extensions; do
22279 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22280 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22282 break 2
22283 fi
22284done
22285done
22286
22287 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22288 ;;
22289esac
22290fi
22291PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22292
22293if test -n "$PKG_CONFIG"; then
22294 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22295echo "${ECHO_T}$PKG_CONFIG" >&6
22296else
22297 echo "$as_me:$LINENO: result: no" >&5
22298echo "${ECHO_T}no" >&6
22299fi
22300
22301
22302 if test x$PKG_CONFIG != xno ; then
22303 if pkg-config --atleast-pkgconfig-version 0.7 ; then
22304 :
22305 else
c2218763 22306 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
22307 no_gtk=yes
22308 PKG_CONFIG=no
22309 fi
22310 else
22311 no_gtk=yes
22312 fi
22313
22314 min_gtk_version=2.0.0
22315 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
22316echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
22317
22318 if test x$PKG_CONFIG != xno ; then
22319 ## don't try to run the test against uninstalled libtool libs
22320 if $PKG_CONFIG --uninstalled $pkg_config_args; then
22321 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
22322 enable_gtktest=no
22323 fi
22324
22325 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
22326 :
22327 else
22328 no_gtk=yes
22329 fi
22330 fi
22331
22332 if test x"$no_gtk" = x ; then
22333 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
22334 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
22335 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22336 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22337 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22338 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22339 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22340 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22341 if test "x$enable_gtktest" = "xyes" ; then
22342 ac_save_CFLAGS="$CFLAGS"
22343 ac_save_LIBS="$LIBS"
22344 CFLAGS="$CFLAGS $GTK_CFLAGS"
22345 LIBS="$GTK_LIBS $LIBS"
22346 rm -f conf.gtktest
22347 if test "$cross_compiling" = yes; then
22348 echo $ac_n "cross compiling; assumed OK... $ac_c"
22349else
22350 cat >conftest.$ac_ext <<_ACEOF
22351/* confdefs.h. */
22352_ACEOF
22353cat confdefs.h >>conftest.$ac_ext
22354cat >>conftest.$ac_ext <<_ACEOF
22355/* end confdefs.h. */
22356
22357#include <gtk/gtk.h>
22358#include <stdio.h>
22359#include <stdlib.h>
22360
22361int
22362main ()
22363{
22364 int major, minor, micro;
22365 char *tmp_version;
22366
22367 system ("touch conf.gtktest");
22368
22369 /* HP/UX 9 (%@#!) writes to sscanf strings */
22370 tmp_version = g_strdup("$min_gtk_version");
22371 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22372 printf("%s, bad version string\n", "$min_gtk_version");
22373 exit(1);
22374 }
22375
22376 if ((gtk_major_version != $gtk_config_major_version) ||
22377 (gtk_minor_version != $gtk_config_minor_version) ||
22378 (gtk_micro_version != $gtk_config_micro_version))
22379 {
22380 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
22381 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22382 gtk_major_version, gtk_minor_version, gtk_micro_version);
22383 printf ("*** was found! If pkg-config was correct, then it is best\n");
22384 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22385 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22386 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22387 printf("*** required on your system.\n");
22388 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
22389 printf("*** to point to the correct configuration files\n");
22390 }
22391 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22392 (gtk_minor_version != GTK_MINOR_VERSION) ||
22393 (gtk_micro_version != GTK_MICRO_VERSION))
22394 {
22395 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22396 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22397 printf("*** library (version %d.%d.%d)\n",
22398 gtk_major_version, gtk_minor_version, gtk_micro_version);
22399 }
22400 else
22401 {
22402 if ((gtk_major_version > major) ||
22403 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22404 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22405 {
22406 return 0;
22407 }
22408 else
22409 {
22410 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22411 gtk_major_version, gtk_minor_version, gtk_micro_version);
22412 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22413 major, minor, micro);
22414 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22415 printf("***\n");
22416 printf("*** If you have already installed a sufficiently new version, this error\n");
22417 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
22418 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22419 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
22420 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
22421 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22422 printf("*** so that the correct libraries are found at run-time))\n");
22423 }
22424 }
22425 return 1;
22426}
22427
22428_ACEOF
22429rm -f conftest$ac_exeext
22430if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22431 (eval $ac_link) 2>&5
22432 ac_status=$?
22433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22434 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22436 (eval $ac_try) 2>&5
22437 ac_status=$?
22438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22439 (exit $ac_status); }; }; then
22440 :
22441else
22442 echo "$as_me: program exited with status $ac_status" >&5
22443echo "$as_me: failed program was:" >&5
22444sed 's/^/| /' conftest.$ac_ext >&5
22445
22446( exit $ac_status )
22447no_gtk=yes
22448fi
ac1cb8d3 22449rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22450fi
22451 CFLAGS="$ac_save_CFLAGS"
22452 LIBS="$ac_save_LIBS"
22453 fi
22454 fi
22455 if test "x$no_gtk" = x ; then
22456 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
22457echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
22458 wx_cv_lib_gtk=2.0
22459 else
22460 echo "$as_me:$LINENO: result: no" >&5
22461echo "${ECHO_T}no" >&6
22462 if test "$PKG_CONFIG" = "no" ; then
22463 echo "*** A new enough version of pkg-config was not found."
22464 echo "*** See http://pkgconfig.sourceforge.net"
22465 else
22466 if test -f conf.gtktest ; then
22467 :
22468 else
22469 echo "*** Could not run GTK+ test program, checking why..."
22470 ac_save_CFLAGS="$CFLAGS"
22471 ac_save_LIBS="$LIBS"
22472 CFLAGS="$CFLAGS $GTK_CFLAGS"
22473 LIBS="$LIBS $GTK_LIBS"
22474 cat >conftest.$ac_ext <<_ACEOF
22475/* confdefs.h. */
22476_ACEOF
22477cat confdefs.h >>conftest.$ac_ext
22478cat >>conftest.$ac_ext <<_ACEOF
22479/* end confdefs.h. */
22480
22481#include <gtk/gtk.h>
22482#include <stdio.h>
22483
22484int
22485main ()
22486{
22487 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22488 ;
22489 return 0;
22490}
22491_ACEOF
22492rm -f conftest.$ac_objext conftest$ac_exeext
22493if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22494 (eval $ac_link) 2>conftest.er1
a848cd7e 22495 ac_status=$?
ac1cb8d3
VS
22496 grep -v '^ *+' conftest.er1 >conftest.err
22497 rm -f conftest.er1
22498 cat conftest.err >&5
a848cd7e
SC
22499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22500 (exit $ac_status); } &&
ceec2216 22501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22503 (eval $ac_try) 2>&5
22504 ac_status=$?
22505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22506 (exit $ac_status); }; } &&
22507 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22509 (eval $ac_try) 2>&5
22510 ac_status=$?
22511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22512 (exit $ac_status); }; }; then
22513 echo "*** The test program compiled, but did not run. This usually means"
22514 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
22515 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
22516 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22517 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22518 echo "*** is required on your system"
22519 echo "***"
22520 echo "*** If you have an old version installed, it is best to remove it, although"
22521 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22522else
22523 echo "$as_me: failed program was:" >&5
22524sed 's/^/| /' conftest.$ac_ext >&5
22525
22526 echo "*** The test program failed to compile or link. See the file config.log for the"
22527 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
22528fi
ac1cb8d3
VS
22529rm -f conftest.err conftest.$ac_objext \
22530 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22531 CFLAGS="$ac_save_CFLAGS"
22532 LIBS="$ac_save_LIBS"
22533 fi
22534 fi
22535 GTK_CFLAGS=""
22536 GTK_LIBS=""
22537 :
22538 fi
22539
22540
22541 rm -f conf.gtktest
22542
22543 else
22544
22545# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
22546if test "${with_gtk_prefix+set}" = set; then
22547 withval="$with_gtk_prefix"
22548 gtk_config_prefix="$withval"
22549else
22550 gtk_config_prefix=""
22551fi;
22552
22553# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
22554if test "${with_gtk_exec_prefix+set}" = set; then
22555 withval="$with_gtk_exec_prefix"
22556 gtk_config_exec_prefix="$withval"
22557else
22558 gtk_config_exec_prefix=""
22559fi;
22560# Check whether --enable-gtktest or --disable-gtktest was given.
22561if test "${enable_gtktest+set}" = set; then
22562 enableval="$enable_gtktest"
22563
22564else
22565 enable_gtktest=yes
22566fi;
22567
22568 for module in . $GTK_MODULES
22569 do
22570 case "$module" in
22571 gthread)
22572 gtk_config_args="$gtk_config_args gthread"
22573 ;;
22574 esac
22575 done
22576
22577 if test x$gtk_config_exec_prefix != x ; then
22578 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
22579 if test x${GTK_CONFIG+set} != xset ; then
22580 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
22581 fi
22582 fi
22583 if test x$gtk_config_prefix != x ; then
22584 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
22585 if test x${GTK_CONFIG+set} != xset ; then
22586 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
22587 fi
22588 fi
22589
22590 # Extract the first word of "gtk-config", so it can be a program name with args.
22591set dummy gtk-config; ac_word=$2
22592echo "$as_me:$LINENO: checking for $ac_word" >&5
22593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22594if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
22595 echo $ECHO_N "(cached) $ECHO_C" >&6
22596else
22597 case $GTK_CONFIG in
22598 [\\/]* | ?:[\\/]*)
22599 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
22600 ;;
22601 *)
22602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22603for as_dir in $PATH
22604do
22605 IFS=$as_save_IFS
22606 test -z "$as_dir" && as_dir=.
22607 for ac_exec_ext in '' $ac_executable_extensions; do
22608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22609 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22611 break 2
22612 fi
22613done
22614done
22615
22616 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
22617 ;;
22618esac
22619fi
22620GTK_CONFIG=$ac_cv_path_GTK_CONFIG
22621
22622if test -n "$GTK_CONFIG"; then
22623 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
22624echo "${ECHO_T}$GTK_CONFIG" >&6
22625else
22626 echo "$as_me:$LINENO: result: no" >&5
22627echo "${ECHO_T}no" >&6
22628fi
22629
22630 min_gtk_version=1.2.7
22631 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
22632echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
22633 no_gtk=""
22634 if test "$GTK_CONFIG" = "no" ; then
22635 no_gtk=yes
22636 else
22637 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
22638 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
22639 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
22640 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22641 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
22642 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22643 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
22644 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22645 if test "x$enable_gtktest" = "xyes" ; then
22646 ac_save_CFLAGS="$CFLAGS"
22647 ac_save_LIBS="$LIBS"
22648 CFLAGS="$CFLAGS $GTK_CFLAGS"
22649 LIBS="$GTK_LIBS $LIBS"
22650 rm -f conf.gtktest
22651 if test "$cross_compiling" = yes; then
22652 echo $ac_n "cross compiling; assumed OK... $ac_c"
22653else
22654 cat >conftest.$ac_ext <<_ACEOF
22655/* confdefs.h. */
22656_ACEOF
22657cat confdefs.h >>conftest.$ac_ext
22658cat >>conftest.$ac_ext <<_ACEOF
22659/* end confdefs.h. */
22660
22661#include <gtk/gtk.h>
22662#include <stdio.h>
22663#include <stdlib.h>
22664
22665int
22666main ()
22667{
22668 int major, minor, micro;
22669 char *tmp_version;
22670
22671 system ("touch conf.gtktest");
22672
22673 /* HP/UX 9 (%@#!) writes to sscanf strings */
22674 tmp_version = g_strdup("$min_gtk_version");
22675 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22676 printf("%s, bad version string\n", "$min_gtk_version");
22677 exit(1);
22678 }
22679
22680 if ((gtk_major_version != $gtk_config_major_version) ||
22681 (gtk_minor_version != $gtk_config_minor_version) ||
22682 (gtk_micro_version != $gtk_config_micro_version))
22683 {
22684 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
22685 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22686 gtk_major_version, gtk_minor_version, gtk_micro_version);
22687 printf ("*** was found! If gtk-config was correct, then it is best\n");
22688 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22689 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22690 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22691 printf("*** required on your system.\n");
22692 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
22693 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
22694 printf("*** before re-running configure\n");
22695 }
22696#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
22697 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22698 (gtk_minor_version != GTK_MINOR_VERSION) ||
22699 (gtk_micro_version != GTK_MICRO_VERSION))
22700 {
22701 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22702 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22703 printf("*** library (version %d.%d.%d)\n",
22704 gtk_major_version, gtk_minor_version, gtk_micro_version);
22705 }
22706#endif /* defined (GTK_MAJOR_VERSION) ... */
22707 else
22708 {
22709 if ((gtk_major_version > major) ||
22710 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22711 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22712 {
22713 return 0;
22714 }
22715 else
22716 {
22717 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22718 gtk_major_version, gtk_minor_version, gtk_micro_version);
22719 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22720 major, minor, micro);
22721 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22722 printf("***\n");
22723 printf("*** If you have already installed a sufficiently new version, this error\n");
22724 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
22725 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22726 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
22727 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
22728 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22729 printf("*** so that the correct libraries are found at run-time))\n");
22730 }
22731 }
22732 return 1;
22733}
22734
22735_ACEOF
22736rm -f conftest$ac_exeext
22737if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22738 (eval $ac_link) 2>&5
22739 ac_status=$?
22740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22741 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22743 (eval $ac_try) 2>&5
22744 ac_status=$?
22745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22746 (exit $ac_status); }; }; then
22747 :
22748else
22749 echo "$as_me: program exited with status $ac_status" >&5
22750echo "$as_me: failed program was:" >&5
22751sed 's/^/| /' conftest.$ac_ext >&5
22752
22753( exit $ac_status )
22754no_gtk=yes
22755fi
ac1cb8d3 22756rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22757fi
22758 CFLAGS="$ac_save_CFLAGS"
22759 LIBS="$ac_save_LIBS"
22760 fi
22761 fi
22762 if test "x$no_gtk" = x ; then
22763 echo "$as_me:$LINENO: result: yes" >&5
22764echo "${ECHO_T}yes" >&6
22765 wx_cv_lib_gtk=1.2.7
22766 else
22767 echo "$as_me:$LINENO: result: no" >&5
22768echo "${ECHO_T}no" >&6
22769 if test "$GTK_CONFIG" = "no" ; then
22770 echo "*** The gtk-config script installed by GTK could not be found"
22771 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
22772 echo "*** your path, or set the GTK_CONFIG environment variable to the"
22773 echo "*** full path to gtk-config."
22774 else
22775 if test -f conf.gtktest ; then
22776 :
22777 else
22778 echo "*** Could not run GTK test program, checking why..."
22779 CFLAGS="$CFLAGS $GTK_CFLAGS"
22780 LIBS="$LIBS $GTK_LIBS"
22781 cat >conftest.$ac_ext <<_ACEOF
22782/* confdefs.h. */
22783_ACEOF
22784cat confdefs.h >>conftest.$ac_ext
22785cat >>conftest.$ac_ext <<_ACEOF
22786/* end confdefs.h. */
22787
22788#include <gtk/gtk.h>
22789#include <stdio.h>
22790
22791int
22792main ()
22793{
22794 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22795 ;
22796 return 0;
22797}
22798_ACEOF
22799rm -f conftest.$ac_objext conftest$ac_exeext
22800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22801 (eval $ac_link) 2>conftest.er1
a848cd7e 22802 ac_status=$?
ac1cb8d3
VS
22803 grep -v '^ *+' conftest.er1 >conftest.err
22804 rm -f conftest.er1
22805 cat conftest.err >&5
a848cd7e
SC
22806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22807 (exit $ac_status); } &&
ceec2216 22808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22810 (eval $ac_try) 2>&5
22811 ac_status=$?
22812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22813 (exit $ac_status); }; } &&
22814 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22816 (eval $ac_try) 2>&5
22817 ac_status=$?
22818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22819 (exit $ac_status); }; }; then
22820 echo "*** The test program compiled, but did not run. This usually means"
22821 echo "*** that the run-time linker is not finding GTK or finding the wrong"
22822 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
22823 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22824 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22825 echo "*** is required on your system"
22826 echo "***"
22827 echo "*** If you have an old version installed, it is best to remove it, although"
22828 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22829 echo "***"
22830 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
22831 echo "*** came with the system with the command"
22832 echo "***"
22833 echo "*** rpm --erase --nodeps gtk gtk-devel"
22834else
22835 echo "$as_me: failed program was:" >&5
22836sed 's/^/| /' conftest.$ac_ext >&5
22837
22838 echo "*** The test program failed to compile or link. See the file config.log for the"
22839 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
22840 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
22841 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
22842fi
ac1cb8d3
VS
22843rm -f conftest.err conftest.$ac_objext \
22844 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22845 CFLAGS="$ac_save_CFLAGS"
22846 LIBS="$ac_save_LIBS"
22847 fi
22848 fi
22849 GTK_CFLAGS=""
22850 GTK_LIBS=""
22851 :
22852 fi
22853
22854
22855 rm -f conf.gtktest
22856
22857
22858 if test -z "$wx_cv_lib_gtk"; then
22859
22860# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
22861if test "${with_gtk_prefix+set}" = set; then
22862 withval="$with_gtk_prefix"
22863 gtk_config_prefix="$withval"
22864else
22865 gtk_config_prefix=""
22866fi;
22867
22868# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
22869if test "${with_gtk_exec_prefix+set}" = set; then
22870 withval="$with_gtk_exec_prefix"
22871 gtk_config_exec_prefix="$withval"
22872else
22873 gtk_config_exec_prefix=""
22874fi;
22875# Check whether --enable-gtktest or --disable-gtktest was given.
22876if test "${enable_gtktest+set}" = set; then
22877 enableval="$enable_gtktest"
22878
22879else
22880 enable_gtktest=yes
22881fi;
22882
22883 for module in . $GTK_MODULES
22884 do
22885 case "$module" in
22886 gthread)
22887 gtk_config_args="$gtk_config_args gthread"
22888 ;;
22889 esac
22890 done
22891
22892 if test x$gtk_config_exec_prefix != x ; then
22893 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
22894 if test x${GTK_CONFIG+set} != xset ; then
22895 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
22896 fi
22897 fi
22898 if test x$gtk_config_prefix != x ; then
22899 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
22900 if test x${GTK_CONFIG+set} != xset ; then
22901 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
22902 fi
22903 fi
22904
22905 # Extract the first word of "gtk-config", so it can be a program name with args.
22906set dummy gtk-config; ac_word=$2
22907echo "$as_me:$LINENO: checking for $ac_word" >&5
22908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22909if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
22910 echo $ECHO_N "(cached) $ECHO_C" >&6
22911else
22912 case $GTK_CONFIG in
22913 [\\/]* | ?:[\\/]*)
22914 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
22915 ;;
22916 *)
22917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22918for as_dir in $PATH
22919do
22920 IFS=$as_save_IFS
22921 test -z "$as_dir" && as_dir=.
22922 for ac_exec_ext in '' $ac_executable_extensions; do
22923 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22924 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22926 break 2
22927 fi
22928done
22929done
22930
22931 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
22932 ;;
22933esac
22934fi
22935GTK_CONFIG=$ac_cv_path_GTK_CONFIG
22936
22937if test -n "$GTK_CONFIG"; then
22938 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
22939echo "${ECHO_T}$GTK_CONFIG" >&6
22940else
22941 echo "$as_me:$LINENO: result: no" >&5
22942echo "${ECHO_T}no" >&6
22943fi
22944
22945 min_gtk_version=1.2.3
22946 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
22947echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
22948 no_gtk=""
22949 if test "$GTK_CONFIG" = "no" ; then
22950 no_gtk=yes
22951 else
22952 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
22953 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
22954 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
22955 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22956 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
22957 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22958 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
22959 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22960 if test "x$enable_gtktest" = "xyes" ; then
22961 ac_save_CFLAGS="$CFLAGS"
22962 ac_save_LIBS="$LIBS"
22963 CFLAGS="$CFLAGS $GTK_CFLAGS"
22964 LIBS="$GTK_LIBS $LIBS"
22965 rm -f conf.gtktest
22966 if test "$cross_compiling" = yes; then
22967 echo $ac_n "cross compiling; assumed OK... $ac_c"
22968else
22969 cat >conftest.$ac_ext <<_ACEOF
22970/* confdefs.h. */
22971_ACEOF
22972cat confdefs.h >>conftest.$ac_ext
22973cat >>conftest.$ac_ext <<_ACEOF
22974/* end confdefs.h. */
22975
22976#include <gtk/gtk.h>
22977#include <stdio.h>
22978#include <stdlib.h>
22979
22980int
22981main ()
22982{
22983 int major, minor, micro;
22984 char *tmp_version;
22985
22986 system ("touch conf.gtktest");
22987
22988 /* HP/UX 9 (%@#!) writes to sscanf strings */
22989 tmp_version = g_strdup("$min_gtk_version");
22990 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22991 printf("%s, bad version string\n", "$min_gtk_version");
22992 exit(1);
22993 }
22994
22995 if ((gtk_major_version != $gtk_config_major_version) ||
22996 (gtk_minor_version != $gtk_config_minor_version) ||
22997 (gtk_micro_version != $gtk_config_micro_version))
22998 {
22999 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
23000 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
23001 gtk_major_version, gtk_minor_version, gtk_micro_version);
23002 printf ("*** was found! If gtk-config was correct, then it is best\n");
23003 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
23004 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
23005 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
23006 printf("*** required on your system.\n");
23007 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
23008 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
23009 printf("*** before re-running configure\n");
23010 }
23011#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
23012 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
23013 (gtk_minor_version != GTK_MINOR_VERSION) ||
23014 (gtk_micro_version != GTK_MICRO_VERSION))
23015 {
23016 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
23017 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
23018 printf("*** library (version %d.%d.%d)\n",
23019 gtk_major_version, gtk_minor_version, gtk_micro_version);
23020 }
23021#endif /* defined (GTK_MAJOR_VERSION) ... */
23022 else
23023 {
23024 if ((gtk_major_version > major) ||
23025 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
23026 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
23027 {
23028 return 0;
23029 }
23030 else
23031 {
23032 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
23033 gtk_major_version, gtk_minor_version, gtk_micro_version);
23034 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
23035 major, minor, micro);
23036 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
23037 printf("***\n");
23038 printf("*** If you have already installed a sufficiently new version, this error\n");
23039 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
23040 printf("*** being found. The easiest way to fix this is to remove the old version\n");
23041 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
23042 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
23043 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
23044 printf("*** so that the correct libraries are found at run-time))\n");
23045 }
23046 }
23047 return 1;
23048}
23049
23050_ACEOF
23051rm -f conftest$ac_exeext
23052if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23053 (eval $ac_link) 2>&5
23054 ac_status=$?
23055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23056 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23058 (eval $ac_try) 2>&5
23059 ac_status=$?
23060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23061 (exit $ac_status); }; }; then
23062 :
23063else
23064 echo "$as_me: program exited with status $ac_status" >&5
23065echo "$as_me: failed program was:" >&5
23066sed 's/^/| /' conftest.$ac_ext >&5
23067
23068( exit $ac_status )
23069no_gtk=yes
23070fi
ac1cb8d3 23071rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23072fi
23073 CFLAGS="$ac_save_CFLAGS"
23074 LIBS="$ac_save_LIBS"
23075 fi
23076 fi
23077 if test "x$no_gtk" = x ; then
23078 echo "$as_me:$LINENO: result: yes" >&5
23079echo "${ECHO_T}yes" >&6
23080 wx_cv_lib_gtk=1.2.3
23081 else
23082 echo "$as_me:$LINENO: result: no" >&5
23083echo "${ECHO_T}no" >&6
23084 if test "$GTK_CONFIG" = "no" ; then
23085 echo "*** The gtk-config script installed by GTK could not be found"
23086 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
23087 echo "*** your path, or set the GTK_CONFIG environment variable to the"
23088 echo "*** full path to gtk-config."
23089 else
23090 if test -f conf.gtktest ; then
23091 :
23092 else
23093 echo "*** Could not run GTK test program, checking why..."
23094 CFLAGS="$CFLAGS $GTK_CFLAGS"
23095 LIBS="$LIBS $GTK_LIBS"
23096 cat >conftest.$ac_ext <<_ACEOF
23097/* confdefs.h. */
23098_ACEOF
23099cat confdefs.h >>conftest.$ac_ext
23100cat >>conftest.$ac_ext <<_ACEOF
23101/* end confdefs.h. */
23102
23103#include <gtk/gtk.h>
23104#include <stdio.h>
23105
23106int
23107main ()
23108{
23109 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23110 ;
23111 return 0;
23112}
23113_ACEOF
23114rm -f conftest.$ac_objext conftest$ac_exeext
23115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23116 (eval $ac_link) 2>conftest.er1
a848cd7e 23117 ac_status=$?
ac1cb8d3
VS
23118 grep -v '^ *+' conftest.er1 >conftest.err
23119 rm -f conftest.er1
23120 cat conftest.err >&5
a848cd7e
SC
23121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23122 (exit $ac_status); } &&
ceec2216 23123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23125 (eval $ac_try) 2>&5
23126 ac_status=$?
23127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23128 (exit $ac_status); }; } &&
23129 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23131 (eval $ac_try) 2>&5
23132 ac_status=$?
23133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23134 (exit $ac_status); }; }; then
23135 echo "*** The test program compiled, but did not run. This usually means"
23136 echo "*** that the run-time linker is not finding GTK or finding the wrong"
23137 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
23138 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23139 echo "*** to the installed location Also, make sure you have run ldconfig if that"
23140 echo "*** is required on your system"
23141 echo "***"
23142 echo "*** If you have an old version installed, it is best to remove it, although"
23143 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23144 echo "***"
23145 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
23146 echo "*** came with the system with the command"
23147 echo "***"
23148 echo "*** rpm --erase --nodeps gtk gtk-devel"
23149else
23150 echo "$as_me: failed program was:" >&5
23151sed 's/^/| /' conftest.$ac_ext >&5
23152
23153 echo "*** The test program failed to compile or link. See the file config.log for the"
23154 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
23155 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
23156 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
23157fi
ac1cb8d3
VS
23158rm -f conftest.err conftest.$ac_objext \
23159 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23160 CFLAGS="$ac_save_CFLAGS"
23161 LIBS="$ac_save_LIBS"
23162 fi
23163 fi
23164 GTK_CFLAGS=""
23165 GTK_LIBS=""
23166 :
23167 fi
23168
23169
23170 rm -f conf.gtktest
23171
23172 fi
23173 fi
23174
23175 if test -z "$wx_cv_lib_gtk"; then
23176 wx_cv_lib_gtk=none
23177 else
23178 wx_cv_cflags_gtk=$GTK_CFLAGS
23179 wx_cv_libs_gtk=$GTK_LIBS
23180 fi
23181
23182
23183fi
23184
23185
23186 if test "$gtk_version_cached" = 1; then
23187 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
23188echo "${ECHO_T}$wx_cv_lib_gtk" >&6
23189 fi
23190
23191 case "$wx_cv_lib_gtk" in
23192 2.0) WXGTK20=1
23193 TOOLKIT_VERSION=2
23194 ;;
23195 1.2.7) WXGTK127=1
23196 WXGTK12=1
23197 ;;
23198 1.2.3) WXGTK12=1
23199 ;;
23200 *) { { echo "$as_me:$LINENO: error:
23201Please check that gtk-config is in path, the directory
23202where GTK+ libraries are installed (returned by
23203'gtk-config --libs' command) is in LD_LIBRARY_PATH or
23204equivalent variable and GTK+ is version 1.2.3 or above.
23205 " >&5
23206echo "$as_me: error:
23207Please check that gtk-config is in path, the directory
23208where GTK+ libraries are installed (returned by
23209'gtk-config --libs' command) is in LD_LIBRARY_PATH or
23210equivalent variable and GTK+ is version 1.2.3 or above.
23211 " >&2;}
23212 { (exit 1); exit 1; }; }
23213 ;;
23214 esac
23215
23216 if test "$WXGTK20" = 1; then
23217 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
23218
23219 succeeded=no
23220
23221 if test -z "$PKG_CONFIG"; then
23222 # Extract the first word of "pkg-config", so it can be a program name with args.
23223set dummy pkg-config; ac_word=$2
23224echo "$as_me:$LINENO: checking for $ac_word" >&5
23225echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23226if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23227 echo $ECHO_N "(cached) $ECHO_C" >&6
23228else
23229 case $PKG_CONFIG in
23230 [\\/]* | ?:[\\/]*)
23231 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23232 ;;
23233 *)
23234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23235for as_dir in $PATH
23236do
23237 IFS=$as_save_IFS
23238 test -z "$as_dir" && as_dir=.
23239 for ac_exec_ext in '' $ac_executable_extensions; do
23240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23241 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23243 break 2
23244 fi
23245done
23246done
23247
23248 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23249 ;;
23250esac
23251fi
23252PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23253
23254if test -n "$PKG_CONFIG"; then
23255 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23256echo "${ECHO_T}$PKG_CONFIG" >&6
23257else
23258 echo "$as_me:$LINENO: result: no" >&5
23259echo "${ECHO_T}no" >&6
23260fi
23261
23262 fi
23263
23264 if test "$PKG_CONFIG" = "no" ; then
23265 echo "*** The pkg-config script could not be found. Make sure it is"
23266 echo "*** in your path, or set the PKG_CONFIG environment variable"
23267 echo "*** to the full path to pkg-config."
23268 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23269 else
23270 PKG_CONFIG_MIN_VERSION=0.9.0
23271 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23272 echo "$as_me:$LINENO: checking for pangoft2" >&5
23273echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
23274
23275 if $PKG_CONFIG --exists "pangoft2" ; then
23276 echo "$as_me:$LINENO: result: yes" >&5
23277echo "${ECHO_T}yes" >&6
23278 succeeded=yes
23279
23280 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
23281echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
23282 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
23283 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
23284echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
23285
23286 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
23287echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
23288 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
23289 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
23290echo "${ECHO_T}$PANGOFT2_LIBS" >&6
23291 else
23292 PANGOFT2_CFLAGS=""
23293 PANGOFT2_LIBS=""
23294 ## If we have a custom action on failure, don't print errors, but
23295 ## do set a variable so people can do so.
23296 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
23297
23298 fi
23299
23300
23301
23302 else
23303 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23304 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23305 fi
23306 fi
23307
23308 if test $succeeded = yes; then
23309
23310 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
ceec2216
RL
23311 # FIXME: GTK_LIBS already has a lot of what this is
23312 # about to add, but we go ahead and just add
23313 # it all again anyway.
23314 # This is not a good way to manage things. And simply
23315 # uniq'ing the list later is hardly better.
a848cd7e
SC
23316 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
23317
23318 else
23319
23320 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
23321echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
23322 wxUSE_PRINTING_ARCHITECTURE="no"
23323
23324
23325 fi
23326
23327 fi
304205f1
VS
23328
23329 save_CFLAGS="$CFLAGS"
23330 save_LIBS="$LIBS"
23331 CFLAGS="$CFLAGS $GTK_CFLAGS"
23332 LIBS="$LIBS $GTK_LIBS"
23333
23334for ac_func in pango_font_family_is_monospace
23335do
23336as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23337echo "$as_me:$LINENO: checking for $ac_func" >&5
23338echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23339if eval "test \"\${$as_ac_var+set}\" = set"; then
23340 echo $ECHO_N "(cached) $ECHO_C" >&6
23341else
23342 cat >conftest.$ac_ext <<_ACEOF
23343/* confdefs.h. */
23344_ACEOF
23345cat confdefs.h >>conftest.$ac_ext
23346cat >>conftest.$ac_ext <<_ACEOF
23347/* end confdefs.h. */
23348/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23349 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23350#define $ac_func innocuous_$ac_func
23351
23352/* System header to define __stub macros and hopefully few prototypes,
23353 which can conflict with char $ac_func (); below.
23354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23355 <limits.h> exists even on freestanding compilers. */
23356
23357#ifdef __STDC__
23358# include <limits.h>
23359#else
23360# include <assert.h>
23361#endif
23362
23363#undef $ac_func
23364
23365/* Override any gcc2 internal prototype to avoid an error. */
23366#ifdef __cplusplus
23367extern "C"
23368{
23369#endif
23370/* We use char because int might match the return type of a gcc2
23371 builtin and then its argument prototype would still apply. */
23372char $ac_func ();
23373/* The GNU C library defines this for functions which it implements
23374 to always fail with ENOSYS. Some functions are actually named
23375 something starting with __ and the normal name is an alias. */
23376#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23377choke me
23378#else
23379char (*f) () = $ac_func;
23380#endif
23381#ifdef __cplusplus
23382}
23383#endif
23384
23385int
23386main ()
23387{
23388return f != $ac_func;
23389 ;
23390 return 0;
23391}
23392_ACEOF
23393rm -f conftest.$ac_objext conftest$ac_exeext
23394if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23395 (eval $ac_link) 2>conftest.er1
23396 ac_status=$?
23397 grep -v '^ *+' conftest.er1 >conftest.err
23398 rm -f conftest.er1
23399 cat conftest.err >&5
23400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23401 (exit $ac_status); } &&
ceec2216 23402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
23403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23404 (eval $ac_try) 2>&5
23405 ac_status=$?
23406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23407 (exit $ac_status); }; } &&
23408 { ac_try='test -s conftest$ac_exeext'
23409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23410 (eval $ac_try) 2>&5
23411 ac_status=$?
23412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23413 (exit $ac_status); }; }; then
23414 eval "$as_ac_var=yes"
23415else
23416 echo "$as_me: failed program was:" >&5
23417sed 's/^/| /' conftest.$ac_ext >&5
23418
23419eval "$as_ac_var=no"
23420fi
23421rm -f conftest.err conftest.$ac_objext \
23422 conftest$ac_exeext conftest.$ac_ext
23423fi
23424echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23425echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23426if test `eval echo '${'$as_ac_var'}'` = yes; then
23427 cat >>confdefs.h <<_ACEOF
23428#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23429_ACEOF
23430
23431fi
23432done
23433
23434 CFLAGS="$save_CFLAGS"
23435 LIBS="$save_LIBS"
a848cd7e
SC
23436 else
23437 if test "$wxUSE_UNICODE" = "yes"; then
23438 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
23439echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
23440 wxUSE_UNICODE=no
23441 fi
23442 fi
23443
23444 if test "$USE_DARWIN" != 1; then
23445
23446for ac_func in poll
23447do
23448as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23449echo "$as_me:$LINENO: checking for $ac_func" >&5
23450echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23451if eval "test \"\${$as_ac_var+set}\" = set"; then
23452 echo $ECHO_N "(cached) $ECHO_C" >&6
23453else
23454 cat >conftest.$ac_ext <<_ACEOF
23455/* confdefs.h. */
23456_ACEOF
23457cat confdefs.h >>conftest.$ac_ext
23458cat >>conftest.$ac_ext <<_ACEOF
23459/* end confdefs.h. */
ac1cb8d3
VS
23460/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23461 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23462#define $ac_func innocuous_$ac_func
23463
a848cd7e
SC
23464/* System header to define __stub macros and hopefully few prototypes,
23465 which can conflict with char $ac_func (); below.
23466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23467 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 23468
a848cd7e
SC
23469#ifdef __STDC__
23470# include <limits.h>
23471#else
23472# include <assert.h>
23473#endif
ac1cb8d3
VS
23474
23475#undef $ac_func
23476
a848cd7e
SC
23477/* Override any gcc2 internal prototype to avoid an error. */
23478#ifdef __cplusplus
23479extern "C"
23480{
23481#endif
23482/* We use char because int might match the return type of a gcc2
23483 builtin and then its argument prototype would still apply. */
23484char $ac_func ();
23485/* The GNU C library defines this for functions which it implements
23486 to always fail with ENOSYS. Some functions are actually named
23487 something starting with __ and the normal name is an alias. */
23488#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23489choke me
23490#else
23491char (*f) () = $ac_func;
23492#endif
23493#ifdef __cplusplus
23494}
23495#endif
23496
23497int
23498main ()
23499{
23500return f != $ac_func;
23501 ;
23502 return 0;
23503}
23504_ACEOF
23505rm -f conftest.$ac_objext conftest$ac_exeext
23506if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23507 (eval $ac_link) 2>conftest.er1
a848cd7e 23508 ac_status=$?
ac1cb8d3
VS
23509 grep -v '^ *+' conftest.er1 >conftest.err
23510 rm -f conftest.er1
23511 cat conftest.err >&5
a848cd7e
SC
23512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23513 (exit $ac_status); } &&
ceec2216 23514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23516 (eval $ac_try) 2>&5
23517 ac_status=$?
23518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23519 (exit $ac_status); }; } &&
23520 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23522 (eval $ac_try) 2>&5
23523 ac_status=$?
23524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23525 (exit $ac_status); }; }; then
23526 eval "$as_ac_var=yes"
23527else
23528 echo "$as_me: failed program was:" >&5
23529sed 's/^/| /' conftest.$ac_ext >&5
23530
23531eval "$as_ac_var=no"
23532fi
ac1cb8d3
VS
23533rm -f conftest.err conftest.$ac_objext \
23534 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23535fi
23536echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23537echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23538if test `eval echo '${'$as_ac_var'}'` = yes; then
23539 cat >>confdefs.h <<_ACEOF
23540#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23541_ACEOF
23542
23543fi
23544done
23545
23546 fi
23547
23548 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
23549 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
23550
23551 AFMINSTALL=afminstall
23552 TOOLKIT=GTK
23553 GUIDIST=GTK_DIST
23554
23555 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
23556echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
23557if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
23558 echo $ECHO_N "(cached) $ECHO_C" >&6
23559else
23560 ac_check_lib_save_LIBS=$LIBS
23561LIBS="-lgdk $LIBS"
23562cat >conftest.$ac_ext <<_ACEOF
23563/* confdefs.h. */
23564_ACEOF
23565cat confdefs.h >>conftest.$ac_ext
23566cat >>conftest.$ac_ext <<_ACEOF
23567/* end confdefs.h. */
23568
23569/* Override any gcc2 internal prototype to avoid an error. */
23570#ifdef __cplusplus
23571extern "C"
23572#endif
23573/* We use char because int might match the return type of a gcc2
23574 builtin and then its argument prototype would still apply. */
23575char gdk_im_open ();
23576int
23577main ()
23578{
23579gdk_im_open ();
23580 ;
23581 return 0;
23582}
23583_ACEOF
23584rm -f conftest.$ac_objext conftest$ac_exeext
23585if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23586 (eval $ac_link) 2>conftest.er1
a848cd7e 23587 ac_status=$?
ac1cb8d3
VS
23588 grep -v '^ *+' conftest.er1 >conftest.err
23589 rm -f conftest.er1
23590 cat conftest.err >&5
a848cd7e
SC
23591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23592 (exit $ac_status); } &&
ceec2216 23593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23595 (eval $ac_try) 2>&5
23596 ac_status=$?
23597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23598 (exit $ac_status); }; } &&
23599 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23601 (eval $ac_try) 2>&5
23602 ac_status=$?
23603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23604 (exit $ac_status); }; }; then
23605 ac_cv_lib_gdk_gdk_im_open=yes
23606else
23607 echo "$as_me: failed program was:" >&5
23608sed 's/^/| /' conftest.$ac_ext >&5
23609
23610ac_cv_lib_gdk_gdk_im_open=no
23611fi
ac1cb8d3
VS
23612rm -f conftest.err conftest.$ac_objext \
23613 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23614LIBS=$ac_check_lib_save_LIBS
23615fi
23616echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
23617echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
23618if test $ac_cv_lib_gdk_gdk_im_open = yes; then
23619 cat >>confdefs.h <<\_ACEOF
23620#define HAVE_XIM 1
23621_ACEOF
23622
23623fi
23624
23625
23626
23627 if test "$wxUSE_GPE" = "yes"; then
23628 echo "$as_me:$LINENO: checking for gpewidget library" >&5
23629echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
23630
23631ac_find_libraries=
23632for ac_dir in $SEARCH_LIB /usr/lib;
23633 do
23634 for ac_extension in a so sl dylib; do
23635 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
23636 ac_find_libraries=$ac_dir
23637 break 2
23638 fi
23639 done
23640 done
23641
23642 if test "$ac_find_libraries" != "" ; then
23643
23644 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
23645 result=$?
23646 if test $result = 0; then
23647 ac_path_to_link=""
23648 else
23649 ac_path_to_link=" -L$ac_find_libraries"
23650 fi
23651
23652 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
23653 WXGPE=1
23654 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
23655echo "${ECHO_T}found at $ac_find_libraries" >&6
23656 else
23657 echo "$as_me:$LINENO: result: not found" >&5
23658echo "${ECHO_T}not found" >&6
23659 fi
23660
23661 fi
23662 fi
23663
23664 if test "$wxUSE_MGL" = 1; then
23665 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
23666echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
23667 if test "x$MGL_ROOT" = x ; then
23668 echo "$as_me:$LINENO: result: not found" >&5
23669echo "${ECHO_T}not found" >&6
23670 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
23671echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
23672 { (exit 1); exit 1; }; }
23673 else
23674 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
23675echo "${ECHO_T}$MGL_ROOT" >&6
23676 fi
23677
23678 echo "$as_me:$LINENO: checking for libmgl location" >&5
23679echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
23680 case "${host}" in
23681 *-*-linux* )
23682 if test "x$wxUSE_SHARED" = xyes ; then
23683 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
23684 else
23685 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
23686 fi
23687 ;;
23688 *-pc-msdosdjgpp )
23689 mgl_os_candidates="dos32/dj2"
23690 ;;
23691 *)
23692 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
23693echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
23694 { (exit 1); exit 1; }; }
23695 esac
23696
23697 mgl_lib_type=""
23698 mgl_os=""
23699
23700 for mgl_os_i in $mgl_os_candidates ; do
23701 if test "x$mgl_os" = x ; then
23702 if test "$wxUSE_DEBUG_FLAG" = yes ; then
23703 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
23704 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
23705 mgl_lib_type=debug
23706 mgl_os=$mgl_os_i
23707 fi
23708 fi
23709 if test "x$mgl_lib_type" = x ; then
23710 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
23711 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
23712 mgl_lib_type=release
23713 mgl_os=$mgl_os_i
23714 fi
23715 fi
23716 fi
23717 done
23718
23719 if test "x$mgl_os" = x ; then
23720 echo "$as_me:$LINENO: result: not found" >&5
23721echo "${ECHO_T}not found" >&6
23722 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
23723echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
23724 { (exit 1); exit 1; }; }
23725 fi
23726 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
23727echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
23728
23729 wxUSE_UNIVERSAL="yes"
23730
23731 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
23732 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
23733
23734 AFMINSTALL=afminstall
23735 TOOLKIT=MGL
23736 GUIDIST=MGL_DIST
23737 fi
23738
23739 if test "$wxUSE_MICROWIN" = 1; then
23740 echo "$as_me:$LINENO: checking for MicroWindows" >&5
23741echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
23742 if test "x$MICROWINDOWS" = x ; then
23743 echo "$as_me:$LINENO: result: not found" >&5
23744echo "${ECHO_T}not found" >&6
23745 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
23746echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
23747 { (exit 1); exit 1; }; }
23748 else
23749 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
23750echo "${ECHO_T}$MICROWINDOWS" >&6
23751 fi
23752
23753 if test -f $MICROWINDOWS/lib/libmwin.a; then
23754 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
23755echo "${ECHO_T}MicroWindows' libraries found." >&6
23756 else
23757 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
23758echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
23759 { (exit 1); exit 1; }; }
23760 fi
23761
23762 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
23763 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
23764
23765 wxUSE_UNIVERSAL="yes"
23766
23767 AFMINSTALL=afminstall
23768 TOOLKIT=MICROWIN
23769 GUIDIST=MICROWIN_DIST
23770
23771 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
23772 fi
23773
74b84332 23774 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
ceec2216
RL
23775
23776if test "x$ac_path_x_has_been_run" != xyes; then
23777 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
23778echo $ECHO_N "checking for X... $ECHO_C" >&6
23779
ceec2216 23780ac_path_x_has_been_run=yes
a848cd7e
SC
23781
23782# Check whether --with-x or --without-x was given.
23783if test "${with_x+set}" = set; then
23784 withval="$with_x"
23785
23786fi;
23787# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
23788if test "x$with_x" = xno; then
23789 # The user explicitly disabled X.
23790 have_x=disabled
23791else
23792 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
23793 # Both variables are already set.
23794 have_x=yes
23795 else
23796 if test "${ac_cv_have_x+set}" = set; then
23797 echo $ECHO_N "(cached) $ECHO_C" >&6
23798else
23799 # One or both of the vars are not set, and there is no cached value.
23800ac_x_includes=no ac_x_libraries=no
23801rm -fr conftest.dir
23802if mkdir conftest.dir; then
23803 cd conftest.dir
23804 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
23805 cat >Imakefile <<'_ACEOF'
23806acfindx:
23807 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
23808_ACEOF
23809 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
23810 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23811 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
23812 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
23813 for ac_extension in a so sl; do
23814 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
23815 test -f $ac_im_libdir/libX11.$ac_extension; then
23816 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
23817 fi
23818 done
23819 # Screen out bogus values from the imake configuration. They are
23820 # bogus both because they are the default anyway, and because
23821 # using them would break gcc on systems where it needs fixed includes.
23822 case $ac_im_incroot in
23823 /usr/include) ;;
23824 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
23825 esac
23826 case $ac_im_usrlibdir in
23827 /usr/lib | /lib) ;;
23828 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
23829 esac
23830 fi
23831 cd ..
23832 rm -fr conftest.dir
23833fi
23834
23835# Standard set of common directories for X headers.
23836# Check X11 before X11Rn because it is often a symlink to the current release.
23837ac_x_header_dirs='
23838/usr/X11/include
23839/usr/X11R6/include
23840/usr/X11R5/include
23841/usr/X11R4/include
23842
23843/usr/include/X11
23844/usr/include/X11R6
23845/usr/include/X11R5
23846/usr/include/X11R4
23847
23848/usr/local/X11/include
23849/usr/local/X11R6/include
23850/usr/local/X11R5/include
23851/usr/local/X11R4/include
23852
23853/usr/local/include/X11
23854/usr/local/include/X11R6
23855/usr/local/include/X11R5
23856/usr/local/include/X11R4
23857
23858/usr/X386/include
23859/usr/x386/include
23860/usr/XFree86/include/X11
23861
23862/usr/include
23863/usr/local/include
23864/usr/unsupported/include
23865/usr/athena/include
23866/usr/local/x11r5/include
23867/usr/lpp/Xamples/include
23868
23869/usr/openwin/include
23870/usr/openwin/share/include'
23871
23872if test "$ac_x_includes" = no; then
ceec2216 23873 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
23874 # First, try using that file with no special directory specified.
23875 cat >conftest.$ac_ext <<_ACEOF
23876/* confdefs.h. */
23877_ACEOF
23878cat confdefs.h >>conftest.$ac_ext
23879cat >>conftest.$ac_ext <<_ACEOF
23880/* end confdefs.h. */
23881#include <X11/Intrinsic.h>
23882_ACEOF
23883if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23884 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23885 ac_status=$?
23886 grep -v '^ *+' conftest.er1 >conftest.err
23887 rm -f conftest.er1
23888 cat conftest.err >&5
23889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23890 (exit $ac_status); } >/dev/null; then
23891 if test -s conftest.err; then
23892 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23893 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23894 else
23895 ac_cpp_err=
23896 fi
23897else
23898 ac_cpp_err=yes
23899fi
23900if test -z "$ac_cpp_err"; then
23901 # We can compile using X headers with no special include directory.
23902ac_x_includes=
23903else
23904 echo "$as_me: failed program was:" >&5
23905sed 's/^/| /' conftest.$ac_ext >&5
23906
23907 for ac_dir in $ac_x_header_dirs; do
23908 if test -r "$ac_dir/X11/Intrinsic.h"; then
23909 ac_x_includes=$ac_dir
23910 break
23911 fi
23912done
23913fi
23914rm -f conftest.err conftest.$ac_ext
23915fi # $ac_x_includes = no
23916
23917if test "$ac_x_libraries" = no; then
23918 # Check for the libraries.
23919 # See if we find them without any special options.
23920 # Don't add to $LIBS permanently.
23921 ac_save_LIBS=$LIBS
23922 LIBS="-lXt $LIBS"
23923 cat >conftest.$ac_ext <<_ACEOF
23924/* confdefs.h. */
23925_ACEOF
23926cat confdefs.h >>conftest.$ac_ext
23927cat >>conftest.$ac_ext <<_ACEOF
23928/* end confdefs.h. */
23929#include <X11/Intrinsic.h>
23930int
23931main ()
23932{
23933XtMalloc (0)
23934 ;
23935 return 0;
23936}
23937_ACEOF
23938rm -f conftest.$ac_objext conftest$ac_exeext
23939if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23940 (eval $ac_link) 2>conftest.er1
a848cd7e 23941 ac_status=$?
ac1cb8d3
VS
23942 grep -v '^ *+' conftest.er1 >conftest.err
23943 rm -f conftest.er1
23944 cat conftest.err >&5
a848cd7e
SC
23945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23946 (exit $ac_status); } &&
ceec2216 23947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23949 (eval $ac_try) 2>&5
23950 ac_status=$?
23951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23952 (exit $ac_status); }; } &&
23953 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23955 (eval $ac_try) 2>&5
23956 ac_status=$?
23957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23958 (exit $ac_status); }; }; then
23959 LIBS=$ac_save_LIBS
23960# We can link X programs with no special library path.
23961ac_x_libraries=
23962else
23963 echo "$as_me: failed program was:" >&5
23964sed 's/^/| /' conftest.$ac_ext >&5
23965
23966LIBS=$ac_save_LIBS
23967for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
23968do
23969 # Don't even attempt the hair of trying to link an X program!
23970 for ac_extension in a so sl; do
23971 if test -r $ac_dir/libXt.$ac_extension; then
23972 ac_x_libraries=$ac_dir
23973 break 2
23974 fi
23975 done
23976done
23977fi
ac1cb8d3
VS
23978rm -f conftest.err conftest.$ac_objext \
23979 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23980fi # $ac_x_libraries = no
23981
23982if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
23983 # Didn't find X anywhere. Cache the known absence of X.
23984 ac_cv_have_x="have_x=no"
23985else
23986 # Record where we found X for the cache.
23987 ac_cv_have_x="have_x=yes \
ac1cb8d3 23988 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
23989fi
23990fi
23991
23992 fi
23993 eval "$ac_cv_have_x"
23994fi # $with_x != no
23995
23996if test "$have_x" != yes; then
23997 echo "$as_me:$LINENO: result: $have_x" >&5
23998echo "${ECHO_T}$have_x" >&6
23999 no_x=yes
24000else
24001 # If each of the values was on the command line, it overrides each guess.
24002 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24003 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24004 # Update the cache value to reflect the command line values.
24005 ac_cv_have_x="have_x=yes \
24006 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
ceec2216
RL
24007 # It might be that x_includes is empty (headers are found in the
24008 # standard search path. Then output the corresponding message
24009 ac_out_x_includes=$x_includes
24010 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
24011 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
24012echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
24013fi
24014
ceec2216 24015fi
a848cd7e
SC
24016if test "$no_x" = yes; then
24017 # Not all programs may use this symbol, but it does not hurt to define it.
24018
24019cat >>confdefs.h <<\_ACEOF
24020#define X_DISPLAY_MISSING 1
24021_ACEOF
24022
24023 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24024else
24025 if test -n "$x_includes"; then
24026 X_CFLAGS="$X_CFLAGS -I$x_includes"
24027 fi
24028
24029 # It would also be nice to do this for all -L options, not just this one.
24030 if test -n "$x_libraries"; then
24031 X_LIBS="$X_LIBS -L$x_libraries"
24032 # For Solaris; some versions of Sun CC require a space after -R and
24033 # others require no space. Words are not sufficient . . . .
24034 case `(uname -sr) 2>/dev/null` in
24035 "SunOS 5"*)
24036 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
24037echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
24038 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24039 cat >conftest.$ac_ext <<_ACEOF
24040/* confdefs.h. */
24041_ACEOF
24042cat confdefs.h >>conftest.$ac_ext
24043cat >>conftest.$ac_ext <<_ACEOF
24044/* end confdefs.h. */
24045
24046int
24047main ()
24048{
24049
24050 ;
24051 return 0;
24052}
24053_ACEOF
24054rm -f conftest.$ac_objext conftest$ac_exeext
24055if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24056 (eval $ac_link) 2>conftest.er1
a848cd7e 24057 ac_status=$?
ac1cb8d3
VS
24058 grep -v '^ *+' conftest.er1 >conftest.err
24059 rm -f conftest.er1
24060 cat conftest.err >&5
a848cd7e
SC
24061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24062 (exit $ac_status); } &&
ceec2216 24063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24065 (eval $ac_try) 2>&5
24066 ac_status=$?
24067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24068 (exit $ac_status); }; } &&
24069 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24071 (eval $ac_try) 2>&5
24072 ac_status=$?
24073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24074 (exit $ac_status); }; }; then
24075 ac_R_nospace=yes
24076else
24077 echo "$as_me: failed program was:" >&5
24078sed 's/^/| /' conftest.$ac_ext >&5
24079
24080ac_R_nospace=no
24081fi
ac1cb8d3
VS
24082rm -f conftest.err conftest.$ac_objext \
24083 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24084 if test $ac_R_nospace = yes; then
24085 echo "$as_me:$LINENO: result: no" >&5
24086echo "${ECHO_T}no" >&6
24087 X_LIBS="$X_LIBS -R$x_libraries"
24088 else
24089 LIBS="$ac_xsave_LIBS -R $x_libraries"
24090 cat >conftest.$ac_ext <<_ACEOF
24091/* confdefs.h. */
24092_ACEOF
24093cat confdefs.h >>conftest.$ac_ext
24094cat >>conftest.$ac_ext <<_ACEOF
24095/* end confdefs.h. */
24096
24097int
24098main ()
24099{
24100
24101 ;
24102 return 0;
24103}
24104_ACEOF
24105rm -f conftest.$ac_objext conftest$ac_exeext
24106if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24107 (eval $ac_link) 2>conftest.er1
a848cd7e 24108 ac_status=$?
ac1cb8d3
VS
24109 grep -v '^ *+' conftest.er1 >conftest.err
24110 rm -f conftest.er1
24111 cat conftest.err >&5
a848cd7e
SC
24112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24113 (exit $ac_status); } &&
ceec2216 24114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24116 (eval $ac_try) 2>&5
24117 ac_status=$?
24118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24119 (exit $ac_status); }; } &&
24120 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24122 (eval $ac_try) 2>&5
24123 ac_status=$?
24124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24125 (exit $ac_status); }; }; then
24126 ac_R_space=yes
24127else
24128 echo "$as_me: failed program was:" >&5
24129sed 's/^/| /' conftest.$ac_ext >&5
24130
24131ac_R_space=no
24132fi
ac1cb8d3
VS
24133rm -f conftest.err conftest.$ac_objext \
24134 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24135 if test $ac_R_space = yes; then
24136 echo "$as_me:$LINENO: result: yes" >&5
24137echo "${ECHO_T}yes" >&6
24138 X_LIBS="$X_LIBS -R $x_libraries"
24139 else
24140 echo "$as_me:$LINENO: result: neither works" >&5
24141echo "${ECHO_T}neither works" >&6
24142 fi
24143 fi
24144 LIBS=$ac_xsave_LIBS
24145 esac
24146 fi
24147
24148 # Check for system-dependent libraries X programs must link with.
24149 # Do this before checking for the system-independent R6 libraries
24150 # (-lICE), since we may need -lsocket or whatever for X linking.
24151
24152 if test "$ISC" = yes; then
24153 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24154 else
24155 # Martyn Johnson says this is needed for Ultrix, if the X
24156 # libraries were built with DECnet support. And Karl Berry says
24157 # the Alpha needs dnet_stub (dnet does not exist).
24158 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24159 cat >conftest.$ac_ext <<_ACEOF
24160/* confdefs.h. */
24161_ACEOF
24162cat confdefs.h >>conftest.$ac_ext
24163cat >>conftest.$ac_ext <<_ACEOF
24164/* end confdefs.h. */
24165
24166/* Override any gcc2 internal prototype to avoid an error. */
24167#ifdef __cplusplus
24168extern "C"
24169#endif
24170/* We use char because int might match the return type of a gcc2
24171 builtin and then its argument prototype would still apply. */
24172char XOpenDisplay ();
24173int
24174main ()
24175{
24176XOpenDisplay ();
24177 ;
24178 return 0;
24179}
24180_ACEOF
24181rm -f conftest.$ac_objext conftest$ac_exeext
24182if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24183 (eval $ac_link) 2>conftest.er1
a848cd7e 24184 ac_status=$?
ac1cb8d3
VS
24185 grep -v '^ *+' conftest.er1 >conftest.err
24186 rm -f conftest.er1
24187 cat conftest.err >&5
a848cd7e
SC
24188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24189 (exit $ac_status); } &&
ceec2216 24190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24192 (eval $ac_try) 2>&5
24193 ac_status=$?
24194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24195 (exit $ac_status); }; } &&
24196 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24198 (eval $ac_try) 2>&5
24199 ac_status=$?
24200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24201 (exit $ac_status); }; }; then
24202 :
24203else
24204 echo "$as_me: failed program was:" >&5
24205sed 's/^/| /' conftest.$ac_ext >&5
24206
24207echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
24208echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
24209if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
24210 echo $ECHO_N "(cached) $ECHO_C" >&6
24211else
24212 ac_check_lib_save_LIBS=$LIBS
24213LIBS="-ldnet $LIBS"
24214cat >conftest.$ac_ext <<_ACEOF
24215/* confdefs.h. */
24216_ACEOF
24217cat confdefs.h >>conftest.$ac_ext
24218cat >>conftest.$ac_ext <<_ACEOF
24219/* end confdefs.h. */
24220
24221/* Override any gcc2 internal prototype to avoid an error. */
24222#ifdef __cplusplus
24223extern "C"
24224#endif
24225/* We use char because int might match the return type of a gcc2
24226 builtin and then its argument prototype would still apply. */
24227char dnet_ntoa ();
24228int
24229main ()
24230{
24231dnet_ntoa ();
24232 ;
24233 return 0;
24234}
24235_ACEOF
24236rm -f conftest.$ac_objext conftest$ac_exeext
24237if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24238 (eval $ac_link) 2>conftest.er1
a848cd7e 24239 ac_status=$?
ac1cb8d3
VS
24240 grep -v '^ *+' conftest.er1 >conftest.err
24241 rm -f conftest.er1
24242 cat conftest.err >&5
a848cd7e
SC
24243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24244 (exit $ac_status); } &&
ceec2216 24245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24247 (eval $ac_try) 2>&5
24248 ac_status=$?
24249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24250 (exit $ac_status); }; } &&
24251 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24253 (eval $ac_try) 2>&5
24254 ac_status=$?
24255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24256 (exit $ac_status); }; }; then
24257 ac_cv_lib_dnet_dnet_ntoa=yes
24258else
24259 echo "$as_me: failed program was:" >&5
24260sed 's/^/| /' conftest.$ac_ext >&5
24261
24262ac_cv_lib_dnet_dnet_ntoa=no
24263fi
ac1cb8d3
VS
24264rm -f conftest.err conftest.$ac_objext \
24265 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24266LIBS=$ac_check_lib_save_LIBS
24267fi
24268echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24269echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
24270if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
24271 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24272fi
24273
24274 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24275 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
24276echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
24277if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
24278 echo $ECHO_N "(cached) $ECHO_C" >&6
24279else
24280 ac_check_lib_save_LIBS=$LIBS
24281LIBS="-ldnet_stub $LIBS"
24282cat >conftest.$ac_ext <<_ACEOF
24283/* confdefs.h. */
24284_ACEOF
24285cat confdefs.h >>conftest.$ac_ext
24286cat >>conftest.$ac_ext <<_ACEOF
24287/* end confdefs.h. */
24288
24289/* Override any gcc2 internal prototype to avoid an error. */
24290#ifdef __cplusplus
24291extern "C"
24292#endif
24293/* We use char because int might match the return type of a gcc2
24294 builtin and then its argument prototype would still apply. */
24295char dnet_ntoa ();
24296int
24297main ()
24298{
24299dnet_ntoa ();
24300 ;
24301 return 0;
24302}
24303_ACEOF
24304rm -f conftest.$ac_objext conftest$ac_exeext
24305if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24306 (eval $ac_link) 2>conftest.er1
a848cd7e 24307 ac_status=$?
ac1cb8d3
VS
24308 grep -v '^ *+' conftest.er1 >conftest.err
24309 rm -f conftest.er1
24310 cat conftest.err >&5
a848cd7e
SC
24311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24312 (exit $ac_status); } &&
ceec2216 24313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24315 (eval $ac_try) 2>&5
24316 ac_status=$?
24317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24318 (exit $ac_status); }; } &&
24319 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24321 (eval $ac_try) 2>&5
24322 ac_status=$?
24323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24324 (exit $ac_status); }; }; then
24325 ac_cv_lib_dnet_stub_dnet_ntoa=yes
24326else
24327 echo "$as_me: failed program was:" >&5
24328sed 's/^/| /' conftest.$ac_ext >&5
24329
24330ac_cv_lib_dnet_stub_dnet_ntoa=no
24331fi
ac1cb8d3
VS
24332rm -f conftest.err conftest.$ac_objext \
24333 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24334LIBS=$ac_check_lib_save_LIBS
24335fi
24336echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24337echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
24338if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
24339 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24340fi
24341
24342 fi
24343fi
ac1cb8d3
VS
24344rm -f conftest.err conftest.$ac_objext \
24345 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24346 LIBS="$ac_xsave_LIBS"
24347
24348 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24349 # to get the SysV transport functions.
24350 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24351 # needs -lnsl.
24352 # The nsl library prevents programs from opening the X display
24353 # on Irix 5.2, according to T.E. Dickey.
24354 # The functions gethostbyname, getservbyname, and inet_addr are
24355 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24356 echo "$as_me:$LINENO: checking for gethostbyname" >&5
24357echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
24358if test "${ac_cv_func_gethostbyname+set}" = set; then
24359 echo $ECHO_N "(cached) $ECHO_C" >&6
24360else
24361 cat >conftest.$ac_ext <<_ACEOF
24362/* confdefs.h. */
24363_ACEOF
24364cat confdefs.h >>conftest.$ac_ext
24365cat >>conftest.$ac_ext <<_ACEOF
24366/* end confdefs.h. */
ac1cb8d3
VS
24367/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
24368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24369#define gethostbyname innocuous_gethostbyname
24370
a848cd7e
SC
24371/* System header to define __stub macros and hopefully few prototypes,
24372 which can conflict with char gethostbyname (); below.
24373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24374 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24375
a848cd7e
SC
24376#ifdef __STDC__
24377# include <limits.h>
24378#else
24379# include <assert.h>
24380#endif
ac1cb8d3
VS
24381
24382#undef gethostbyname
24383
a848cd7e
SC
24384/* Override any gcc2 internal prototype to avoid an error. */
24385#ifdef __cplusplus
24386extern "C"
24387{
24388#endif
24389/* We use char because int might match the return type of a gcc2
24390 builtin and then its argument prototype would still apply. */
24391char gethostbyname ();
24392/* The GNU C library defines this for functions which it implements
24393 to always fail with ENOSYS. Some functions are actually named
24394 something starting with __ and the normal name is an alias. */
24395#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
24396choke me
24397#else
24398char (*f) () = gethostbyname;
24399#endif
24400#ifdef __cplusplus
24401}
24402#endif
24403
24404int
24405main ()
24406{
24407return f != gethostbyname;
24408 ;
24409 return 0;
24410}
24411_ACEOF
24412rm -f conftest.$ac_objext conftest$ac_exeext
24413if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24414 (eval $ac_link) 2>conftest.er1
a848cd7e 24415 ac_status=$?
ac1cb8d3
VS
24416 grep -v '^ *+' conftest.er1 >conftest.err
24417 rm -f conftest.er1
24418 cat conftest.err >&5
a848cd7e
SC
24419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24420 (exit $ac_status); } &&
ceec2216 24421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24423 (eval $ac_try) 2>&5
24424 ac_status=$?
24425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24426 (exit $ac_status); }; } &&
24427 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24429 (eval $ac_try) 2>&5
24430 ac_status=$?
24431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24432 (exit $ac_status); }; }; then
24433 ac_cv_func_gethostbyname=yes
24434else
24435 echo "$as_me: failed program was:" >&5
24436sed 's/^/| /' conftest.$ac_ext >&5
24437
24438ac_cv_func_gethostbyname=no
24439fi
ac1cb8d3
VS
24440rm -f conftest.err conftest.$ac_objext \
24441 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24442fi
24443echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
24444echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
24445
24446 if test $ac_cv_func_gethostbyname = no; then
24447 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
24448echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
24449if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
24450 echo $ECHO_N "(cached) $ECHO_C" >&6
24451else
24452 ac_check_lib_save_LIBS=$LIBS
24453LIBS="-lnsl $LIBS"
24454cat >conftest.$ac_ext <<_ACEOF
24455/* confdefs.h. */
24456_ACEOF
24457cat confdefs.h >>conftest.$ac_ext
24458cat >>conftest.$ac_ext <<_ACEOF
24459/* end confdefs.h. */
24460
24461/* Override any gcc2 internal prototype to avoid an error. */
24462#ifdef __cplusplus
24463extern "C"
24464#endif
24465/* We use char because int might match the return type of a gcc2
24466 builtin and then its argument prototype would still apply. */
24467char gethostbyname ();
24468int
24469main ()
24470{
24471gethostbyname ();
24472 ;
24473 return 0;
24474}
24475_ACEOF
24476rm -f conftest.$ac_objext conftest$ac_exeext
24477if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
24478 (eval $ac_link) 2>conftest.er1
24479 ac_status=$?
24480 grep -v '^ *+' conftest.er1 >conftest.err
24481 rm -f conftest.er1
24482 cat conftest.err >&5
24483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24484 (exit $ac_status); } &&
ceec2216 24485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24487 (eval $ac_try) 2>&5
24488 ac_status=$?
24489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24490 (exit $ac_status); }; } &&
24491 { ac_try='test -s conftest$ac_exeext'
24492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24493 (eval $ac_try) 2>&5
24494 ac_status=$?
24495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24496 (exit $ac_status); }; }; then
24497 ac_cv_lib_nsl_gethostbyname=yes
24498else
24499 echo "$as_me: failed program was:" >&5
24500sed 's/^/| /' conftest.$ac_ext >&5
24501
24502ac_cv_lib_nsl_gethostbyname=no
24503fi
24504rm -f conftest.err conftest.$ac_objext \
24505 conftest$ac_exeext conftest.$ac_ext
24506LIBS=$ac_check_lib_save_LIBS
24507fi
24508echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
24509echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
24510if test $ac_cv_lib_nsl_gethostbyname = yes; then
24511 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24512fi
24513
24514 if test $ac_cv_lib_nsl_gethostbyname = no; then
24515 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
24516echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
24517if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
24518 echo $ECHO_N "(cached) $ECHO_C" >&6
24519else
24520 ac_check_lib_save_LIBS=$LIBS
24521LIBS="-lbsd $LIBS"
24522cat >conftest.$ac_ext <<_ACEOF
24523/* confdefs.h. */
24524_ACEOF
24525cat confdefs.h >>conftest.$ac_ext
24526cat >>conftest.$ac_ext <<_ACEOF
24527/* end confdefs.h. */
24528
24529/* Override any gcc2 internal prototype to avoid an error. */
24530#ifdef __cplusplus
24531extern "C"
24532#endif
24533/* We use char because int might match the return type of a gcc2
24534 builtin and then its argument prototype would still apply. */
24535char gethostbyname ();
24536int
24537main ()
24538{
24539gethostbyname ();
24540 ;
24541 return 0;
24542}
24543_ACEOF
24544rm -f conftest.$ac_objext conftest$ac_exeext
24545if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24546 (eval $ac_link) 2>conftest.er1
a848cd7e 24547 ac_status=$?
ac1cb8d3
VS
24548 grep -v '^ *+' conftest.er1 >conftest.err
24549 rm -f conftest.er1
24550 cat conftest.err >&5
a848cd7e
SC
24551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24552 (exit $ac_status); } &&
ceec2216 24553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
24554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24555 (eval $ac_try) 2>&5
24556 ac_status=$?
24557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
24558 (exit $ac_status); }; } &&
24559 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24561 (eval $ac_try) 2>&5
24562 ac_status=$?
24563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24564 (exit $ac_status); }; }; then
24565 ac_cv_lib_bsd_gethostbyname=yes
24566else
24567 echo "$as_me: failed program was:" >&5
24568sed 's/^/| /' conftest.$ac_ext >&5
24569
24570ac_cv_lib_bsd_gethostbyname=no
24571fi
ac1cb8d3
VS
24572rm -f conftest.err conftest.$ac_objext \
24573 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24574LIBS=$ac_check_lib_save_LIBS
24575fi
24576echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
24577echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
24578if test $ac_cv_lib_bsd_gethostbyname = yes; then
24579 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24580fi
24581
24582 fi
24583 fi
24584
24585 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24586 # socket/setsockopt and other routines are undefined under SCO ODT
24587 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
24588 # on later versions), says Simon Leinen: it contains gethostby*
24589 # variants that don't use the name server (or something). -lsocket
24590 # must be given before -lnsl if both are needed. We assume that
24591 # if connect needs -lnsl, so does gethostbyname.
24592 echo "$as_me:$LINENO: checking for connect" >&5
24593echo $ECHO_N "checking for connect... $ECHO_C" >&6
24594if test "${ac_cv_func_connect+set}" = set; then
24595 echo $ECHO_N "(cached) $ECHO_C" >&6
24596else
24597 cat >conftest.$ac_ext <<_ACEOF
24598/* confdefs.h. */
24599_ACEOF
24600cat confdefs.h >>conftest.$ac_ext
24601cat >>conftest.$ac_ext <<_ACEOF
24602/* end confdefs.h. */
ac1cb8d3
VS
24603/* Define connect to an innocuous variant, in case <limits.h> declares connect.
24604 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24605#define connect innocuous_connect
24606
a848cd7e
SC
24607/* System header to define __stub macros and hopefully few prototypes,
24608 which can conflict with char connect (); below.
24609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24610 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24611
a848cd7e
SC
24612#ifdef __STDC__
24613# include <limits.h>
24614#else
24615# include <assert.h>
24616#endif
ac1cb8d3
VS
24617
24618#undef connect
24619
a848cd7e
SC
24620/* Override any gcc2 internal prototype to avoid an error. */
24621#ifdef __cplusplus
24622extern "C"
24623{
24624#endif
24625/* We use char because int might match the return type of a gcc2
24626 builtin and then its argument prototype would still apply. */
24627char connect ();
24628/* The GNU C library defines this for functions which it implements
24629 to always fail with ENOSYS. Some functions are actually named
24630 something starting with __ and the normal name is an alias. */
24631#if defined (__stub_connect) || defined (__stub___connect)
24632choke me
24633#else
24634char (*f) () = connect;
24635#endif
24636#ifdef __cplusplus
24637}
24638#endif
24639
24640int
24641main ()
24642{
24643return f != connect;
24644 ;
24645 return 0;
24646}
24647_ACEOF
24648rm -f conftest.$ac_objext conftest$ac_exeext
24649if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24650 (eval $ac_link) 2>conftest.er1
a848cd7e 24651 ac_status=$?
ac1cb8d3
VS
24652 grep -v '^ *+' conftest.er1 >conftest.err
24653 rm -f conftest.er1
24654 cat conftest.err >&5
a848cd7e
SC
24655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24656 (exit $ac_status); } &&
ceec2216 24657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24659 (eval $ac_try) 2>&5
24660 ac_status=$?
24661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24662 (exit $ac_status); }; } &&
24663 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24665 (eval $ac_try) 2>&5
24666 ac_status=$?
24667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24668 (exit $ac_status); }; }; then
24669 ac_cv_func_connect=yes
24670else
24671 echo "$as_me: failed program was:" >&5
24672sed 's/^/| /' conftest.$ac_ext >&5
24673
24674ac_cv_func_connect=no
24675fi
ac1cb8d3
VS
24676rm -f conftest.err conftest.$ac_objext \
24677 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24678fi
24679echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
24680echo "${ECHO_T}$ac_cv_func_connect" >&6
24681
24682 if test $ac_cv_func_connect = no; then
24683 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
24684echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
24685if test "${ac_cv_lib_socket_connect+set}" = set; then
24686 echo $ECHO_N "(cached) $ECHO_C" >&6
24687else
24688 ac_check_lib_save_LIBS=$LIBS
24689LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24690cat >conftest.$ac_ext <<_ACEOF
24691/* confdefs.h. */
24692_ACEOF
24693cat confdefs.h >>conftest.$ac_ext
24694cat >>conftest.$ac_ext <<_ACEOF
24695/* end confdefs.h. */
24696
24697/* Override any gcc2 internal prototype to avoid an error. */
24698#ifdef __cplusplus
24699extern "C"
24700#endif
24701/* We use char because int might match the return type of a gcc2
24702 builtin and then its argument prototype would still apply. */
24703char connect ();
24704int
24705main ()
24706{
24707connect ();
24708 ;
24709 return 0;
24710}
24711_ACEOF
24712rm -f conftest.$ac_objext conftest$ac_exeext
24713if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24714 (eval $ac_link) 2>conftest.er1
a848cd7e 24715 ac_status=$?
ac1cb8d3
VS
24716 grep -v '^ *+' conftest.er1 >conftest.err
24717 rm -f conftest.er1
24718 cat conftest.err >&5
a848cd7e
SC
24719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24720 (exit $ac_status); } &&
ceec2216 24721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24723 (eval $ac_try) 2>&5
24724 ac_status=$?
24725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24726 (exit $ac_status); }; } &&
24727 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24729 (eval $ac_try) 2>&5
24730 ac_status=$?
24731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24732 (exit $ac_status); }; }; then
24733 ac_cv_lib_socket_connect=yes
24734else
24735 echo "$as_me: failed program was:" >&5
24736sed 's/^/| /' conftest.$ac_ext >&5
24737
24738ac_cv_lib_socket_connect=no
24739fi
ac1cb8d3
VS
24740rm -f conftest.err conftest.$ac_objext \
24741 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24742LIBS=$ac_check_lib_save_LIBS
24743fi
24744echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
24745echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
24746if test $ac_cv_lib_socket_connect = yes; then
24747 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24748fi
24749
24750 fi
24751
24752 # Guillermo Gomez says -lposix is necessary on A/UX.
24753 echo "$as_me:$LINENO: checking for remove" >&5
24754echo $ECHO_N "checking for remove... $ECHO_C" >&6
24755if test "${ac_cv_func_remove+set}" = set; then
24756 echo $ECHO_N "(cached) $ECHO_C" >&6
24757else
24758 cat >conftest.$ac_ext <<_ACEOF
24759/* confdefs.h. */
24760_ACEOF
24761cat confdefs.h >>conftest.$ac_ext
24762cat >>conftest.$ac_ext <<_ACEOF
24763/* end confdefs.h. */
ac1cb8d3
VS
24764/* Define remove to an innocuous variant, in case <limits.h> declares remove.
24765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24766#define remove innocuous_remove
24767
a848cd7e
SC
24768/* System header to define __stub macros and hopefully few prototypes,
24769 which can conflict with char remove (); below.
24770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24771 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24772
a848cd7e
SC
24773#ifdef __STDC__
24774# include <limits.h>
24775#else
24776# include <assert.h>
24777#endif
ac1cb8d3
VS
24778
24779#undef remove
24780
a848cd7e
SC
24781/* Override any gcc2 internal prototype to avoid an error. */
24782#ifdef __cplusplus
24783extern "C"
24784{
24785#endif
24786/* We use char because int might match the return type of a gcc2
24787 builtin and then its argument prototype would still apply. */
24788char remove ();
24789/* The GNU C library defines this for functions which it implements
24790 to always fail with ENOSYS. Some functions are actually named
24791 something starting with __ and the normal name is an alias. */
24792#if defined (__stub_remove) || defined (__stub___remove)
24793choke me
24794#else
24795char (*f) () = remove;
24796#endif
24797#ifdef __cplusplus
24798}
24799#endif
24800
24801int
24802main ()
24803{
24804return f != remove;
24805 ;
24806 return 0;
24807}
24808_ACEOF
24809rm -f conftest.$ac_objext conftest$ac_exeext
24810if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24811 (eval $ac_link) 2>conftest.er1
a848cd7e 24812 ac_status=$?
ac1cb8d3
VS
24813 grep -v '^ *+' conftest.er1 >conftest.err
24814 rm -f conftest.er1
24815 cat conftest.err >&5
a848cd7e
SC
24816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24817 (exit $ac_status); } &&
ceec2216 24818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24820 (eval $ac_try) 2>&5
24821 ac_status=$?
24822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24823 (exit $ac_status); }; } &&
24824 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24826 (eval $ac_try) 2>&5
24827 ac_status=$?
24828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24829 (exit $ac_status); }; }; then
24830 ac_cv_func_remove=yes
24831else
24832 echo "$as_me: failed program was:" >&5
24833sed 's/^/| /' conftest.$ac_ext >&5
24834
24835ac_cv_func_remove=no
24836fi
ac1cb8d3
VS
24837rm -f conftest.err conftest.$ac_objext \
24838 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24839fi
24840echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
24841echo "${ECHO_T}$ac_cv_func_remove" >&6
24842
24843 if test $ac_cv_func_remove = no; then
24844 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
24845echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
24846if test "${ac_cv_lib_posix_remove+set}" = set; then
24847 echo $ECHO_N "(cached) $ECHO_C" >&6
24848else
24849 ac_check_lib_save_LIBS=$LIBS
24850LIBS="-lposix $LIBS"
24851cat >conftest.$ac_ext <<_ACEOF
24852/* confdefs.h. */
24853_ACEOF
24854cat confdefs.h >>conftest.$ac_ext
24855cat >>conftest.$ac_ext <<_ACEOF
24856/* end confdefs.h. */
24857
24858/* Override any gcc2 internal prototype to avoid an error. */
24859#ifdef __cplusplus
24860extern "C"
24861#endif
24862/* We use char because int might match the return type of a gcc2
24863 builtin and then its argument prototype would still apply. */
24864char remove ();
24865int
24866main ()
24867{
24868remove ();
24869 ;
24870 return 0;
24871}
24872_ACEOF
24873rm -f conftest.$ac_objext conftest$ac_exeext
24874if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24875 (eval $ac_link) 2>conftest.er1
a848cd7e 24876 ac_status=$?
ac1cb8d3
VS
24877 grep -v '^ *+' conftest.er1 >conftest.err
24878 rm -f conftest.er1
24879 cat conftest.err >&5
a848cd7e
SC
24880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24881 (exit $ac_status); } &&
ceec2216 24882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24884 (eval $ac_try) 2>&5
24885 ac_status=$?
24886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24887 (exit $ac_status); }; } &&
24888 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24890 (eval $ac_try) 2>&5
24891 ac_status=$?
24892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24893 (exit $ac_status); }; }; then
24894 ac_cv_lib_posix_remove=yes
24895else
24896 echo "$as_me: failed program was:" >&5
24897sed 's/^/| /' conftest.$ac_ext >&5
24898
24899ac_cv_lib_posix_remove=no
24900fi
ac1cb8d3
VS
24901rm -f conftest.err conftest.$ac_objext \
24902 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24903LIBS=$ac_check_lib_save_LIBS
24904fi
24905echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
24906echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
24907if test $ac_cv_lib_posix_remove = yes; then
24908 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24909fi
24910
24911 fi
24912
24913 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24914 echo "$as_me:$LINENO: checking for shmat" >&5
24915echo $ECHO_N "checking for shmat... $ECHO_C" >&6
24916if test "${ac_cv_func_shmat+set}" = set; then
24917 echo $ECHO_N "(cached) $ECHO_C" >&6
24918else
24919 cat >conftest.$ac_ext <<_ACEOF
24920/* confdefs.h. */
24921_ACEOF
24922cat confdefs.h >>conftest.$ac_ext
24923cat >>conftest.$ac_ext <<_ACEOF
24924/* end confdefs.h. */
ac1cb8d3
VS
24925/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
24926 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24927#define shmat innocuous_shmat
24928
a848cd7e
SC
24929/* System header to define __stub macros and hopefully few prototypes,
24930 which can conflict with char shmat (); below.
24931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24932 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24933
a848cd7e
SC
24934#ifdef __STDC__
24935# include <limits.h>
24936#else
24937# include <assert.h>
24938#endif
ac1cb8d3
VS
24939
24940#undef shmat
24941
a848cd7e
SC
24942/* Override any gcc2 internal prototype to avoid an error. */
24943#ifdef __cplusplus
24944extern "C"
24945{
24946#endif
24947/* We use char because int might match the return type of a gcc2
24948 builtin and then its argument prototype would still apply. */
24949char shmat ();
24950/* The GNU C library defines this for functions which it implements
24951 to always fail with ENOSYS. Some functions are actually named
24952 something starting with __ and the normal name is an alias. */
24953#if defined (__stub_shmat) || defined (__stub___shmat)
24954choke me
24955#else
24956char (*f) () = shmat;
24957#endif
24958#ifdef __cplusplus
24959}
24960#endif
24961
24962int
24963main ()
24964{
24965return f != shmat;
24966 ;
24967 return 0;
24968}
24969_ACEOF
24970rm -f conftest.$ac_objext conftest$ac_exeext
24971if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24972 (eval $ac_link) 2>conftest.er1
a848cd7e 24973 ac_status=$?
ac1cb8d3
VS
24974 grep -v '^ *+' conftest.er1 >conftest.err
24975 rm -f conftest.er1
24976 cat conftest.err >&5
a848cd7e
SC
24977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24978 (exit $ac_status); } &&
ceec2216 24979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24981 (eval $ac_try) 2>&5
24982 ac_status=$?
24983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24984 (exit $ac_status); }; } &&
24985 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24987 (eval $ac_try) 2>&5
24988 ac_status=$?
24989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24990 (exit $ac_status); }; }; then
24991 ac_cv_func_shmat=yes
24992else
24993 echo "$as_me: failed program was:" >&5
24994sed 's/^/| /' conftest.$ac_ext >&5
24995
24996ac_cv_func_shmat=no
24997fi
ac1cb8d3
VS
24998rm -f conftest.err conftest.$ac_objext \
24999 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25000fi
25001echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
25002echo "${ECHO_T}$ac_cv_func_shmat" >&6
25003
25004 if test $ac_cv_func_shmat = no; then
25005 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
25006echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
25007if test "${ac_cv_lib_ipc_shmat+set}" = set; then
25008 echo $ECHO_N "(cached) $ECHO_C" >&6
25009else
25010 ac_check_lib_save_LIBS=$LIBS
25011LIBS="-lipc $LIBS"
25012cat >conftest.$ac_ext <<_ACEOF
25013/* confdefs.h. */
25014_ACEOF
25015cat confdefs.h >>conftest.$ac_ext
25016cat >>conftest.$ac_ext <<_ACEOF
25017/* end confdefs.h. */
25018
25019/* Override any gcc2 internal prototype to avoid an error. */
25020#ifdef __cplusplus
25021extern "C"
25022#endif
25023/* We use char because int might match the return type of a gcc2
25024 builtin and then its argument prototype would still apply. */
25025char shmat ();
25026int
25027main ()
25028{
25029shmat ();
25030 ;
25031 return 0;
25032}
25033_ACEOF
25034rm -f conftest.$ac_objext conftest$ac_exeext
25035if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25036 (eval $ac_link) 2>conftest.er1
a848cd7e 25037 ac_status=$?
ac1cb8d3
VS
25038 grep -v '^ *+' conftest.er1 >conftest.err
25039 rm -f conftest.er1
25040 cat conftest.err >&5
a848cd7e
SC
25041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25042 (exit $ac_status); } &&
ceec2216 25043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25045 (eval $ac_try) 2>&5
25046 ac_status=$?
25047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25048 (exit $ac_status); }; } &&
25049 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25051 (eval $ac_try) 2>&5
25052 ac_status=$?
25053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25054 (exit $ac_status); }; }; then
25055 ac_cv_lib_ipc_shmat=yes
25056else
25057 echo "$as_me: failed program was:" >&5
25058sed 's/^/| /' conftest.$ac_ext >&5
25059
25060ac_cv_lib_ipc_shmat=no
25061fi
ac1cb8d3
VS
25062rm -f conftest.err conftest.$ac_objext \
25063 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25064LIBS=$ac_check_lib_save_LIBS
25065fi
25066echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
25067echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
25068if test $ac_cv_lib_ipc_shmat = yes; then
25069 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25070fi
25071
25072 fi
25073 fi
25074
25075 # Check for libraries that X11R6 Xt/Xaw programs need.
25076 ac_save_LDFLAGS=$LDFLAGS
25077 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25078 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25079 # check for ICE first), but we must link in the order -lSM -lICE or
25080 # we get undefined symbols. So assume we have SM if we have ICE.
25081 # These have to be linked with before -lX11, unlike the other
25082 # libraries we check for below, so use a different variable.
25083 # John Interrante, Karl Berry
25084 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
25085echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
25086if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
25087 echo $ECHO_N "(cached) $ECHO_C" >&6
25088else
25089 ac_check_lib_save_LIBS=$LIBS
25090LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25091cat >conftest.$ac_ext <<_ACEOF
25092/* confdefs.h. */
25093_ACEOF
25094cat confdefs.h >>conftest.$ac_ext
25095cat >>conftest.$ac_ext <<_ACEOF
25096/* end confdefs.h. */
25097
25098/* Override any gcc2 internal prototype to avoid an error. */
25099#ifdef __cplusplus
25100extern "C"
25101#endif
25102/* We use char because int might match the return type of a gcc2
25103 builtin and then its argument prototype would still apply. */
25104char IceConnectionNumber ();
25105int
25106main ()
25107{
25108IceConnectionNumber ();
25109 ;
25110 return 0;
25111}
25112_ACEOF
25113rm -f conftest.$ac_objext conftest$ac_exeext
25114if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25115 (eval $ac_link) 2>conftest.er1
a848cd7e 25116 ac_status=$?
ac1cb8d3
VS
25117 grep -v '^ *+' conftest.er1 >conftest.err
25118 rm -f conftest.er1
25119 cat conftest.err >&5
a848cd7e
SC
25120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25121 (exit $ac_status); } &&
ceec2216 25122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25124 (eval $ac_try) 2>&5
25125 ac_status=$?
25126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25127 (exit $ac_status); }; } &&
25128 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25130 (eval $ac_try) 2>&5
25131 ac_status=$?
25132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25133 (exit $ac_status); }; }; then
25134 ac_cv_lib_ICE_IceConnectionNumber=yes
25135else
25136 echo "$as_me: failed program was:" >&5
25137sed 's/^/| /' conftest.$ac_ext >&5
25138
25139ac_cv_lib_ICE_IceConnectionNumber=no
25140fi
ac1cb8d3
VS
25141rm -f conftest.err conftest.$ac_objext \
25142 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25143LIBS=$ac_check_lib_save_LIBS
25144fi
25145echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25146echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
25147if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
25148 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25149fi
25150
25151 LDFLAGS=$ac_save_LDFLAGS
25152
25153fi
25154
25155
25156 if test "$no_x" = "yes"; then
25157 { { echo "$as_me:$LINENO: error: X11 not found" >&5
25158echo "$as_me: error: X11 not found" >&2;}
25159 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
25160 fi
25161
74b84332
VS
25162 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
25163 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
25164 AFMINSTALL=afminstall
25165 COMPILED_X_PROGRAM=0
25166
74b84332
VS
25167 fi
25168
25169 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
25170 if test "$wxUSE_NANOX" = "yes"; then
25171 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
25172echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
25173 if test "x$MICROWIN" = x ; then
25174 echo "$as_me:$LINENO: result: not found" >&5
25175echo "${ECHO_T}not found" >&6
25176 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
25177echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
25178 { (exit 1); exit 1; }; }
25179 else
25180 echo "$as_me:$LINENO: result: $MICROWIN" >&5
25181echo "${ECHO_T}$MICROWIN" >&6
25182 cat >>confdefs.h <<\_ACEOF
25183#define wxUSE_NANOX 1
25184_ACEOF
25185
25186 fi
25187 fi
25188
25189 if test "$wxUSE_UNICODE" = "yes"; then
25190
25191 succeeded=no
25192
25193 if test -z "$PKG_CONFIG"; then
25194 # Extract the first word of "pkg-config", so it can be a program name with args.
25195set dummy pkg-config; ac_word=$2
25196echo "$as_me:$LINENO: checking for $ac_word" >&5
25197echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25198if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25199 echo $ECHO_N "(cached) $ECHO_C" >&6
25200else
25201 case $PKG_CONFIG in
25202 [\\/]* | ?:[\\/]*)
25203 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25204 ;;
25205 *)
25206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25207for as_dir in $PATH
25208do
25209 IFS=$as_save_IFS
25210 test -z "$as_dir" && as_dir=.
25211 for ac_exec_ext in '' $ac_executable_extensions; do
25212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25213 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25215 break 2
25216 fi
25217done
25218done
25219
25220 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25221 ;;
25222esac
25223fi
25224PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25225
25226if test -n "$PKG_CONFIG"; then
25227 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25228echo "${ECHO_T}$PKG_CONFIG" >&6
25229else
25230 echo "$as_me:$LINENO: result: no" >&5
25231echo "${ECHO_T}no" >&6
25232fi
25233
25234 fi
25235
25236 if test "$PKG_CONFIG" = "no" ; then
25237 echo "*** The pkg-config script could not be found. Make sure it is"
25238 echo "*** in your path, or set the PKG_CONFIG environment variable"
25239 echo "*** to the full path to pkg-config."
25240 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25241 else
25242 PKG_CONFIG_MIN_VERSION=0.9.0
25243 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25244 echo "$as_me:$LINENO: checking for pangox" >&5
25245echo $ECHO_N "checking for pangox... $ECHO_C" >&6
25246
25247 if $PKG_CONFIG --exists "pangox" ; then
25248 echo "$as_me:$LINENO: result: yes" >&5
25249echo "${ECHO_T}yes" >&6
25250 succeeded=yes
25251
25252 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
25253echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
25254 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
25255 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
25256echo "${ECHO_T}$PANGOX_CFLAGS" >&6
25257
25258 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
25259echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
25260 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
25261 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
25262echo "${ECHO_T}$PANGOX_LIBS" >&6
25263 else
25264 PANGOX_CFLAGS=""
25265 PANGOX_LIBS=""
25266 ## If we have a custom action on failure, don't print errors, but
25267 ## do set a variable so people can do so.
25268 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
25269
25270 fi
25271
25272
25273
25274 else
25275 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25276 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25277 fi
25278 fi
25279
25280 if test $succeeded = yes; then
25281
25282 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
25283 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
25284
25285 else
25286
25287 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
25288echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
25289 { (exit 1); exit 1; }; }
25290
25291
25292 fi
25293
25294
25295 succeeded=no
25296
25297 if test -z "$PKG_CONFIG"; then
25298 # Extract the first word of "pkg-config", so it can be a program name with args.
25299set dummy pkg-config; ac_word=$2
25300echo "$as_me:$LINENO: checking for $ac_word" >&5
25301echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25302if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25303 echo $ECHO_N "(cached) $ECHO_C" >&6
25304else
25305 case $PKG_CONFIG in
25306 [\\/]* | ?:[\\/]*)
25307 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25308 ;;
25309 *)
25310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25311for as_dir in $PATH
25312do
25313 IFS=$as_save_IFS
25314 test -z "$as_dir" && as_dir=.
25315 for ac_exec_ext in '' $ac_executable_extensions; do
25316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25317 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25319 break 2
25320 fi
25321done
25322done
25323
25324 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25325 ;;
25326esac
25327fi
25328PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25329
25330if test -n "$PKG_CONFIG"; then
25331 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25332echo "${ECHO_T}$PKG_CONFIG" >&6
25333else
25334 echo "$as_me:$LINENO: result: no" >&5
25335echo "${ECHO_T}no" >&6
25336fi
25337
25338 fi
25339
25340 if test "$PKG_CONFIG" = "no" ; then
25341 echo "*** The pkg-config script could not be found. Make sure it is"
25342 echo "*** in your path, or set the PKG_CONFIG environment variable"
25343 echo "*** to the full path to pkg-config."
25344 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25345 else
25346 PKG_CONFIG_MIN_VERSION=0.9.0
25347 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25348 echo "$as_me:$LINENO: checking for pangoft2" >&5
25349echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
25350
25351 if $PKG_CONFIG --exists "pangoft2" ; then
25352 echo "$as_me:$LINENO: result: yes" >&5
25353echo "${ECHO_T}yes" >&6
25354 succeeded=yes
25355
25356 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
25357echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
25358 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
25359 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
25360echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
25361
25362 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
25363echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
25364 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
25365 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
25366echo "${ECHO_T}$PANGOFT2_LIBS" >&6
25367 else
25368 PANGOFT2_CFLAGS=""
25369 PANGOFT2_LIBS=""
25370 ## If we have a custom action on failure, don't print errors, but
25371 ## do set a variable so people can do so.
25372 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
25373
25374 fi
25375
25376
25377
25378 else
25379 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25380 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25381 fi
25382 fi
25383
25384 if test $succeeded = yes; then
25385
25386 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
25387 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
25388
25389 else
25390
25391 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
25392echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
25393 wxUSE_PRINTING_ARCHITECTURE="no"
25394
25395
25396 fi
25397
25398
25399 succeeded=no
25400
25401 if test -z "$PKG_CONFIG"; then
25402 # Extract the first word of "pkg-config", so it can be a program name with args.
25403set dummy pkg-config; ac_word=$2
25404echo "$as_me:$LINENO: checking for $ac_word" >&5
25405echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25406if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25407 echo $ECHO_N "(cached) $ECHO_C" >&6
25408else
25409 case $PKG_CONFIG in
25410 [\\/]* | ?:[\\/]*)
25411 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25412 ;;
25413 *)
25414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25415for as_dir in $PATH
25416do
25417 IFS=$as_save_IFS
25418 test -z "$as_dir" && as_dir=.
25419 for ac_exec_ext in '' $ac_executable_extensions; do
25420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25421 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25423 break 2
25424 fi
25425done
25426done
25427
25428 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25429 ;;
25430esac
25431fi
25432PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25433
25434if test -n "$PKG_CONFIG"; then
25435 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25436echo "${ECHO_T}$PKG_CONFIG" >&6
25437else
25438 echo "$as_me:$LINENO: result: no" >&5
25439echo "${ECHO_T}no" >&6
25440fi
25441
25442 fi
25443
25444 if test "$PKG_CONFIG" = "no" ; then
25445 echo "*** The pkg-config script could not be found. Make sure it is"
25446 echo "*** in your path, or set the PKG_CONFIG environment variable"
25447 echo "*** to the full path to pkg-config."
25448 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25449 else
25450 PKG_CONFIG_MIN_VERSION=0.9.0
25451 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25452 echo "$as_me:$LINENO: checking for pangoxft" >&5
25453echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
25454
25455 if $PKG_CONFIG --exists "pangoxft" ; then
25456 echo "$as_me:$LINENO: result: yes" >&5
25457echo "${ECHO_T}yes" >&6
25458 succeeded=yes
25459
25460 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
25461echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
25462 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
25463 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
25464echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
25465
25466 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
25467echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
25468 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
25469 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
25470echo "${ECHO_T}$PANGOXFT_LIBS" >&6
25471 else
25472 PANGOXFT_CFLAGS=""
25473 PANGOXFT_LIBS=""
25474 ## If we have a custom action on failure, don't print errors, but
25475 ## do set a variable so people can do so.
25476 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
25477
25478 fi
25479
25480
25481
25482 else
25483 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25484 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25485 fi
25486 fi
25487
25488 if test $succeeded = yes; then
25489
25490 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
25491 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
25492
25493 else
25494
25495 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
25496echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
25497
25498
25499 fi
25500
304205f1
VS
25501 save_CFLAGS="$CFLAGS"
25502 save_LIBS="$LIBS"
25503 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
25504 LIBS="$LIBS $PANGOX_LIBS"
25505
25506for ac_func in pango_font_family_is_monospace
25507do
25508as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25509echo "$as_me:$LINENO: checking for $ac_func" >&5
25510echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25511if eval "test \"\${$as_ac_var+set}\" = set"; then
25512 echo $ECHO_N "(cached) $ECHO_C" >&6
25513else
25514 cat >conftest.$ac_ext <<_ACEOF
25515/* confdefs.h. */
25516_ACEOF
25517cat confdefs.h >>conftest.$ac_ext
25518cat >>conftest.$ac_ext <<_ACEOF
25519/* end confdefs.h. */
25520/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25521 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25522#define $ac_func innocuous_$ac_func
25523
25524/* System header to define __stub macros and hopefully few prototypes,
25525 which can conflict with char $ac_func (); below.
25526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25527 <limits.h> exists even on freestanding compilers. */
25528
25529#ifdef __STDC__
25530# include <limits.h>
25531#else
25532# include <assert.h>
25533#endif
25534
25535#undef $ac_func
25536
25537/* Override any gcc2 internal prototype to avoid an error. */
25538#ifdef __cplusplus
25539extern "C"
25540{
25541#endif
25542/* We use char because int might match the return type of a gcc2
25543 builtin and then its argument prototype would still apply. */
25544char $ac_func ();
25545/* The GNU C library defines this for functions which it implements
25546 to always fail with ENOSYS. Some functions are actually named
25547 something starting with __ and the normal name is an alias. */
25548#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25549choke me
25550#else
25551char (*f) () = $ac_func;
25552#endif
25553#ifdef __cplusplus
25554}
25555#endif
25556
25557int
25558main ()
25559{
25560return f != $ac_func;
25561 ;
25562 return 0;
25563}
25564_ACEOF
25565rm -f conftest.$ac_objext conftest$ac_exeext
25566if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25567 (eval $ac_link) 2>conftest.er1
25568 ac_status=$?
25569 grep -v '^ *+' conftest.er1 >conftest.err
25570 rm -f conftest.er1
25571 cat conftest.err >&5
25572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25573 (exit $ac_status); } &&
ceec2216 25574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
25575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25576 (eval $ac_try) 2>&5
25577 ac_status=$?
25578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25579 (exit $ac_status); }; } &&
25580 { ac_try='test -s conftest$ac_exeext'
25581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25582 (eval $ac_try) 2>&5
25583 ac_status=$?
25584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25585 (exit $ac_status); }; }; then
25586 eval "$as_ac_var=yes"
25587else
25588 echo "$as_me: failed program was:" >&5
25589sed 's/^/| /' conftest.$ac_ext >&5
25590
25591eval "$as_ac_var=no"
25592fi
25593rm -f conftest.err conftest.$ac_objext \
25594 conftest$ac_exeext conftest.$ac_ext
25595fi
25596echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25597echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25598if test `eval echo '${'$as_ac_var'}'` = yes; then
25599 cat >>confdefs.h <<_ACEOF
25600#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25601_ACEOF
25602
25603fi
25604done
25605
25606 CFLAGS="$save_CFLAGS"
25607 LIBS="$save_LIBS"
a848cd7e
SC
25608 fi
25609
25610 wxUSE_UNIVERSAL="yes"
25611
25612 if test "$wxUSE_NANOX" = "yes"; then
25613 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
25614 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"
25615 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
25616 else
25617 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
25618 fi
25619
a848cd7e
SC
25620 TOOLKIT=X11
25621 GUIDIST=X11_DIST
25622 fi
25623
25624 if test "$wxUSE_MOTIF" = 1; then
74b84332
VS
25625 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
25626echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 25627
74b84332
VS
25628ac_find_includes=
25629for ac_dir in $SEARCH_INCLUDE /usr/include;
25630 do
25631 if test -f "$ac_dir/Xm/Xm.h"; then
25632 ac_find_includes=$ac_dir
25633 break
25634 fi
25635 done
a848cd7e 25636
74b84332
VS
25637 if test "$ac_find_includes" != "" ; then
25638 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
25639echo "${ECHO_T}found in $ac_find_includes" >&6
25640
25641 if test "x$ac_find_includes" = "x/usr/include"; then
25642 ac_path_to_include=""
25643 else
25644 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
25645 result=$?
25646 if test $result = 0; then
25647 ac_path_to_include=""
25648 else
25649 ac_path_to_include=" -I$ac_find_includes"
25650 fi
a848cd7e
SC
25651 fi
25652
74b84332
VS
25653 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
25654 else
25655 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
25656/* confdefs.h. */
25657_ACEOF
25658cat confdefs.h >>conftest.$ac_ext
25659cat >>conftest.$ac_ext <<_ACEOF
25660/* end confdefs.h. */
25661
74b84332
VS
25662 #include <Xm/Xm.h>
25663
a848cd7e
SC
25664int
25665main ()
25666{
25667
74b84332
VS
25668 int version;
25669 version = xmUseVersion;
25670
a848cd7e
SC
25671 ;
25672 return 0;
25673}
25674_ACEOF
74b84332
VS
25675rm -f conftest.$ac_objext
25676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25677 (eval $ac_compile) 2>conftest.er1
a848cd7e 25678 ac_status=$?
ac1cb8d3
VS
25679 grep -v '^ *+' conftest.er1 >conftest.err
25680 rm -f conftest.er1
25681 cat conftest.err >&5
a848cd7e
SC
25682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25683 (exit $ac_status); } &&
ceec2216 25684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25686 (eval $ac_try) 2>&5
25687 ac_status=$?
25688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25689 (exit $ac_status); }; } &&
74b84332 25690 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25692 (eval $ac_try) 2>&5
25693 ac_status=$?
25694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25695 (exit $ac_status); }; }; then
74b84332
VS
25696
25697 echo "$as_me:$LINENO: result: found in default search path" >&5
25698echo "${ECHO_T}found in default search path" >&6
25699 COMPILED_X_PROGRAM=1
25700
a848cd7e
SC
25701else
25702 echo "$as_me: failed program was:" >&5
25703sed 's/^/| /' conftest.$ac_ext >&5
25704
a848cd7e 25705
74b84332
VS
25706 echo "$as_me:$LINENO: result: no" >&5
25707echo "${ECHO_T}no" >&6
25708 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
25709echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
25710 { (exit 1); exit 1; }; }
a848cd7e 25711
a848cd7e 25712
a848cd7e 25713fi
74b84332
VS
25714rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25715 fi
25716
25717 if test "$COMPILED_X_PROGRAM" = 0; then
25718 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
25719echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
25720
25721ac_find_libraries=
25722for ac_dir in $SEARCH_LIB /usr/lib;
25723 do
25724 for ac_extension in a so sl dylib; do
25725 if test -f "$ac_dir/libXm.$ac_extension"; then
25726 ac_find_libraries=$ac_dir
25727 break 2
a848cd7e 25728 fi
74b84332
VS
25729 done
25730 done
a848cd7e 25731
74b84332
VS
25732 if test "$ac_find_libraries" != "" ; then
25733 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
25734echo "${ECHO_T}found at $ac_find_libraries" >&6
a848cd7e 25735
74b84332
VS
25736
25737 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
25738 result=$?
25739 if test $result = 0; then
25740 ac_path_to_link=""
a848cd7e 25741 else
74b84332
VS
25742 ac_path_to_link=" -L$ac_find_libraries"
25743 fi
25744
25745 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
25746 else
25747 save_CFLAGS=$CFLAGS
25748 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25749
25750 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
25751/* confdefs.h. */
25752_ACEOF
25753cat confdefs.h >>conftest.$ac_ext
25754cat >>conftest.$ac_ext <<_ACEOF
25755/* end confdefs.h. */
25756
74b84332
VS
25757 #include <Xm/Xm.h>
25758
a848cd7e
SC
25759int
25760main ()
25761{
74b84332
VS
25762
25763 int version;
25764 version = xmUseVersion;
25765
a848cd7e
SC
25766 ;
25767 return 0;
25768}
25769_ACEOF
74b84332
VS
25770rm -f conftest.$ac_objext
25771if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25772 (eval $ac_compile) 2>conftest.er1
a848cd7e 25773 ac_status=$?
ac1cb8d3
VS
25774 grep -v '^ *+' conftest.er1 >conftest.err
25775 rm -f conftest.er1
25776 cat conftest.err >&5
a848cd7e
SC
25777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25778 (exit $ac_status); } &&
ceec2216 25779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25781 (eval $ac_try) 2>&5
25782 ac_status=$?
25783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25784 (exit $ac_status); }; } &&
74b84332 25785 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25787 (eval $ac_try) 2>&5
25788 ac_status=$?
25789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25790 (exit $ac_status); }; }; then
74b84332
VS
25791
25792 echo "$as_me:$LINENO: result: found in default search path" >&5
25793echo "${ECHO_T}found in default search path" >&6
25794 COMPILED_X_PROGRAM=1
25795
a848cd7e
SC
25796else
25797 echo "$as_me: failed program was:" >&5
25798sed 's/^/| /' conftest.$ac_ext >&5
25799
74b84332
VS
25800
25801 echo "$as_me:$LINENO: result: no" >&5
25802echo "${ECHO_T}no" >&6
25803 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
25804echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
25805 { (exit 1); exit 1; }; }
25806
25807
25808fi
25809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25810
25811 CFLAGS=$save_CFLAGS
25812 fi
25813 fi
25814
25815 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
25816echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
25817 libp_link=""
25818 libsm_ice_link=""
25819 libs_found=0
25820 for libp in "" " -lXp"; do
25821 if test "$libs_found" = "0"; then
25822 for libsm_ice in "" " -lSM -lICE"; do
25823 if test "$libs_found" = "0"; then
25824 save_LIBS="$LIBS"
25825 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
25826 save_CFLAGS=$CFLAGS
25827 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25828
25829 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
25830/* confdefs.h. */
25831_ACEOF
25832cat confdefs.h >>conftest.$ac_ext
25833cat >>conftest.$ac_ext <<_ACEOF
25834/* end confdefs.h. */
25835
74b84332
VS
25836 #include <Xm/Xm.h>
25837 #include <Xm/List.h>
25838
a848cd7e
SC
25839int
25840main ()
25841{
74b84332
VS
25842
25843 XmString string = NULL;
25844 Widget w = NULL;
25845 int position = 0;
25846 XmListAddItem(w, string, position);
25847
a848cd7e
SC
25848 ;
25849 return 0;
25850}
25851_ACEOF
25852rm -f conftest.$ac_objext conftest$ac_exeext
25853if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25854 (eval $ac_link) 2>conftest.er1
a848cd7e 25855 ac_status=$?
ac1cb8d3
VS
25856 grep -v '^ *+' conftest.er1 >conftest.err
25857 rm -f conftest.er1
25858 cat conftest.err >&5
a848cd7e
SC
25859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25860 (exit $ac_status); } &&
ceec2216 25861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25863 (eval $ac_try) 2>&5
25864 ac_status=$?
25865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25866 (exit $ac_status); }; } &&
25867 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25869 (eval $ac_try) 2>&5
25870 ac_status=$?
25871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25872 (exit $ac_status); }; }; then
25873
25874 libp_link="$libp"
25875 libsm_ice_link="$libsm_ice"
25876 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
25877echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
25878 libs_found=1
25879
25880else
25881 echo "$as_me: failed program was:" >&5
25882sed 's/^/| /' conftest.$ac_ext >&5
25883
25884
25885
25886fi
ac1cb8d3
VS
25887rm -f conftest.err conftest.$ac_objext \
25888 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25889
25890 LIBS="$save_LIBS"
25891 CFLAGS=$save_CFLAGS
25892 fi
25893 done
25894 fi
25895 done
25896
25897 if test "$libs_found" = "0"; then
25898 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
25899echo "${ECHO_T}can't find the right libraries" >&6
25900 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
25901echo "$as_me: error: can't link a simple motif program" >&2;}
25902 { (exit 1); exit 1; }; }
25903 fi
25904
25905 save_CFLAGS=$CFLAGS
25906 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25907 echo "$as_me:$LINENO: checking for Motif 2" >&5
25908echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
25909 cat >conftest.$ac_ext <<_ACEOF
25910/* confdefs.h. */
25911_ACEOF
25912cat confdefs.h >>conftest.$ac_ext
25913cat >>conftest.$ac_ext <<_ACEOF
25914/* end confdefs.h. */
25915
25916 #include <Xm/Xm.h>
25917
25918int
25919main ()
25920{
25921
25922 #if XmVersion < 2000
25923 #error "Not Motif 2"
25924 #endif
25925
25926 ;
25927 return 0;
25928}
25929_ACEOF
25930rm -f conftest.$ac_objext
25931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25932 (eval $ac_compile) 2>conftest.er1
a848cd7e 25933 ac_status=$?
ac1cb8d3
VS
25934 grep -v '^ *+' conftest.er1 >conftest.err
25935 rm -f conftest.er1
25936 cat conftest.err >&5
a848cd7e
SC
25937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25938 (exit $ac_status); } &&
ceec2216 25939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25941 (eval $ac_try) 2>&5
25942 ac_status=$?
25943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25944 (exit $ac_status); }; } &&
25945 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25947 (eval $ac_try) 2>&5
25948 ac_status=$?
25949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25950 (exit $ac_status); }; }; then
25951
25952 cat >>confdefs.h <<\_ACEOF
25953#define __WXMOTIF20__ 1
25954_ACEOF
25955
25956 echo "$as_me:$LINENO: result: found" >&5
25957echo "${ECHO_T}found" >&6
25958
25959else
25960 echo "$as_me: failed program was:" >&5
25961sed 's/^/| /' conftest.$ac_ext >&5
25962
25963
25964 cat >>confdefs.h <<\_ACEOF
25965#define __WXMOTIF20__ 0
25966_ACEOF
25967
25968 echo "$as_me:$LINENO: result: not found" >&5
25969echo "${ECHO_T}not found" >&6
25970
25971fi
ac1cb8d3 25972rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25973 CFLAGS=$save_CFLAGS
25974
25975 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
25976 TOOLKIT=MOTIF
25977 GUIDIST=MOTIF_DIST
25978 fi
25979
74b84332 25980 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
25981 if test "$wxUSE_LIBXPM" = "sys"; then
25982 echo "$as_me:$LINENO: checking for Xpm library" >&5
25983echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
25984
25985ac_find_libraries=
25986for ac_dir in $SEARCH_LIB /usr/lib;
25987 do
25988 for ac_extension in a so sl dylib; do
25989 if test -f "$ac_dir/libXpm.$ac_extension"; then
25990 ac_find_libraries=$ac_dir
25991 break 2
25992 fi
25993 done
25994 done
25995
25996 if test "$ac_find_libraries" != "" ; then
25997
25998 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
25999 result=$?
26000 if test $result = 0; then
26001 ac_path_to_link=""
26002 else
26003 ac_path_to_link=" -L$ac_find_libraries"
26004 fi
26005
26006 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26007 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26008echo "${ECHO_T}found at $ac_find_libraries" >&6
26009
26010 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
26011echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
26012if test "${wx_cv_x11_xpm_h+set}" = set; then
26013 echo $ECHO_N "(cached) $ECHO_C" >&6
26014else
26015
26016 save_CFLAGS=$CFLAGS
26017 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26018
26019 cat >conftest.$ac_ext <<_ACEOF
26020/* confdefs.h. */
26021_ACEOF
26022cat confdefs.h >>conftest.$ac_ext
26023cat >>conftest.$ac_ext <<_ACEOF
26024/* end confdefs.h. */
26025
26026 #include <X11/xpm.h>
26027
26028int
26029main ()
26030{
26031
26032 int version;
26033 version = XpmLibraryVersion();
26034
26035 ;
26036 return 0;
26037}
26038_ACEOF
26039rm -f conftest.$ac_objext
26040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26041 (eval $ac_compile) 2>conftest.er1
a848cd7e 26042 ac_status=$?
ac1cb8d3
VS
26043 grep -v '^ *+' conftest.er1 >conftest.err
26044 rm -f conftest.er1
26045 cat conftest.err >&5
a848cd7e
SC
26046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26047 (exit $ac_status); } &&
ceec2216 26048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26050 (eval $ac_try) 2>&5
26051 ac_status=$?
26052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26053 (exit $ac_status); }; } &&
26054 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26056 (eval $ac_try) 2>&5
26057 ac_status=$?
26058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26059 (exit $ac_status); }; }; then
26060 wx_cv_x11_xpm_h=yes
26061else
26062 echo "$as_me: failed program was:" >&5
26063sed 's/^/| /' conftest.$ac_ext >&5
26064
26065wx_cv_x11_xpm_h=no
26066
26067fi
ac1cb8d3 26068rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26069
26070 CFLAGS=$save_CFLAGS
26071
26072
26073fi
26074echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
26075echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
26076
26077 if test $wx_cv_x11_xpm_h = "yes"; then
26078 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
26079 cat >>confdefs.h <<\_ACEOF
26080#define wxHAVE_LIB_XPM 1
26081_ACEOF
26082
26083 else
26084 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
26085echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
26086 fi
26087 fi
26088
26089 fi
26090
26091 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
26092echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
26093if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
26094 echo $ECHO_N "(cached) $ECHO_C" >&6
26095else
26096 ac_check_lib_save_LIBS=$LIBS
26097LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
26098cat >conftest.$ac_ext <<_ACEOF
26099/* confdefs.h. */
26100_ACEOF
26101cat confdefs.h >>conftest.$ac_ext
26102cat >>conftest.$ac_ext <<_ACEOF
26103/* end confdefs.h. */
26104
26105/* Override any gcc2 internal prototype to avoid an error. */
26106#ifdef __cplusplus
26107extern "C"
26108#endif
26109/* We use char because int might match the return type of a gcc2
26110 builtin and then its argument prototype would still apply. */
26111char XShapeQueryExtension ();
26112int
26113main ()
26114{
26115XShapeQueryExtension ();
26116 ;
26117 return 0;
26118}
26119_ACEOF
26120rm -f conftest.$ac_objext conftest$ac_exeext
26121if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26122 (eval $ac_link) 2>conftest.er1
a848cd7e 26123 ac_status=$?
ac1cb8d3
VS
26124 grep -v '^ *+' conftest.er1 >conftest.err
26125 rm -f conftest.er1
26126 cat conftest.err >&5
a848cd7e
SC
26127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26128 (exit $ac_status); } &&
ceec2216 26129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26131 (eval $ac_try) 2>&5
26132 ac_status=$?
26133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26134 (exit $ac_status); }; } &&
26135 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26137 (eval $ac_try) 2>&5
26138 ac_status=$?
26139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26140 (exit $ac_status); }; }; then
26141 ac_cv_lib_Xext_XShapeQueryExtension=yes
26142else
26143 echo "$as_me: failed program was:" >&5
26144sed 's/^/| /' conftest.$ac_ext >&5
26145
26146ac_cv_lib_Xext_XShapeQueryExtension=no
26147fi
ac1cb8d3
VS
26148rm -f conftest.err conftest.$ac_objext \
26149 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26150LIBS=$ac_check_lib_save_LIBS
26151fi
26152echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
26153echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
26154if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
26155
26156 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
26157 wxHAVE_XEXT_LIB=1
26158
26159fi
26160
26161
26162 if test "$wxHAVE_XEXT_LIB" = 1; then
26163 save_CFLAGS="$CFLAGS"
26164 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26165
26166 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
26167echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
26168 cat >conftest.$ac_ext <<_ACEOF
26169/* confdefs.h. */
26170_ACEOF
26171cat confdefs.h >>conftest.$ac_ext
26172cat >>conftest.$ac_ext <<_ACEOF
26173/* end confdefs.h. */
26174
26175 #include <X11/Xlib.h>
26176 #include <X11/extensions/shape.h>
26177
26178int
26179main ()
26180{
26181
26182 int dummy1, dummy2;
26183 XShapeQueryExtension((Display*)NULL,
26184 (int*)NULL, (int*)NULL);
26185
26186 ;
26187 return 0;
26188}
26189_ACEOF
26190rm -f conftest.$ac_objext
26191if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26192 (eval $ac_compile) 2>conftest.er1
a848cd7e 26193 ac_status=$?
ac1cb8d3
VS
26194 grep -v '^ *+' conftest.er1 >conftest.err
26195 rm -f conftest.er1
26196 cat conftest.err >&5
a848cd7e
SC
26197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26198 (exit $ac_status); } &&
ceec2216 26199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
26205 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26207 (eval $ac_try) 2>&5
26208 ac_status=$?
26209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26210 (exit $ac_status); }; }; then
26211
26212 cat >>confdefs.h <<\_ACEOF
26213#define HAVE_XSHAPE 1
26214_ACEOF
26215
26216 echo "$as_me:$LINENO: result: found" >&5
26217echo "${ECHO_T}found" >&6
26218
26219else
26220 echo "$as_me: failed program was:" >&5
26221sed 's/^/| /' conftest.$ac_ext >&5
26222
26223
26224 echo "$as_me:$LINENO: result: not found" >&5
26225echo "${ECHO_T}not found" >&6
26226
26227fi
ac1cb8d3 26228rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26229 CFLAGS="$save_CFLAGS"
26230
26231 fi
26232 fi
26233
26234 if test "$wxUSE_MAC" = 1; then
26235 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
26236echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
26237 if test "$GCC" = yes; then
26238 echo "$as_me:$LINENO: result: gcc" >&5
26239echo "${ECHO_T}gcc" >&6
26240 CPPFLAGS_PASCAL="-fpascal-strings"
26241 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
26242 echo "$as_me:$LINENO: result: xlc" >&5
26243echo "${ECHO_T}xlc" >&6
26244 CPPFLAGS_PASCAL="-qmacpstr"
26245 else
26246 echo "$as_me:$LINENO: result: none" >&5
26247echo "${ECHO_T}none" >&6
26248 fi
26249
26250 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
26251
a848cd7e
SC
26252 TOOLKIT=MAC
26253 GUIDIST=MACX_DIST
ceec2216 26254 WX_FLAVOUR="carbon${WX_FLAVOUR:+_$WX_FLAVOUR}"
a848cd7e
SC
26255 fi
26256
26257 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
26258 TOOLKIT=COCOA
26259 GUIDIST=COCOA_DIST
26260 fi
26261
26262 if test "$wxUSE_PM" = 1; then
26263 TOOLKIT=PM
de59c161
RD
26264 GUIDIST=PM_DIST
26265 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
26266echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
26267if test "${wx_cv_spbcdata+set}" = set; then
26268 echo $ECHO_N "(cached) $ECHO_C" >&6
26269else
26270
26271 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
26272/* confdefs.h. */
26273_ACEOF
26274cat confdefs.h >>conftest.$ac_ext
26275cat >>conftest.$ac_ext <<_ACEOF
26276/* end confdefs.h. */
26277
26278 #define INCL_PM
26279 #include <os2.h>
26280
26281int
26282main ()
26283{
26284
26285 SPBCDATA test;
26286
26287 ;
26288 return 0;
26289}
26290_ACEOF
26291rm -f conftest.$ac_objext
26292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26293 (eval $ac_compile) 2>conftest.er1
de59c161 26294 ac_status=$?
ac1cb8d3
VS
26295 grep -v '^ *+' conftest.er1 >conftest.err
26296 rm -f conftest.er1
26297 cat conftest.err >&5
de59c161
RD
26298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26299 (exit $ac_status); } &&
ceec2216 26300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26302 (eval $ac_try) 2>&5
26303 ac_status=$?
26304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26305 (exit $ac_status); }; } &&
26306 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
26307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26308 (eval $ac_try) 2>&5
26309 ac_status=$?
26310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26311 (exit $ac_status); }; }; then
26312 wx_cv_spbcdata=yes
26313else
26314 echo "$as_me: failed program was:" >&5
26315sed 's/^/| /' conftest.$ac_ext >&5
26316
26317wx_cv_spbcdata=no
26318
26319fi
ac1cb8d3 26320rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
26321
26322
26323fi
26324echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
26325echo "${ECHO_T}$wx_cv_spbcdata" >&6
26326
26327 if test $wx_cv_spbcdata = "yes"; then
26328 cat >>confdefs.h <<\_ACEOF
26329#define HAVE_SPBCDATA 1
26330_ACEOF
26331
26332 fi
a848cd7e
SC
26333 fi
26334
26335 if test "$TOOLKIT" = "PM" ; then
26336 TOOLKIT_DIR="os2"
26337 else
26338 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
26339 fi
26340
a848cd7e 26341 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
26342 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
26343 WIDGET_SET=univ
a848cd7e
SC
26344 fi
26345
26346 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
26347 DISTDIR="wx\$(TOOLKIT)"
26348else
26349 USE_GUI=0
26350
26351 TOOLKIT_DIR="base"
26352
26353 if test "$USE_WIN32" = 1 ; then
a848cd7e 26354 TOOLKIT="MSW"
a848cd7e
SC
26355 fi
26356
a848cd7e
SC
26357 GUIDIST="BASE_DIST"
26358 DISTDIR="wxBase"
26359fi
26360
26361
26362
26363
26364IODBC_C_SRC=""
26365
26366
26367if test "$TOOLKIT" != "MSW" ; then
26368
26369 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
26370
26371 if test "${ac_cv_header_sql_h+set}" = set; then
26372 echo "$as_me:$LINENO: checking for sql.h" >&5
26373echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26374if test "${ac_cv_header_sql_h+set}" = set; then
26375 echo $ECHO_N "(cached) $ECHO_C" >&6
26376fi
26377echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26378echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26379else
26380 # Is the header compilable?
26381echo "$as_me:$LINENO: checking sql.h usability" >&5
26382echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
26383cat >conftest.$ac_ext <<_ACEOF
26384/* confdefs.h. */
26385_ACEOF
26386cat confdefs.h >>conftest.$ac_ext
26387cat >>conftest.$ac_ext <<_ACEOF
26388/* end confdefs.h. */
26389$ac_includes_default
26390#include <sql.h>
26391_ACEOF
26392rm -f conftest.$ac_objext
26393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26394 (eval $ac_compile) 2>conftest.er1
a848cd7e 26395 ac_status=$?
ac1cb8d3
VS
26396 grep -v '^ *+' conftest.er1 >conftest.err
26397 rm -f conftest.er1
26398 cat conftest.err >&5
a848cd7e
SC
26399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26400 (exit $ac_status); } &&
ceec2216 26401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26403 (eval $ac_try) 2>&5
26404 ac_status=$?
26405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26406 (exit $ac_status); }; } &&
26407 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26409 (eval $ac_try) 2>&5
26410 ac_status=$?
26411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26412 (exit $ac_status); }; }; then
26413 ac_header_compiler=yes
26414else
26415 echo "$as_me: failed program was:" >&5
26416sed 's/^/| /' conftest.$ac_ext >&5
26417
26418ac_header_compiler=no
26419fi
ac1cb8d3 26420rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26421echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26422echo "${ECHO_T}$ac_header_compiler" >&6
26423
26424# Is the header present?
26425echo "$as_me:$LINENO: checking sql.h presence" >&5
26426echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
26427cat >conftest.$ac_ext <<_ACEOF
26428/* confdefs.h. */
26429_ACEOF
26430cat confdefs.h >>conftest.$ac_ext
26431cat >>conftest.$ac_ext <<_ACEOF
26432/* end confdefs.h. */
26433#include <sql.h>
26434_ACEOF
26435if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26436 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26437 ac_status=$?
26438 grep -v '^ *+' conftest.er1 >conftest.err
26439 rm -f conftest.er1
26440 cat conftest.err >&5
26441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26442 (exit $ac_status); } >/dev/null; then
26443 if test -s conftest.err; then
26444 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 26445 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
26446 else
26447 ac_cpp_err=
26448 fi
26449else
26450 ac_cpp_err=yes
26451fi
26452if test -z "$ac_cpp_err"; then
26453 ac_header_preproc=yes
26454else
26455 echo "$as_me: failed program was:" >&5
26456sed 's/^/| /' conftest.$ac_ext >&5
26457
26458 ac_header_preproc=no
26459fi
26460rm -f conftest.err conftest.$ac_ext
26461echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26462echo "${ECHO_T}$ac_header_preproc" >&6
26463
26464# So? What about this header?
ac1cb8d3
VS
26465case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26466 yes:no: )
a848cd7e
SC
26467 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
26468echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26469 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
26470echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
26471 ac_header_preproc=yes
a848cd7e 26472 ;;
ac1cb8d3 26473 no:yes:* )
a848cd7e
SC
26474 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
26475echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26476 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
26477echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
26478 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
26479echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
26480 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
26481echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26482 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
26483echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26484 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
26485echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26486 (
26487 cat <<\_ASBOX
ac1cb8d3
VS
26488## ----------------------------------------- ##
26489## Report this to wx-dev@lists.wxwidgets.org ##
26490## ----------------------------------------- ##
a848cd7e
SC
26491_ASBOX
26492 ) |
26493 sed "s/^/$as_me: WARNING: /" >&2
26494 ;;
26495esac
26496echo "$as_me:$LINENO: checking for sql.h" >&5
26497echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26498if test "${ac_cv_header_sql_h+set}" = set; then
26499 echo $ECHO_N "(cached) $ECHO_C" >&6
26500else
26501 ac_cv_header_sql_h=$ac_header_preproc
26502fi
26503echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26504echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26505
26506fi
26507if test $ac_cv_header_sql_h = yes; then
26508 found_sql_h=1
26509fi
26510
26511
26512 if test "x$found_sql_h" = "x1" ; then
26513 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
26514echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
26515if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
26516 echo $ECHO_N "(cached) $ECHO_C" >&6
26517else
26518 ac_check_lib_save_LIBS=$LIBS
26519LIBS="-liodbc $LIBS"
26520cat >conftest.$ac_ext <<_ACEOF
26521/* confdefs.h. */
26522_ACEOF
26523cat confdefs.h >>conftest.$ac_ext
26524cat >>conftest.$ac_ext <<_ACEOF
26525/* end confdefs.h. */
26526
26527/* Override any gcc2 internal prototype to avoid an error. */
26528#ifdef __cplusplus
26529extern "C"
26530#endif
26531/* We use char because int might match the return type of a gcc2
26532 builtin and then its argument prototype would still apply. */
26533char SQLAllocEnv ();
26534int
26535main ()
26536{
26537SQLAllocEnv ();
26538 ;
26539 return 0;
26540}
26541_ACEOF
26542rm -f conftest.$ac_objext conftest$ac_exeext
26543if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26544 (eval $ac_link) 2>conftest.er1
a848cd7e 26545 ac_status=$?
ac1cb8d3
VS
26546 grep -v '^ *+' conftest.er1 >conftest.err
26547 rm -f conftest.er1
26548 cat conftest.err >&5
a848cd7e
SC
26549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26550 (exit $ac_status); } &&
ceec2216 26551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26553 (eval $ac_try) 2>&5
26554 ac_status=$?
26555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26556 (exit $ac_status); }; } &&
26557 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26559 (eval $ac_try) 2>&5
26560 ac_status=$?
26561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26562 (exit $ac_status); }; }; then
26563 ac_cv_lib_iodbc_SQLAllocEnv=yes
26564else
26565 echo "$as_me: failed program was:" >&5
26566sed 's/^/| /' conftest.$ac_ext >&5
26567
26568ac_cv_lib_iodbc_SQLAllocEnv=no
26569fi
ac1cb8d3
VS
26570rm -f conftest.err conftest.$ac_objext \
26571 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26572LIBS=$ac_check_lib_save_LIBS
26573fi
26574echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
26575echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
26576if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
26577 ODBC_LINK=" -liodbc"
26578else
26579
26580 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
26581echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
26582if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
26583 echo $ECHO_N "(cached) $ECHO_C" >&6
26584else
26585 ac_check_lib_save_LIBS=$LIBS
26586LIBS="-lunixodbc $LIBS"
26587cat >conftest.$ac_ext <<_ACEOF
26588/* confdefs.h. */
26589_ACEOF
26590cat confdefs.h >>conftest.$ac_ext
26591cat >>conftest.$ac_ext <<_ACEOF
26592/* end confdefs.h. */
26593
26594/* Override any gcc2 internal prototype to avoid an error. */
26595#ifdef __cplusplus
26596extern "C"
26597#endif
26598/* We use char because int might match the return type of a gcc2
26599 builtin and then its argument prototype would still apply. */
26600char SQLAllocEnv ();
26601int
26602main ()
26603{
26604SQLAllocEnv ();
26605 ;
26606 return 0;
26607}
26608_ACEOF
26609rm -f conftest.$ac_objext conftest$ac_exeext
26610if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26611 (eval $ac_link) 2>conftest.er1
a848cd7e 26612 ac_status=$?
ac1cb8d3
VS
26613 grep -v '^ *+' conftest.er1 >conftest.err
26614 rm -f conftest.er1
26615 cat conftest.err >&5
a848cd7e
SC
26616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26617 (exit $ac_status); } &&
ceec2216 26618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26620 (eval $ac_try) 2>&5
26621 ac_status=$?
26622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26623 (exit $ac_status); }; } &&
26624 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26626 (eval $ac_try) 2>&5
26627 ac_status=$?
26628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26629 (exit $ac_status); }; }; then
26630 ac_cv_lib_unixodbc_SQLAllocEnv=yes
26631else
26632 echo "$as_me: failed program was:" >&5
26633sed 's/^/| /' conftest.$ac_ext >&5
26634
26635ac_cv_lib_unixodbc_SQLAllocEnv=no
26636fi
ac1cb8d3
VS
26637rm -f conftest.err conftest.$ac_objext \
26638 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26639LIBS=$ac_check_lib_save_LIBS
26640fi
26641echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
26642echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
26643if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
26644 ODBC_LINK=" -lunixodbc"
26645else
26646
26647 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
26648echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
26649if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
26650 echo $ECHO_N "(cached) $ECHO_C" >&6
26651else
26652 ac_check_lib_save_LIBS=$LIBS
26653LIBS="-lodbc $LIBS"
26654cat >conftest.$ac_ext <<_ACEOF
26655/* confdefs.h. */
26656_ACEOF
26657cat confdefs.h >>conftest.$ac_ext
26658cat >>conftest.$ac_ext <<_ACEOF
26659/* end confdefs.h. */
26660
26661/* Override any gcc2 internal prototype to avoid an error. */
26662#ifdef __cplusplus
26663extern "C"
26664#endif
26665/* We use char because int might match the return type of a gcc2
26666 builtin and then its argument prototype would still apply. */
26667char SQLAllocEnv ();
26668int
26669main ()
26670{
26671SQLAllocEnv ();
26672 ;
26673 return 0;
26674}
26675_ACEOF
26676rm -f conftest.$ac_objext conftest$ac_exeext
26677if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26678 (eval $ac_link) 2>conftest.er1
a848cd7e 26679 ac_status=$?
ac1cb8d3
VS
26680 grep -v '^ *+' conftest.er1 >conftest.err
26681 rm -f conftest.er1
26682 cat conftest.err >&5
a848cd7e
SC
26683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26684 (exit $ac_status); } &&
ceec2216 26685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26687 (eval $ac_try) 2>&5
26688 ac_status=$?
26689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26690 (exit $ac_status); }; } &&
26691 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26693 (eval $ac_try) 2>&5
26694 ac_status=$?
26695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26696 (exit $ac_status); }; }; then
26697 ac_cv_lib_odbc_SQLAllocEnv=yes
26698else
26699 echo "$as_me: failed program was:" >&5
26700sed 's/^/| /' conftest.$ac_ext >&5
26701
26702ac_cv_lib_odbc_SQLAllocEnv=no
26703fi
ac1cb8d3
VS
26704rm -f conftest.err conftest.$ac_objext \
26705 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26706LIBS=$ac_check_lib_save_LIBS
26707fi
26708echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
26709echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
26710if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
26711 ODBC_LINK=" -lodbc"
26712fi
26713
26714
26715fi
26716
26717
26718fi
26719
26720 fi
26721 if test "x$ODBC_LINK" = "x" ; then
26722 if test "$wxUSE_ODBC" = "sys" ; then
26723 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
26724echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
26725 { (exit 1); exit 1; }; }
26726 else
26727 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
26728echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
26729 wxUSE_ODBC=builtin
26730 fi
26731 else
26732 wxUSE_ODBC=sys
26733 fi
26734 fi
26735 if test "$wxUSE_ODBC" != "no" ; then
26736 cat >>confdefs.h <<\_ACEOF
26737#define wxUSE_ODBC 1
26738_ACEOF
26739
26740 if test "$wxUSE_ODBC" = "builtin" ; then
26741 cat >>confdefs.h <<\_ACEOF
26742#define wxUSE_BUILTIN_IODBC 1
26743_ACEOF
26744
26745 fi
26746 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
26747
26748 WXODBCFLAG="-D_IODBC_"
26749 fi
26750fi
26751
a848cd7e 26752
01cb68df 26753
a848cd7e 26754if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 26755 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
26756 echo "$as_me:$LINENO: checking for Xinerama" >&5
26757echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
26758
26759ac_find_libraries=
26760for ac_dir in $SEARCH_LIB /usr/lib;
26761 do
26762 for ac_extension in a so sl dylib; do
26763 if test -f "$ac_dir/libXinerama.$ac_extension"; then
26764 ac_find_libraries=$ac_dir
26765 break 2
26766 fi
26767 done
26768 done
26769
26770 if test "$ac_find_libraries" != "" ; then
26771
26772 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
26773 result=$?
26774 if test $result = 0; then
26775 ac_path_to_link=""
26776 else
26777 ac_path_to_link=" -L$ac_find_libraries"
26778 fi
26779
26780 if test "$ac_path_to_link" != " -L/usr/lib" ; then
26781 LDFLAGS="$LDFLAGS $ac_path_to_link"
26782 fi
26783 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
26784 echo "$as_me:$LINENO: result: yes" >&5
26785echo "${ECHO_T}yes" >&6
26786
26787 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
26788echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
26789
26790ac_find_libraries=
26791for ac_dir in $SEARCH_LIB /usr/lib;
26792 do
26793 for ac_extension in a so sl dylib; do
26794 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
26795 ac_find_libraries=$ac_dir
26796 break 2
26797 fi
26798 done
26799 done
26800
26801 if test "$ac_find_libraries" != "" ; then
26802 echo "$as_me:$LINENO: result: yes" >&5
26803echo "${ECHO_T}yes" >&6
26804
26805for ac_header in X11/extensions/xf86vmode.h
26806do
26807as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26808echo "$as_me:$LINENO: checking for $ac_header" >&5
26809echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26810if eval "test \"\${$as_ac_Header+set}\" = set"; then
26811 echo $ECHO_N "(cached) $ECHO_C" >&6
26812else
26813 cat >conftest.$ac_ext <<_ACEOF
26814/* confdefs.h. */
26815_ACEOF
26816cat confdefs.h >>conftest.$ac_ext
26817cat >>conftest.$ac_ext <<_ACEOF
26818/* end confdefs.h. */
26819
26820 #if HAVE_X11_XLIB_H
26821 #include <X11/Xlib.h>
26822 #endif
26823
26824
26825#include <$ac_header>
26826_ACEOF
26827rm -f conftest.$ac_objext
26828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26829 (eval $ac_compile) 2>conftest.er1
a848cd7e 26830 ac_status=$?
ac1cb8d3
VS
26831 grep -v '^ *+' conftest.er1 >conftest.err
26832 rm -f conftest.er1
26833 cat conftest.err >&5
a848cd7e
SC
26834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26835 (exit $ac_status); } &&
ceec2216 26836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26838 (eval $ac_try) 2>&5
26839 ac_status=$?
26840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26841 (exit $ac_status); }; } &&
26842 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26844 (eval $ac_try) 2>&5
26845 ac_status=$?
26846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26847 (exit $ac_status); }; }; then
26848 eval "$as_ac_Header=yes"
26849else
26850 echo "$as_me: failed program was:" >&5
26851sed 's/^/| /' conftest.$ac_ext >&5
26852
26853eval "$as_ac_Header=no"
26854fi
ac1cb8d3 26855rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26856fi
26857echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26858echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26859if test `eval echo '${'$as_ac_Header'}'` = yes; then
26860 cat >>confdefs.h <<_ACEOF
26861#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26862_ACEOF
26863
26864 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
26865
26866fi
26867
26868done
26869
26870 else
26871 echo "$as_me:$LINENO: result: no" >&5
26872echo "${ECHO_T}no" >&6
26873 fi
26874
26875 else
26876 echo "$as_me:$LINENO: result: no" >&5
26877echo "${ECHO_T}no" >&6
dcc1b6ad
VS
26878 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
26879echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
26880 wxUSE_DISPLAY="no"
26881 fi
01cb68df
RG
26882 elif test "$wxUSE_MSW" = 1; then
26883
26884
26885for ac_header in multimon.h ddraw.h
26886do
26887as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26888if eval "test \"\${$as_ac_Header+set}\" = set"; then
26889 echo "$as_me:$LINENO: checking for $ac_header" >&5
26890echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26891if eval "test \"\${$as_ac_Header+set}\" = set"; then
26892 echo $ECHO_N "(cached) $ECHO_C" >&6
26893fi
26894echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26895echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26896else
26897 # Is the header compilable?
26898echo "$as_me:$LINENO: checking $ac_header usability" >&5
26899echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26900cat >conftest.$ac_ext <<_ACEOF
26901/* confdefs.h. */
26902_ACEOF
26903cat confdefs.h >>conftest.$ac_ext
26904cat >>conftest.$ac_ext <<_ACEOF
26905/* end confdefs.h. */
26906$ac_includes_default
26907#include <$ac_header>
26908_ACEOF
26909rm -f conftest.$ac_objext
26910if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26911 (eval $ac_compile) 2>conftest.er1
01cb68df 26912 ac_status=$?
ac1cb8d3
VS
26913 grep -v '^ *+' conftest.er1 >conftest.err
26914 rm -f conftest.er1
26915 cat conftest.err >&5
01cb68df
RG
26916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26917 (exit $ac_status); } &&
ceec2216 26918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26920 (eval $ac_try) 2>&5
26921 ac_status=$?
26922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26923 (exit $ac_status); }; } &&
26924 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
26925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26926 (eval $ac_try) 2>&5
26927 ac_status=$?
26928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26929 (exit $ac_status); }; }; then
26930 ac_header_compiler=yes
26931else
26932 echo "$as_me: failed program was:" >&5
26933sed 's/^/| /' conftest.$ac_ext >&5
26934
26935ac_header_compiler=no
26936fi
ac1cb8d3 26937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
26938echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26939echo "${ECHO_T}$ac_header_compiler" >&6
26940
26941# Is the header present?
26942echo "$as_me:$LINENO: checking $ac_header presence" >&5
26943echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26944cat >conftest.$ac_ext <<_ACEOF
26945/* confdefs.h. */
26946_ACEOF
26947cat confdefs.h >>conftest.$ac_ext
26948cat >>conftest.$ac_ext <<_ACEOF
26949/* end confdefs.h. */
26950#include <$ac_header>
26951_ACEOF
26952if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26953 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26954 ac_status=$?
26955 grep -v '^ *+' conftest.er1 >conftest.err
26956 rm -f conftest.er1
26957 cat conftest.err >&5
26958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26959 (exit $ac_status); } >/dev/null; then
26960 if test -s conftest.err; then
26961 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 26962 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
01cb68df
RG
26963 else
26964 ac_cpp_err=
26965 fi
26966else
26967 ac_cpp_err=yes
26968fi
26969if test -z "$ac_cpp_err"; then
26970 ac_header_preproc=yes
26971else
26972 echo "$as_me: failed program was:" >&5
26973sed 's/^/| /' conftest.$ac_ext >&5
26974
26975 ac_header_preproc=no
26976fi
26977rm -f conftest.err conftest.$ac_ext
26978echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26979echo "${ECHO_T}$ac_header_preproc" >&6
26980
26981# So? What about this header?
ac1cb8d3
VS
26982case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26983 yes:no: )
01cb68df
RG
26984 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26985echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26987echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26988 ac_header_preproc=yes
01cb68df 26989 ;;
ac1cb8d3 26990 no:yes:* )
01cb68df
RG
26991 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26992echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26993 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26994echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26995 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26996echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26997 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26998echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
01cb68df
RG
26999 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27000echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27001 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27002echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
01cb68df
RG
27003 (
27004 cat <<\_ASBOX
ac1cb8d3
VS
27005## ----------------------------------------- ##
27006## Report this to wx-dev@lists.wxwidgets.org ##
27007## ----------------------------------------- ##
01cb68df
RG
27008_ASBOX
27009 ) |
27010 sed "s/^/$as_me: WARNING: /" >&2
27011 ;;
27012esac
27013echo "$as_me:$LINENO: checking for $ac_header" >&5
27014echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27015if eval "test \"\${$as_ac_Header+set}\" = set"; then
27016 echo $ECHO_N "(cached) $ECHO_C" >&6
27017else
ac1cb8d3 27018 eval "$as_ac_Header=\$ac_header_preproc"
01cb68df
RG
27019fi
27020echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27021echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27022
27023fi
27024if test `eval echo '${'$as_ac_Header'}'` = yes; then
27025 cat >>confdefs.h <<_ACEOF
27026#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27027_ACEOF
27028
27029else
27030
27031 wxUSE_DISPLAY="no"
dcc1b6ad
VS
27032 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
27033echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
27034
27035fi
27036
27037done
27038
a848cd7e
SC
27039 fi
27040fi
27041
27042
27043USE_OPENGL=0
27044if test "$wxUSE_OPENGL" = "yes"; then
27045 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27046 OPENGL_LIBS="-framework OpenGL -framework AGL"
27047 elif test "$wxUSE_MSW" = 1; then
27048 OPENGL_LIBS="-lopengl32 -lglu32"
27049 else
27050
27051
27052ac_find_includes=
27053for ac_dir in $SEARCH_INCLUDE /usr/include;
27054 do
27055 if test -f "$ac_dir/GL/gl.h"; then
27056 ac_find_includes=$ac_dir
27057 break
27058 fi
27059 done
27060
27061 if test "$ac_find_includes" != "" ; then
27062 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
27063echo "${ECHO_T}found in $ac_find_includes" >&6
27064
27065 if test "x$ac_find_includes" = "x/usr/include"; then
27066 ac_path_to_include=""
27067 else
27068 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
27069 result=$?
27070 if test $result = 0; then
27071 ac_path_to_include=""
27072 else
27073 ac_path_to_include=" -I$ac_find_includes"
27074 fi
27075 fi
27076
27077 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
27078 fi
27079
27080 if test "${ac_cv_header_GL_gl_h+set}" = set; then
27081 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27082echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27083if test "${ac_cv_header_GL_gl_h+set}" = set; then
27084 echo $ECHO_N "(cached) $ECHO_C" >&6
27085fi
27086echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27087echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27088else
27089 # Is the header compilable?
27090echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
27091echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
27092cat >conftest.$ac_ext <<_ACEOF
27093/* confdefs.h. */
27094_ACEOF
27095cat confdefs.h >>conftest.$ac_ext
27096cat >>conftest.$ac_ext <<_ACEOF
27097/* end confdefs.h. */
27098$ac_includes_default
27099#include <GL/gl.h>
27100_ACEOF
27101rm -f conftest.$ac_objext
27102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27103 (eval $ac_compile) 2>conftest.er1
a848cd7e 27104 ac_status=$?
ac1cb8d3
VS
27105 grep -v '^ *+' conftest.er1 >conftest.err
27106 rm -f conftest.er1
27107 cat conftest.err >&5
a848cd7e
SC
27108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27109 (exit $ac_status); } &&
ceec2216 27110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27112 (eval $ac_try) 2>&5
27113 ac_status=$?
27114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27115 (exit $ac_status); }; } &&
27116 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27118 (eval $ac_try) 2>&5
27119 ac_status=$?
27120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27121 (exit $ac_status); }; }; then
27122 ac_header_compiler=yes
27123else
27124 echo "$as_me: failed program was:" >&5
27125sed 's/^/| /' conftest.$ac_ext >&5
27126
27127ac_header_compiler=no
27128fi
ac1cb8d3 27129rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27130echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27131echo "${ECHO_T}$ac_header_compiler" >&6
27132
27133# Is the header present?
27134echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
27135echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
27136cat >conftest.$ac_ext <<_ACEOF
27137/* confdefs.h. */
27138_ACEOF
27139cat confdefs.h >>conftest.$ac_ext
27140cat >>conftest.$ac_ext <<_ACEOF
27141/* end confdefs.h. */
27142#include <GL/gl.h>
27143_ACEOF
27144if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27145 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27146 ac_status=$?
27147 grep -v '^ *+' conftest.er1 >conftest.err
27148 rm -f conftest.er1
27149 cat conftest.err >&5
27150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27151 (exit $ac_status); } >/dev/null; then
27152 if test -s conftest.err; then
27153 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27154 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
27155 else
27156 ac_cpp_err=
27157 fi
27158else
27159 ac_cpp_err=yes
27160fi
27161if test -z "$ac_cpp_err"; then
27162 ac_header_preproc=yes
27163else
27164 echo "$as_me: failed program was:" >&5
27165sed 's/^/| /' conftest.$ac_ext >&5
27166
27167 ac_header_preproc=no
27168fi
27169rm -f conftest.err conftest.$ac_ext
27170echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27171echo "${ECHO_T}$ac_header_preproc" >&6
27172
27173# So? What about this header?
ac1cb8d3
VS
27174case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27175 yes:no: )
a848cd7e
SC
27176 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27177echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27178 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
27179echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
27180 ac_header_preproc=yes
a848cd7e 27181 ;;
ac1cb8d3 27182 no:yes:* )
a848cd7e
SC
27183 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
27184echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27185 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
27186echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
27187 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
27188echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
27189 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
27190echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27191 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
27192echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27193 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
27194echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27195 (
27196 cat <<\_ASBOX
ac1cb8d3
VS
27197## ----------------------------------------- ##
27198## Report this to wx-dev@lists.wxwidgets.org ##
27199## ----------------------------------------- ##
a848cd7e
SC
27200_ASBOX
27201 ) |
27202 sed "s/^/$as_me: WARNING: /" >&2
27203 ;;
27204esac
27205echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27206echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27207if test "${ac_cv_header_GL_gl_h+set}" = set; then
27208 echo $ECHO_N "(cached) $ECHO_C" >&6
27209else
27210 ac_cv_header_GL_gl_h=$ac_header_preproc
27211fi
27212echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27213echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27214
27215fi
27216if test $ac_cv_header_GL_gl_h = yes; then
27217
27218 found_gl=0
27219
27220 echo "$as_me:$LINENO: checking for -lGL" >&5
27221echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
27222
27223ac_find_libraries=
27224for ac_dir in $SEARCH_LIB /usr/lib;
27225 do
27226 for ac_extension in a so sl dylib; do
27227 if test -f "$ac_dir/libGL.$ac_extension"; then
27228 ac_find_libraries=$ac_dir
27229 break 2
27230 fi
27231 done
27232 done
27233
27234 if test "$ac_find_libraries" != "" ; then
27235
27236 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27237 result=$?
27238 if test $result = 0; then
27239 ac_path_to_link=""
27240 else
27241 ac_path_to_link=" -L$ac_find_libraries"
27242 fi
27243
27244 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27245 LDFLAGS_GL="$ac_path_to_link"
27246 fi
27247
27248
27249ac_find_libraries=
27250for ac_dir in $SEARCH_LIB /usr/lib;
27251 do
27252 for ac_extension in a so sl dylib; do
27253 if test -f "$ac_dir/libGLU.$ac_extension"; then
27254 ac_find_libraries=$ac_dir
27255 break 2
27256 fi
27257 done
27258 done
27259
27260 if test "$ac_find_libraries" != "" ; then
27261
27262 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27263 result=$?
27264 if test $result = 0; then
27265 ac_path_to_link=""
27266 else
27267 ac_path_to_link=" -L$ac_find_libraries"
27268 fi
27269
27270 if test "$ac_path_to_link" != " -L/usr/lib" -a \
27271 "$ac_path_to_link" != "$LDFLAGS_GL"; then
27272 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
27273 fi
27274
27275 found_gl=1
27276 OPENGL_LIBS="-lGL -lGLU"
27277 echo "$as_me:$LINENO: result: yes" >&5
27278echo "${ECHO_T}yes" >&6
27279 fi
27280 fi
27281
27282 if test "$found_gl" != 1; then
27283 echo "$as_me:$LINENO: result: no" >&5
27284echo "${ECHO_T}no" >&6
27285 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
27286echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
27287
27288ac_find_libraries=
27289for ac_dir in $SEARCH_LIB /usr/lib;
27290 do
27291 for ac_extension in a so sl dylib; do
27292 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
27293 ac_find_libraries=$ac_dir
27294 break 2
27295 fi
27296 done
27297 done
27298
27299 if test "$ac_find_libraries" != "" ; then
27300
27301 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27302 result=$?
27303 if test $result = 0; then
27304 ac_path_to_link=""
27305 else
27306 ac_path_to_link=" -L$ac_find_libraries"
27307 fi
27308
27309 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
27310 OPENGL_LIBS="-lMesaGL -lMesaGLU"
27311 echo "$as_me:$LINENO: result: yes" >&5
27312echo "${ECHO_T}yes" >&6
27313 else
27314 echo "$as_me:$LINENO: result: no" >&5
27315echo "${ECHO_T}no" >&6
27316 fi
27317 fi
27318
27319fi
27320
27321
27322
27323 if test "x$OPENGL_LIBS" = "x"; then
27324 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
27325echo "$as_me: error: OpenGL libraries not available" >&2;}
27326 { (exit 1); exit 1; }; }
27327 fi
27328 fi
27329
27330 if test "$wxUSE_OPENGL" = "yes"; then
27331 USE_OPENGL=1
27332 cat >>confdefs.h <<\_ACEOF
27333#define wxUSE_OPENGL 1
27334_ACEOF
27335
27336 cat >>confdefs.h <<\_ACEOF
27337#define wxUSE_GLCANVAS 1
27338_ACEOF
27339
27340 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
27341 fi
27342fi
27343
a848cd7e
SC
27344
27345if test -n "$TOOLKIT" ; then
27346 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
27347fi
27348
a848cd7e
SC
27349
27350
27351if test "$wxUSE_SHARED" = "yes"; then
27352 case "${host}" in
27353 *-pc-msdosdjgpp )
27354 wxUSE_SHARED=no
27355 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
27356echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
27357 ;;
27358 esac
27359fi
27360
a848cd7e 27361if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
27362
27363
27364 found_versioning=no
27365
27366
27367 if test $found_versioning = no ; then
27368 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
27369echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
27370if test "${wx_cv_version_script+set}" = set; then
27371 echo $ECHO_N "(cached) $ECHO_C" >&6
27372else
27373
27374 echo "VER_1 { *; };" >conftest.sym
27375 echo "int main() { return 0; }" >conftest.cpp
27376
27377 if { ac_try='
27378 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
27379 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
27380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27381 (eval $ac_try) 2>&5
27382 ac_status=$?
27383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27384 (exit $ac_status); }; } ; then
27385 if test -s conftest.stderr ; then
27386 wx_cv_version_script=no
27387 else
27388 wx_cv_version_script=yes
27389 fi
27390 else
27391 wx_cv_version_script=no
27392 fi
27393 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
27394
27395fi
27396echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
27397echo "${ECHO_T}$wx_cv_version_script" >&6
27398 if test $wx_cv_version_script = yes ; then
27399 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
27400 fi
27401 fi
27402
27403
27404 case "${host}" in
27405 *-*-linux* | *-*-gnu* )
27406 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
27407 ;;
27408
27409 *-*-solaris2* )
27410 if test "$GCC" = yes ; then
27411 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
27412
27413 saveLdflags="$LDFLAGS"
27414 LDFLAGS="$saveLdflags -Wl,-rpath,/"
27415 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
27416echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
27417 cat >conftest.$ac_ext <<_ACEOF
27418/* confdefs.h. */
27419_ACEOF
27420cat confdefs.h >>conftest.$ac_ext
27421cat >>conftest.$ac_ext <<_ACEOF
27422/* end confdefs.h. */
27423
27424int
27425main ()
27426{
27427
27428 ;
27429 return 0;
27430}
27431_ACEOF
27432rm -f conftest.$ac_objext conftest$ac_exeext
27433if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27434 (eval $ac_link) 2>conftest.er1
a848cd7e 27435 ac_status=$?
ac1cb8d3
VS
27436 grep -v '^ *+' conftest.er1 >conftest.err
27437 rm -f conftest.er1
27438 cat conftest.err >&5
a848cd7e
SC
27439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27440 (exit $ac_status); } &&
ceec2216 27441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27443 (eval $ac_try) 2>&5
27444 ac_status=$?
27445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27446 (exit $ac_status); }; } &&
27447 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27449 (eval $ac_try) 2>&5
27450 ac_status=$?
27451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27452 (exit $ac_status); }; }; then
27453
27454 echo "$as_me:$LINENO: result: yes" >&5
27455echo "${ECHO_T}yes" >&6
27456 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
27457
27458else
27459 echo "$as_me: failed program was:" >&5
27460sed 's/^/| /' conftest.$ac_ext >&5
27461
27462
27463 echo "$as_me:$LINENO: result: no" >&5
27464echo "${ECHO_T}no" >&6
27465 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
27466echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
27467 LDFLAGS="$saveLdflags -Wl,-R,/"
27468 cat >conftest.$ac_ext <<_ACEOF
27469/* confdefs.h. */
27470_ACEOF
27471cat confdefs.h >>conftest.$ac_ext
27472cat >>conftest.$ac_ext <<_ACEOF
27473/* end confdefs.h. */
27474
27475int
27476main ()
27477{
27478
27479 ;
27480 return 0;
27481}
27482_ACEOF
27483rm -f conftest.$ac_objext conftest$ac_exeext
27484if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27485 (eval $ac_link) 2>conftest.er1
a848cd7e 27486 ac_status=$?
ac1cb8d3
VS
27487 grep -v '^ *+' conftest.er1 >conftest.err
27488 rm -f conftest.er1
27489 cat conftest.err >&5
a848cd7e
SC
27490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27491 (exit $ac_status); } &&
ceec2216 27492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27494 (eval $ac_try) 2>&5
27495 ac_status=$?
27496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27497 (exit $ac_status); }; } &&
27498 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27500 (eval $ac_try) 2>&5
27501 ac_status=$?
27502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27503 (exit $ac_status); }; }; then
27504
27505 echo "$as_me:$LINENO: result: yes" >&5
27506echo "${ECHO_T}yes" >&6
27507 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
27508else
27509 echo "$as_me: failed program was:" >&5
27510sed 's/^/| /' conftest.$ac_ext >&5
27511
27512
27513 echo "$as_me:$LINENO: result: no" >&5
27514echo "${ECHO_T}no" >&6
27515
27516fi
ac1cb8d3
VS
27517rm -f conftest.err conftest.$ac_objext \
27518 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27519
27520fi
ac1cb8d3
VS
27521rm -f conftest.err conftest.$ac_objext \
27522 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27523 LDFLAGS="$saveLdflags"
27524 else
a848cd7e
SC
27525 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
27526 fi
27527 ;;
27528
27529 powerpc-*-darwin* )
27530 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
27531 cat <<EOF >change-install-names
27532#!/bin/sh
27533libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
27534inst_cmd="install_name_tool "
27535for i in \${libnames} ; do
27536 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
27537done
27538\${inst_cmd} \${3}
27539EOF
27540 chmod +x change-install-names
27541 ;;
27542
27543 *-*-cygwin* | *-*-mingw32* )
27544 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
27545 ;;
27546
27547 esac
ceec2216
RL
27548fi
27549
27550if test "$wxUSE_SHARED" = "no"; then
27551 config_linkage_component="-static"
27552 SHARED=0
27553else
27554 SHARED=1
27555fi
a848cd7e 27556
a848cd7e 27557
ceec2216
RL
27558UNICODE=0
27559lib_unicode_suffix=
27560WX_CHARTYPE="ansi"
27561if test "$wxUSE_UNICODE" = "yes"; then
27562 lib_unicode_suffix=u
27563 WX_CHARTYPE="unicode"
27564 UNICODE=1
a848cd7e
SC
27565fi
27566
ceec2216
RL
27567lib_debug_suffix=
27568WX_DEBUGTYPE="release"
27569DEBUG_FLAG=0
27570if test "$wxUSE_DEBUG_FLAG" = "yes"; then
27571 lib_debug_suffix=d
27572 WX_DEBUGTYPE="debug"
27573 DEBUG_FLAG=1
27574fi
a848cd7e 27575
ceec2216
RL
27576WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
27577WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 27578
ceec2216
RL
27579DEBUG_INFO=0
27580if test "$wxUSE_DEBUG_INFO" = "yes"; then
27581 DEBUG_INFO=1
27582fi
a848cd7e 27583
ceec2216 27584WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 27585
ceec2216 27586TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 27587
ceec2216 27588TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 27589
ceec2216
RL
27590if test "$cross_compiling" = "yes"; then
27591 HOST_SUFFIX="-$host_alias"
27592 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
27593 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
27594fi
27595
ceec2216
RL
27596WX_LIBRARY_BASENAME_NOGUI="wx_base${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
27597WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
27598
27599
27600
a848cd7e 27601if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
ceec2216
RL
27602 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${WX_CURRENT}.r"
27603 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${WX_CURRENT}.rsrc"
27604
a848cd7e 27605 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
27606
27607 # Extract the first word of "Rez", so it can be a program name with args.
27608set dummy Rez; ac_word=$2
27609echo "$as_me:$LINENO: checking for $ac_word" >&5
27610echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27611if test "${ac_cv_prog_RESCOMP+set}" = set; then
27612 echo $ECHO_N "(cached) $ECHO_C" >&6
27613else
27614 if test -n "$RESCOMP"; then
27615 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
27616else
27617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27618for as_dir in $PATH
27619do
27620 IFS=$as_save_IFS
27621 test -z "$as_dir" && as_dir=.
27622 for ac_exec_ext in '' $ac_executable_extensions; do
27623 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27624 ac_cv_prog_RESCOMP="Rez"
27625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27626 break 2
27627 fi
27628done
27629done
27630
27631 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
27632fi
27633fi
27634RESCOMP=$ac_cv_prog_RESCOMP
27635if test -n "$RESCOMP"; then
27636 echo "$as_me:$LINENO: result: $RESCOMP" >&5
27637echo "${ECHO_T}$RESCOMP" >&6
27638else
27639 echo "$as_me:$LINENO: result: no" >&5
27640echo "${ECHO_T}no" >&6
27641fi
27642
27643 # Extract the first word of "DeRez", so it can be a program name with args.
27644set dummy DeRez; ac_word=$2
27645echo "$as_me:$LINENO: checking for $ac_word" >&5
27646echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27647if test "${ac_cv_prog_DEREZ+set}" = set; then
27648 echo $ECHO_N "(cached) $ECHO_C" >&6
27649else
27650 if test -n "$DEREZ"; then
27651 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
27652else
27653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27654for as_dir in $PATH
27655do
27656 IFS=$as_save_IFS
27657 test -z "$as_dir" && as_dir=.
27658 for ac_exec_ext in '' $ac_executable_extensions; do
27659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27660 ac_cv_prog_DEREZ="DeRez"
27661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27662 break 2
27663 fi
27664done
27665done
27666
27667 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
27668fi
27669fi
27670DEREZ=$ac_cv_prog_DEREZ
27671if test -n "$DEREZ"; then
27672 echo "$as_me:$LINENO: result: $DEREZ" >&5
27673echo "${ECHO_T}$DEREZ" >&6
27674else
27675 echo "$as_me:$LINENO: result: no" >&5
27676echo "${ECHO_T}no" >&6
27677fi
27678
27679 # Extract the first word of "SetFile", so it can be a program name with args.
27680set dummy SetFile; ac_word=$2
27681echo "$as_me:$LINENO: checking for $ac_word" >&5
27682echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27683if test "${ac_cv_prog_SETFILE+set}" = set; then
27684 echo $ECHO_N "(cached) $ECHO_C" >&6
27685else
27686 if test -n "$SETFILE"; then
27687 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
27688else
27689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27690for as_dir in $PATH
27691do
27692 IFS=$as_save_IFS
27693 test -z "$as_dir" && as_dir=.
27694 for ac_exec_ext in '' $ac_executable_extensions; do
27695 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27696 ac_cv_prog_SETFILE="SetFile"
27697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27698 break 2
27699 fi
27700done
27701done
27702
27703 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
27704fi
27705fi
27706SETFILE=$ac_cv_prog_SETFILE
27707if test -n "$SETFILE"; then
27708 echo "$as_me:$LINENO: result: $SETFILE" >&5
27709echo "${ECHO_T}$SETFILE" >&6
27710else
27711 echo "$as_me:$LINENO: result: no" >&5
27712echo "${ECHO_T}no" >&6
27713fi
27714
27715
27716 MACSETFILE="\$(SETFILE)"
27717
27718 if test "$wxUSE_MAC" = 1; then
27719 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
27720
27721 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
27722 else
27723 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
27724 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
27725 fi
27726else
27727 MACSETFILE="@#"
27728 MACRESWXCONFIG="#"
27729
27730 if test "$wxUSE_PM" = 1; then
27731 MACRESCOMP="emxbind -ep"
27732 else
27733 MACRESCOMP="@#"
27734 fi
27735fi
27736
27737
27738
27739echo "$as_me:$LINENO: checking for mode_t" >&5
27740echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
27741if test "${ac_cv_type_mode_t+set}" = set; then
27742 echo $ECHO_N "(cached) $ECHO_C" >&6
27743else
27744 cat >conftest.$ac_ext <<_ACEOF
27745/* confdefs.h. */
27746_ACEOF
27747cat confdefs.h >>conftest.$ac_ext
27748cat >>conftest.$ac_ext <<_ACEOF
27749/* end confdefs.h. */
27750$ac_includes_default
27751int
27752main ()
27753{
27754if ((mode_t *) 0)
27755 return 0;
27756if (sizeof (mode_t))
27757 return 0;
27758 ;
27759 return 0;
27760}
27761_ACEOF
27762rm -f conftest.$ac_objext
27763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27764 (eval $ac_compile) 2>conftest.er1
a848cd7e 27765 ac_status=$?
ac1cb8d3
VS
27766 grep -v '^ *+' conftest.er1 >conftest.err
27767 rm -f conftest.er1
27768 cat conftest.err >&5
a848cd7e
SC
27769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27770 (exit $ac_status); } &&
ceec2216 27771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27773 (eval $ac_try) 2>&5
27774 ac_status=$?
27775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27776 (exit $ac_status); }; } &&
27777 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27779 (eval $ac_try) 2>&5
27780 ac_status=$?
27781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27782 (exit $ac_status); }; }; then
27783 ac_cv_type_mode_t=yes
27784else
27785 echo "$as_me: failed program was:" >&5
27786sed 's/^/| /' conftest.$ac_ext >&5
27787
27788ac_cv_type_mode_t=no
27789fi
ac1cb8d3 27790rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27791fi
27792echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
27793echo "${ECHO_T}$ac_cv_type_mode_t" >&6
27794if test $ac_cv_type_mode_t = yes; then
27795 :
27796else
27797
27798cat >>confdefs.h <<_ACEOF
27799#define mode_t int
27800_ACEOF
27801
27802fi
27803
27804echo "$as_me:$LINENO: checking for off_t" >&5
27805echo $ECHO_N "checking for off_t... $ECHO_C" >&6
27806if test "${ac_cv_type_off_t+set}" = set; then
27807 echo $ECHO_N "(cached) $ECHO_C" >&6
27808else
27809 cat >conftest.$ac_ext <<_ACEOF
27810/* confdefs.h. */
27811_ACEOF
27812cat confdefs.h >>conftest.$ac_ext
27813cat >>conftest.$ac_ext <<_ACEOF
27814/* end confdefs.h. */
27815$ac_includes_default
27816int
27817main ()
27818{
27819if ((off_t *) 0)
27820 return 0;
27821if (sizeof (off_t))
27822 return 0;
27823 ;
27824 return 0;
27825}
27826_ACEOF
27827rm -f conftest.$ac_objext
27828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27829 (eval $ac_compile) 2>conftest.er1
a848cd7e 27830 ac_status=$?
ac1cb8d3
VS
27831 grep -v '^ *+' conftest.er1 >conftest.err
27832 rm -f conftest.er1
27833 cat conftest.err >&5
a848cd7e
SC
27834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27835 (exit $ac_status); } &&
ceec2216 27836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27838 (eval $ac_try) 2>&5
27839 ac_status=$?
27840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27841 (exit $ac_status); }; } &&
27842 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27844 (eval $ac_try) 2>&5
27845 ac_status=$?
27846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27847 (exit $ac_status); }; }; then
27848 ac_cv_type_off_t=yes
27849else
27850 echo "$as_me: failed program was:" >&5
27851sed 's/^/| /' conftest.$ac_ext >&5
27852
27853ac_cv_type_off_t=no
27854fi
ac1cb8d3 27855rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27856fi
27857echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
27858echo "${ECHO_T}$ac_cv_type_off_t" >&6
27859if test $ac_cv_type_off_t = yes; then
27860 :
27861else
27862
27863cat >>confdefs.h <<_ACEOF
27864#define off_t long
27865_ACEOF
27866
27867fi
27868
27869echo "$as_me:$LINENO: checking for pid_t" >&5
27870echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
27871if test "${ac_cv_type_pid_t+set}" = set; then
27872 echo $ECHO_N "(cached) $ECHO_C" >&6
27873else
27874 cat >conftest.$ac_ext <<_ACEOF
27875/* confdefs.h. */
27876_ACEOF
27877cat confdefs.h >>conftest.$ac_ext
27878cat >>conftest.$ac_ext <<_ACEOF
27879/* end confdefs.h. */
27880$ac_includes_default
27881int
27882main ()
27883{
27884if ((pid_t *) 0)
27885 return 0;
27886if (sizeof (pid_t))
27887 return 0;
27888 ;
27889 return 0;
27890}
27891_ACEOF
27892rm -f conftest.$ac_objext
27893if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27894 (eval $ac_compile) 2>conftest.er1
a848cd7e 27895 ac_status=$?
ac1cb8d3
VS
27896 grep -v '^ *+' conftest.er1 >conftest.err
27897 rm -f conftest.er1
27898 cat conftest.err >&5
a848cd7e
SC
27899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27900 (exit $ac_status); } &&
ceec2216 27901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27903 (eval $ac_try) 2>&5
27904 ac_status=$?
27905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27906 (exit $ac_status); }; } &&
27907 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27909 (eval $ac_try) 2>&5
27910 ac_status=$?
27911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27912 (exit $ac_status); }; }; then
27913 ac_cv_type_pid_t=yes
27914else
27915 echo "$as_me: failed program was:" >&5
27916sed 's/^/| /' conftest.$ac_ext >&5
27917
27918ac_cv_type_pid_t=no
27919fi
ac1cb8d3 27920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27921fi
27922echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27923echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27924if test $ac_cv_type_pid_t = yes; then
27925 :
27926else
27927
27928cat >>confdefs.h <<_ACEOF
27929#define pid_t int
27930_ACEOF
27931
27932fi
27933
27934echo "$as_me:$LINENO: checking for size_t" >&5
27935echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27936if test "${ac_cv_type_size_t+set}" = set; then
27937 echo $ECHO_N "(cached) $ECHO_C" >&6
27938else
27939 cat >conftest.$ac_ext <<_ACEOF
27940/* confdefs.h. */
27941_ACEOF
27942cat confdefs.h >>conftest.$ac_ext
27943cat >>conftest.$ac_ext <<_ACEOF
27944/* end confdefs.h. */
27945$ac_includes_default
27946int
27947main ()
27948{
27949if ((size_t *) 0)
27950 return 0;
27951if (sizeof (size_t))
27952 return 0;
27953 ;
27954 return 0;
27955}
27956_ACEOF
27957rm -f conftest.$ac_objext
27958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27959 (eval $ac_compile) 2>conftest.er1
a848cd7e 27960 ac_status=$?
ac1cb8d3
VS
27961 grep -v '^ *+' conftest.er1 >conftest.err
27962 rm -f conftest.er1
27963 cat conftest.err >&5
a848cd7e
SC
27964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27965 (exit $ac_status); } &&
ceec2216 27966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27968 (eval $ac_try) 2>&5
27969 ac_status=$?
27970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27971 (exit $ac_status); }; } &&
27972 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27974 (eval $ac_try) 2>&5
27975 ac_status=$?
27976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27977 (exit $ac_status); }; }; then
27978 ac_cv_type_size_t=yes
27979else
27980 echo "$as_me: failed program was:" >&5
27981sed 's/^/| /' conftest.$ac_ext >&5
27982
27983ac_cv_type_size_t=no
27984fi
ac1cb8d3 27985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27986fi
27987echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27988echo "${ECHO_T}$ac_cv_type_size_t" >&6
27989if test $ac_cv_type_size_t = yes; then
27990 :
27991else
27992
27993cat >>confdefs.h <<_ACEOF
27994#define size_t unsigned
27995_ACEOF
27996
27997fi
27998
27999echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
28000echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
28001if test "${ac_cv_type_uid_t+set}" = set; then
28002 echo $ECHO_N "(cached) $ECHO_C" >&6
28003else
28004 cat >conftest.$ac_ext <<_ACEOF
28005/* confdefs.h. */
28006_ACEOF
28007cat confdefs.h >>conftest.$ac_ext
28008cat >>conftest.$ac_ext <<_ACEOF
28009/* end confdefs.h. */
28010#include <sys/types.h>
28011
28012_ACEOF
28013if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28014 $EGREP "uid_t" >/dev/null 2>&1; then
28015 ac_cv_type_uid_t=yes
28016else
28017 ac_cv_type_uid_t=no
28018fi
28019rm -f conftest*
28020
28021fi
28022echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
28023echo "${ECHO_T}$ac_cv_type_uid_t" >&6
28024if test $ac_cv_type_uid_t = no; then
28025
28026cat >>confdefs.h <<\_ACEOF
28027#define uid_t int
28028_ACEOF
28029
28030
28031cat >>confdefs.h <<\_ACEOF
28032#define gid_t int
28033_ACEOF
28034
28035fi
28036
28037
28038
28039
28040ac_ext=cc
28041ac_cpp='$CXXCPP $CPPFLAGS'
28042ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28043ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28044ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28045
28046echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
28047echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
28048if test "${wx_cv_size_t_is_uint+set}" = set; then
28049 echo $ECHO_N "(cached) $ECHO_C" >&6
28050else
28051
28052 cat >conftest.$ac_ext <<_ACEOF
28053/* confdefs.h. */
28054_ACEOF
28055cat confdefs.h >>conftest.$ac_ext
28056cat >>conftest.$ac_ext <<_ACEOF
28057/* end confdefs.h. */
28058#include <stddef.h>
28059int
28060main ()
28061{
28062
28063 return 0; }
28064
28065 struct Foo { void foo(size_t); void foo(unsigned int); };
28066
28067 int bar() {
28068
28069 ;
28070 return 0;
28071}
28072_ACEOF
28073rm -f conftest.$ac_objext
28074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28075 (eval $ac_compile) 2>conftest.er1
a848cd7e 28076 ac_status=$?
ac1cb8d3
VS
28077 grep -v '^ *+' conftest.er1 >conftest.err
28078 rm -f conftest.er1
28079 cat conftest.err >&5
a848cd7e
SC
28080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28081 (exit $ac_status); } &&
ceec2216 28082 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28084 (eval $ac_try) 2>&5
28085 ac_status=$?
28086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28087 (exit $ac_status); }; } &&
28088 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28090 (eval $ac_try) 2>&5
28091 ac_status=$?
28092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28093 (exit $ac_status); }; }; then
28094 wx_cv_size_t_is_uint=no
28095else
28096 echo "$as_me: failed program was:" >&5
28097sed 's/^/| /' conftest.$ac_ext >&5
28098
28099wx_cv_size_t_is_uint=yes
28100
28101fi
ac1cb8d3 28102rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28103
28104
28105fi
28106echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
28107echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
28108
28109if test "$wx_cv_size_t_is_uint" = "yes"; then
28110 cat >>confdefs.h <<\_ACEOF
28111#define wxSIZE_T_IS_UINT 1
28112_ACEOF
28113
28114else
28115 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
28116echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
28117if test "${wx_cv_size_t_is_ulong+set}" = set; then
28118 echo $ECHO_N "(cached) $ECHO_C" >&6
28119else
28120 cat >conftest.$ac_ext <<_ACEOF
28121/* confdefs.h. */
28122_ACEOF
28123cat confdefs.h >>conftest.$ac_ext
28124cat >>conftest.$ac_ext <<_ACEOF
28125/* end confdefs.h. */
28126#include <stddef.h>
28127int
28128main ()
28129{
28130
28131 return 0; }
28132
28133 struct Foo { void foo(size_t); void foo(unsigned long); };
28134
28135 int bar() {
28136
28137 ;
28138 return 0;
28139}
28140_ACEOF
28141rm -f conftest.$ac_objext
28142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28143 (eval $ac_compile) 2>conftest.er1
a848cd7e 28144 ac_status=$?
ac1cb8d3
VS
28145 grep -v '^ *+' conftest.er1 >conftest.err
28146 rm -f conftest.er1
28147 cat conftest.err >&5
a848cd7e
SC
28148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28149 (exit $ac_status); } &&
ceec2216 28150 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28152 (eval $ac_try) 2>&5
28153 ac_status=$?
28154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28155 (exit $ac_status); }; } &&
28156 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28158 (eval $ac_try) 2>&5
28159 ac_status=$?
28160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28161 (exit $ac_status); }; }; then
28162 wx_cv_size_t_is_ulong=no
28163else
28164 echo "$as_me: failed program was:" >&5
28165sed 's/^/| /' conftest.$ac_ext >&5
28166
28167wx_cv_size_t_is_ulong=yes
28168
28169fi
ac1cb8d3 28170rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28171
28172fi
28173echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
28174echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
28175
28176 if test "$wx_cv_size_t_is_ulong" = "yes"; then
28177 cat >>confdefs.h <<\_ACEOF
28178#define wxSIZE_T_IS_ULONG 1
28179_ACEOF
28180
28181 fi
28182fi
28183
28184ac_ext=c
28185ac_cpp='$CPP $CPPFLAGS'
28186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28188ac_compiler_gnu=$ac_cv_c_compiler_gnu
28189
28190
28191
28192echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
28193echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
28194if test "${wx_cv_struct_pw_gecos+set}" = set; then
28195 echo $ECHO_N "(cached) $ECHO_C" >&6
28196else
28197
28198 cat >conftest.$ac_ext <<_ACEOF
28199/* confdefs.h. */
28200_ACEOF
28201cat confdefs.h >>conftest.$ac_ext
28202cat >>conftest.$ac_ext <<_ACEOF
28203/* end confdefs.h. */
28204#include <pwd.h>
28205int
28206main ()
28207{
28208
28209 char *p;
28210 struct passwd *pw;
28211 p = pw->pw_gecos;
28212
28213 ;
28214 return 0;
28215}
28216_ACEOF
28217rm -f conftest.$ac_objext
28218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28219 (eval $ac_compile) 2>conftest.er1
a848cd7e 28220 ac_status=$?
ac1cb8d3
VS
28221 grep -v '^ *+' conftest.er1 >conftest.err
28222 rm -f conftest.er1
28223 cat conftest.err >&5
a848cd7e
SC
28224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28225 (exit $ac_status); } &&
ceec2216 28226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28228 (eval $ac_try) 2>&5
28229 ac_status=$?
28230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28231 (exit $ac_status); }; } &&
28232 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28234 (eval $ac_try) 2>&5
28235 ac_status=$?
28236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28237 (exit $ac_status); }; }; then
28238
28239 wx_cv_struct_pw_gecos=yes
28240
28241else
28242 echo "$as_me: failed program was:" >&5
28243sed 's/^/| /' conftest.$ac_ext >&5
28244
28245
28246 wx_cv_struct_pw_gecos=no
28247
28248
28249fi
ac1cb8d3 28250rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28251
28252
28253fi
28254echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
28255echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
28256
28257if test "$wx_cv_struct_pw_gecos" = "yes"; then
28258 cat >>confdefs.h <<\_ACEOF
28259#define HAVE_PW_GECOS 1
28260_ACEOF
28261
28262fi
28263
28264
28265if test "$wx_cv_sizeof_wchar_t" != "0"; then
28266 cat >>confdefs.h <<\_ACEOF
28267#define wxUSE_WCHAR_T 1
28268_ACEOF
28269
28270
28271 WCSLEN_FOUND=0
28272 WCHAR_LINK=
28273
28274for ac_func in wcslen
28275do
28276as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28277echo "$as_me:$LINENO: checking for $ac_func" >&5
28278echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28279if eval "test \"\${$as_ac_var+set}\" = set"; then
28280 echo $ECHO_N "(cached) $ECHO_C" >&6
28281else
28282 cat >conftest.$ac_ext <<_ACEOF
28283/* confdefs.h. */
28284_ACEOF
28285cat confdefs.h >>conftest.$ac_ext
28286cat >>conftest.$ac_ext <<_ACEOF
28287/* end confdefs.h. */
ac1cb8d3
VS
28288/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28289 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28290#define $ac_func innocuous_$ac_func
28291
a848cd7e
SC
28292/* System header to define __stub macros and hopefully few prototypes,
28293 which can conflict with char $ac_func (); below.
28294 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28295 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28296
a848cd7e
SC
28297#ifdef __STDC__
28298# include <limits.h>
28299#else
28300# include <assert.h>
28301#endif
ac1cb8d3
VS
28302
28303#undef $ac_func
28304
a848cd7e
SC
28305/* Override any gcc2 internal prototype to avoid an error. */
28306#ifdef __cplusplus
28307extern "C"
28308{
28309#endif
28310/* We use char because int might match the return type of a gcc2
28311 builtin and then its argument prototype would still apply. */
28312char $ac_func ();
28313/* The GNU C library defines this for functions which it implements
28314 to always fail with ENOSYS. Some functions are actually named
28315 something starting with __ and the normal name is an alias. */
28316#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28317choke me
28318#else
28319char (*f) () = $ac_func;
28320#endif
28321#ifdef __cplusplus
28322}
28323#endif
28324
28325int
28326main ()
28327{
28328return f != $ac_func;
28329 ;
28330 return 0;
28331}
28332_ACEOF
28333rm -f conftest.$ac_objext conftest$ac_exeext
28334if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28335 (eval $ac_link) 2>conftest.er1
a848cd7e 28336 ac_status=$?
ac1cb8d3
VS
28337 grep -v '^ *+' conftest.er1 >conftest.err
28338 rm -f conftest.er1
28339 cat conftest.err >&5
a848cd7e
SC
28340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28341 (exit $ac_status); } &&
ceec2216 28342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28344 (eval $ac_try) 2>&5
28345 ac_status=$?
28346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28347 (exit $ac_status); }; } &&
28348 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28350 (eval $ac_try) 2>&5
28351 ac_status=$?
28352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28353 (exit $ac_status); }; }; then
28354 eval "$as_ac_var=yes"
28355else
28356 echo "$as_me: failed program was:" >&5
28357sed 's/^/| /' conftest.$ac_ext >&5
28358
28359eval "$as_ac_var=no"
28360fi
ac1cb8d3
VS
28361rm -f conftest.err conftest.$ac_objext \
28362 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28363fi
28364echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28365echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28366if test `eval echo '${'$as_ac_var'}'` = yes; then
28367 cat >>confdefs.h <<_ACEOF
28368#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28369_ACEOF
28370 WCSLEN_FOUND=1
28371fi
28372done
28373
28374
28375 if test "$WCSLEN_FOUND" = 0; then
28376 if test "$TOOLKIT" = "MSW"; then
28377 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
28378echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
28379if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
28380 echo $ECHO_N "(cached) $ECHO_C" >&6
28381else
28382 ac_check_lib_save_LIBS=$LIBS
28383LIBS="-lmsvcrt $LIBS"
28384cat >conftest.$ac_ext <<_ACEOF
28385/* confdefs.h. */
28386_ACEOF
28387cat confdefs.h >>conftest.$ac_ext
28388cat >>conftest.$ac_ext <<_ACEOF
28389/* end confdefs.h. */
28390
28391/* Override any gcc2 internal prototype to avoid an error. */
28392#ifdef __cplusplus
28393extern "C"
28394#endif
28395/* We use char because int might match the return type of a gcc2
28396 builtin and then its argument prototype would still apply. */
28397char wcslen ();
28398int
28399main ()
28400{
28401wcslen ();
28402 ;
28403 return 0;
28404}
28405_ACEOF
28406rm -f conftest.$ac_objext conftest$ac_exeext
28407if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28408 (eval $ac_link) 2>conftest.er1
a848cd7e 28409 ac_status=$?
ac1cb8d3
VS
28410 grep -v '^ *+' conftest.er1 >conftest.err
28411 rm -f conftest.er1
28412 cat conftest.err >&5
a848cd7e
SC
28413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28414 (exit $ac_status); } &&
ceec2216 28415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28417 (eval $ac_try) 2>&5
28418 ac_status=$?
28419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28420 (exit $ac_status); }; } &&
28421 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28423 (eval $ac_try) 2>&5
28424 ac_status=$?
28425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28426 (exit $ac_status); }; }; then
28427 ac_cv_lib_msvcrt_wcslen=yes
28428else
28429 echo "$as_me: failed program was:" >&5
28430sed 's/^/| /' conftest.$ac_ext >&5
28431
28432ac_cv_lib_msvcrt_wcslen=no
28433fi
ac1cb8d3
VS
28434rm -f conftest.err conftest.$ac_objext \
28435 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28436LIBS=$ac_check_lib_save_LIBS
28437fi
28438echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
28439echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
28440if test $ac_cv_lib_msvcrt_wcslen = yes; then
28441 WCHAR_OK=1
28442fi
28443
28444 else
28445 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
28446echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
28447if test "${ac_cv_lib_w_wcslen+set}" = set; then
28448 echo $ECHO_N "(cached) $ECHO_C" >&6
28449else
28450 ac_check_lib_save_LIBS=$LIBS
28451LIBS="-lw $LIBS"
28452cat >conftest.$ac_ext <<_ACEOF
28453/* confdefs.h. */
28454_ACEOF
28455cat confdefs.h >>conftest.$ac_ext
28456cat >>conftest.$ac_ext <<_ACEOF
28457/* end confdefs.h. */
28458
28459/* Override any gcc2 internal prototype to avoid an error. */
28460#ifdef __cplusplus
28461extern "C"
28462#endif
28463/* We use char because int might match the return type of a gcc2
28464 builtin and then its argument prototype would still apply. */
28465char wcslen ();
28466int
28467main ()
28468{
28469wcslen ();
28470 ;
28471 return 0;
28472}
28473_ACEOF
28474rm -f conftest.$ac_objext conftest$ac_exeext
28475if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28476 (eval $ac_link) 2>conftest.er1
a848cd7e 28477 ac_status=$?
ac1cb8d3
VS
28478 grep -v '^ *+' conftest.er1 >conftest.err
28479 rm -f conftest.er1
28480 cat conftest.err >&5
a848cd7e
SC
28481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28482 (exit $ac_status); } &&
ceec2216 28483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28485 (eval $ac_try) 2>&5
28486 ac_status=$?
28487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28488 (exit $ac_status); }; } &&
28489 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28491 (eval $ac_try) 2>&5
28492 ac_status=$?
28493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28494 (exit $ac_status); }; }; then
28495 ac_cv_lib_w_wcslen=yes
28496else
28497 echo "$as_me: failed program was:" >&5
28498sed 's/^/| /' conftest.$ac_ext >&5
28499
28500ac_cv_lib_w_wcslen=no
28501fi
ac1cb8d3
VS
28502rm -f conftest.err conftest.$ac_objext \
28503 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28504LIBS=$ac_check_lib_save_LIBS
28505fi
28506echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
28507echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
28508if test $ac_cv_lib_w_wcslen = yes; then
28509
28510 WCHAR_LINK=" -lw"
28511 WCSLEN_FOUND=1
28512
28513fi
28514
28515 fi
28516 fi
28517
28518 if test "$WCSLEN_FOUND" = 1; then
28519 cat >>confdefs.h <<\_ACEOF
28520#define HAVE_WCSLEN 1
28521_ACEOF
28522
28523 fi
28524
473276a9
VS
28525 if test "$USE_HPUX" = 1 -a "x$GCC" != "xyes"; then
28526 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
28527 fi
28528
a848cd7e
SC
28529
28530for ac_func in wcsrtombs
28531do
28532as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28533echo "$as_me:$LINENO: checking for $ac_func" >&5
28534echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28535if eval "test \"\${$as_ac_var+set}\" = set"; then
28536 echo $ECHO_N "(cached) $ECHO_C" >&6
28537else
28538 cat >conftest.$ac_ext <<_ACEOF
28539/* confdefs.h. */
28540_ACEOF
28541cat confdefs.h >>conftest.$ac_ext
28542cat >>conftest.$ac_ext <<_ACEOF
28543/* end confdefs.h. */
ac1cb8d3
VS
28544/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28545 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28546#define $ac_func innocuous_$ac_func
28547
a848cd7e
SC
28548/* System header to define __stub macros and hopefully few prototypes,
28549 which can conflict with char $ac_func (); below.
28550 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28551 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28552
a848cd7e
SC
28553#ifdef __STDC__
28554# include <limits.h>
28555#else
28556# include <assert.h>
28557#endif
ac1cb8d3
VS
28558
28559#undef $ac_func
28560
a848cd7e
SC
28561/* Override any gcc2 internal prototype to avoid an error. */
28562#ifdef __cplusplus
28563extern "C"
28564{
28565#endif
28566/* We use char because int might match the return type of a gcc2
28567 builtin and then its argument prototype would still apply. */
28568char $ac_func ();
28569/* The GNU C library defines this for functions which it implements
28570 to always fail with ENOSYS. Some functions are actually named
28571 something starting with __ and the normal name is an alias. */
28572#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28573choke me
28574#else
28575char (*f) () = $ac_func;
28576#endif
28577#ifdef __cplusplus
28578}
28579#endif
28580
28581int
28582main ()
28583{
28584return f != $ac_func;
28585 ;
28586 return 0;
28587}
28588_ACEOF
28589rm -f conftest.$ac_objext conftest$ac_exeext
28590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28591 (eval $ac_link) 2>conftest.er1
a848cd7e 28592 ac_status=$?
ac1cb8d3
VS
28593 grep -v '^ *+' conftest.er1 >conftest.err
28594 rm -f conftest.er1
28595 cat conftest.err >&5
a848cd7e
SC
28596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28597 (exit $ac_status); } &&
ceec2216 28598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28600 (eval $ac_try) 2>&5
28601 ac_status=$?
28602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28603 (exit $ac_status); }; } &&
28604 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28606 (eval $ac_try) 2>&5
28607 ac_status=$?
28608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28609 (exit $ac_status); }; }; then
28610 eval "$as_ac_var=yes"
28611else
28612 echo "$as_me: failed program was:" >&5
28613sed 's/^/| /' conftest.$ac_ext >&5
28614
28615eval "$as_ac_var=no"
28616fi
ac1cb8d3
VS
28617rm -f conftest.err conftest.$ac_objext \
28618 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28619fi
28620echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28621echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28622if test `eval echo '${'$as_ac_var'}'` = yes; then
28623 cat >>confdefs.h <<_ACEOF
28624#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28625_ACEOF
28626
28627fi
28628done
28629
28630else
28631 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
28632echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
28633fi
28634
28635
28636
28637ac_ext=cc
28638ac_cpp='$CXXCPP $CPPFLAGS'
28639ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28640ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28641ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28642
28643
28644
28645for ac_func in vsnprintf
28646do
28647as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28648echo "$as_me:$LINENO: checking for $ac_func" >&5
28649echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28650if eval "test \"\${$as_ac_var+set}\" = set"; then
28651 echo $ECHO_N "(cached) $ECHO_C" >&6
28652else
28653 cat >conftest.$ac_ext <<_ACEOF
28654/* confdefs.h. */
28655_ACEOF
28656cat confdefs.h >>conftest.$ac_ext
28657cat >>conftest.$ac_ext <<_ACEOF
28658/* end confdefs.h. */
ac1cb8d3
VS
28659/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28660 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28661#define $ac_func innocuous_$ac_func
28662
a848cd7e
SC
28663/* System header to define __stub macros and hopefully few prototypes,
28664 which can conflict with char $ac_func (); below.
28665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28666 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28667
a848cd7e
SC
28668#ifdef __STDC__
28669# include <limits.h>
28670#else
28671# include <assert.h>
28672#endif
ac1cb8d3
VS
28673
28674#undef $ac_func
28675
a848cd7e
SC
28676/* Override any gcc2 internal prototype to avoid an error. */
28677#ifdef __cplusplus
28678extern "C"
28679{
28680#endif
28681/* We use char because int might match the return type of a gcc2
28682 builtin and then its argument prototype would still apply. */
28683char $ac_func ();
28684/* The GNU C library defines this for functions which it implements
28685 to always fail with ENOSYS. Some functions are actually named
28686 something starting with __ and the normal name is an alias. */
28687#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28688choke me
28689#else
28690char (*f) () = $ac_func;
28691#endif
28692#ifdef __cplusplus
28693}
28694#endif
28695
28696int
28697main ()
28698{
28699return f != $ac_func;
28700 ;
28701 return 0;
28702}
28703_ACEOF
28704rm -f conftest.$ac_objext conftest$ac_exeext
28705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28706 (eval $ac_link) 2>conftest.er1
a848cd7e 28707 ac_status=$?
ac1cb8d3
VS
28708 grep -v '^ *+' conftest.er1 >conftest.err
28709 rm -f conftest.er1
28710 cat conftest.err >&5
a848cd7e
SC
28711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28712 (exit $ac_status); } &&
ceec2216 28713 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28715 (eval $ac_try) 2>&5
28716 ac_status=$?
28717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28718 (exit $ac_status); }; } &&
28719 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28721 (eval $ac_try) 2>&5
28722 ac_status=$?
28723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28724 (exit $ac_status); }; }; then
28725 eval "$as_ac_var=yes"
28726else
28727 echo "$as_me: failed program was:" >&5
28728sed 's/^/| /' conftest.$ac_ext >&5
28729
28730eval "$as_ac_var=no"
28731fi
ac1cb8d3
VS
28732rm -f conftest.err conftest.$ac_objext \
28733 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28734fi
28735echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28736echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28737if test `eval echo '${'$as_ac_var'}'` = yes; then
28738 cat >>confdefs.h <<_ACEOF
28739#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28740_ACEOF
28741
28742fi
28743done
28744
28745
28746if test "$ac_cv_func_vsnprintf" = "yes"; then
28747 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
28748echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
28749if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
28750 echo $ECHO_N "(cached) $ECHO_C" >&6
28751else
28752
28753 cat >conftest.$ac_ext <<_ACEOF
28754/* confdefs.h. */
28755_ACEOF
28756cat confdefs.h >>conftest.$ac_ext
28757cat >>conftest.$ac_ext <<_ACEOF
28758/* end confdefs.h. */
28759
28760 #include <stdio.h>
28761 #include <stdarg.h>
28762
28763int
28764main ()
28765{
28766
28767 char *buf;
28768 va_list ap;
28769 vsnprintf(buf, 10u, "%s", ap);
28770
28771 ;
28772 return 0;
28773}
28774_ACEOF
28775rm -f conftest.$ac_objext
28776if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28777 (eval $ac_compile) 2>conftest.er1
a848cd7e 28778 ac_status=$?
ac1cb8d3
VS
28779 grep -v '^ *+' conftest.er1 >conftest.err
28780 rm -f conftest.er1
28781 cat conftest.err >&5
a848cd7e
SC
28782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28783 (exit $ac_status); } &&
ceec2216 28784 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28786 (eval $ac_try) 2>&5
28787 ac_status=$?
28788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28789 (exit $ac_status); }; } &&
28790 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28792 (eval $ac_try) 2>&5
28793 ac_status=$?
28794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28795 (exit $ac_status); }; }; then
28796 wx_cv_func_vsnprintf_decl=yes
28797else
28798 echo "$as_me: failed program was:" >&5
28799sed 's/^/| /' conftest.$ac_ext >&5
28800
28801wx_cv_func_vsnprintf_decl=no
28802
28803fi
ac1cb8d3 28804rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28805
28806
28807fi
28808echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
28809echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
28810
28811 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
28812 cat >>confdefs.h <<\_ACEOF
28813#define HAVE_VSNPRINTF_DECL 1
28814_ACEOF
28815
28816 fi
28817fi
28818
28819if test "$wxUSE_UNICODE" = yes; then
28820
28821
28822
fbe47c7b
VS
28823
28824
28825
28826for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
28827do
28828as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28829echo "$as_me:$LINENO: checking for $ac_func" >&5
28830echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28831if eval "test \"\${$as_ac_var+set}\" = set"; then
28832 echo $ECHO_N "(cached) $ECHO_C" >&6
28833else
28834 cat >conftest.$ac_ext <<_ACEOF
28835/* confdefs.h. */
28836_ACEOF
28837cat confdefs.h >>conftest.$ac_ext
28838cat >>conftest.$ac_ext <<_ACEOF
28839/* end confdefs.h. */
ac1cb8d3
VS
28840/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28842#define $ac_func innocuous_$ac_func
28843
a848cd7e
SC
28844/* System header to define __stub macros and hopefully few prototypes,
28845 which can conflict with char $ac_func (); below.
28846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28847 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28848
a848cd7e
SC
28849#ifdef __STDC__
28850# include <limits.h>
28851#else
28852# include <assert.h>
28853#endif
ac1cb8d3
VS
28854
28855#undef $ac_func
28856
a848cd7e
SC
28857/* Override any gcc2 internal prototype to avoid an error. */
28858#ifdef __cplusplus
28859extern "C"
28860{
28861#endif
28862/* We use char because int might match the return type of a gcc2
28863 builtin and then its argument prototype would still apply. */
28864char $ac_func ();
28865/* The GNU C library defines this for functions which it implements
28866 to always fail with ENOSYS. Some functions are actually named
28867 something starting with __ and the normal name is an alias. */
28868#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28869choke me
28870#else
28871char (*f) () = $ac_func;
28872#endif
28873#ifdef __cplusplus
28874}
28875#endif
28876
28877int
28878main ()
28879{
28880return f != $ac_func;
28881 ;
28882 return 0;
28883}
28884_ACEOF
28885rm -f conftest.$ac_objext conftest$ac_exeext
28886if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28887 (eval $ac_link) 2>conftest.er1
a848cd7e 28888 ac_status=$?
ac1cb8d3
VS
28889 grep -v '^ *+' conftest.er1 >conftest.err
28890 rm -f conftest.er1
28891 cat conftest.err >&5
a848cd7e
SC
28892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28893 (exit $ac_status); } &&
ceec2216 28894 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28896 (eval $ac_try) 2>&5
28897 ac_status=$?
28898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28899 (exit $ac_status); }; } &&
28900 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28902 (eval $ac_try) 2>&5
28903 ac_status=$?
28904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28905 (exit $ac_status); }; }; then
28906 eval "$as_ac_var=yes"
28907else
28908 echo "$as_me: failed program was:" >&5
28909sed 's/^/| /' conftest.$ac_ext >&5
28910
28911eval "$as_ac_var=no"
28912fi
ac1cb8d3
VS
28913rm -f conftest.err conftest.$ac_objext \
28914 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28915fi
28916echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28917echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28918if test `eval echo '${'$as_ac_var'}'` = yes; then
28919 cat >>confdefs.h <<_ACEOF
28920#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28921_ACEOF
28922
28923fi
28924done
28925
28926
28927 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
28928echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
28929 cat >conftest.$ac_ext <<_ACEOF
28930/* confdefs.h. */
28931_ACEOF
28932cat confdefs.h >>conftest.$ac_ext
28933cat >>conftest.$ac_ext <<_ACEOF
28934/* end confdefs.h. */
28935#include <wchar.h>
28936int
28937main ()
28938{
28939&_vsnwprintf;
28940 ;
28941 return 0;
28942}
28943_ACEOF
28944rm -f conftest.$ac_objext
28945if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28946 (eval $ac_compile) 2>conftest.er1
a848cd7e 28947 ac_status=$?
ac1cb8d3
VS
28948 grep -v '^ *+' conftest.er1 >conftest.err
28949 rm -f conftest.er1
28950 cat conftest.err >&5
a848cd7e
SC
28951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28952 (exit $ac_status); } &&
ceec2216 28953 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28955 (eval $ac_try) 2>&5
28956 ac_status=$?
28957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28958 (exit $ac_status); }; } &&
28959 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28961 (eval $ac_try) 2>&5
28962 ac_status=$?
28963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28964 (exit $ac_status); }; }; then
28965 echo "$as_me:$LINENO: result: yes" >&5
28966echo "${ECHO_T}yes" >&6
28967 cat >>confdefs.h <<\_ACEOF
28968#define HAVE__VSNWPRINTF 1
28969_ACEOF
28970
28971else
28972 echo "$as_me: failed program was:" >&5
28973sed 's/^/| /' conftest.$ac_ext >&5
28974
28975echo "$as_me:$LINENO: result: no" >&5
28976echo "${ECHO_T}no" >&6
28977fi
ac1cb8d3 28978rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
28979fi
28980
28981ac_ext=c
28982ac_cpp='$CPP $CPPFLAGS'
28983ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28984ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28985ac_compiler_gnu=$ac_cv_c_compiler_gnu
28986
28987
28988
28989
28990if test "$TOOLKIT" != "MSW"; then
28991
28992
28993
28994
28995ac_ext=cc
28996ac_cpp='$CXXCPP $CPPFLAGS'
28997ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28998ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28999ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29000
29001
29002
29003
29004# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
29005if test "${with_libiconv_prefix+set}" = set; then
29006 withval="$with_libiconv_prefix"
29007
29008 for dir in `echo "$withval" | tr : ' '`; do
29009 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
29010 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
29011 done
29012
29013fi;
29014
29015 echo "$as_me:$LINENO: checking for iconv" >&5
29016echo $ECHO_N "checking for iconv... $ECHO_C" >&6
29017if test "${am_cv_func_iconv+set}" = set; then
29018 echo $ECHO_N "(cached) $ECHO_C" >&6
29019else
29020
29021 am_cv_func_iconv="no, consider installing GNU libiconv"
29022 am_cv_lib_iconv=no
29023 cat >conftest.$ac_ext <<_ACEOF
29024/* confdefs.h. */
29025_ACEOF
29026cat confdefs.h >>conftest.$ac_ext
29027cat >>conftest.$ac_ext <<_ACEOF
29028/* end confdefs.h. */
29029#include <stdlib.h>
29030#include <iconv.h>
29031int
29032main ()
29033{
29034iconv_t cd = iconv_open("","");
29035 iconv(cd,NULL,NULL,NULL,NULL);
29036 iconv_close(cd);
29037 ;
29038 return 0;
29039}
29040_ACEOF
29041rm -f conftest.$ac_objext conftest$ac_exeext
29042if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29043 (eval $ac_link) 2>conftest.er1
a848cd7e 29044 ac_status=$?
ac1cb8d3
VS
29045 grep -v '^ *+' conftest.er1 >conftest.err
29046 rm -f conftest.er1
29047 cat conftest.err >&5
a848cd7e
SC
29048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29049 (exit $ac_status); } &&
ceec2216 29050 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29052 (eval $ac_try) 2>&5
29053 ac_status=$?
29054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29055 (exit $ac_status); }; } &&
29056 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29058 (eval $ac_try) 2>&5
29059 ac_status=$?
29060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29061 (exit $ac_status); }; }; then
29062 am_cv_func_iconv=yes
29063else
29064 echo "$as_me: failed program was:" >&5
29065sed 's/^/| /' conftest.$ac_ext >&5
29066
29067fi
ac1cb8d3
VS
29068rm -f conftest.err conftest.$ac_objext \
29069 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29070 if test "$am_cv_func_iconv" != yes; then
29071 am_save_LIBS="$LIBS"
29072 LIBS="$LIBS -liconv"
29073 cat >conftest.$ac_ext <<_ACEOF
29074/* confdefs.h. */
29075_ACEOF
29076cat confdefs.h >>conftest.$ac_ext
29077cat >>conftest.$ac_ext <<_ACEOF
29078/* end confdefs.h. */
29079#include <stdlib.h>
29080#include <iconv.h>
29081int
29082main ()
29083{
29084iconv_t cd = iconv_open("","");
29085 iconv(cd,NULL,NULL,NULL,NULL);
29086 iconv_close(cd);
29087 ;
29088 return 0;
29089}
29090_ACEOF
29091rm -f conftest.$ac_objext conftest$ac_exeext
29092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29093 (eval $ac_link) 2>conftest.er1
a848cd7e 29094 ac_status=$?
ac1cb8d3
VS
29095 grep -v '^ *+' conftest.er1 >conftest.err
29096 rm -f conftest.er1
29097 cat conftest.err >&5
a848cd7e
SC
29098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29099 (exit $ac_status); } &&
ceec2216 29100 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29102 (eval $ac_try) 2>&5
29103 ac_status=$?
29104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29105 (exit $ac_status); }; } &&
29106 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29108 (eval $ac_try) 2>&5
29109 ac_status=$?
29110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29111 (exit $ac_status); }; }; then
29112 am_cv_lib_iconv=yes
29113 am_cv_func_iconv=yes
29114else
29115 echo "$as_me: failed program was:" >&5
29116sed 's/^/| /' conftest.$ac_ext >&5
29117
29118fi
ac1cb8d3
VS
29119rm -f conftest.err conftest.$ac_objext \
29120 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29121 LIBS="$am_save_LIBS"
29122 fi
29123
29124fi
29125echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
29126echo "${ECHO_T}$am_cv_func_iconv" >&6
29127 if test "$am_cv_func_iconv" = yes; then
29128
29129cat >>confdefs.h <<\_ACEOF
29130#define HAVE_ICONV 1
29131_ACEOF
29132
29133 echo "$as_me:$LINENO: checking if iconv needs const" >&5
29134echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
29135if test "${wx_cv_func_iconv_const+set}" = set; then
29136 echo $ECHO_N "(cached) $ECHO_C" >&6
29137else
29138 cat >conftest.$ac_ext <<_ACEOF
29139/* confdefs.h. */
29140_ACEOF
29141cat confdefs.h >>conftest.$ac_ext
29142cat >>conftest.$ac_ext <<_ACEOF
29143/* end confdefs.h. */
29144
29145#include <stdlib.h>
29146#include <iconv.h>
29147extern
29148#ifdef __cplusplus
29149"C"
29150#endif
29151#if defined(__STDC__) || defined(__cplusplus)
29152size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
29153#else
29154size_t iconv();
29155#endif
29156
29157int
29158main ()
29159{
29160
29161 ;
29162 return 0;
29163}
29164_ACEOF
29165rm -f conftest.$ac_objext
29166if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29167 (eval $ac_compile) 2>conftest.er1
a848cd7e 29168 ac_status=$?
ac1cb8d3
VS
29169 grep -v '^ *+' conftest.er1 >conftest.err
29170 rm -f conftest.er1
29171 cat conftest.err >&5
a848cd7e
SC
29172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29173 (exit $ac_status); } &&
ceec2216 29174 { ac_try='test -z "$ac_cxx_werror_flag" || 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 wx_cv_func_iconv_const="no"
29187else
29188 echo "$as_me: failed program was:" >&5
29189sed 's/^/| /' conftest.$ac_ext >&5
29190
29191wx_cv_func_iconv_const="yes"
29192
29193fi
ac1cb8d3 29194rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29195
29196fi
29197echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
29198echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
29199
29200 iconv_const=
29201 if test "x$wx_cv_func_iconv_const" = "xyes"; then
29202 iconv_const="const"
29203 fi
29204
29205
29206cat >>confdefs.h <<_ACEOF
29207#define ICONV_CONST $iconv_const
29208_ACEOF
29209
29210 fi
29211 LIBICONV=
29212 if test "$am_cv_lib_iconv" = yes; then
29213 LIBICONV="-liconv"
29214 fi
29215
29216
29217LIBS="$LIBICONV $LIBS"
29218ac_ext=c
29219ac_cpp='$CPP $CPPFLAGS'
29220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29222ac_compiler_gnu=$ac_cv_c_compiler_gnu
29223
29224
29225if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
29226
29227for ac_func in sigaction
29228do
29229as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29230echo "$as_me:$LINENO: checking for $ac_func" >&5
29231echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29232if eval "test \"\${$as_ac_var+set}\" = set"; then
29233 echo $ECHO_N "(cached) $ECHO_C" >&6
29234else
29235 cat >conftest.$ac_ext <<_ACEOF
29236/* confdefs.h. */
29237_ACEOF
29238cat confdefs.h >>conftest.$ac_ext
29239cat >>conftest.$ac_ext <<_ACEOF
29240/* end confdefs.h. */
ac1cb8d3
VS
29241/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29242 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29243#define $ac_func innocuous_$ac_func
29244
a848cd7e
SC
29245/* System header to define __stub macros and hopefully few prototypes,
29246 which can conflict with char $ac_func (); below.
29247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29248 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29249
a848cd7e
SC
29250#ifdef __STDC__
29251# include <limits.h>
29252#else
29253# include <assert.h>
29254#endif
ac1cb8d3
VS
29255
29256#undef $ac_func
29257
a848cd7e
SC
29258/* Override any gcc2 internal prototype to avoid an error. */
29259#ifdef __cplusplus
29260extern "C"
29261{
29262#endif
29263/* We use char because int might match the return type of a gcc2
29264 builtin and then its argument prototype would still apply. */
29265char $ac_func ();
29266/* The GNU C library defines this for functions which it implements
29267 to always fail with ENOSYS. Some functions are actually named
29268 something starting with __ and the normal name is an alias. */
29269#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29270choke me
29271#else
29272char (*f) () = $ac_func;
29273#endif
29274#ifdef __cplusplus
29275}
29276#endif
29277
29278int
29279main ()
29280{
29281return f != $ac_func;
29282 ;
29283 return 0;
29284}
29285_ACEOF
29286rm -f conftest.$ac_objext conftest$ac_exeext
29287if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29288 (eval $ac_link) 2>conftest.er1
a848cd7e 29289 ac_status=$?
ac1cb8d3
VS
29290 grep -v '^ *+' conftest.er1 >conftest.err
29291 rm -f conftest.er1
29292 cat conftest.err >&5
a848cd7e
SC
29293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29294 (exit $ac_status); } &&
ceec2216 29295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29297 (eval $ac_try) 2>&5
29298 ac_status=$?
29299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29300 (exit $ac_status); }; } &&
29301 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29303 (eval $ac_try) 2>&5
29304 ac_status=$?
29305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29306 (exit $ac_status); }; }; then
29307 eval "$as_ac_var=yes"
29308else
29309 echo "$as_me: failed program was:" >&5
29310sed 's/^/| /' conftest.$ac_ext >&5
29311
29312eval "$as_ac_var=no"
29313fi
ac1cb8d3
VS
29314rm -f conftest.err conftest.$ac_objext \
29315 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29316fi
29317echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29318echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29319if test `eval echo '${'$as_ac_var'}'` = yes; then
29320 cat >>confdefs.h <<_ACEOF
29321#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29322_ACEOF
29323
29324fi
29325done
29326
29327
29328 if test "$ac_cv_func_sigaction" = "no"; then
29329 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
29330echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
29331 wxUSE_ON_FATAL_EXCEPTION=no
29332 fi
29333
29334 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
29335
29336
29337 ac_ext=cc
29338ac_cpp='$CXXCPP $CPPFLAGS'
29339ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29340ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29341ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29342
29343
29344 echo "$as_me:$LINENO: checking for sa_handler type" >&5
29345echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
29346if test "${wx_cv_type_sa_handler+set}" = set; then
29347 echo $ECHO_N "(cached) $ECHO_C" >&6
29348else
29349
29350 cat >conftest.$ac_ext <<_ACEOF
29351/* confdefs.h. */
29352_ACEOF
29353cat confdefs.h >>conftest.$ac_ext
29354cat >>conftest.$ac_ext <<_ACEOF
29355/* end confdefs.h. */
29356#include <signal.h>
29357int
29358main ()
29359{
29360
29361 extern void testSigHandler(int);
29362
29363 struct sigaction sa;
29364 sa.sa_handler = testSigHandler;
29365
29366 ;
29367 return 0;
29368}
29369_ACEOF
29370rm -f conftest.$ac_objext
29371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29372 (eval $ac_compile) 2>conftest.er1
a848cd7e 29373 ac_status=$?
ac1cb8d3
VS
29374 grep -v '^ *+' conftest.er1 >conftest.err
29375 rm -f conftest.er1
29376 cat conftest.err >&5
a848cd7e
SC
29377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29378 (exit $ac_status); } &&
ceec2216 29379 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29381 (eval $ac_try) 2>&5
29382 ac_status=$?
29383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29384 (exit $ac_status); }; } &&
29385 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29387 (eval $ac_try) 2>&5
29388 ac_status=$?
29389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29390 (exit $ac_status); }; }; then
29391
29392 wx_cv_type_sa_handler=int
29393
29394else
29395 echo "$as_me: failed program was:" >&5
29396sed 's/^/| /' conftest.$ac_ext >&5
29397
29398
29399 wx_cv_type_sa_handler=void
29400
29401fi
ac1cb8d3 29402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29403
29404fi
29405echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
29406echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
29407
29408 ac_ext=c
29409ac_cpp='$CPP $CPPFLAGS'
29410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29412ac_compiler_gnu=$ac_cv_c_compiler_gnu
29413
29414
29415 cat >>confdefs.h <<_ACEOF
29416#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
29417_ACEOF
29418
29419 fi
29420fi
29421
29422
29423
29424for ac_func in mkstemp mktemp
29425do
29426as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29427echo "$as_me:$LINENO: checking for $ac_func" >&5
29428echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29429if eval "test \"\${$as_ac_var+set}\" = set"; then
29430 echo $ECHO_N "(cached) $ECHO_C" >&6
29431else
29432 cat >conftest.$ac_ext <<_ACEOF
29433/* confdefs.h. */
29434_ACEOF
29435cat confdefs.h >>conftest.$ac_ext
29436cat >>conftest.$ac_ext <<_ACEOF
29437/* end confdefs.h. */
ac1cb8d3
VS
29438/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29439 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29440#define $ac_func innocuous_$ac_func
29441
a848cd7e
SC
29442/* System header to define __stub macros and hopefully few prototypes,
29443 which can conflict with char $ac_func (); below.
29444 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29445 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29446
a848cd7e
SC
29447#ifdef __STDC__
29448# include <limits.h>
29449#else
29450# include <assert.h>
29451#endif
ac1cb8d3
VS
29452
29453#undef $ac_func
29454
a848cd7e
SC
29455/* Override any gcc2 internal prototype to avoid an error. */
29456#ifdef __cplusplus
29457extern "C"
29458{
29459#endif
29460/* We use char because int might match the return type of a gcc2
29461 builtin and then its argument prototype would still apply. */
29462char $ac_func ();
29463/* The GNU C library defines this for functions which it implements
29464 to always fail with ENOSYS. Some functions are actually named
29465 something starting with __ and the normal name is an alias. */
29466#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29467choke me
29468#else
29469char (*f) () = $ac_func;
29470#endif
29471#ifdef __cplusplus
29472}
29473#endif
29474
29475int
29476main ()
29477{
29478return f != $ac_func;
29479 ;
29480 return 0;
29481}
29482_ACEOF
29483rm -f conftest.$ac_objext conftest$ac_exeext
29484if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29485 (eval $ac_link) 2>conftest.er1
a848cd7e 29486 ac_status=$?
ac1cb8d3
VS
29487 grep -v '^ *+' conftest.er1 >conftest.err
29488 rm -f conftest.er1
29489 cat conftest.err >&5
a848cd7e
SC
29490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29491 (exit $ac_status); } &&
ceec2216 29492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29494 (eval $ac_try) 2>&5
29495 ac_status=$?
29496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29497 (exit $ac_status); }; } &&
29498 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29500 (eval $ac_try) 2>&5
29501 ac_status=$?
29502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29503 (exit $ac_status); }; }; then
29504 eval "$as_ac_var=yes"
29505else
29506 echo "$as_me: failed program was:" >&5
29507sed 's/^/| /' conftest.$ac_ext >&5
29508
29509eval "$as_ac_var=no"
29510fi
ac1cb8d3
VS
29511rm -f conftest.err conftest.$ac_objext \
29512 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29513fi
29514echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29515echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29516if test `eval echo '${'$as_ac_var'}'` = yes; then
29517 cat >>confdefs.h <<_ACEOF
29518#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29519_ACEOF
29520 break
29521fi
29522done
29523
29524
29525echo "$as_me:$LINENO: checking for statfs" >&5
29526echo $ECHO_N "checking for statfs... $ECHO_C" >&6
29527if test "${wx_cv_func_statfs+set}" = set; then
29528 echo $ECHO_N "(cached) $ECHO_C" >&6
29529else
29530 cat >conftest.$ac_ext <<_ACEOF
29531/* confdefs.h. */
29532_ACEOF
29533cat confdefs.h >>conftest.$ac_ext
29534cat >>conftest.$ac_ext <<_ACEOF
29535/* end confdefs.h. */
29536
29537 #if defined(__BSD__)
29538 #include <sys/param.h>
29539 #include <sys/mount.h>
29540 #else
29541 #include <sys/vfs.h>
29542 #endif
29543
29544int
29545main ()
29546{
29547
29548 long l;
29549 struct statfs fs;
29550 statfs("/", &fs);
29551 l = fs.f_bsize;
29552 l += fs.f_blocks;
29553 l += fs.f_bavail;
29554
29555 ;
29556 return 0;
29557}
29558_ACEOF
29559rm -f conftest.$ac_objext
29560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29561 (eval $ac_compile) 2>conftest.er1
a848cd7e 29562 ac_status=$?
ac1cb8d3
VS
29563 grep -v '^ *+' conftest.er1 >conftest.err
29564 rm -f conftest.er1
29565 cat conftest.err >&5
a848cd7e
SC
29566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29567 (exit $ac_status); } &&
ceec2216 29568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29570 (eval $ac_try) 2>&5
29571 ac_status=$?
29572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29573 (exit $ac_status); }; } &&
29574 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29576 (eval $ac_try) 2>&5
29577 ac_status=$?
29578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29579 (exit $ac_status); }; }; then
29580
29581 wx_cv_func_statfs=yes
29582
29583else
29584 echo "$as_me: failed program was:" >&5
29585sed 's/^/| /' conftest.$ac_ext >&5
29586
29587
29588 wx_cv_func_statfs=no
29589
29590
29591fi
ac1cb8d3 29592rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29593
29594fi
29595echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
29596echo "${ECHO_T}$wx_cv_func_statfs" >&6
29597
29598if test "$wx_cv_func_statfs" = "yes"; then
29599 wx_cv_type_statvfs_t="struct statfs"
29600 cat >>confdefs.h <<\_ACEOF
29601#define HAVE_STATFS 1
29602_ACEOF
29603
29604else
29605 echo "$as_me:$LINENO: checking for statvfs" >&5
29606echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
29607if test "${wx_cv_func_statvfs+set}" = set; then
29608 echo $ECHO_N "(cached) $ECHO_C" >&6
29609else
29610 cat >conftest.$ac_ext <<_ACEOF
29611/* confdefs.h. */
29612_ACEOF
29613cat confdefs.h >>conftest.$ac_ext
29614cat >>conftest.$ac_ext <<_ACEOF
29615/* end confdefs.h. */
29616
29617 #include <stddef.h>
29618 #include <sys/statvfs.h>
29619
29620int
29621main ()
29622{
29623
29624 statvfs("/", NULL);
29625
29626 ;
29627 return 0;
29628}
29629_ACEOF
29630rm -f conftest.$ac_objext
29631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29632 (eval $ac_compile) 2>conftest.er1
a848cd7e 29633 ac_status=$?
ac1cb8d3
VS
29634 grep -v '^ *+' conftest.er1 >conftest.err
29635 rm -f conftest.er1
29636 cat conftest.err >&5
a848cd7e
SC
29637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29638 (exit $ac_status); } &&
ceec2216 29639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29641 (eval $ac_try) 2>&5
29642 ac_status=$?
29643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29644 (exit $ac_status); }; } &&
29645 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29647 (eval $ac_try) 2>&5
29648 ac_status=$?
29649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29650 (exit $ac_status); }; }; then
29651 wx_cv_func_statvfs=yes
29652else
29653 echo "$as_me: failed program was:" >&5
29654sed 's/^/| /' conftest.$ac_ext >&5
29655
29656wx_cv_func_statvfs=no
29657
29658fi
ac1cb8d3 29659rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29660
29661fi
29662echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
29663echo "${ECHO_T}$wx_cv_func_statvfs" >&6
29664
29665 if test "$wx_cv_func_statvfs" = "yes"; then
29666
29667
29668 ac_ext=cc
29669ac_cpp='$CXXCPP $CPPFLAGS'
29670ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29671ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29672ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29673
29674
29675 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
29676echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
29677if test "${wx_cv_type_statvfs_t+set}" = set; then
29678 echo $ECHO_N "(cached) $ECHO_C" >&6
29679else
29680 cat >conftest.$ac_ext <<_ACEOF
29681/* confdefs.h. */
29682_ACEOF
29683cat confdefs.h >>conftest.$ac_ext
29684cat >>conftest.$ac_ext <<_ACEOF
29685/* end confdefs.h. */
29686
29687 #include <sys/statvfs.h>
29688
29689int
29690main ()
29691{
29692
29693 long l;
29694 statvfs_t fs;
29695 statvfs("/", &fs);
29696 l = fs.f_bsize;
29697 l += fs.f_blocks;
29698 l += fs.f_bavail;
29699
29700 ;
29701 return 0;
29702}
29703_ACEOF
29704rm -f conftest.$ac_objext
29705if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29706 (eval $ac_compile) 2>conftest.er1
a848cd7e 29707 ac_status=$?
ac1cb8d3
VS
29708 grep -v '^ *+' conftest.er1 >conftest.err
29709 rm -f conftest.er1
29710 cat conftest.err >&5
a848cd7e
SC
29711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29712 (exit $ac_status); } &&
ceec2216 29713 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29715 (eval $ac_try) 2>&5
29716 ac_status=$?
29717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29718 (exit $ac_status); }; } &&
29719 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29721 (eval $ac_try) 2>&5
29722 ac_status=$?
29723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29724 (exit $ac_status); }; }; then
29725 wx_cv_type_statvfs_t=statvfs_t
29726else
29727 echo "$as_me: failed program was:" >&5
29728sed 's/^/| /' conftest.$ac_ext >&5
29729
29730
29731 cat >conftest.$ac_ext <<_ACEOF
29732/* confdefs.h. */
29733_ACEOF
29734cat confdefs.h >>conftest.$ac_ext
29735cat >>conftest.$ac_ext <<_ACEOF
29736/* end confdefs.h. */
29737
29738 #include <sys/statvfs.h>
29739
29740int
29741main ()
29742{
29743
29744 long l;
29745 struct statvfs fs;
29746 statvfs("/", &fs);
29747 l = fs.f_bsize;
29748 l += fs.f_blocks;
29749 l += fs.f_bavail;
29750
29751 ;
29752 return 0;
29753}
29754_ACEOF
29755rm -f conftest.$ac_objext
29756if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29757 (eval $ac_compile) 2>conftest.er1
a848cd7e 29758 ac_status=$?
ac1cb8d3
VS
29759 grep -v '^ *+' conftest.er1 >conftest.err
29760 rm -f conftest.er1
29761 cat conftest.err >&5
a848cd7e
SC
29762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29763 (exit $ac_status); } &&
ceec2216 29764 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29766 (eval $ac_try) 2>&5
29767 ac_status=$?
29768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29769 (exit $ac_status); }; } &&
29770 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29772 (eval $ac_try) 2>&5
29773 ac_status=$?
29774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29775 (exit $ac_status); }; }; then
29776 wx_cv_type_statvfs_t="struct statvfs"
29777else
29778 echo "$as_me: failed program was:" >&5
29779sed 's/^/| /' conftest.$ac_ext >&5
29780
29781wx_cv_type_statvfs_t="unknown"
29782
29783fi
ac1cb8d3 29784rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29785
29786
29787fi
ac1cb8d3 29788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29789
29790fi
29791echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
29792echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
29793
29794 ac_ext=c
29795ac_cpp='$CPP $CPPFLAGS'
29796ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29797ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29798ac_compiler_gnu=$ac_cv_c_compiler_gnu
29799
29800
29801 if test "$wx_cv_type_statvfs_t" != "unknown"; then
29802 cat >>confdefs.h <<\_ACEOF
29803#define HAVE_STATVFS 1
29804_ACEOF
29805
29806 fi
29807 else
29808 wx_cv_type_statvfs_t="unknown"
29809 fi
29810fi
29811
29812if test "$wx_cv_type_statvfs_t" != "unknown"; then
29813 cat >>confdefs.h <<_ACEOF
29814#define WX_STATFS_T $wx_cv_type_statvfs_t
29815_ACEOF
29816
29817else
29818 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
29819echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
29820fi
29821
29822if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
29823
29824
29825for ac_func in fcntl flock
29826do
29827as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29828echo "$as_me:$LINENO: checking for $ac_func" >&5
29829echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29830if eval "test \"\${$as_ac_var+set}\" = set"; then
29831 echo $ECHO_N "(cached) $ECHO_C" >&6
29832else
29833 cat >conftest.$ac_ext <<_ACEOF
29834/* confdefs.h. */
29835_ACEOF
29836cat confdefs.h >>conftest.$ac_ext
29837cat >>conftest.$ac_ext <<_ACEOF
29838/* end confdefs.h. */
ac1cb8d3
VS
29839/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29841#define $ac_func innocuous_$ac_func
29842
a848cd7e
SC
29843/* System header to define __stub macros and hopefully few prototypes,
29844 which can conflict with char $ac_func (); below.
29845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29846 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29847
a848cd7e
SC
29848#ifdef __STDC__
29849# include <limits.h>
29850#else
29851# include <assert.h>
29852#endif
ac1cb8d3
VS
29853
29854#undef $ac_func
29855
a848cd7e
SC
29856/* Override any gcc2 internal prototype to avoid an error. */
29857#ifdef __cplusplus
29858extern "C"
29859{
29860#endif
29861/* We use char because int might match the return type of a gcc2
29862 builtin and then its argument prototype would still apply. */
29863char $ac_func ();
29864/* The GNU C library defines this for functions which it implements
29865 to always fail with ENOSYS. Some functions are actually named
29866 something starting with __ and the normal name is an alias. */
29867#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29868choke me
29869#else
29870char (*f) () = $ac_func;
29871#endif
29872#ifdef __cplusplus
29873}
29874#endif
29875
29876int
29877main ()
29878{
29879return f != $ac_func;
29880 ;
29881 return 0;
29882}
29883_ACEOF
29884rm -f conftest.$ac_objext conftest$ac_exeext
29885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29886 (eval $ac_link) 2>conftest.er1
a848cd7e 29887 ac_status=$?
ac1cb8d3
VS
29888 grep -v '^ *+' conftest.er1 >conftest.err
29889 rm -f conftest.er1
29890 cat conftest.err >&5
a848cd7e
SC
29891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29892 (exit $ac_status); } &&
ceec2216 29893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29895 (eval $ac_try) 2>&5
29896 ac_status=$?
29897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29898 (exit $ac_status); }; } &&
29899 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29901 (eval $ac_try) 2>&5
29902 ac_status=$?
29903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29904 (exit $ac_status); }; }; then
29905 eval "$as_ac_var=yes"
29906else
29907 echo "$as_me: failed program was:" >&5
29908sed 's/^/| /' conftest.$ac_ext >&5
29909
29910eval "$as_ac_var=no"
29911fi
ac1cb8d3
VS
29912rm -f conftest.err conftest.$ac_objext \
29913 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29914fi
29915echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29916echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29917if test `eval echo '${'$as_ac_var'}'` = yes; then
29918 cat >>confdefs.h <<_ACEOF
29919#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29920_ACEOF
29921 break
29922fi
29923done
29924
29925
29926 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
29927 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
29928echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
29929 wxUSE_SNGLINST_CHECKER=no
29930 fi
29931fi
29932
29933
29934for ac_func in timegm
29935do
29936as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29937echo "$as_me:$LINENO: checking for $ac_func" >&5
29938echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29939if eval "test \"\${$as_ac_var+set}\" = set"; then
29940 echo $ECHO_N "(cached) $ECHO_C" >&6
29941else
29942 cat >conftest.$ac_ext <<_ACEOF
29943/* confdefs.h. */
29944_ACEOF
29945cat confdefs.h >>conftest.$ac_ext
29946cat >>conftest.$ac_ext <<_ACEOF
29947/* end confdefs.h. */
ac1cb8d3
VS
29948/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29949 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29950#define $ac_func innocuous_$ac_func
29951
a848cd7e
SC
29952/* System header to define __stub macros and hopefully few prototypes,
29953 which can conflict with char $ac_func (); below.
29954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29955 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29956
a848cd7e
SC
29957#ifdef __STDC__
29958# include <limits.h>
29959#else
29960# include <assert.h>
29961#endif
ac1cb8d3
VS
29962
29963#undef $ac_func
29964
a848cd7e
SC
29965/* Override any gcc2 internal prototype to avoid an error. */
29966#ifdef __cplusplus
29967extern "C"
29968{
29969#endif
29970/* We use char because int might match the return type of a gcc2
29971 builtin and then its argument prototype would still apply. */
29972char $ac_func ();
29973/* The GNU C library defines this for functions which it implements
29974 to always fail with ENOSYS. Some functions are actually named
29975 something starting with __ and the normal name is an alias. */
29976#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29977choke me
29978#else
29979char (*f) () = $ac_func;
29980#endif
29981#ifdef __cplusplus
29982}
29983#endif
29984
29985int
29986main ()
29987{
29988return f != $ac_func;
29989 ;
29990 return 0;
29991}
29992_ACEOF
29993rm -f conftest.$ac_objext conftest$ac_exeext
29994if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29995 (eval $ac_link) 2>conftest.er1
a848cd7e 29996 ac_status=$?
ac1cb8d3
VS
29997 grep -v '^ *+' conftest.er1 >conftest.err
29998 rm -f conftest.er1
29999 cat conftest.err >&5
a848cd7e
SC
30000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30001 (exit $ac_status); } &&
ceec2216 30002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30004 (eval $ac_try) 2>&5
30005 ac_status=$?
30006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30007 (exit $ac_status); }; } &&
30008 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30010 (eval $ac_try) 2>&5
30011 ac_status=$?
30012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30013 (exit $ac_status); }; }; then
30014 eval "$as_ac_var=yes"
30015else
30016 echo "$as_me: failed program was:" >&5
30017sed 's/^/| /' conftest.$ac_ext >&5
30018
30019eval "$as_ac_var=no"
30020fi
ac1cb8d3
VS
30021rm -f conftest.err conftest.$ac_objext \
30022 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30023fi
30024echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30025echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30026if test `eval echo '${'$as_ac_var'}'` = yes; then
30027 cat >>confdefs.h <<_ACEOF
30028#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30029_ACEOF
30030
30031fi
30032done
30033
30034
30035
30036
30037for ac_func in putenv setenv
30038do
30039as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30040echo "$as_me:$LINENO: checking for $ac_func" >&5
30041echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30042if eval "test \"\${$as_ac_var+set}\" = set"; then
30043 echo $ECHO_N "(cached) $ECHO_C" >&6
30044else
30045 cat >conftest.$ac_ext <<_ACEOF
30046/* confdefs.h. */
30047_ACEOF
30048cat confdefs.h >>conftest.$ac_ext
30049cat >>conftest.$ac_ext <<_ACEOF
30050/* end confdefs.h. */
ac1cb8d3
VS
30051/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30052 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30053#define $ac_func innocuous_$ac_func
30054
a848cd7e
SC
30055/* System header to define __stub macros and hopefully few prototypes,
30056 which can conflict with char $ac_func (); below.
30057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30058 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30059
a848cd7e
SC
30060#ifdef __STDC__
30061# include <limits.h>
30062#else
30063# include <assert.h>
30064#endif
ac1cb8d3
VS
30065
30066#undef $ac_func
30067
a848cd7e
SC
30068/* Override any gcc2 internal prototype to avoid an error. */
30069#ifdef __cplusplus
30070extern "C"
30071{
30072#endif
30073/* We use char because int might match the return type of a gcc2
30074 builtin and then its argument prototype would still apply. */
30075char $ac_func ();
30076/* The GNU C library defines this for functions which it implements
30077 to always fail with ENOSYS. Some functions are actually named
30078 something starting with __ and the normal name is an alias. */
30079#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30080choke me
30081#else
30082char (*f) () = $ac_func;
30083#endif
30084#ifdef __cplusplus
30085}
30086#endif
30087
30088int
30089main ()
30090{
30091return f != $ac_func;
30092 ;
30093 return 0;
30094}
30095_ACEOF
30096rm -f conftest.$ac_objext conftest$ac_exeext
30097if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30098 (eval $ac_link) 2>conftest.er1
a848cd7e 30099 ac_status=$?
ac1cb8d3
VS
30100 grep -v '^ *+' conftest.er1 >conftest.err
30101 rm -f conftest.er1
30102 cat conftest.err >&5
a848cd7e
SC
30103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30104 (exit $ac_status); } &&
ceec2216 30105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30107 (eval $ac_try) 2>&5
30108 ac_status=$?
30109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30110 (exit $ac_status); }; } &&
30111 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30113 (eval $ac_try) 2>&5
30114 ac_status=$?
30115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30116 (exit $ac_status); }; }; then
30117 eval "$as_ac_var=yes"
30118else
30119 echo "$as_me: failed program was:" >&5
30120sed 's/^/| /' conftest.$ac_ext >&5
30121
30122eval "$as_ac_var=no"
30123fi
ac1cb8d3
VS
30124rm -f conftest.err conftest.$ac_objext \
30125 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30126fi
30127echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30128echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30129if test `eval echo '${'$as_ac_var'}'` = yes; then
30130 cat >>confdefs.h <<_ACEOF
30131#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30132_ACEOF
30133 break
30134fi
30135done
30136
30137
30138HAVE_SOME_SLEEP_FUNC=0
30139if test "$USE_BEOS" = 1; then
30140 cat >>confdefs.h <<\_ACEOF
30141#define HAVE_SLEEP 1
30142_ACEOF
30143
30144 HAVE_SOME_SLEEP_FUNC=1
30145fi
30146
30147if test "$USE_DARWIN" = 1; then
30148 cat >>confdefs.h <<\_ACEOF
30149#define HAVE_USLEEP 1
30150_ACEOF
30151
30152 HAVE_SOME_SLEEP_FUNC=1
30153fi
30154
30155if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
30156 POSIX4_LINK=
30157
30158for ac_func in nanosleep
30159do
30160as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30161echo "$as_me:$LINENO: checking for $ac_func" >&5
30162echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30163if eval "test \"\${$as_ac_var+set}\" = set"; then
30164 echo $ECHO_N "(cached) $ECHO_C" >&6
30165else
30166 cat >conftest.$ac_ext <<_ACEOF
30167/* confdefs.h. */
30168_ACEOF
30169cat confdefs.h >>conftest.$ac_ext
30170cat >>conftest.$ac_ext <<_ACEOF
30171/* end confdefs.h. */
ac1cb8d3
VS
30172/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30173 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30174#define $ac_func innocuous_$ac_func
30175
a848cd7e
SC
30176/* System header to define __stub macros and hopefully few prototypes,
30177 which can conflict with char $ac_func (); below.
30178 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30179 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30180
a848cd7e
SC
30181#ifdef __STDC__
30182# include <limits.h>
30183#else
30184# include <assert.h>
30185#endif
ac1cb8d3
VS
30186
30187#undef $ac_func
30188
a848cd7e
SC
30189/* Override any gcc2 internal prototype to avoid an error. */
30190#ifdef __cplusplus
30191extern "C"
30192{
30193#endif
30194/* We use char because int might match the return type of a gcc2
30195 builtin and then its argument prototype would still apply. */
30196char $ac_func ();
30197/* The GNU C library defines this for functions which it implements
30198 to always fail with ENOSYS. Some functions are actually named
30199 something starting with __ and the normal name is an alias. */
30200#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30201choke me
30202#else
30203char (*f) () = $ac_func;
30204#endif
30205#ifdef __cplusplus
30206}
30207#endif
30208
30209int
30210main ()
30211{
30212return f != $ac_func;
30213 ;
30214 return 0;
30215}
30216_ACEOF
30217rm -f conftest.$ac_objext conftest$ac_exeext
30218if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30219 (eval $ac_link) 2>conftest.er1
a848cd7e 30220 ac_status=$?
ac1cb8d3
VS
30221 grep -v '^ *+' conftest.er1 >conftest.err
30222 rm -f conftest.er1
30223 cat conftest.err >&5
a848cd7e
SC
30224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30225 (exit $ac_status); } &&
ceec2216 30226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30228 (eval $ac_try) 2>&5
30229 ac_status=$?
30230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30231 (exit $ac_status); }; } &&
30232 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30234 (eval $ac_try) 2>&5
30235 ac_status=$?
30236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30237 (exit $ac_status); }; }; then
30238 eval "$as_ac_var=yes"
30239else
30240 echo "$as_me: failed program was:" >&5
30241sed 's/^/| /' conftest.$ac_ext >&5
30242
30243eval "$as_ac_var=no"
30244fi
ac1cb8d3
VS
30245rm -f conftest.err conftest.$ac_objext \
30246 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30247fi
30248echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30249echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30250if test `eval echo '${'$as_ac_var'}'` = yes; then
30251 cat >>confdefs.h <<_ACEOF
30252#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30253_ACEOF
30254 cat >>confdefs.h <<\_ACEOF
30255#define HAVE_NANOSLEEP 1
30256_ACEOF
30257
30258else
30259
30260 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
30261echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
30262if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
30263 echo $ECHO_N "(cached) $ECHO_C" >&6
30264else
30265 ac_check_lib_save_LIBS=$LIBS
30266LIBS="-lposix4 $LIBS"
30267cat >conftest.$ac_ext <<_ACEOF
30268/* confdefs.h. */
30269_ACEOF
30270cat confdefs.h >>conftest.$ac_ext
30271cat >>conftest.$ac_ext <<_ACEOF
30272/* end confdefs.h. */
30273
30274/* Override any gcc2 internal prototype to avoid an error. */
30275#ifdef __cplusplus
30276extern "C"
30277#endif
30278/* We use char because int might match the return type of a gcc2
30279 builtin and then its argument prototype would still apply. */
30280char nanosleep ();
30281int
30282main ()
30283{
30284nanosleep ();
30285 ;
30286 return 0;
30287}
30288_ACEOF
30289rm -f conftest.$ac_objext conftest$ac_exeext
30290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30291 (eval $ac_link) 2>conftest.er1
a848cd7e 30292 ac_status=$?
ac1cb8d3
VS
30293 grep -v '^ *+' conftest.er1 >conftest.err
30294 rm -f conftest.er1
30295 cat conftest.err >&5
a848cd7e
SC
30296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30297 (exit $ac_status); } &&
ceec2216 30298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30300 (eval $ac_try) 2>&5
30301 ac_status=$?
30302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30303 (exit $ac_status); }; } &&
30304 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30306 (eval $ac_try) 2>&5
30307 ac_status=$?
30308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30309 (exit $ac_status); }; }; then
30310 ac_cv_lib_posix4_nanosleep=yes
30311else
30312 echo "$as_me: failed program was:" >&5
30313sed 's/^/| /' conftest.$ac_ext >&5
30314
30315ac_cv_lib_posix4_nanosleep=no
30316fi
ac1cb8d3
VS
30317rm -f conftest.err conftest.$ac_objext \
30318 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30319LIBS=$ac_check_lib_save_LIBS
30320fi
30321echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
30322echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
30323if test $ac_cv_lib_posix4_nanosleep = yes; then
30324
30325 cat >>confdefs.h <<\_ACEOF
30326#define HAVE_NANOSLEEP 1
30327_ACEOF
30328
30329 POSIX4_LINK=" -lposix4"
30330
30331else
30332
30333
30334for ac_func in usleep
30335do
30336as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30337echo "$as_me:$LINENO: checking for $ac_func" >&5
30338echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30339if eval "test \"\${$as_ac_var+set}\" = set"; then
30340 echo $ECHO_N "(cached) $ECHO_C" >&6
30341else
30342 cat >conftest.$ac_ext <<_ACEOF
30343/* confdefs.h. */
30344_ACEOF
30345cat confdefs.h >>conftest.$ac_ext
30346cat >>conftest.$ac_ext <<_ACEOF
30347/* end confdefs.h. */
ac1cb8d3
VS
30348/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30349 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30350#define $ac_func innocuous_$ac_func
30351
a848cd7e
SC
30352/* System header to define __stub macros and hopefully few prototypes,
30353 which can conflict with char $ac_func (); below.
30354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30355 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30356
a848cd7e
SC
30357#ifdef __STDC__
30358# include <limits.h>
30359#else
30360# include <assert.h>
30361#endif
ac1cb8d3
VS
30362
30363#undef $ac_func
30364
a848cd7e
SC
30365/* Override any gcc2 internal prototype to avoid an error. */
30366#ifdef __cplusplus
30367extern "C"
30368{
30369#endif
30370/* We use char because int might match the return type of a gcc2
30371 builtin and then its argument prototype would still apply. */
30372char $ac_func ();
30373/* The GNU C library defines this for functions which it implements
30374 to always fail with ENOSYS. Some functions are actually named
30375 something starting with __ and the normal name is an alias. */
30376#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30377choke me
30378#else
30379char (*f) () = $ac_func;
30380#endif
30381#ifdef __cplusplus
30382}
30383#endif
30384
30385int
30386main ()
30387{
30388return f != $ac_func;
30389 ;
30390 return 0;
30391}
30392_ACEOF
30393rm -f conftest.$ac_objext conftest$ac_exeext
30394if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30395 (eval $ac_link) 2>conftest.er1
a848cd7e 30396 ac_status=$?
ac1cb8d3
VS
30397 grep -v '^ *+' conftest.er1 >conftest.err
30398 rm -f conftest.er1
30399 cat conftest.err >&5
a848cd7e
SC
30400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30401 (exit $ac_status); } &&
ceec2216 30402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30404 (eval $ac_try) 2>&5
30405 ac_status=$?
30406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30407 (exit $ac_status); }; } &&
30408 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30410 (eval $ac_try) 2>&5
30411 ac_status=$?
30412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30413 (exit $ac_status); }; }; then
30414 eval "$as_ac_var=yes"
30415else
30416 echo "$as_me: failed program was:" >&5
30417sed 's/^/| /' conftest.$ac_ext >&5
30418
30419eval "$as_ac_var=no"
30420fi
ac1cb8d3
VS
30421rm -f conftest.err conftest.$ac_objext \
30422 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30423fi
30424echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30425echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30426if test `eval echo '${'$as_ac_var'}'` = yes; then
30427 cat >>confdefs.h <<_ACEOF
30428#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30429_ACEOF
30430 cat >>confdefs.h <<\_ACEOF
30431#define HAVE_USLEEP 1
30432_ACEOF
30433
30434else
30435 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
30436echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
30437
30438fi
30439done
30440
30441
30442
30443fi
30444
30445
30446
30447fi
30448done
30449
30450fi
30451
30452
30453
30454for ac_func in uname gethostname
30455do
30456as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30457echo "$as_me:$LINENO: checking for $ac_func" >&5
30458echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30459if eval "test \"\${$as_ac_var+set}\" = set"; then
30460 echo $ECHO_N "(cached) $ECHO_C" >&6
30461else
30462 cat >conftest.$ac_ext <<_ACEOF
30463/* confdefs.h. */
30464_ACEOF
30465cat confdefs.h >>conftest.$ac_ext
30466cat >>conftest.$ac_ext <<_ACEOF
30467/* end confdefs.h. */
ac1cb8d3
VS
30468/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30469 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30470#define $ac_func innocuous_$ac_func
30471
a848cd7e
SC
30472/* System header to define __stub macros and hopefully few prototypes,
30473 which can conflict with char $ac_func (); below.
30474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30475 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30476
a848cd7e
SC
30477#ifdef __STDC__
30478# include <limits.h>
30479#else
30480# include <assert.h>
30481#endif
ac1cb8d3
VS
30482
30483#undef $ac_func
30484
a848cd7e
SC
30485/* Override any gcc2 internal prototype to avoid an error. */
30486#ifdef __cplusplus
30487extern "C"
30488{
30489#endif
30490/* We use char because int might match the return type of a gcc2
30491 builtin and then its argument prototype would still apply. */
30492char $ac_func ();
30493/* The GNU C library defines this for functions which it implements
30494 to always fail with ENOSYS. Some functions are actually named
30495 something starting with __ and the normal name is an alias. */
30496#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30497choke me
30498#else
30499char (*f) () = $ac_func;
30500#endif
30501#ifdef __cplusplus
30502}
30503#endif
30504
30505int
30506main ()
30507{
30508return f != $ac_func;
30509 ;
30510 return 0;
30511}
30512_ACEOF
30513rm -f conftest.$ac_objext conftest$ac_exeext
30514if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30515 (eval $ac_link) 2>conftest.er1
a848cd7e 30516 ac_status=$?
ac1cb8d3
VS
30517 grep -v '^ *+' conftest.er1 >conftest.err
30518 rm -f conftest.er1
30519 cat conftest.err >&5
a848cd7e
SC
30520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30521 (exit $ac_status); } &&
ceec2216 30522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30524 (eval $ac_try) 2>&5
30525 ac_status=$?
30526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30527 (exit $ac_status); }; } &&
30528 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30530 (eval $ac_try) 2>&5
30531 ac_status=$?
30532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30533 (exit $ac_status); }; }; then
30534 eval "$as_ac_var=yes"
30535else
30536 echo "$as_me: failed program was:" >&5
30537sed 's/^/| /' conftest.$ac_ext >&5
30538
30539eval "$as_ac_var=no"
30540fi
ac1cb8d3
VS
30541rm -f conftest.err conftest.$ac_objext \
30542 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30543fi
30544echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30545echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30546if test `eval echo '${'$as_ac_var'}'` = yes; then
30547 cat >>confdefs.h <<_ACEOF
30548#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30549_ACEOF
30550 break
30551fi
30552done
30553
30554
30555
30556
30557ac_ext=cc
30558ac_cpp='$CXXCPP $CPPFLAGS'
30559ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30560ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30561ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30562
30563
30564
30565for ac_func in strtok_r
30566do
30567as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30568echo "$as_me:$LINENO: checking for $ac_func" >&5
30569echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30570if eval "test \"\${$as_ac_var+set}\" = set"; then
30571 echo $ECHO_N "(cached) $ECHO_C" >&6
30572else
30573 cat >conftest.$ac_ext <<_ACEOF
30574/* confdefs.h. */
30575_ACEOF
30576cat confdefs.h >>conftest.$ac_ext
30577cat >>conftest.$ac_ext <<_ACEOF
30578/* end confdefs.h. */
ac1cb8d3
VS
30579/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30580 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30581#define $ac_func innocuous_$ac_func
30582
a848cd7e
SC
30583/* System header to define __stub macros and hopefully few prototypes,
30584 which can conflict with char $ac_func (); below.
30585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30586 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30587
a848cd7e
SC
30588#ifdef __STDC__
30589# include <limits.h>
30590#else
30591# include <assert.h>
30592#endif
ac1cb8d3
VS
30593
30594#undef $ac_func
30595
a848cd7e
SC
30596/* Override any gcc2 internal prototype to avoid an error. */
30597#ifdef __cplusplus
30598extern "C"
30599{
30600#endif
30601/* We use char because int might match the return type of a gcc2
30602 builtin and then its argument prototype would still apply. */
30603char $ac_func ();
30604/* The GNU C library defines this for functions which it implements
30605 to always fail with ENOSYS. Some functions are actually named
30606 something starting with __ and the normal name is an alias. */
30607#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30608choke me
30609#else
30610char (*f) () = $ac_func;
30611#endif
30612#ifdef __cplusplus
30613}
30614#endif
30615
30616int
30617main ()
30618{
30619return f != $ac_func;
30620 ;
30621 return 0;
30622}
30623_ACEOF
30624rm -f conftest.$ac_objext conftest$ac_exeext
30625if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30626 (eval $ac_link) 2>conftest.er1
a848cd7e 30627 ac_status=$?
ac1cb8d3
VS
30628 grep -v '^ *+' conftest.er1 >conftest.err
30629 rm -f conftest.er1
30630 cat conftest.err >&5
a848cd7e
SC
30631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30632 (exit $ac_status); } &&
ceec2216 30633 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30635 (eval $ac_try) 2>&5
30636 ac_status=$?
30637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30638 (exit $ac_status); }; } &&
30639 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
30645 eval "$as_ac_var=yes"
30646else
30647 echo "$as_me: failed program was:" >&5
30648sed 's/^/| /' conftest.$ac_ext >&5
30649
30650eval "$as_ac_var=no"
30651fi
ac1cb8d3
VS
30652rm -f conftest.err conftest.$ac_objext \
30653 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30654fi
30655echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30656echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30657if test `eval echo '${'$as_ac_var'}'` = yes; then
30658 cat >>confdefs.h <<_ACEOF
30659#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30660_ACEOF
30661
30662fi
30663done
30664
30665
30666ac_ext=c
30667ac_cpp='$CPP $CPPFLAGS'
30668ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30669ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30670ac_compiler_gnu=$ac_cv_c_compiler_gnu
30671
30672
30673INET_LINK=
30674
30675for ac_func in inet_addr
30676do
30677as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30678echo "$as_me:$LINENO: checking for $ac_func" >&5
30679echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30680if eval "test \"\${$as_ac_var+set}\" = set"; then
30681 echo $ECHO_N "(cached) $ECHO_C" >&6
30682else
30683 cat >conftest.$ac_ext <<_ACEOF
30684/* confdefs.h. */
30685_ACEOF
30686cat confdefs.h >>conftest.$ac_ext
30687cat >>conftest.$ac_ext <<_ACEOF
30688/* end confdefs.h. */
ac1cb8d3
VS
30689/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30690 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30691#define $ac_func innocuous_$ac_func
30692
a848cd7e
SC
30693/* System header to define __stub macros and hopefully few prototypes,
30694 which can conflict with char $ac_func (); below.
30695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30696 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30697
a848cd7e
SC
30698#ifdef __STDC__
30699# include <limits.h>
30700#else
30701# include <assert.h>
30702#endif
ac1cb8d3
VS
30703
30704#undef $ac_func
30705
a848cd7e
SC
30706/* Override any gcc2 internal prototype to avoid an error. */
30707#ifdef __cplusplus
30708extern "C"
30709{
30710#endif
30711/* We use char because int might match the return type of a gcc2
30712 builtin and then its argument prototype would still apply. */
30713char $ac_func ();
30714/* The GNU C library defines this for functions which it implements
30715 to always fail with ENOSYS. Some functions are actually named
30716 something starting with __ and the normal name is an alias. */
30717#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30718choke me
30719#else
30720char (*f) () = $ac_func;
30721#endif
30722#ifdef __cplusplus
30723}
30724#endif
30725
30726int
30727main ()
30728{
30729return f != $ac_func;
30730 ;
30731 return 0;
30732}
30733_ACEOF
30734rm -f conftest.$ac_objext conftest$ac_exeext
30735if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30736 (eval $ac_link) 2>conftest.er1
a848cd7e 30737 ac_status=$?
ac1cb8d3
VS
30738 grep -v '^ *+' conftest.er1 >conftest.err
30739 rm -f conftest.er1
30740 cat conftest.err >&5
a848cd7e
SC
30741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30742 (exit $ac_status); } &&
ceec2216 30743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30745 (eval $ac_try) 2>&5
30746 ac_status=$?
30747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30748 (exit $ac_status); }; } &&
30749 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30751 (eval $ac_try) 2>&5
30752 ac_status=$?
30753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30754 (exit $ac_status); }; }; then
30755 eval "$as_ac_var=yes"
30756else
30757 echo "$as_me: failed program was:" >&5
30758sed 's/^/| /' conftest.$ac_ext >&5
30759
30760eval "$as_ac_var=no"
30761fi
ac1cb8d3
VS
30762rm -f conftest.err conftest.$ac_objext \
30763 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30764fi
30765echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30766echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30767if test `eval echo '${'$as_ac_var'}'` = yes; then
30768 cat >>confdefs.h <<_ACEOF
30769#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30770_ACEOF
30771 cat >>confdefs.h <<\_ACEOF
30772#define HAVE_INET_ADDR 1
30773_ACEOF
30774
30775else
30776
30777 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
30778echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
30779if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
30780 echo $ECHO_N "(cached) $ECHO_C" >&6
30781else
30782 ac_check_lib_save_LIBS=$LIBS
30783LIBS="-lnsl $LIBS"
30784cat >conftest.$ac_ext <<_ACEOF
30785/* confdefs.h. */
30786_ACEOF
30787cat confdefs.h >>conftest.$ac_ext
30788cat >>conftest.$ac_ext <<_ACEOF
30789/* end confdefs.h. */
30790
30791/* Override any gcc2 internal prototype to avoid an error. */
30792#ifdef __cplusplus
30793extern "C"
30794#endif
30795/* We use char because int might match the return type of a gcc2
30796 builtin and then its argument prototype would still apply. */
30797char inet_addr ();
30798int
30799main ()
30800{
30801inet_addr ();
30802 ;
30803 return 0;
30804}
30805_ACEOF
30806rm -f conftest.$ac_objext conftest$ac_exeext
30807if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30808 (eval $ac_link) 2>conftest.er1
a848cd7e 30809 ac_status=$?
ac1cb8d3
VS
30810 grep -v '^ *+' conftest.er1 >conftest.err
30811 rm -f conftest.er1
30812 cat conftest.err >&5
a848cd7e
SC
30813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30814 (exit $ac_status); } &&
ceec2216 30815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30817 (eval $ac_try) 2>&5
30818 ac_status=$?
30819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30820 (exit $ac_status); }; } &&
30821 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30823 (eval $ac_try) 2>&5
30824 ac_status=$?
30825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30826 (exit $ac_status); }; }; then
30827 ac_cv_lib_nsl_inet_addr=yes
30828else
30829 echo "$as_me: failed program was:" >&5
30830sed 's/^/| /' conftest.$ac_ext >&5
30831
30832ac_cv_lib_nsl_inet_addr=no
30833fi
ac1cb8d3
VS
30834rm -f conftest.err conftest.$ac_objext \
30835 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30836LIBS=$ac_check_lib_save_LIBS
30837fi
30838echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
30839echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
30840if test $ac_cv_lib_nsl_inet_addr = yes; then
30841 INET_LINK="nsl"
30842else
30843
30844 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
30845echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
30846if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
30847 echo $ECHO_N "(cached) $ECHO_C" >&6
30848else
30849 ac_check_lib_save_LIBS=$LIBS
30850LIBS="-lresolv $LIBS"
30851cat >conftest.$ac_ext <<_ACEOF
30852/* confdefs.h. */
30853_ACEOF
30854cat confdefs.h >>conftest.$ac_ext
30855cat >>conftest.$ac_ext <<_ACEOF
30856/* end confdefs.h. */
30857
30858/* Override any gcc2 internal prototype to avoid an error. */
30859#ifdef __cplusplus
30860extern "C"
30861#endif
30862/* We use char because int might match the return type of a gcc2
30863 builtin and then its argument prototype would still apply. */
30864char inet_addr ();
30865int
30866main ()
30867{
30868inet_addr ();
30869 ;
30870 return 0;
30871}
30872_ACEOF
30873rm -f conftest.$ac_objext conftest$ac_exeext
30874if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30875 (eval $ac_link) 2>conftest.er1
a848cd7e 30876 ac_status=$?
ac1cb8d3
VS
30877 grep -v '^ *+' conftest.er1 >conftest.err
30878 rm -f conftest.er1
30879 cat conftest.err >&5
a848cd7e
SC
30880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30881 (exit $ac_status); } &&
ceec2216 30882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30884 (eval $ac_try) 2>&5
30885 ac_status=$?
30886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30887 (exit $ac_status); }; } &&
30888 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30890 (eval $ac_try) 2>&5
30891 ac_status=$?
30892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30893 (exit $ac_status); }; }; then
30894 ac_cv_lib_resolv_inet_addr=yes
30895else
30896 echo "$as_me: failed program was:" >&5
30897sed 's/^/| /' conftest.$ac_ext >&5
30898
30899ac_cv_lib_resolv_inet_addr=no
30900fi
ac1cb8d3
VS
30901rm -f conftest.err conftest.$ac_objext \
30902 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30903LIBS=$ac_check_lib_save_LIBS
30904fi
30905echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
30906echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
30907if test $ac_cv_lib_resolv_inet_addr = yes; then
30908 INET_LINK="resolv"
30909else
30910
30911 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
30912echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
30913if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
30914 echo $ECHO_N "(cached) $ECHO_C" >&6
30915else
30916 ac_check_lib_save_LIBS=$LIBS
30917LIBS="-lsocket $LIBS"
30918cat >conftest.$ac_ext <<_ACEOF
30919/* confdefs.h. */
30920_ACEOF
30921cat confdefs.h >>conftest.$ac_ext
30922cat >>conftest.$ac_ext <<_ACEOF
30923/* end confdefs.h. */
30924
30925/* Override any gcc2 internal prototype to avoid an error. */
30926#ifdef __cplusplus
30927extern "C"
30928#endif
30929/* We use char because int might match the return type of a gcc2
30930 builtin and then its argument prototype would still apply. */
30931char inet_addr ();
30932int
30933main ()
30934{
30935inet_addr ();
30936 ;
30937 return 0;
30938}
30939_ACEOF
30940rm -f conftest.$ac_objext conftest$ac_exeext
30941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30942 (eval $ac_link) 2>conftest.er1
a848cd7e 30943 ac_status=$?
ac1cb8d3
VS
30944 grep -v '^ *+' conftest.er1 >conftest.err
30945 rm -f conftest.er1
30946 cat conftest.err >&5
a848cd7e
SC
30947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30948 (exit $ac_status); } &&
ceec2216 30949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30951 (eval $ac_try) 2>&5
30952 ac_status=$?
30953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30954 (exit $ac_status); }; } &&
30955 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30957 (eval $ac_try) 2>&5
30958 ac_status=$?
30959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30960 (exit $ac_status); }; }; then
30961 ac_cv_lib_socket_inet_addr=yes
30962else
30963 echo "$as_me: failed program was:" >&5
30964sed 's/^/| /' conftest.$ac_ext >&5
30965
30966ac_cv_lib_socket_inet_addr=no
30967fi
ac1cb8d3
VS
30968rm -f conftest.err conftest.$ac_objext \
30969 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30970LIBS=$ac_check_lib_save_LIBS
30971fi
30972echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
30973echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
30974if test $ac_cv_lib_socket_inet_addr = yes; then
30975 INET_LINK="socket"
30976
30977fi
30978
30979
30980
30981fi
30982
30983
30984
30985fi
30986
30987
30988
30989fi
30990done
30991
30992
30993
30994for ac_func in inet_aton
30995do
30996as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30997echo "$as_me:$LINENO: checking for $ac_func" >&5
30998echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30999if eval "test \"\${$as_ac_var+set}\" = set"; then
31000 echo $ECHO_N "(cached) $ECHO_C" >&6
31001else
31002 cat >conftest.$ac_ext <<_ACEOF
31003/* confdefs.h. */
31004_ACEOF
31005cat confdefs.h >>conftest.$ac_ext
31006cat >>conftest.$ac_ext <<_ACEOF
31007/* end confdefs.h. */
ac1cb8d3
VS
31008/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31009 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31010#define $ac_func innocuous_$ac_func
31011
a848cd7e
SC
31012/* System header to define __stub macros and hopefully few prototypes,
31013 which can conflict with char $ac_func (); below.
31014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31015 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31016
a848cd7e
SC
31017#ifdef __STDC__
31018# include <limits.h>
31019#else
31020# include <assert.h>
31021#endif
ac1cb8d3
VS
31022
31023#undef $ac_func
31024
a848cd7e
SC
31025/* Override any gcc2 internal prototype to avoid an error. */
31026#ifdef __cplusplus
31027extern "C"
31028{
31029#endif
31030/* We use char because int might match the return type of a gcc2
31031 builtin and then its argument prototype would still apply. */
31032char $ac_func ();
31033/* The GNU C library defines this for functions which it implements
31034 to always fail with ENOSYS. Some functions are actually named
31035 something starting with __ and the normal name is an alias. */
31036#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31037choke me
31038#else
31039char (*f) () = $ac_func;
31040#endif
31041#ifdef __cplusplus
31042}
31043#endif
31044
31045int
31046main ()
31047{
31048return f != $ac_func;
31049 ;
31050 return 0;
31051}
31052_ACEOF
31053rm -f conftest.$ac_objext conftest$ac_exeext
31054if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31055 (eval $ac_link) 2>conftest.er1
a848cd7e 31056 ac_status=$?
ac1cb8d3
VS
31057 grep -v '^ *+' conftest.er1 >conftest.err
31058 rm -f conftest.er1
31059 cat conftest.err >&5
a848cd7e
SC
31060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31061 (exit $ac_status); } &&
ceec2216 31062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
31068 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31070 (eval $ac_try) 2>&5
31071 ac_status=$?
31072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31073 (exit $ac_status); }; }; then
31074 eval "$as_ac_var=yes"
31075else
31076 echo "$as_me: failed program was:" >&5
31077sed 's/^/| /' conftest.$ac_ext >&5
31078
31079eval "$as_ac_var=no"
31080fi
ac1cb8d3
VS
31081rm -f conftest.err conftest.$ac_objext \
31082 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31083fi
31084echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31085echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31086if test `eval echo '${'$as_ac_var'}'` = yes; then
31087 cat >>confdefs.h <<_ACEOF
31088#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31089_ACEOF
31090 cat >>confdefs.h <<\_ACEOF
31091#define HAVE_INET_ATON 1
31092_ACEOF
31093
31094else
31095
31096 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
31097echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
31098echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
31099if eval "test \"\${$as_ac_Lib+set}\" = set"; then
31100 echo $ECHO_N "(cached) $ECHO_C" >&6
31101else
31102 ac_check_lib_save_LIBS=$LIBS
31103LIBS="-l$INET_LINK $LIBS"
31104cat >conftest.$ac_ext <<_ACEOF
31105/* confdefs.h. */
31106_ACEOF
31107cat confdefs.h >>conftest.$ac_ext
31108cat >>conftest.$ac_ext <<_ACEOF
31109/* end confdefs.h. */
31110
31111/* Override any gcc2 internal prototype to avoid an error. */
31112#ifdef __cplusplus
31113extern "C"
31114#endif
31115/* We use char because int might match the return type of a gcc2
31116 builtin and then its argument prototype would still apply. */
31117char inet_aton ();
31118int
31119main ()
31120{
31121inet_aton ();
31122 ;
31123 return 0;
31124}
31125_ACEOF
31126rm -f conftest.$ac_objext conftest$ac_exeext
31127if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31128 (eval $ac_link) 2>conftest.er1
a848cd7e 31129 ac_status=$?
ac1cb8d3
VS
31130 grep -v '^ *+' conftest.er1 >conftest.err
31131 rm -f conftest.er1
31132 cat conftest.err >&5
a848cd7e
SC
31133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31134 (exit $ac_status); } &&
ceec2216 31135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31137 (eval $ac_try) 2>&5
31138 ac_status=$?
31139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31140 (exit $ac_status); }; } &&
31141 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31143 (eval $ac_try) 2>&5
31144 ac_status=$?
31145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31146 (exit $ac_status); }; }; then
31147 eval "$as_ac_Lib=yes"
31148else
31149 echo "$as_me: failed program was:" >&5
31150sed 's/^/| /' conftest.$ac_ext >&5
31151
31152eval "$as_ac_Lib=no"
31153fi
ac1cb8d3
VS
31154rm -f conftest.err conftest.$ac_objext \
31155 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31156LIBS=$ac_check_lib_save_LIBS
31157fi
31158echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
31159echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
31160if test `eval echo '${'$as_ac_Lib'}'` = yes; then
31161 cat >>confdefs.h <<\_ACEOF
31162#define HAVE_INET_ATON 1
31163_ACEOF
31164
31165fi
31166
31167
31168fi
31169done
31170
31171
31172if test "x$INET_LINK" != "x"; then
31173 cat >>confdefs.h <<\_ACEOF
31174#define HAVE_INET_ADDR 1
31175_ACEOF
31176
31177 INET_LINK=" -l$INET_LINK"
31178fi
31179
31180fi
31181
31182
31183
31184EXTRALIBS_ESD=
31185echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
31186echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
31187if test "${ac_cv_lib_esd_esd_close+set}" = set; then
31188 echo $ECHO_N "(cached) $ECHO_C" >&6
31189else
31190 ac_check_lib_save_LIBS=$LIBS
31191LIBS="-lesd $LIBS"
31192cat >conftest.$ac_ext <<_ACEOF
31193/* confdefs.h. */
31194_ACEOF
31195cat confdefs.h >>conftest.$ac_ext
31196cat >>conftest.$ac_ext <<_ACEOF
31197/* end confdefs.h. */
31198
31199/* Override any gcc2 internal prototype to avoid an error. */
31200#ifdef __cplusplus
31201extern "C"
31202#endif
31203/* We use char because int might match the return type of a gcc2
31204 builtin and then its argument prototype would still apply. */
31205char esd_close ();
31206int
31207main ()
31208{
31209esd_close ();
31210 ;
31211 return 0;
31212}
31213_ACEOF
31214rm -f conftest.$ac_objext conftest$ac_exeext
31215if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31216 (eval $ac_link) 2>conftest.er1
a848cd7e 31217 ac_status=$?
ac1cb8d3
VS
31218 grep -v '^ *+' conftest.er1 >conftest.err
31219 rm -f conftest.er1
31220 cat conftest.err >&5
a848cd7e
SC
31221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31222 (exit $ac_status); } &&
ceec2216 31223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31225 (eval $ac_try) 2>&5
31226 ac_status=$?
31227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31228 (exit $ac_status); }; } &&
31229 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31231 (eval $ac_try) 2>&5
31232 ac_status=$?
31233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31234 (exit $ac_status); }; }; then
31235 ac_cv_lib_esd_esd_close=yes
31236else
31237 echo "$as_me: failed program was:" >&5
31238sed 's/^/| /' conftest.$ac_ext >&5
31239
31240ac_cv_lib_esd_esd_close=no
31241fi
ac1cb8d3
VS
31242rm -f conftest.err conftest.$ac_objext \
31243 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31244LIBS=$ac_check_lib_save_LIBS
31245fi
31246echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
31247echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
31248if test $ac_cv_lib_esd_esd_close = yes; then
31249
31250
31251for ac_header in esd.h
31252do
31253as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31254if eval "test \"\${$as_ac_Header+set}\" = set"; then
31255 echo "$as_me:$LINENO: checking for $ac_header" >&5
31256echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31257if eval "test \"\${$as_ac_Header+set}\" = set"; then
31258 echo $ECHO_N "(cached) $ECHO_C" >&6
31259fi
31260echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31261echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31262else
31263 # Is the header compilable?
31264echo "$as_me:$LINENO: checking $ac_header usability" >&5
31265echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31266cat >conftest.$ac_ext <<_ACEOF
31267/* confdefs.h. */
31268_ACEOF
31269cat confdefs.h >>conftest.$ac_ext
31270cat >>conftest.$ac_ext <<_ACEOF
31271/* end confdefs.h. */
31272$ac_includes_default
31273#include <$ac_header>
31274_ACEOF
31275rm -f conftest.$ac_objext
31276if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31277 (eval $ac_compile) 2>conftest.er1
a848cd7e 31278 ac_status=$?
ac1cb8d3
VS
31279 grep -v '^ *+' conftest.er1 >conftest.err
31280 rm -f conftest.er1
31281 cat conftest.err >&5
a848cd7e
SC
31282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31283 (exit $ac_status); } &&
ceec2216 31284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31286 (eval $ac_try) 2>&5
31287 ac_status=$?
31288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31289 (exit $ac_status); }; } &&
31290 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31292 (eval $ac_try) 2>&5
31293 ac_status=$?
31294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31295 (exit $ac_status); }; }; then
31296 ac_header_compiler=yes
31297else
31298 echo "$as_me: failed program was:" >&5
31299sed 's/^/| /' conftest.$ac_ext >&5
31300
31301ac_header_compiler=no
31302fi
ac1cb8d3 31303rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31304echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31305echo "${ECHO_T}$ac_header_compiler" >&6
31306
31307# Is the header present?
31308echo "$as_me:$LINENO: checking $ac_header presence" >&5
31309echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31310cat >conftest.$ac_ext <<_ACEOF
31311/* confdefs.h. */
31312_ACEOF
31313cat confdefs.h >>conftest.$ac_ext
31314cat >>conftest.$ac_ext <<_ACEOF
31315/* end confdefs.h. */
31316#include <$ac_header>
31317_ACEOF
31318if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31319 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31320 ac_status=$?
31321 grep -v '^ *+' conftest.er1 >conftest.err
31322 rm -f conftest.er1
31323 cat conftest.err >&5
31324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31325 (exit $ac_status); } >/dev/null; then
31326 if test -s conftest.err; then
31327 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 31328 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
31329 else
31330 ac_cpp_err=
31331 fi
31332else
31333 ac_cpp_err=yes
31334fi
31335if test -z "$ac_cpp_err"; then
31336 ac_header_preproc=yes
31337else
31338 echo "$as_me: failed program was:" >&5
31339sed 's/^/| /' conftest.$ac_ext >&5
31340
31341 ac_header_preproc=no
31342fi
31343rm -f conftest.err conftest.$ac_ext
31344echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31345echo "${ECHO_T}$ac_header_preproc" >&6
31346
31347# So? What about this header?
ac1cb8d3
VS
31348case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31349 yes:no: )
a848cd7e
SC
31350 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31351echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
31352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31353echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31354 ac_header_preproc=yes
a848cd7e 31355 ;;
ac1cb8d3 31356 no:yes:* )
a848cd7e
SC
31357 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31358echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
31359 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31360echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31361 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31362echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31363 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31364echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
31365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31366echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
31367 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31368echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
31369 (
31370 cat <<\_ASBOX
ac1cb8d3
VS
31371## ----------------------------------------- ##
31372## Report this to wx-dev@lists.wxwidgets.org ##
31373## ----------------------------------------- ##
a848cd7e
SC
31374_ASBOX
31375 ) |
31376 sed "s/^/$as_me: WARNING: /" >&2
31377 ;;
31378esac
31379echo "$as_me:$LINENO: checking for $ac_header" >&5
31380echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31381if eval "test \"\${$as_ac_Header+set}\" = set"; then
31382 echo $ECHO_N "(cached) $ECHO_C" >&6
31383else
ac1cb8d3 31384 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
31385fi
31386echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31387echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31388
31389fi
31390if test `eval echo '${'$as_ac_Header'}'` = yes; then
31391 cat >>confdefs.h <<_ACEOF
31392#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31393_ACEOF
31394
31395 EXTRALIBS_ESD="-lesd"
31396
31397fi
31398
31399done
31400
31401
31402fi
31403
31404
31405
31406echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
31407echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
31408cat >conftest.$ac_ext <<_ACEOF
31409/* confdefs.h. */
31410_ACEOF
31411cat confdefs.h >>conftest.$ac_ext
31412cat >>conftest.$ac_ext <<_ACEOF
31413/* end confdefs.h. */
31414#ifdef __linux__
31415 #include <linux/cdrom.h>
31416 #else
31417 /* For Solaris */
31418 #include <sys/cdio.h>
31419 #endif
31420
31421int
31422main ()
31423{
31424struct cdrom_tocentry entry, old_entry;
31425 ;
31426 return 0;
31427}
31428_ACEOF
31429rm -f conftest.$ac_objext
31430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31431 (eval $ac_compile) 2>conftest.er1
a848cd7e 31432 ac_status=$?
ac1cb8d3
VS
31433 grep -v '^ *+' conftest.er1 >conftest.err
31434 rm -f conftest.er1
31435 cat conftest.err >&5
a848cd7e
SC
31436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31437 (exit $ac_status); } &&
ceec2216 31438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31440 (eval $ac_try) 2>&5
31441 ac_status=$?
31442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31443 (exit $ac_status); }; } &&
31444 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31446 (eval $ac_try) 2>&5
31447 ac_status=$?
31448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31449 (exit $ac_status); }; }; then
31450 echo "$as_me:$LINENO: result: yes" >&5
31451echo "${ECHO_T}yes" >&6
31452 cat >>confdefs.h <<\_ACEOF
31453#define HAVE_KNOWN_CDROM_INTERFACE 1
31454_ACEOF
31455
31456else
31457 echo "$as_me: failed program was:" >&5
31458sed 's/^/| /' conftest.$ac_ext >&5
31459
31460echo "$as_me:$LINENO: result: no" >&5
31461echo "${ECHO_T}no" >&6
31462fi
ac1cb8d3 31463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31464
31465
31466cat >confcache <<\_ACEOF
31467# This file is a shell script that caches the results of configure
31468# tests run on this system so they can be shared between configure
31469# scripts and configure runs, see configure's option --config-cache.
31470# It is not useful on other systems. If it contains results you don't
31471# want to keep, you may remove or edit it.
31472#
31473# config.status only pays attention to the cache file if you give it
31474# the --recheck option to rerun configure.
31475#
31476# `ac_cv_env_foo' variables (set or unset) will be overridden when
31477# loading this file, other *unset* `ac_cv_foo' will be assigned the
31478# following values.
31479
31480_ACEOF
31481
31482# The following way of writing the cache mishandles newlines in values,
31483# but we know of no workaround that is simple, portable, and efficient.
31484# So, don't put newlines in cache variables' values.
31485# Ultrix sh set writes to stderr and can't be redirected directly,
31486# and sets the high bit in the cache file unless we assign to the vars.
31487{
31488 (set) 2>&1 |
31489 case `(ac_space=' '; set | grep ac_space) 2>&1` in
31490 *ac_space=\ *)
31491 # `set' does not quote correctly, so add quotes (double-quote
31492 # substitution turns \\\\ into \\, and sed turns \\ into \).
31493 sed -n \
ac1cb8d3
VS
31494 "s/'/'\\\\''/g;
31495 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
31496 ;;
31497 *)
31498 # `set' quotes correctly as required by POSIX, so do not add quotes.
31499 sed -n \
ac1cb8d3 31500 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
31501 ;;
31502 esac;
31503} |
31504 sed '
31505 t clear
31506 : clear
31507 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31508 t end
31509 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31510 : end' >>confcache
31511if diff $cache_file confcache >/dev/null 2>&1; then :; else
31512 if test -w $cache_file; then
31513 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
31514 cat confcache >$cache_file
31515 else
31516 echo "not updating unwritable cache $cache_file"
31517 fi
31518fi
31519rm -f confcache
31520
31521
31522CPP_MT_FLAG=
31523if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
31524
31525
31526 THREADS_LINK=
31527 THREADS_CFLAGS=
31528
31529 if test "$wxUSE_THREADS" = "yes" ; then
31530 if test "$USE_BEOS" = 1; then
31531 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
31532echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
31533 wxUSE_THREADS="no"
31534 fi
31535 fi
31536
31537 if test "$wxUSE_THREADS" = "yes" ; then
31538
31539
31540 THREAD_OPTS="-pthread"
31541 case "${host}" in
31542 *-*-solaris2* | *-*-sunos4* )
31543 if test "x$GCC" = "xyes"; then
31544 THREAD_OPTS="-pthreads $THREAD_OPTS"
31545 else
31546 THREAD_OPTS="-mt $THREAD_OPTS"
31547 fi
31548 ;;
31549 *-*-freebsd*)
31550 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
31551 ;;
31552 *-*-darwin* | *-*-cygwin* )
31553 THREAD_OPTS=""
31554 ;;
31555 *-*-aix*)
31556 THREAD_OPTS="pthreads"
31557 ;;
31558 *-hp-hpux* )
31559 if test "x$GCC" != "xyes"; then
31560 THREAD_OPTS=""
31561 fi
31562 ;;
31563
31564 *-*-irix* )
31565 if test "x$GCC" = "xyes"; then
31566 THREAD_OPTS=""
31567 fi
31568 ;;
31569
31570 *-*-*UnixWare*)
31571 if test "x$GCC" != "xyes"; then
31572 THREAD_OPTS="-Ethread"
31573 fi
31574 ;;
31575 esac
31576
31577 THREAD_OPTS="$THREAD_OPTS pthread none"
31578
31579 THREADS_OK=no
31580 for flag in $THREAD_OPTS; do
31581 case $flag in
31582 none)
31583 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
31584echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
31585 ;;
31586
31587 -*)
31588 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
31589echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
31590 THREADS_CFLAGS="$flag"
31591 ;;
31592
31593 *)
31594 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
31595echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
31596 THREADS_LINK="-l$flag"
31597 ;;
31598 esac
31599
31600 save_LIBS="$LIBS"
31601 save_CFLAGS="$CFLAGS"
31602 LIBS="$THREADS_LINK $LIBS"
31603 CFLAGS="$THREADS_CFLAGS $CFLAGS"
31604
31605 cat >conftest.$ac_ext <<_ACEOF
31606/* confdefs.h. */
31607_ACEOF
31608cat confdefs.h >>conftest.$ac_ext
31609cat >>conftest.$ac_ext <<_ACEOF
31610/* end confdefs.h. */
31611#include <pthread.h>
31612int
31613main ()
31614{
31615pthread_create(0,0,0,0);
31616 ;
31617 return 0;
31618}
31619_ACEOF
31620rm -f conftest.$ac_objext conftest$ac_exeext
31621if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31622 (eval $ac_link) 2>conftest.er1
a848cd7e 31623 ac_status=$?
ac1cb8d3
VS
31624 grep -v '^ *+' conftest.er1 >conftest.err
31625 rm -f conftest.er1
31626 cat conftest.err >&5
a848cd7e
SC
31627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31628 (exit $ac_status); } &&
ceec2216 31629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31631 (eval $ac_try) 2>&5
31632 ac_status=$?
31633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31634 (exit $ac_status); }; } &&
31635 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31637 (eval $ac_try) 2>&5
31638 ac_status=$?
31639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31640 (exit $ac_status); }; }; then
31641 THREADS_OK=yes
31642else
31643 echo "$as_me: failed program was:" >&5
31644sed 's/^/| /' conftest.$ac_ext >&5
31645
31646fi
ac1cb8d3
VS
31647rm -f conftest.err conftest.$ac_objext \
31648 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31649
31650 LIBS="$save_LIBS"
31651 CFLAGS="$save_CFLAGS"
31652
31653 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
31654echo "${ECHO_T}$THREADS_OK" >&6
31655 if test "x$THREADS_OK" = "xyes"; then
31656 break;
31657 fi
31658
31659 THREADS_LINK=""
31660 THREADS_CFLAGS=""
31661 done
31662
31663 if test "x$THREADS_OK" != "xyes"; then
31664 wxUSE_THREADS=no
31665 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
31666echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
31667 else
31668 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
31669 LIBS="$THREADS_LINK $LIBS"
31670
31671 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
31672echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
31673 flag=no
31674 case "${host}" in
31675 *-aix*)
31676 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
31677 flag="-D_THREAD_SAFE"
31678 ;;
31679 *-freebsd*)
31680 flag="-D_THREAD_SAFE"
31681 ;;
31682 *-hp-hpux* )
31683 flag="-D_REENTRANT"
31684 if test "x$GCC" != "xyes"; then
31685 flag="$flag -D_RWSTD_MULTI_THREAD"
473276a9
VS
31686
31687 LIBS="$LIBS -lcma"
a848cd7e
SC
31688 fi
31689 ;;
31690 *solaris* | alpha*-osf*)
31691 flag="-D_REENTRANT"
31692 ;;
31693 esac
31694 echo "$as_me:$LINENO: result: ${flag}" >&5
31695echo "${ECHO_T}${flag}" >&6
31696 if test "x$flag" != xno; then
31697 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
31698 fi
31699
31700 if test "x$THREADS_CFLAGS" != "x"; then
31701 CFLAGS="$CFLAGS $THREADS_CFLAGS"
31702 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
31703 fi
31704 fi
31705 fi
31706
31707 if test "$wxUSE_THREADS" = "yes" ; then
31708
31709for ac_func in thr_setconcurrency
31710do
31711as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31712echo "$as_me:$LINENO: checking for $ac_func" >&5
31713echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31714if eval "test \"\${$as_ac_var+set}\" = set"; then
31715 echo $ECHO_N "(cached) $ECHO_C" >&6
31716else
31717 cat >conftest.$ac_ext <<_ACEOF
31718/* confdefs.h. */
31719_ACEOF
31720cat confdefs.h >>conftest.$ac_ext
31721cat >>conftest.$ac_ext <<_ACEOF
31722/* end confdefs.h. */
ac1cb8d3
VS
31723/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31725#define $ac_func innocuous_$ac_func
31726
a848cd7e
SC
31727/* System header to define __stub macros and hopefully few prototypes,
31728 which can conflict with char $ac_func (); below.
31729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31730 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31731
a848cd7e
SC
31732#ifdef __STDC__
31733# include <limits.h>
31734#else
31735# include <assert.h>
31736#endif
ac1cb8d3
VS
31737
31738#undef $ac_func
31739
a848cd7e
SC
31740/* Override any gcc2 internal prototype to avoid an error. */
31741#ifdef __cplusplus
31742extern "C"
31743{
31744#endif
31745/* We use char because int might match the return type of a gcc2
31746 builtin and then its argument prototype would still apply. */
31747char $ac_func ();
31748/* The GNU C library defines this for functions which it implements
31749 to always fail with ENOSYS. Some functions are actually named
31750 something starting with __ and the normal name is an alias. */
31751#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31752choke me
31753#else
31754char (*f) () = $ac_func;
31755#endif
31756#ifdef __cplusplus
31757}
31758#endif
31759
31760int
31761main ()
31762{
31763return f != $ac_func;
31764 ;
31765 return 0;
31766}
31767_ACEOF
31768rm -f conftest.$ac_objext conftest$ac_exeext
31769if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31770 (eval $ac_link) 2>conftest.er1
a848cd7e 31771 ac_status=$?
ac1cb8d3
VS
31772 grep -v '^ *+' conftest.er1 >conftest.err
31773 rm -f conftest.er1
31774 cat conftest.err >&5
a848cd7e
SC
31775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31776 (exit $ac_status); } &&
ceec2216 31777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31779 (eval $ac_try) 2>&5
31780 ac_status=$?
31781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31782 (exit $ac_status); }; } &&
31783 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31785 (eval $ac_try) 2>&5
31786 ac_status=$?
31787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31788 (exit $ac_status); }; }; then
31789 eval "$as_ac_var=yes"
31790else
31791 echo "$as_me: failed program was:" >&5
31792sed 's/^/| /' conftest.$ac_ext >&5
31793
31794eval "$as_ac_var=no"
31795fi
ac1cb8d3
VS
31796rm -f conftest.err conftest.$ac_objext \
31797 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31798fi
31799echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31800echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31801if test `eval echo '${'$as_ac_var'}'` = yes; then
31802 cat >>confdefs.h <<_ACEOF
31803#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31804_ACEOF
31805
31806fi
31807done
31808
31809
31810
31811for ac_header in sched.h
31812do
31813as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31814if eval "test \"\${$as_ac_Header+set}\" = set"; then
31815 echo "$as_me:$LINENO: checking for $ac_header" >&5
31816echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31817if eval "test \"\${$as_ac_Header+set}\" = set"; then
31818 echo $ECHO_N "(cached) $ECHO_C" >&6
31819fi
31820echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31821echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31822else
31823 # Is the header compilable?
31824echo "$as_me:$LINENO: checking $ac_header usability" >&5
31825echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31826cat >conftest.$ac_ext <<_ACEOF
31827/* confdefs.h. */
31828_ACEOF
31829cat confdefs.h >>conftest.$ac_ext
31830cat >>conftest.$ac_ext <<_ACEOF
31831/* end confdefs.h. */
31832$ac_includes_default
31833#include <$ac_header>
31834_ACEOF
31835rm -f conftest.$ac_objext
31836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31837 (eval $ac_compile) 2>conftest.er1
a848cd7e 31838 ac_status=$?
ac1cb8d3
VS
31839 grep -v '^ *+' conftest.er1 >conftest.err
31840 rm -f conftest.er1
31841 cat conftest.err >&5
a848cd7e
SC
31842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31843 (exit $ac_status); } &&
ceec2216 31844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31846 (eval $ac_try) 2>&5
31847 ac_status=$?
31848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31849 (exit $ac_status); }; } &&
31850 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31852 (eval $ac_try) 2>&5
31853 ac_status=$?
31854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31855 (exit $ac_status); }; }; then
31856 ac_header_compiler=yes
31857else
31858 echo "$as_me: failed program was:" >&5
31859sed 's/^/| /' conftest.$ac_ext >&5
31860
31861ac_header_compiler=no
31862fi
ac1cb8d3 31863rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31864echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31865echo "${ECHO_T}$ac_header_compiler" >&6
31866
31867# Is the header present?
31868echo "$as_me:$LINENO: checking $ac_header presence" >&5
31869echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31870cat >conftest.$ac_ext <<_ACEOF
31871/* confdefs.h. */
31872_ACEOF
31873cat confdefs.h >>conftest.$ac_ext
31874cat >>conftest.$ac_ext <<_ACEOF
31875/* end confdefs.h. */
31876#include <$ac_header>
31877_ACEOF
31878if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31879 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31880 ac_status=$?
31881 grep -v '^ *+' conftest.er1 >conftest.err
31882 rm -f conftest.er1
31883 cat conftest.err >&5
31884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31885 (exit $ac_status); } >/dev/null; then
31886 if test -s conftest.err; then
31887 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 31888 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
31889 else
31890 ac_cpp_err=
31891 fi
31892else
31893 ac_cpp_err=yes
31894fi
31895if test -z "$ac_cpp_err"; then
31896 ac_header_preproc=yes
31897else
31898 echo "$as_me: failed program was:" >&5
31899sed 's/^/| /' conftest.$ac_ext >&5
31900
31901 ac_header_preproc=no
31902fi
31903rm -f conftest.err conftest.$ac_ext
31904echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31905echo "${ECHO_T}$ac_header_preproc" >&6
31906
31907# So? What about this header?
ac1cb8d3
VS
31908case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31909 yes:no: )
a848cd7e
SC
31910 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31911echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
31912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31913echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31914 ac_header_preproc=yes
a848cd7e 31915 ;;
ac1cb8d3 31916 no:yes:* )
a848cd7e
SC
31917 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31918echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
31919 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31920echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31921 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31922echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31923 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31924echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
31925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31926echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
31927 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31928echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
31929 (
31930 cat <<\_ASBOX
ac1cb8d3
VS
31931## ----------------------------------------- ##
31932## Report this to wx-dev@lists.wxwidgets.org ##
31933## ----------------------------------------- ##
a848cd7e
SC
31934_ASBOX
31935 ) |
31936 sed "s/^/$as_me: WARNING: /" >&2
31937 ;;
31938esac
31939echo "$as_me:$LINENO: checking for $ac_header" >&5
31940echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31941if eval "test \"\${$as_ac_Header+set}\" = set"; then
31942 echo $ECHO_N "(cached) $ECHO_C" >&6
31943else
ac1cb8d3 31944 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
31945fi
31946echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31947echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31948
31949fi
31950if test `eval echo '${'$as_ac_Header'}'` = yes; then
31951 cat >>confdefs.h <<_ACEOF
31952#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31953_ACEOF
31954
31955fi
31956
31957done
31958
31959 if test "$ac_cv_header_sched_h" = "yes"; then
31960 echo "$as_me:$LINENO: checking for sched_yield" >&5
31961echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
31962if test "${ac_cv_func_sched_yield+set}" = set; then
31963 echo $ECHO_N "(cached) $ECHO_C" >&6
31964else
31965 cat >conftest.$ac_ext <<_ACEOF
31966/* confdefs.h. */
31967_ACEOF
31968cat confdefs.h >>conftest.$ac_ext
31969cat >>conftest.$ac_ext <<_ACEOF
31970/* end confdefs.h. */
ac1cb8d3
VS
31971/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
31972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31973#define sched_yield innocuous_sched_yield
31974
a848cd7e
SC
31975/* System header to define __stub macros and hopefully few prototypes,
31976 which can conflict with char sched_yield (); below.
31977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31978 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31979
a848cd7e
SC
31980#ifdef __STDC__
31981# include <limits.h>
31982#else
31983# include <assert.h>
31984#endif
ac1cb8d3
VS
31985
31986#undef sched_yield
31987
a848cd7e
SC
31988/* Override any gcc2 internal prototype to avoid an error. */
31989#ifdef __cplusplus
31990extern "C"
31991{
31992#endif
31993/* We use char because int might match the return type of a gcc2
31994 builtin and then its argument prototype would still apply. */
31995char sched_yield ();
31996/* The GNU C library defines this for functions which it implements
31997 to always fail with ENOSYS. Some functions are actually named
31998 something starting with __ and the normal name is an alias. */
31999#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
32000choke me
32001#else
32002char (*f) () = sched_yield;
32003#endif
32004#ifdef __cplusplus
32005}
32006#endif
32007
32008int
32009main ()
32010{
32011return f != sched_yield;
32012 ;
32013 return 0;
32014}
32015_ACEOF
32016rm -f conftest.$ac_objext conftest$ac_exeext
32017if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32018 (eval $ac_link) 2>conftest.er1
a848cd7e 32019 ac_status=$?
ac1cb8d3
VS
32020 grep -v '^ *+' conftest.er1 >conftest.err
32021 rm -f conftest.er1
32022 cat conftest.err >&5
a848cd7e
SC
32023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32024 (exit $ac_status); } &&
ceec2216 32025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32027 (eval $ac_try) 2>&5
32028 ac_status=$?
32029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32030 (exit $ac_status); }; } &&
32031 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32033 (eval $ac_try) 2>&5
32034 ac_status=$?
32035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32036 (exit $ac_status); }; }; then
32037 ac_cv_func_sched_yield=yes
32038else
32039 echo "$as_me: failed program was:" >&5
32040sed 's/^/| /' conftest.$ac_ext >&5
32041
32042ac_cv_func_sched_yield=no
32043fi
ac1cb8d3
VS
32044rm -f conftest.err conftest.$ac_objext \
32045 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32046fi
32047echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
32048echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
32049if test $ac_cv_func_sched_yield = yes; then
32050 cat >>confdefs.h <<\_ACEOF
32051#define HAVE_SCHED_YIELD 1
32052_ACEOF
32053
32054else
32055
32056 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
32057echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
32058if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
32059 echo $ECHO_N "(cached) $ECHO_C" >&6
32060else
32061 ac_check_lib_save_LIBS=$LIBS
32062LIBS="-lposix4 $LIBS"
32063cat >conftest.$ac_ext <<_ACEOF
32064/* confdefs.h. */
32065_ACEOF
32066cat confdefs.h >>conftest.$ac_ext
32067cat >>conftest.$ac_ext <<_ACEOF
32068/* end confdefs.h. */
32069
32070/* Override any gcc2 internal prototype to avoid an error. */
32071#ifdef __cplusplus
32072extern "C"
32073#endif
32074/* We use char because int might match the return type of a gcc2
32075 builtin and then its argument prototype would still apply. */
32076char sched_yield ();
32077int
32078main ()
32079{
32080sched_yield ();
32081 ;
32082 return 0;
32083}
32084_ACEOF
32085rm -f conftest.$ac_objext conftest$ac_exeext
32086if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32087 (eval $ac_link) 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); } &&
ceec2216 32094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32096 (eval $ac_try) 2>&5
32097 ac_status=$?
32098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32099 (exit $ac_status); }; } &&
32100 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32102 (eval $ac_try) 2>&5
32103 ac_status=$?
32104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32105 (exit $ac_status); }; }; then
32106 ac_cv_lib_posix4_sched_yield=yes
32107else
32108 echo "$as_me: failed program was:" >&5
32109sed 's/^/| /' conftest.$ac_ext >&5
32110
32111ac_cv_lib_posix4_sched_yield=no
32112fi
ac1cb8d3
VS
32113rm -f conftest.err conftest.$ac_objext \
32114 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32115LIBS=$ac_check_lib_save_LIBS
32116fi
32117echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
32118echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
32119if test $ac_cv_lib_posix4_sched_yield = yes; then
32120 cat >>confdefs.h <<\_ACEOF
32121#define HAVE_SCHED_YIELD 1
32122_ACEOF
32123 POSIX4_LINK=" -lposix4"
32124else
32125 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
32126echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
32127
32128fi
32129
32130
32131
32132fi
32133
32134 fi
32135
32136 HAVE_PRIOR_FUNCS=0
32137 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
32138echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
32139if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
32140 echo $ECHO_N "(cached) $ECHO_C" >&6
32141else
32142 cat >conftest.$ac_ext <<_ACEOF
32143/* confdefs.h. */
32144_ACEOF
32145cat confdefs.h >>conftest.$ac_ext
32146cat >>conftest.$ac_ext <<_ACEOF
32147/* end confdefs.h. */
ac1cb8d3
VS
32148/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
32149 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32150#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
32151
a848cd7e
SC
32152/* System header to define __stub macros and hopefully few prototypes,
32153 which can conflict with char pthread_attr_getschedpolicy (); below.
32154 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32155 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32156
a848cd7e
SC
32157#ifdef __STDC__
32158# include <limits.h>
32159#else
32160# include <assert.h>
32161#endif
ac1cb8d3
VS
32162
32163#undef pthread_attr_getschedpolicy
32164
a848cd7e
SC
32165/* Override any gcc2 internal prototype to avoid an error. */
32166#ifdef __cplusplus
32167extern "C"
32168{
32169#endif
32170/* We use char because int might match the return type of a gcc2
32171 builtin and then its argument prototype would still apply. */
32172char pthread_attr_getschedpolicy ();
32173/* The GNU C library defines this for functions which it implements
32174 to always fail with ENOSYS. Some functions are actually named
32175 something starting with __ and the normal name is an alias. */
32176#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
32177choke me
32178#else
32179char (*f) () = pthread_attr_getschedpolicy;
32180#endif
32181#ifdef __cplusplus
32182}
32183#endif
32184
32185int
32186main ()
32187{
32188return f != pthread_attr_getschedpolicy;
32189 ;
32190 return 0;
32191}
32192_ACEOF
32193rm -f conftest.$ac_objext conftest$ac_exeext
32194if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32195 (eval $ac_link) 2>conftest.er1
a848cd7e 32196 ac_status=$?
ac1cb8d3
VS
32197 grep -v '^ *+' conftest.er1 >conftest.err
32198 rm -f conftest.er1
32199 cat conftest.err >&5
a848cd7e
SC
32200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32201 (exit $ac_status); } &&
ceec2216 32202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32204 (eval $ac_try) 2>&5
32205 ac_status=$?
32206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32207 (exit $ac_status); }; } &&
32208 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32210 (eval $ac_try) 2>&5
32211 ac_status=$?
32212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32213 (exit $ac_status); }; }; then
32214 ac_cv_func_pthread_attr_getschedpolicy=yes
32215else
32216 echo "$as_me: failed program was:" >&5
32217sed 's/^/| /' conftest.$ac_ext >&5
32218
32219ac_cv_func_pthread_attr_getschedpolicy=no
32220fi
ac1cb8d3
VS
32221rm -f conftest.err conftest.$ac_objext \
32222 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32223fi
32224echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
32225echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
32226if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
32227 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
32228echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
32229if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
32230 echo $ECHO_N "(cached) $ECHO_C" >&6
32231else
32232 cat >conftest.$ac_ext <<_ACEOF
32233/* confdefs.h. */
32234_ACEOF
32235cat confdefs.h >>conftest.$ac_ext
32236cat >>conftest.$ac_ext <<_ACEOF
32237/* end confdefs.h. */
ac1cb8d3
VS
32238/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
32239 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32240#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
32241
a848cd7e
SC
32242/* System header to define __stub macros and hopefully few prototypes,
32243 which can conflict with char pthread_attr_setschedparam (); below.
32244 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32245 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32246
a848cd7e
SC
32247#ifdef __STDC__
32248# include <limits.h>
32249#else
32250# include <assert.h>
32251#endif
ac1cb8d3
VS
32252
32253#undef pthread_attr_setschedparam
32254
a848cd7e
SC
32255/* Override any gcc2 internal prototype to avoid an error. */
32256#ifdef __cplusplus
32257extern "C"
32258{
32259#endif
32260/* We use char because int might match the return type of a gcc2
32261 builtin and then its argument prototype would still apply. */
32262char pthread_attr_setschedparam ();
32263/* The GNU C library defines this for functions which it implements
32264 to always fail with ENOSYS. Some functions are actually named
32265 something starting with __ and the normal name is an alias. */
32266#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
32267choke me
32268#else
32269char (*f) () = pthread_attr_setschedparam;
32270#endif
32271#ifdef __cplusplus
32272}
32273#endif
32274
32275int
32276main ()
32277{
32278return f != pthread_attr_setschedparam;
32279 ;
32280 return 0;
32281}
32282_ACEOF
32283rm -f conftest.$ac_objext conftest$ac_exeext
32284if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32285 (eval $ac_link) 2>conftest.er1
a848cd7e 32286 ac_status=$?
ac1cb8d3
VS
32287 grep -v '^ *+' conftest.er1 >conftest.err
32288 rm -f conftest.er1
32289 cat conftest.err >&5
a848cd7e
SC
32290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32291 (exit $ac_status); } &&
ceec2216 32292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32294 (eval $ac_try) 2>&5
32295 ac_status=$?
32296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32297 (exit $ac_status); }; } &&
32298 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32300 (eval $ac_try) 2>&5
32301 ac_status=$?
32302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32303 (exit $ac_status); }; }; then
32304 ac_cv_func_pthread_attr_setschedparam=yes
32305else
32306 echo "$as_me: failed program was:" >&5
32307sed 's/^/| /' conftest.$ac_ext >&5
32308
32309ac_cv_func_pthread_attr_setschedparam=no
32310fi
ac1cb8d3
VS
32311rm -f conftest.err conftest.$ac_objext \
32312 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32313fi
32314echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
32315echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
32316if test $ac_cv_func_pthread_attr_setschedparam = yes; then
32317 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
32318echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
32319if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
32320 echo $ECHO_N "(cached) $ECHO_C" >&6
32321else
32322 cat >conftest.$ac_ext <<_ACEOF
32323/* confdefs.h. */
32324_ACEOF
32325cat confdefs.h >>conftest.$ac_ext
32326cat >>conftest.$ac_ext <<_ACEOF
32327/* end confdefs.h. */
ac1cb8d3
VS
32328/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
32329 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32330#define sched_get_priority_max innocuous_sched_get_priority_max
32331
a848cd7e
SC
32332/* System header to define __stub macros and hopefully few prototypes,
32333 which can conflict with char sched_get_priority_max (); below.
32334 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32335 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32336
a848cd7e
SC
32337#ifdef __STDC__
32338# include <limits.h>
32339#else
32340# include <assert.h>
32341#endif
ac1cb8d3
VS
32342
32343#undef sched_get_priority_max
32344
a848cd7e
SC
32345/* Override any gcc2 internal prototype to avoid an error. */
32346#ifdef __cplusplus
32347extern "C"
32348{
32349#endif
32350/* We use char because int might match the return type of a gcc2
32351 builtin and then its argument prototype would still apply. */
32352char sched_get_priority_max ();
32353/* The GNU C library defines this for functions which it implements
32354 to always fail with ENOSYS. Some functions are actually named
32355 something starting with __ and the normal name is an alias. */
32356#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
32357choke me
32358#else
32359char (*f) () = sched_get_priority_max;
32360#endif
32361#ifdef __cplusplus
32362}
32363#endif
32364
32365int
32366main ()
32367{
32368return f != sched_get_priority_max;
32369 ;
32370 return 0;
32371}
32372_ACEOF
32373rm -f conftest.$ac_objext conftest$ac_exeext
32374if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32375 (eval $ac_link) 2>conftest.er1
a848cd7e 32376 ac_status=$?
ac1cb8d3
VS
32377 grep -v '^ *+' conftest.er1 >conftest.err
32378 rm -f conftest.er1
32379 cat conftest.err >&5
a848cd7e
SC
32380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32381 (exit $ac_status); } &&
ceec2216 32382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32384 (eval $ac_try) 2>&5
32385 ac_status=$?
32386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32387 (exit $ac_status); }; } &&
32388 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32390 (eval $ac_try) 2>&5
32391 ac_status=$?
32392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32393 (exit $ac_status); }; }; then
32394 ac_cv_func_sched_get_priority_max=yes
32395else
32396 echo "$as_me: failed program was:" >&5
32397sed 's/^/| /' conftest.$ac_ext >&5
32398
32399ac_cv_func_sched_get_priority_max=no
32400fi
ac1cb8d3
VS
32401rm -f conftest.err conftest.$ac_objext \
32402 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32403fi
32404echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
32405echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
32406if test $ac_cv_func_sched_get_priority_max = yes; then
32407 HAVE_PRIOR_FUNCS=1
32408else
32409 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
32410echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
32411if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
32412 echo $ECHO_N "(cached) $ECHO_C" >&6
32413else
32414 ac_check_lib_save_LIBS=$LIBS
32415LIBS="-lposix4 $LIBS"
32416cat >conftest.$ac_ext <<_ACEOF
32417/* confdefs.h. */
32418_ACEOF
32419cat confdefs.h >>conftest.$ac_ext
32420cat >>conftest.$ac_ext <<_ACEOF
32421/* end confdefs.h. */
32422
32423/* Override any gcc2 internal prototype to avoid an error. */
32424#ifdef __cplusplus
32425extern "C"
32426#endif
32427/* We use char because int might match the return type of a gcc2
32428 builtin and then its argument prototype would still apply. */
32429char sched_get_priority_max ();
32430int
32431main ()
32432{
32433sched_get_priority_max ();
32434 ;
32435 return 0;
32436}
32437_ACEOF
32438rm -f conftest.$ac_objext conftest$ac_exeext
32439if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32440 (eval $ac_link) 2>conftest.er1
a848cd7e 32441 ac_status=$?
ac1cb8d3
VS
32442 grep -v '^ *+' conftest.er1 >conftest.err
32443 rm -f conftest.er1
32444 cat conftest.err >&5
a848cd7e
SC
32445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32446 (exit $ac_status); } &&
ceec2216 32447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32449 (eval $ac_try) 2>&5
32450 ac_status=$?
32451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32452 (exit $ac_status); }; } &&
32453 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32455 (eval $ac_try) 2>&5
32456 ac_status=$?
32457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32458 (exit $ac_status); }; }; then
32459 ac_cv_lib_posix4_sched_get_priority_max=yes
32460else
32461 echo "$as_me: failed program was:" >&5
32462sed 's/^/| /' conftest.$ac_ext >&5
32463
32464ac_cv_lib_posix4_sched_get_priority_max=no
32465fi
ac1cb8d3
VS
32466rm -f conftest.err conftest.$ac_objext \
32467 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32468LIBS=$ac_check_lib_save_LIBS
32469fi
32470echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
32471echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
32472if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
32473
32474 HAVE_PRIOR_FUNCS=1
32475 POSIX4_LINK=" -lposix4"
32476
32477fi
32478
32479
32480fi
32481
32482
32483fi
32484
32485
32486fi
32487
32488
32489 if test "$HAVE_PRIOR_FUNCS" = 1; then
32490 cat >>confdefs.h <<\_ACEOF
32491#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
32492_ACEOF
32493
32494 else
32495 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
32496echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
32497 fi
32498
32499 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
32500echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
32501if test "${ac_cv_func_pthread_cancel+set}" = set; then
32502 echo $ECHO_N "(cached) $ECHO_C" >&6
32503else
32504 cat >conftest.$ac_ext <<_ACEOF
32505/* confdefs.h. */
32506_ACEOF
32507cat confdefs.h >>conftest.$ac_ext
32508cat >>conftest.$ac_ext <<_ACEOF
32509/* end confdefs.h. */
ac1cb8d3
VS
32510/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
32511 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32512#define pthread_cancel innocuous_pthread_cancel
32513
a848cd7e
SC
32514/* System header to define __stub macros and hopefully few prototypes,
32515 which can conflict with char pthread_cancel (); below.
32516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32517 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32518
a848cd7e
SC
32519#ifdef __STDC__
32520# include <limits.h>
32521#else
32522# include <assert.h>
32523#endif
ac1cb8d3
VS
32524
32525#undef pthread_cancel
32526
a848cd7e
SC
32527/* Override any gcc2 internal prototype to avoid an error. */
32528#ifdef __cplusplus
32529extern "C"
32530{
32531#endif
32532/* We use char because int might match the return type of a gcc2
32533 builtin and then its argument prototype would still apply. */
32534char pthread_cancel ();
32535/* The GNU C library defines this for functions which it implements
32536 to always fail with ENOSYS. Some functions are actually named
32537 something starting with __ and the normal name is an alias. */
32538#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
32539choke me
32540#else
32541char (*f) () = pthread_cancel;
32542#endif
32543#ifdef __cplusplus
32544}
32545#endif
32546
32547int
32548main ()
32549{
32550return f != pthread_cancel;
32551 ;
32552 return 0;
32553}
32554_ACEOF
32555rm -f conftest.$ac_objext conftest$ac_exeext
32556if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32557 (eval $ac_link) 2>conftest.er1
a848cd7e 32558 ac_status=$?
ac1cb8d3
VS
32559 grep -v '^ *+' conftest.er1 >conftest.err
32560 rm -f conftest.er1
32561 cat conftest.err >&5
a848cd7e
SC
32562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32563 (exit $ac_status); } &&
ceec2216 32564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32566 (eval $ac_try) 2>&5
32567 ac_status=$?
32568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32569 (exit $ac_status); }; } &&
32570 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32572 (eval $ac_try) 2>&5
32573 ac_status=$?
32574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32575 (exit $ac_status); }; }; then
32576 ac_cv_func_pthread_cancel=yes
32577else
32578 echo "$as_me: failed program was:" >&5
32579sed 's/^/| /' conftest.$ac_ext >&5
32580
32581ac_cv_func_pthread_cancel=no
32582fi
ac1cb8d3
VS
32583rm -f conftest.err conftest.$ac_objext \
32584 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32585fi
32586echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
32587echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
32588if test $ac_cv_func_pthread_cancel = yes; then
32589 cat >>confdefs.h <<\_ACEOF
32590#define HAVE_PTHREAD_CANCEL 1
32591_ACEOF
32592
32593else
32594 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
32595echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
32596fi
32597
32598
32599
32600
32601 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
32602echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
32603if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
32604 echo $ECHO_N "(cached) $ECHO_C" >&6
32605else
32606
32607 cat >conftest.$ac_ext <<_ACEOF
32608/* confdefs.h. */
32609_ACEOF
32610cat confdefs.h >>conftest.$ac_ext
32611cat >>conftest.$ac_ext <<_ACEOF
32612/* end confdefs.h. */
32613#include <pthread.h>
32614int
32615main ()
32616{
32617
32618 pthread_mutexattr_t attr;
32619 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
32620
32621 ;
32622 return 0;
32623}
32624_ACEOF
32625rm -f conftest.$ac_objext
32626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32627 (eval $ac_compile) 2>conftest.er1
a848cd7e 32628 ac_status=$?
ac1cb8d3
VS
32629 grep -v '^ *+' conftest.er1 >conftest.err
32630 rm -f conftest.er1
32631 cat conftest.err >&5
a848cd7e
SC
32632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32633 (exit $ac_status); } &&
ceec2216 32634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32636 (eval $ac_try) 2>&5
32637 ac_status=$?
32638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32639 (exit $ac_status); }; } &&
32640 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32642 (eval $ac_try) 2>&5
32643 ac_status=$?
32644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32645 (exit $ac_status); }; }; then
32646
32647 wx_cv_type_pthread_mutexattr_t=yes
32648
32649else
32650 echo "$as_me: failed program was:" >&5
32651sed 's/^/| /' conftest.$ac_ext >&5
32652
32653
32654 wx_cv_type_pthread_mutexattr_t=no
32655
32656
32657fi
ac1cb8d3 32658rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32659
32660fi
32661echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
32662echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
32663
32664 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
32665 cat >>confdefs.h <<\_ACEOF
32666#define HAVE_PTHREAD_MUTEXATTR_T 1
32667_ACEOF
32668
32669 else
32670 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
32671echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
32672if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
32673 echo $ECHO_N "(cached) $ECHO_C" >&6
32674else
32675
32676 cat >conftest.$ac_ext <<_ACEOF
32677/* confdefs.h. */
32678_ACEOF
32679cat confdefs.h >>conftest.$ac_ext
32680cat >>conftest.$ac_ext <<_ACEOF
32681/* end confdefs.h. */
32682#include <pthread.h>
32683int
32684main ()
32685{
32686
32687 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
32688
32689 ;
32690 return 0;
32691}
32692_ACEOF
32693rm -f conftest.$ac_objext
32694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32695 (eval $ac_compile) 2>conftest.er1
a848cd7e 32696 ac_status=$?
ac1cb8d3
VS
32697 grep -v '^ *+' conftest.er1 >conftest.err
32698 rm -f conftest.er1
32699 cat conftest.err >&5
a848cd7e
SC
32700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32701 (exit $ac_status); } &&
ceec2216 32702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32704 (eval $ac_try) 2>&5
32705 ac_status=$?
32706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32707 (exit $ac_status); }; } &&
32708 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32710 (eval $ac_try) 2>&5
32711 ac_status=$?
32712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32713 (exit $ac_status); }; }; then
32714
32715 wx_cv_type_pthread_rec_mutex_init=yes
32716
32717else
32718 echo "$as_me: failed program was:" >&5
32719sed 's/^/| /' conftest.$ac_ext >&5
32720
32721
32722 wx_cv_type_pthread_rec_mutex_init=no
32723
32724
32725fi
ac1cb8d3 32726rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32727
32728fi
32729echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
32730echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
32731 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
32732 cat >>confdefs.h <<\_ACEOF
32733#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
32734_ACEOF
32735
32736 else
32737 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
32738echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
32739 fi
32740 fi
32741 fi
32742
32743else
32744 if test "$wxUSE_THREADS" = "yes" ; then
32745 case "${host}" in
32746 *-*-mingw32* )
32747 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
32748echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
32749if test "${wx_cv_cflags_mthread+set}" = set; then
32750 echo $ECHO_N "(cached) $ECHO_C" >&6
32751else
32752
32753 CFLAGS_OLD="$CFLAGS"
32754 CFLAGS="$CFLAGS -mthreads"
32755 cat >conftest.$ac_ext <<_ACEOF
32756/* confdefs.h. */
32757_ACEOF
32758cat confdefs.h >>conftest.$ac_ext
32759cat >>conftest.$ac_ext <<_ACEOF
32760/* end confdefs.h. */
32761
32762int
32763main ()
32764{
32765
32766 ;
32767 return 0;
32768}
32769_ACEOF
32770rm -f conftest.$ac_objext
32771if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32772 (eval $ac_compile) 2>conftest.er1
a848cd7e 32773 ac_status=$?
ac1cb8d3
VS
32774 grep -v '^ *+' conftest.er1 >conftest.err
32775 rm -f conftest.er1
32776 cat conftest.err >&5
a848cd7e
SC
32777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32778 (exit $ac_status); } &&
ceec2216 32779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32781 (eval $ac_try) 2>&5
32782 ac_status=$?
32783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32784 (exit $ac_status); }; } &&
32785 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32787 (eval $ac_try) 2>&5
32788 ac_status=$?
32789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32790 (exit $ac_status); }; }; then
32791 wx_cv_cflags_mthread=yes
32792else
32793 echo "$as_me: failed program was:" >&5
32794sed 's/^/| /' conftest.$ac_ext >&5
32795
32796wx_cv_cflags_mthread=no
32797
32798fi
ac1cb8d3 32799rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32800
32801
32802fi
32803echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
32804echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
32805
32806 if test "$wx_cv_cflags_mthread" = "yes"; then
32807 CXXFLAGS="$CXXFLAGS -mthreads"
32808 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
32809 LDFLAGS="$LDFLAGS -mthreads"
32810 else
32811 CFLAGS="$CFLAGS_OLD"
32812 fi
32813 ;;
32814 *-pc-os2*emx )
32815 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
32816 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
32817 LDFLAGS="$LDFLAGS -Zmt"
32818 ;;
32819 esac
32820 fi
32821fi
32822
32823if test "$wxUSE_THREADS" = "yes"; then
32824 cat >>confdefs.h <<\_ACEOF
32825#define wxUSE_THREADS 1
32826_ACEOF
32827
32828
32829 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
32830else
32831 if test "$ac_cv_func_strtok_r" = "yes"; then
32832 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
32833echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
32834 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
32835 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
32836 echo "$as_me:$LINENO: result: yes" >&5
32837echo "${ECHO_T}yes" >&6
32838 else
32839 echo "$as_me:$LINENO: result: no" >&5
32840echo "${ECHO_T}no" >&6
32841 fi
32842 fi
32843fi
32844
32845if test "$WXGTK20" = 1 ; then
32846 cat >>confdefs.h <<_ACEOF
32847#define __WXGTK20__ $WXGTK20
32848_ACEOF
32849
32850 WXGTK12=1
32851fi
32852
32853if test "$WXGTK12" = 1 ; then
32854 cat >>confdefs.h <<_ACEOF
32855#define __WXGTK12__ $WXGTK12
32856_ACEOF
32857
32858fi
32859
32860if test "$WXGTK127" = 1 ; then
32861 cat >>confdefs.h <<_ACEOF
32862#define __WXGTK127__ $WXGTK127
32863_ACEOF
32864
32865fi
32866
32867if test "$WXGPE" = 1 ; then
32868 cat >>confdefs.h <<_ACEOF
32869#define __WXGPE__ $WXGPE
32870_ACEOF
32871
32872fi
32873
32874WXDEBUG=
32875
32876if test "$wxUSE_DEBUG_INFO" = "yes" ; then
32877 WXDEBUG="-g"
32878 wxUSE_OPTIMISE=no
32879fi
32880
32881if test "$wxUSE_DEBUG_GDB" = "yes" ; then
32882 wxUSE_DEBUG_INFO=yes
32883 WXDEBUG="-ggdb"
32884fi
32885
32886if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
32887 cat >>confdefs.h <<\_ACEOF
32888#define WXDEBUG 1
32889_ACEOF
32890
32891 WXDEBUG_DEFINE="-D__WXDEBUG__"
32892else
32893 if test "$wxUSE_GTK" = 1 ; then
32894 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
32895 fi
32896fi
32897
32898if test "$wxUSE_MEM_TRACING" = "yes" ; then
32899 cat >>confdefs.h <<\_ACEOF
32900#define wxUSE_MEMORY_TRACING 1
32901_ACEOF
32902
32903 cat >>confdefs.h <<\_ACEOF
32904#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
32905_ACEOF
32906
32907 cat >>confdefs.h <<\_ACEOF
32908#define wxUSE_DEBUG_NEW_ALWAYS 1
32909_ACEOF
32910
32911 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
32912fi
32913
32914if test "$wxUSE_DMALLOC" = "yes" ; then
32915 DMALLOC_LIBS="-ldmalloc"
32916fi
32917
32918PROFILE=
32919if test "$wxUSE_PROFILE" = "yes" ; then
32920 PROFILE=" -pg"
32921fi
32922
32923CODE_GEN_FLAGS=
32924CODE_GEN_FLAGS_CXX=
32925if test "$GCC" = "yes" ; then
32926 if test "$wxUSE_NO_RTTI" = "yes" ; then
32927 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
32928 fi
32929 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
32930 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
32931 fi
32932 if test "$wxUSE_PERMISSIVE" = "yes" ; then
32933 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
32934 fi
32935
32936 case "${host}" in
32937 powerpc*-*-aix* )
32938 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
32939 ;;
32940 *-hppa* )
32941 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
32942 ;;
32943 esac
32944fi
32945
32946OPTIMISE=
32947if test "$wxUSE_OPTIMISE" = "no" ; then
32948 if test "$GCC" = yes ; then
32949 OPTIMISE="-O0"
32950 fi
32951else
32952 if test "$GCC" = yes ; then
32953 OPTIMISE="-O2"
32954
32955 case "${host}" in
32956 i586-*-*|i686-*-* )
32957 OPTIMISE="${OPTIMISE} "
32958 ;;
32959 esac
32960 else
32961 OPTIMISE="-O"
32962 fi
32963fi
32964
32965
32966if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
32967 cat >>confdefs.h <<\_ACEOF
32968#define WXWIN_COMPATIBILITY_2_2 1
32969_ACEOF
32970
32971
32972 WXWIN_COMPATIBILITY_2_4="yes"
32973fi
32974
32975if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
32976 cat >>confdefs.h <<\_ACEOF
32977#define WXWIN_COMPATIBILITY_2_4 1
32978_ACEOF
32979
32980fi
32981
32982
32983if test "$wxUSE_GUI" = "yes"; then
32984 cat >>confdefs.h <<\_ACEOF
32985#define wxUSE_GUI 1
32986_ACEOF
32987
32988
32989 else
32990 cat >>confdefs.h <<\_ACEOF
32991#define wxUSE_NOGUI 1
32992_ACEOF
32993
32994fi
32995
32996
32997if test "$wxUSE_UNIX" = "yes"; then
32998 cat >>confdefs.h <<\_ACEOF
32999#define wxUSE_UNIX 1
33000_ACEOF
33001
33002fi
33003
33004
33005if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
33006
33007 HAVE_DL_FUNCS=0
33008 HAVE_SHL_FUNCS=0
33009 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
33010 if test "$USE_DARWIN" = 1; then
33011 HAVE_DL_FUNCS=1
33012 else
33013
33014for ac_func in dlopen
33015do
33016as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33017echo "$as_me:$LINENO: checking for $ac_func" >&5
33018echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33019if eval "test \"\${$as_ac_var+set}\" = set"; then
33020 echo $ECHO_N "(cached) $ECHO_C" >&6
33021else
33022 cat >conftest.$ac_ext <<_ACEOF
33023/* confdefs.h. */
33024_ACEOF
33025cat confdefs.h >>conftest.$ac_ext
33026cat >>conftest.$ac_ext <<_ACEOF
33027/* end confdefs.h. */
ac1cb8d3
VS
33028/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33030#define $ac_func innocuous_$ac_func
33031
a848cd7e
SC
33032/* System header to define __stub macros and hopefully few prototypes,
33033 which can conflict with char $ac_func (); below.
33034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33035 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33036
a848cd7e
SC
33037#ifdef __STDC__
33038# include <limits.h>
33039#else
33040# include <assert.h>
33041#endif
ac1cb8d3
VS
33042
33043#undef $ac_func
33044
a848cd7e
SC
33045/* Override any gcc2 internal prototype to avoid an error. */
33046#ifdef __cplusplus
33047extern "C"
33048{
33049#endif
33050/* We use char because int might match the return type of a gcc2
33051 builtin and then its argument prototype would still apply. */
33052char $ac_func ();
33053/* The GNU C library defines this for functions which it implements
33054 to always fail with ENOSYS. Some functions are actually named
33055 something starting with __ and the normal name is an alias. */
33056#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33057choke me
33058#else
33059char (*f) () = $ac_func;
33060#endif
33061#ifdef __cplusplus
33062}
33063#endif
33064
33065int
33066main ()
33067{
33068return f != $ac_func;
33069 ;
33070 return 0;
33071}
33072_ACEOF
33073rm -f conftest.$ac_objext conftest$ac_exeext
33074if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33075 (eval $ac_link) 2>conftest.er1
a848cd7e 33076 ac_status=$?
ac1cb8d3
VS
33077 grep -v '^ *+' conftest.er1 >conftest.err
33078 rm -f conftest.er1
33079 cat conftest.err >&5
a848cd7e
SC
33080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33081 (exit $ac_status); } &&
ceec2216 33082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33084 (eval $ac_try) 2>&5
33085 ac_status=$?
33086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33087 (exit $ac_status); }; } &&
33088 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33090 (eval $ac_try) 2>&5
33091 ac_status=$?
33092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33093 (exit $ac_status); }; }; then
33094 eval "$as_ac_var=yes"
33095else
33096 echo "$as_me: failed program was:" >&5
33097sed 's/^/| /' conftest.$ac_ext >&5
33098
33099eval "$as_ac_var=no"
33100fi
ac1cb8d3
VS
33101rm -f conftest.err conftest.$ac_objext \
33102 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33103fi
33104echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33105echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33106if test `eval echo '${'$as_ac_var'}'` = yes; then
33107 cat >>confdefs.h <<_ACEOF
33108#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33109_ACEOF
33110
33111 cat >>confdefs.h <<\_ACEOF
33112#define HAVE_DLOPEN 1
33113_ACEOF
33114
33115 HAVE_DL_FUNCS=1
33116
33117else
33118
33119 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
33120echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
33121if test "${ac_cv_lib_dl_dlopen+set}" = set; then
33122 echo $ECHO_N "(cached) $ECHO_C" >&6
33123else
33124 ac_check_lib_save_LIBS=$LIBS
33125LIBS="-ldl $LIBS"
33126cat >conftest.$ac_ext <<_ACEOF
33127/* confdefs.h. */
33128_ACEOF
33129cat confdefs.h >>conftest.$ac_ext
33130cat >>conftest.$ac_ext <<_ACEOF
33131/* end confdefs.h. */
33132
33133/* Override any gcc2 internal prototype to avoid an error. */
33134#ifdef __cplusplus
33135extern "C"
33136#endif
33137/* We use char because int might match the return type of a gcc2
33138 builtin and then its argument prototype would still apply. */
33139char dlopen ();
33140int
33141main ()
33142{
33143dlopen ();
33144 ;
33145 return 0;
33146}
33147_ACEOF
33148rm -f conftest.$ac_objext conftest$ac_exeext
33149if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33150 (eval $ac_link) 2>conftest.er1
a848cd7e 33151 ac_status=$?
ac1cb8d3
VS
33152 grep -v '^ *+' conftest.er1 >conftest.err
33153 rm -f conftest.er1
33154 cat conftest.err >&5
a848cd7e
SC
33155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33156 (exit $ac_status); } &&
ceec2216 33157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33159 (eval $ac_try) 2>&5
33160 ac_status=$?
33161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33162 (exit $ac_status); }; } &&
33163 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33165 (eval $ac_try) 2>&5
33166 ac_status=$?
33167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33168 (exit $ac_status); }; }; then
33169 ac_cv_lib_dl_dlopen=yes
33170else
33171 echo "$as_me: failed program was:" >&5
33172sed 's/^/| /' conftest.$ac_ext >&5
33173
33174ac_cv_lib_dl_dlopen=no
33175fi
ac1cb8d3
VS
33176rm -f conftest.err conftest.$ac_objext \
33177 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33178LIBS=$ac_check_lib_save_LIBS
33179fi
33180echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
33181echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
33182if test $ac_cv_lib_dl_dlopen = yes; then
33183
33184 cat >>confdefs.h <<\_ACEOF
33185#define HAVE_DLOPEN 1
33186_ACEOF
33187
33188 HAVE_DL_FUNCS=1
33189 DL_LINK=" -ldl$DL_LINK"
33190
33191else
33192
33193
33194for ac_func in shl_load
33195do
33196as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33197echo "$as_me:$LINENO: checking for $ac_func" >&5
33198echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33199if eval "test \"\${$as_ac_var+set}\" = set"; then
33200 echo $ECHO_N "(cached) $ECHO_C" >&6
33201else
33202 cat >conftest.$ac_ext <<_ACEOF
33203/* confdefs.h. */
33204_ACEOF
33205cat confdefs.h >>conftest.$ac_ext
33206cat >>conftest.$ac_ext <<_ACEOF
33207/* end confdefs.h. */
ac1cb8d3
VS
33208/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33210#define $ac_func innocuous_$ac_func
33211
a848cd7e
SC
33212/* System header to define __stub macros and hopefully few prototypes,
33213 which can conflict with char $ac_func (); below.
33214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33215 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33216
a848cd7e
SC
33217#ifdef __STDC__
33218# include <limits.h>
33219#else
33220# include <assert.h>
33221#endif
ac1cb8d3
VS
33222
33223#undef $ac_func
33224
a848cd7e
SC
33225/* Override any gcc2 internal prototype to avoid an error. */
33226#ifdef __cplusplus
33227extern "C"
33228{
33229#endif
33230/* We use char because int might match the return type of a gcc2
33231 builtin and then its argument prototype would still apply. */
33232char $ac_func ();
33233/* The GNU C library defines this for functions which it implements
33234 to always fail with ENOSYS. Some functions are actually named
33235 something starting with __ and the normal name is an alias. */
33236#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33237choke me
33238#else
33239char (*f) () = $ac_func;
33240#endif
33241#ifdef __cplusplus
33242}
33243#endif
33244
33245int
33246main ()
33247{
33248return f != $ac_func;
33249 ;
33250 return 0;
33251}
33252_ACEOF
33253rm -f conftest.$ac_objext conftest$ac_exeext
33254if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33255 (eval $ac_link) 2>conftest.er1
a848cd7e 33256 ac_status=$?
ac1cb8d3
VS
33257 grep -v '^ *+' conftest.er1 >conftest.err
33258 rm -f conftest.er1
33259 cat conftest.err >&5
a848cd7e
SC
33260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33261 (exit $ac_status); } &&
ceec2216 33262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33264 (eval $ac_try) 2>&5
33265 ac_status=$?
33266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33267 (exit $ac_status); }; } &&
33268 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33270 (eval $ac_try) 2>&5
33271 ac_status=$?
33272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33273 (exit $ac_status); }; }; then
33274 eval "$as_ac_var=yes"
33275else
33276 echo "$as_me: failed program was:" >&5
33277sed 's/^/| /' conftest.$ac_ext >&5
33278
33279eval "$as_ac_var=no"
33280fi
ac1cb8d3
VS
33281rm -f conftest.err conftest.$ac_objext \
33282 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33283fi
33284echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33285echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33286if test `eval echo '${'$as_ac_var'}'` = yes; then
33287 cat >>confdefs.h <<_ACEOF
33288#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33289_ACEOF
33290
33291 cat >>confdefs.h <<\_ACEOF
33292#define HAVE_SHL_LOAD 1
33293_ACEOF
33294
33295 HAVE_SHL_FUNCS=1
33296
33297else
33298
33299 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
33300echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
33301if test "${ac_cv_lib_shl_load_dld+set}" = set; then
33302 echo $ECHO_N "(cached) $ECHO_C" >&6
33303else
33304 ac_check_lib_save_LIBS=$LIBS
33305LIBS="-lshl_load $LIBS"
33306cat >conftest.$ac_ext <<_ACEOF
33307/* confdefs.h. */
33308_ACEOF
33309cat confdefs.h >>conftest.$ac_ext
33310cat >>conftest.$ac_ext <<_ACEOF
33311/* end confdefs.h. */
33312
33313/* Override any gcc2 internal prototype to avoid an error. */
33314#ifdef __cplusplus
33315extern "C"
33316#endif
33317/* We use char because int might match the return type of a gcc2
33318 builtin and then its argument prototype would still apply. */
33319char dld ();
33320int
33321main ()
33322{
33323dld ();
33324 ;
33325 return 0;
33326}
33327_ACEOF
33328rm -f conftest.$ac_objext conftest$ac_exeext
33329if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33330 (eval $ac_link) 2>conftest.er1
a848cd7e 33331 ac_status=$?
ac1cb8d3
VS
33332 grep -v '^ *+' conftest.er1 >conftest.err
33333 rm -f conftest.er1
33334 cat conftest.err >&5
a848cd7e
SC
33335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33336 (exit $ac_status); } &&
ceec2216 33337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33339 (eval $ac_try) 2>&5
33340 ac_status=$?
33341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33342 (exit $ac_status); }; } &&
33343 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33345 (eval $ac_try) 2>&5
33346 ac_status=$?
33347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33348 (exit $ac_status); }; }; then
33349 ac_cv_lib_shl_load_dld=yes
33350else
33351 echo "$as_me: failed program was:" >&5
33352sed 's/^/| /' conftest.$ac_ext >&5
33353
33354ac_cv_lib_shl_load_dld=no
33355fi
ac1cb8d3
VS
33356rm -f conftest.err conftest.$ac_objext \
33357 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33358LIBS=$ac_check_lib_save_LIBS
33359fi
33360echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
33361echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
33362if test $ac_cv_lib_shl_load_dld = yes; then
33363
33364 HAVE_SHL_FUNCS=1
33365 DL_LINK=" -ldld$DL_LINK"
33366
33367fi
33368
33369
33370fi
33371done
33372
33373
33374fi
33375
33376
33377fi
33378done
33379
33380
33381 if test "$HAVE_DL_FUNCS" = 1; then
33382
33383for ac_func in dlerror
33384do
33385as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33386echo "$as_me:$LINENO: checking for $ac_func" >&5
33387echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33388if eval "test \"\${$as_ac_var+set}\" = set"; then
33389 echo $ECHO_N "(cached) $ECHO_C" >&6
33390else
33391 cat >conftest.$ac_ext <<_ACEOF
33392/* confdefs.h. */
33393_ACEOF
33394cat confdefs.h >>conftest.$ac_ext
33395cat >>conftest.$ac_ext <<_ACEOF
33396/* end confdefs.h. */
ac1cb8d3
VS
33397/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33398 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33399#define $ac_func innocuous_$ac_func
33400
a848cd7e
SC
33401/* System header to define __stub macros and hopefully few prototypes,
33402 which can conflict with char $ac_func (); below.
33403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33404 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33405
a848cd7e
SC
33406#ifdef __STDC__
33407# include <limits.h>
33408#else
33409# include <assert.h>
33410#endif
ac1cb8d3
VS
33411
33412#undef $ac_func
33413
a848cd7e
SC
33414/* Override any gcc2 internal prototype to avoid an error. */
33415#ifdef __cplusplus
33416extern "C"
33417{
33418#endif
33419/* We use char because int might match the return type of a gcc2
33420 builtin and then its argument prototype would still apply. */
33421char $ac_func ();
33422/* The GNU C library defines this for functions which it implements
33423 to always fail with ENOSYS. Some functions are actually named
33424 something starting with __ and the normal name is an alias. */
33425#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33426choke me
33427#else
33428char (*f) () = $ac_func;
33429#endif
33430#ifdef __cplusplus
33431}
33432#endif
33433
33434int
33435main ()
33436{
33437return f != $ac_func;
33438 ;
33439 return 0;
33440}
33441_ACEOF
33442rm -f conftest.$ac_objext conftest$ac_exeext
33443if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33444 (eval $ac_link) 2>conftest.er1
a848cd7e 33445 ac_status=$?
ac1cb8d3
VS
33446 grep -v '^ *+' conftest.er1 >conftest.err
33447 rm -f conftest.er1
33448 cat conftest.err >&5
a848cd7e
SC
33449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33450 (exit $ac_status); } &&
ceec2216 33451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33453 (eval $ac_try) 2>&5
33454 ac_status=$?
33455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33456 (exit $ac_status); }; } &&
33457 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33459 (eval $ac_try) 2>&5
33460 ac_status=$?
33461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33462 (exit $ac_status); }; }; then
33463 eval "$as_ac_var=yes"
33464else
33465 echo "$as_me: failed program was:" >&5
33466sed 's/^/| /' conftest.$ac_ext >&5
33467
33468eval "$as_ac_var=no"
33469fi
ac1cb8d3
VS
33470rm -f conftest.err conftest.$ac_objext \
33471 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33472fi
33473echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33474echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33475if test `eval echo '${'$as_ac_var'}'` = yes; then
33476 cat >>confdefs.h <<_ACEOF
33477#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33478_ACEOF
33479 cat >>confdefs.h <<\_ACEOF
33480#define HAVE_DLERROR 1
33481_ACEOF
33482
33483else
33484
33485 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
33486echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
33487if test "${ac_cv_lib_dl_dlerror+set}" = set; then
33488 echo $ECHO_N "(cached) $ECHO_C" >&6
33489else
33490 ac_check_lib_save_LIBS=$LIBS
33491LIBS="-ldl $LIBS"
33492cat >conftest.$ac_ext <<_ACEOF
33493/* confdefs.h. */
33494_ACEOF
33495cat confdefs.h >>conftest.$ac_ext
33496cat >>conftest.$ac_ext <<_ACEOF
33497/* end confdefs.h. */
33498
33499/* Override any gcc2 internal prototype to avoid an error. */
33500#ifdef __cplusplus
33501extern "C"
33502#endif
33503/* We use char because int might match the return type of a gcc2
33504 builtin and then its argument prototype would still apply. */
33505char dlerror ();
33506int
33507main ()
33508{
33509dlerror ();
33510 ;
33511 return 0;
33512}
33513_ACEOF
33514rm -f conftest.$ac_objext conftest$ac_exeext
33515if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33516 (eval $ac_link) 2>conftest.er1
a848cd7e 33517 ac_status=$?
ac1cb8d3
VS
33518 grep -v '^ *+' conftest.er1 >conftest.err
33519 rm -f conftest.er1
33520 cat conftest.err >&5
a848cd7e
SC
33521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33522 (exit $ac_status); } &&
ceec2216 33523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33525 (eval $ac_try) 2>&5
33526 ac_status=$?
33527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33528 (exit $ac_status); }; } &&
33529 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33531 (eval $ac_try) 2>&5
33532 ac_status=$?
33533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33534 (exit $ac_status); }; }; then
33535 ac_cv_lib_dl_dlerror=yes
33536else
33537 echo "$as_me: failed program was:" >&5
33538sed 's/^/| /' conftest.$ac_ext >&5
33539
33540ac_cv_lib_dl_dlerror=no
33541fi
ac1cb8d3
VS
33542rm -f conftest.err conftest.$ac_objext \
33543 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33544LIBS=$ac_check_lib_save_LIBS
33545fi
33546echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
33547echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
33548if test $ac_cv_lib_dl_dlerror = yes; then
33549 cat >>confdefs.h <<\_ACEOF
33550#define HAVE_DLERROR 1
33551_ACEOF
33552
33553fi
33554
33555
33556
33557fi
33558done
33559
33560 fi
33561 fi
33562
33563 if test "$HAVE_DL_FUNCS" = 0; then
33564 if test "$HAVE_SHL_FUNCS" = 0; then
33565 if test "$USE_UNIX" = 1; then
33566 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
33567echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
33568 wxUSE_DYNAMIC_LOADER=no
33569 wxUSE_DYNLIB_CLASS=no
33570 else
33571 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
33572echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
33573 fi
33574 fi
33575 fi
33576 fi
33577fi
33578
33579if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
33580 cat >>confdefs.h <<\_ACEOF
33581#define wxUSE_DYNAMIC_LOADER 1
33582_ACEOF
33583
33584fi
33585if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
33586 cat >>confdefs.h <<\_ACEOF
33587#define wxUSE_DYNLIB_CLASS 1
33588_ACEOF
33589
33590fi
33591
33592
33593
33594if test "$wxUSE_PLUGINS" = "yes" ; then
33595 if test "$wxUSE_SHARED" = "no" ; then
33596 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
33597echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
33598 wxUSE_PLUGINS=no
33599 fi
33600 if test "$wxUSE_MONOLITHIC" = "yes" ; then
33601 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
33602echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
33603 wxUSE_PLUGINS=no
33604 fi
33605 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
33606 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
33607echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
33608 wxUSE_PLUGINS=no
33609 fi
33610 if test "$wxUSE_PLUGINS" = "yes" ; then
33611 cat >>confdefs.h <<\_ACEOF
33612#define wxUSE_PLUGINS 1
33613_ACEOF
33614
33615 fi
33616fi
33617
33618
33619if test "$wxUSE_STL" = "yes"; then
33620 cat >>confdefs.h <<\_ACEOF
33621#define wxUSE_STL 1
33622_ACEOF
33623
33624fi
33625
33626if test "$wxUSE_APPLE_IEEE" = "yes"; then
33627 cat >>confdefs.h <<\_ACEOF
33628#define wxUSE_APPLE_IEEE 1
33629_ACEOF
33630
33631fi
33632
33633if test "$wxUSE_TIMER" = "yes"; then
33634 cat >>confdefs.h <<\_ACEOF
33635#define wxUSE_TIMER 1
33636_ACEOF
33637
33638fi
33639
33640WITH_PLUGIN_SDL=0
33641if test "$wxUSE_SOUND" = "yes"; then
33642 if test "$USE_UNIX" = "1" ; then
33643
33644for ac_header in sys/soundcard.h
33645do
33646as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33647if eval "test \"\${$as_ac_Header+set}\" = set"; then
33648 echo "$as_me:$LINENO: checking for $ac_header" >&5
33649echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33650if eval "test \"\${$as_ac_Header+set}\" = set"; then
33651 echo $ECHO_N "(cached) $ECHO_C" >&6
33652fi
33653echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33654echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33655else
33656 # Is the header compilable?
33657echo "$as_me:$LINENO: checking $ac_header usability" >&5
33658echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33659cat >conftest.$ac_ext <<_ACEOF
33660/* confdefs.h. */
33661_ACEOF
33662cat confdefs.h >>conftest.$ac_ext
33663cat >>conftest.$ac_ext <<_ACEOF
33664/* end confdefs.h. */
33665$ac_includes_default
33666#include <$ac_header>
33667_ACEOF
33668rm -f conftest.$ac_objext
33669if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33670 (eval $ac_compile) 2>conftest.er1
a848cd7e 33671 ac_status=$?
ac1cb8d3
VS
33672 grep -v '^ *+' conftest.er1 >conftest.err
33673 rm -f conftest.er1
33674 cat conftest.err >&5
a848cd7e
SC
33675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33676 (exit $ac_status); } &&
ceec2216 33677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33679 (eval $ac_try) 2>&5
33680 ac_status=$?
33681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33682 (exit $ac_status); }; } &&
33683 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33685 (eval $ac_try) 2>&5
33686 ac_status=$?
33687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33688 (exit $ac_status); }; }; then
33689 ac_header_compiler=yes
33690else
33691 echo "$as_me: failed program was:" >&5
33692sed 's/^/| /' conftest.$ac_ext >&5
33693
33694ac_header_compiler=no
33695fi
ac1cb8d3 33696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33697echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33698echo "${ECHO_T}$ac_header_compiler" >&6
33699
33700# Is the header present?
33701echo "$as_me:$LINENO: checking $ac_header presence" >&5
33702echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33703cat >conftest.$ac_ext <<_ACEOF
33704/* confdefs.h. */
33705_ACEOF
33706cat confdefs.h >>conftest.$ac_ext
33707cat >>conftest.$ac_ext <<_ACEOF
33708/* end confdefs.h. */
33709#include <$ac_header>
33710_ACEOF
33711if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33712 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33713 ac_status=$?
33714 grep -v '^ *+' conftest.er1 >conftest.err
33715 rm -f conftest.er1
33716 cat conftest.err >&5
33717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33718 (exit $ac_status); } >/dev/null; then
33719 if test -s conftest.err; then
33720 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 33721 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
33722 else
33723 ac_cpp_err=
33724 fi
33725else
33726 ac_cpp_err=yes
33727fi
33728if test -z "$ac_cpp_err"; then
33729 ac_header_preproc=yes
33730else
33731 echo "$as_me: failed program was:" >&5
33732sed 's/^/| /' conftest.$ac_ext >&5
33733
33734 ac_header_preproc=no
33735fi
33736rm -f conftest.err conftest.$ac_ext
33737echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33738echo "${ECHO_T}$ac_header_preproc" >&6
33739
33740# So? What about this header?
ac1cb8d3
VS
33741case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33742 yes:no: )
a848cd7e
SC
33743 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33744echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
33745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33746echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33747 ac_header_preproc=yes
a848cd7e 33748 ;;
ac1cb8d3 33749 no:yes:* )
a848cd7e
SC
33750 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33751echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
33752 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33753echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33754 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33755echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33756 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33757echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
33758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33759echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
33760 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33761echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
33762 (
33763 cat <<\_ASBOX
ac1cb8d3
VS
33764## ----------------------------------------- ##
33765## Report this to wx-dev@lists.wxwidgets.org ##
33766## ----------------------------------------- ##
a848cd7e
SC
33767_ASBOX
33768 ) |
33769 sed "s/^/$as_me: WARNING: /" >&2
33770 ;;
33771esac
33772echo "$as_me:$LINENO: checking for $ac_header" >&5
33773echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33774if eval "test \"\${$as_ac_Header+set}\" = set"; then
33775 echo $ECHO_N "(cached) $ECHO_C" >&6
33776else
ac1cb8d3 33777 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
33778fi
33779echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33780echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33781
33782fi
33783if test `eval echo '${'$as_ac_Header'}'` = yes; then
33784 cat >>confdefs.h <<_ACEOF
33785#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33786_ACEOF
33787
33788fi
33789
33790done
33791
33792
33793 if test "$wxUSE_LIBSDL" != "no"; then
33794
33795# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
33796if test "${with_sdl_prefix+set}" = set; then
33797 withval="$with_sdl_prefix"
33798 sdl_prefix="$withval"
33799else
33800 sdl_prefix=""
33801fi;
33802
33803# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
33804if test "${with_sdl_exec_prefix+set}" = set; then
33805 withval="$with_sdl_exec_prefix"
33806 sdl_exec_prefix="$withval"
33807else
33808 sdl_exec_prefix=""
33809fi;
33810# Check whether --enable-sdltest or --disable-sdltest was given.
33811if test "${enable_sdltest+set}" = set; then
33812 enableval="$enable_sdltest"
33813
33814else
33815 enable_sdltest=yes
33816fi;
33817
33818 if test x$sdl_exec_prefix != x ; then
33819 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
33820 if test x${SDL_CONFIG+set} != xset ; then
33821 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
33822 fi
33823 fi
33824 if test x$sdl_prefix != x ; then
33825 sdl_args="$sdl_args --prefix=$sdl_prefix"
33826 if test x${SDL_CONFIG+set} != xset ; then
33827 SDL_CONFIG=$sdl_prefix/bin/sdl-config
33828 fi
33829 fi
33830
33831
33832 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
33833 # Extract the first word of "sdl-config", so it can be a program name with args.
33834set dummy sdl-config; ac_word=$2
33835echo "$as_me:$LINENO: checking for $ac_word" >&5
33836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33837if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
33838 echo $ECHO_N "(cached) $ECHO_C" >&6
33839else
33840 case $SDL_CONFIG in
33841 [\\/]* | ?:[\\/]*)
33842 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
33843 ;;
33844 *)
33845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33846for as_dir in $PATH
33847do
33848 IFS=$as_save_IFS
33849 test -z "$as_dir" && as_dir=.
33850 for ac_exec_ext in '' $ac_executable_extensions; do
33851 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33852 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33854 break 2
33855 fi
33856done
33857done
33858
33859 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
33860 ;;
33861esac
33862fi
33863SDL_CONFIG=$ac_cv_path_SDL_CONFIG
33864
33865if test -n "$SDL_CONFIG"; then
33866 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
33867echo "${ECHO_T}$SDL_CONFIG" >&6
33868else
33869 echo "$as_me:$LINENO: result: no" >&5
33870echo "${ECHO_T}no" >&6
33871fi
33872
33873 min_sdl_version=1.2.0
33874 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
33875echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
33876 no_sdl=""
33877 if test "$SDL_CONFIG" = "no" ; then
33878 no_sdl=yes
33879 else
33880 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
33881 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
33882
33883 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
33884 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
33885 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
33886 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
33887 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
33888 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
33889 if test "x$enable_sdltest" = "xyes" ; then
33890 ac_save_CFLAGS="$CFLAGS"
33891 ac_save_LIBS="$LIBS"
33892 CFLAGS="$CFLAGS $SDL_CFLAGS"
33893 LIBS="$LIBS $SDL_LIBS"
33894 rm -f conf.sdltest
33895 if test "$cross_compiling" = yes; then
33896 echo $ac_n "cross compiling; assumed OK... $ac_c"
33897else
33898 cat >conftest.$ac_ext <<_ACEOF
33899/* confdefs.h. */
33900_ACEOF
33901cat confdefs.h >>conftest.$ac_ext
33902cat >>conftest.$ac_ext <<_ACEOF
33903/* end confdefs.h. */
33904
33905#include <stdio.h>
33906#include <stdlib.h>
33907#include <string.h>
33908#include "SDL.h"
33909
33910char*
33911my_strdup (char *str)
33912{
33913 char *new_str;
33914
33915 if (str)
33916 {
33917 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
33918 strcpy (new_str, str);
33919 }
33920 else
33921 new_str = NULL;
33922
33923 return new_str;
33924}
33925
33926int main (int argc, char *argv[])
33927{
33928 int major, minor, micro;
33929 char *tmp_version;
33930
33931 /* This hangs on some systems (?)
33932 system ("touch conf.sdltest");
33933 */
33934 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
33935
33936 /* HP/UX 9 (%@#!) writes to sscanf strings */
33937 tmp_version = my_strdup("$min_sdl_version");
33938 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
33939 printf("%s, bad version string\n", "$min_sdl_version");
33940 exit(1);
33941 }
33942
33943 if (($sdl_major_version > major) ||
33944 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
33945 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
33946 {
33947 return 0;
33948 }
33949 else
33950 {
33951 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
33952 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
33953 printf("*** best to upgrade to the required version.\n");
33954 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
33955 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
33956 printf("*** config.cache before re-running configure\n");
33957 return 1;
33958 }
33959}
33960
33961
33962_ACEOF
33963rm -f conftest$ac_exeext
33964if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33965 (eval $ac_link) 2>&5
33966 ac_status=$?
33967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33968 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33970 (eval $ac_try) 2>&5
33971 ac_status=$?
33972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33973 (exit $ac_status); }; }; then
33974 :
33975else
33976 echo "$as_me: program exited with status $ac_status" >&5
33977echo "$as_me: failed program was:" >&5
33978sed 's/^/| /' conftest.$ac_ext >&5
33979
33980( exit $ac_status )
33981no_sdl=yes
33982fi
ac1cb8d3 33983rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33984fi
33985 CFLAGS="$ac_save_CFLAGS"
33986 LIBS="$ac_save_LIBS"
33987 fi
33988 fi
33989 if test "x$no_sdl" = x ; then
33990 echo "$as_me:$LINENO: result: yes" >&5
33991echo "${ECHO_T}yes" >&6
33992
33993 EXTRALIBS_SDL="$SDL_LIBS"
33994 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
33995 cat >>confdefs.h <<\_ACEOF
33996#define wxUSE_LIBSDL 1
33997_ACEOF
33998
33999
34000 else
34001 echo "$as_me:$LINENO: result: no" >&5
34002echo "${ECHO_T}no" >&6
34003 if test "$SDL_CONFIG" = "no" ; then
34004 echo "*** The sdl-config script installed by SDL could not be found"
34005 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
34006 echo "*** your path, or set the SDL_CONFIG environment variable to the"
34007 echo "*** full path to sdl-config."
34008 else
34009 if test -f conf.sdltest ; then
34010 :
34011 else
34012 echo "*** Could not run SDL test program, checking why..."
34013 CFLAGS="$CFLAGS $SDL_CFLAGS"
34014 LIBS="$LIBS $SDL_LIBS"
34015 cat >conftest.$ac_ext <<_ACEOF
34016/* confdefs.h. */
34017_ACEOF
34018cat confdefs.h >>conftest.$ac_ext
34019cat >>conftest.$ac_ext <<_ACEOF
34020/* end confdefs.h. */
34021
34022#include <stdio.h>
34023#include "SDL.h"
34024
34025int main(int argc, char *argv[])
34026{ return 0; }
34027#undef main
34028#define main K_and_R_C_main
34029
34030int
34031main ()
34032{
34033 return 0;
34034 ;
34035 return 0;
34036}
34037_ACEOF
34038rm -f conftest.$ac_objext conftest$ac_exeext
34039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34040 (eval $ac_link) 2>conftest.er1
a848cd7e 34041 ac_status=$?
ac1cb8d3
VS
34042 grep -v '^ *+' conftest.er1 >conftest.err
34043 rm -f conftest.er1
34044 cat conftest.err >&5
a848cd7e
SC
34045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34046 (exit $ac_status); } &&
ceec2216 34047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34049 (eval $ac_try) 2>&5
34050 ac_status=$?
34051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34052 (exit $ac_status); }; } &&
34053 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34055 (eval $ac_try) 2>&5
34056 ac_status=$?
34057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34058 (exit $ac_status); }; }; then
34059 echo "*** The test program compiled, but did not run. This usually means"
34060 echo "*** that the run-time linker is not finding SDL or finding the wrong"
34061 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
34062 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
34063 echo "*** to the installed location Also, make sure you have run ldconfig if that"
34064 echo "*** is required on your system"
34065 echo "***"
34066 echo "*** If you have an old version installed, it is best to remove it, although"
34067 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
34068else
34069 echo "$as_me: failed program was:" >&5
34070sed 's/^/| /' conftest.$ac_ext >&5
34071
34072 echo "*** The test program failed to compile or link. See the file config.log for the"
34073 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
34074 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
34075 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
34076fi
ac1cb8d3
VS
34077rm -f conftest.err conftest.$ac_objext \
34078 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34079 CFLAGS="$ac_save_CFLAGS"
34080 LIBS="$ac_save_LIBS"
34081 fi
34082 fi
34083 SDL_CFLAGS=""
34084 SDL_LIBS=""
34085 wxUSE_LIBSDL="no"
34086 fi
34087
34088
34089 rm -f conf.sdltest
34090
34091 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
34092 WITH_PLUGIN_SDL=1
34093 fi
34094 fi
34095 fi
34096
34097 cat >>confdefs.h <<\_ACEOF
34098#define wxUSE_SOUND 1
34099_ACEOF
34100
34101 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
34102fi
34103
34104if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
34105 cat >>confdefs.h <<\_ACEOF
34106#define wxUSE_CMDLINE_PARSER 1
34107_ACEOF
34108
34109fi
34110
34111if test "$wxUSE_STOPWATCH" = "yes"; then
34112 cat >>confdefs.h <<\_ACEOF
34113#define wxUSE_STOPWATCH 1
34114_ACEOF
34115
34116fi
34117
34118if test "$wxUSE_DATETIME" = "yes"; then
34119 cat >>confdefs.h <<\_ACEOF
34120#define wxUSE_DATETIME 1
34121_ACEOF
34122
34123fi
34124
34125if test "$wxUSE_FILE" = "yes"; then
34126 cat >>confdefs.h <<\_ACEOF
34127#define wxUSE_FILE 1
34128_ACEOF
34129
34130fi
34131
34132if test "$wxUSE_FFILE" = "yes"; then
34133 cat >>confdefs.h <<\_ACEOF
34134#define wxUSE_FFILE 1
34135_ACEOF
34136
34137fi
34138
34139if test "$wxUSE_FILESYSTEM" = "yes"; then
34140 cat >>confdefs.h <<\_ACEOF
34141#define wxUSE_FILESYSTEM 1
34142_ACEOF
34143
34144fi
34145
34146if test "$wxUSE_FS_ZIP" = "yes"; then
34147 cat >>confdefs.h <<\_ACEOF
34148#define wxUSE_FS_ZIP 1
34149_ACEOF
34150
34151fi
34152
34153if test "$wxUSE_ZIPSTREAM" = "yes"; then
34154 cat >>confdefs.h <<\_ACEOF
34155#define wxUSE_ZIPSTREAM 1
34156_ACEOF
34157
34158fi
34159
a848cd7e
SC
34160if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
34161 cat >>confdefs.h <<\_ACEOF
34162#define wxUSE_ON_FATAL_EXCEPTION 1
34163_ACEOF
34164
34165fi
34166
34167if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
34168 cat >>confdefs.h <<\_ACEOF
34169#define wxUSE_SNGLINST_CHECKER 1
34170_ACEOF
34171
34172fi
34173
34174if test "$wxUSE_BUSYINFO" = "yes"; then
34175 cat >>confdefs.h <<\_ACEOF
34176#define wxUSE_BUSYINFO 1
34177_ACEOF
34178
34179fi
34180
34181if test "$wxUSE_STD_IOSTREAM" = "yes"; then
34182 cat >>confdefs.h <<\_ACEOF
34183#define wxUSE_STD_IOSTREAM 1
34184_ACEOF
34185
34186fi
34187
34188if test "$wxUSE_TEXTBUFFER" = "yes"; then
34189 cat >>confdefs.h <<\_ACEOF
34190#define wxUSE_TEXTBUFFER 1
34191_ACEOF
34192
34193fi
34194
34195if test "$wxUSE_TEXTFILE" = "yes"; then
34196 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
34197 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
34198echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
34199 else
34200 cat >>confdefs.h <<\_ACEOF
34201#define wxUSE_TEXTFILE 1
34202_ACEOF
34203
34204 fi
34205fi
34206
34207if test "$wxUSE_CONFIG" = "yes" ; then
34208 if test "$wxUSE_TEXTFILE" != "yes"; then
34209 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
34210echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
34211 else
34212 cat >>confdefs.h <<\_ACEOF
34213#define wxUSE_CONFIG 1
34214_ACEOF
34215
34216 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
34217 fi
34218fi
34219
34220if test "$wxUSE_INTL" = "yes" ; then
34221 if test "$wxUSE_FILE" != "yes"; then
34222 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
34223echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
34224 else
34225 cat >>confdefs.h <<\_ACEOF
34226#define wxUSE_INTL 1
34227_ACEOF
34228
34229 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
34230 GUIDIST="$GUIDIST INTL_DIST"
34231 fi
34232fi
34233
34234if test "$wxUSE_LOG" = "yes"; then
34235 cat >>confdefs.h <<\_ACEOF
34236#define wxUSE_LOG 1
34237_ACEOF
34238
34239
34240 if test "$wxUSE_LOGGUI" = "yes"; then
34241 cat >>confdefs.h <<\_ACEOF
34242#define wxUSE_LOGGUI 1
34243_ACEOF
34244
34245 fi
34246
34247 if test "$wxUSE_LOGWINDOW" = "yes"; then
34248 cat >>confdefs.h <<\_ACEOF
34249#define wxUSE_LOGWINDOW 1
34250_ACEOF
34251
34252 fi
34253
34254 if test "$wxUSE_LOGDIALOG" = "yes"; then
34255 cat >>confdefs.h <<\_ACEOF
34256#define wxUSE_LOG_DIALOG 1
34257_ACEOF
34258
34259 fi
34260fi
34261
34262if test "$wxUSE_LONGLONG" = "yes"; then
34263 cat >>confdefs.h <<\_ACEOF
34264#define wxUSE_LONGLONG 1
34265_ACEOF
34266
34267fi
34268
34269if test "$wxUSE_GEOMETRY" = "yes"; then
34270 cat >>confdefs.h <<\_ACEOF
34271#define wxUSE_GEOMETRY 1
34272_ACEOF
34273
34274fi
34275
34276if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
34277 cat >>confdefs.h <<\_ACEOF
34278#define wxUSE_DIALUP_MANAGER 1
34279_ACEOF
34280
34281 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
34282fi
34283
34284if test "$wxUSE_STREAMS" = "yes" ; then
34285 cat >>confdefs.h <<\_ACEOF
34286#define wxUSE_STREAMS 1
34287_ACEOF
34288
34289fi
34290
34291
34292if test "$wxUSE_DATETIME" = "yes"; then
34293
34294for ac_func in strptime
34295do
34296as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34297echo "$as_me:$LINENO: checking for $ac_func" >&5
34298echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34299if eval "test \"\${$as_ac_var+set}\" = set"; then
34300 echo $ECHO_N "(cached) $ECHO_C" >&6
34301else
34302 cat >conftest.$ac_ext <<_ACEOF
34303/* confdefs.h. */
34304_ACEOF
34305cat confdefs.h >>conftest.$ac_ext
34306cat >>conftest.$ac_ext <<_ACEOF
34307/* end confdefs.h. */
ac1cb8d3
VS
34308/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34309 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34310#define $ac_func innocuous_$ac_func
34311
a848cd7e
SC
34312/* System header to define __stub macros and hopefully few prototypes,
34313 which can conflict with char $ac_func (); below.
34314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34315 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34316
a848cd7e
SC
34317#ifdef __STDC__
34318# include <limits.h>
34319#else
34320# include <assert.h>
34321#endif
ac1cb8d3
VS
34322
34323#undef $ac_func
34324
a848cd7e
SC
34325/* Override any gcc2 internal prototype to avoid an error. */
34326#ifdef __cplusplus
34327extern "C"
34328{
34329#endif
34330/* We use char because int might match the return type of a gcc2
34331 builtin and then its argument prototype would still apply. */
34332char $ac_func ();
34333/* The GNU C library defines this for functions which it implements
34334 to always fail with ENOSYS. Some functions are actually named
34335 something starting with __ and the normal name is an alias. */
34336#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34337choke me
34338#else
34339char (*f) () = $ac_func;
34340#endif
34341#ifdef __cplusplus
34342}
34343#endif
34344
34345int
34346main ()
34347{
34348return f != $ac_func;
34349 ;
34350 return 0;
34351}
34352_ACEOF
34353rm -f conftest.$ac_objext conftest$ac_exeext
34354if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34355 (eval $ac_link) 2>conftest.er1
a848cd7e 34356 ac_status=$?
ac1cb8d3
VS
34357 grep -v '^ *+' conftest.er1 >conftest.err
34358 rm -f conftest.er1
34359 cat conftest.err >&5
a848cd7e
SC
34360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34361 (exit $ac_status); } &&
ceec2216 34362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34364 (eval $ac_try) 2>&5
34365 ac_status=$?
34366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34367 (exit $ac_status); }; } &&
34368 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34370 (eval $ac_try) 2>&5
34371 ac_status=$?
34372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34373 (exit $ac_status); }; }; then
34374 eval "$as_ac_var=yes"
34375else
34376 echo "$as_me: failed program was:" >&5
34377sed 's/^/| /' conftest.$ac_ext >&5
34378
34379eval "$as_ac_var=no"
34380fi
ac1cb8d3
VS
34381rm -f conftest.err conftest.$ac_objext \
34382 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34383fi
34384echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34385echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34386if test `eval echo '${'$as_ac_var'}'` = yes; then
34387 cat >>confdefs.h <<_ACEOF
34388#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34389_ACEOF
34390
34391fi
34392done
34393
34394
34395 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
34396echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
34397if test "${wx_cv_var_timezone+set}" = set; then
34398 echo $ECHO_N "(cached) $ECHO_C" >&6
34399else
34400
34401 cat >conftest.$ac_ext <<_ACEOF
34402/* confdefs.h. */
34403_ACEOF
34404cat confdefs.h >>conftest.$ac_ext
34405cat >>conftest.$ac_ext <<_ACEOF
34406/* end confdefs.h. */
34407
34408 #include <time.h>
34409
34410int
34411main ()
34412{
34413
34414 int tz;
34415 tz = timezone;
34416
34417 ;
34418 return 0;
34419}
34420_ACEOF
34421rm -f conftest.$ac_objext
34422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34423 (eval $ac_compile) 2>conftest.er1
a848cd7e 34424 ac_status=$?
ac1cb8d3
VS
34425 grep -v '^ *+' conftest.er1 >conftest.err
34426 rm -f conftest.er1
34427 cat conftest.err >&5
a848cd7e
SC
34428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34429 (exit $ac_status); } &&
ceec2216 34430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34432 (eval $ac_try) 2>&5
34433 ac_status=$?
34434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34435 (exit $ac_status); }; } &&
34436 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34438 (eval $ac_try) 2>&5
34439 ac_status=$?
34440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34441 (exit $ac_status); }; }; then
34442
34443 wx_cv_var_timezone=timezone
34444
34445else
34446 echo "$as_me: failed program was:" >&5
34447sed 's/^/| /' conftest.$ac_ext >&5
34448
34449
34450 cat >conftest.$ac_ext <<_ACEOF
34451/* confdefs.h. */
34452_ACEOF
34453cat confdefs.h >>conftest.$ac_ext
34454cat >>conftest.$ac_ext <<_ACEOF
34455/* end confdefs.h. */
34456
34457 #include <time.h>
34458
34459int
34460main ()
34461{
34462
34463 int tz;
34464 tz = _timezone;
34465
34466 ;
34467 return 0;
34468}
34469_ACEOF
34470rm -f conftest.$ac_objext
34471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34472 (eval $ac_compile) 2>conftest.er1
a848cd7e 34473 ac_status=$?
ac1cb8d3
VS
34474 grep -v '^ *+' conftest.er1 >conftest.err
34475 rm -f conftest.er1
34476 cat conftest.err >&5
a848cd7e
SC
34477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34478 (exit $ac_status); } &&
ceec2216 34479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34481 (eval $ac_try) 2>&5
34482 ac_status=$?
34483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34484 (exit $ac_status); }; } &&
34485 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34487 (eval $ac_try) 2>&5
34488 ac_status=$?
34489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34490 (exit $ac_status); }; }; then
34491
34492 wx_cv_var_timezone=_timezone
34493
34494else
34495 echo "$as_me: failed program was:" >&5
34496sed 's/^/| /' conftest.$ac_ext >&5
34497
34498
34499 cat >conftest.$ac_ext <<_ACEOF
34500/* confdefs.h. */
34501_ACEOF
34502cat confdefs.h >>conftest.$ac_ext
34503cat >>conftest.$ac_ext <<_ACEOF
34504/* end confdefs.h. */
34505
34506 #include <time.h>
34507
34508int
34509main ()
34510{
34511
34512 int tz;
34513 tz = __timezone;
34514
34515 ;
34516 return 0;
34517}
34518_ACEOF
34519rm -f conftest.$ac_objext
34520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34521 (eval $ac_compile) 2>conftest.er1
a848cd7e 34522 ac_status=$?
ac1cb8d3
VS
34523 grep -v '^ *+' conftest.er1 >conftest.err
34524 rm -f conftest.er1
34525 cat conftest.err >&5
a848cd7e
SC
34526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34527 (exit $ac_status); } &&
ceec2216 34528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34530 (eval $ac_try) 2>&5
34531 ac_status=$?
34532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34533 (exit $ac_status); }; } &&
34534 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34536 (eval $ac_try) 2>&5
34537 ac_status=$?
34538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34539 (exit $ac_status); }; }; then
34540
34541 wx_cv_var_timezone=__timezone
34542
34543else
34544 echo "$as_me: failed program was:" >&5
34545sed 's/^/| /' conftest.$ac_ext >&5
34546
34547
34548 if test "$USE_DOS" = 0 ; then
34549 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
34550echo "$as_me: WARNING: no timezone variable" >&2;}
34551 fi
34552
34553
34554fi
ac1cb8d3 34555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34556
34557
34558fi
ac1cb8d3 34559rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34560
34561
34562fi
ac1cb8d3 34563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34564
34565
34566fi
34567echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
34568echo "${ECHO_T}$wx_cv_var_timezone" >&6
34569
34570 if test "x$wx_cv_var_timezone" != x ; then
34571 cat >>confdefs.h <<_ACEOF
34572#define WX_TIMEZONE $wx_cv_var_timezone
34573_ACEOF
34574
34575 fi
34576
34577
34578for ac_func in localtime
34579do
34580as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34581echo "$as_me:$LINENO: checking for $ac_func" >&5
34582echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34583if eval "test \"\${$as_ac_var+set}\" = set"; then
34584 echo $ECHO_N "(cached) $ECHO_C" >&6
34585else
34586 cat >conftest.$ac_ext <<_ACEOF
34587/* confdefs.h. */
34588_ACEOF
34589cat confdefs.h >>conftest.$ac_ext
34590cat >>conftest.$ac_ext <<_ACEOF
34591/* end confdefs.h. */
ac1cb8d3
VS
34592/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34593 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34594#define $ac_func innocuous_$ac_func
34595
a848cd7e
SC
34596/* System header to define __stub macros and hopefully few prototypes,
34597 which can conflict with char $ac_func (); below.
34598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34599 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34600
a848cd7e
SC
34601#ifdef __STDC__
34602# include <limits.h>
34603#else
34604# include <assert.h>
34605#endif
ac1cb8d3
VS
34606
34607#undef $ac_func
34608
a848cd7e
SC
34609/* Override any gcc2 internal prototype to avoid an error. */
34610#ifdef __cplusplus
34611extern "C"
34612{
34613#endif
34614/* We use char because int might match the return type of a gcc2
34615 builtin and then its argument prototype would still apply. */
34616char $ac_func ();
34617/* The GNU C library defines this for functions which it implements
34618 to always fail with ENOSYS. Some functions are actually named
34619 something starting with __ and the normal name is an alias. */
34620#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34621choke me
34622#else
34623char (*f) () = $ac_func;
34624#endif
34625#ifdef __cplusplus
34626}
34627#endif
34628
34629int
34630main ()
34631{
34632return f != $ac_func;
34633 ;
34634 return 0;
34635}
34636_ACEOF
34637rm -f conftest.$ac_objext conftest$ac_exeext
34638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34639 (eval $ac_link) 2>conftest.er1
a848cd7e 34640 ac_status=$?
ac1cb8d3
VS
34641 grep -v '^ *+' conftest.er1 >conftest.err
34642 rm -f conftest.er1
34643 cat conftest.err >&5
a848cd7e
SC
34644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34645 (exit $ac_status); } &&
ceec2216 34646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34648 (eval $ac_try) 2>&5
34649 ac_status=$?
34650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34651 (exit $ac_status); }; } &&
34652 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34654 (eval $ac_try) 2>&5
34655 ac_status=$?
34656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34657 (exit $ac_status); }; }; then
34658 eval "$as_ac_var=yes"
34659else
34660 echo "$as_me: failed program was:" >&5
34661sed 's/^/| /' conftest.$ac_ext >&5
34662
34663eval "$as_ac_var=no"
34664fi
ac1cb8d3
VS
34665rm -f conftest.err conftest.$ac_objext \
34666 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34667fi
34668echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34669echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34670if test `eval echo '${'$as_ac_var'}'` = yes; then
34671 cat >>confdefs.h <<_ACEOF
34672#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34673_ACEOF
34674
34675fi
34676done
34677
34678
34679 if test "$ac_cv_func_localtime" = "yes"; then
34680 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
34681echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
34682if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
34683 echo $ECHO_N "(cached) $ECHO_C" >&6
34684else
34685
34686 cat >conftest.$ac_ext <<_ACEOF
34687/* confdefs.h. */
34688_ACEOF
34689cat confdefs.h >>conftest.$ac_ext
34690cat >>conftest.$ac_ext <<_ACEOF
34691/* end confdefs.h. */
34692
34693 #include <time.h>
34694
34695int
34696main ()
34697{
34698
34699 struct tm tm;
34700 tm.tm_gmtoff++;
34701
34702 ;
34703 return 0;
34704}
34705_ACEOF
34706rm -f conftest.$ac_objext
34707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34708 (eval $ac_compile) 2>conftest.er1
a848cd7e 34709 ac_status=$?
ac1cb8d3
VS
34710 grep -v '^ *+' conftest.er1 >conftest.err
34711 rm -f conftest.er1
34712 cat conftest.err >&5
a848cd7e
SC
34713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34714 (exit $ac_status); } &&
ceec2216 34715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34717 (eval $ac_try) 2>&5
34718 ac_status=$?
34719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34720 (exit $ac_status); }; } &&
34721 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34723 (eval $ac_try) 2>&5
34724 ac_status=$?
34725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34726 (exit $ac_status); }; }; then
34727
34728 wx_cv_struct_tm_has_gmtoff=yes
34729
34730else
34731 echo "$as_me: failed program was:" >&5
34732sed 's/^/| /' conftest.$ac_ext >&5
34733
34734wx_cv_struct_tm_has_gmtoff=no
34735
34736fi
ac1cb8d3 34737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34738
34739fi
34740echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
34741echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
34742 fi
34743
34744 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
34745 cat >>confdefs.h <<\_ACEOF
34746#define WX_GMTOFF_IN_TM 1
34747_ACEOF
34748
34749 fi
34750
34751
34752
34753for ac_func in gettimeofday ftime
34754do
34755as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34756echo "$as_me:$LINENO: checking for $ac_func" >&5
34757echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34758if eval "test \"\${$as_ac_var+set}\" = set"; then
34759 echo $ECHO_N "(cached) $ECHO_C" >&6
34760else
34761 cat >conftest.$ac_ext <<_ACEOF
34762/* confdefs.h. */
34763_ACEOF
34764cat confdefs.h >>conftest.$ac_ext
34765cat >>conftest.$ac_ext <<_ACEOF
34766/* end confdefs.h. */
ac1cb8d3
VS
34767/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34769#define $ac_func innocuous_$ac_func
34770
a848cd7e
SC
34771/* System header to define __stub macros and hopefully few prototypes,
34772 which can conflict with char $ac_func (); below.
34773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34774 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34775
a848cd7e
SC
34776#ifdef __STDC__
34777# include <limits.h>
34778#else
34779# include <assert.h>
34780#endif
ac1cb8d3
VS
34781
34782#undef $ac_func
34783
a848cd7e
SC
34784/* Override any gcc2 internal prototype to avoid an error. */
34785#ifdef __cplusplus
34786extern "C"
34787{
34788#endif
34789/* We use char because int might match the return type of a gcc2
34790 builtin and then its argument prototype would still apply. */
34791char $ac_func ();
34792/* The GNU C library defines this for functions which it implements
34793 to always fail with ENOSYS. Some functions are actually named
34794 something starting with __ and the normal name is an alias. */
34795#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34796choke me
34797#else
34798char (*f) () = $ac_func;
34799#endif
34800#ifdef __cplusplus
34801}
34802#endif
34803
34804int
34805main ()
34806{
34807return f != $ac_func;
34808 ;
34809 return 0;
34810}
34811_ACEOF
34812rm -f conftest.$ac_objext conftest$ac_exeext
34813if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34814 (eval $ac_link) 2>conftest.er1
a848cd7e 34815 ac_status=$?
ac1cb8d3
VS
34816 grep -v '^ *+' conftest.er1 >conftest.err
34817 rm -f conftest.er1
34818 cat conftest.err >&5
a848cd7e
SC
34819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34820 (exit $ac_status); } &&
ceec2216 34821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34823 (eval $ac_try) 2>&5
34824 ac_status=$?
34825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34826 (exit $ac_status); }; } &&
34827 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34829 (eval $ac_try) 2>&5
34830 ac_status=$?
34831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34832 (exit $ac_status); }; }; then
34833 eval "$as_ac_var=yes"
34834else
34835 echo "$as_me: failed program was:" >&5
34836sed 's/^/| /' conftest.$ac_ext >&5
34837
34838eval "$as_ac_var=no"
34839fi
ac1cb8d3
VS
34840rm -f conftest.err conftest.$ac_objext \
34841 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34842fi
34843echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34844echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34845if test `eval echo '${'$as_ac_var'}'` = yes; then
34846 cat >>confdefs.h <<_ACEOF
34847#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34848_ACEOF
34849 break
34850fi
34851done
34852
34853
34854 if test "$ac_cv_func_gettimeofday" = "yes"; then
34855 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
34856echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
34857if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
34858 echo $ECHO_N "(cached) $ECHO_C" >&6
34859else
34860
34861
34862
34863 ac_ext=cc
34864ac_cpp='$CXXCPP $CPPFLAGS'
34865ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34866ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34867ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34868
34869
34870 cat >conftest.$ac_ext <<_ACEOF
34871/* confdefs.h. */
34872_ACEOF
34873cat confdefs.h >>conftest.$ac_ext
34874cat >>conftest.$ac_ext <<_ACEOF
34875/* end confdefs.h. */
34876
34877 #include <sys/time.h>
34878 #include <unistd.h>
34879
34880int
34881main ()
34882{
34883
34884 struct timeval tv;
34885 gettimeofday(&tv, NULL);
34886
34887 ;
34888 return 0;
34889}
34890_ACEOF
34891rm -f conftest.$ac_objext
34892if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34893 (eval $ac_compile) 2>conftest.er1
a848cd7e 34894 ac_status=$?
ac1cb8d3
VS
34895 grep -v '^ *+' conftest.er1 >conftest.err
34896 rm -f conftest.er1
34897 cat conftest.err >&5
a848cd7e
SC
34898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34899 (exit $ac_status); } &&
ceec2216 34900 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34902 (eval $ac_try) 2>&5
34903 ac_status=$?
34904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34905 (exit $ac_status); }; } &&
34906 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34908 (eval $ac_try) 2>&5
34909 ac_status=$?
34910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34911 (exit $ac_status); }; }; then
34912 wx_cv_func_gettimeofday_has_2_args=yes
34913else
34914 echo "$as_me: failed program was:" >&5
34915sed 's/^/| /' conftest.$ac_ext >&5
34916
34917cat >conftest.$ac_ext <<_ACEOF
34918/* confdefs.h. */
34919_ACEOF
34920cat confdefs.h >>conftest.$ac_ext
34921cat >>conftest.$ac_ext <<_ACEOF
34922/* end confdefs.h. */
34923
34924 #include <sys/time.h>
34925 #include <unistd.h>
34926
34927int
34928main ()
34929{
34930
34931 struct timeval tv;
34932 gettimeofday(&tv);
34933
34934 ;
34935 return 0;
34936}
34937_ACEOF
34938rm -f conftest.$ac_objext
34939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34940 (eval $ac_compile) 2>conftest.er1
a848cd7e 34941 ac_status=$?
ac1cb8d3
VS
34942 grep -v '^ *+' conftest.er1 >conftest.err
34943 rm -f conftest.er1
34944 cat conftest.err >&5
a848cd7e
SC
34945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34946 (exit $ac_status); } &&
ceec2216 34947 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34949 (eval $ac_try) 2>&5
34950 ac_status=$?
34951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34952 (exit $ac_status); }; } &&
34953 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34955 (eval $ac_try) 2>&5
34956 ac_status=$?
34957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34958 (exit $ac_status); }; }; then
34959 wx_cv_func_gettimeofday_has_2_args=no
34960else
34961 echo "$as_me: failed program was:" >&5
34962sed 's/^/| /' conftest.$ac_ext >&5
34963
34964
34965 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
34966echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
34967 wx_cv_func_gettimeofday_has_2_args=unknown
34968
34969
34970fi
ac1cb8d3 34971rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34972
34973fi
ac1cb8d3 34974rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34975 ac_ext=c
34976ac_cpp='$CPP $CPPFLAGS'
34977ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34978ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34979ac_compiler_gnu=$ac_cv_c_compiler_gnu
34980
34981
34982fi
34983echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
34984echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
34985
34986 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
34987 cat >>confdefs.h <<\_ACEOF
34988#define WX_GETTIMEOFDAY_NO_TZ 1
34989_ACEOF
34990
34991 fi
34992 fi
34993
34994 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
34995fi
34996
34997
34998if test "$wxUSE_SOCKETS" = "yes"; then
34999 if test "$wxUSE_MGL" = "1"; then
35000 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
35001echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
35002 wxUSE_SOCKETS="no"
35003 fi
35004fi
35005
35006if test "$wxUSE_SOCKETS" = "yes"; then
35007 if test "$TOOLKIT" != "MSW"; then
35008 echo "$as_me:$LINENO: checking for socket" >&5
35009echo $ECHO_N "checking for socket... $ECHO_C" >&6
35010if test "${ac_cv_func_socket+set}" = set; then
35011 echo $ECHO_N "(cached) $ECHO_C" >&6
35012else
35013 cat >conftest.$ac_ext <<_ACEOF
35014/* confdefs.h. */
35015_ACEOF
35016cat confdefs.h >>conftest.$ac_ext
35017cat >>conftest.$ac_ext <<_ACEOF
35018/* end confdefs.h. */
ac1cb8d3
VS
35019/* Define socket to an innocuous variant, in case <limits.h> declares socket.
35020 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35021#define socket innocuous_socket
35022
a848cd7e
SC
35023/* System header to define __stub macros and hopefully few prototypes,
35024 which can conflict with char socket (); below.
35025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35026 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35027
a848cd7e
SC
35028#ifdef __STDC__
35029# include <limits.h>
35030#else
35031# include <assert.h>
35032#endif
ac1cb8d3
VS
35033
35034#undef socket
35035
a848cd7e
SC
35036/* Override any gcc2 internal prototype to avoid an error. */
35037#ifdef __cplusplus
35038extern "C"
35039{
35040#endif
35041/* We use char because int might match the return type of a gcc2
35042 builtin and then its argument prototype would still apply. */
35043char socket ();
35044/* The GNU C library defines this for functions which it implements
35045 to always fail with ENOSYS. Some functions are actually named
35046 something starting with __ and the normal name is an alias. */
35047#if defined (__stub_socket) || defined (__stub___socket)
35048choke me
35049#else
35050char (*f) () = socket;
35051#endif
35052#ifdef __cplusplus
35053}
35054#endif
35055
35056int
35057main ()
35058{
35059return f != socket;
35060 ;
35061 return 0;
35062}
35063_ACEOF
35064rm -f conftest.$ac_objext conftest$ac_exeext
35065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35066 (eval $ac_link) 2>conftest.er1
a848cd7e 35067 ac_status=$?
ac1cb8d3
VS
35068 grep -v '^ *+' conftest.er1 >conftest.err
35069 rm -f conftest.er1
35070 cat conftest.err >&5
a848cd7e
SC
35071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35072 (exit $ac_status); } &&
ceec2216 35073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35075 (eval $ac_try) 2>&5
35076 ac_status=$?
35077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35078 (exit $ac_status); }; } &&
35079 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35081 (eval $ac_try) 2>&5
35082 ac_status=$?
35083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35084 (exit $ac_status); }; }; then
35085 ac_cv_func_socket=yes
35086else
35087 echo "$as_me: failed program was:" >&5
35088sed 's/^/| /' conftest.$ac_ext >&5
35089
35090ac_cv_func_socket=no
35091fi
ac1cb8d3
VS
35092rm -f conftest.err conftest.$ac_objext \
35093 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35094fi
35095echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
35096echo "${ECHO_T}$ac_cv_func_socket" >&6
35097if test $ac_cv_func_socket = yes; then
35098 :
35099else
35100
35101 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
35102echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
35103if test "${ac_cv_lib_socket_socket+set}" = set; then
35104 echo $ECHO_N "(cached) $ECHO_C" >&6
35105else
35106 ac_check_lib_save_LIBS=$LIBS
35107LIBS="-lsocket $LIBS"
35108cat >conftest.$ac_ext <<_ACEOF
35109/* confdefs.h. */
35110_ACEOF
35111cat confdefs.h >>conftest.$ac_ext
35112cat >>conftest.$ac_ext <<_ACEOF
35113/* end confdefs.h. */
35114
35115/* Override any gcc2 internal prototype to avoid an error. */
35116#ifdef __cplusplus
35117extern "C"
35118#endif
35119/* We use char because int might match the return type of a gcc2
35120 builtin and then its argument prototype would still apply. */
35121char socket ();
35122int
35123main ()
35124{
35125socket ();
35126 ;
35127 return 0;
35128}
35129_ACEOF
35130rm -f conftest.$ac_objext conftest$ac_exeext
35131if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35132 (eval $ac_link) 2>conftest.er1
a848cd7e 35133 ac_status=$?
ac1cb8d3
VS
35134 grep -v '^ *+' conftest.er1 >conftest.err
35135 rm -f conftest.er1
35136 cat conftest.err >&5
a848cd7e
SC
35137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35138 (exit $ac_status); } &&
ceec2216 35139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35141 (eval $ac_try) 2>&5
35142 ac_status=$?
35143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35144 (exit $ac_status); }; } &&
35145 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35147 (eval $ac_try) 2>&5
35148 ac_status=$?
35149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35150 (exit $ac_status); }; }; then
35151 ac_cv_lib_socket_socket=yes
35152else
35153 echo "$as_me: failed program was:" >&5
35154sed 's/^/| /' conftest.$ac_ext >&5
35155
35156ac_cv_lib_socket_socket=no
35157fi
ac1cb8d3
VS
35158rm -f conftest.err conftest.$ac_objext \
35159 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35160LIBS=$ac_check_lib_save_LIBS
35161fi
35162echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
35163echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
35164if test $ac_cv_lib_socket_socket = yes; then
35165 if test "$INET_LINK" != " -lsocket"; then
35166 INET_LINK="$INET_LINK -lsocket"
35167 fi
35168else
35169
35170 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
35171echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
35172 wxUSE_SOCKETS=no
35173
35174
35175fi
35176
35177
35178
35179fi
35180
35181 fi
35182fi
35183
35184if test "$wxUSE_SOCKETS" = "yes" ; then
35185 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
35186 ac_ext=cc
35187ac_cpp='$CXXCPP $CPPFLAGS'
35188ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35189ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35190ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35191
35192 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
35193echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
35194if test "${wx_cv_type_getsockname3+set}" = set; then
35195 echo $ECHO_N "(cached) $ECHO_C" >&6
35196else
35197
35198 cat >conftest.$ac_ext <<_ACEOF
35199/* confdefs.h. */
35200_ACEOF
35201cat confdefs.h >>conftest.$ac_ext
35202cat >>conftest.$ac_ext <<_ACEOF
35203/* end confdefs.h. */
35204
35205 #include <sys/types.h>
35206 #include <sys/socket.h>
35207
35208int
35209main ()
35210{
35211
35212 socklen_t len;
35213 getsockname(0, 0, &len);
35214
35215 ;
35216 return 0;
35217}
35218_ACEOF
35219rm -f conftest.$ac_objext
35220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35221 (eval $ac_compile) 2>conftest.er1
a848cd7e 35222 ac_status=$?
ac1cb8d3
VS
35223 grep -v '^ *+' conftest.er1 >conftest.err
35224 rm -f conftest.er1
35225 cat conftest.err >&5
a848cd7e
SC
35226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35227 (exit $ac_status); } &&
ceec2216 35228 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35230 (eval $ac_try) 2>&5
35231 ac_status=$?
35232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35233 (exit $ac_status); }; } &&
35234 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35236 (eval $ac_try) 2>&5
35237 ac_status=$?
35238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35239 (exit $ac_status); }; }; then
35240 wx_cv_type_getsockname3=socklen_t
35241else
35242 echo "$as_me: failed program was:" >&5
35243sed 's/^/| /' conftest.$ac_ext >&5
35244
35245
35246 CFLAGS_OLD="$CFLAGS"
35247 if test "$GCC" = yes ; then
35248 CFLAGS="$CFLAGS -Werror"
35249 fi
35250
35251 cat >conftest.$ac_ext <<_ACEOF
35252/* confdefs.h. */
35253_ACEOF
35254cat confdefs.h >>conftest.$ac_ext
35255cat >>conftest.$ac_ext <<_ACEOF
35256/* end confdefs.h. */
35257
35258 #include <sys/types.h>
35259 #include <sys/socket.h>
35260
35261int
35262main ()
35263{
35264
35265 size_t len;
35266 getsockname(0, 0, &len);
35267
35268 ;
35269 return 0;
35270}
35271_ACEOF
35272rm -f conftest.$ac_objext
35273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35274 (eval $ac_compile) 2>conftest.er1
a848cd7e 35275 ac_status=$?
ac1cb8d3
VS
35276 grep -v '^ *+' conftest.er1 >conftest.err
35277 rm -f conftest.er1
35278 cat conftest.err >&5
a848cd7e
SC
35279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35280 (exit $ac_status); } &&
ceec2216 35281 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35283 (eval $ac_try) 2>&5
35284 ac_status=$?
35285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35286 (exit $ac_status); }; } &&
35287 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35289 (eval $ac_try) 2>&5
35290 ac_status=$?
35291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35292 (exit $ac_status); }; }; then
35293 wx_cv_type_getsockname3=size_t
35294else
35295 echo "$as_me: failed program was:" >&5
35296sed 's/^/| /' conftest.$ac_ext >&5
35297
35298cat >conftest.$ac_ext <<_ACEOF
35299/* confdefs.h. */
35300_ACEOF
35301cat confdefs.h >>conftest.$ac_ext
35302cat >>conftest.$ac_ext <<_ACEOF
35303/* end confdefs.h. */
35304
35305 #include <sys/types.h>
35306 #include <sys/socket.h>
35307
35308int
35309main ()
35310{
35311
35312 int len;
35313 getsockname(0, 0, &len);
35314
35315 ;
35316 return 0;
35317}
35318_ACEOF
35319rm -f conftest.$ac_objext
35320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35321 (eval $ac_compile) 2>conftest.er1
a848cd7e 35322 ac_status=$?
ac1cb8d3
VS
35323 grep -v '^ *+' conftest.er1 >conftest.err
35324 rm -f conftest.er1
35325 cat conftest.err >&5
a848cd7e
SC
35326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35327 (exit $ac_status); } &&
ceec2216 35328 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35330 (eval $ac_try) 2>&5
35331 ac_status=$?
35332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35333 (exit $ac_status); }; } &&
35334 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35336 (eval $ac_try) 2>&5
35337 ac_status=$?
35338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35339 (exit $ac_status); }; }; then
35340 wx_cv_type_getsockname3=int
35341else
35342 echo "$as_me: failed program was:" >&5
35343sed 's/^/| /' conftest.$ac_ext >&5
35344
35345wx_cv_type_getsockname3=unknown
35346
35347fi
ac1cb8d3 35348rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35349
35350fi
ac1cb8d3 35351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35352
35353 CFLAGS="$CFLAGS_OLD"
35354
35355
35356fi
ac1cb8d3 35357rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35358
35359fi
35360echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
35361echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
35362
35363 if test "$wx_cv_type_getsockname3" = "unknown"; then
35364 wxUSE_SOCKETS=no
35365 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
35366echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
35367 else
35368 cat >>confdefs.h <<_ACEOF
35369#define SOCKLEN_T $wx_cv_type_getsockname3
35370_ACEOF
35371
35372 fi
4d4ff94c
VZ
35373 ac_ext=c
35374ac_cpp='$CPP $CPPFLAGS'
35375ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35376ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35377ac_compiler_gnu=$ac_cv_c_compiler_gnu
35378
a848cd7e
SC
35379 fi
35380fi
35381
35382if test "$wxUSE_SOCKETS" = "yes" ; then
35383 cat >>confdefs.h <<\_ACEOF
35384#define wxUSE_SOCKETS 1
35385_ACEOF
35386
35387 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
35388fi
35389
35390if test "$wxUSE_PROTOCOL" = "yes"; then
35391 if test "$wxUSE_SOCKETS" != "yes"; then
35392 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
35393echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
35394 wxUSE_PROTOCOL=no
35395 fi
35396fi
35397
35398if test "$wxUSE_PROTOCOL" = "yes"; then
35399 cat >>confdefs.h <<\_ACEOF
35400#define wxUSE_PROTOCOL 1
35401_ACEOF
35402
35403
35404 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
35405 cat >>confdefs.h <<\_ACEOF
35406#define wxUSE_PROTOCOL_HTTP 1
35407_ACEOF
35408
35409 fi
35410 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
35411 cat >>confdefs.h <<\_ACEOF
35412#define wxUSE_PROTOCOL_FTP 1
35413_ACEOF
35414
35415 fi
35416 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
35417 cat >>confdefs.h <<\_ACEOF
35418#define wxUSE_PROTOCOL_FILE 1
35419_ACEOF
35420
35421 fi
35422else
35423 if test "$wxUSE_FS_INET" = "yes"; then
35424 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
35425echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
35426 wxUSE_FS_INET="no"
35427 fi
35428fi
35429
35430if test "$wxUSE_URL" = "yes"; then
35431 if test "$wxUSE_PROTOCOL" != "yes"; then
35432 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
35433echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
35434 wxUSE_URL=no
35435 fi
35436 if test "$wxUSE_URL" = "yes"; then
35437 cat >>confdefs.h <<\_ACEOF
35438#define wxUSE_URL 1
35439_ACEOF
35440
35441 fi
35442fi
35443
35444if test "$wxUSE_FS_INET" = "yes"; then
35445 cat >>confdefs.h <<\_ACEOF
35446#define wxUSE_FS_INET 1
35447_ACEOF
35448
35449fi
35450
35451
35452if test "$wxUSE_GUI" = "yes"; then
35453
35454 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
35455 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
35456echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
35457 wxUSE_JOYSTICK=no
35458 fi
35459
35460 if test "$TOOLKIT" != "MSW"; then
35461 if test "$wxUSE_JOYSTICK" = "yes"; then
35462
35463for ac_header in linux/joystick.h
35464do
35465as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35466if eval "test \"\${$as_ac_Header+set}\" = set"; then
35467 echo "$as_me:$LINENO: checking for $ac_header" >&5
35468echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35469if eval "test \"\${$as_ac_Header+set}\" = set"; then
35470 echo $ECHO_N "(cached) $ECHO_C" >&6
35471fi
35472echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35473echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35474else
35475 # Is the header compilable?
35476echo "$as_me:$LINENO: checking $ac_header usability" >&5
35477echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35478cat >conftest.$ac_ext <<_ACEOF
35479/* confdefs.h. */
35480_ACEOF
35481cat confdefs.h >>conftest.$ac_ext
35482cat >>conftest.$ac_ext <<_ACEOF
35483/* end confdefs.h. */
35484$ac_includes_default
35485#include <$ac_header>
35486_ACEOF
35487rm -f conftest.$ac_objext
35488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35489 (eval $ac_compile) 2>conftest.er1
a848cd7e 35490 ac_status=$?
ac1cb8d3
VS
35491 grep -v '^ *+' conftest.er1 >conftest.err
35492 rm -f conftest.er1
35493 cat conftest.err >&5
a848cd7e
SC
35494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35495 (exit $ac_status); } &&
ceec2216 35496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35498 (eval $ac_try) 2>&5
35499 ac_status=$?
35500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35501 (exit $ac_status); }; } &&
35502 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35504 (eval $ac_try) 2>&5
35505 ac_status=$?
35506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35507 (exit $ac_status); }; }; then
35508 ac_header_compiler=yes
35509else
35510 echo "$as_me: failed program was:" >&5
35511sed 's/^/| /' conftest.$ac_ext >&5
35512
35513ac_header_compiler=no
35514fi
ac1cb8d3 35515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35516echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35517echo "${ECHO_T}$ac_header_compiler" >&6
35518
35519# Is the header present?
35520echo "$as_me:$LINENO: checking $ac_header presence" >&5
35521echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35522cat >conftest.$ac_ext <<_ACEOF
35523/* confdefs.h. */
35524_ACEOF
35525cat confdefs.h >>conftest.$ac_ext
35526cat >>conftest.$ac_ext <<_ACEOF
35527/* end confdefs.h. */
35528#include <$ac_header>
35529_ACEOF
35530if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35531 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35532 ac_status=$?
35533 grep -v '^ *+' conftest.er1 >conftest.err
35534 rm -f conftest.er1
35535 cat conftest.err >&5
35536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35537 (exit $ac_status); } >/dev/null; then
35538 if test -s conftest.err; then
35539 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 35540 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
35541 else
35542 ac_cpp_err=
35543 fi
35544else
35545 ac_cpp_err=yes
35546fi
35547if test -z "$ac_cpp_err"; then
35548 ac_header_preproc=yes
35549else
35550 echo "$as_me: failed program was:" >&5
35551sed 's/^/| /' conftest.$ac_ext >&5
35552
35553 ac_header_preproc=no
35554fi
35555rm -f conftest.err conftest.$ac_ext
35556echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35557echo "${ECHO_T}$ac_header_preproc" >&6
35558
35559# So? What about this header?
ac1cb8d3
VS
35560case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35561 yes:no: )
a848cd7e
SC
35562 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35563echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
35564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35565echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35566 ac_header_preproc=yes
a848cd7e 35567 ;;
ac1cb8d3 35568 no:yes:* )
a848cd7e
SC
35569 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35570echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
35571 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35572echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35573 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35574echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35575 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35576echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
35577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35578echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
35579 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35580echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
35581 (
35582 cat <<\_ASBOX
ac1cb8d3
VS
35583## ----------------------------------------- ##
35584## Report this to wx-dev@lists.wxwidgets.org ##
35585## ----------------------------------------- ##
a848cd7e
SC
35586_ASBOX
35587 ) |
35588 sed "s/^/$as_me: WARNING: /" >&2
35589 ;;
35590esac
35591echo "$as_me:$LINENO: checking for $ac_header" >&5
35592echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35593if eval "test \"\${$as_ac_Header+set}\" = set"; then
35594 echo $ECHO_N "(cached) $ECHO_C" >&6
35595else
ac1cb8d3 35596 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
35597fi
35598echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35599echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35600
35601fi
35602if test `eval echo '${'$as_ac_Header'}'` = yes; then
35603 cat >>confdefs.h <<_ACEOF
35604#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35605_ACEOF
35606
35607fi
35608
35609done
35610
35611 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
35612 wxUSE_JOYSTICK=no
35613 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
35614echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
35615 fi
35616 fi
35617 fi
35618
35619 if test "$wxUSE_JOYSTICK" = "yes"; then
35620 cat >>confdefs.h <<\_ACEOF
35621#define wxUSE_JOYSTICK 1
35622_ACEOF
35623
35624 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
35625 fi
35626fi
35627
35628
35629
35630if test "$wxUSE_FONTMAP" = "yes" ; then
35631 cat >>confdefs.h <<\_ACEOF
35632#define wxUSE_FONTMAP 1
35633_ACEOF
35634
35635fi
35636
35637if test "$wxUSE_UNICODE" = "yes" ; then
35638 cat >>confdefs.h <<\_ACEOF
35639#define wxUSE_UNICODE 1
35640_ACEOF
35641
35642
35643 if test "$USE_WIN32" != 1; then
35644 wxUSE_UNICODE_MSLU=no
35645 fi
35646
35647 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
35648 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
35649echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
35650if test "${ac_cv_lib_unicows_main+set}" = set; then
35651 echo $ECHO_N "(cached) $ECHO_C" >&6
35652else
35653 ac_check_lib_save_LIBS=$LIBS
35654LIBS="-lunicows $LIBS"
35655cat >conftest.$ac_ext <<_ACEOF
35656/* confdefs.h. */
35657_ACEOF
35658cat confdefs.h >>conftest.$ac_ext
35659cat >>conftest.$ac_ext <<_ACEOF
35660/* end confdefs.h. */
35661
35662
35663int
35664main ()
35665{
35666main ();
35667 ;
35668 return 0;
35669}
35670_ACEOF
35671rm -f conftest.$ac_objext conftest$ac_exeext
35672if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35673 (eval $ac_link) 2>conftest.er1
a848cd7e 35674 ac_status=$?
ac1cb8d3
VS
35675 grep -v '^ *+' conftest.er1 >conftest.err
35676 rm -f conftest.er1
35677 cat conftest.err >&5
a848cd7e
SC
35678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35679 (exit $ac_status); } &&
ceec2216 35680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35682 (eval $ac_try) 2>&5
35683 ac_status=$?
35684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35685 (exit $ac_status); }; } &&
35686 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35688 (eval $ac_try) 2>&5
35689 ac_status=$?
35690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35691 (exit $ac_status); }; }; then
35692 ac_cv_lib_unicows_main=yes
35693else
35694 echo "$as_me: failed program was:" >&5
35695sed 's/^/| /' conftest.$ac_ext >&5
35696
35697ac_cv_lib_unicows_main=no
35698fi
ac1cb8d3
VS
35699rm -f conftest.err conftest.$ac_objext \
35700 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35701LIBS=$ac_check_lib_save_LIBS
35702fi
35703echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
35704echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
35705if test $ac_cv_lib_unicows_main = yes; then
35706
35707 cat >>confdefs.h <<\_ACEOF
35708#define wxUSE_UNICODE_MSLU 1
35709_ACEOF
35710
35711
35712else
35713
35714 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
35715 Applications will only run on Windows NT/2000/XP!" >&5
35716echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
35717 Applications will only run on Windows NT/2000/XP!" >&2;}
35718 wxUSE_UNICODE_MSLU=no
35719
35720fi
35721
35722 fi
35723fi
35724
35725if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
35726 cat >>confdefs.h <<\_ACEOF
35727#define wxUSE_EXPERIMENTAL_PRINTF 1
35728_ACEOF
35729
35730fi
35731
35732
35733if test "$wxUSE_POSTSCRIPT" = "yes" ; then
35734 cat >>confdefs.h <<\_ACEOF
35735#define wxUSE_POSTSCRIPT 1
35736_ACEOF
35737
35738fi
35739
35740cat >>confdefs.h <<\_ACEOF
35741#define wxUSE_AFM_FOR_POSTSCRIPT 1
35742_ACEOF
35743
35744
35745cat >>confdefs.h <<\_ACEOF
35746#define wxUSE_NORMALIZED_PS_FONTS 1
35747_ACEOF
35748
35749
35750
35751if test "$wxUSE_CONSTRAINTS" = "yes"; then
35752 cat >>confdefs.h <<\_ACEOF
35753#define wxUSE_CONSTRAINTS 1
35754_ACEOF
35755
35756 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
35757fi
35758
8a7b1113
VZ
35759if test "$wxUSE_MDI" = "yes"; then
35760 cat >>confdefs.h <<\_ACEOF
35761#define wxUSE_MDI 1
35762_ACEOF
35763
35764
35765 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
35766 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
35767#define wxUSE_MDI_ARCHITECTURE 1
35768_ACEOF
35769
8a7b1113
VZ
35770 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
35771 fi
a848cd7e
SC
35772fi
35773
35774if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
35775 cat >>confdefs.h <<\_ACEOF
35776#define wxUSE_DOC_VIEW_ARCHITECTURE 1
35777_ACEOF
35778
35779 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
35780 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
35781 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
35782 fi
35783fi
35784
35785if test "$wxUSE_HELP" = "yes"; then
35786 cat >>confdefs.h <<\_ACEOF
35787#define wxUSE_HELP 1
35788_ACEOF
35789
35790 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
35791
35792 if test "$wxUSE_MSW" = 1; then
35793 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
35794 cat >>confdefs.h <<\_ACEOF
35795#define wxUSE_MS_HTML_HELP 1
35796_ACEOF
35797
35798 fi
35799 fi
35800
35801 if test "$wxUSE_WXHTML_HELP" = "yes"; then
35802 if test "$wxUSE_HTML" = "yes"; then
35803 cat >>confdefs.h <<\_ACEOF
35804#define wxUSE_WXHTML_HELP 1
35805_ACEOF
35806
35807 else
35808 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
35809echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
35810 wxUSE_WXHTML_HELP=no
35811 fi
35812 fi
35813fi
35814
35815if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
35816 if test "$wxUSE_CONSTRAINTS" != "yes"; then
35817 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
35818echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
35819 else
35820 cat >>confdefs.h <<\_ACEOF
35821#define wxUSE_PRINTING_ARCHITECTURE 1
35822_ACEOF
35823
35824 fi
35825 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
35826fi
35827
35828if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
35829 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
35830echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
35831 { (exit 1); exit 1; }; }
35832fi
35833
35834
35835if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
35836 -o "$wxUSE_CLIPBOARD" = "yes" \
35837 -o "$wxUSE_OLE" = "yes" \
35838 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
35839
35840for ac_header in ole2.h
35841do
35842as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35843if eval "test \"\${$as_ac_Header+set}\" = set"; then
35844 echo "$as_me:$LINENO: checking for $ac_header" >&5
35845echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35846if eval "test \"\${$as_ac_Header+set}\" = set"; then
35847 echo $ECHO_N "(cached) $ECHO_C" >&6
35848fi
35849echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35850echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35851else
35852 # Is the header compilable?
35853echo "$as_me:$LINENO: checking $ac_header usability" >&5
35854echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35855cat >conftest.$ac_ext <<_ACEOF
35856/* confdefs.h. */
35857_ACEOF
35858cat confdefs.h >>conftest.$ac_ext
35859cat >>conftest.$ac_ext <<_ACEOF
35860/* end confdefs.h. */
35861$ac_includes_default
35862#include <$ac_header>
35863_ACEOF
35864rm -f conftest.$ac_objext
35865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35866 (eval $ac_compile) 2>conftest.er1
a848cd7e 35867 ac_status=$?
ac1cb8d3
VS
35868 grep -v '^ *+' conftest.er1 >conftest.err
35869 rm -f conftest.er1
35870 cat conftest.err >&5
a848cd7e
SC
35871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35872 (exit $ac_status); } &&
ceec2216 35873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35875 (eval $ac_try) 2>&5
35876 ac_status=$?
35877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35878 (exit $ac_status); }; } &&
35879 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35881 (eval $ac_try) 2>&5
35882 ac_status=$?
35883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35884 (exit $ac_status); }; }; then
35885 ac_header_compiler=yes
35886else
35887 echo "$as_me: failed program was:" >&5
35888sed 's/^/| /' conftest.$ac_ext >&5
35889
35890ac_header_compiler=no
35891fi
ac1cb8d3 35892rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35893echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35894echo "${ECHO_T}$ac_header_compiler" >&6
35895
35896# Is the header present?
35897echo "$as_me:$LINENO: checking $ac_header presence" >&5
35898echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35899cat >conftest.$ac_ext <<_ACEOF
35900/* confdefs.h. */
35901_ACEOF
35902cat confdefs.h >>conftest.$ac_ext
35903cat >>conftest.$ac_ext <<_ACEOF
35904/* end confdefs.h. */
35905#include <$ac_header>
35906_ACEOF
35907if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35908 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35909 ac_status=$?
35910 grep -v '^ *+' conftest.er1 >conftest.err
35911 rm -f conftest.er1
35912 cat conftest.err >&5
35913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35914 (exit $ac_status); } >/dev/null; then
35915 if test -s conftest.err; then
35916 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 35917 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
35918 else
35919 ac_cpp_err=
35920 fi
35921else
35922 ac_cpp_err=yes
35923fi
35924if test -z "$ac_cpp_err"; then
35925 ac_header_preproc=yes
35926else
35927 echo "$as_me: failed program was:" >&5
35928sed 's/^/| /' conftest.$ac_ext >&5
35929
35930 ac_header_preproc=no
35931fi
35932rm -f conftest.err conftest.$ac_ext
35933echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35934echo "${ECHO_T}$ac_header_preproc" >&6
35935
35936# So? What about this header?
ac1cb8d3
VS
35937case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35938 yes:no: )
a848cd7e
SC
35939 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35940echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
35941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35942echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35943 ac_header_preproc=yes
a848cd7e 35944 ;;
ac1cb8d3 35945 no:yes:* )
a848cd7e
SC
35946 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35947echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
35948 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35949echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35950 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35951echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35952 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35953echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
35954 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35955echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
35956 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35957echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
35958 (
35959 cat <<\_ASBOX
ac1cb8d3
VS
35960## ----------------------------------------- ##
35961## Report this to wx-dev@lists.wxwidgets.org ##
35962## ----------------------------------------- ##
a848cd7e
SC
35963_ASBOX
35964 ) |
35965 sed "s/^/$as_me: WARNING: /" >&2
35966 ;;
35967esac
35968echo "$as_me:$LINENO: checking for $ac_header" >&5
35969echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35970if eval "test \"\${$as_ac_Header+set}\" = set"; then
35971 echo $ECHO_N "(cached) $ECHO_C" >&6
35972else
ac1cb8d3 35973 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
35974fi
35975echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35976echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35977
35978fi
35979if test `eval echo '${'$as_ac_Header'}'` = yes; then
35980 cat >>confdefs.h <<_ACEOF
35981#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35982_ACEOF
35983
35984fi
35985
35986done
35987
35988
35989 if test "$ac_cv_header_ole2_h" = "yes" ; then
35990 if test "$GCC" = yes ; then
35991
35992
35993 ac_ext=cc
35994ac_cpp='$CXXCPP $CPPFLAGS'
35995ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35996ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35997ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35998
35999
36000 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
36001echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
36002 cat >conftest.$ac_ext <<_ACEOF
36003/* confdefs.h. */
36004_ACEOF
36005cat confdefs.h >>conftest.$ac_ext
36006cat >>conftest.$ac_ext <<_ACEOF
36007/* end confdefs.h. */
36008#include <windows.h>
36009 #include <ole2.h>
36010int
36011main ()
36012{
36013
36014 ;
36015 return 0;
36016}
36017_ACEOF
36018rm -f conftest.$ac_objext
36019if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36020 (eval $ac_compile) 2>conftest.er1
a848cd7e 36021 ac_status=$?
ac1cb8d3
VS
36022 grep -v '^ *+' conftest.er1 >conftest.err
36023 rm -f conftest.er1
36024 cat conftest.err >&5
a848cd7e
SC
36025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36026 (exit $ac_status); } &&
ceec2216 36027 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36029 (eval $ac_try) 2>&5
36030 ac_status=$?
36031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36032 (exit $ac_status); }; } &&
36033 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36035 (eval $ac_try) 2>&5
36036 ac_status=$?
36037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36038 (exit $ac_status); }; }; then
36039 echo "$as_me:$LINENO: result: no" >&5
36040echo "${ECHO_T}no" >&6
36041else
36042 echo "$as_me: failed program was:" >&5
36043sed 's/^/| /' conftest.$ac_ext >&5
36044
36045echo "$as_me:$LINENO: result: yes" >&5
36046echo "${ECHO_T}yes" >&6
36047 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
36048fi
ac1cb8d3 36049rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36050 ac_ext=c
36051ac_cpp='$CPP $CPPFLAGS'
36052ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36053ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36054ac_compiler_gnu=$ac_cv_c_compiler_gnu
36055
a848cd7e
SC
36056 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
36057 if test "$wxUSE_OLE" = "yes" ; then
36058 cat >>confdefs.h <<\_ACEOF
36059#define wxUSE_OLE 1
36060_ACEOF
36061
36062 fi
36063 fi
36064
36065 if test "$wxUSE_DATAOBJ" = "yes" ; then
36066 cat >>confdefs.h <<\_ACEOF
36067#define wxUSE_DATAOBJ 1
36068_ACEOF
36069
36070 fi
36071 else
36072 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
36073echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
36074
36075 wxUSE_CLIPBOARD=no
36076 wxUSE_DRAG_AND_DROP=no
36077 wxUSE_DATAOBJ=no
36078 wxUSE_OLE=no
36079 fi
36080
36081 if test "$wxUSE_METAFILE" = "yes"; then
36082 cat >>confdefs.h <<\_ACEOF
36083#define wxUSE_METAFILE 1
36084_ACEOF
36085
36086
36087 cat >>confdefs.h <<\_ACEOF
36088#define wxUSE_ENH_METAFILE 1
36089_ACEOF
36090
36091 fi
36092fi
36093
36094if test "$wxUSE_IPC" = "yes"; then
36095 if test "$wxUSE_SOCKETS" != "yes"; then
77ffb593
JS
36096 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
36097echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
a848cd7e
SC
36098 fi
36099
36100 cat >>confdefs.h <<\_ACEOF
36101#define wxUSE_IPC 1
36102_ACEOF
36103
36104fi
36105
36106if test "$wxUSE_CLIPBOARD" = "yes"; then
36107 if test "$wxUSE_MGL" = 1; then
36108 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
36109echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
36110 wxUSE_CLIPBOARD=no
36111 fi
36112
36113 if test "$wxUSE_CLIPBOARD" = "yes"; then
36114 cat >>confdefs.h <<\_ACEOF
36115#define wxUSE_CLIPBOARD 1
36116_ACEOF
36117
36118
36119 cat >>confdefs.h <<\_ACEOF
36120#define wxUSE_DATAOBJ 1
36121_ACEOF
36122
36123 fi
36124fi
36125
36126if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
36127 if test "$wxUSE_GTK" = 1; then
36128 if test "$WXGTK12" != 1; then
36129 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
36130echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
36131 wxUSE_DRAG_AND_DROP=no
36132 fi
36133 fi
36134
36135 if test "$wxUSE_MOTIF" = 1; then
36136 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
36137echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
36138 wxUSE_DRAG_AND_DROP=no
36139 fi
36140
36141 if test "$wxUSE_X11" = 1; then
36142 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
36143echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
36144 wxUSE_DRAG_AND_DROP=no
36145 fi
36146
36147 if test "$wxUSE_MGL" = 1; then
36148 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
36149echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
36150 wxUSE_DRAG_AND_DROP=no
36151 fi
36152
36153 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
36154 cat >>confdefs.h <<\_ACEOF
36155#define wxUSE_DRAG_AND_DROP 1
36156_ACEOF
36157
36158 fi
36159
36160fi
36161
36162if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
36163 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
36164fi
36165
36166if test "$wxUSE_SPLINES" = "yes" ; then
36167 cat >>confdefs.h <<\_ACEOF
36168#define wxUSE_SPLINES 1
36169_ACEOF
36170
36171fi
36172
36173
36174USES_CONTROLS=0
36175if test "$wxUSE_CONTROLS" = "yes"; then
36176 USES_CONTROLS=1
36177fi
36178
36179if test "$wxUSE_ACCEL" = "yes"; then
36180 cat >>confdefs.h <<\_ACEOF
36181#define wxUSE_ACCEL 1
36182_ACEOF
36183
36184 USES_CONTROLS=1
36185fi
36186
36187if test "$wxUSE_BUTTON" = "yes"; then
36188 cat >>confdefs.h <<\_ACEOF
36189#define wxUSE_BUTTON 1
36190_ACEOF
36191
36192 USES_CONTROLS=1
36193fi
36194
36195if test "$wxUSE_BMPBUTTON" = "yes"; then
36196 cat >>confdefs.h <<\_ACEOF
36197#define wxUSE_BMPBUTTON 1
36198_ACEOF
36199
36200 USES_CONTROLS=1
36201fi
36202
36203if test "$wxUSE_CALCTRL" = "yes"; then
36204 cat >>confdefs.h <<\_ACEOF
36205#define wxUSE_CALENDARCTRL 1
36206_ACEOF
36207
36208 USES_CONTROLS=1
36209 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
36210fi
36211
36212if test "$wxUSE_CARET" = "yes"; then
36213 cat >>confdefs.h <<\_ACEOF
36214#define wxUSE_CARET 1
36215_ACEOF
36216
36217 USES_CONTROLS=1
36218 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
36219fi
36220
36221if test "$wxUSE_COMBOBOX" = "yes"; then
36222 cat >>confdefs.h <<\_ACEOF
36223#define wxUSE_COMBOBOX 1
36224_ACEOF
36225
36226 USES_CONTROLS=1
36227fi
36228
36229if test "$wxUSE_CHOICE" = "yes"; then
36230 cat >>confdefs.h <<\_ACEOF
36231#define wxUSE_CHOICE 1
36232_ACEOF
36233
36234 USES_CONTROLS=1
36235fi
36236
92bbdbcd
WS
36237if test "$wxUSE_CHOICEBOOK" = "yes"; then
36238 cat >>confdefs.h <<\_ACEOF
36239#define wxUSE_CHOICEBOOK 1
36240_ACEOF
36241
36242 USES_CONTROLS=1
36243fi
36244
a848cd7e
SC
36245if test "$wxUSE_CHECKBOX" = "yes"; then
36246 cat >>confdefs.h <<\_ACEOF
36247#define wxUSE_CHECKBOX 1
36248_ACEOF
36249
36250 USES_CONTROLS=1
36251fi
36252
36253if test "$wxUSE_CHECKLST" = "yes"; then
36254 cat >>confdefs.h <<\_ACEOF
36255#define wxUSE_CHECKLISTBOX 1
36256_ACEOF
36257
36258 USES_CONTROLS=1
36259 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
36260fi
36261
36262if test "$wxUSE_DISPLAY" = "yes"; then
36263 cat >>confdefs.h <<\_ACEOF
36264#define wxUSE_DISPLAY 1
36265_ACEOF
36266
36267 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
36268fi
36269
36270if test "$wxUSE_GAUGE" = "yes"; then
36271 cat >>confdefs.h <<\_ACEOF
36272#define wxUSE_GAUGE 1
36273_ACEOF
36274
36275 USES_CONTROLS=1
36276fi
36277
36278if test "$wxUSE_GRID" = "yes"; then
36279 cat >>confdefs.h <<\_ACEOF
36280#define wxUSE_GRID 1
36281_ACEOF
36282
36283 USES_CONTROLS=1
36284 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
36285fi
36286
36287if test "$wxUSE_IMAGLIST" = "yes"; then
36288 cat >>confdefs.h <<\_ACEOF
36289#define wxUSE_IMAGLIST 1
36290_ACEOF
36291
36292fi
36293
36294if test "$wxUSE_LISTBOOK" = "yes"; then
36295 cat >>confdefs.h <<\_ACEOF
36296#define wxUSE_LISTBOOK 1
36297_ACEOF
36298
36299 USES_CONTROLS=1
36300fi
36301
36302if test "$wxUSE_LISTBOX" = "yes"; then
36303 cat >>confdefs.h <<\_ACEOF
36304#define wxUSE_LISTBOX 1
36305_ACEOF
36306
36307 USES_CONTROLS=1
36308fi
36309
36310if test "$wxUSE_LISTCTRL" = "yes"; then
36311 if test "$wxUSE_IMAGLIST" = "yes"; then
36312 cat >>confdefs.h <<\_ACEOF
36313#define wxUSE_LISTCTRL 1
36314_ACEOF
36315
36316 USES_CONTROLS=1
36317 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
36318 else
36319 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
36320echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
36321 fi
36322fi
36323
36324if test "$wxUSE_NOTEBOOK" = "yes"; then
36325 cat >>confdefs.h <<\_ACEOF
36326#define wxUSE_NOTEBOOK 1
36327_ACEOF
36328
36329 USES_CONTROLS=1
36330 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
36331fi
36332
36333
36334if test "$wxUSE_RADIOBOX" = "yes"; then
36335 cat >>confdefs.h <<\_ACEOF
36336#define wxUSE_RADIOBOX 1
36337_ACEOF
36338
36339 USES_CONTROLS=1
36340fi
36341
36342if test "$wxUSE_RADIOBTN" = "yes"; then
36343 cat >>confdefs.h <<\_ACEOF
36344#define wxUSE_RADIOBTN 1
36345_ACEOF
36346
36347 USES_CONTROLS=1
36348fi
36349
36350if test "$wxUSE_SASH" = "yes"; then
36351 cat >>confdefs.h <<\_ACEOF
36352#define wxUSE_SASH 1
36353_ACEOF
36354
36355 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
36356fi
36357
36358if test "$wxUSE_SCROLLBAR" = "yes"; then
36359 cat >>confdefs.h <<\_ACEOF
36360#define wxUSE_SCROLLBAR 1
36361_ACEOF
36362
36363 USES_CONTROLS=1
36364 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
36365fi
36366
36367if test "$wxUSE_SLIDER" = "yes"; then
36368 cat >>confdefs.h <<\_ACEOF
36369#define wxUSE_SLIDER 1
36370_ACEOF
36371
36372 USES_CONTROLS=1
36373fi
36374
36375if test "$wxUSE_SPINBTN" = "yes"; then
36376 cat >>confdefs.h <<\_ACEOF
36377#define wxUSE_SPINBTN 1
36378_ACEOF
36379
36380 USES_CONTROLS=1
36381fi
36382
36383if test "$wxUSE_SPINCTRL" = "yes"; then
36384 cat >>confdefs.h <<\_ACEOF
36385#define wxUSE_SPINCTRL 1
36386_ACEOF
36387
36388 USES_CONTROLS=1
36389fi
36390
36391if test "$wxUSE_SPLITTER" = "yes"; then
36392 cat >>confdefs.h <<\_ACEOF
36393#define wxUSE_SPLITTER 1
36394_ACEOF
36395
36396 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
36397fi
36398
36399if test "$wxUSE_STATBMP" = "yes"; then
36400 cat >>confdefs.h <<\_ACEOF
36401#define wxUSE_STATBMP 1
36402_ACEOF
36403
36404 USES_CONTROLS=1
36405fi
36406
36407if test "$wxUSE_STATBOX" = "yes"; then
36408 cat >>confdefs.h <<\_ACEOF
36409#define wxUSE_STATBOX 1
36410_ACEOF
36411
36412 USES_CONTROLS=1
36413fi
36414
36415if test "$wxUSE_STATTEXT" = "yes"; then
36416 cat >>confdefs.h <<\_ACEOF
36417#define wxUSE_STATTEXT 1
36418_ACEOF
36419
36420 USES_CONTROLS=1
36421fi
36422
36423if test "$wxUSE_STATLINE" = "yes"; then
36424 cat >>confdefs.h <<\_ACEOF
36425#define wxUSE_STATLINE 1
36426_ACEOF
36427
36428 USES_CONTROLS=1
36429fi
36430
36431if test "$wxUSE_STATUSBAR" = "yes"; then
36432 cat >>confdefs.h <<\_ACEOF
36433#define wxUSE_STATUSBAR 1
36434_ACEOF
36435
36436 USES_CONTROLS=1
36437
36438 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
36439fi
36440
36441if test "$wxUSE_TABDIALOG" = "yes"; then
36442 cat >>confdefs.h <<\_ACEOF
36443#define wxUSE_TAB_DIALOG 1
36444_ACEOF
36445
36446 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
36447fi
36448
36449if test "$wxUSE_TEXTCTRL" = "yes"; then
36450 cat >>confdefs.h <<\_ACEOF
36451#define wxUSE_TEXTCTRL 1
36452_ACEOF
36453
36454 USES_CONTROLS=1
36455 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
36456fi
36457
36458if test "$wxUSE_TOGGLEBTN" = "yes"; then
36459 if test "$wxUSE_COCOA" = 1 ; then
36460 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
36461echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
36462 wxUSE_TOGGLEBTN=no
bdcade0a
MB
36463 else
36464 if test "$wxUSE_PM" = 1; then
36465 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5
36466echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;}
36467 wxUSE_TOGGLEBTN=no
36468 fi
a848cd7e
SC
36469 fi
36470 if test "$wxUSE_UNIVERSAL" = "yes"; then
36471 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
36472echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
36473 wxUSE_TOGGLEBTN=no
36474 fi
36475
36476 if test "$wxUSE_TOGGLEBTN" = "yes"; then
36477 cat >>confdefs.h <<\_ACEOF
36478#define wxUSE_TOGGLEBTN 1
36479_ACEOF
36480
36481 USES_CONTROLS=1
36482 fi
36483fi
36484
36485if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
36486 cat >>confdefs.h <<\_ACEOF
36487#define wxUSE_TOOLBAR_SIMPLE 1
36488_ACEOF
36489
36490 wxUSE_TOOLBAR="yes"
36491 USES_CONTROLS=1
36492fi
36493
36494if test "$wxUSE_TOOLBAR" = "yes"; then
36495 cat >>confdefs.h <<\_ACEOF
36496#define wxUSE_TOOLBAR 1
36497_ACEOF
36498
36499 USES_CONTROLS=1
36500
36501 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
36502 wxUSE_TOOLBAR_NATIVE="yes"
36503 fi
36504
36505 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
36506 cat >>confdefs.h <<\_ACEOF
36507#define wxUSE_TOOLBAR_NATIVE 1
36508_ACEOF
36509
36510 USES_CONTROLS=1
36511 fi
36512
36513 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
36514fi
36515
36516if test "$wxUSE_TOOLTIPS" = "yes"; then
36517 if test "$wxUSE_MOTIF" = 1; then
36518 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
36519echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
36520 else
36521 if test "$wxUSE_UNIVERSAL" = "yes"; then
36522 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
36523echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
36524 else
36525 cat >>confdefs.h <<\_ACEOF
36526#define wxUSE_TOOLTIPS 1
36527_ACEOF
36528
36529 fi
36530 fi
36531fi
36532
36533if test "$wxUSE_TREECTRL" = "yes"; then
36534 if test "$wxUSE_IMAGLIST" = "yes"; then
36535 cat >>confdefs.h <<\_ACEOF
36536#define wxUSE_TREECTRL 1
36537_ACEOF
36538
36539 USES_CONTROLS=1
36540 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
36541 else
36542 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
36543echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
36544 fi
36545fi
36546
36547if test "$wxUSE_POPUPWIN" = "yes"; then
36548 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
36549 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
36550echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
36551 else
36552 if test "$wxUSE_PM" = 1; then
36553 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
36554echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
36555 else
36556 cat >>confdefs.h <<\_ACEOF
36557#define wxUSE_POPUPWIN 1
36558_ACEOF
36559
36560
36561 USES_CONTROLS=1
36562 fi
36563 fi
36564fi
36565
36566if test "$wxUSE_TIPWINDOW" = "yes"; then
36567 if test "$wxUSE_PM" = 1; then
36568 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
36569echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
36570 else
36571 cat >>confdefs.h <<\_ACEOF
36572#define wxUSE_TIPWINDOW 1
36573_ACEOF
36574
36575 fi
36576fi
36577
36578if test "$USES_CONTROLS" = 1; then
36579 cat >>confdefs.h <<\_ACEOF
36580#define wxUSE_CONTROLS 1
36581_ACEOF
36582
36583fi
36584
36585
36586if test "$wxUSE_ACCESSIBILITY" = "yes"; then
36587 cat >>confdefs.h <<\_ACEOF
36588#define wxUSE_ACCESSIBILITY 1
36589_ACEOF
36590
36591 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
36592fi
36593
36594if test "$wxUSE_DRAGIMAGE" = "yes"; then
36595 cat >>confdefs.h <<\_ACEOF
36596#define wxUSE_DRAGIMAGE 1
36597_ACEOF
36598
36599 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
36600fi
36601
36602if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
36603 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
36604 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
36605echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
36606 else
36607 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
36608#define wxUSE_EXCEPTIONS 1
36609_ACEOF
36610
07bea8f0
VS
36611 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
36612 fi
a848cd7e
SC
36613fi
36614
36615USE_HTML=0
36616if test "$wxUSE_HTML" = "yes"; then
36617 cat >>confdefs.h <<\_ACEOF
36618#define wxUSE_HTML 1
36619_ACEOF
36620
36621 USE_HTML=1
36622 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
36623 if test "$wxUSE_MAC" = 1; then
36624 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
36625 fi
a848cd7e 36626fi
646b6ec1 36627if test "$wxUSE_WEBKIT" = "yes"; then
07bea8f0
VS
36628 if test "$wxUSE_MAC" = 1; then
36629 old_CPPFLAGS="$CPPFLAGS"
36630 CPPFLAGS="$CPPFLAGS -x objective-c++"
36631 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
36632echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
36633if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
36634 echo $ECHO_N "(cached) $ECHO_C" >&6
36635else
36636 cat >conftest.$ac_ext <<_ACEOF
36637/* confdefs.h. */
36638_ACEOF
36639cat confdefs.h >>conftest.$ac_ext
36640cat >>conftest.$ac_ext <<_ACEOF
36641/* end confdefs.h. */
36642#include <Carbon/Carbon.h>
36643
36644#include <WebKit/HIWebView.h>
36645_ACEOF
36646rm -f conftest.$ac_objext
36647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36648 (eval $ac_compile) 2>conftest.er1
36649 ac_status=$?
36650 grep -v '^ *+' conftest.er1 >conftest.err
36651 rm -f conftest.er1
36652 cat conftest.err >&5
36653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36654 (exit $ac_status); } &&
ceec2216 36655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
36656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36657 (eval $ac_try) 2>&5
36658 ac_status=$?
36659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36660 (exit $ac_status); }; } &&
36661 { ac_try='test -s conftest.$ac_objext'
36662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36663 (eval $ac_try) 2>&5
36664 ac_status=$?
36665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36666 (exit $ac_status); }; }; then
36667 ac_cv_header_WebKit_HIWebView_h=yes
36668else
36669 echo "$as_me: failed program was:" >&5
36670sed 's/^/| /' conftest.$ac_ext >&5
36671
36672ac_cv_header_WebKit_HIWebView_h=no
36673fi
36674rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36675fi
36676echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
36677echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
36678if test $ac_cv_header_WebKit_HIWebView_h = yes; then
36679
36680 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
36681#define wxUSE_WEBKIT 1
36682_ACEOF
36683
07bea8f0
VS
36684 WEBKIT_LINK="-framework WebKit"
36685
36686else
36687
36688 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
36689echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
36690 wxUSE_WEBKIT=no
36691
646b6ec1
VS
36692fi
36693
07bea8f0
VS
36694
36695 CPPFLAGS="$old_CPPFLAGS"
36696 elif test "$wxUSE_COCOA" = 1; then
36697 cat >>confdefs.h <<\_ACEOF
36698#define wxUSE_WEBKIT 1
36699_ACEOF
36700
36701 else
36702 wxUSE_WEBKIT=no
36703 fi
36704fi
36705
9a8f0513
VS
36706USE_XRC=0
36707if test "$wxUSE_XRC" = "yes"; then
36708 cat >>confdefs.h <<\_ACEOF
36709#define wxUSE_XRC 1
36710_ACEOF
36711
36712 USE_XRC=1
36713 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
36714fi
07bea8f0 36715
a848cd7e
SC
36716if test "$wxUSE_MENUS" = "yes"; then
36717 cat >>confdefs.h <<\_ACEOF
36718#define wxUSE_MENUS 1
36719_ACEOF
36720
36721 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
36722fi
36723
36724if test "$wxUSE_METAFILE" = "yes"; then
36725 cat >>confdefs.h <<\_ACEOF
36726#define wxUSE_METAFILE 1
36727_ACEOF
36728
36729fi
36730
36731if test "$wxUSE_MIMETYPE" = "yes"; then
36732 cat >>confdefs.h <<\_ACEOF
36733#define wxUSE_MIMETYPE 1
36734_ACEOF
36735
36736fi
36737
36738if test "$wxUSE_MINIFRAME" = "yes"; then
36739 cat >>confdefs.h <<\_ACEOF
36740#define wxUSE_MINIFRAME 1
36741_ACEOF
36742
36743 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
36744fi
36745
36746if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
36747 cat >>confdefs.h <<\_ACEOF
36748#define wxUSE_SYSTEM_OPTIONS 1
36749_ACEOF
36750
36751 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
36752 "$TOOLKIT" = "MOTIF"; then
36753 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
36754 fi
36755fi
36756
36757
36758if test "$wxUSE_VALIDATORS" = "yes"; then
36759 cat >>confdefs.h <<\_ACEOF
36760#define wxUSE_VALIDATORS 1
36761_ACEOF
36762
36763 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
36764fi
36765
36766if test "$wxUSE_PALETTE" = "yes" ; then
36767 cat >>confdefs.h <<\_ACEOF
36768#define wxUSE_PALETTE 1
36769_ACEOF
36770
36771fi
36772
36773if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
36774 LIBS=" -lunicows $LIBS"
36775fi
36776
36777
36778if test "$wxUSE_IMAGE" = "yes" ; then
36779 cat >>confdefs.h <<\_ACEOF
36780#define wxUSE_IMAGE 1
36781_ACEOF
36782
36783
36784 if test "$wxUSE_GIF" = "yes" ; then
36785 cat >>confdefs.h <<\_ACEOF
36786#define wxUSE_GIF 1
36787_ACEOF
36788
36789 fi
36790
36791 if test "$wxUSE_PCX" = "yes" ; then
36792 cat >>confdefs.h <<\_ACEOF
36793#define wxUSE_PCX 1
36794_ACEOF
36795
36796 fi
36797
36798 if test "$wxUSE_IFF" = "yes" ; then
36799 cat >>confdefs.h <<\_ACEOF
36800#define wxUSE_IFF 1
36801_ACEOF
36802
36803 fi
36804
36805 if test "$wxUSE_PNM" = "yes" ; then
36806 cat >>confdefs.h <<\_ACEOF
36807#define wxUSE_PNM 1
36808_ACEOF
36809
36810 fi
36811
36812 if test "$wxUSE_XPM" = "yes" ; then
36813 cat >>confdefs.h <<\_ACEOF
36814#define wxUSE_XPM 1
36815_ACEOF
36816
36817 fi
36818
36819 if test "$wxUSE_ICO_CUR" = "yes" ; then
36820 cat >>confdefs.h <<\_ACEOF
36821#define wxUSE_ICO_CUR 1
36822_ACEOF
36823
36824 fi
36825fi
36826
36827
36828if test "$wxUSE_CHOICEDLG" = "yes"; then
36829 cat >>confdefs.h <<\_ACEOF
36830#define wxUSE_CHOICEDLG 1
36831_ACEOF
36832
36833fi
36834
36835if test "$wxUSE_COLOURDLG" = "yes"; then
36836 cat >>confdefs.h <<\_ACEOF
36837#define wxUSE_COLOURDLG 1
36838_ACEOF
36839
36840fi
36841
36842if test "$wxUSE_FILEDLG" = "yes"; then
36843 cat >>confdefs.h <<\_ACEOF
36844#define wxUSE_FILEDLG 1
36845_ACEOF
36846
36847fi
36848
36849if test "$wxUSE_FINDREPLDLG" = "yes"; then
36850 cat >>confdefs.h <<\_ACEOF
36851#define wxUSE_FINDREPLDLG 1
36852_ACEOF
36853
36854fi
36855
36856if test "$wxUSE_FONTDLG" = "yes"; then
36857 cat >>confdefs.h <<\_ACEOF
36858#define wxUSE_FONTDLG 1
36859_ACEOF
36860
36861fi
36862
36863if test "$wxUSE_DIRDLG" = "yes"; then
36864 if test "$wxUSE_TREECTRL" != "yes"; then
36865 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
36866echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
36867 else
36868 cat >>confdefs.h <<\_ACEOF
36869#define wxUSE_DIRDLG 1
36870_ACEOF
36871
36872 fi
36873fi
36874
36875if test "$wxUSE_MSGDLG" = "yes"; then
36876 cat >>confdefs.h <<\_ACEOF
36877#define wxUSE_MSGDLG 1
36878_ACEOF
36879
36880fi
36881
36882if test "$wxUSE_NUMBERDLG" = "yes"; then
36883 cat >>confdefs.h <<\_ACEOF
36884#define wxUSE_NUMBERDLG 1
36885_ACEOF
36886
36887fi
36888
36889if test "$wxUSE_PROGRESSDLG" = "yes"; then
36890 if test "$wxUSE_CONSTRAINTS" != "yes"; then
36891 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
36892echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
36893 else
36894 cat >>confdefs.h <<\_ACEOF
36895#define wxUSE_PROGRESSDLG 1
36896_ACEOF
36897
36898 fi
36899fi
36900
36901if test "$wxUSE_SPLASH" = "yes"; then
36902 cat >>confdefs.h <<\_ACEOF
36903#define wxUSE_SPLASH 1
36904_ACEOF
36905
2057db16 36906 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
36907fi
36908
36909if test "$wxUSE_STARTUP_TIPS" = "yes"; then
36910 if test "$wxUSE_CONSTRAINTS" != "yes"; then
36911 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
36912echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
36913 else
36914 cat >>confdefs.h <<\_ACEOF
36915#define wxUSE_STARTUP_TIPS 1
36916_ACEOF
36917
36918 fi
36919fi
36920
36921if test "$wxUSE_TEXTDLG" = "yes"; then
36922 cat >>confdefs.h <<\_ACEOF
36923#define wxUSE_TEXTDLG 1
36924_ACEOF
36925
36926fi
36927
36928if test "$wxUSE_WIZARDDLG" = "yes"; then
36929 cat >>confdefs.h <<\_ACEOF
36930#define wxUSE_WIZARDDLG 1
36931_ACEOF
36932
36933 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
36934fi
36935
36936
36937if test "$cross_compiling" = "yes"; then
36938 OSINFO="\"$host\""
36939else
36940 OSINFO=`uname -s -r -m`
36941 OSINFO="\"$OSINFO\""
36942fi
36943
36944cat >>confdefs.h <<_ACEOF
36945#define WXWIN_OS_DESCRIPTION $OSINFO
36946_ACEOF
36947
36948
36949
36950if test "x$prefix" != "xNONE"; then
36951 wxPREFIX=$prefix
36952else
36953 wxPREFIX=$ac_default_prefix
36954fi
36955
36956cat >>confdefs.h <<_ACEOF
36957#define wxINSTALL_PREFIX "$wxPREFIX"
36958_ACEOF
36959
36960
a848cd7e
SC
36961
36962
36963CORE_BASE_LIBS="net base"
36964CORE_GUI_LIBS="adv core"
36965
36966if test "$wxUSE_XML" = "yes" ; then
36967 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
36968fi
36969if test "$wxUSE_ODBC" != "no" ; then
36970 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
36971 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
36972fi
36973if test "$wxUSE_HTML" = "yes" ; then
36974 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
36975fi
9a8f0513
VS
36976if test "$wxUSE_XRC" = "yes" ; then
36977 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
36978fi
a848cd7e
SC
36979
36980if test "$wxUSE_GUI" != "yes"; then
36981 CORE_GUI_LIBS=""
36982fi
36983
36984
36985
36986
36987
36988
36989
36990
36991if test "$wxUSE_MAC" = 1 ; then
07bea8f0
VS
36992 if test "$wxUSE_SOUND" = "yes"; then
36993 LDFLAGS="$LDFLAGS -framework QuickTime"
36994 fi
36995 LDFLAGS="$LDFLAGS -framework Carbon -framework Cocoa -framework System"
a848cd7e
SC
36996fi
36997if test "$wxUSE_COCOA" = 1 ; then
36998 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
36999fi
37000
37001
37002LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
37003
37004have_cos=0
37005have_floor=0
37006
37007for ac_func in cos
37008do
37009as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37010echo "$as_me:$LINENO: checking for $ac_func" >&5
37011echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37012if eval "test \"\${$as_ac_var+set}\" = set"; then
37013 echo $ECHO_N "(cached) $ECHO_C" >&6
37014else
37015 cat >conftest.$ac_ext <<_ACEOF
37016/* confdefs.h. */
37017_ACEOF
37018cat confdefs.h >>conftest.$ac_ext
37019cat >>conftest.$ac_ext <<_ACEOF
37020/* end confdefs.h. */
ac1cb8d3
VS
37021/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37023#define $ac_func innocuous_$ac_func
37024
a848cd7e
SC
37025/* System header to define __stub macros and hopefully few prototypes,
37026 which can conflict with char $ac_func (); below.
37027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37028 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37029
a848cd7e
SC
37030#ifdef __STDC__
37031# include <limits.h>
37032#else
37033# include <assert.h>
37034#endif
ac1cb8d3
VS
37035
37036#undef $ac_func
37037
a848cd7e
SC
37038/* Override any gcc2 internal prototype to avoid an error. */
37039#ifdef __cplusplus
37040extern "C"
37041{
37042#endif
37043/* We use char because int might match the return type of a gcc2
37044 builtin and then its argument prototype would still apply. */
37045char $ac_func ();
37046/* The GNU C library defines this for functions which it implements
37047 to always fail with ENOSYS. Some functions are actually named
37048 something starting with __ and the normal name is an alias. */
37049#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37050choke me
37051#else
37052char (*f) () = $ac_func;
37053#endif
37054#ifdef __cplusplus
37055}
37056#endif
37057
37058int
37059main ()
37060{
37061return f != $ac_func;
37062 ;
37063 return 0;
37064}
37065_ACEOF
37066rm -f conftest.$ac_objext conftest$ac_exeext
37067if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37068 (eval $ac_link) 2>conftest.er1
a848cd7e 37069 ac_status=$?
ac1cb8d3
VS
37070 grep -v '^ *+' conftest.er1 >conftest.err
37071 rm -f conftest.er1
37072 cat conftest.err >&5
a848cd7e
SC
37073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37074 (exit $ac_status); } &&
ceec2216 37075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37077 (eval $ac_try) 2>&5
37078 ac_status=$?
37079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37080 (exit $ac_status); }; } &&
37081 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37083 (eval $ac_try) 2>&5
37084 ac_status=$?
37085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37086 (exit $ac_status); }; }; then
37087 eval "$as_ac_var=yes"
37088else
37089 echo "$as_me: failed program was:" >&5
37090sed 's/^/| /' conftest.$ac_ext >&5
37091
37092eval "$as_ac_var=no"
37093fi
ac1cb8d3
VS
37094rm -f conftest.err conftest.$ac_objext \
37095 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37096fi
37097echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37098echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37099if test `eval echo '${'$as_ac_var'}'` = yes; then
37100 cat >>confdefs.h <<_ACEOF
37101#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37102_ACEOF
37103 have_cos=1
37104fi
37105done
37106
37107
37108for ac_func in floor
37109do
37110as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37111echo "$as_me:$LINENO: checking for $ac_func" >&5
37112echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37113if eval "test \"\${$as_ac_var+set}\" = set"; then
37114 echo $ECHO_N "(cached) $ECHO_C" >&6
37115else
37116 cat >conftest.$ac_ext <<_ACEOF
37117/* confdefs.h. */
37118_ACEOF
37119cat confdefs.h >>conftest.$ac_ext
37120cat >>conftest.$ac_ext <<_ACEOF
37121/* end confdefs.h. */
ac1cb8d3
VS
37122/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37123 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37124#define $ac_func innocuous_$ac_func
37125
a848cd7e
SC
37126/* System header to define __stub macros and hopefully few prototypes,
37127 which can conflict with char $ac_func (); below.
37128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37129 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37130
a848cd7e
SC
37131#ifdef __STDC__
37132# include <limits.h>
37133#else
37134# include <assert.h>
37135#endif
ac1cb8d3
VS
37136
37137#undef $ac_func
37138
a848cd7e
SC
37139/* Override any gcc2 internal prototype to avoid an error. */
37140#ifdef __cplusplus
37141extern "C"
37142{
37143#endif
37144/* We use char because int might match the return type of a gcc2
37145 builtin and then its argument prototype would still apply. */
37146char $ac_func ();
37147/* The GNU C library defines this for functions which it implements
37148 to always fail with ENOSYS. Some functions are actually named
37149 something starting with __ and the normal name is an alias. */
37150#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37151choke me
37152#else
37153char (*f) () = $ac_func;
37154#endif
37155#ifdef __cplusplus
37156}
37157#endif
37158
37159int
37160main ()
37161{
37162return f != $ac_func;
37163 ;
37164 return 0;
37165}
37166_ACEOF
37167rm -f conftest.$ac_objext conftest$ac_exeext
37168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37169 (eval $ac_link) 2>conftest.er1
a848cd7e 37170 ac_status=$?
ac1cb8d3
VS
37171 grep -v '^ *+' conftest.er1 >conftest.err
37172 rm -f conftest.er1
37173 cat conftest.err >&5
a848cd7e
SC
37174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37175 (exit $ac_status); } &&
ceec2216 37176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37178 (eval $ac_try) 2>&5
37179 ac_status=$?
37180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37181 (exit $ac_status); }; } &&
37182 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37184 (eval $ac_try) 2>&5
37185 ac_status=$?
37186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37187 (exit $ac_status); }; }; then
37188 eval "$as_ac_var=yes"
37189else
37190 echo "$as_me: failed program was:" >&5
37191sed 's/^/| /' conftest.$ac_ext >&5
37192
37193eval "$as_ac_var=no"
37194fi
ac1cb8d3
VS
37195rm -f conftest.err conftest.$ac_objext \
37196 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37197fi
37198echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37199echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37200if test `eval echo '${'$as_ac_var'}'` = yes; then
37201 cat >>confdefs.h <<_ACEOF
37202#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37203_ACEOF
37204 have_floor=1
37205fi
37206done
37207
37208echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
37209echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
37210if test "$have_cos" = 1 -a "$have_floor" = 1; then
37211 echo "$as_me:$LINENO: result: yes" >&5
37212echo "${ECHO_T}yes" >&6
37213else
37214 echo "$as_me:$LINENO: result: no" >&5
37215echo "${ECHO_T}no" >&6
37216 LIBS="$LIBS -lm"
37217 # use different functions to avoid configure caching
37218 have_sin=0
37219 have_ceil=0
37220
37221for ac_func in sin
37222do
37223as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37224echo "$as_me:$LINENO: checking for $ac_func" >&5
37225echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37226if eval "test \"\${$as_ac_var+set}\" = set"; then
37227 echo $ECHO_N "(cached) $ECHO_C" >&6
37228else
37229 cat >conftest.$ac_ext <<_ACEOF
37230/* confdefs.h. */
37231_ACEOF
37232cat confdefs.h >>conftest.$ac_ext
37233cat >>conftest.$ac_ext <<_ACEOF
37234/* end confdefs.h. */
ac1cb8d3
VS
37235/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37236 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37237#define $ac_func innocuous_$ac_func
37238
a848cd7e
SC
37239/* System header to define __stub macros and hopefully few prototypes,
37240 which can conflict with char $ac_func (); below.
37241 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37242 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37243
a848cd7e
SC
37244#ifdef __STDC__
37245# include <limits.h>
37246#else
37247# include <assert.h>
37248#endif
ac1cb8d3
VS
37249
37250#undef $ac_func
37251
a848cd7e
SC
37252/* Override any gcc2 internal prototype to avoid an error. */
37253#ifdef __cplusplus
37254extern "C"
37255{
37256#endif
37257/* We use char because int might match the return type of a gcc2
37258 builtin and then its argument prototype would still apply. */
37259char $ac_func ();
37260/* The GNU C library defines this for functions which it implements
37261 to always fail with ENOSYS. Some functions are actually named
37262 something starting with __ and the normal name is an alias. */
37263#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37264choke me
37265#else
37266char (*f) () = $ac_func;
37267#endif
37268#ifdef __cplusplus
37269}
37270#endif
37271
37272int
37273main ()
37274{
37275return f != $ac_func;
37276 ;
37277 return 0;
37278}
37279_ACEOF
37280rm -f conftest.$ac_objext conftest$ac_exeext
37281if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37282 (eval $ac_link) 2>conftest.er1
a848cd7e 37283 ac_status=$?
ac1cb8d3
VS
37284 grep -v '^ *+' conftest.er1 >conftest.err
37285 rm -f conftest.er1
37286 cat conftest.err >&5
a848cd7e
SC
37287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37288 (exit $ac_status); } &&
ceec2216 37289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37291 (eval $ac_try) 2>&5
37292 ac_status=$?
37293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37294 (exit $ac_status); }; } &&
37295 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37297 (eval $ac_try) 2>&5
37298 ac_status=$?
37299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37300 (exit $ac_status); }; }; then
37301 eval "$as_ac_var=yes"
37302else
37303 echo "$as_me: failed program was:" >&5
37304sed 's/^/| /' conftest.$ac_ext >&5
37305
37306eval "$as_ac_var=no"
37307fi
ac1cb8d3
VS
37308rm -f conftest.err conftest.$ac_objext \
37309 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37310fi
37311echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37312echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37313if test `eval echo '${'$as_ac_var'}'` = yes; then
37314 cat >>confdefs.h <<_ACEOF
37315#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37316_ACEOF
37317 have_sin=1
37318fi
37319done
37320
37321
37322for ac_func in ceil
37323do
37324as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37325echo "$as_me:$LINENO: checking for $ac_func" >&5
37326echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37327if eval "test \"\${$as_ac_var+set}\" = set"; then
37328 echo $ECHO_N "(cached) $ECHO_C" >&6
37329else
37330 cat >conftest.$ac_ext <<_ACEOF
37331/* confdefs.h. */
37332_ACEOF
37333cat confdefs.h >>conftest.$ac_ext
37334cat >>conftest.$ac_ext <<_ACEOF
37335/* end confdefs.h. */
ac1cb8d3
VS
37336/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37337 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37338#define $ac_func innocuous_$ac_func
37339
a848cd7e
SC
37340/* System header to define __stub macros and hopefully few prototypes,
37341 which can conflict with char $ac_func (); below.
37342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37343 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37344
a848cd7e
SC
37345#ifdef __STDC__
37346# include <limits.h>
37347#else
37348# include <assert.h>
37349#endif
ac1cb8d3
VS
37350
37351#undef $ac_func
37352
a848cd7e
SC
37353/* Override any gcc2 internal prototype to avoid an error. */
37354#ifdef __cplusplus
37355extern "C"
37356{
37357#endif
37358/* We use char because int might match the return type of a gcc2
37359 builtin and then its argument prototype would still apply. */
37360char $ac_func ();
37361/* The GNU C library defines this for functions which it implements
37362 to always fail with ENOSYS. Some functions are actually named
37363 something starting with __ and the normal name is an alias. */
37364#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37365choke me
37366#else
37367char (*f) () = $ac_func;
37368#endif
37369#ifdef __cplusplus
37370}
37371#endif
37372
37373int
37374main ()
37375{
37376return f != $ac_func;
37377 ;
37378 return 0;
37379}
37380_ACEOF
37381rm -f conftest.$ac_objext conftest$ac_exeext
37382if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37383 (eval $ac_link) 2>conftest.er1
a848cd7e 37384 ac_status=$?
ac1cb8d3
VS
37385 grep -v '^ *+' conftest.er1 >conftest.err
37386 rm -f conftest.er1
37387 cat conftest.err >&5
a848cd7e
SC
37388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37389 (exit $ac_status); } &&
ceec2216 37390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37392 (eval $ac_try) 2>&5
37393 ac_status=$?
37394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37395 (exit $ac_status); }; } &&
37396 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37398 (eval $ac_try) 2>&5
37399 ac_status=$?
37400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37401 (exit $ac_status); }; }; then
37402 eval "$as_ac_var=yes"
37403else
37404 echo "$as_me: failed program was:" >&5
37405sed 's/^/| /' conftest.$ac_ext >&5
37406
37407eval "$as_ac_var=no"
37408fi
ac1cb8d3
VS
37409rm -f conftest.err conftest.$ac_objext \
37410 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37411fi
37412echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37413echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37414if test `eval echo '${'$as_ac_var'}'` = yes; then
37415 cat >>confdefs.h <<_ACEOF
37416#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37417_ACEOF
37418 have_ceil=1
37419fi
37420done
37421
37422 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
37423echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
37424 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
37425 echo "$as_me:$LINENO: result: yes" >&5
37426echo "${ECHO_T}yes" >&6
37427 else
37428 echo "$as_me:$LINENO: result: no" >&5
37429echo "${ECHO_T}no" >&6
37430 # not sure we should warn the user, crash, etc.
37431 fi
37432fi
37433
37434if test "$wxUSE_GUI" = "yes"; then
37435
37436
37437 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
37438 drawing dynamic erase event exec font image \
37439 minimal propsize rotate shaped widgets render"
37440
37441 if test "$wxUSE_MONOLITHIC" != "yes"; then
37442 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
37443 fi
37444else
37445 SAMPLES_SUBDIRS="console"
37446fi
37447
37448
ceec2216 37449INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
a848cd7e
SC
37450-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
37451
37452if test "$GXX" = yes ; then
37453 CXXWARNINGS="-Wall"
37454 fi
37455
37456EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
37457
0c3c69fc
VS
37458CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
37459CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS`
37460CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e
SC
37461
37462
0c3c69fc 37463LIBS=`echo $LIBS`
a848cd7e
SC
37464EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
37465EXTRALIBS_XML="$EXPAT_LINK"
37466EXTRALIBS_HTML="$MSPACK_LINK"
37467EXTRALIBS_ODBC="$ODBC_LINK"
37468if test "$wxUSE_GUI" = "yes"; then
0c3c69fc 37469 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK`
a848cd7e
SC
37470fi
37471if test "$wxUSE_OPENGL" = "yes"; then
37472 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
37473fi
37474
37475LDFLAGS="$LDFLAGS $PROFILE"
37476
37477if test "$wxUSE_GTK" = 1; then
37478 WXCONFIG_INCLUDE=
37479else
37480 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
37481fi
37482
37483WXCONFIG_EXTRALIBS="$LIBS"
37484
37485if test "$wxUSE_REGEX" = "builtin" ; then
37486 wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}"
37487fi
37488if test "$wxUSE_EXPAT" = "builtin" ; then
37489 wxconfig_3rdparty="$wxconfig_3rdparty expat"
37490fi
37491if test "$wxUSE_ODBC" = "builtin" ; then
37492 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
37493fi
37494if test "$wxUSE_LIBTIFF" = "builtin" ; then
37495 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
37496fi
37497if test "$wxUSE_LIBJPEG" = "builtin" ; then
37498 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
37499fi
37500if test "$wxUSE_LIBPNG" = "builtin" ; then
37501 wxconfig_3rdparty="$wxconfig_3rdparty png"
37502fi
37503if test "$wxUSE_ZLIB" = "builtin" ; then
37504 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
37505fi
37506if test "$wxUSE_ODBC" = "builtin" ; then
37507 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
37508fi
37509
37510for i in $wxconfig_3rdparty ; do
ceec2216 37511 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
a848cd7e
SC
37512done
37513
37514
37515if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
37516 WXUNIV=1
37517else
37518 WXUNIV=0
37519fi
37520
37521
37522
37523
37524
37525
37526
37527
37528
37529if test $wxUSE_MONOLITHIC = "yes" ; then
37530 MONOLITHIC=1
37531else
37532 MONOLITHIC=0
37533fi
37534
37535if test $wxUSE_PLUGINS = "yes" ; then
37536 USE_PLUGINS=1
37537else
37538 USE_PLUGINS=0
37539fi
37540
37541if test $wxUSE_ODBC != "no" ; then
37542 USE_ODBC=1
37543else
37544 USE_ODBC=0
37545fi
37546
37547if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
37548 OFFICIAL_BUILD=1
37549else
37550 OFFICIAL_BUILD=0
37551fi
37552
37553
37554
37555
37556
37557
37558
37559
37560
37561
37562
37563
37564
37565
37566
37567
37568
37569
37570
ceec2216 37571
a848cd7e
SC
37572
37573
37574TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
37575
37576
37577
37578
37579
37580
37581
37582
4d4ff94c
VZ
37583case "$TOOLKIT" in
37584 GTK)
37585 TOOLKIT_USER="GTK+"
37586 if test "$WXGTK20" = 1; then
37587 TOOLKIT_USER="$TOOLKIT_USER 2"
37588 fi
9a8f0513 37589 ;;
4d4ff94c
VZ
37590
37591 *)
37592 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 37593 ;;
4d4ff94c 37594esac
a848cd7e 37595
9a8f0513 37596
a848cd7e
SC
37597 if test "x$BAKEFILE_HOST" = "x"; then
37598 BAKEFILE_HOST="${host}"
37599 fi
37600
37601 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
37602
37603 if test -n "$ac_tool_prefix"; then
37604 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
37605set dummy ${ac_tool_prefix}ranlib; ac_word=$2
37606echo "$as_me:$LINENO: checking for $ac_word" >&5
37607echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37608if test "${ac_cv_prog_RANLIB+set}" = set; then
37609 echo $ECHO_N "(cached) $ECHO_C" >&6
37610else
37611 if test -n "$RANLIB"; then
37612 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
37613else
37614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37615for as_dir in $PATH
37616do
37617 IFS=$as_save_IFS
37618 test -z "$as_dir" && as_dir=.
37619 for ac_exec_ext in '' $ac_executable_extensions; do
37620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37621 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
37622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37623 break 2
37624 fi
37625done
37626done
37627
37628fi
37629fi
37630RANLIB=$ac_cv_prog_RANLIB
37631if test -n "$RANLIB"; then
37632 echo "$as_me:$LINENO: result: $RANLIB" >&5
37633echo "${ECHO_T}$RANLIB" >&6
37634else
37635 echo "$as_me:$LINENO: result: no" >&5
37636echo "${ECHO_T}no" >&6
37637fi
37638
37639fi
37640if test -z "$ac_cv_prog_RANLIB"; then
37641 ac_ct_RANLIB=$RANLIB
37642 # Extract the first word of "ranlib", so it can be a program name with args.
37643set dummy ranlib; ac_word=$2
37644echo "$as_me:$LINENO: checking for $ac_word" >&5
37645echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37646if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
37647 echo $ECHO_N "(cached) $ECHO_C" >&6
37648else
37649 if test -n "$ac_ct_RANLIB"; then
37650 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
37651else
37652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37653for as_dir in $PATH
37654do
37655 IFS=$as_save_IFS
37656 test -z "$as_dir" && as_dir=.
37657 for ac_exec_ext in '' $ac_executable_extensions; do
37658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37659 ac_cv_prog_ac_ct_RANLIB="ranlib"
37660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37661 break 2
37662 fi
37663done
37664done
37665
37666 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
37667fi
37668fi
37669ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
37670if test -n "$ac_ct_RANLIB"; then
37671 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
37672echo "${ECHO_T}$ac_ct_RANLIB" >&6
37673else
37674 echo "$as_me:$LINENO: result: no" >&5
37675echo "${ECHO_T}no" >&6
37676fi
37677
37678 RANLIB=$ac_ct_RANLIB
37679else
37680 RANLIB="$ac_cv_prog_RANLIB"
37681fi
37682
37683 # Find a good install program. We prefer a C program (faster),
37684# so one script is as good as another. But avoid the broken or
37685# incompatible versions:
37686# SysV /etc/install, /usr/sbin/install
37687# SunOS /usr/etc/install
37688# IRIX /sbin/install
37689# AIX /bin/install
37690# AmigaOS /C/install, which installs bootblocks on floppy discs
37691# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
37692# AFS /usr/afsws/bin/install, which mishandles nonexistent args
37693# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 37694# OS/2's system install, which has a completely different semantic
a848cd7e
SC
37695# ./install, which can be erroneously created by make from ./install.sh.
37696echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
37697echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
37698if test -z "$INSTALL"; then
37699if test "${ac_cv_path_install+set}" = set; then
37700 echo $ECHO_N "(cached) $ECHO_C" >&6
37701else
37702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37703for as_dir in $PATH
37704do
37705 IFS=$as_save_IFS
37706 test -z "$as_dir" && as_dir=.
37707 # Account for people who put trailing slashes in PATH elements.
37708case $as_dir/ in
37709 ./ | .// | /cC/* | \
37710 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 37711 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
37712 /usr/ucb/* ) ;;
37713 *)
37714 # OSF1 and SCO ODT 3.0 have their own names for install.
37715 # Don't use installbsd from OSF since it installs stuff as root
37716 # by default.
37717 for ac_prog in ginstall scoinst install; do
37718 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
37719 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
37720 if test $ac_prog = install &&
37721 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
37722 # AIX install. It has an incompatible calling convention.
37723 :
37724 elif test $ac_prog = install &&
37725 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
37726 # program-specific install script used by HP pwplus--don't use.
37727 :
37728 else
37729 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
37730 break 3
37731 fi
37732 fi
a848cd7e
SC
37733 done
37734 done
37735 ;;
37736esac
37737done
37738
37739
37740fi
37741 if test "${ac_cv_path_install+set}" = set; then
37742 INSTALL=$ac_cv_path_install
37743 else
37744 # As a last resort, use the slow shell script. We don't cache a
37745 # path for INSTALL within a source directory, because that will
37746 # break other packages using the cache if that directory is
37747 # removed, or if the path is relative.
37748 INSTALL=$ac_install_sh
37749 fi
37750fi
37751echo "$as_me:$LINENO: result: $INSTALL" >&5
37752echo "${ECHO_T}$INSTALL" >&6
37753
37754# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
37755# It thinks the first close brace ends the variable substitution.
37756test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
37757
37758test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
37759
37760test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
37761
37762 echo "$as_me:$LINENO: checking whether ln -s works" >&5
37763echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
37764LN_S=$as_ln_s
37765if test "$LN_S" = "ln -s"; then
37766 echo "$as_me:$LINENO: result: yes" >&5
37767echo "${ECHO_T}yes" >&6
37768else
37769 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
37770echo "${ECHO_T}no, using $LN_S" >&6
37771fi
37772
37773
37774 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
37775echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 37776set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
37777if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
37778 echo $ECHO_N "(cached) $ECHO_C" >&6
37779else
37780 cat >conftest.make <<\_ACEOF
37781all:
37782 @echo 'ac_maketemp="$(MAKE)"'
37783_ACEOF
37784# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
37785eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
37786if test -n "$ac_maketemp"; then
37787 eval ac_cv_prog_make_${ac_make}_set=yes
37788else
37789 eval ac_cv_prog_make_${ac_make}_set=no
37790fi
37791rm -f conftest.make
37792fi
37793if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
37794 echo "$as_me:$LINENO: result: yes" >&5
37795echo "${ECHO_T}yes" >&6
37796 SET_MAKE=
37797else
37798 echo "$as_me:$LINENO: result: no" >&5
37799echo "${ECHO_T}no" >&6
37800 SET_MAKE="MAKE=${MAKE-make}"
37801fi
37802
37803
37804
37805 if test -n "$ac_tool_prefix"; then
37806 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
37807set dummy ${ac_tool_prefix}ar; ac_word=$2
37808echo "$as_me:$LINENO: checking for $ac_word" >&5
37809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37810if test "${ac_cv_prog_AR+set}" = set; then
37811 echo $ECHO_N "(cached) $ECHO_C" >&6
37812else
37813 if test -n "$AR"; then
37814 ac_cv_prog_AR="$AR" # Let the user override the test.
37815else
37816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37817for as_dir in $PATH
37818do
37819 IFS=$as_save_IFS
37820 test -z "$as_dir" && as_dir=.
37821 for ac_exec_ext in '' $ac_executable_extensions; do
37822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37823 ac_cv_prog_AR="${ac_tool_prefix}ar"
37824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37825 break 2
37826 fi
37827done
37828done
37829
37830fi
37831fi
37832AR=$ac_cv_prog_AR
37833if test -n "$AR"; then
37834 echo "$as_me:$LINENO: result: $AR" >&5
37835echo "${ECHO_T}$AR" >&6
37836else
37837 echo "$as_me:$LINENO: result: no" >&5
37838echo "${ECHO_T}no" >&6
37839fi
37840
37841fi
37842if test -z "$ac_cv_prog_AR"; then
37843 ac_ct_AR=$AR
37844 # Extract the first word of "ar", so it can be a program name with args.
37845set dummy ar; ac_word=$2
37846echo "$as_me:$LINENO: checking for $ac_word" >&5
37847echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37848if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
37849 echo $ECHO_N "(cached) $ECHO_C" >&6
37850else
37851 if test -n "$ac_ct_AR"; then
37852 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
37853else
37854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37855for as_dir in $PATH
37856do
37857 IFS=$as_save_IFS
37858 test -z "$as_dir" && as_dir=.
37859 for ac_exec_ext in '' $ac_executable_extensions; do
37860 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37861 ac_cv_prog_ac_ct_AR="ar"
37862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37863 break 2
37864 fi
37865done
37866done
37867
37868 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
37869fi
37870fi
37871ac_ct_AR=$ac_cv_prog_ac_ct_AR
37872if test -n "$ac_ct_AR"; then
37873 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
37874echo "${ECHO_T}$ac_ct_AR" >&6
37875else
37876 echo "$as_me:$LINENO: result: no" >&5
37877echo "${ECHO_T}no" >&6
37878fi
37879
37880 AR=$ac_ct_AR
37881else
37882 AR="$ac_cv_prog_AR"
37883fi
37884
37885 if test -n "$ac_tool_prefix"; then
37886 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
37887set dummy ${ac_tool_prefix}strip; ac_word=$2
37888echo "$as_me:$LINENO: checking for $ac_word" >&5
37889echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37890if test "${ac_cv_prog_STRIP+set}" = set; then
37891 echo $ECHO_N "(cached) $ECHO_C" >&6
37892else
37893 if test -n "$STRIP"; then
37894 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
37895else
37896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37897for as_dir in $PATH
37898do
37899 IFS=$as_save_IFS
37900 test -z "$as_dir" && as_dir=.
37901 for ac_exec_ext in '' $ac_executable_extensions; do
37902 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37903 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
37904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37905 break 2
37906 fi
37907done
37908done
37909
37910fi
37911fi
37912STRIP=$ac_cv_prog_STRIP
37913if test -n "$STRIP"; then
37914 echo "$as_me:$LINENO: result: $STRIP" >&5
37915echo "${ECHO_T}$STRIP" >&6
37916else
37917 echo "$as_me:$LINENO: result: no" >&5
37918echo "${ECHO_T}no" >&6
37919fi
37920
37921fi
37922if test -z "$ac_cv_prog_STRIP"; then
37923 ac_ct_STRIP=$STRIP
37924 # Extract the first word of "strip", so it can be a program name with args.
37925set dummy strip; ac_word=$2
37926echo "$as_me:$LINENO: checking for $ac_word" >&5
37927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37928if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
37929 echo $ECHO_N "(cached) $ECHO_C" >&6
37930else
37931 if test -n "$ac_ct_STRIP"; then
37932 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
37933else
37934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37935for as_dir in $PATH
37936do
37937 IFS=$as_save_IFS
37938 test -z "$as_dir" && as_dir=.
37939 for ac_exec_ext in '' $ac_executable_extensions; do
37940 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37941 ac_cv_prog_ac_ct_STRIP="strip"
37942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37943 break 2
37944 fi
37945done
37946done
37947
37948 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
37949fi
37950fi
37951ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
37952if test -n "$ac_ct_STRIP"; then
37953 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
37954echo "${ECHO_T}$ac_ct_STRIP" >&6
37955else
37956 echo "$as_me:$LINENO: result: no" >&5
37957echo "${ECHO_T}no" >&6
37958fi
37959
37960 STRIP=$ac_ct_STRIP
37961else
37962 STRIP="$ac_cv_prog_STRIP"
37963fi
37964
37965 if test -n "$ac_tool_prefix"; then
37966 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
37967set dummy ${ac_tool_prefix}nm; ac_word=$2
37968echo "$as_me:$LINENO: checking for $ac_word" >&5
37969echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37970if test "${ac_cv_prog_NM+set}" = set; then
37971 echo $ECHO_N "(cached) $ECHO_C" >&6
37972else
37973 if test -n "$NM"; then
37974 ac_cv_prog_NM="$NM" # Let the user override the test.
37975else
37976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37977for as_dir in $PATH
37978do
37979 IFS=$as_save_IFS
37980 test -z "$as_dir" && as_dir=.
37981 for ac_exec_ext in '' $ac_executable_extensions; do
37982 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37983 ac_cv_prog_NM="${ac_tool_prefix}nm"
37984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37985 break 2
37986 fi
37987done
37988done
37989
37990fi
37991fi
37992NM=$ac_cv_prog_NM
37993if test -n "$NM"; then
37994 echo "$as_me:$LINENO: result: $NM" >&5
37995echo "${ECHO_T}$NM" >&6
37996else
37997 echo "$as_me:$LINENO: result: no" >&5
37998echo "${ECHO_T}no" >&6
37999fi
38000
38001fi
38002if test -z "$ac_cv_prog_NM"; then
38003 ac_ct_NM=$NM
38004 # Extract the first word of "nm", so it can be a program name with args.
38005set dummy nm; ac_word=$2
38006echo "$as_me:$LINENO: checking for $ac_word" >&5
38007echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38008if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
38009 echo $ECHO_N "(cached) $ECHO_C" >&6
38010else
38011 if test -n "$ac_ct_NM"; then
38012 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
38013else
38014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38015for as_dir in $PATH
38016do
38017 IFS=$as_save_IFS
38018 test -z "$as_dir" && as_dir=.
38019 for ac_exec_ext in '' $ac_executable_extensions; do
38020 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38021 ac_cv_prog_ac_ct_NM="nm"
38022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38023 break 2
38024 fi
38025done
38026done
38027
38028 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
38029fi
38030fi
38031ac_ct_NM=$ac_cv_prog_ac_ct_NM
38032if test -n "$ac_ct_NM"; then
38033 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
38034echo "${ECHO_T}$ac_ct_NM" >&6
38035else
38036 echo "$as_me:$LINENO: result: no" >&5
38037echo "${ECHO_T}no" >&6
38038fi
38039
38040 NM=$ac_ct_NM
38041else
38042 NM="$ac_cv_prog_NM"
38043fi
38044
38045
38046 case ${BAKEFILE_HOST} in
38047 *-hp-hpux* )
ceec2216 38048 INSTALL_DIR="mkdir -p"
a848cd7e
SC
38049 ;;
38050 *) INSTALL_DIR="$INSTALL -d"
38051 ;;
38052 esac
38053
38054
38055 LDFLAGS_GUI=
38056 case ${BAKEFILE_HOST} in
38057 *-*-cygwin* | *-*-mingw32* )
38058 LDFLAGS_GUI="-mwindows"
38059 esac
38060
38061
38062 fi
38063
38064 echo "$as_me:$LINENO: checking if make is GNU make" >&5
38065echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
38066if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
38067 echo $ECHO_N "(cached) $ECHO_C" >&6
38068else
38069
38070 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
38071 egrep -s GNU > /dev/null); then
38072 bakefile_cv_prog_makeisgnu="yes"
38073 else
38074 bakefile_cv_prog_makeisgnu="no"
38075 fi
38076
38077fi
38078echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
38079echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
38080
38081 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
38082 IF_GNU_MAKE=""
38083 else
38084 IF_GNU_MAKE="#"
38085 fi
38086
38087
38088
38089 PLATFORM_UNIX=0
38090 PLATFORM_WIN32=0
38091 PLATFORM_MSDOS=0
38092 PLATFORM_MAC=0
38093 PLATFORM_MACOSX=0
38094 PLATFORM_OS2=0
38095
38096 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
38097 case "${BAKEFILE_HOST}" in
38098 *-*-cygwin* | *-*-mingw32* )
38099 PLATFORM_WIN32=1
38100 ;;
38101 *-pc-msdosdjgpp )
38102 PLATFORM_MSDOS=1
38103 ;;
38104 *-pc-os2_emx | *-pc-os2-emx )
38105 PLATFORM_OS2=1
38106 ;;
38107 powerpc-*-darwin* )
38108 PLATFORM_MAC=1
38109 PLATFORM_MACOSX=1
38110 ;;
38111 * )
38112 PLATFORM_UNIX=1
38113 ;;
38114 esac
38115 else
38116 case "$BAKEFILE_FORCE_PLATFORM" in
38117 win32 )
38118 PLATFORM_WIN32=1
38119 ;;
38120 msdos )
38121 PLATFORM_MSDOS=1
38122 ;;
38123 os2 )
38124 PLATFORM_OS2=1
38125 ;;
38126 darwin )
38127 PLATFORM_MAC=1
38128 PLATFORM_MACOSX=1
38129 ;;
38130 unix )
38131 PLATFORM_UNIX=1
38132 ;;
38133 * )
38134 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
38135echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
38136 { (exit 1); exit 1; }; }
38137 ;;
38138 esac
38139 fi
38140
38141
38142
38143
38144
38145
38146
38147
38148
38149 # Check whether --enable-omf or --disable-omf was given.
38150if test "${enable_omf+set}" = set; then
38151 enableval="$enable_omf"
38152 bk_os2_use_omf="$enableval"
38153fi;
38154
38155 case "${BAKEFILE_HOST}" in
38156 *-*-darwin* )
38157 CFLAGS="$CFLAGS -fno-common"
38158 CXXFLAGS="$CXXFLAGS -fno-common"
38159 ;;
38160
38161 *-pc-os2_emx | *-pc-os2-emx )
38162 if test "x$bk_os2_use_omf" = "xyes" ; then
38163 AR=emxomfar
38164 RANLIB=:
38165 LDFLAGS="-Zomf $LDFLAGS"
38166 CFLAGS="-Zomf $CFLAGS"
38167 CXXFLAGS="-Zomf $CXXFLAGS"
38168 OS2_LIBEXT="lib"
38169 else
38170 OS2_LIBEXT="a"
38171 fi
38172 ;;
38173 esac
38174
38175
38176 SO_SUFFIX="so"
38177 SO_SUFFIX_MODULE="so"
38178 EXEEXT=""
38179 LIBPREFIX="lib"
38180 LIBEXT=".a"
38181 DLLPREFIX="lib"
38182 DLLPREFIX_MODULE=""
38183 DLLIMP_SUFFIX=""
38184
38185 case "${BAKEFILE_HOST}" in
38186 *-hp-hpux* )
38187 SO_SUFFIX="sl"
38188 SO_SUFFIX_MODULE="sl"
38189 ;;
38190 *-*-aix* )
38191 SO_SUFFIX="a"
38192 SO_SUFFIX_MODULE="a"
38193 ;;
38194 *-*-cygwin* | *-*-mingw32* )
38195 SO_SUFFIX="dll"
38196 SO_SUFFIX_MODULE="dll"
38197 DLLIMP_SUFFIX="dll.a"
38198 EXEEXT=".exe"
38199 DLLPREFIX=""
38200 ;;
38201 *-pc-msdosdjgpp )
38202 EXEEXT=".exe"
38203 DLLPREFIX=""
38204 ;;
38205 *-pc-os2_emx | *-pc-os2-emx )
38206 SO_SUFFIX="dll"
38207 SO_SUFFIX_MODULE="dll"
38208 DLLIMP_SUFFIX=$OS2_LIBEXT
38209 EXEEXT=".exe"
38210 DLLPREFIX=""
38211 LIBPREFIX=""
38212 LIBEXT=".$OS2_LIBEXT"
38213 ;;
38214 powerpc-*-darwin* )
38215 SO_SUFFIX="dylib"
38216 SO_SUFFIX_MODULE="bundle"
38217 ;;
38218 esac
38219
38220 if test "x$DLLIMP_SUFFIX" = "x" ; then
38221 DLLIMP_SUFFIX="$SO_SUFFIX"
38222 fi
38223
38224
38225
38226
38227
38228
38229
38230
38231
38232
38233
38234 SHARED_LD_CC="\$(CC) -shared -o"
38235 SHARED_LD_CXX="\$(CXX) -shared -o"
38236
38237 if test "x$GCC" = "xyes"; then
38238 PIC_FLAG="-fPIC"
38239 fi
38240
38241 case "${BAKEFILE_HOST}" in
38242 *-hp-hpux* )
38243 if test "x$GCC" = "xyes"; then
38244 SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
38245 SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
38246 else
38247 LDFLAGS="$LDFLAGS -L/usr/lib"
38248
38249 SHARED_LD_CC="${CC} -b -o"
38250 SHARED_LD_CXX="${CXX} -b -o"
38251 PIC_FLAG="+Z"
38252 fi
38253 ;;
38254
38255 *-*-linux* )
38256 if test "x$GCC" != "xyes"; then
38257 echo "$as_me:$LINENO: checking for Intel compiler" >&5
38258echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
38259if test "${bakefile_cv_prog_icc+set}" = set; then
38260 echo $ECHO_N "(cached) $ECHO_C" >&6
38261else
38262
38263 cat >conftest.$ac_ext <<_ACEOF
38264/* confdefs.h. */
38265_ACEOF
38266cat confdefs.h >>conftest.$ac_ext
38267cat >>conftest.$ac_ext <<_ACEOF
38268/* end confdefs.h. */
38269
38270int
38271main ()
38272{
38273
38274 #ifndef __INTEL_COMPILER
38275 #error Not icc
38276 #endif
38277
38278 ;
38279 return 0;
38280}
38281_ACEOF
38282rm -f conftest.$ac_objext
38283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38284 (eval $ac_compile) 2>conftest.er1
a848cd7e 38285 ac_status=$?
ac1cb8d3
VS
38286 grep -v '^ *+' conftest.er1 >conftest.err
38287 rm -f conftest.er1
38288 cat conftest.err >&5
a848cd7e
SC
38289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38290 (exit $ac_status); } &&
ceec2216 38291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38293 (eval $ac_try) 2>&5
38294 ac_status=$?
38295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38296 (exit $ac_status); }; } &&
38297 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38299 (eval $ac_try) 2>&5
38300 ac_status=$?
38301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38302 (exit $ac_status); }; }; then
38303 bakefile_cv_prog_icc=yes
38304else
38305 echo "$as_me: failed program was:" >&5
38306sed 's/^/| /' conftest.$ac_ext >&5
38307
38308bakefile_cv_prog_icc=no
38309
38310fi
ac1cb8d3 38311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38312
38313fi
38314echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
38315echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
38316 if test "$bakefile_cv_prog_icc" = "yes"; then
38317 PIC_FLAG="-KPIC"
38318 fi
38319 fi
38320 ;;
38321
38322 *-*-solaris2* )
38323 if test "x$GCC" != xyes ; then
38324 SHARED_LD_CC="${CC} -G -o"
38325 SHARED_LD_CXX="${CXX} -G -o"
38326 PIC_FLAG="-KPIC"
38327 fi
38328 ;;
38329
38330 *-*-darwin* )
38331
38332 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
38333echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
38334if test "${wx_cv_gcc31+set}" = set; then
38335 echo $ECHO_N "(cached) $ECHO_C" >&6
38336else
38337
38338 cat >conftest.$ac_ext <<_ACEOF
38339/* confdefs.h. */
38340_ACEOF
38341cat confdefs.h >>conftest.$ac_ext
38342cat >>conftest.$ac_ext <<_ACEOF
38343/* end confdefs.h. */
38344
38345int
38346main ()
38347{
38348
38349 #if (__GNUC__ < 3) || \
38350 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
38351 #error old gcc
38352 #endif
38353
38354 ;
38355 return 0;
38356}
38357_ACEOF
38358rm -f conftest.$ac_objext
38359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38360 (eval $ac_compile) 2>conftest.er1
a848cd7e 38361 ac_status=$?
ac1cb8d3
VS
38362 grep -v '^ *+' conftest.er1 >conftest.err
38363 rm -f conftest.er1
38364 cat conftest.err >&5
a848cd7e
SC
38365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38366 (exit $ac_status); } &&
ceec2216 38367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38369 (eval $ac_try) 2>&5
38370 ac_status=$?
38371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38372 (exit $ac_status); }; } &&
38373 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38375 (eval $ac_try) 2>&5
38376 ac_status=$?
38377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38378 (exit $ac_status); }; }; then
38379
38380 wx_cv_gcc31=yes
38381
38382else
38383 echo "$as_me: failed program was:" >&5
38384sed 's/^/| /' conftest.$ac_ext >&5
38385
38386
38387 wx_cv_gcc31=no
38388
38389
38390fi
ac1cb8d3 38391rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38392
38393fi
38394echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
38395echo "${ECHO_T}$wx_cv_gcc31" >&6
38396 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
38397
38398D='$'
38399cat <<EOF >shared-ld-sh
a848cd7e
SC
38400#!/bin/sh
38401#-----------------------------------------------------------------------------
38402#-- Name: distrib/mac/shared-ld-sh
38403#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
38404#-- Author: Gilles Depeyrot
38405#-- Copyright: (c) 2002 Gilles Depeyrot
38406#-- Licence: any use permitted
38407#-----------------------------------------------------------------------------
38408
38409verbose=0
38410args=""
38411objects=""
38412linking_flag="-dynamiclib"
38413
473276a9
VS
38414while test ${D}# -gt 0; do
38415 case ${D}1 in
a848cd7e
SC
38416
38417 -v)
38418 verbose=1
38419 ;;
38420
38421 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
38422 # collect these options and values
473276a9 38423 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
38424 shift
38425 ;;
38426
38427 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
38428 # collect these options
473276a9 38429 args="${D}{args} ${D}1"
a848cd7e
SC
38430 ;;
38431
38432 -dynamiclib|-bundle)
473276a9 38433 linking_flag="${D}1"
a848cd7e
SC
38434 ;;
38435
38436 -*)
473276a9 38437 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
38438 exit 1
38439 ;;
38440
38441 *.o | *.a | *.dylib)
38442 # collect object files
473276a9 38443 objects="${D}{objects} ${D}1"
a848cd7e
SC
38444 ;;
38445
38446 *)
473276a9 38447 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
38448 exit 1
38449 ;;
38450
38451 esac
38452 shift
38453done
38454
38455#
38456# Link one module containing all the others
38457#
473276a9
VS
38458if test ${D}{verbose} = 1; then
38459 echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
a848cd7e 38460fi
473276a9
VS
38461c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
38462status=${D}?
38463if test ${D}{status} != 0; then
38464 exit ${D}{status}
a848cd7e
SC
38465fi
38466
38467#
38468# Link the shared library from the single module created
38469#
473276a9
VS
38470if test ${D}{verbose} = 1; then
38471 echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
a848cd7e 38472fi
473276a9
VS
38473c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
38474status=${D}?
38475if test ${D}{status} != 0; then
38476 exit ${D}{status}
a848cd7e
SC
38477fi
38478
38479#
38480# Remove intermediate module
38481#
473276a9 38482rm -f master.${D}${D}.o
a848cd7e
SC
38483
38484exit 0
38485EOF
473276a9 38486
a848cd7e
SC
38487 chmod +x shared-ld-sh
38488
38489 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
38490 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
38491 SHARED_LD_CXX="$SHARED_LD_CC"
38492 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
38493 else
38494 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
38495 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
38496 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
38497 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
38498 fi
38499
38500 PIC_FLAG="-dynamic -fPIC"
38501 ;;
38502
38503 *-*-aix* )
38504 if test "x$GCC" != "xyes"; then
38505 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
38506set dummy makeC++SharedLib; ac_word=$2
38507echo "$as_me:$LINENO: checking for $ac_word" >&5
38508echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38509if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
38510 echo $ECHO_N "(cached) $ECHO_C" >&6
38511else
38512 if test -n "$AIX_CXX_LD"; then
38513 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
38514else
38515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38516for as_dir in $PATH
38517do
38518 IFS=$as_save_IFS
38519 test -z "$as_dir" && as_dir=.
38520 for ac_exec_ext in '' $ac_executable_extensions; do
38521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38522 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
38523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38524 break 2
38525 fi
38526done
38527done
38528
38529 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
38530fi
38531fi
38532AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
38533if test -n "$AIX_CXX_LD"; then
38534 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
38535echo "${ECHO_T}$AIX_CXX_LD" >&6
38536else
38537 echo "$as_me:$LINENO: result: no" >&5
38538echo "${ECHO_T}no" >&6
38539fi
38540
38541 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
38542 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
38543 fi
38544 ;;
38545
38546 *-*-beos* )
38547 SHARED_LD_CC="${LD} -shared -o"
38548 SHARED_LD_CXX="${LD} -shared -o"
38549 ;;
38550
38551 *-*-irix* )
38552 if test "x$GCC" != "xyes"; then
38553 PIC_FLAG="-KPIC"
38554 fi
38555 ;;
38556
38557 *-*-cygwin* | *-*-mingw32* )
38558 PIC_FLAG=""
38559 ;;
38560
38561 *-pc-os2_emx | *-pc-os2-emx )
473276a9
VS
38562 SHARED_LD_CC="`pwd`/dllar.sh -o"
38563 SHARED_LD_CXX="`pwd`/dllar.sh -o"
a848cd7e 38564 PIC_FLAG=""
473276a9
VS
38565
38566D='$'
38567cat <<EOF >dllar.sh
38568#!/bin/sh
38569#
38570# dllar - a tool to build both a .dll and an .a file
38571# from a set of object (.o) files for EMX/OS2.
38572#
38573# Written by Andrew Zabolotny, bit@freya.etu.ru
38574# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
38575#
38576# This script will accept a set of files on the command line.
38577# All the public symbols from the .o files will be exported into
38578# a .DEF file, then linker will be run (through gcc) against them to
38579# build a shared library consisting of all given .o files. All libraries
38580# (.a) will be first decompressed into component .o files then act as
38581# described above. You can optionally give a description (-d "description")
38582# which will be put into .DLL. To see the list of accepted options (as well
38583# as command-line format) simply run this program without options. The .DLL
38584# is built to be imported by name (there is no guarantee that new versions
38585# of the library you build will have same ordinals for same symbols).
38586#
38587# dllar is free software; you can redistribute it and/or modify
38588# it under the terms of the GNU General Public License as published by
38589# the Free Software Foundation; either version 2, or (at your option)
38590# any later version.
38591#
38592# dllar is distributed in the hope that it will be useful,
38593# but WITHOUT ANY WARRANTY; without even the implied warranty of
38594# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38595# GNU General Public License for more details.
38596#
38597# You should have received a copy of the GNU General Public License
38598# along with dllar; see the file COPYING. If not, write to the Free
38599# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
38600# 02111-1307, USA.
38601
38602# To successfuly run this program you will need:
38603# - Current drive should have LFN support (HPFS, ext2, network, etc)
38604# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
38605# - gcc
38606# (used to build the .dll)
38607# - emxexp
38608# (used to create .def file from .o files)
38609# - emximp
38610# (used to create .a file from .def file)
38611# - GNU text utilites (cat, sort, uniq)
38612# used to process emxexp output
38613# - GNU file utilities (mv, rm)
38614# - GNU sed
38615# - lxlite (optional, see flag below)
38616# (used for general .dll cleanup)
38617#
38618
38619flag_USE_LXLITE=1;
38620
38621#
38622# helper functions
38623# basnam, variant of basename, which does _not_ remove the path, _iff_
38624# second argument (suffix to remove) is given
38625basnam(){
38626 case ${D}# in
38627 1)
38628 echo ${D}1 | sed 's/.*\///' | sed 's/.*\\//'
38629 ;;
38630 2)
38631 echo ${D}1 | sed 's/'${D}2'${D}//'
38632 ;;
38633 *)
38634 echo "error in basnam ${D}*"
38635 exit 8
38636 ;;
38637 esac
38638}
38639
38640# Cleanup temporary files and output
38641CleanUp() {
38642 cd ${D}curDir
38643 for i in ${D}inputFiles ; do
38644 case ${D}i in
38645 *!)
38646 rm -rf \`basnam ${D}i !\`
38647 ;;
38648 *)
38649 ;;
38650 esac
38651 done
38652
38653 # Kill result in case of failure as there is just to many stupid make/nmake
38654 # things out there which doesn't do this.
2057db16 38655 if [] ${D}# -eq 0 []; then
473276a9
VS
38656 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
38657 fi
38658}
38659
38660# Print usage and exit script with rc=1.
38661PrintHelp() {
2057db16
VS
38662 echo 'Usage: dllar []-o[[]utput[]] output_file[] []-i[[]mport[]] importlib_name[]'
38663 echo ' []-d[[]escription[]] "dll descrption"[] []-cc "CC"[] []-f[[]lags[]] "CFLAGS"[]'
38664 echo ' []-ord[[]inals[]][] -ex[]clude[] "symbol(s)"'
38665 echo ' []-libf[[]lags[]] "{INIT|TERM}{GLOBAL|INSTANCE}"[] []-nocrt[[]dll[]][] []-nolxl[[]ite[]][]'
38666 echo ' []*.o[] []*.a[]'
473276a9
VS
38667 echo '*> "output_file" should have no extension.'
38668 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
38669 echo ' The import library name is derived from this and is set to "name".a,'
38670 echo ' unless overridden by -import'
38671 echo '*> "importlib_name" should have no extension.'
38672 echo ' If it has the .o, or .a extension, it is automatically removed.'
38673 echo ' This name is used as the import library name and may be longer and'
38674 echo ' more descriptive than the DLL name which has to follow the old '
38675 echo ' 8.3 convention of FAT.'
38676 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
38677 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
38678 echo ' These flags will be put at the start of GCC command line.'
2057db16
VS
38679 echo '*> -ord[]inals[] tells dllar to export entries by ordinals. Be careful.'
38680 echo '*> -ex[]clude[] defines symbols which will not be exported. You can define'
473276a9
VS
38681 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
38682 echo ' If the last character of a symbol is "*", all symbols beginning'
38683 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
2057db16 38684 echo '*> -libf[]lags[] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 38685 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
2057db16 38686 echo '*> -nocrt[]dll[] switch will disable linking the library against emx''s'
473276a9 38687 echo ' C runtime DLLs.'
2057db16 38688 echo '*> -nolxl[]ite[] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
38689 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
38690 echo ' unchanged to GCC at the end of command line.'
38691 echo '*> If you create a DLL from a library and you do not specify -o,'
38692 echo ' the basename for DLL and import library will be set to library name,'
38693 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
38694 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
38695 echo ' library will be renamed into gcc_s.a.'
38696 echo '--------'
38697 echo 'Example:'
38698 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
38699 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
38700 CleanUp
38701 exit 1
38702}
38703
38704# Execute a command.
38705# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
38706# @Uses Whatever CleanUp() uses.
38707doCommand() {
38708 echo "${D}*"
38709 eval ${D}*
38710 rcCmd=${D}?
38711
2057db16 38712 if [] ${D}rcCmd -ne 0 []; then
473276a9
VS
38713 echo "command failed, exit code="${D}rcCmd
38714 CleanUp
38715 exit ${D}rcCmd
38716 fi
38717}
38718
38719# main routine
38720# setup globals
38721cmdLine=${D}*
38722outFile=""
38723outimpFile=""
38724inputFiles=""
38725description=""
38726CC=gcc.exe
38727CFLAGS="-s -Zcrtdll"
38728EXTRA_CFLAGS=""
38729EXPORT_BY_ORDINALS=0
38730exclude_symbols=""
38731library_flags=""
38732curDir=\`pwd\`
38733curDirS=curDir
38734case ${D}curDirS in
38735*/)
38736 ;;
38737*)
38738 curDirS=${D}{curDirS}"/"
38739 ;;
38740esac
38741# Parse commandline
38742libsToLink=0
2057db16 38743while [] ${D}1 []; do
473276a9
VS
38744 case ${D}1 in
38745 -ord*)
38746 EXPORT_BY_ORDINALS=1;
38747 ;;
38748 -o*)
38749 shift
38750 outFile=${D}1
38751 ;;
38752 -i*)
38753 shift
38754 outimpFile=${D}1
38755 ;;
38756 -d*)
38757 shift
38758 description=${D}1
38759 ;;
38760 -f*)
38761 shift
38762 CFLAGS=${D}1
38763 ;;
38764 -c*)
38765 shift
38766 CC=${D}1
38767 ;;
38768 -h*)
38769 PrintHelp
38770 ;;
38771 -ex*)
38772 shift
38773 exclude_symbols=${D}{exclude_symbols}${D}1" "
38774 ;;
38775 -libf*)
38776 shift
38777 library_flags=${D}{library_flags}${D}1" "
38778 ;;
38779 -nocrt*)
38780 CFLAGS="-s"
38781 ;;
38782 -nolxl*)
38783 flag_USE_LXLITE=0
38784 ;;
38785 -* | /*)
38786 case ${D}1 in
38787 -L* | -l*)
38788 libsToLink=1
38789 ;;
38790 *)
38791 ;;
38792 esac
38793 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
38794 ;;
38795 *)
38796 found=0;
2057db16 38797 if [] ${D}libsToLink -ne 0 []; then
473276a9
VS
38798 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
38799 else
38800 for file in ${D}1 ; do
2057db16 38801 if [] -f ${D}file []; then
473276a9
VS
38802 inputFiles="${D}{inputFiles} ${D}file"
38803 found=1
38804 fi
38805 done
2057db16 38806 if [] ${D}found -eq 0 []; then
473276a9
VS
38807 echo "ERROR: No file(s) found: "${D}1
38808 exit 8
38809 fi
38810 fi
38811 ;;
38812 esac
38813 shift
38814done # iterate cmdline words
38815
38816#
2057db16 38817if [] -z "${D}inputFiles" []; then
473276a9
VS
38818 echo "dllar: no input files"
38819 PrintHelp
38820fi
38821
38822# Now extract all .o files from .a files
38823newInputFiles=""
38824for file in ${D}inputFiles ; do
38825 case ${D}file in
38826 *.a | *.lib)
38827 case ${D}file in
38828 *.a)
38829 suffix=".a"
38830 AR="ar"
38831 ;;
38832 *.lib)
38833 suffix=".lib"
38834 AR="emxomfar"
38835 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
38836 ;;
38837 *)
38838 ;;
38839 esac
38840 dirname=\`basnam ${D}file ${D}suffix\`"_%"
38841 mkdir ${D}dirname
2057db16 38842 if [] ${D}? -ne 0 []; then
473276a9
VS
38843 echo "Failed to create subdirectory ./${D}dirname"
38844 CleanUp
38845 exit 8;
38846 fi
38847 # Append '!' to indicate archive
38848 newInputFiles="${D}newInputFiles ${D}{dirname}!"
38849 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
38850 cd ${D}curDir
38851 found=0;
38852 for subfile in ${D}dirname/*.o* ; do
2057db16 38853 if [] -f ${D}subfile []; then
473276a9 38854 found=1
2057db16 38855 if [] -s ${D}subfile []; then
473276a9
VS
38856 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
38857 newInputFiles="${D}newInputFiles ${D}subfile"
38858 fi
38859 fi
38860 done
2057db16 38861 if [] ${D}found -eq 0 []; then
473276a9
VS
38862 echo "WARNING: there are no files in archive \'${D}file\'"
38863 fi
38864 ;;
38865 *)
38866 newInputFiles="${D}{newInputFiles} ${D}file"
38867 ;;
38868 esac
38869done
38870inputFiles="${D}newInputFiles"
38871
38872# Output filename(s).
38873do_backup=0;
2057db16 38874if [] -z ${D}outFile []; then
473276a9
VS
38875 do_backup=1;
38876 set outFile ${D}inputFiles; outFile=${D}2
38877fi
38878
38879# If it is an archive, remove the '!' and the '_%' suffixes
38880case ${D}outFile in
38881*_%!)
38882 outFile=\`basnam ${D}outFile _%!\`
38883 ;;
38884*)
38885 ;;
38886esac
38887case ${D}outFile in
38888*.dll)
38889 outFile=\`basnam ${D}outFile .dll\`
38890 ;;
38891*.DLL)
38892 outFile=\`basnam ${D}outFile .DLL\`
38893 ;;
38894*.o)
38895 outFile=\`basnam ${D}outFile .o\`
38896 ;;
38897*.obj)
38898 outFile=\`basnam ${D}outFile .obj\`
38899 ;;
38900*.a)
38901 outFile=\`basnam ${D}outFile .a\`
38902 ;;
38903*.lib)
38904 outFile=\`basnam ${D}outFile .lib\`
38905 ;;
38906*)
38907 ;;
38908esac
38909case ${D}outimpFile in
38910*.a)
38911 outimpFile=\`basnam ${D}outimpFile .a\`
38912 ;;
38913*.lib)
38914 outimpFile=\`basnam ${D}outimpFile .lib\`
38915 ;;
38916*)
38917 ;;
38918esac
2057db16 38919if [] -z ${D}outimpFile []; then
473276a9
VS
38920 outimpFile=${D}outFile
38921fi
38922defFile="${D}{outFile}.def"
38923arcFile="${D}{outimpFile}.a"
38924arcFile2="${D}{outimpFile}.lib"
38925dllFile="${D}outFile"
38926# Add suffix to dllFile later, first we need a version to use as
38927# name in .def file.
38928
2057db16
VS
38929if [] ${D}do_backup -ne 0 [] ; then
38930 if [] -f ${D}arcFile [] ; then
473276a9
VS
38931 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
38932 fi
2057db16 38933 if [] -f ${D}arcFile2 [] ; then
473276a9
VS
38934 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
38935 fi
38936fi
38937
38938# Extract public symbols from all the object files.
38939tmpdefFile=${D}{defFile}_%
38940rm -f ${D}tmpdefFile
38941for file in ${D}inputFiles ; do
38942 case ${D}file in
38943 *!)
38944 ;;
38945 *)
38946 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
38947 ;;
38948 esac
38949done
38950
38951# Create the def file.
38952rm -f ${D}defFile
38953echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
38954dllFile="${D}dllFile.dll"
2057db16 38955if [] -n ${D}description []; then
473276a9
VS
38956 echo "DESCRIPTION \"${D}{description}\"" >> ${D}defFile
38957fi
38958echo "EXPORTS" >> ${D}defFile
38959
38960doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
38961grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
38962
38963# Checks if the export is ok or not.
38964for word in ${D}exclude_symbols; do
38965 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
38966 mv ${D}{tmpdefFile}% ${D}tmpdefFile
38967done
38968
38969
2057db16 38970if [] ${D}EXPORT_BY_ORDINALS -ne 0 []; then
473276a9
VS
38971 sed "=" < ${D}tmpdefFile | \
38972 sed '
38973 N
38974 : loop
2057db16 38975 s/^\([]0-9[]\+\)\([]^;[]*\)\(;.*\)\?/\2 @\1 NONAME/
473276a9
VS
38976 t loop
38977 ' > ${D}{tmpdefFile}%
38978 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
38979else
38980 rm -f ${D}{tmpdefFile}%
38981fi
38982cat ${D}tmpdefFile >> ${D}defFile
38983rm -f ${D}tmpdefFile
38984
38985# Do linking, create implib, and apply lxlite.
38986gccCmdl="";
38987for file in ${D}inputFiles ; do
38988 case ${D}file in
38989 *!)
38990 ;;
38991 *)
38992 gccCmdl="${D}gccCmdl ${D}file"
38993 ;;
38994 esac
38995done
38996doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
38997touch "${D}{outFile}.dll"
38998
38999doCommand "emximp -o ${D}arcFile ${D}defFile"
2057db16 39000if [] ${D}flag_USE_LXLITE -ne 0 []; then
473276a9 39001 add_flags="";
2057db16 39002 if [] ${D}EXPORT_BY_ORDINALS -ne 0 []; then
473276a9
VS
39003 add_flags="-ynd"
39004 fi
39005 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
39006fi
39007doCommand "emxomf -s -l ${D}arcFile"
39008
39009# Successful exit.
39010CleanUp 1
39011exit 0
39012EOF
39013
39014 chmod +x dllar.sh
a848cd7e
SC
39015 ;;
39016
39017 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
39018 *-*-sunos4* | \
39019 *-*-osf* | \
39020 *-*-dgux5* | \
39021 *-*-sysv5* )
39022 ;;
39023
39024 *)
39025 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
39026echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
39027 { (exit 1); exit 1; }; }
39028 esac
39029
2057db16
VS
39030 if test "x$PIC_FLAG" != "x" ; then
39031 PIC_FLAG="$PIC_FLAG -DPIC"
39032 fi
39033
a848cd7e
SC
39034 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
39035 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
39036 fi
39037 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
39038 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
39039 fi
39040
39041
39042
39043
39044
39045
39046
39047
39048 USE_SOVERSION=0
39049 USE_SOVERLINUX=0
39050 USE_SOVERSOLARIS=0
39051 USE_SOSYMLINKS=0
39052 USE_MACVERSION=0
39053 SONAME_FLAG=
39054
39055 case "${BAKEFILE_HOST}" in
39056 *-*-linux* )
39057 SONAME_FLAG="-Wl,-soname,"
39058 USE_SOVERSION=1
39059 USE_SOVERLINUX=1
39060 USE_SOSYMLINKS=1
39061 ;;
39062
39063 *-*-solaris2* )
39064 SONAME_FLAG="-h "
39065 USE_SOVERSION=1
39066 USE_SOVERSOLARIS=1
39067 USE_SOSYMLINKS=1
39068 ;;
39069
39070 *-*-darwin* )
39071 USE_MACVERSION=1
39072 USE_SOVERSION=1
39073 USE_SOSYMLINKS=1
39074 ;;
39075 esac
39076
39077
39078
39079
39080
39081
39082
39083
39084
39085 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
39086echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
39087 DEPS_TRACKING=0
39088
39089 if test "x$GCC" = "xyes"; then
39090 DEPSMODE=gcc
39091 DEPS_TRACKING=1
39092 case "${BAKEFILE_HOST}" in
39093 powerpc-*-darwin* )
39094 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
39095 ;;
39096 * )
39097 DEPSFLAG_GCC="-MMD"
39098 ;;
39099 esac
39100 echo "$as_me:$LINENO: result: gcc" >&5
39101echo "${ECHO_T}gcc" >&6
39102 else
39103 echo "$as_me:$LINENO: result: none" >&5
39104echo "${ECHO_T}none" >&6
39105 fi
39106
39107 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
39108
39109D='$'
39110cat <<EOF >bk-deps
a848cd7e
SC
39111#!/bin/sh
39112
39113# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39114# script. It is used to track C/C++ files dependencies in portable way.
39115#
39116# Permission is given to use this file in any way.
39117
473276a9 39118DEPSMODE=${DEPSMODE}
a848cd7e 39119DEPSDIR=.deps
473276a9 39120DEPSFLAG_GCC="${DEPSFLAG_GCC}"
a848cd7e 39121
473276a9 39122mkdir -p ${D}DEPSDIR
a848cd7e 39123
473276a9
VS
39124if test ${D}DEPSMODE = gcc ; then
39125 ${D}* ${D}{DEPSFLAG_GCC}
39126 status=${D}?
39127 if test ${D}{status} != 0 ; then
39128 exit ${D}{status}
a848cd7e
SC
39129 fi
39130 # move created file to the location we want it in:
473276a9
VS
39131 while test ${D}# -gt 0; do
39132 case "${D}1" in
a848cd7e
SC
39133 -o )
39134 shift
473276a9 39135 objfile=${D}1
a848cd7e
SC
39136 ;;
39137 -* )
39138 ;;
39139 * )
473276a9 39140 srcfile=${D}1
a848cd7e
SC
39141 ;;
39142 esac
39143 shift
39144 done
473276a9
VS
39145 depfile=\`basename ${D}srcfile | sed -e 's/\..*${D}/.d/g'\`
39146 depobjname=\`echo ${D}depfile |sed -e 's/\.d/.o/g'\`
39147 if test -f ${D}depfile ; then
39148 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
39149 rm -f ${D}depfile
a848cd7e 39150 else
473276a9
VS
39151 depfile=\`basename ${D}objfile | sed -e 's/\..*${D}/.d/g'\`
39152 if test -f ${D}depfile ; then
39153 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
39154 rm -f ${D}depfile
a848cd7e
SC
39155 fi
39156 fi
39157 exit 0
39158else
473276a9
VS
39159 ${D}*
39160 exit ${D}?
a848cd7e
SC
39161fi
39162EOF
473276a9 39163
a848cd7e
SC
39164 chmod +x bk-deps
39165 fi
39166
39167
39168
39169
39170 RESCOMP=
39171 SETFILE=
39172
39173 case ${BAKEFILE_HOST} in
39174 *-*-cygwin* | *-*-mingw32* )
39175 if test "$build" != "$host" ; then
39176 RESCOMP=$host_alias-windres
39177 else
39178 # Extract the first word of "windres", so it can be a program name with args.
39179set dummy windres; ac_word=$2
39180echo "$as_me:$LINENO: checking for $ac_word" >&5
39181echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39182if test "${ac_cv_prog_RESCOMP+set}" = set; then
39183 echo $ECHO_N "(cached) $ECHO_C" >&6
39184else
39185 if test -n "$RESCOMP"; then
39186 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
39187else
39188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39189for as_dir in $PATH
39190do
39191 IFS=$as_save_IFS
39192 test -z "$as_dir" && as_dir=.
39193 for ac_exec_ext in '' $ac_executable_extensions; do
39194 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39195 ac_cv_prog_RESCOMP="windres"
39196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39197 break 2
39198 fi
39199done
39200done
39201
39202 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
39203fi
39204fi
39205RESCOMP=$ac_cv_prog_RESCOMP
39206if test -n "$RESCOMP"; then
39207 echo "$as_me:$LINENO: result: $RESCOMP" >&5
39208echo "${ECHO_T}$RESCOMP" >&6
39209else
39210 echo "$as_me:$LINENO: result: no" >&5
39211echo "${ECHO_T}no" >&6
39212fi
39213
39214 fi
39215 ;;
39216
39217 *-*-darwin* )
39218 # Extract the first word of "Rez", so it can be a program name with args.
39219set dummy Rez; ac_word=$2
39220echo "$as_me:$LINENO: checking for $ac_word" >&5
39221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39222if test "${ac_cv_prog_RESCOMP+set}" = set; then
39223 echo $ECHO_N "(cached) $ECHO_C" >&6
39224else
39225 if test -n "$RESCOMP"; then
39226 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
39227else
39228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39229for as_dir in $PATH
39230do
39231 IFS=$as_save_IFS
39232 test -z "$as_dir" && as_dir=.
39233 for ac_exec_ext in '' $ac_executable_extensions; do
39234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39235 ac_cv_prog_RESCOMP="Rez"
39236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39237 break 2
39238 fi
39239done
39240done
39241
39242 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
39243fi
39244fi
39245RESCOMP=$ac_cv_prog_RESCOMP
39246if test -n "$RESCOMP"; then
39247 echo "$as_me:$LINENO: result: $RESCOMP" >&5
39248echo "${ECHO_T}$RESCOMP" >&6
39249else
39250 echo "$as_me:$LINENO: result: no" >&5
39251echo "${ECHO_T}no" >&6
39252fi
39253
39254 # Extract the first word of "SetFile", so it can be a program name with args.
39255set dummy SetFile; ac_word=$2
39256echo "$as_me:$LINENO: checking for $ac_word" >&5
39257echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39258if test "${ac_cv_prog_SETFILE+set}" = set; then
39259 echo $ECHO_N "(cached) $ECHO_C" >&6
39260else
39261 if test -n "$SETFILE"; then
39262 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
39263else
39264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39265for as_dir in $PATH
39266do
39267 IFS=$as_save_IFS
39268 test -z "$as_dir" && as_dir=.
39269 for ac_exec_ext in '' $ac_executable_extensions; do
39270 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39271 ac_cv_prog_SETFILE="SetFile"
39272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39273 break 2
39274 fi
39275done
39276done
39277
39278 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
39279fi
39280fi
39281SETFILE=$ac_cv_prog_SETFILE
39282if test -n "$SETFILE"; then
39283 echo "$as_me:$LINENO: result: $SETFILE" >&5
39284echo "${ECHO_T}$SETFILE" >&6
39285else
39286 echo "$as_me:$LINENO: result: no" >&5
39287echo "${ECHO_T}no" >&6
39288fi
39289
39290 ;;
39291 esac
39292
39293
39294
39295
39296
2057db16 39297 BAKEFILE_BAKEFILE_M4_VERSION="0.1.4"
a848cd7e 39298
dcc1b6ad 39299
ceec2216
RL
39300
39301
39302
9f45f08e 39303BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.4"
a848cd7e 39304
646b6ec1 39305
74b84332 39306
a848cd7e
SC
39307 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
39308if test "${enable_precomp_headers+set}" = set; then
39309 enableval="$enable_precomp_headers"
39310 bk_use_pch="$enableval"
39311fi;
39312
39313 GCC_PCH=0
39314
39315 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
39316 if test "x$GCC" = "xyes"; then
39317 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
39318echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
39319 cat >conftest.$ac_ext <<_ACEOF
39320/* confdefs.h. */
39321_ACEOF
39322cat confdefs.h >>conftest.$ac_ext
39323cat >>conftest.$ac_ext <<_ACEOF
39324/* end confdefs.h. */
39325
39326int
39327main ()
39328{
39329
39330 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
39331 #error "no pch support"
39332 #endif
39333 #if (__GNUC__ < 3)
39334 #error "no pch support"
39335 #endif
39336 #if (__GNUC__ == 3) && \
39337 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
39338 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
39339 #error "no pch support"
39340 #endif
39341
39342 ;
39343 return 0;
39344}
39345_ACEOF
39346rm -f conftest.$ac_objext
39347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39348 (eval $ac_compile) 2>conftest.er1
a848cd7e 39349 ac_status=$?
ac1cb8d3
VS
39350 grep -v '^ *+' conftest.er1 >conftest.err
39351 rm -f conftest.er1
39352 cat conftest.err >&5
a848cd7e
SC
39353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39354 (exit $ac_status); } &&
ceec2216 39355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39357 (eval $ac_try) 2>&5
39358 ac_status=$?
39359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39360 (exit $ac_status); }; } &&
39361 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39363 (eval $ac_try) 2>&5
39364 ac_status=$?
39365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39366 (exit $ac_status); }; }; then
39367
39368 echo "$as_me:$LINENO: result: yes" >&5
39369echo "${ECHO_T}yes" >&6
a848cd7e
SC
39370 GCC_PCH=1
39371
39372else
39373 echo "$as_me: failed program was:" >&5
39374sed 's/^/| /' conftest.$ac_ext >&5
39375
39376
39377 echo "$as_me:$LINENO: result: no" >&5
39378echo "${ECHO_T}no" >&6
39379
39380fi
ac1cb8d3 39381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39382 if test $GCC_PCH = 1 ; then
39383 cat <<EOF >bk-make-pch
39384#!/bin/sh
39385
39386# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39387# script. It is used to generated precompiled headers.
39388#
39389# Permission is given to use this file in any way.
39390
39391outfile="\${1}"
39392header="\${2}"
39393shift
39394shift
39395
39396compiler=
39397headerfile=
39398while test \${#} -gt 0; do
39399 case "\${1}" in
39400 -I* )
39401 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
39402 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
39403 headerfile="\${incdir}/\${header}"
39404 fi
39405 ;;
39406 esac
39407 compiler="\${compiler} \${1}"
39408 shift
39409done
39410
39411if test "x\${headerfile}" = "x" ; then
39412 echo "error: can't find header \${header} in include paths" >2
39413else
39414 if test -f \${outfile} ; then
39415 rm -f \${outfile}
39416 else
39417 mkdir -p \`dirname \${outfile}\`
39418 fi
39419 depsfile=".deps/\`basename \${outfile}\`.d"
39420 mkdir -p .deps
39421 # can do this because gcc is >= 3.4:
39422 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
39423 exit \${?}
39424fi
39425EOF
39426 chmod +x bk-make-pch
39427 fi
39428 fi
39429 fi
39430
39431
39432
39433
39434
dcc1b6ad
VS
39435
39436
39437 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
39438if test "${enable_precomp_headers+set}" = set; then
39439 enableval="$enable_precomp_headers"
39440 bk_use_pch="$enableval"
39441fi;
39442
39443 GCC_PCH=0
39444
39445 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
39446 if test "x$GCC" = "xyes"; then
39447 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
39448echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
39449 cat >conftest.$ac_ext <<_ACEOF
39450/* confdefs.h. */
39451_ACEOF
39452cat confdefs.h >>conftest.$ac_ext
39453cat >>conftest.$ac_ext <<_ACEOF
39454/* end confdefs.h. */
39455
39456int
39457main ()
39458{
39459
39460 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
39461 #error "no pch support"
39462 #endif
39463 #if (__GNUC__ < 3)
39464 #error "no pch support"
39465 #endif
39466 #if (__GNUC__ == 3) && \
39467 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
39468 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
39469 #error "no pch support"
39470 #endif
39471
39472 ;
39473 return 0;
39474}
39475_ACEOF
39476rm -f conftest.$ac_objext
39477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39478 (eval $ac_compile) 2>conftest.er1
dcc1b6ad 39479 ac_status=$?
ac1cb8d3
VS
39480 grep -v '^ *+' conftest.er1 >conftest.err
39481 rm -f conftest.er1
39482 cat conftest.err >&5
dcc1b6ad
VS
39483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39484 (exit $ac_status); } &&
ceec2216 39485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39487 (eval $ac_try) 2>&5
39488 ac_status=$?
39489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39490 (exit $ac_status); }; } &&
39491 { ac_try='test -s conftest.$ac_objext'
dcc1b6ad
VS
39492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39493 (eval $ac_try) 2>&5
39494 ac_status=$?
39495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39496 (exit $ac_status); }; }; then
39497
39498 echo "$as_me:$LINENO: result: yes" >&5
39499echo "${ECHO_T}yes" >&6
dcc1b6ad
VS
39500 GCC_PCH=1
39501
39502else
39503 echo "$as_me: failed program was:" >&5
39504sed 's/^/| /' conftest.$ac_ext >&5
39505
39506
39507 echo "$as_me:$LINENO: result: no" >&5
39508echo "${ECHO_T}no" >&6
39509
39510fi
ac1cb8d3 39511rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dcc1b6ad
VS
39512 if test $GCC_PCH = 1 ; then
39513 cat <<EOF >bk-make-pch
39514#!/bin/sh
39515
39516# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39517# script. It is used to generated precompiled headers.
39518#
39519# Permission is given to use this file in any way.
39520
39521outfile="\${1}"
39522header="\${2}"
39523shift
39524shift
39525
39526compiler=
39527headerfile=
39528while test \${#} -gt 0; do
39529 case "\${1}" in
39530 -I* )
39531 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
39532 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
39533 headerfile="\${incdir}/\${header}"
39534 fi
39535 ;;
39536 esac
39537 compiler="\${compiler} \${1}"
39538 shift
39539done
39540
39541if test "x\${headerfile}" = "x" ; then
39542 echo "error: can't find header \${header} in include paths" >2
39543else
39544 if test -f \${outfile} ; then
39545 rm -f \${outfile}
39546 else
39547 mkdir -p \`dirname \${outfile}\`
39548 fi
39549 depsfile=".deps/\`basename \${outfile}\`.d"
39550 mkdir -p .deps
39551 # can do this because gcc is >= 3.4:
39552 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
39553 exit \${?}
39554fi
39555EOF
39556 chmod +x bk-make-pch
39557 fi
39558 fi
39559 fi
39560
39561
39562
a848cd7e
SC
39563 COND_BUILD_DEBUG="#"
39564 if test "x$BUILD" = "xdebug" ; then
39565 COND_BUILD_DEBUG=""
39566 fi
39567
39568 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
39569 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
39570 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
39571 fi
39572
39573 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
39574 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
39575 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
39576 fi
39577
39578 COND_BUILD_DEBUG_UNICODE_0="#"
39579 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
39580 COND_BUILD_DEBUG_UNICODE_0=""
39581 fi
39582
39583 COND_BUILD_DEBUG_UNICODE_1="#"
39584 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
39585 COND_BUILD_DEBUG_UNICODE_1=""
39586 fi
39587
39588 COND_BUILD_RELEASE="#"
39589 if test "x$BUILD" = "xrelease" ; then
39590 COND_BUILD_RELEASE=""
39591 fi
39592
39593 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
39594 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
39595 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
39596 fi
39597
39598 COND_BUILD_RELEASE_UNICODE_0="#"
39599 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
39600 COND_BUILD_RELEASE_UNICODE_0=""
39601 fi
39602
39603 COND_BUILD_RELEASE_UNICODE_1="#"
39604 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
39605 COND_BUILD_RELEASE_UNICODE_1=""
39606 fi
39607
39608 COND_DEBUG_FLAG_1="#"
39609 if test "x$DEBUG_FLAG" = "x1" ; then
39610 COND_DEBUG_FLAG_1=""
39611 fi
39612
39613 COND_DEBUG_INFO_0="#"
39614 if test "x$DEBUG_INFO" = "x0" ; then
39615 COND_DEBUG_INFO_0=""
39616 fi
39617
39618 COND_DEBUG_INFO_1="#"
39619 if test "x$DEBUG_INFO" = "x1" ; then
39620 COND_DEBUG_INFO_1=""
39621 fi
39622
39623 COND_DEPS_TRACKING_0="#"
39624 if test "x$DEPS_TRACKING" = "x0" ; then
39625 COND_DEPS_TRACKING_0=""
39626 fi
39627
39628 COND_DEPS_TRACKING_1="#"
39629 if test "x$DEPS_TRACKING" = "x1" ; then
39630 COND_DEPS_TRACKING_1=""
39631 fi
39632
39633 COND_GCC_PCH_1="#"
39634 if test "x$GCC_PCH" = "x1" ; then
39635 COND_GCC_PCH_1=""
39636 fi
39637
39638 COND_MONOLITHIC_0="#"
39639 if test "x$MONOLITHIC" = "x0" ; then
39640 COND_MONOLITHIC_0=""
39641 fi
39642
39643 COND_MONOLITHIC_0_SHARED_0="#"
39644 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
39645 COND_MONOLITHIC_0_SHARED_0=""
39646 fi
39647
39648 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
39649 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
39650 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
39651 fi
39652
39653 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
39654 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
39655 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
39656 fi
39657
39658 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
39659 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
39660 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
39661 fi
39662
39663 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
39664 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
39665 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
39666 fi
39667
ceec2216
RL
39668 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
39669 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
39670 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
39671 fi
39672
a848cd7e
SC
39673 COND_MONOLITHIC_0_SHARED_1="#"
39674 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
39675 COND_MONOLITHIC_0_SHARED_1=""
39676 fi
39677
39678 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
39679 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
39680 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
39681 fi
39682
39683 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
39684 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
39685 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
39686 fi
39687
39688 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
39689 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
39690 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
39691 fi
39692
39693 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
39694 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
39695 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
39696 fi
39697
ceec2216
RL
39698 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
39699 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
39700 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
39701 fi
39702
a848cd7e
SC
39703 COND_MONOLITHIC_0_USE_ODBC_1="#"
39704 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
39705 COND_MONOLITHIC_0_USE_ODBC_1=""
39706 fi
39707
39708 COND_MONOLITHIC_1="#"
39709 if test "x$MONOLITHIC" = "x1" ; then
39710 COND_MONOLITHIC_1=""
39711 fi
39712
39713 COND_MONOLITHIC_1_SHARED_0="#"
39714 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
39715 COND_MONOLITHIC_1_SHARED_0=""
39716 fi
39717
39718 COND_MONOLITHIC_1_SHARED_1="#"
39719 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
39720 COND_MONOLITHIC_1_SHARED_1=""
39721 fi
39722
39723 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
39724 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
39725 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
39726 fi
39727
39728 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
39729 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
39730 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
39731 fi
39732
39733 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
39734 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
39735 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
39736 fi
39737
39738 COND_PLATFORM_MACOSX_1="#"
39739 if test "x$PLATFORM_MACOSX" = "x1" ; then
39740 COND_PLATFORM_MACOSX_1=""
39741 fi
39742
39743 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
39744 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
39745 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
39746 fi
39747
39748 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
39749 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
39750 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
39751 fi
39752
39753 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
39754 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
39755 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
39756 fi
39757
ebee3cd0
VS
39758 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
39759 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
39760 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
39761 fi
39762
39763 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
39764 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
39765 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
39766 fi
39767
a848cd7e
SC
39768 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
39769 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
39770 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
39771 fi
39772
39773 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
39774 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
39775 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
39776 fi
39777
39778 COND_PLATFORM_MAC_1="#"
39779 if test "x$PLATFORM_MAC" = "x1" ; then
39780 COND_PLATFORM_MAC_1=""
39781 fi
39782
39783 COND_PLATFORM_OS2_1="#"
39784 if test "x$PLATFORM_OS2" = "x1" ; then
39785 COND_PLATFORM_OS2_1=""
39786 fi
39787
39788 COND_PLATFORM_UNIX_0="#"
39789 if test "x$PLATFORM_UNIX" = "x0" ; then
39790 COND_PLATFORM_UNIX_0=""
39791 fi
39792
39793 COND_PLATFORM_UNIX_1="#"
39794 if test "x$PLATFORM_UNIX" = "x1" ; then
39795 COND_PLATFORM_UNIX_1=""
39796 fi
39797
39798 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
39799 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
39800 COND_PLATFORM_UNIX_1_USE_GUI_1=""
39801 fi
39802
39803 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
39804 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
39805 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
39806 fi
39807
39808 COND_PLATFORM_WIN32_0="#"
39809 if test "x$PLATFORM_WIN32" = "x0" ; then
39810 COND_PLATFORM_WIN32_0=""
39811 fi
39812
39813 COND_PLATFORM_WIN32_1="#"
39814 if test "x$PLATFORM_WIN32" = "x1" ; then
39815 COND_PLATFORM_WIN32_1=""
39816 fi
39817
39818 COND_SHARED_0="#"
39819 if test "x$SHARED" = "x0" ; then
39820 COND_SHARED_0=""
39821 fi
39822
ceec2216
RL
39823 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
39824 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
39825 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
39826 fi
39827
39828 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
39829 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
39830 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
39831 fi
39832
39833 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
39834 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
39835 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
39836 fi
39837
a848cd7e
SC
39838 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
39839 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
39840 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
39841 fi
39842
39843 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
39844 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
39845 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
39846 fi
39847
39848 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
39849 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
39850 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
39851 fi
39852
39853 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
39854 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
39855 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
39856 fi
39857
39858 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
39859 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
39860 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
39861 fi
39862
39863 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
39864 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
39865 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
39866 fi
39867
39868 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
39869 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
39870 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
39871 fi
39872
39873 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
39874 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
39875 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
39876 fi
39877
39878 COND_SHARED_1="#"
39879 if test "x$SHARED" = "x1" ; then
39880 COND_SHARED_1=""
39881 fi
39882
39883 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
39884 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
39885 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
39886 fi
39887
39888 COND_TOOLKIT_COCOA="#"
39889 if test "x$TOOLKIT" = "xCOCOA" ; then
39890 COND_TOOLKIT_COCOA=""
39891 fi
39892
39893 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
39894 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39895 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
39896 fi
39897
39898 COND_TOOLKIT_GTK="#"
39899 if test "x$TOOLKIT" = "xGTK" ; then
39900 COND_TOOLKIT_GTK=""
39901 fi
39902
39903 COND_TOOLKIT_GTK_USE_GUI_1="#"
39904 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
39905 COND_TOOLKIT_GTK_USE_GUI_1=""
39906 fi
39907
39908 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
39909 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39910 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
39911 fi
39912
39913 COND_TOOLKIT_MAC="#"
39914 if test "x$TOOLKIT" = "xMAC" ; then
39915 COND_TOOLKIT_MAC=""
39916 fi
39917
39918 COND_TOOLKIT_MAC_USE_GUI_1="#"
39919 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
39920 COND_TOOLKIT_MAC_USE_GUI_1=""
39921 fi
39922
39923 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
39924 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39925 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
39926 fi
39927
39928 COND_TOOLKIT_MGL="#"
39929 if test "x$TOOLKIT" = "xMGL" ; then
39930 COND_TOOLKIT_MGL=""
39931 fi
39932
39933 COND_TOOLKIT_MGL_USE_GUI_1="#"
39934 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
39935 COND_TOOLKIT_MGL_USE_GUI_1=""
39936 fi
39937
39938 COND_TOOLKIT_MOTIF="#"
39939 if test "x$TOOLKIT" = "xMOTIF" ; then
39940 COND_TOOLKIT_MOTIF=""
39941 fi
39942
39943 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
39944 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
39945 COND_TOOLKIT_MOTIF_USE_GUI_1=""
39946 fi
39947
39948 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
39949 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39950 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
39951 fi
39952
39953 COND_TOOLKIT_MSW="#"
39954 if test "x$TOOLKIT" = "xMSW" ; then
39955 COND_TOOLKIT_MSW=""
39956 fi
39957
39958 COND_TOOLKIT_MSW_USE_GUI_1="#"
39959 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
39960 COND_TOOLKIT_MSW_USE_GUI_1=""
39961 fi
39962
39963 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
39964 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39965 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
39966 fi
39967
39968 COND_TOOLKIT_PM="#"
39969 if test "x$TOOLKIT" = "xPM" ; then
39970 COND_TOOLKIT_PM=""
39971 fi
39972
39973 COND_TOOLKIT_PM_USE_GUI_1="#"
39974 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
39975 COND_TOOLKIT_PM_USE_GUI_1=""
39976 fi
39977
39978 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
39979 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39980 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
39981 fi
39982
3fd9c298
DE
39983 COND_TOOLKIT_WINCE="#"
39984 if test "x$TOOLKIT" = "xWINCE" ; then
39985 COND_TOOLKIT_WINCE=""
39986 fi
39987
39988 COND_TOOLKIT_WINCE_USE_GUI_1="#"
39989 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
39990 COND_TOOLKIT_WINCE_USE_GUI_1=""
39991 fi
39992
39993 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
39994 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39995 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
39996 fi
39997
a848cd7e
SC
39998 COND_TOOLKIT_X11="#"
39999 if test "x$TOOLKIT" = "xX11" ; then
40000 COND_TOOLKIT_X11=""
40001 fi
40002
40003 COND_TOOLKIT_X11_USE_GUI_1="#"
40004 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
40005 COND_TOOLKIT_X11_USE_GUI_1=""
40006 fi
40007
40008 COND_UNICODE_1="#"
40009 if test "x$UNICODE" = "x1" ; then
40010 COND_UNICODE_1=""
40011 fi
40012
40013 COND_USE_EXCEPTIONS_0="#"
40014 if test "x$USE_EXCEPTIONS" = "x0" ; then
40015 COND_USE_EXCEPTIONS_0=""
40016 fi
40017
40018 COND_USE_EXCEPTIONS_1="#"
40019 if test "x$USE_EXCEPTIONS" = "x1" ; then
40020 COND_USE_EXCEPTIONS_1=""
40021 fi
40022
40023 COND_USE_GUI_0="#"
40024 if test "x$USE_GUI" = "x0" ; then
40025 COND_USE_GUI_0=""
40026 fi
40027
40028 COND_USE_GUI_1="#"
40029 if test "x$USE_GUI" = "x1" ; then
40030 COND_USE_GUI_1=""
40031 fi
40032
40033 COND_USE_GUI_1_WXUNIV_0="#"
40034 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40035 COND_USE_GUI_1_WXUNIV_0=""
40036 fi
40037
40038 COND_USE_GUI_1_WXUNIV_1="#"
40039 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
40040 COND_USE_GUI_1_WXUNIV_1=""
40041 fi
40042
40043 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40044 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40045 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40046 fi
40047
40048 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40049 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40050 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40051 fi
40052
40053 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40054 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40055 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40056 fi
40057
ceec2216
RL
40058 COND_USE_ODBC_1="#"
40059 if test "x$USE_ODBC" = "x1" ; then
40060 COND_USE_ODBC_1=""
40061 fi
40062
a848cd7e
SC
40063 COND_USE_PLUGINS_0="#"
40064 if test "x$USE_PLUGINS" = "x0" ; then
40065 COND_USE_PLUGINS_0=""
40066 fi
40067
40068 COND_USE_SOSYMLINKS_1="#"
40069 if test "x$USE_SOSYMLINKS" = "x1" ; then
40070 COND_USE_SOSYMLINKS_1=""
40071 fi
40072
40073 COND_USE_SOVERLINUX_1="#"
40074 if test "x$USE_SOVERLINUX" = "x1" ; then
40075 COND_USE_SOVERLINUX_1=""
40076 fi
40077
40078 COND_USE_SOVERSION_0="#"
40079 if test "x$USE_SOVERSION" = "x0" ; then
40080 COND_USE_SOVERSION_0=""
40081 fi
40082
40083 COND_USE_SOVERSOLARIS_1="#"
40084 if test "x$USE_SOVERSOLARIS" = "x1" ; then
40085 COND_USE_SOVERSOLARIS_1=""
40086 fi
40087
40088 COND_WITH_PLUGIN_SDL_1="#"
40089 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
40090 COND_WITH_PLUGIN_SDL_1=""
40091 fi
40092
a848cd7e
SC
40093 COND_WXUNIV_1="#"
40094 if test "x$WXUNIV" = "x1" ; then
40095 COND_WXUNIV_1=""
40096 fi
40097
40098 COND_WXUSE_EXPAT_BUILTIN="#"
40099 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
40100 COND_WXUSE_EXPAT_BUILTIN=""
40101 fi
40102
40103 COND_WXUSE_LIBJPEG_BUILTIN="#"
40104 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40105 COND_WXUSE_LIBJPEG_BUILTIN=""
40106 fi
40107
40108 COND_WXUSE_LIBPNG_BUILTIN="#"
40109 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40110 COND_WXUSE_LIBPNG_BUILTIN=""
40111 fi
40112
40113 COND_WXUSE_LIBTIFF_BUILTIN="#"
40114 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40115 COND_WXUSE_LIBTIFF_BUILTIN=""
40116 fi
40117
40118 COND_WXUSE_ODBC_BUILTIN="#"
40119 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
40120 COND_WXUSE_ODBC_BUILTIN=""
40121 fi
40122
40123 COND_WXUSE_REGEX_BUILTIN="#"
40124 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
40125 COND_WXUSE_REGEX_BUILTIN=""
40126 fi
40127
40128 COND_WXUSE_ZLIB_BUILTIN="#"
40129 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
40130 COND_WXUSE_ZLIB_BUILTIN=""
40131 fi
40132
dcc1b6ad
VS
40133 COND_BUILD_DEBUG="#"
40134 if test "x$BUILD" = "xdebug" ; then
40135 COND_BUILD_DEBUG=""
40136 fi
40137
40138 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
40139 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
40140 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
40141 fi
40142
40143 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
40144 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
40145 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
40146 fi
40147
40148 COND_BUILD_DEBUG_UNICODE_0="#"
40149 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
40150 COND_BUILD_DEBUG_UNICODE_0=""
40151 fi
40152
40153 COND_BUILD_DEBUG_UNICODE_1="#"
40154 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
40155 COND_BUILD_DEBUG_UNICODE_1=""
40156 fi
40157
40158 COND_BUILD_RELEASE="#"
40159 if test "x$BUILD" = "xrelease" ; then
40160 COND_BUILD_RELEASE=""
40161 fi
40162
40163 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
40164 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
40165 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
40166 fi
40167
40168 COND_BUILD_RELEASE_UNICODE_0="#"
40169 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
40170 COND_BUILD_RELEASE_UNICODE_0=""
40171 fi
40172
40173 COND_BUILD_RELEASE_UNICODE_1="#"
40174 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
40175 COND_BUILD_RELEASE_UNICODE_1=""
40176 fi
40177
40178 COND_DEBUG_FLAG_1="#"
40179 if test "x$DEBUG_FLAG" = "x1" ; then
40180 COND_DEBUG_FLAG_1=""
40181 fi
40182
40183 COND_DEBUG_INFO_0="#"
40184 if test "x$DEBUG_INFO" = "x0" ; then
40185 COND_DEBUG_INFO_0=""
40186 fi
40187
40188 COND_DEBUG_INFO_1="#"
40189 if test "x$DEBUG_INFO" = "x1" ; then
40190 COND_DEBUG_INFO_1=""
40191 fi
40192
40193 COND_DEPS_TRACKING_0="#"
40194 if test "x$DEPS_TRACKING" = "x0" ; then
40195 COND_DEPS_TRACKING_0=""
40196 fi
40197
40198 COND_DEPS_TRACKING_1="#"
40199 if test "x$DEPS_TRACKING" = "x1" ; then
40200 COND_DEPS_TRACKING_1=""
40201 fi
40202
40203 COND_GCC_PCH_1="#"
40204 if test "x$GCC_PCH" = "x1" ; then
40205 COND_GCC_PCH_1=""
40206 fi
40207
40208 COND_MONOLITHIC_0="#"
40209 if test "x$MONOLITHIC" = "x0" ; then
40210 COND_MONOLITHIC_0=""
40211 fi
40212
40213 COND_MONOLITHIC_0_SHARED_0="#"
40214 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
40215 COND_MONOLITHIC_0_SHARED_0=""
40216 fi
40217
40218 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
40219 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
40220 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
40221 fi
40222
40223 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
40224 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40225 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
40226 fi
40227
40228 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
40229 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
40230 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
40231 fi
40232
40233 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
40234 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
40235 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
40236 fi
40237
9a8f0513
VS
40238 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
40239 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
40240 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
40241 fi
40242
dcc1b6ad
VS
40243 COND_MONOLITHIC_0_SHARED_1="#"
40244 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
40245 COND_MONOLITHIC_0_SHARED_1=""
40246 fi
40247
40248 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
40249 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
40250 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
40251 fi
40252
40253 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
40254 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40255 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
40256 fi
40257
40258 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
40259 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
40260 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
40261 fi
40262
40263 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
40264 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
40265 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
40266 fi
40267
9a8f0513
VS
40268 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
40269 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
40270 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
40271 fi
40272
dcc1b6ad
VS
40273 COND_MONOLITHIC_0_USE_ODBC_1="#"
40274 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
40275 COND_MONOLITHIC_0_USE_ODBC_1=""
40276 fi
40277
40278 COND_MONOLITHIC_1="#"
40279 if test "x$MONOLITHIC" = "x1" ; then
40280 COND_MONOLITHIC_1=""
40281 fi
40282
40283 COND_MONOLITHIC_1_SHARED_0="#"
40284 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
40285 COND_MONOLITHIC_1_SHARED_0=""
40286 fi
40287
40288 COND_MONOLITHIC_1_SHARED_1="#"
40289 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
40290 COND_MONOLITHIC_1_SHARED_1=""
40291 fi
40292
40293 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
40294 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
40295 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
40296 fi
40297
40298 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
40299 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
40300 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
40301 fi
40302
40303 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
40304 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
40305 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
40306 fi
40307
40308 COND_PLATFORM_MACOSX_1="#"
40309 if test "x$PLATFORM_MACOSX" = "x1" ; then
40310 COND_PLATFORM_MACOSX_1=""
40311 fi
40312
40313 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
40314 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
40315 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
40316 fi
40317
40318 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
40319 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
40320 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
40321 fi
40322
40323 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
40324 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
40325 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
40326 fi
40327
9a8f0513
VS
40328 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
40329 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
40330 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
40331 fi
40332
40333 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
40334 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
40335 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
40336 fi
40337
dcc1b6ad
VS
40338 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
40339 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
40340 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
40341 fi
40342
40343 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
40344 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
40345 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
40346 fi
40347
40348 COND_PLATFORM_MAC_1="#"
40349 if test "x$PLATFORM_MAC" = "x1" ; then
40350 COND_PLATFORM_MAC_1=""
40351 fi
40352
40353 COND_PLATFORM_OS2_1="#"
40354 if test "x$PLATFORM_OS2" = "x1" ; then
40355 COND_PLATFORM_OS2_1=""
40356 fi
40357
40358 COND_PLATFORM_UNIX_0="#"
40359 if test "x$PLATFORM_UNIX" = "x0" ; then
40360 COND_PLATFORM_UNIX_0=""
40361 fi
40362
40363 COND_PLATFORM_UNIX_1="#"
40364 if test "x$PLATFORM_UNIX" = "x1" ; then
40365 COND_PLATFORM_UNIX_1=""
40366 fi
40367
40368 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
40369 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
40370 COND_PLATFORM_UNIX_1_USE_GUI_1=""
40371 fi
40372
40373 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
40374 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
40375 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
40376 fi
40377
40378 COND_PLATFORM_WIN32_0="#"
40379 if test "x$PLATFORM_WIN32" = "x0" ; then
40380 COND_PLATFORM_WIN32_0=""
40381 fi
40382
40383 COND_PLATFORM_WIN32_1="#"
40384 if test "x$PLATFORM_WIN32" = "x1" ; then
40385 COND_PLATFORM_WIN32_1=""
40386 fi
40387
40388 COND_SHARED_0="#"
40389 if test "x$SHARED" = "x0" ; then
40390 COND_SHARED_0=""
40391 fi
40392
40393 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
40394 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40395 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
40396 fi
40397
40398 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40399 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40400 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40401 fi
40402
40403 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40404 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40405 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40406 fi
40407
40408 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40409 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40410 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40411 fi
40412
40413 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
40414 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
40415 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
40416 fi
40417
40418 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
40419 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
40420 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
40421 fi
40422
40423 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
40424 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
40425 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
40426 fi
40427
40428 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
40429 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
40430 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
40431 fi
40432
40433 COND_SHARED_1="#"
40434 if test "x$SHARED" = "x1" ; then
40435 COND_SHARED_1=""
40436 fi
40437
40438 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
40439 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40440 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
40441 fi
40442
40443 COND_TOOLKIT_COCOA="#"
40444 if test "x$TOOLKIT" = "xCOCOA" ; then
40445 COND_TOOLKIT_COCOA=""
40446 fi
40447
40448 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
40449 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40450 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
40451 fi
40452
40453 COND_TOOLKIT_GTK="#"
40454 if test "x$TOOLKIT" = "xGTK" ; then
40455 COND_TOOLKIT_GTK=""
40456 fi
40457
40458 COND_TOOLKIT_GTK_USE_GUI_1="#"
40459 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
40460 COND_TOOLKIT_GTK_USE_GUI_1=""
40461 fi
40462
40463 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
40464 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40465 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
40466 fi
40467
40468 COND_TOOLKIT_MAC="#"
40469 if test "x$TOOLKIT" = "xMAC" ; then
40470 COND_TOOLKIT_MAC=""
40471 fi
40472
40473 COND_TOOLKIT_MAC_USE_GUI_1="#"
40474 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
40475 COND_TOOLKIT_MAC_USE_GUI_1=""
40476 fi
40477
40478 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
40479 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40480 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
40481 fi
40482
9a8f0513
VS
40483 COND_TOOLKIT_MAC_WXUNIV_0="#"
40484 if test "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
40485 COND_TOOLKIT_MAC_WXUNIV_0=""
40486 fi
40487
dcc1b6ad
VS
40488 COND_TOOLKIT_MGL="#"
40489 if test "x$TOOLKIT" = "xMGL" ; then
40490 COND_TOOLKIT_MGL=""
40491 fi
40492
40493 COND_TOOLKIT_MGL_USE_GUI_1="#"
40494 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
40495 COND_TOOLKIT_MGL_USE_GUI_1=""
40496 fi
40497
40498 COND_TOOLKIT_MOTIF="#"
40499 if test "x$TOOLKIT" = "xMOTIF" ; then
40500 COND_TOOLKIT_MOTIF=""
40501 fi
40502
40503 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
40504 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
40505 COND_TOOLKIT_MOTIF_USE_GUI_1=""
40506 fi
40507
40508 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
40509 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40510 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
40511 fi
40512
40513 COND_TOOLKIT_MSW="#"
40514 if test "x$TOOLKIT" = "xMSW" ; then
40515 COND_TOOLKIT_MSW=""
40516 fi
40517
40518 COND_TOOLKIT_MSW_USE_GUI_1="#"
40519 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
40520 COND_TOOLKIT_MSW_USE_GUI_1=""
40521 fi
40522
40523 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
40524 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40525 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
40526 fi
40527
9a8f0513
VS
40528 COND_TOOLKIT_MSW_WXUNIV_0="#"
40529 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
40530 COND_TOOLKIT_MSW_WXUNIV_0=""
40531 fi
40532
dcc1b6ad
VS
40533 COND_TOOLKIT_PM="#"
40534 if test "x$TOOLKIT" = "xPM" ; then
40535 COND_TOOLKIT_PM=""
40536 fi
40537
40538 COND_TOOLKIT_PM_USE_GUI_1="#"
40539 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
40540 COND_TOOLKIT_PM_USE_GUI_1=""
40541 fi
40542
40543 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
40544 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40545 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
40546 fi
40547
9a8f0513
VS
40548 COND_TOOLKIT_PM_WXUNIV_0="#"
40549 if test "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
40550 COND_TOOLKIT_PM_WXUNIV_0=""
40551 fi
40552
dcc1b6ad
VS
40553 COND_TOOLKIT_WINCE="#"
40554 if test "x$TOOLKIT" = "xWINCE" ; then
40555 COND_TOOLKIT_WINCE=""
40556 fi
40557
40558 COND_TOOLKIT_WINCE_USE_GUI_1="#"
40559 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
40560 COND_TOOLKIT_WINCE_USE_GUI_1=""
40561 fi
40562
40563 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
40564 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40565 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
40566 fi
40567
40568 COND_TOOLKIT_X11="#"
40569 if test "x$TOOLKIT" = "xX11" ; then
40570 COND_TOOLKIT_X11=""
40571 fi
40572
40573 COND_TOOLKIT_X11_USE_GUI_1="#"
40574 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
40575 COND_TOOLKIT_X11_USE_GUI_1=""
40576 fi
40577
40578 COND_UNICODE_1="#"
40579 if test "x$UNICODE" = "x1" ; then
40580 COND_UNICODE_1=""
40581 fi
40582
40583 COND_USE_EXCEPTIONS_0="#"
40584 if test "x$USE_EXCEPTIONS" = "x0" ; then
40585 COND_USE_EXCEPTIONS_0=""
40586 fi
40587
40588 COND_USE_EXCEPTIONS_1="#"
40589 if test "x$USE_EXCEPTIONS" = "x1" ; then
40590 COND_USE_EXCEPTIONS_1=""
40591 fi
40592
40593 COND_USE_GUI_0="#"
40594 if test "x$USE_GUI" = "x0" ; then
40595 COND_USE_GUI_0=""
40596 fi
40597
40598 COND_USE_GUI_1="#"
40599 if test "x$USE_GUI" = "x1" ; then
40600 COND_USE_GUI_1=""
40601 fi
40602
40603 COND_USE_GUI_1_WXUNIV_0="#"
40604 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40605 COND_USE_GUI_1_WXUNIV_0=""
40606 fi
40607
40608 COND_USE_GUI_1_WXUNIV_1="#"
40609 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
40610 COND_USE_GUI_1_WXUNIV_1=""
40611 fi
40612
40613 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40614 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40615 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40616 fi
40617
40618 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40619 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40620 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40621 fi
40622
40623 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40624 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40625 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40626 fi
40627
40628 COND_USE_ODBC_1="#"
40629 if test "x$USE_ODBC" = "x1" ; then
40630 COND_USE_ODBC_1=""
40631 fi
40632
40633 COND_USE_PLUGINS_0="#"
40634 if test "x$USE_PLUGINS" = "x0" ; then
40635 COND_USE_PLUGINS_0=""
40636 fi
40637
40638 COND_USE_SOSYMLINKS_1="#"
40639 if test "x$USE_SOSYMLINKS" = "x1" ; then
40640 COND_USE_SOSYMLINKS_1=""
40641 fi
40642
40643 COND_USE_SOVERLINUX_1="#"
40644 if test "x$USE_SOVERLINUX" = "x1" ; then
40645 COND_USE_SOVERLINUX_1=""
40646 fi
40647
40648 COND_USE_SOVERSION_0="#"
40649 if test "x$USE_SOVERSION" = "x0" ; then
40650 COND_USE_SOVERSION_0=""
40651 fi
40652
40653 COND_USE_SOVERSOLARIS_1="#"
40654 if test "x$USE_SOVERSOLARIS" = "x1" ; then
40655 COND_USE_SOVERSOLARIS_1=""
40656 fi
40657
40658 COND_WITH_PLUGIN_SDL_1="#"
40659 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
40660 COND_WITH_PLUGIN_SDL_1=""
40661 fi
40662
40663 COND_WXUNIV_1="#"
40664 if test "x$WXUNIV" = "x1" ; then
40665 COND_WXUNIV_1=""
40666 fi
40667
40668 COND_WXUSE_EXPAT_BUILTIN="#"
40669 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
40670 COND_WXUSE_EXPAT_BUILTIN=""
40671 fi
40672
40673 COND_WXUSE_LIBJPEG_BUILTIN="#"
40674 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40675 COND_WXUSE_LIBJPEG_BUILTIN=""
40676 fi
40677
40678 COND_WXUSE_LIBPNG_BUILTIN="#"
40679 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40680 COND_WXUSE_LIBPNG_BUILTIN=""
40681 fi
40682
40683 COND_WXUSE_LIBTIFF_BUILTIN="#"
40684 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40685 COND_WXUSE_LIBTIFF_BUILTIN=""
40686 fi
40687
40688 COND_WXUSE_ODBC_BUILTIN="#"
40689 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
40690 COND_WXUSE_ODBC_BUILTIN=""
40691 fi
40692
40693 COND_WXUSE_REGEX_BUILTIN="#"
40694 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
40695 COND_WXUSE_REGEX_BUILTIN=""
40696 fi
40697
40698 COND_WXUSE_ZLIB_BUILTIN="#"
40699 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
40700 COND_WXUSE_ZLIB_BUILTIN=""
40701 fi
40702
a848cd7e
SC
40703
40704
2057db16
VS
40705 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
40706 { { 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
40707echo "$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;}
40708 { (exit 1); exit 1; }; }
40709 fi
40710
a848cd7e 40711
ceec2216
RL
40712if test "$wxUSE_SHARED" = "yes"; then
40713
40714 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
40715 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
40716
40717else
40718
40719 EXE_LINKER="$CXX -o"
40720
40721fi
a848cd7e 40722
74b84332 40723GCC_PRAGMA_FLAGS=""
a848cd7e 40724if test $GCC_PCH = 1 ; then
74b84332 40725 GCC_PRAGMA_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA"
a848cd7e
SC
40726else
40727 case "${host}" in
40728 powerpc-*-darwin* )
74b84332 40729 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
a848cd7e 40730 ;;
bea8e651 40731 *-*-mingw32* )
1f344abf
VS
40732 if test "$wxUSE_STL" = "yes" -o \
40733 "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
40734 "$wxUSE_NO_RTTI" != "yes"; then
40735 echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
40736echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
bea8e651
MB
40737 cat >conftest.$ac_ext <<_ACEOF
40738/* confdefs.h. */
40739_ACEOF
40740cat confdefs.h >>conftest.$ac_ext
40741cat >>conftest.$ac_ext <<_ACEOF
40742/* end confdefs.h. */
40743
40744int
40745main ()
40746{
1f344abf 40747#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
bea8e651
MB
40748 #error "Not GCC 3.2 or greater"
40749 #endif
40750
40751 ;
40752 return 0;
40753}
40754_ACEOF
40755rm -f conftest.$ac_objext
40756if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40757 (eval $ac_compile) 2>conftest.er1
bea8e651 40758 ac_status=$?
ac1cb8d3
VS
40759 grep -v '^ *+' conftest.er1 >conftest.err
40760 rm -f conftest.er1
40761 cat conftest.err >&5
bea8e651
MB
40762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40763 (exit $ac_status); } &&
ceec2216 40764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40766 (eval $ac_try) 2>&5
40767 ac_status=$?
40768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40769 (exit $ac_status); }; } &&
40770 { ac_try='test -s conftest.$ac_objext'
bea8e651
MB
40771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40772 (eval $ac_try) 2>&5
40773 ac_status=$?
40774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40775 (exit $ac_status); }; }; then
74b84332 40776 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
bea8e651
MB
40777 echo "$as_me:$LINENO: result: yes" >&5
40778echo "${ECHO_T}yes" >&6
40779else
40780 echo "$as_me: failed program was:" >&5
40781sed 's/^/| /' conftest.$ac_ext >&5
40782
40783echo "$as_me:$LINENO: result: no" >&5
40784echo "${ECHO_T}no" >&6
40785fi
ac1cb8d3 40786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bea8e651
MB
40787 fi
40788 ;;
a848cd7e
SC
40789 esac
40790fi
74b84332 40791CPPFLAGS="$GCC_PRAGMA_FLAGS $CPPFLAGS"
a848cd7e
SC
40792
40793
40794SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
40795
40796
40797
40798
40799
40800
40801
40802
40803
40804
40805
40806
40807
40808
40809
40810
40811
40812
40813
40814
40815
40816
40817
40818
40819
40820
40821
40822
40823
40824
40825
40826
40827
40828
40829
40830
40831
40832
40833
40834
40835
40836
a848cd7e
SC
40837
40838
40839
40840
40841
40842
40843
40844
40845
40846
40847
40848
40849
40850
40851
40852
40853
40854
74b84332 40855
a848cd7e
SC
40856
40857
40858echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
40859echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 40860set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
40861if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
40862 echo $ECHO_N "(cached) $ECHO_C" >&6
40863else
40864 cat >conftest.make <<\_ACEOF
40865all:
40866 @echo 'ac_maketemp="$(MAKE)"'
40867_ACEOF
40868# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
40869eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
40870if test -n "$ac_maketemp"; then
40871 eval ac_cv_prog_make_${ac_make}_set=yes
40872else
40873 eval ac_cv_prog_make_${ac_make}_set=no
40874fi
40875rm -f conftest.make
40876fi
40877if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
40878 echo "$as_me:$LINENO: result: yes" >&5
40879echo "${ECHO_T}yes" >&6
40880 SET_MAKE=
40881else
40882 echo "$as_me:$LINENO: result: no" >&5
40883echo "${ECHO_T}no" >&6
40884 SET_MAKE="MAKE=${MAKE-make}"
40885fi
40886
40887
a848cd7e 40888
ceec2216
RL
40889 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
40890
a848cd7e 40891
ceec2216 40892 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 40893
a848cd7e 40894
ceec2216 40895 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 40896
ceec2216
RL
40897
40898 ac_config_files="$ac_config_files version-script Makefile"
40899
40900
40901 ac_config_commands="$ac_config_commands wx-config
40902 "
a848cd7e
SC
40903
40904
40905
40906if test "$wxUSE_GUI" = "yes"; then
40907 SUBDIRS="samples demos utils contrib"
40908else SUBDIRS="samples utils"
40909fi
40910
40911
40912
40913# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
40914if test "${with_cppunit_prefix+set}" = set; then
40915 withval="$with_cppunit_prefix"
40916 cppunit_config_prefix="$withval"
40917else
40918 cppunit_config_prefix=""
40919fi;
40920
40921# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
40922if test "${with_cppunit_exec_prefix+set}" = set; then
40923 withval="$with_cppunit_exec_prefix"
40924 cppunit_config_exec_prefix="$withval"
40925else
40926 cppunit_config_exec_prefix=""
40927fi;
40928
40929 if test x$cppunit_config_exec_prefix != x ; then
40930 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
40931 if test x${CPPUNIT_CONFIG+set} != xset ; then
40932 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
40933 fi
40934 fi
40935 if test x$cppunit_config_prefix != x ; then
40936 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
40937 if test x${CPPUNIT_CONFIG+set} != xset ; then
40938 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
40939 fi
40940 fi
40941
40942 # Extract the first word of "cppunit-config", so it can be a program name with args.
40943set dummy cppunit-config; ac_word=$2
40944echo "$as_me:$LINENO: checking for $ac_word" >&5
40945echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40946if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
40947 echo $ECHO_N "(cached) $ECHO_C" >&6
40948else
40949 case $CPPUNIT_CONFIG in
40950 [\\/]* | ?:[\\/]*)
40951 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
40952 ;;
40953 *)
40954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40955for as_dir in $PATH
40956do
40957 IFS=$as_save_IFS
40958 test -z "$as_dir" && as_dir=.
40959 for ac_exec_ext in '' $ac_executable_extensions; do
40960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40961 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40963 break 2
40964 fi
40965done
40966done
40967
40968 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
40969 ;;
40970esac
40971fi
40972CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
40973
40974if test -n "$CPPUNIT_CONFIG"; then
40975 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
40976echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
40977else
40978 echo "$as_me:$LINENO: result: no" >&5
40979echo "${ECHO_T}no" >&6
40980fi
40981
40982 cppunit_version_min=1.8.0
40983
40984 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
40985echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
40986 no_cppunit=""
40987 if test "$CPPUNIT_CONFIG" = "no" ; then
40988 no_cppunit=yes
40989 else
40990 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
40991 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
40992 cppunit_version=`$CPPUNIT_CONFIG --version`
40993
40994 cppunit_major_version=`echo $cppunit_version | \
40995 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
40996 cppunit_minor_version=`echo $cppunit_version | \
40997 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
40998 cppunit_micro_version=`echo $cppunit_version | \
40999 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41000
41001 cppunit_major_min=`echo $cppunit_version_min | \
41002 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41003 cppunit_minor_min=`echo $cppunit_version_min | \
41004 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41005 cppunit_micro_min=`echo $cppunit_version_min | \
41006 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41007
41008 cppunit_version_proper=`expr \
41009 $cppunit_major_version \> $cppunit_major_min \| \
41010 $cppunit_major_version \= $cppunit_major_min \& \
41011 $cppunit_minor_version \> $cppunit_minor_min \| \
41012 $cppunit_major_version \= $cppunit_major_min \& \
41013 $cppunit_minor_version \= $cppunit_minor_min \& \
41014 $cppunit_micro_version \>= $cppunit_micro_min `
41015
41016 if test "$cppunit_version_proper" = "1" ; then
41017 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
41018echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
41019 else
41020 echo "$as_me:$LINENO: result: no" >&5
41021echo "${ECHO_T}no" >&6
41022 no_cppunit=yes
41023 fi
41024 fi
41025
41026 if test "x$no_cppunit" = x ; then
c2218763 41027 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
41028 else
41029 CPPUNIT_CFLAGS=""
41030 CPPUNIT_LIBS=""
c2218763 41031 :
a848cd7e
SC
41032 fi
41033
41034
41035
41036
41037
41038for subdir in `echo $SUBDIRS`; do
41039 if test -d ${srcdir}/${subdir} ; then
41040 if test "$wxUSE_GUI" = "yes"; then
41041 if test ${subdir} = "samples"; then
41042 makefiles="samples/Makefile.in $makefiles"
41043 for sample in `echo $SAMPLES_SUBDIRS`; do
41044 if test -d $srcdir/samples/$sample; then
41045 makefiles="samples/$sample/Makefile.in $makefiles"
41046 fi
41047 done
41048 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
41049 fi
41050 else if test ${subdir} = "samples"; then
41051 makefiles="samples/Makefile.in samples/console/Makefile.in"
41052 elif test ${subdir} = "utils"; then
41053 makefiles="utils/HelpGen/Makefile.in \
41054 utils/HelpGen/src/Makefile.in \
41055 utils/tex2rtf/Makefile.in \
41056 utils/tex2rtf/src/Makefile.in"
41057 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
41058 fi
41059 fi
41060
41061 for mkin in $makefiles ; do
41062 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
41063 ac_config_files="$ac_config_files $mk"
41064
41065 done
41066 fi
41067done
41068
41069
41070cat >confcache <<\_ACEOF
41071# This file is a shell script that caches the results of configure
41072# tests run on this system so they can be shared between configure
41073# scripts and configure runs, see configure's option --config-cache.
41074# It is not useful on other systems. If it contains results you don't
41075# want to keep, you may remove or edit it.
41076#
41077# config.status only pays attention to the cache file if you give it
41078# the --recheck option to rerun configure.
41079#
41080# `ac_cv_env_foo' variables (set or unset) will be overridden when
41081# loading this file, other *unset* `ac_cv_foo' will be assigned the
41082# following values.
41083
41084_ACEOF
41085
41086# The following way of writing the cache mishandles newlines in values,
41087# but we know of no workaround that is simple, portable, and efficient.
41088# So, don't put newlines in cache variables' values.
41089# Ultrix sh set writes to stderr and can't be redirected directly,
41090# and sets the high bit in the cache file unless we assign to the vars.
41091{
41092 (set) 2>&1 |
41093 case `(ac_space=' '; set | grep ac_space) 2>&1` in
41094 *ac_space=\ *)
41095 # `set' does not quote correctly, so add quotes (double-quote
41096 # substitution turns \\\\ into \\, and sed turns \\ into \).
41097 sed -n \
ac1cb8d3
VS
41098 "s/'/'\\\\''/g;
41099 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
41100 ;;
41101 *)
41102 # `set' quotes correctly as required by POSIX, so do not add quotes.
41103 sed -n \
ac1cb8d3 41104 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
41105 ;;
41106 esac;
41107} |
41108 sed '
41109 t clear
41110 : clear
41111 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41112 t end
41113 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41114 : end' >>confcache
41115if diff $cache_file confcache >/dev/null 2>&1; then :; else
41116 if test -w $cache_file; then
41117 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
41118 cat confcache >$cache_file
41119 else
41120 echo "not updating unwritable cache $cache_file"
41121 fi
41122fi
41123rm -f confcache
41124
41125test "x$prefix" = xNONE && prefix=$ac_default_prefix
41126# Let make expand exec_prefix.
41127test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41128
41129# VPATH may cause trouble with some makes, so we remove $(srcdir),
41130# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
41131# trailing colons and then remove the whole line if VPATH becomes empty
41132# (actually we leave an empty line to preserve line numbers).
41133if test "x$srcdir" = x.; then
ac1cb8d3 41134 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
41135s/:*\$(srcdir):*/:/;
41136s/:*\${srcdir}:*/:/;
41137s/:*@srcdir@:*/:/;
ac1cb8d3 41138s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 41139s/:*$//;
ac1cb8d3 41140s/^[^=]*=[ ]*$//;
a848cd7e
SC
41141}'
41142fi
41143
41144DEFS=-DHAVE_CONFIG_H
41145
41146ac_libobjs=
41147ac_ltlibobjs=
41148for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41149 # 1. Remove the extension, and $U if already installed.
41150 ac_i=`echo "$ac_i" |
ac1cb8d3 41151 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
41152 # 2. Add them.
41153 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
41154 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
41155done
41156LIBOBJS=$ac_libobjs
41157
41158LTLIBOBJS=$ac_ltlibobjs
41159
41160
41161
41162: ${CONFIG_STATUS=./config.status}
41163ac_clean_files_save=$ac_clean_files
41164ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41165{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
41166echo "$as_me: creating $CONFIG_STATUS" >&6;}
41167cat >$CONFIG_STATUS <<_ACEOF
41168#! $SHELL
41169# Generated by $as_me.
41170# Run this file to recreate the current configuration.
41171# Compiler output produced by configure, useful for debugging
41172# configure, is in config.log if it exists.
41173
41174debug=false
41175ac_cs_recheck=false
41176ac_cs_silent=false
41177SHELL=\${CONFIG_SHELL-$SHELL}
41178_ACEOF
41179
41180cat >>$CONFIG_STATUS <<\_ACEOF
41181## --------------------- ##
41182## M4sh Initialization. ##
41183## --------------------- ##
41184
41185# Be Bourne compatible
41186if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
41187 emulate sh
41188 NULLCMD=:
41189 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
41190 # is contrary to our usage. Disable this feature.
41191 alias -g '${1+"$@"}'='"$@"'
41192elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
41193 set -o posix
41194fi
ac1cb8d3 41195DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
41196
41197# Support unset when possible.
ac1cb8d3 41198if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
41199 as_unset=unset
41200else
41201 as_unset=false
41202fi
41203
41204
41205# Work around bugs in pre-3.0 UWIN ksh.
41206$as_unset ENV MAIL MAILPATH
41207PS1='$ '
41208PS2='> '
41209PS4='+ '
41210
41211# NLS nuisances.
41212for as_var in \
41213 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41214 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
41215 LC_TELEPHONE LC_TIME
41216do
ac1cb8d3 41217 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
41218 eval $as_var=C; export $as_var
41219 else
41220 $as_unset $as_var
41221 fi
41222done
41223
41224# Required to use basename.
41225if expr a : '\(a\)' >/dev/null 2>&1; then
41226 as_expr=expr
41227else
41228 as_expr=false
41229fi
41230
41231if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
41232 as_basename=basename
41233else
41234 as_basename=false
41235fi
41236
41237
41238# Name of the executable.
41239as_me=`$as_basename "$0" ||
41240$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41241 X"$0" : 'X\(//\)$' \| \
41242 X"$0" : 'X\(/\)$' \| \
41243 . : '\(.\)' 2>/dev/null ||
41244echo X/"$0" |
41245 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
41246 /^X\/\(\/\/\)$/{ s//\1/; q; }
41247 /^X\/\(\/\).*/{ s//\1/; q; }
41248 s/.*/./; q'`
41249
41250
41251# PATH needs CR, and LINENO needs CR and PATH.
41252# Avoid depending upon Character Ranges.
41253as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41254as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41255as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41256as_cr_digits='0123456789'
41257as_cr_alnum=$as_cr_Letters$as_cr_digits
41258
41259# The user is always right.
41260if test "${PATH_SEPARATOR+set}" != set; then
41261 echo "#! /bin/sh" >conf$$.sh
41262 echo "exit 0" >>conf$$.sh
41263 chmod +x conf$$.sh
41264 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
41265 PATH_SEPARATOR=';'
41266 else
41267 PATH_SEPARATOR=:
41268 fi
41269 rm -f conf$$.sh
41270fi
41271
41272
41273 as_lineno_1=$LINENO
41274 as_lineno_2=$LINENO
41275 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41276 test "x$as_lineno_1" != "x$as_lineno_2" &&
41277 test "x$as_lineno_3" = "x$as_lineno_2" || {
41278 # Find who we are. Look in the path if we contain no path at all
41279 # relative or not.
41280 case $0 in
41281 *[\\/]* ) as_myself=$0 ;;
41282 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41283for as_dir in $PATH
41284do
41285 IFS=$as_save_IFS
41286 test -z "$as_dir" && as_dir=.
41287 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41288done
41289
41290 ;;
41291 esac
41292 # We did not find ourselves, most probably we were run as `sh COMMAND'
41293 # in which case we are not to be found in the path.
41294 if test "x$as_myself" = x; then
41295 as_myself=$0
41296 fi
41297 if test ! -f "$as_myself"; then
41298 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
41299echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
41300 { (exit 1); exit 1; }; }
41301 fi
41302 case $CONFIG_SHELL in
41303 '')
41304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41305for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
41306do
41307 IFS=$as_save_IFS
41308 test -z "$as_dir" && as_dir=.
41309 for as_base in sh bash ksh sh5; do
41310 case $as_dir in
41311 /*)
41312 if ("$as_dir/$as_base" -c '
41313 as_lineno_1=$LINENO
41314 as_lineno_2=$LINENO
41315 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41316 test "x$as_lineno_1" != "x$as_lineno_2" &&
41317 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
41318 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
41319 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
41320 CONFIG_SHELL=$as_dir/$as_base
41321 export CONFIG_SHELL
41322 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
41323 fi;;
41324 esac
41325 done
41326done
41327;;
41328 esac
41329
41330 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
41331 # uniformly replaced by the line number. The first 'sed' inserts a
41332 # line-number line before each line; the second 'sed' does the real
41333 # work. The second script uses 'N' to pair each line-number line
41334 # with the numbered line, and appends trailing '-' during
41335 # substitution so that $LINENO is not a special case at line end.
41336 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
41337 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
41338 sed '=' <$as_myself |
41339 sed '
41340 N
41341 s,$,-,
41342 : loop
41343 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
41344 t loop
41345 s,-$,,
41346 s,^['$as_cr_digits']*\n,,
41347 ' >$as_me.lineno &&
41348 chmod +x $as_me.lineno ||
41349 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
41350echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
41351 { (exit 1); exit 1; }; }
41352
41353 # Don't try to exec as it changes $[0], causing all sort of problems
41354 # (the dirname of $[0] is not the place where we might find the
41355 # original and so on. Autoconf is especially sensible to this).
41356 . ./$as_me.lineno
41357 # Exit status is that of the last command.
41358 exit
41359}
41360
41361
41362case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
41363 *c*,-n*) ECHO_N= ECHO_C='
41364' ECHO_T=' ' ;;
41365 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
41366 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
41367esac
41368
41369if expr a : '\(a\)' >/dev/null 2>&1; then
41370 as_expr=expr
41371else
41372 as_expr=false
41373fi
41374
41375rm -f conf$$ conf$$.exe conf$$.file
41376echo >conf$$.file
41377if ln -s conf$$.file conf$$ 2>/dev/null; then
41378 # We could just check for DJGPP; but this test a) works b) is more generic
41379 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
41380 if test -f conf$$.exe; then
41381 # Don't use ln at all; we don't have any links
41382 as_ln_s='cp -p'
41383 else
41384 as_ln_s='ln -s'
41385 fi
41386elif ln conf$$.file conf$$ 2>/dev/null; then
41387 as_ln_s=ln
41388else
41389 as_ln_s='cp -p'
41390fi
41391rm -f conf$$ conf$$.exe conf$$.file
41392
41393if mkdir -p . 2>/dev/null; then
41394 as_mkdir_p=:
41395else
ac1cb8d3 41396 test -d ./-p && rmdir ./-p
a848cd7e
SC
41397 as_mkdir_p=false
41398fi
41399
41400as_executable_p="test -f"
41401
41402# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 41403as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
41404
41405# Sed expression to map a string onto a valid variable name.
ac1cb8d3 41406as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
41407
41408
41409# IFS
41410# We need space, tab and new line, in precisely that order.
41411as_nl='
41412'
41413IFS=" $as_nl"
41414
41415# CDPATH.
41416$as_unset CDPATH
41417
41418exec 6>&1
41419
41420# Open the log real soon, to keep \$[0] and so on meaningful, and to
41421# report actual input values of CONFIG_FILES etc. instead of their
41422# values after options handling. Logging --version etc. is OK.
41423exec 5>>config.log
41424{
41425 echo
41426 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41427## Running $as_me. ##
41428_ASBOX
41429} >&5
41430cat >&5 <<_CSEOF
41431
77ffb593 41432This file was extended by wxWidgets $as_me 2.5.2, which was
ac1cb8d3 41433generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
41434
41435 CONFIG_FILES = $CONFIG_FILES
41436 CONFIG_HEADERS = $CONFIG_HEADERS
41437 CONFIG_LINKS = $CONFIG_LINKS
41438 CONFIG_COMMANDS = $CONFIG_COMMANDS
41439 $ $0 $@
41440
41441_CSEOF
41442echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
41443echo >&5
41444_ACEOF
41445
41446# Files that config.status was made for.
41447if test -n "$ac_config_files"; then
41448 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
41449fi
41450
41451if test -n "$ac_config_headers"; then
41452 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
41453fi
41454
41455if test -n "$ac_config_links"; then
41456 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
41457fi
41458
41459if test -n "$ac_config_commands"; then
41460 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
41461fi
41462
41463cat >>$CONFIG_STATUS <<\_ACEOF
41464
41465ac_cs_usage="\
41466\`$as_me' instantiates files from templates according to the
41467current configuration.
41468
41469Usage: $0 [OPTIONS] [FILE]...
41470
41471 -h, --help print this help, then exit
41472 -V, --version print version number, then exit
41473 -q, --quiet do not print progress messages
41474 -d, --debug don't remove temporary files
41475 --recheck update $as_me by reconfiguring in the same conditions
41476 --file=FILE[:TEMPLATE]
ac1cb8d3 41477 instantiate the configuration file FILE
a848cd7e 41478 --header=FILE[:TEMPLATE]
ac1cb8d3 41479 instantiate the configuration header FILE
a848cd7e
SC
41480
41481Configuration files:
41482$config_files
41483
41484Configuration headers:
41485$config_headers
41486
41487Configuration commands:
41488$config_commands
41489
41490Report bugs to <bug-autoconf@gnu.org>."
41491_ACEOF
41492
41493cat >>$CONFIG_STATUS <<_ACEOF
41494ac_cs_version="\\
77ffb593 41495wxWidgets config.status 2.5.2
ac1cb8d3 41496configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
41497 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
41498
ac1cb8d3 41499Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
41500This config.status script is free software; the Free Software Foundation
41501gives unlimited permission to copy, distribute and modify it."
41502srcdir=$srcdir
41503INSTALL="$INSTALL"
41504_ACEOF
41505
41506cat >>$CONFIG_STATUS <<\_ACEOF
41507# If no file are specified by the user, then we need to provide default
41508# value. By we need to know if files were specified by the user.
41509ac_need_defaults=:
41510while test $# != 0
41511do
41512 case $1 in
41513 --*=*)
41514 ac_option=`expr "x$1" : 'x\([^=]*\)='`
41515 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
41516 ac_shift=:
41517 ;;
41518 -*)
41519 ac_option=$1
41520 ac_optarg=$2
41521 ac_shift=shift
41522 ;;
41523 *) # This is not an option, so the user has probably given explicit
41524 # arguments.
41525 ac_option=$1
41526 ac_need_defaults=false;;
41527 esac
41528
41529 case $ac_option in
41530 # Handling of the options.
41531_ACEOF
41532cat >>$CONFIG_STATUS <<\_ACEOF
41533 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41534 ac_cs_recheck=: ;;
41535 --version | --vers* | -V )
41536 echo "$ac_cs_version"; exit 0 ;;
41537 --he | --h)
41538 # Conflict between --help and --header
41539 { { echo "$as_me:$LINENO: error: ambiguous option: $1
41540Try \`$0 --help' for more information." >&5
41541echo "$as_me: error: ambiguous option: $1
41542Try \`$0 --help' for more information." >&2;}
41543 { (exit 1); exit 1; }; };;
41544 --help | --hel | -h )
41545 echo "$ac_cs_usage"; exit 0 ;;
41546 --debug | --d* | -d )
41547 debug=: ;;
41548 --file | --fil | --fi | --f )
41549 $ac_shift
41550 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
41551 ac_need_defaults=false;;
41552 --header | --heade | --head | --hea )
41553 $ac_shift
41554 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
41555 ac_need_defaults=false;;
41556 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41557 | -silent | --silent | --silen | --sile | --sil | --si | --s)
41558 ac_cs_silent=: ;;
41559
41560 # This is an error.
41561 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
41562Try \`$0 --help' for more information." >&5
41563echo "$as_me: error: unrecognized option: $1
41564Try \`$0 --help' for more information." >&2;}
41565 { (exit 1); exit 1; }; } ;;
41566
41567 *) ac_config_targets="$ac_config_targets $1" ;;
41568
41569 esac
41570 shift
41571done
41572
41573ac_configure_extra_args=
41574
41575if $ac_cs_silent; then
41576 exec 6>/dev/null
41577 ac_configure_extra_args="$ac_configure_extra_args --silent"
41578fi
41579
41580_ACEOF
41581cat >>$CONFIG_STATUS <<_ACEOF
41582if \$ac_cs_recheck; then
41583 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
41584 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41585fi
41586
41587_ACEOF
41588
41589cat >>$CONFIG_STATUS <<_ACEOF
41590#
41591# INIT-COMMANDS section.
41592#
41593
ceec2216
RL
41594 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
41595 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
41596 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
41597 LN_S="${LN_S}"
a848cd7e
SC
41598
41599
41600_ACEOF
41601
41602
41603
41604cat >>$CONFIG_STATUS <<\_ACEOF
41605for ac_config_target in $ac_config_targets
41606do
41607 case "$ac_config_target" in
41608 # Handling of arguments.
ceec2216
RL
41609 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
41610 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
41611 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
41612 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
41613 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
ceec2216
RL
41614 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
41615 "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
a848cd7e
SC
41616 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
41617echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
41618 { (exit 1); exit 1; }; };;
41619 esac
41620done
41621
41622# If the user did not use the arguments to specify the items to instantiate,
41623# then the envvar interface is used. Set only those that are not.
41624# We use the long form for the default assignment because of an extremely
41625# bizarre bug on SunOS 4.1.3.
41626if $ac_need_defaults; then
41627 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
41628 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
41629 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
41630fi
41631
41632# Have a temporary directory for convenience. Make it in the build tree
41633# simply because there is no reason to put it here, and in addition,
41634# creating and moving files from /tmp can sometimes cause problems.
41635# Create a temporary directory, and hook for its removal unless debugging.
41636$debug ||
41637{
41638 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
41639 trap '{ (exit 1); exit 1; }' 1 2 13 15
41640}
41641
41642# Create a (secure) tmp directory for tmp files.
41643
41644{
41645 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
41646 test -n "$tmp" && test -d "$tmp"
41647} ||
41648{
41649 tmp=./confstat$$-$RANDOM
41650 (umask 077 && mkdir $tmp)
41651} ||
41652{
41653 echo "$me: cannot create a temporary directory in ." >&2
41654 { (exit 1); exit 1; }
41655}
41656
41657_ACEOF
41658
41659cat >>$CONFIG_STATUS <<_ACEOF
41660
41661#
41662# CONFIG_FILES section.
41663#
41664
41665# No need to generate the scripts if there are no CONFIG_FILES.
41666# This happens for instance when ./config.status config.h
41667if test -n "\$CONFIG_FILES"; then
41668 # Protect against being on the right side of a sed subst in config.status.
41669 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
41670 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
41671s,@SHELL@,$SHELL,;t t
41672s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
41673s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
41674s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
41675s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
41676s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
41677s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
41678s,@exec_prefix@,$exec_prefix,;t t
41679s,@prefix@,$prefix,;t t
41680s,@program_transform_name@,$program_transform_name,;t t
41681s,@bindir@,$bindir,;t t
41682s,@sbindir@,$sbindir,;t t
41683s,@libexecdir@,$libexecdir,;t t
41684s,@datadir@,$datadir,;t t
41685s,@sysconfdir@,$sysconfdir,;t t
41686s,@sharedstatedir@,$sharedstatedir,;t t
41687s,@localstatedir@,$localstatedir,;t t
41688s,@libdir@,$libdir,;t t
41689s,@includedir@,$includedir,;t t
41690s,@oldincludedir@,$oldincludedir,;t t
41691s,@infodir@,$infodir,;t t
41692s,@mandir@,$mandir,;t t
41693s,@build_alias@,$build_alias,;t t
41694s,@host_alias@,$host_alias,;t t
41695s,@target_alias@,$target_alias,;t t
41696s,@DEFS@,$DEFS,;t t
41697s,@ECHO_C@,$ECHO_C,;t t
41698s,@ECHO_N@,$ECHO_N,;t t
41699s,@ECHO_T@,$ECHO_T,;t t
41700s,@LIBS@,$LIBS,;t t
41701s,@build@,$build,;t t
41702s,@build_cpu@,$build_cpu,;t t
41703s,@build_vendor@,$build_vendor,;t t
41704s,@build_os@,$build_os,;t t
41705s,@host@,$host,;t t
41706s,@host_cpu@,$host_cpu,;t t
41707s,@host_vendor@,$host_vendor,;t t
41708s,@host_os@,$host_os,;t t
41709s,@target@,$target,;t t
41710s,@target_cpu@,$target_cpu,;t t
41711s,@target_vendor@,$target_vendor,;t t
41712s,@target_os@,$target_os,;t t
41713s,@CC@,$CC,;t t
41714s,@CFLAGS@,$CFLAGS,;t t
41715s,@LDFLAGS@,$LDFLAGS,;t t
41716s,@CPPFLAGS@,$CPPFLAGS,;t t
41717s,@ac_ct_CC@,$ac_ct_CC,;t t
41718s,@EXEEXT@,$EXEEXT,;t t
41719s,@OBJEXT@,$OBJEXT,;t t
41720s,@CPP@,$CPP,;t t
41721s,@EGREP@,$EGREP,;t t
41722s,@CXX@,$CXX,;t t
41723s,@CXXFLAGS@,$CXXFLAGS,;t t
41724s,@ac_ct_CXX@,$ac_ct_CXX,;t t
41725s,@RANLIB@,$RANLIB,;t t
41726s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
41727s,@AR@,$AR,;t t
41728s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
41729s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
41730s,@INSTALL_DATA@,$INSTALL_DATA,;t t
41731s,@STRIP@,$STRIP,;t t
41732s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
41733s,@LN_S@,$LN_S,;t t
41734s,@CXXCPP@,$CXXCPP,;t t
41735s,@subdirs@,$subdirs,;t t
41736s,@PKG_CONFIG@,$PKG_CONFIG,;t t
41737s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
41738s,@GTK_LIBS@,$GTK_LIBS,;t t
41739s,@GTK_CONFIG@,$GTK_CONFIG,;t t
41740s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
41741s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
41742s,@X_CFLAGS@,$X_CFLAGS,;t t
41743s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
41744s,@X_LIBS@,$X_LIBS,;t t
41745s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
41746s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
41747s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
41748s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
41749s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
41750s,@RESCOMP@,$RESCOMP,;t t
41751s,@DEREZ@,$DEREZ,;t t
41752s,@SETFILE@,$SETFILE,;t t
41753s,@LIBICONV@,$LIBICONV,;t t
41754s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
41755s,@SDL_CONFIG@,$SDL_CONFIG,;t t
41756s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
41757s,@SDL_LIBS@,$SDL_LIBS,;t t
41758s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
41759s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
41760s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
41761s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
41762s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
41763s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
41764s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
41765s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
41766s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
41767s,@VENDOR@,$VENDOR,;t t
41768s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
41769s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
41770s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
41771s,@WXUNIV@,$WXUNIV,;t t
41772s,@MONOLITHIC@,$MONOLITHIC,;t t
41773s,@USE_PLUGINS@,$USE_PLUGINS,;t t
41774s,@EXTRALIBS@,$EXTRALIBS,;t t
41775s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
41776s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
41777s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
41778s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
41779s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
41780s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
41781s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
41782s,@UNICODE@,$UNICODE,;t t
41783s,@BUILD@,$BUILD,;t t
41784s,@DEBUG_INFO@,$DEBUG_INFO,;t t
41785s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
41786s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
41787s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
41788s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
41789s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
41790s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
41791s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
41792s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
41793s,@SET_MAKE@,$SET_MAKE,;t t
41794s,@MAKE_SET@,$MAKE_SET,;t t
41795s,@ac_ct_AR@,$ac_ct_AR,;t t
41796s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
41797s,@NM@,$NM,;t t
41798s,@ac_ct_NM@,$ac_ct_NM,;t t
41799s,@INSTALL_DIR@,$INSTALL_DIR,;t t
41800s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
41801s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
41802s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
41803s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
41804s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
41805s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
41806s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
41807s,@SO_SUFFIX@,$SO_SUFFIX,;t t
41808s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
41809s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
41810s,@LIBPREFIX@,$LIBPREFIX,;t t
41811s,@LIBEXT@,$LIBEXT,;t t
41812s,@DLLPREFIX@,$DLLPREFIX,;t t
41813s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
41814s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
41815s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
41816s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
41817s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
41818s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
41819s,@PIC_FLAG@,$PIC_FLAG,;t t
41820s,@USE_SOVERSION@,$USE_SOVERSION,;t t
41821s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
41822s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
41823s,@USE_MACVERSION@,$USE_MACVERSION,;t t
41824s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
41825s,@SONAME_FLAG@,$SONAME_FLAG,;t t
41826s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
41827s,@GCC_PCH@,$GCC_PCH,;t t
41828s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
41829s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
41830s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
41831s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
41832s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
41833s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
41834s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
41835s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
41836s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
41837s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
41838s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
41839s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
41840s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
41841s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
41842s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
41843s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
41844s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
41845s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
41846s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1,;t t
41847s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
41848s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 41849s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
41850s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
41851s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
41852s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1,;t t
41853s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
41854s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 41855s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
41856s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
41857s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
41858s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
41859s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
41860s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
41861s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
41862s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
41863s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
41864s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
41865s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
41866s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
ebee3cd0
VS
41867s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
41868s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
41869s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
41870s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
41871s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
41872s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
41873s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
41874s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
41875s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
41876s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
41877s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
41878s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
41879s,@COND_SHARED_0@,$COND_SHARED_0,;t t
ceec2216
RL
41880s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
41881s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
41882s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
41883s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
41884s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
41885s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
41886s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
41887s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
41888s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
41889s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
41890s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
41891s,@COND_SHARED_1@,$COND_SHARED_1,;t t
41892s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
41893s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
41894s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
41895s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
41896s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
41897s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
41898s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
41899s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
41900s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
41901s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
41902s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
41903s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
41904s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
41905s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
41906s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
41907s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
41908s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
41909s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
41910s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
41911s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
41912s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
41913s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
41914s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
41915s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
41916s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
41917s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
41918s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
41919s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
41920s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
41921s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
41922s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
41923s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
41924s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
41925s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
41926s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
ceec2216 41927s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
a848cd7e
SC
41928s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
41929s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
41930s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
41931s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
41932s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
41933s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
a848cd7e
SC
41934s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
41935s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
41936s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
41937s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
41938s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
41939s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
41940s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
41941s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
9a8f0513
VS
41942s,@COND_TOOLKIT_MAC_WXUNIV_0@,$COND_TOOLKIT_MAC_WXUNIV_0,;t t
41943s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
41944s,@COND_TOOLKIT_PM_WXUNIV_0@,$COND_TOOLKIT_PM_WXUNIV_0,;t t
ceec2216 41945s,@SHARED@,$SHARED,;t t
a848cd7e
SC
41946s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
41947s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
41948s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
41949s,@USE_GUI@,$USE_GUI,;t t
41950s,@AFMINSTALL@,$AFMINSTALL,;t t
41951s,@WIN32INSTALL@,$WIN32INSTALL,;t t
41952s,@TOOLKIT@,$TOOLKIT,;t t
41953s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 41954s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 41955s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e
SC
41956s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
41957s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
a848cd7e 41958s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
41959s,@WIDGET_SET@,$WIDGET_SET,;t t
41960s,@WX_RELEASE@,$WX_RELEASE,;t t
41961s,@WX_VERSION@,$WX_VERSION,;t t
41962s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
41963s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
41964s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
a848cd7e 41965s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
a848cd7e
SC
41966s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
41967s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
41968s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
41969s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
74b84332 41970s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
41971s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
41972s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
ceec2216 41973s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 41974s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
41975s,@DISTDIR@,$DISTDIR,;t t
41976s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
41977s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
41978s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
41979s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
41980s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
41981s,@RESFLAGS@,$RESFLAGS,;t t
41982s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
41983s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
41984s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
41985s,@LIBWXMACRES@,$LIBWXMACRES,;t t
41986s,@MACRESCOMP@,$MACRESCOMP,;t t
41987s,@MACSETFILE@,$MACSETFILE,;t t
41988s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
41989s,@GCC@,$GCC,;t t
a848cd7e 41990s,@DLLTOOL@,$DLLTOOL,;t t
a848cd7e
SC
41991s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
41992s,@LIBOBJS@,$LIBOBJS,;t t
41993s,@LTLIBOBJS@,$LTLIBOBJS,;t t
41994CEOF
41995
41996_ACEOF
41997
41998 cat >>$CONFIG_STATUS <<\_ACEOF
41999 # Split the substitutions into bite-sized pieces for seds with
42000 # small command number limits, like on Digital OSF/1 and HP-UX.
42001 ac_max_sed_lines=48
42002 ac_sed_frag=1 # Number of current file.
42003 ac_beg=1 # First line for current file.
42004 ac_end=$ac_max_sed_lines # Line after last line for current file.
42005 ac_more_lines=:
42006 ac_sed_cmds=
42007 while $ac_more_lines; do
42008 if test $ac_beg -gt 1; then
42009 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
42010 else
42011 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
42012 fi
42013 if test ! -s $tmp/subs.frag; then
42014 ac_more_lines=false
42015 else
42016 # The purpose of the label and of the branching condition is to
42017 # speed up the sed processing (if there are no `@' at all, there
42018 # is no need to browse any of the substitutions).
42019 # These are the two extra sed commands mentioned above.
42020 (echo ':t
42021 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
42022 if test -z "$ac_sed_cmds"; then
ac1cb8d3 42023 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 42024 else
ac1cb8d3 42025 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
42026 fi
42027 ac_sed_frag=`expr $ac_sed_frag + 1`
42028 ac_beg=$ac_end
42029 ac_end=`expr $ac_end + $ac_max_sed_lines`
42030 fi
42031 done
42032 if test -z "$ac_sed_cmds"; then
42033 ac_sed_cmds=cat
42034 fi
42035fi # test -n "$CONFIG_FILES"
42036
42037_ACEOF
42038cat >>$CONFIG_STATUS <<\_ACEOF
42039for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
42040 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42041 case $ac_file in
42042 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
42043 cat >$tmp/stdin
42044 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42045 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 42046 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 42047 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
42048 * ) ac_file_in=$ac_file.in ;;
42049 esac
42050
42051 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
42052 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42053$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42054 X"$ac_file" : 'X\(//\)[^/]' \| \
42055 X"$ac_file" : 'X\(//\)$' \| \
42056 X"$ac_file" : 'X\(/\)' \| \
42057 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42058echo X"$ac_file" |
42059 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42060 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42061 /^X\(\/\/\)$/{ s//\1/; q; }
42062 /^X\(\/\).*/{ s//\1/; q; }
42063 s/.*/./; q'`
42064 { if $as_mkdir_p; then
42065 mkdir -p "$ac_dir"
42066 else
42067 as_dir="$ac_dir"
42068 as_dirs=
42069 while test ! -d "$as_dir"; do
42070 as_dirs="$as_dir $as_dirs"
42071 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42072$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42073 X"$as_dir" : 'X\(//\)[^/]' \| \
42074 X"$as_dir" : 'X\(//\)$' \| \
42075 X"$as_dir" : 'X\(/\)' \| \
42076 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42077echo X"$as_dir" |
42078 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42079 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42080 /^X\(\/\/\)$/{ s//\1/; q; }
42081 /^X\(\/\).*/{ s//\1/; q; }
42082 s/.*/./; q'`
42083 done
42084 test ! -n "$as_dirs" || mkdir $as_dirs
42085 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42086echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42087 { (exit 1); exit 1; }; }; }
42088
42089 ac_builddir=.
42090
42091if test "$ac_dir" != .; then
42092 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42093 # A "../" for each directory in $ac_dir_suffix.
42094 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42095else
42096 ac_dir_suffix= ac_top_builddir=
42097fi
42098
42099case $srcdir in
42100 .) # No --srcdir option. We are building in place.
42101 ac_srcdir=.
42102 if test -z "$ac_top_builddir"; then
42103 ac_top_srcdir=.
42104 else
42105 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42106 fi ;;
42107 [\\/]* | ?:[\\/]* ) # Absolute path.
42108 ac_srcdir=$srcdir$ac_dir_suffix;
42109 ac_top_srcdir=$srcdir ;;
42110 *) # Relative path.
42111 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42112 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42113esac
ac1cb8d3
VS
42114
42115# Do not use `cd foo && pwd` to compute absolute paths, because
42116# the directories may not exist.
42117case `pwd` in
42118.) ac_abs_builddir="$ac_dir";;
42119*)
42120 case "$ac_dir" in
42121 .) ac_abs_builddir=`pwd`;;
42122 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42123 *) ac_abs_builddir=`pwd`/"$ac_dir";;
42124 esac;;
42125esac
42126case $ac_abs_builddir in
42127.) ac_abs_top_builddir=${ac_top_builddir}.;;
42128*)
42129 case ${ac_top_builddir}. in
42130 .) ac_abs_top_builddir=$ac_abs_builddir;;
42131 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42132 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42133 esac;;
42134esac
42135case $ac_abs_builddir in
42136.) ac_abs_srcdir=$ac_srcdir;;
42137*)
42138 case $ac_srcdir in
42139 .) ac_abs_srcdir=$ac_abs_builddir;;
42140 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42141 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42142 esac;;
42143esac
42144case $ac_abs_builddir in
42145.) ac_abs_top_srcdir=$ac_top_srcdir;;
42146*)
42147 case $ac_top_srcdir in
42148 .) ac_abs_top_srcdir=$ac_abs_builddir;;
42149 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42150 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42151 esac;;
42152esac
a848cd7e
SC
42153
42154
42155 case $INSTALL in
42156 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
42157 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
42158 esac
42159
a848cd7e
SC
42160 # Let's still pretend it is `configure' which instantiates (i.e., don't
42161 # use $as_me), people would be surprised to read:
42162 # /* config.h. Generated by config.status. */
42163 if test x"$ac_file" = x-; then
42164 configure_input=
42165 else
42166 configure_input="$ac_file. "
42167 fi
42168 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 42169 sed 's,.*/,,'` by configure."
a848cd7e
SC
42170
42171 # First look for the input files in the build tree, otherwise in the
42172 # src tree.
42173 ac_file_inputs=`IFS=:
42174 for f in $ac_file_in; do
42175 case $f in
42176 -) echo $tmp/stdin ;;
42177 [\\/$]*)
ac1cb8d3
VS
42178 # Absolute (can't be DOS-style, as IFS=:)
42179 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42180echo "$as_me: error: cannot find input file: $f" >&2;}
42181 { (exit 1); exit 1; }; }
ac1cb8d3 42182 echo "$f";;
a848cd7e 42183 *) # Relative
ac1cb8d3
VS
42184 if test -f "$f"; then
42185 # Build tree
42186 echo "$f"
42187 elif test -f "$srcdir/$f"; then
42188 # Source tree
42189 echo "$srcdir/$f"
42190 else
42191 # /dev/null tree
42192 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42193echo "$as_me: error: cannot find input file: $f" >&2;}
42194 { (exit 1); exit 1; }; }
ac1cb8d3 42195 fi;;
a848cd7e
SC
42196 esac
42197 done` || { (exit 1); exit 1; }
ceec2216
RL
42198
42199 if test x"$ac_file" != x-; then
42200 { echo "$as_me:$LINENO: creating $ac_file" >&5
42201echo "$as_me: creating $ac_file" >&6;}
42202 rm -f "$ac_file"
42203 fi
a848cd7e
SC
42204_ACEOF
42205cat >>$CONFIG_STATUS <<_ACEOF
42206 sed "$ac_vpsub
42207$extrasub
42208_ACEOF
42209cat >>$CONFIG_STATUS <<\_ACEOF
42210:t
42211/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42212s,@configure_input@,$configure_input,;t t
42213s,@srcdir@,$ac_srcdir,;t t
42214s,@abs_srcdir@,$ac_abs_srcdir,;t t
42215s,@top_srcdir@,$ac_top_srcdir,;t t
42216s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
42217s,@builddir@,$ac_builddir,;t t
42218s,@abs_builddir@,$ac_abs_builddir,;t t
42219s,@top_builddir@,$ac_top_builddir,;t t
42220s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
42221s,@INSTALL@,$ac_INSTALL,;t t
42222" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
42223 rm -f $tmp/stdin
42224 if test x"$ac_file" != x-; then
42225 mv $tmp/out $ac_file
42226 else
42227 cat $tmp/out
42228 rm -f $tmp/out
42229 fi
42230
ceec2216
RL
42231 # Run the commands associated with the file.
42232 case $ac_file in
42233 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
42234 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
42235 esac
a848cd7e
SC
42236done
42237_ACEOF
42238cat >>$CONFIG_STATUS <<\_ACEOF
42239
42240#
42241# CONFIG_HEADER section.
42242#
42243
42244# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
42245# NAME is the cpp macro being defined and VALUE is the value it is being given.
42246#
42247# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
42248ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
42249ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
42250ac_dC=' '
42251ac_dD=',;t'
42252# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 42253ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
42254ac_uB='$,\1#\2define\3'
42255ac_uC=' '
42256ac_uD=',;t'
42257
42258for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
42259 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42260 case $ac_file in
42261 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
42262 cat >$tmp/stdin
42263 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42264 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 42265 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 42266 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
42267 * ) ac_file_in=$ac_file.in ;;
42268 esac
42269
42270 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
42271echo "$as_me: creating $ac_file" >&6;}
42272
42273 # First look for the input files in the build tree, otherwise in the
42274 # src tree.
42275 ac_file_inputs=`IFS=:
42276 for f in $ac_file_in; do
42277 case $f in
42278 -) echo $tmp/stdin ;;
42279 [\\/$]*)
ac1cb8d3
VS
42280 # Absolute (can't be DOS-style, as IFS=:)
42281 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42282echo "$as_me: error: cannot find input file: $f" >&2;}
42283 { (exit 1); exit 1; }; }
ac1cb8d3
VS
42284 # Do quote $f, to prevent DOS paths from being IFS'd.
42285 echo "$f";;
a848cd7e 42286 *) # Relative
ac1cb8d3
VS
42287 if test -f "$f"; then
42288 # Build tree
42289 echo "$f"
42290 elif test -f "$srcdir/$f"; then
42291 # Source tree
42292 echo "$srcdir/$f"
42293 else
42294 # /dev/null tree
42295 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42296echo "$as_me: error: cannot find input file: $f" >&2;}
42297 { (exit 1); exit 1; }; }
ac1cb8d3 42298 fi;;
a848cd7e
SC
42299 esac
42300 done` || { (exit 1); exit 1; }
42301 # Remove the trailing spaces.
ac1cb8d3 42302 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
42303
42304_ACEOF
42305
42306# Transform confdefs.h into two sed scripts, `conftest.defines' and
42307# `conftest.undefs', that substitutes the proper values into
42308# config.h.in to produce config.h. The first handles `#define'
42309# templates, and the second `#undef' templates.
42310# And first: Protect against being on the right side of a sed subst in
42311# config.status. Protect against being in an unquoted here document
42312# in config.status.
42313rm -f conftest.defines conftest.undefs
42314# Using a here document instead of a string reduces the quoting nightmare.
42315# Putting comments in sed scripts is not portable.
42316#
42317# `end' is used to avoid that the second main sed command (meant for
42318# 0-ary CPP macros) applies to n-ary macro definitions.
42319# See the Autoconf documentation for `clear'.
42320cat >confdef2sed.sed <<\_ACEOF
42321s/[\\&,]/\\&/g
42322s,[\\$`],\\&,g
42323t clear
42324: clear
ac1cb8d3 42325s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 42326t end
ac1cb8d3 42327s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
42328: end
42329_ACEOF
42330# If some macros were called several times there might be several times
42331# the same #defines, which is useless. Nevertheless, we may not want to
42332# sort them, since we want the *last* AC-DEFINE to be honored.
42333uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
42334sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
42335rm -f confdef2sed.sed
42336
42337# This sed command replaces #undef with comments. This is necessary, for
42338# example, in the case of _POSIX_SOURCE, which is predefined and required
42339# on some systems where configure will not decide to define it.
42340cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 42341s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
42342_ACEOF
42343
42344# Break up conftest.defines because some shells have a limit on the size
42345# of here documents, and old seds have small limits too (100 cmds).
42346echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 42347echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
42348echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
42349echo ' :' >>$CONFIG_STATUS
42350rm -f conftest.tail
42351while grep . conftest.defines >/dev/null
42352do
42353 # Write a limited-size here document to $tmp/defines.sed.
42354 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
42355 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 42356 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
42357 # Work around the forget-to-reset-the-flag bug.
42358 echo 't clr' >>$CONFIG_STATUS
42359 echo ': clr' >>$CONFIG_STATUS
42360 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
42361 echo 'CEOF
42362 sed -f $tmp/defines.sed $tmp/in >$tmp/out
42363 rm -f $tmp/in
42364 mv $tmp/out $tmp/in
42365' >>$CONFIG_STATUS
42366 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
42367 rm -f conftest.defines
42368 mv conftest.tail conftest.defines
42369done
42370rm -f conftest.defines
42371echo ' fi # grep' >>$CONFIG_STATUS
42372echo >>$CONFIG_STATUS
42373
42374# Break up conftest.undefs because some shells have a limit on the size
42375# of here documents, and old seds have small limits too (100 cmds).
42376echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
42377rm -f conftest.tail
42378while grep . conftest.undefs >/dev/null
42379do
42380 # Write a limited-size here document to $tmp/undefs.sed.
42381 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
42382 # Speed up: don't consider the non `#undef'
ac1cb8d3 42383 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
42384 # Work around the forget-to-reset-the-flag bug.
42385 echo 't clr' >>$CONFIG_STATUS
42386 echo ': clr' >>$CONFIG_STATUS
42387 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
42388 echo 'CEOF
42389 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
42390 rm -f $tmp/in
42391 mv $tmp/out $tmp/in
42392' >>$CONFIG_STATUS
42393 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
42394 rm -f conftest.undefs
42395 mv conftest.tail conftest.undefs
42396done
42397rm -f conftest.undefs
42398
42399cat >>$CONFIG_STATUS <<\_ACEOF
42400 # Let's still pretend it is `configure' which instantiates (i.e., don't
42401 # use $as_me), people would be surprised to read:
42402 # /* config.h. Generated by config.status. */
42403 if test x"$ac_file" = x-; then
42404 echo "/* Generated by configure. */" >$tmp/config.h
42405 else
42406 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
42407 fi
42408 cat $tmp/in >>$tmp/config.h
42409 rm -f $tmp/in
42410 if test x"$ac_file" != x-; then
42411 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
42412 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
42413echo "$as_me: $ac_file is unchanged" >&6;}
42414 else
42415 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42416$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42417 X"$ac_file" : 'X\(//\)[^/]' \| \
42418 X"$ac_file" : 'X\(//\)$' \| \
42419 X"$ac_file" : 'X\(/\)' \| \
42420 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42421echo X"$ac_file" |
42422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42423 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42424 /^X\(\/\/\)$/{ s//\1/; q; }
42425 /^X\(\/\).*/{ s//\1/; q; }
42426 s/.*/./; q'`
42427 { if $as_mkdir_p; then
42428 mkdir -p "$ac_dir"
42429 else
42430 as_dir="$ac_dir"
42431 as_dirs=
42432 while test ! -d "$as_dir"; do
42433 as_dirs="$as_dir $as_dirs"
42434 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42435$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42436 X"$as_dir" : 'X\(//\)[^/]' \| \
42437 X"$as_dir" : 'X\(//\)$' \| \
42438 X"$as_dir" : 'X\(/\)' \| \
42439 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42440echo X"$as_dir" |
42441 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42442 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42443 /^X\(\/\/\)$/{ s//\1/; q; }
42444 /^X\(\/\).*/{ s//\1/; q; }
42445 s/.*/./; q'`
42446 done
42447 test ! -n "$as_dirs" || mkdir $as_dirs
42448 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42449echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42450 { (exit 1); exit 1; }; }; }
42451
42452 rm -f $ac_file
42453 mv $tmp/config.h $ac_file
42454 fi
42455 else
42456 cat $tmp/config.h
42457 rm -f $tmp/config.h
42458 fi
42459done
42460_ACEOF
42461cat >>$CONFIG_STATUS <<\_ACEOF
42462
42463#
42464# CONFIG_COMMANDS section.
42465#
42466for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
42467 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
42468 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
42469 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
42470$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42471 X"$ac_dest" : 'X\(//\)[^/]' \| \
42472 X"$ac_dest" : 'X\(//\)$' \| \
42473 X"$ac_dest" : 'X\(/\)' \| \
42474 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42475echo X"$ac_dest" |
42476 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42477 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42478 /^X\(\/\/\)$/{ s//\1/; q; }
42479 /^X\(\/\).*/{ s//\1/; q; }
42480 s/.*/./; q'`
ac1cb8d3
VS
42481 { if $as_mkdir_p; then
42482 mkdir -p "$ac_dir"
42483 else
42484 as_dir="$ac_dir"
42485 as_dirs=
42486 while test ! -d "$as_dir"; do
42487 as_dirs="$as_dir $as_dirs"
42488 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42489$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42490 X"$as_dir" : 'X\(//\)[^/]' \| \
42491 X"$as_dir" : 'X\(//\)$' \| \
42492 X"$as_dir" : 'X\(/\)' \| \
42493 . : '\(.\)' 2>/dev/null ||
42494echo X"$as_dir" |
42495 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42496 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42497 /^X\(\/\/\)$/{ s//\1/; q; }
42498 /^X\(\/\).*/{ s//\1/; q; }
42499 s/.*/./; q'`
42500 done
42501 test ! -n "$as_dirs" || mkdir $as_dirs
42502 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42503echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42504 { (exit 1); exit 1; }; }; }
42505
a848cd7e
SC
42506 ac_builddir=.
42507
42508if test "$ac_dir" != .; then
42509 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42510 # A "../" for each directory in $ac_dir_suffix.
42511 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42512else
42513 ac_dir_suffix= ac_top_builddir=
42514fi
42515
42516case $srcdir in
42517 .) # No --srcdir option. We are building in place.
42518 ac_srcdir=.
42519 if test -z "$ac_top_builddir"; then
42520 ac_top_srcdir=.
42521 else
42522 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42523 fi ;;
42524 [\\/]* | ?:[\\/]* ) # Absolute path.
42525 ac_srcdir=$srcdir$ac_dir_suffix;
42526 ac_top_srcdir=$srcdir ;;
42527 *) # Relative path.
42528 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42529 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42530esac
ac1cb8d3
VS
42531
42532# Do not use `cd foo && pwd` to compute absolute paths, because
42533# the directories may not exist.
42534case `pwd` in
42535.) ac_abs_builddir="$ac_dir";;
42536*)
42537 case "$ac_dir" in
42538 .) ac_abs_builddir=`pwd`;;
42539 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42540 *) ac_abs_builddir=`pwd`/"$ac_dir";;
42541 esac;;
42542esac
42543case $ac_abs_builddir in
42544.) ac_abs_top_builddir=${ac_top_builddir}.;;
42545*)
42546 case ${ac_top_builddir}. in
42547 .) ac_abs_top_builddir=$ac_abs_builddir;;
42548 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42549 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42550 esac;;
42551esac
42552case $ac_abs_builddir in
42553.) ac_abs_srcdir=$ac_srcdir;;
42554*)
42555 case $ac_srcdir in
42556 .) ac_abs_srcdir=$ac_abs_builddir;;
42557 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42558 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42559 esac;;
42560esac
42561case $ac_abs_builddir in
42562.) ac_abs_top_srcdir=$ac_top_srcdir;;
42563*)
42564 case $ac_top_srcdir in
42565 .) ac_abs_top_srcdir=$ac_abs_builddir;;
42566 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42567 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42568 esac;;
42569esac
a848cd7e
SC
42570
42571
42572 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
42573echo "$as_me: executing $ac_dest commands" >&6;}
42574 case $ac_dest in
ceec2216
RL
42575 wx-config ) rm -f wx-config
42576 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
42577 ;;
a848cd7e
SC
42578 esac
42579done
42580_ACEOF
42581
42582cat >>$CONFIG_STATUS <<\_ACEOF
42583
42584{ (exit 0); exit 0; }
42585_ACEOF
42586chmod +x $CONFIG_STATUS
42587ac_clean_files=$ac_clean_files_save
42588
42589
42590# configure is writing to config.log, and then calls config.status.
42591# config.status does its own redirection, appending to config.log.
42592# Unfortunately, on DOS this fails, as config.log is still kept open
42593# by configure, so config.status won't be able to write to it; its
42594# output is simply discarded. So we exec the FD to /dev/null,
42595# effectively closing config.log, so it can be properly (re)opened and
42596# appended to by config.status. When coming back to configure, we
42597# need to make the FD available again.
42598if test "$no_create" != yes; then
42599 ac_cs_success=:
42600 ac_config_status_args=
42601 test "$silent" = yes &&
42602 ac_config_status_args="$ac_config_status_args --quiet"
42603 exec 5>/dev/null
42604 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
42605 exec 5>>config.log
42606 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
42607 # would make configure fail if this is the last instruction.
42608 $ac_cs_success || { (exit 1); exit 1; }
42609fi
42610
42611#
42612# CONFIG_SUBDIRS section.
42613#
42614if test "$no_recursion" != yes; then
42615
42616 # Remove --cache-file and --srcdir arguments so they do not pile up.
42617 ac_sub_configure_args=
42618 ac_prev=
42619 for ac_arg in $ac_configure_args; do
42620 if test -n "$ac_prev"; then
42621 ac_prev=
42622 continue
42623 fi
42624 case $ac_arg in
42625 -cache-file | --cache-file | --cache-fil | --cache-fi \
42626 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
42627 ac_prev=cache_file ;;
42628 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
42629 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
42630 | --c=*)
42631 ;;
42632 --config-cache | -C)
42633 ;;
42634 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
42635 ac_prev=srcdir ;;
42636 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
42637 ;;
42638 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
42639 ac_prev=prefix ;;
42640 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
42641 ;;
42642 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
42643 esac
42644 done
42645
42646 # Always prepend --prefix to ensure using the same prefix
42647 # in subdir configurations.
42648 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
42649
42650 ac_popdir=`pwd`
42651 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
42652
42653 # Do not complain, so a configure script can configure whichever
42654 # parts of a large source tree are present.
42655 test -d $srcdir/$ac_dir || continue
42656
42657 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
42658echo "$as_me: configuring in $ac_dir" >&6;}
42659 { if $as_mkdir_p; then
42660 mkdir -p "$ac_dir"
42661 else
42662 as_dir="$ac_dir"
42663 as_dirs=
42664 while test ! -d "$as_dir"; do
42665 as_dirs="$as_dir $as_dirs"
42666 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42667$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42668 X"$as_dir" : 'X\(//\)[^/]' \| \
42669 X"$as_dir" : 'X\(//\)$' \| \
42670 X"$as_dir" : 'X\(/\)' \| \
42671 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42672echo X"$as_dir" |
42673 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42674 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42675 /^X\(\/\/\)$/{ s//\1/; q; }
42676 /^X\(\/\).*/{ s//\1/; q; }
42677 s/.*/./; q'`
42678 done
42679 test ! -n "$as_dirs" || mkdir $as_dirs
42680 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42681echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42682 { (exit 1); exit 1; }; }; }
42683
42684 ac_builddir=.
42685
42686if test "$ac_dir" != .; then
42687 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42688 # A "../" for each directory in $ac_dir_suffix.
42689 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42690else
42691 ac_dir_suffix= ac_top_builddir=
42692fi
42693
42694case $srcdir in
42695 .) # No --srcdir option. We are building in place.
42696 ac_srcdir=.
42697 if test -z "$ac_top_builddir"; then
42698 ac_top_srcdir=.
42699 else
42700 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42701 fi ;;
42702 [\\/]* | ?:[\\/]* ) # Absolute path.
42703 ac_srcdir=$srcdir$ac_dir_suffix;
42704 ac_top_srcdir=$srcdir ;;
42705 *) # Relative path.
42706 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42707 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42708esac
ac1cb8d3
VS
42709
42710# Do not use `cd foo && pwd` to compute absolute paths, because
42711# the directories may not exist.
42712case `pwd` in
42713.) ac_abs_builddir="$ac_dir";;
42714*)
42715 case "$ac_dir" in
42716 .) ac_abs_builddir=`pwd`;;
42717 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42718 *) ac_abs_builddir=`pwd`/"$ac_dir";;
42719 esac;;
42720esac
42721case $ac_abs_builddir in
42722.) ac_abs_top_builddir=${ac_top_builddir}.;;
42723*)
42724 case ${ac_top_builddir}. in
42725 .) ac_abs_top_builddir=$ac_abs_builddir;;
42726 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42727 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42728 esac;;
42729esac
42730case $ac_abs_builddir in
42731.) ac_abs_srcdir=$ac_srcdir;;
42732*)
42733 case $ac_srcdir in
42734 .) ac_abs_srcdir=$ac_abs_builddir;;
42735 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42736 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42737 esac;;
42738esac
42739case $ac_abs_builddir in
42740.) ac_abs_top_srcdir=$ac_top_srcdir;;
42741*)
42742 case $ac_top_srcdir in
42743 .) ac_abs_top_srcdir=$ac_abs_builddir;;
42744 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42745 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42746 esac;;
42747esac
a848cd7e
SC
42748
42749
42750 cd $ac_dir
42751
42752 # Check for guested configure; otherwise get Cygnus style configure.
42753 if test -f $ac_srcdir/configure.gnu; then
42754 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
42755 elif test -f $ac_srcdir/configure; then
42756 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
42757 elif test -f $ac_srcdir/configure.in; then
42758 ac_sub_configure=$ac_configure
42759 else
42760 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
42761echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
42762 ac_sub_configure=
42763 fi
42764
42765 # The recursion is here.
42766 if test -n "$ac_sub_configure"; then
42767 # Make the cache file name correct relative to the subdirectory.
42768 case $cache_file in
42769 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
42770 *) # Relative path.
ac1cb8d3 42771 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
42772 esac
42773
42774 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
42775echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
42776 # The eval makes quoting arguments work.
42777 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
42778 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
42779 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
42780echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
42781 { (exit 1); exit 1; }; }
42782 fi
42783
ceec2216 42784 cd "$ac_popdir"
a848cd7e
SC
42785 done
42786fi
42787
42788
42789echo
77ffb593 42790echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 42791echo ""
4d4ff94c 42792echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 42793echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 42794
77ffb593
JS
42795echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
42796echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
42797echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 42798
77ffb593
JS
42799echo " What level of wxWidgets compatibility should be enabled?"
42800echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
42801echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 42802
77ffb593 42803echo " Which libraries should wxWidgets use?"
a848cd7e
SC
42804echo " jpeg ${wxUSE_LIBJPEG-none}"
42805echo " png ${wxUSE_LIBPNG-none}"
42806echo " regex ${wxUSE_REGEX}"
42807echo " tiff ${wxUSE_LIBTIFF-none}"
42808if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
42809echo " xpm ${wxUSE_LIBXPM-none}"
42810fi
42811echo " zlib ${wxUSE_ZLIB}"
42812echo " odbc ${wxUSE_ODBC}"
42813echo " expat ${wxUSE_EXPAT}"
42814echo " libmspack ${wxUSE_LIBMSPACK}"
42815echo " sdl ${wxUSE_LIBSDL}"
42816
42817echo ""
42818