]> git.saurik.com Git - wxWidgets.git/blame - configure
catch a few more defines, which were not of the wxUSE_XXX form, and set them to 0...
[wxWidgets.git] / configure
CommitLineData
a848cd7e
SC
1#! /bin/sh
2# From configure.in Id: configure.in.
3# Guess values for system-dependent variables and create Makefiles.
7714864e 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.5.3.
a848cd7e 5#
77ffb593 6# Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e 7#
ac1cb8d3 8# Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
ac1cb8d3 25DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
26
27# Support unset when possible.
ac1cb8d3 28if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
29 as_unset=unset
30else
31 as_unset=false
32fi
33
34
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
40
41# NLS nuisances.
42for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
46do
ac1cb8d3 47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52done
53
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57else
58 as_expr=false
59fi
60
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63else
64 as_basename=false
65fi
66
67
68# Name of the executable.
69as_me=`$as_basename "$0" ||
70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
79
80
81# PATH needs CR, and LINENO needs CR and PATH.
82# Avoid depending upon Character Ranges.
83as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86as_cr_digits='0123456789'
87as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89# The user is always right.
90if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
98 fi
99 rm -f conf$$.sh
100fi
101
102
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113for as_dir in $PATH
114do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118done
119
120 ;;
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
126 fi
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
130 fi
131 case $CONFIG_SHELL in
132 '')
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135do
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
140 /*)
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155done
156;;
157 esac
158
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
169 N
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
180
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
187}
188
189
190case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195esac
196
197if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199else
200 as_expr=false
201fi
202
203rm -f conf$$ conf$$.exe conf$$.file
204echo >conf$$.file
205if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
213 fi
214elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216else
217 as_ln_s='cp -p'
218fi
219rm -f conf$$ conf$$.exe conf$$.file
220
221if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223else
ac1cb8d3 224 test -d ./-p && rmdir ./-p
a848cd7e
SC
225 as_mkdir_p=false
226fi
227
228as_executable_p="test -f"
229
230# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 231as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
232
233# Sed expression to map a string onto a valid variable name.
ac1cb8d3 234as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
235
236
237# IFS
238# We need space, tab and new line, in precisely that order.
239as_nl='
240'
241IFS=" $as_nl"
242
243# CDPATH.
244$as_unset CDPATH
245
246
247# Name of the host.
248# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249# so uname gets run too.
250ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252exec 6>&1
253
254#
255# Initializations.
256#
257ac_default_prefix=/usr/local
258ac_config_libobj_dir=.
259cross_compiling=no
260subdirs=
261MFLAGS=
262MAKEFLAGS=
263SHELL=${CONFIG_SHELL-/bin/sh}
264
265# Maximum number of lines to put in a shell here document.
266# This variable seems obsolete. It should probably be removed, and
267# only ac_max_sed_lines should be used.
268: ${ac_max_here_lines=38}
269
270# Identity of this package.
77ffb593
JS
271PACKAGE_NAME='wxWidgets'
272PACKAGE_TARNAME='wxwidgets'
7714864e
RL
273PACKAGE_VERSION='2.5.3'
274PACKAGE_STRING='wxWidgets 2.5.3'
77ffb593 275PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
a848cd7e
SC
276
277ac_unique_file="wx-config.in"
278# Factoring default headers for most tests.
279ac_includes_default="\
280#include <stdio.h>
281#if HAVE_SYS_TYPES_H
282# include <sys/types.h>
283#endif
284#if HAVE_SYS_STAT_H
285# include <sys/stat.h>
286#endif
287#if STDC_HEADERS
288# include <stdlib.h>
289# include <stddef.h>
290#else
291# if HAVE_STDLIB_H
292# include <stdlib.h>
293# endif
294#endif
295#if HAVE_STRING_H
296# if !STDC_HEADERS && HAVE_MEMORY_H
297# include <memory.h>
298# endif
299# include <string.h>
300#endif
301#if HAVE_STRINGS_H
302# include <strings.h>
303#endif
304#if HAVE_INTTYPES_H
305# include <inttypes.h>
306#else
307# if HAVE_STDINT_H
308# include <stdint.h>
309# endif
310#endif
311#if HAVE_UNISTD_H
312# include <unistd.h>
313#endif"
314
315ac_subdirs_all="$ac_subdirs_all src/expat"
90970d69 316ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL EXTRALIBS_GNOMEPRINT UNICODE BUILD DEBUG_INFO DEBUG_FLAG TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET ac_ct_AR ac_ct_STRIP NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOS PLATFORM_MACOSX PLATFORM_OS2 PLATFORM_BEOS SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 COND_PLATFORM_MAC_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_OPENGL_1 COND_USE_PLUGINS_0 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_XRC_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_EXTRALIBS WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS GCC_PRAGMA_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL CPPUNIT_CONFIG LIBOBJS LTLIBOBJS'
a848cd7e
SC
317ac_subst_files=''
318
319# Initialize some variables set by options.
320ac_init_help=
321ac_init_version=false
322# The variables have the same names as the options, with
323# dashes changed to underlines.
324cache_file=/dev/null
325exec_prefix=NONE
326no_create=
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
335verbose=
336x_includes=NONE
337x_libraries=NONE
338
339# Installation directory options.
340# These are left unexpanded so users can "make install exec_prefix=/foo"
341# and all the variables that are supposed to be based on exec_prefix
342# by default will actually change.
343# Use braces instead of parens because sh, perl, etc. also accept them.
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
347datadir='${prefix}/share'
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
351libdir='${exec_prefix}/lib'
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
354infodir='${prefix}/info'
355mandir='${prefix}/man'
356
357ac_prev=
358for ac_option
359do
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
363 ac_prev=
364 continue
365 fi
366
367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
371 case $ac_option in
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 bindir=$ac_optarg ;;
377
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build_alias ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build_alias=$ac_optarg ;;
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
392
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 ac_prev=datadir ;;
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
397 datadir=$ac_optarg ;;
398
399 -disable-* | --disable-*)
400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401 # Reject names that are not valid shell variable names.
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
407
408 -enable-* | --enable-*)
409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "enable_$ac_feature='$ac_optarg'" ;;
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
428 exec_prefix=$ac_optarg ;;
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
440
441 -host | --host | --hos | --ho)
442 ac_prev=host_alias ;;
443 -host=* | --host=* | --hos=* | --ho=*)
444 host_alias=$ac_optarg ;;
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
451 includedir=$ac_optarg ;;
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456 infodir=$ac_optarg ;;
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 libdir=$ac_optarg ;;
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
468 libexecdir=$ac_optarg ;;
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477 localstatedir=$ac_optarg ;;
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 mandir=$ac_optarg ;;
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c | -n)
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503 oldincludedir=$ac_optarg ;;
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 prefix=$ac_optarg ;;
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515 program_prefix=$ac_optarg ;;
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522 program_suffix=$ac_optarg ;;
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
539 program_transform_name=$ac_optarg ;;
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
549 sbindir=$ac_optarg ;;
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
560 sharedstatedir=$ac_optarg ;;
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
565 site=$ac_optarg ;;
566
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 srcdir=$ac_optarg ;;
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577 sysconfdir=$ac_optarg ;;
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
580 ac_prev=target_alias ;;
581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582 target_alias=$ac_optarg ;;
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
589
590 -with-* | --with-*)
591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
596 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_$ac_package='$ac_optarg'" ;;
602
603 -without-* | --without-*)
604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605 # Reject names that are not valid shell variable names.
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621 x_includes=$ac_optarg ;;
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628 x_libraries=$ac_optarg ;;
629
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
633 ;;
634
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
643 export $ac_envvar ;;
644
645 *)
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
660fi
661
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
664do
665 eval ac_val=$`echo $ac_var`
666 case $ac_val in
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671done
672
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
ac1cb8d3 675 localstatedir libdir includedir oldincludedir infodir mandir
a848cd7e
SC
676do
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
682 esac
683done
684
685# There might be people who depend on the old broken behavior: `$host'
686# used to hold the argument of --host etc.
687# FIXME: To remove some day.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701fi
702
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
707
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
719echo X"$0" |
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
725 srcdir=$ac_confdir
726 if test ! -r $srcdir/$ac_unique_file; then
727 srcdir=..
728 fi
729else
730 ac_srcdir_defaulted=no
731fi
732if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
736 else
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
739 fi
740fi
741(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
777ac_env_CXX_set=${CXX+set}
778ac_env_CXX_value=$CXX
779ac_cv_env_CXX_set=${CXX+set}
780ac_cv_env_CXX_value=$CXX
781ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782ac_env_CXXFLAGS_value=$CXXFLAGS
783ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785ac_env_CXXCPP_set=${CXXCPP+set}
786ac_env_CXXCPP_value=$CXXCPP
787ac_cv_env_CXXCPP_set=${CXXCPP+set}
788ac_cv_env_CXXCPP_value=$CXXCPP
789
790#
791# Report the --help message.
792#
793if test "$ac_init_help" = "long"; then
794 # Omit some internal or obsolete options to make the list less imposing.
795 # This message is too long to be a string in the A/UX 3.1 sh.
796 cat <<_ACEOF
7714864e 797\`configure' configures wxWidgets 2.5.3 to adapt to many kinds of systems.
a848cd7e
SC
798
799Usage: $0 [OPTION]... [VAR=VALUE]...
800
801To assign environment variables (e.g., CC, CFLAGS...), specify them as
802VAR=VALUE. See below for descriptions of some of the useful variables.
803
804Defaults for the options are specified in brackets.
805
806Configuration:
807 -h, --help display this help and exit
808 --help=short display options specific to this package
809 --help=recursive display the short help of all the included packages
810 -V, --version display version information and exit
811 -q, --quiet, --silent do not print \`checking...' messages
812 --cache-file=FILE cache test results in FILE [disabled]
813 -C, --config-cache alias for \`--cache-file=config.cache'
814 -n, --no-create do not create output files
815 --srcdir=DIR find the sources in DIR [configure dir or \`..']
816
817_ACEOF
818
819 cat <<_ACEOF
820Installation directories:
821 --prefix=PREFIX install architecture-independent files in PREFIX
ac1cb8d3 822 [$ac_default_prefix]
a848cd7e 823 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ac1cb8d3 824 [PREFIX]
a848cd7e
SC
825
826By default, \`make install' will install all the files in
827\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
828an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829for instance \`--prefix=\$HOME'.
830
831For better control, use the options below.
832
833Fine tuning of the installation directories:
834 --bindir=DIR user executables [EPREFIX/bin]
835 --sbindir=DIR system admin executables [EPREFIX/sbin]
836 --libexecdir=DIR program executables [EPREFIX/libexec]
837 --datadir=DIR read-only architecture-independent data [PREFIX/share]
838 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
839 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
840 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
841 --libdir=DIR object code libraries [EPREFIX/lib]
842 --includedir=DIR C header files [PREFIX/include]
843 --oldincludedir=DIR C header files for non-gcc [/usr/include]
844 --infodir=DIR info documentation [PREFIX/info]
845 --mandir=DIR man documentation [PREFIX/man]
846_ACEOF
847
848 cat <<\_ACEOF
849
850X features:
851 --x-includes=DIR X include files are in DIR
852 --x-libraries=DIR X library files are in DIR
853
854System types:
855 --build=BUILD configure for building on BUILD [guessed]
856 --host=HOST cross-compile to build programs to run on HOST [BUILD]
857 --target=TARGET configure for building compilers for TARGET [HOST]
858_ACEOF
859fi
860
861if test -n "$ac_init_help"; then
862 case $ac_init_help in
7714864e 863 short | recursive ) echo "Configuration of wxWidgets 2.5.3:";;
a848cd7e
SC
864 esac
865 cat <<\_ACEOF
866
867Optional Features:
868 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
869 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
870 --enable-gui use GUI classes
77ffb593
JS
871 --enable-monolithic build wxWidgets as single library
872 --enable-plugins build parts of wxWidgets as loadable components
873 --enable-universal use wxWidgets GUI controls instead of native ones
a848cd7e 874 --enable-nanox use NanoX
9f45f08e 875 --disable-gtk2 use GTK+ 1.2 instead of 2.0
a848cd7e
SC
876 --enable-gpe use GNOME PDA Environment features if possible
877 --enable-shared create shared library code
878 --enable-optimise create optimised code
879 --enable-debug same as debug_flag and debug_info
880 --enable-stl use STL for containers
881 --enable-omf use OMF object format
882 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
883 --enable-debug_info create code with debugging information
884 --enable-debug_gdb create code with extra GDB debugging information
885 --enable-debug_cntxt use wxDebugContext
886 --enable-mem_tracing create code with memory tracing
887 --enable-profile create code with profiling information
888 --enable-no_rtti create code without RTTI information
889 --enable-no_exceptions create code without C++ exceptions handling
890 --enable-permissive compile code disregarding strict ANSI
891 --enable-no_deps create code without dependency information
77ffb593
JS
892 --enable-compat22 enable wxWidgets 2.2 compatibility
893 --disable-compat24 disable wxWidgets 2.4 compatibility
ffa0583f 894 --disable-rpath disable use of rpath for uninstalled builds
a848cd7e
SC
895 --enable-intl use internationalization system
896 --enable-config use wxConfig (and derived) classes
897 --enable-protocols use wxProtocol and derived classes
898 --enable-ftp use wxFTP (requires wxProtocol
899 --enable-http use wxHTTP (requires wxProtocol
900 --enable-fileproto use wxFileProto class (requires wxProtocol
901 --enable-sockets use socket/network classes
902 --enable-ole use OLE classes (Win32 only)
903 --enable-dataobj use data object classes
904 --enable-ipc use interprocess communication (wxSocket etc.)
905 --enable-apple_ieee use the Apple IEEE codec
906 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
907 --enable-cmdline use wxCmdLineParser class
908 --enable-datetime use wxDateTime class
909 --enable-dialupman use dialup network classes
910 --enable-dynlib use wxLibrary class for DLL loading
911 --enable-dynamicloader use (new) wxDynamicLibrary class
912 --enable-exceptions build exception-safe library
913 --enable-ffile use wxFFile class
914 --enable-file use wxFile class
915 --enable-filesystem use virtual file systems classes
916 --enable-fontmap use font encodings conversion classes
917 --enable-fs_inet use virtual HTTP/FTP filesystems
918 --enable-fs_zip use virtual ZIP filesystems
919 --enable-geometry use geometry class
920 --enable-log use logging system
921 --enable-longlong use wxLongLong class
922 --enable-mimetype use wxMimeTypesManager
923 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
924 --enable-snglinst use wxSingleInstanceChecker class
925 --enable-streams use wxStream etc classes
926 --enable-std_iostreams use standard C++ stream classes
927 --enable-stopwatch use wxStopWatch class
928 --enable-sysoptions use wxSystemOptions
929 --enable-textbuf use wxTextBuffer class
930 --enable-textfile use wxTextFile class
931 --enable-timer use wxTimer class
932 --enable-unicode compile wxString with Unicode support
933 --enable-sound use wxSound class
3b57de8b 934 --enable-mediactrl use wxMediaCtrl class
77ffb593 935 --enable-wxprintfv use wxWidgets implementation of vprintf()
a848cd7e 936 --enable-zipstream use wxZipInputStream
a848cd7e
SC
937 --enable-url use wxURL class
938 --enable-protocol use wxProtocol class
939 --enable-protocol-http HTTP support in wxProtocol
940 --enable-protocol-ftp FTP support in wxProtocol
941 --enable-protocol-file FILE support in wxProtocol
942 --enable-threads use threads
943 --enable-docview use document view architecture
944 --enable-help use help subsystem
945 --enable-mshtmlhelp use MS HTML Help (win32)
946 --enable-html use wxHTML sub-library
947 --enable-htmlhelp use wxHTML-based help
9a8f0513 948 --enable-xrc use XRC resources sub-library
a848cd7e
SC
949 --enable-constraints use layout-constraints system
950 --enable-printarch use printing architecture
951 --enable-mdi use multiple document interface architecture
8a7b1113 952 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
953 --enable-loggui use standard GUI logger
954 --enable-logwin use wxLogWindow
955 --enable-logdialog use wxLogDialog
646b6ec1 956 --enable-webkit use wxWebKitCtrl (Mac)
a848cd7e
SC
957 --enable-postscript use wxPostscriptDC device context (default for gtk+)
958 --enable-prologio not available; see contrib
959 --enable-resources not available; see contrib
960 --enable-clipboard use wxClipboard class
961 --enable-dnd use Drag'n'Drop classes
962 --enable-metafile use win32 metafiles
963 --enable-controls use all usual controls
964 --enable-accel use accelerators
965 --enable-button use wxButton class
966 --enable-bmpbutton use wxBitmapButton class
967 --enable-calendar use wxCalendarCtrl class
968 --enable-caret use wxCaret class
969 --enable-checkbox use wxCheckBox class
970 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
971 --enable-choice use wxChoice class
92bbdbcd 972 --enable-choicebook use wxChoicebook class
a848cd7e
SC
973 --enable-combobox use wxComboBox class
974 --enable-display use wxDisplay class
975 --enable-gauge use wxGauge class
976 --enable-grid use wxGrid class
977 --enable-imaglist use wxImageList class
978 --enable-listbook use wxListbook class
979 --enable-listbox use wxListBox class
980 --enable-listctrl use wxListCtrl class
981 --enable-notebook use wxNotebook class
982 --enable-radiobox use wxRadioBox class
983 --enable-radiobtn use wxRadioButton class
984 --enable-sash use wxSashWindow class
985 --enable-scrollbar use wxScrollBar class and scrollable windows
986 --enable-slider use wxSlider class
987 --enable-spinbtn use wxSpinButton class
988 --enable-spinctrl use wxSpinCtrl class
989 --enable-splitter use wxSplitterWindow class
990 --enable-statbmp use wxStaticBitmap class
991 --enable-statbox use wxStaticBox class
992 --enable-statline use wxStaticLine class
993 --enable-stattext use wxStaticText class
994 --enable-statusbar use wxStatusBar class
995 --enable-tabdialog use wxTabControl class
996 --enable-textctrl use wxTextCtrl class
997 --enable-togglebtn use wxToggleButton class
998 --enable-toolbar use wxToolBar class
999 --enable-tbarnative use native wxToolBar class
1000 --enable-tbarsmpl use wxToolBarSimple class
1001 --enable-treectrl use wxTreeCtrl class
1002 --enable-tipwindow use wxTipWindow class
1003 --enable-popupwin use wxPopUpWindow class
1004 --enable-commondlg use all common dialogs
1005 --enable-choicedlg use wxChoiceDialog
1006 --enable-coldlg use wxColourDialog
1007 --enable-filedlg use wxFileDialog
1008 --enable-finddlg use wxFindReplaceDialog
1009 --enable-fontdlg use wxFontDialog
1010 --enable-dirdlg use wxDirDialog
1011 --enable-msgdlg use wxMessageDialog
1012 --enable-numberdlg use wxNumberEntryDialog
1013 --enable-splash use wxSplashScreen
1014 --enable-textdlg use wxTextDialog
1015 --enable-tipdlg use startup tips
1016 --enable-progressdlg use wxProgressDialog
1017 --enable-wizarddlg use wxWizard
1018 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1019 --enable-miniframe use wxMiniFrame class
1020 --enable-tooltips use wxToolTip class
1021 --enable-splines use spline drawing code
1022 --enable-validators use wxValidator and derived classes
1023 --enable-busyinfo use wxBusyInfo
1024 --enable-joystick use wxJoystick (Linux only)
1025 --enable-metafiles use wxMetaFile (Windows only)
1026 --enable-dragimage use wxDragImage
1027 --enable-accessibility enable accessibility support
1028 --enable-palette use wxPalette class
1029 --enable-image use wxImage class
1030 --enable-gif use gif images (GIF file format)
1031 --enable-pcx use pcx images (PCX file format)
1032 --enable-iff use iff images (IFF file format)
1033 --enable-pnm use pnm images (PNM file format)
1034 --enable-xpm use xpm images (XPM file format)
1035 --enable-icocur use Windows ICO and CUR formats
77ffb593 1036 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1037 --enable-vendor=VENDOR vendor name (win32 DLL only)
1038 --disable-largefile omit support for large files
1039 --disable-gtktest do not try to compile and run a test GTK+ program
1040 --disable-gtktest Do not try to compile and run a test GTK program
1041 --disable-sdltest Do not try to compile and run a test SDL program
1042 --enable-omf use OMF object format (OS/2)
ebee3cd0
VS
1043 --disable-precomp-headers
1044 don't use precompiled headers even if compiler can
a848cd7e
SC
1045
1046Optional Packages:
1047 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1048 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1049 --with-gtk use GTK+
1050 --with-motif use Motif/Lesstif
1051 --with-mac use Mac OS X
1052 --with-cocoa use Cocoa
1053 --with-wine use Wine
1054 --with-msw use MS-Windows
1055 --with-pm use OS/2 Presentation Manager
1056 --with-mgl use SciTech MGL
1057 --with-microwin use MicroWindows
1058 --with-x11 use X11
1059 --with-libpng use libpng (PNG image format)
1060 --with-libjpeg use libjpeg (JPEG file format)
1061 --with-libtiff use libtiff (TIFF file format)
1062 --with-libxpm use libxpm (XPM file format)
1063 --with-libmspack use libmspack (CHM help files loading)
1064 --with-sdl use SDL for audio on Unix
d51253e8 1065 --with-gnomeprint use GNOME print for printing under Unix
a848cd7e
SC
1066 --with-opengl use OpenGL (or Mesa)
1067 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1068 --with-regex enable support for wxRegEx class
1069 --with-zlib use zlib for LZW compression
1070 --with-odbc use the IODBC and wxODBC classes
1071 --with-expat enable XML support using expat parser
ceec2216 1072 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1073 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1074 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1075 --with-x use the X Window System
1076 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1077 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1078 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1079 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1080 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1081
1082Some influential environment variables:
dcc1b6ad
VS
1083 CC C compiler command
1084 CFLAGS C compiler flags
1085 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1086 nonstandard directory <lib dir>
1087 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1088 headers in a nonstandard directory <include dir>
1089 CPP C preprocessor
1090 CXX C++ compiler command
1091 CXXFLAGS C++ compiler flags
1092 CXXCPP C++ preprocessor
a848cd7e
SC
1093
1094Use these variables to override the choices made by `configure' or to help
1095it to find libraries and programs with nonstandard names/locations.
1096
77ffb593 1097Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1098_ACEOF
1099fi
1100
1101if test "$ac_init_help" = "recursive"; then
1102 # If there are subdirs, report their specific --help.
1103 ac_popdir=`pwd`
1104 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1105 test -d $ac_dir || continue
1106 ac_builddir=.
1107
1108if test "$ac_dir" != .; then
1109 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1110 # A "../" for each directory in $ac_dir_suffix.
1111 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1112else
1113 ac_dir_suffix= ac_top_builddir=
1114fi
1115
1116case $srcdir in
1117 .) # No --srcdir option. We are building in place.
1118 ac_srcdir=.
1119 if test -z "$ac_top_builddir"; then
1120 ac_top_srcdir=.
1121 else
1122 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1123 fi ;;
1124 [\\/]* | ?:[\\/]* ) # Absolute path.
1125 ac_srcdir=$srcdir$ac_dir_suffix;
1126 ac_top_srcdir=$srcdir ;;
1127 *) # Relative path.
1128 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1129 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1130esac
ac1cb8d3
VS
1131
1132# Do not use `cd foo && pwd` to compute absolute paths, because
1133# the directories may not exist.
1134case `pwd` in
1135.) ac_abs_builddir="$ac_dir";;
1136*)
1137 case "$ac_dir" in
1138 .) ac_abs_builddir=`pwd`;;
1139 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1140 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1141 esac;;
1142esac
1143case $ac_abs_builddir in
1144.) ac_abs_top_builddir=${ac_top_builddir}.;;
1145*)
1146 case ${ac_top_builddir}. in
1147 .) ac_abs_top_builddir=$ac_abs_builddir;;
1148 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1149 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1150 esac;;
1151esac
1152case $ac_abs_builddir in
1153.) ac_abs_srcdir=$ac_srcdir;;
1154*)
1155 case $ac_srcdir in
1156 .) ac_abs_srcdir=$ac_abs_builddir;;
1157 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1158 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1159 esac;;
1160esac
1161case $ac_abs_builddir in
1162.) ac_abs_top_srcdir=$ac_top_srcdir;;
1163*)
1164 case $ac_top_srcdir in
1165 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1166 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1167 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1168 esac;;
1169esac
a848cd7e
SC
1170
1171 cd $ac_dir
1172 # Check for guested configure; otherwise get Cygnus style configure.
1173 if test -f $ac_srcdir/configure.gnu; then
1174 echo
1175 $SHELL $ac_srcdir/configure.gnu --help=recursive
1176 elif test -f $ac_srcdir/configure; then
1177 echo
1178 $SHELL $ac_srcdir/configure --help=recursive
1179 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1180 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1181 echo
1182 $ac_configure --help
1183 else
1184 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1185 fi
5294a27e 1186 cd "$ac_popdir"
a848cd7e
SC
1187 done
1188fi
1189
1190test -n "$ac_init_help" && exit 0
1191if $ac_init_version; then
1192 cat <<\_ACEOF
7714864e 1193wxWidgets configure 2.5.3
ac1cb8d3 1194generated by GNU Autoconf 2.59
a848cd7e 1195
ac1cb8d3 1196Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1197This configure script is free software; the Free Software Foundation
1198gives unlimited permission to copy, distribute and modify it.
1199_ACEOF
1200 exit 0
1201fi
1202exec 5>config.log
1203cat >&5 <<_ACEOF
1204This file contains any messages produced by compilers while
1205running configure, to aid debugging if configure makes a mistake.
1206
7714864e 1207It was created by wxWidgets $as_me 2.5.3, which was
ac1cb8d3 1208generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1209
1210 $ $0 $@
1211
1212_ACEOF
1213{
1214cat <<_ASUNAME
1215## --------- ##
1216## Platform. ##
1217## --------- ##
1218
1219hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1220uname -m = `(uname -m) 2>/dev/null || echo unknown`
1221uname -r = `(uname -r) 2>/dev/null || echo unknown`
1222uname -s = `(uname -s) 2>/dev/null || echo unknown`
1223uname -v = `(uname -v) 2>/dev/null || echo unknown`
1224
1225/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1226/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1227
1228/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1229/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1230/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1231hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1232/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1233/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1234/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1235
1236_ASUNAME
1237
1238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1239for as_dir in $PATH
1240do
1241 IFS=$as_save_IFS
1242 test -z "$as_dir" && as_dir=.
1243 echo "PATH: $as_dir"
1244done
1245
1246} >&5
1247
1248cat >&5 <<_ACEOF
1249
1250
1251## ----------- ##
1252## Core tests. ##
1253## ----------- ##
1254
1255_ACEOF
1256
1257
1258# Keep a trace of the command line.
1259# Strip out --no-create and --no-recursion so they do not pile up.
1260# Strip out --silent because we don't want to record it for future runs.
1261# Also quote any args containing shell meta-characters.
1262# Make two passes to allow for proper duplicate-argument suppression.
1263ac_configure_args=
1264ac_configure_args0=
1265ac_configure_args1=
1266ac_sep=
1267ac_must_keep_next=false
1268for ac_pass in 1 2
1269do
1270 for ac_arg
1271 do
1272 case $ac_arg in
1273 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1274 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1275 | -silent | --silent | --silen | --sile | --sil)
1276 continue ;;
1277 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1278 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1279 esac
1280 case $ac_pass in
1281 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1282 2)
1283 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1284 if test $ac_must_keep_next = true; then
ac1cb8d3 1285 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1286 else
ac1cb8d3
VS
1287 case $ac_arg in
1288 *=* | --config-cache | -C | -disable-* | --disable-* \
1289 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1290 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1291 | -with-* | --with-* | -without-* | --without-* | --x)
1292 case "$ac_configure_args0 " in
1293 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1294 esac
1295 ;;
1296 -* ) ac_must_keep_next=true ;;
1297 esac
a848cd7e
SC
1298 fi
1299 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1300 # Get rid of the leading space.
1301 ac_sep=" "
1302 ;;
1303 esac
1304 done
1305done
1306$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1307$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1308
1309# When interrupted or exit'd, cleanup temporary files, and complete
1310# config.log. We remove comments because anyway the quotes in there
1311# would cause problems or look ugly.
1312# WARNING: Be sure not to use single quotes in there, as some shells,
1313# such as our DU 5.0 friend, will then `close' the trap.
1314trap 'exit_status=$?
1315 # Save into config.log some information that might help in debugging.
1316 {
1317 echo
1318
1319 cat <<\_ASBOX
1320## ---------------- ##
1321## Cache variables. ##
1322## ---------------- ##
1323_ASBOX
1324 echo
1325 # The following way of writing the cache mishandles newlines in values,
1326{
1327 (set) 2>&1 |
1328 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1329 *ac_space=\ *)
1330 sed -n \
ac1cb8d3
VS
1331 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1332 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1333 ;;
1334 *)
1335 sed -n \
ac1cb8d3 1336 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1337 ;;
1338 esac;
1339}
1340 echo
1341
1342 cat <<\_ASBOX
1343## ----------------- ##
1344## Output variables. ##
1345## ----------------- ##
1346_ASBOX
1347 echo
1348 for ac_var in $ac_subst_vars
1349 do
1350 eval ac_val=$`echo $ac_var`
1351 echo "$ac_var='"'"'$ac_val'"'"'"
1352 done | sort
1353 echo
1354
1355 if test -n "$ac_subst_files"; then
1356 cat <<\_ASBOX
1357## ------------- ##
1358## Output files. ##
1359## ------------- ##
1360_ASBOX
1361 echo
1362 for ac_var in $ac_subst_files
1363 do
1364 eval ac_val=$`echo $ac_var`
ac1cb8d3 1365 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1366 done | sort
1367 echo
1368 fi
1369
1370 if test -s confdefs.h; then
1371 cat <<\_ASBOX
1372## ----------- ##
1373## confdefs.h. ##
1374## ----------- ##
1375_ASBOX
1376 echo
1377 sed "/^$/d" confdefs.h | sort
1378 echo
1379 fi
1380 test "$ac_signal" != 0 &&
1381 echo "$as_me: caught signal $ac_signal"
1382 echo "$as_me: exit $exit_status"
1383 } >&5
ac1cb8d3 1384 rm -f core *.core &&
a848cd7e
SC
1385 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1386 exit $exit_status
1387 ' 0
1388for ac_signal in 1 2 13 15; do
1389 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1390done
1391ac_signal=0
1392
1393# confdefs.h avoids OS command line length limits that DEFS can exceed.
1394rm -rf conftest* confdefs.h
1395# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1396echo >confdefs.h
1397
1398# Predefined preprocessor variables.
1399
1400cat >>confdefs.h <<_ACEOF
1401#define PACKAGE_NAME "$PACKAGE_NAME"
1402_ACEOF
1403
1404
1405cat >>confdefs.h <<_ACEOF
1406#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1407_ACEOF
1408
1409
1410cat >>confdefs.h <<_ACEOF
1411#define PACKAGE_VERSION "$PACKAGE_VERSION"
1412_ACEOF
1413
1414
1415cat >>confdefs.h <<_ACEOF
1416#define PACKAGE_STRING "$PACKAGE_STRING"
1417_ACEOF
1418
1419
1420cat >>confdefs.h <<_ACEOF
1421#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1422_ACEOF
1423
1424
1425# Let the site file select an alternate cache file if it wants to.
1426# Prefer explicitly selected file to automatically selected ones.
1427if test -z "$CONFIG_SITE"; then
1428 if test "x$prefix" != xNONE; then
1429 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1430 else
1431 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1432 fi
1433fi
1434for ac_site_file in $CONFIG_SITE; do
1435 if test -r "$ac_site_file"; then
1436 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1437echo "$as_me: loading site script $ac_site_file" >&6;}
1438 sed 's/^/| /' "$ac_site_file" >&5
1439 . "$ac_site_file"
1440 fi
1441done
1442
1443if test -r "$cache_file"; then
1444 # Some versions of bash will fail to source /dev/null (special
1445 # files actually), so we avoid doing that.
1446 if test -f "$cache_file"; then
1447 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1448echo "$as_me: loading cache $cache_file" >&6;}
1449 case $cache_file in
1450 [\\/]* | ?:[\\/]* ) . $cache_file;;
1451 *) . ./$cache_file;;
1452 esac
1453 fi
1454else
1455 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1456echo "$as_me: creating cache $cache_file" >&6;}
1457 >$cache_file
1458fi
1459
1460# Check that the precious variables saved in the cache have kept the same
1461# value.
1462ac_cache_corrupted=false
1463for ac_var in `(set) 2>&1 |
ac1cb8d3 1464 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1465 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1466 eval ac_new_set=\$ac_env_${ac_var}_set
1467 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1468 eval ac_new_val="\$ac_env_${ac_var}_value"
1469 case $ac_old_set,$ac_new_set in
1470 set,)
1471 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1472echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1473 ac_cache_corrupted=: ;;
1474 ,set)
1475 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1476echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1477 ac_cache_corrupted=: ;;
1478 ,);;
1479 *)
1480 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1481 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1482echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1483 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1484echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1485 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1486echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1487 ac_cache_corrupted=:
a848cd7e
SC
1488 fi;;
1489 esac
1490 # Pass precious variables to config.status.
1491 if test "$ac_new_set" = set; then
1492 case $ac_new_val in
1493 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1494 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1495 *) ac_arg=$ac_var=$ac_new_val ;;
1496 esac
1497 case " $ac_configure_args " in
1498 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1499 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1500 esac
1501 fi
1502done
1503if $ac_cache_corrupted; then
1504 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1505echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1506 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1507echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1508 { (exit 1); exit 1; }; }
1509fi
1510
1511ac_ext=c
1512ac_cpp='$CPP $CPPFLAGS'
1513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1515ac_compiler_gnu=$ac_cv_c_compiler_gnu
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546ac_aux_dir=
1547for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1548 if test -f $ac_dir/install-sh; then
1549 ac_aux_dir=$ac_dir
1550 ac_install_sh="$ac_aux_dir/install-sh -c"
1551 break
1552 elif test -f $ac_dir/install.sh; then
1553 ac_aux_dir=$ac_dir
1554 ac_install_sh="$ac_aux_dir/install.sh -c"
1555 break
1556 elif test -f $ac_dir/shtool; then
1557 ac_aux_dir=$ac_dir
1558 ac_install_sh="$ac_aux_dir/shtool install -c"
1559 break
1560 fi
1561done
1562if test -z "$ac_aux_dir"; then
1563 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1564echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1565 { (exit 1); exit 1; }; }
1566fi
1567ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1568ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1569ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1570
1571# Make sure we can run config.sub.
1572$ac_config_sub sun4 >/dev/null 2>&1 ||
1573 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1574echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1575 { (exit 1); exit 1; }; }
1576
1577echo "$as_me:$LINENO: checking build system type" >&5
1578echo $ECHO_N "checking build system type... $ECHO_C" >&6
1579if test "${ac_cv_build+set}" = set; then
1580 echo $ECHO_N "(cached) $ECHO_C" >&6
1581else
1582 ac_cv_build_alias=$build_alias
1583test -z "$ac_cv_build_alias" &&
1584 ac_cv_build_alias=`$ac_config_guess`
1585test -z "$ac_cv_build_alias" &&
1586 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1587echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1588 { (exit 1); exit 1; }; }
1589ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1590 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1591echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1592 { (exit 1); exit 1; }; }
1593
1594fi
1595echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1596echo "${ECHO_T}$ac_cv_build" >&6
1597build=$ac_cv_build
1598build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1599build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1600build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1601
1602
1603echo "$as_me:$LINENO: checking host system type" >&5
1604echo $ECHO_N "checking host system type... $ECHO_C" >&6
1605if test "${ac_cv_host+set}" = set; then
1606 echo $ECHO_N "(cached) $ECHO_C" >&6
1607else
1608 ac_cv_host_alias=$host_alias
1609test -z "$ac_cv_host_alias" &&
1610 ac_cv_host_alias=$ac_cv_build_alias
1611ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1612 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1613echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1614 { (exit 1); exit 1; }; }
1615
1616fi
1617echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1618echo "${ECHO_T}$ac_cv_host" >&6
1619host=$ac_cv_host
1620host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1621host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1622host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1623
1624
1625echo "$as_me:$LINENO: checking target system type" >&5
1626echo $ECHO_N "checking target system type... $ECHO_C" >&6
1627if test "${ac_cv_target+set}" = set; then
1628 echo $ECHO_N "(cached) $ECHO_C" >&6
1629else
1630 ac_cv_target_alias=$target_alias
1631test "x$ac_cv_target_alias" = "x" &&
1632 ac_cv_target_alias=$ac_cv_host_alias
1633ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1634 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1635echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1636 { (exit 1); exit 1; }; }
1637
1638fi
1639echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1640echo "${ECHO_T}$ac_cv_target" >&6
1641target=$ac_cv_target
1642target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1643target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1644target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1645
1646
1647# The aliases save the names the user supplied, while $host etc.
1648# will get canonicalized.
1649test -n "$target_alias" &&
1650 test "$program_prefix$program_suffix$program_transform_name" = \
1651 NONENONEs,x,x, &&
1652 program_prefix=${target_alias}-
1653
1654
1655
ceec2216
RL
1656wx_major_version_number=2
1657wx_minor_version_number=5
7714864e 1658wx_release_number=3
0210f373 1659wx_subrelease_number=3
a848cd7e 1660
ceec2216
RL
1661WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1662WX_VERSION=$WX_RELEASE.$wx_release_number
1663WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1664
ceec2216 1665WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1666
e653e181 1667WX_CURRENT=3
a848cd7e 1668WX_REVISION=0
0210f373 1669WX_AGE=3
a848cd7e
SC
1670
1671
1672
1673USE_UNIX=1
1674USE_OS2=0
1675USE_WIN32=0
1676USE_DOS=0
1677USE_BEOS=0
1678USE_MAC=0
1679
1680USE_AIX=
1681USE_BSD= USE_DARWIN= USE_FREEBSD=
1682USE_GNU= USE_HPUX=
1683USE_LINUX=
1684USE_NETBSD=
1685USE_OPENBSD=
1686USE_OSF= USE_SGI=
1687USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1688USE_ULTRIX=
1689USE_UNIXWARE=
1690
1691USE_ALPHA=
1692
1693NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1694
1695ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1696
1697DEFAULT_wxUSE_COCOA=0
1698DEFAULT_wxUSE_GTK=0
1699DEFAULT_wxUSE_MAC=0
1700DEFAULT_wxUSE_MGL=0
1701DEFAULT_wxUSE_MICROWIN=0
1702DEFAULT_wxUSE_MOTIF=0
1703DEFAULT_wxUSE_MSW=0
1704DEFAULT_wxUSE_PM=0
1705DEFAULT_wxUSE_X11=0
1706
1707DEFAULT_DEFAULT_wxUSE_COCOA=0
1708DEFAULT_DEFAULT_wxUSE_GTK=0
1709DEFAULT_DEFAULT_wxUSE_MAC=0
1710DEFAULT_DEFAULT_wxUSE_MGL=0
1711DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1712DEFAULT_DEFAULT_wxUSE_MOTIF=0
1713DEFAULT_DEFAULT_wxUSE_MSW=0
1714DEFAULT_DEFAULT_wxUSE_PM=0
1715DEFAULT_DEFAULT_wxUSE_X11=0
1716
1717PROGRAM_EXT=
1718SO_SUFFIX=so
1719SAMPLES_RPATH_FLAG=
1720SAMPLES_RPATH_POSTLINK=
1721
1722case "${host}" in
1723 *-hp-hpux* )
1724 USE_HPUX=1
1725 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1726 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1727 SO_SUFFIX=sl
1728 cat >>confdefs.h <<\_ACEOF
1729#define __HPUX__ 1
1730_ACEOF
1731
1732 ;;
1733 *-*-linux* )
1734 USE_LINUX=1
1735 cat >>confdefs.h <<\_ACEOF
1736#define __LINUX__ 1
1737_ACEOF
1738
1739 TMP=`uname -m`
1740 if test "x$TMP" = "xalpha"; then
1741 USE_ALPHA=1
1742 cat >>confdefs.h <<\_ACEOF
1743#define __ALPHA__ 1
1744_ACEOF
1745
1746 fi
1747 DEFAULT_DEFAULT_wxUSE_GTK=1
1748 ;;
1749 *-*-gnu* | *-*-k*bsd*-gnu )
1750 USE_GNU=1
1751 TMP=`uname -m`
1752 if test "x$TMP" = "xalpha"; then
1753 USE_ALPHA=1
1754 cat >>confdefs.h <<\_ACEOF
1755#define __ALPHA__ 1
1756_ACEOF
1757
1758 fi
1759 DEFAULT_DEFAULT_wxUSE_GTK=1
1760 ;;
1761 *-*-irix5* | *-*-irix6* )
1762 USE_SGI=1
1763 USE_SVR4=1
1764 cat >>confdefs.h <<\_ACEOF
1765#define __SGI__ 1
1766_ACEOF
1767
1768 cat >>confdefs.h <<\_ACEOF
1769#define __SVR4__ 1
1770_ACEOF
1771
1772 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1773 ;;
1774 *-*-solaris2* )
1775 USE_SUN=1
1776 USE_SOLARIS=1
1777 USE_SVR4=1
1778 cat >>confdefs.h <<\_ACEOF
1779#define __SUN__ 1
1780_ACEOF
1781
1782 cat >>confdefs.h <<\_ACEOF
1783#define __SOLARIS__ 1
1784_ACEOF
1785
1786 cat >>confdefs.h <<\_ACEOF
1787#define __SVR4__ 1
1788_ACEOF
1789
1790 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1791 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1792 ;;
1793 *-*-sunos4* )
1794 USE_SUN=1
1795 USE_SUNOS=1
1796 USE_BSD=1
1797 cat >>confdefs.h <<\_ACEOF
1798#define __SUN__ 1
1799_ACEOF
1800
1801 cat >>confdefs.h <<\_ACEOF
1802#define __SUNOS__ 1
1803_ACEOF
1804
1805 cat >>confdefs.h <<\_ACEOF
1806#define __BSD__ 1
1807_ACEOF
1808
1809 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1810 ;;
1811 *-*-freebsd*)
1812 USE_BSD=1
1813 USE_FREEBSD=1
1814 cat >>confdefs.h <<\_ACEOF
1815#define __FREEBSD__ 1
1816_ACEOF
1817
1818 cat >>confdefs.h <<\_ACEOF
1819#define __BSD__ 1
1820_ACEOF
1821
1822 DEFAULT_DEFAULT_wxUSE_GTK=1
1823 ;;
1824 *-*-openbsd*)
1825 USE_BSD=1
1826 USE_OPENBSD=1
1827 cat >>confdefs.h <<\_ACEOF
1828#define __OPENBSD__ 1
1829_ACEOF
1830
1831 cat >>confdefs.h <<\_ACEOF
1832#define __BSD__ 1
1833_ACEOF
1834
1835 DEFAULT_DEFAULT_wxUSE_GTK=1
1836 ;;
1837 *-*-netbsd*)
1838 USE_BSD=1
1839 USE_NETBSD=1
1840 cat >>confdefs.h <<\_ACEOF
1841#define __NETBSD__ 1
1842_ACEOF
1843
1844 cat >>confdefs.h <<\_ACEOF
1845#define __BSD__ 1
1846_ACEOF
1847
1848 DEFAULT_DEFAULT_wxUSE_GTK=1
1849 ;;
1850 *-*-osf* )
1851 USE_ALPHA=1
1852 USE_OSF=1
1853 cat >>confdefs.h <<\_ACEOF
1854#define __ALPHA__ 1
1855_ACEOF
1856
1857 cat >>confdefs.h <<\_ACEOF
1858#define __OSF__ 1
1859_ACEOF
1860
1861 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1862 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1863 ;;
1864 *-*-dgux5* )
1865 USE_ALPHA=1
1866 USE_SVR4=1
1867 cat >>confdefs.h <<\_ACEOF
1868#define __ALPHA__ 1
1869_ACEOF
1870
1871 cat >>confdefs.h <<\_ACEOF
1872#define __SVR4__ 1
1873_ACEOF
1874
1875 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1876 ;;
1877 *-*-sysv5* )
1878 USE_SYSV=1
1879 USE_SVR4=1
1880 cat >>confdefs.h <<\_ACEOF
1881#define __SYSV__ 1
1882_ACEOF
1883
1884 cat >>confdefs.h <<\_ACEOF
1885#define __SVR4__ 1
1886_ACEOF
1887
1888 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1889 ;;
1890 *-*-aix* )
1891 USE_AIX=1
1892 USE_SYSV=1
1893 USE_SVR4=1
1894 SO_SUFFIX=a
1895 cat >>confdefs.h <<\_ACEOF
1896#define __AIX__ 1
1897_ACEOF
1898
1899 cat >>confdefs.h <<\_ACEOF
1900#define __SYSV__ 1
1901_ACEOF
1902
1903 cat >>confdefs.h <<\_ACEOF
1904#define __SVR4__ 1
1905_ACEOF
1906
1907 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1908 ;;
1909
1910 *-*-*UnixWare*)
1911 USE_SYSV=1
1912 USE_SVR4=1
1913 USE_UNIXWARE=1
1914 cat >>confdefs.h <<\_ACEOF
1915#define __UNIXWARE__ 1
1916_ACEOF
1917
1918 ;;
1919
1920 *-*-cygwin* | *-*-mingw32* )
1921 SO_SUFFIX=dll
1922 PROGRAM_EXT=".exe"
1923 RESCOMP=windres
1924 DEFAULT_DEFAULT_wxUSE_MSW=1
1925 ;;
1926
1927 *-pc-msdosdjgpp )
1928 USE_UNIX=0
1929 USE_DOS=1
1930 cat >>confdefs.h <<\_ACEOF
1931#define __DOS__ 1
1932_ACEOF
1933
1934 PROGRAM_EXT=".exe"
1935 DEFAULT_DEFAULT_wxUSE_MGL=1
1936 LIBS="$LIBS -lstdc++"
1937 ;;
1938
1939 *-pc-os2_emx | *-pc-os2-emx )
1940 cat >>confdefs.h <<\_ACEOF
1941#define __EMX__ 1
1942_ACEOF
1943
1944 USE_OS2=1
1945 cat >>confdefs.h <<\_ACEOF
1946#define __OS2__ 1
1947_ACEOF
1948
1949 PROGRAM_EXT=".exe"
1950 DEFAULT_DEFAULT_wxUSE_PM=1
1951 CXX=gcc
1952 LDFLAGS="$LDFLAGS -Zcrtdll"
1953 ac_executable_extensions=".exe"
1954 export ac_executable_extensions
1955 ac_save_IFS="$IFS"
1956 IFS='\\'
1957 ac_TEMP_PATH=
1958 for ac_dir in $PATH; do
1959 IFS=$ac_save_IFS
1960 if test -z "$ac_TEMP_PATH"; then
1961 ac_TEMP_PATH="$ac_dir"
1962 else
1963 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1964 fi
1965 done
1966 export PATH="$ac_TEMP_PATH"
1967 unset ac_TEMP_PATH
1968 ;;
1969
1970 powerpc-*-darwin* )
1971 USE_BSD=1
1972 USE_DARWIN=1
1973 SO_SUFFIX=dylib
1974 cat >>confdefs.h <<\_ACEOF
1975#define __BSD__ 1
1976_ACEOF
1977
1978 cat >>confdefs.h <<\_ACEOF
1979#define __DARWIN__ 1
1980_ACEOF
1981
1982 cat >>confdefs.h <<\_ACEOF
1983#define __POWERPC__ 1
1984_ACEOF
1985
1986 cat >>confdefs.h <<\_ACEOF
1987#define TARGET_CARBON 1
1988_ACEOF
1989
1990 DEFAULT_DEFAULT_wxUSE_MAC=1
1991 ;;
1e9e8aba
DE
1992 powerpc-apple-macos* )
1993 USE_UNIX=0
1994 ac_cv_c_bigendian=yes
1995 SO_SUFFIX=shlib
1996 DEFAULT_DEFAULT_wxUSE_MAC=1
1997 ;;
a848cd7e
SC
1998
1999 *-*-beos* )
2000 USE_BEOS=1
2001 cat >>confdefs.h <<\_ACEOF
2002#define __BEOS__ 1
2003_ACEOF
2004
2005 ;;
2006
2007 *)
2008 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2009echo "$as_me: error: unknown system type ${host}." >&2;}
2010 { (exit 1); exit 1; }; }
2011esac
2012
2013
2014
2015
2016 wx_arg_cache_file="configarg.cache"
2017 echo "loading argument cache $wx_arg_cache_file"
2018 rm -f ${wx_arg_cache_file}.tmp
2019 touch ${wx_arg_cache_file}.tmp
2020 touch ${wx_arg_cache_file}
2021
2022
2023DEBUG_CONFIGURE=0
2024if test $DEBUG_CONFIGURE = 1; then
2025 DEFAULT_wxUSE_UNIVERSAL=no
2026 DEFAULT_wxUSE_STL=no
2027
2028 DEFAULT_wxUSE_NANOX=no
2029
2030 DEFAULT_wxUSE_THREADS=yes
2031
2032 DEFAULT_wxUSE_SHARED=yes
2033 DEFAULT_wxUSE_OPTIMISE=no
2034 DEFAULT_wxUSE_PROFILE=no
2035 DEFAULT_wxUSE_NO_DEPS=no
2036 DEFAULT_wxUSE_NO_RTTI=no
2037 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2038 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2039 DEFAULT_wxUSE_PERMISSIVE=no
2040 DEFAULT_wxUSE_DEBUG_FLAG=yes
2041 DEFAULT_wxUSE_DEBUG_INFO=yes
2042 DEFAULT_wxUSE_DEBUG_GDB=yes
2043 DEFAULT_wxUSE_MEM_TRACING=no
2044 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2045 DEFAULT_wxUSE_DMALLOC=no
2046 DEFAULT_wxUSE_APPLE_IEEE=no
2047
2048 DEFAULT_wxUSE_EXCEPTIONS=no
2049 DEFAULT_wxUSE_LOG=yes
2050 DEFAULT_wxUSE_LOGWINDOW=no
2051 DEFAULT_wxUSE_LOGGUI=no
2052 DEFAULT_wxUSE_LOGDIALOG=no
2053
2054 DEFAULT_wxUSE_GUI=yes
2055 DEFAULT_wxUSE_CONTROLS=no
2056
2057 DEFAULT_wxUSE_REGEX=no
2058 DEFAULT_wxUSE_XML=no
2059 DEFAULT_wxUSE_EXPAT=no
2060 DEFAULT_wxUSE_ZLIB=no
2061 DEFAULT_wxUSE_LIBPNG=no
2062 DEFAULT_wxUSE_LIBJPEG=no
2063 DEFAULT_wxUSE_LIBTIFF=no
2064 DEFAULT_wxUSE_LIBXPM=no
2065 DEFAULT_wxUSE_LIBMSPACK=no
2066 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2067 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2068 DEFAULT_wxUSE_ODBC=no
2069 DEFAULT_wxUSE_OPENGL=no
2070
2071 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
2072 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2073 DEFAULT_wxUSE_STD_IOSTREAM=no
2074 DEFAULT_wxUSE_CMDLINE_PARSER=no
2075 DEFAULT_wxUSE_DATETIME=no
2076 DEFAULT_wxUSE_TIMER=no
2077 DEFAULT_wxUSE_STOPWATCH=no
2078 DEFAULT_wxUSE_FILE=no
2079 DEFAULT_wxUSE_FFILE=no
2080 DEFAULT_wxUSE_TEXTBUFFER=no
2081 DEFAULT_wxUSE_TEXTFILE=no
2082 DEFAULT_wxUSE_SOUND=no
3b57de8b
RL
2083 DEFAULT_wxUSE_MEDIACTRL=no
2084 DEFAULT_wxUSE_DIRECTSHOW=no
a848cd7e
SC
2085 DEFAULT_wxUSE_INTL=no
2086 DEFAULT_wxUSE_CONFIG=no
2087 DEFAULT_wxUSE_FONTMAP=no
2088 DEFAULT_wxUSE_STREAMS=no
2089 DEFAULT_wxUSE_SOCKETS=no
2090 DEFAULT_wxUSE_OLE=no
2091 DEFAULT_wxUSE_DATAOBJ=no
2092 DEFAULT_wxUSE_DIALUP_MANAGER=no
2093 DEFAULT_wxUSE_JOYSTICK=no
2094 DEFAULT_wxUSE_DYNLIB_CLASS=no
2095 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2096 DEFAULT_wxUSE_LONGLONG=no
2097 DEFAULT_wxUSE_GEOMETRY=no
2098
2099 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2100 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2101 DEFAULT_wxUSE_POSTSCRIPT=no
2102
2103 DEFAULT_wxUSE_CLIPBOARD=no
2104 DEFAULT_wxUSE_TOOLTIPS=no
2105 DEFAULT_wxUSE_DRAG_AND_DROP=no
2106 DEFAULT_wxUSE_DRAGIMAGE=no
2107 DEFAULT_wxUSE_SPLINES=no
2108
8a7b1113 2109 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2110 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2111 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2112 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2113
2114 DEFAULT_wxUSE_RESOURCES=no
2115 DEFAULT_wxUSE_CONSTRAINTS=no
2116 DEFAULT_wxUSE_IPC=no
2117 DEFAULT_wxUSE_HELP=no
2118 DEFAULT_wxUSE_MS_HTML_HELP=no
2119 DEFAULT_wxUSE_WXHTML_HELP=no
2120 DEFAULT_wxUSE_TREELAYOUT=no
2121 DEFAULT_wxUSE_METAFILE=no
2122 DEFAULT_wxUSE_MIMETYPE=no
2123 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2124 DEFAULT_wxUSE_PROTOCOL=no
2125 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2126 DEFAULT_wxUSE_PROTOCOL_FTP=no
2127 DEFAULT_wxUSE_PROTOCOL_FILE=no
2128 DEFAULT_wxUSE_URL=no
2129
2130 DEFAULT_wxUSE_COMMONDLGS=no
2131 DEFAULT_wxUSE_CHOICEDLG=no
2132 DEFAULT_wxUSE_COLOURDLG=no
2133 DEFAULT_wxUSE_DIRDLG=no
2134 DEFAULT_wxUSE_FILEDLG=no
2135 DEFAULT_wxUSE_FINDREPLDLG=no
2136 DEFAULT_wxUSE_FONTDLG=no
2137 DEFAULT_wxUSE_MSGDLG=no
2138 DEFAULT_wxUSE_NUMBERDLG=no
2139 DEFAULT_wxUSE_TEXTDLG=no
2140 DEFAULT_wxUSE_SPLASH=no
2141 DEFAULT_wxUSE_STARTUP_TIPS=no
2142 DEFAULT_wxUSE_PROGRESSDLG=no
2143 DEFAULT_wxUSE_WIZARDDLG=no
2144
2145 DEFAULT_wxUSE_MENUS=no
2146 DEFAULT_wxUSE_MINIFRAME=no
2147 DEFAULT_wxUSE_HTML=no
9a8f0513 2148 DEFAULT_wxUSE_XRC=no
646b6ec1 2149 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2150 DEFAULT_wxUSE_FILESYSTEM=no
2151 DEFAULT_wxUSE_FS_INET=no
2152 DEFAULT_wxUSE_FS_ZIP=no
2153 DEFAULT_wxUSE_BUSYINFO=no
2154 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2155 DEFAULT_wxUSE_VALIDATORS=no
2156
2157 DEFAULT_wxUSE_ACCEL=no
2158 DEFAULT_wxUSE_BUTTON=no
2159 DEFAULT_wxUSE_BMPBUTTON=no
2160 DEFAULT_wxUSE_CALCTRL=no
2161 DEFAULT_wxUSE_CARET=no
2162 DEFAULT_wxUSE_CHECKBOX=no
2163 DEFAULT_wxUSE_CHECKLST=no
2164 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2165 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e
SC
2166 DEFAULT_wxUSE_COMBOBOX=no
2167 DEFAULT_wxUSE_DISPLAY=no
2168 DEFAULT_wxUSE_GAUGE=no
2169 DEFAULT_wxUSE_GRID=no
2170 DEFAULT_wxUSE_IMAGLIST=no
2171 DEFAULT_wxUSE_LISTBOOK=no
2172 DEFAULT_wxUSE_LISTBOX=no
2173 DEFAULT_wxUSE_LISTCTRL=no
2174 DEFAULT_wxUSE_NOTEBOOK=no
2175 DEFAULT_wxUSE_RADIOBOX=no
2176 DEFAULT_wxUSE_RADIOBTN=no
2177 DEFAULT_wxUSE_SASH=no
2178 DEFAULT_wxUSE_SCROLLBAR=no
2179 DEFAULT_wxUSE_SLIDER=no
2180 DEFAULT_wxUSE_SPINBTN=no
2181 DEFAULT_wxUSE_SPINCTRL=no
2182 DEFAULT_wxUSE_SPLITTER=no
2183 DEFAULT_wxUSE_STATBMP=no
2184 DEFAULT_wxUSE_STATBOX=no
2185 DEFAULT_wxUSE_STATLINE=no
2186 DEFAULT_wxUSE_STATTEXT=no
2187 DEFAULT_wxUSE_STATUSBAR=yes
2188 DEFAULT_wxUSE_TABDIALOG=no
2189 DEFAULT_wxUSE_TEXTCTRL=no
2190 DEFAULT_wxUSE_TOGGLEBTN=no
2191 DEFAULT_wxUSE_TOOLBAR=no
2192 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2193 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2194 DEFAULT_wxUSE_TREECTRL=no
2195 DEFAULT_wxUSE_POPUPWIN=no
2196 DEFAULT_wxUSE_TIPWINDOW=no
2197
2198 DEFAULT_wxUSE_UNICODE=no
2199 DEFAULT_wxUSE_UNICODE_MSLU=no
2200 DEFAULT_wxUSE_WCSRTOMBS=no
2201
2202 DEFAULT_wxUSE_PALETTE=no
2203 DEFAULT_wxUSE_IMAGE=no
2204 DEFAULT_wxUSE_GIF=no
2205 DEFAULT_wxUSE_PCX=no
2206 DEFAULT_wxUSE_PNM=no
2207 DEFAULT_wxUSE_IFF=no
2208 DEFAULT_wxUSE_XPM=no
2209 DEFAULT_wxUSE_ICO_CUR=no
2210 DEFAULT_wxUSE_ACCESSIBILITY=no
2211
2212 DEFAULT_wxUSE_MONOLITHIC=no
2213 DEFAULT_wxUSE_PLUGINS=no
2214 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2215else
2216 DEFAULT_wxUSE_UNIVERSAL=no
2217 DEFAULT_wxUSE_STL=no
2218
2219 DEFAULT_wxUSE_NANOX=no
2220
2221 DEFAULT_wxUSE_THREADS=yes
2222
2223 DEFAULT_wxUSE_SHARED=yes
2224 DEFAULT_wxUSE_OPTIMISE=yes
2225 DEFAULT_wxUSE_PROFILE=no
2226 DEFAULT_wxUSE_NO_DEPS=no
2227 DEFAULT_wxUSE_NO_RTTI=no
2228 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2229 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2230 DEFAULT_wxUSE_PERMISSIVE=no
2231 DEFAULT_wxUSE_DEBUG_FLAG=no
2232 DEFAULT_wxUSE_DEBUG_INFO=no
2233 DEFAULT_wxUSE_DEBUG_GDB=no
2234 DEFAULT_wxUSE_MEM_TRACING=no
2235 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2236 DEFAULT_wxUSE_DMALLOC=no
2237 DEFAULT_wxUSE_APPLE_IEEE=yes
2238
2239 DEFAULT_wxUSE_EXCEPTIONS=yes
2240 DEFAULT_wxUSE_LOG=yes
2241 DEFAULT_wxUSE_LOGWINDOW=yes
2242 DEFAULT_wxUSE_LOGGUI=yes
2243 DEFAULT_wxUSE_LOGDIALOG=yes
2244
2245 DEFAULT_wxUSE_GUI=yes
2246
2247 DEFAULT_wxUSE_REGEX=yes
2248 DEFAULT_wxUSE_XML=yes
2249 DEFAULT_wxUSE_EXPAT=yes
2250 DEFAULT_wxUSE_ZLIB=yes
2251 DEFAULT_wxUSE_LIBPNG=yes
2252 DEFAULT_wxUSE_LIBJPEG=yes
2253 DEFAULT_wxUSE_LIBTIFF=yes
2254 DEFAULT_wxUSE_LIBXPM=yes
2255 DEFAULT_wxUSE_LIBMSPACK=yes
2256 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2257 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2258 DEFAULT_wxUSE_ODBC=no
2259 DEFAULT_wxUSE_OPENGL=no
2260
2261 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
2262 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2263 DEFAULT_wxUSE_STD_IOSTREAM=no
2264 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2265 DEFAULT_wxUSE_DATETIME=yes
2266 DEFAULT_wxUSE_TIMER=yes
2267 DEFAULT_wxUSE_STOPWATCH=yes
2268 DEFAULT_wxUSE_FILE=yes
2269 DEFAULT_wxUSE_FFILE=yes
2270 DEFAULT_wxUSE_TEXTBUFFER=yes
2271 DEFAULT_wxUSE_TEXTFILE=yes
2272 DEFAULT_wxUSE_SOUND=yes
3b57de8b
RL
2273 DEFAULT_wxUSE_MEDIACTRL=no
2274 DEFAULT_wxUSE_DIRECTSHOW=no
a848cd7e
SC
2275 DEFAULT_wxUSE_INTL=yes
2276 DEFAULT_wxUSE_CONFIG=yes
2277 DEFAULT_wxUSE_FONTMAP=yes
2278 DEFAULT_wxUSE_STREAMS=yes
2279 DEFAULT_wxUSE_SOCKETS=yes
2280 DEFAULT_wxUSE_OLE=yes
2281 DEFAULT_wxUSE_DATAOBJ=yes
2282 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2283 DEFAULT_wxUSE_JOYSTICK=yes
2284 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2285 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2286 DEFAULT_wxUSE_LONGLONG=yes
2287 DEFAULT_wxUSE_GEOMETRY=yes
2288
2289 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2290 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2291 DEFAULT_wxUSE_POSTSCRIPT=yes
2292
2293 DEFAULT_wxUSE_CLIPBOARD=yes
2294 DEFAULT_wxUSE_TOOLTIPS=yes
2295 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2296 DEFAULT_wxUSE_DRAGIMAGE=yes
2297 DEFAULT_wxUSE_SPLINES=yes
2298
8a7b1113 2299 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2300 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2301 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2302 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2303
2304 DEFAULT_wxUSE_RESOURCES=no
2305 DEFAULT_wxUSE_CONSTRAINTS=yes
2306 DEFAULT_wxUSE_IPC=yes
2307 DEFAULT_wxUSE_HELP=yes
2308 DEFAULT_wxUSE_MS_HTML_HELP=yes
2309 DEFAULT_wxUSE_WXHTML_HELP=yes
2310 DEFAULT_wxUSE_TREELAYOUT=yes
2311 DEFAULT_wxUSE_METAFILE=yes
2312 DEFAULT_wxUSE_MIMETYPE=yes
2313 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2314 DEFAULT_wxUSE_PROTOCOL=yes
2315 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2316 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2317 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2318 DEFAULT_wxUSE_URL=yes
2319
2320 DEFAULT_wxUSE_COMMONDLGS=yes
2321 DEFAULT_wxUSE_CHOICEDLG=yes
2322 DEFAULT_wxUSE_COLOURDLG=yes
2323 DEFAULT_wxUSE_DIRDLG=yes
2324 DEFAULT_wxUSE_FILEDLG=yes
2325 DEFAULT_wxUSE_FINDREPLDLG=yes
2326 DEFAULT_wxUSE_FONTDLG=yes
2327 DEFAULT_wxUSE_MSGDLG=yes
2328 DEFAULT_wxUSE_NUMBERDLG=yes
2329 DEFAULT_wxUSE_TEXTDLG=yes
2330 DEFAULT_wxUSE_SPLASH=yes
2331 DEFAULT_wxUSE_STARTUP_TIPS=yes
2332 DEFAULT_wxUSE_PROGRESSDLG=yes
2333 DEFAULT_wxUSE_WIZARDDLG=yes
2334
2335 DEFAULT_wxUSE_MENUS=yes
2336 DEFAULT_wxUSE_MINIFRAME=yes
2337 DEFAULT_wxUSE_HTML=yes
9a8f0513 2338 DEFAULT_wxUSE_XRC=yes
646b6ec1 2339 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2340 DEFAULT_wxUSE_FILESYSTEM=yes
2341 DEFAULT_wxUSE_FS_INET=yes
2342 DEFAULT_wxUSE_FS_ZIP=yes
2343 DEFAULT_wxUSE_BUSYINFO=yes
2344 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2345 DEFAULT_wxUSE_VALIDATORS=yes
2346
2347 DEFAULT_wxUSE_ACCEL=yes
2348 DEFAULT_wxUSE_BUTTON=yes
2349 DEFAULT_wxUSE_BMPBUTTON=yes
2350 DEFAULT_wxUSE_CALCTRL=yes
2351 DEFAULT_wxUSE_CARET=yes
2352 DEFAULT_wxUSE_CHECKBOX=yes
2353 DEFAULT_wxUSE_CHECKLST=yes
2354 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2355 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e
SC
2356 DEFAULT_wxUSE_COMBOBOX=yes
2357 DEFAULT_wxUSE_DISPLAY=yes
2358 DEFAULT_wxUSE_GAUGE=yes
2359 DEFAULT_wxUSE_GRID=yes
2360 DEFAULT_wxUSE_IMAGLIST=yes
2361 DEFAULT_wxUSE_LISTBOOK=yes
2362 DEFAULT_wxUSE_LISTBOX=yes
2363 DEFAULT_wxUSE_LISTCTRL=yes
2364 DEFAULT_wxUSE_NOTEBOOK=yes
2365 DEFAULT_wxUSE_RADIOBOX=yes
2366 DEFAULT_wxUSE_RADIOBTN=yes
2367 DEFAULT_wxUSE_SASH=yes
2368 DEFAULT_wxUSE_SCROLLBAR=yes
2369 DEFAULT_wxUSE_SLIDER=yes
2370 DEFAULT_wxUSE_SPINBTN=yes
2371 DEFAULT_wxUSE_SPINCTRL=yes
2372 DEFAULT_wxUSE_SPLITTER=yes
2373 DEFAULT_wxUSE_STATBMP=yes
2374 DEFAULT_wxUSE_STATBOX=yes
2375 DEFAULT_wxUSE_STATLINE=yes
2376 DEFAULT_wxUSE_STATTEXT=yes
2377 DEFAULT_wxUSE_STATUSBAR=yes
2378 DEFAULT_wxUSE_TABDIALOG=no
2379 DEFAULT_wxUSE_TEXTCTRL=yes
2380 DEFAULT_wxUSE_TOGGLEBTN=yes
2381 DEFAULT_wxUSE_TOOLBAR=yes
2382 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2383 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2384 DEFAULT_wxUSE_TREECTRL=yes
2385 DEFAULT_wxUSE_POPUPWIN=yes
2386 DEFAULT_wxUSE_TIPWINDOW=yes
2387
2388 DEFAULT_wxUSE_UNICODE=no
2389 DEFAULT_wxUSE_UNICODE_MSLU=yes
2390 DEFAULT_wxUSE_WCSRTOMBS=no
2391
2392 DEFAULT_wxUSE_PALETTE=yes
2393 DEFAULT_wxUSE_IMAGE=yes
2394 DEFAULT_wxUSE_GIF=yes
2395 DEFAULT_wxUSE_PCX=yes
2396 DEFAULT_wxUSE_IFF=no
2397 DEFAULT_wxUSE_PNM=yes
2398 DEFAULT_wxUSE_XPM=yes
2399 DEFAULT_wxUSE_ICO_CUR=yes
2400 DEFAULT_wxUSE_ACCESSIBILITY=no
2401
2402 DEFAULT_wxUSE_MONOLITHIC=no
2403 DEFAULT_wxUSE_PLUGINS=no
2404 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e
VS
2405
2406 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2407fi
2408
2409
2410
2411for toolkit in `echo $ALL_TOOLKITS`; do
2412 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2413 if test "x$LINE" != "x" ; then
2414 has_toolkit_in_cache=1
2415 eval "DEFAULT_$LINE"
2416 eval "CACHE_$toolkit=1"
2417 fi
2418done
2419
2420
2421
2422 enablestring=
2423 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2424echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2425 no_cache=0
2426 # Check whether --enable-gui or --disable-gui was given.
2427if test "${enable_gui+set}" = set; then
2428 enableval="$enable_gui"
2429
2430 if test "$enableval" = yes; then
2431 ac_cv_use_gui='wxUSE_GUI=yes'
2432 else
2433 ac_cv_use_gui='wxUSE_GUI=no'
2434 fi
2435
2436else
2437
2438 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2439 if test "x$LINE" != x ; then
2440 eval "DEFAULT_$LINE"
2441 else
2442 no_cache=1
2443 fi
2444
2445 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2446
2447fi;
2448
2449 eval "$ac_cv_use_gui"
2450 if test "$no_cache" != 1; then
2451 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2452 fi
2453
2454 if test "$wxUSE_GUI" = yes; then
2455 echo "$as_me:$LINENO: result: yes" >&5
2456echo "${ECHO_T}yes" >&6
2457 else
2458 echo "$as_me:$LINENO: result: no" >&5
2459echo "${ECHO_T}no" >&6
2460 fi
2461
2462
2463 enablestring=
2464 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2465echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2466 no_cache=0
2467 # Check whether --enable-monolithic or --disable-monolithic was given.
2468if test "${enable_monolithic+set}" = set; then
2469 enableval="$enable_monolithic"
2470
2471 if test "$enableval" = yes; then
2472 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2473 else
2474 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2475 fi
2476
2477else
2478
2479 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2480 if test "x$LINE" != x ; then
2481 eval "DEFAULT_$LINE"
2482 else
2483 no_cache=1
2484 fi
2485
2486 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2487
2488fi;
2489
2490 eval "$ac_cv_use_monolithic"
2491 if test "$no_cache" != 1; then
2492 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2493 fi
2494
2495 if test "$wxUSE_MONOLITHIC" = yes; then
2496 echo "$as_me:$LINENO: result: yes" >&5
2497echo "${ECHO_T}yes" >&6
2498 else
2499 echo "$as_me:$LINENO: result: no" >&5
2500echo "${ECHO_T}no" >&6
2501 fi
2502
2503
2504 enablestring=
2505 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2506echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2507 no_cache=0
2508 # Check whether --enable-plugins or --disable-plugins was given.
2509if test "${enable_plugins+set}" = set; then
2510 enableval="$enable_plugins"
2511
2512 if test "$enableval" = yes; then
2513 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2514 else
2515 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2516 fi
2517
2518else
2519
2520 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2521 if test "x$LINE" != x ; then
2522 eval "DEFAULT_$LINE"
2523 else
2524 no_cache=1
2525 fi
2526
2527 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2528
2529fi;
2530
2531 eval "$ac_cv_use_plugins"
2532 if test "$no_cache" != 1; then
2533 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2534 fi
2535
2536 if test "$wxUSE_PLUGINS" = yes; then
2537 echo "$as_me:$LINENO: result: yes" >&5
2538echo "${ECHO_T}yes" >&6
2539 else
2540 echo "$as_me:$LINENO: result: no" >&5
2541echo "${ECHO_T}no" >&6
2542 fi
2543
2544
2545if test "$wxUSE_GUI" = "yes"; then
2546
2547
2548 enablestring=
2549 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2550echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2551 no_cache=0
2552 # Check whether --enable-universal or --disable-universal was given.
2553if test "${enable_universal+set}" = set; then
2554 enableval="$enable_universal"
2555
2556 if test "$enableval" = yes; then
2557 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2558 else
2559 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2560 fi
2561
2562else
2563
2564 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2565 if test "x$LINE" != x ; then
2566 eval "DEFAULT_$LINE"
2567 else
2568 no_cache=1
2569 fi
2570
2571 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2572
2573fi;
2574
2575 eval "$ac_cv_use_universal"
2576 if test "$no_cache" != 1; then
2577 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2578 fi
2579
2580 if test "$wxUSE_UNIVERSAL" = yes; then
2581 echo "$as_me:$LINENO: result: yes" >&5
2582echo "${ECHO_T}yes" >&6
2583 else
2584 echo "$as_me:$LINENO: result: no" >&5
2585echo "${ECHO_T}no" >&6
2586 fi
2587
2588
2589# Check whether --with-gtk or --without-gtk was given.
2590if test "${with_gtk+set}" = set; then
2591 withval="$with_gtk"
2592 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2593fi;
2594
2595# Check whether --with-motif or --without-motif was given.
2596if test "${with_motif+set}" = set; then
2597 withval="$with_motif"
2598 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2599fi;
2600
2601# Check whether --with-mac or --without-mac was given.
2602if test "${with_mac+set}" = set; then
2603 withval="$with_mac"
c228d3a4 2604 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2605fi;
2606
2607# Check whether --with-cocoa or --without-cocoa was given.
2608if test "${with_cocoa+set}" = set; then
2609 withval="$with_cocoa"
c228d3a4 2610 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2611fi;
2612
2613# Check whether --with-wine or --without-wine was given.
2614if test "${with_wine+set}" = set; then
2615 withval="$with_wine"
2616 wxUSE_WINE="$withval" CACHE_WINE=1
2617fi;
2618
2619# Check whether --with-msw or --without-msw was given.
2620if test "${with_msw+set}" = set; then
2621 withval="$with_msw"
2622 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2623fi;
2624
2625# Check whether --with-pm or --without-pm was given.
2626if test "${with_pm+set}" = set; then
2627 withval="$with_pm"
2628 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2629fi;
2630
2631# Check whether --with-mgl or --without-mgl was given.
2632if test "${with_mgl+set}" = set; then
2633 withval="$with_mgl"
2634 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2635fi;
2636
2637# Check whether --with-microwin or --without-microwin was given.
2638if test "${with_microwin+set}" = set; then
2639 withval="$with_microwin"
2640 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2641fi;
2642
2643# Check whether --with-x11 or --without-x11 was given.
2644if test "${with_x11+set}" = set; then
2645 withval="$with_x11"
2646 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2647fi;
2648
2649 enablestring=
2650 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2651echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2652 no_cache=0
2653 # Check whether --enable-nanox or --disable-nanox was given.
2654if test "${enable_nanox+set}" = set; then
2655 enableval="$enable_nanox"
2656
2657 if test "$enableval" = yes; then
2658 ac_cv_use_nanox='wxUSE_NANOX=yes'
2659 else
2660 ac_cv_use_nanox='wxUSE_NANOX=no'
2661 fi
2662
2663else
2664
2665 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2666 if test "x$LINE" != x ; then
2667 eval "DEFAULT_$LINE"
2668 else
2669 no_cache=1
2670 fi
2671
2672 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2673
2674fi;
2675
2676 eval "$ac_cv_use_nanox"
2677 if test "$no_cache" != 1; then
2678 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2679 fi
2680
2681 if test "$wxUSE_NANOX" = yes; then
2682 echo "$as_me:$LINENO: result: yes" >&5
2683echo "${ECHO_T}yes" >&6
2684 else
2685 echo "$as_me:$LINENO: result: no" >&5
2686echo "${ECHO_T}no" >&6
2687 fi
2688
2689
2690
2691 enablestring=
2692 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2693echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
2694 no_cache=0
2695 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2696if test "${enable_gtk2+set}" = set; then
2697 enableval="$enable_gtk2"
2698
2699 if test "$enableval" = yes; then
2700 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2701 else
2702 ac_cv_use_gtk2='wxUSE_GTK2=no'
2703 fi
2704
2705else
2706
2707 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2708 if test "x$LINE" != x ; then
2709 eval "DEFAULT_$LINE"
2710 else
2711 no_cache=1
2712 fi
2713
2714 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2715
2716fi;
2717
2718 eval "$ac_cv_use_gtk2"
2719 if test "$no_cache" != 1; then
2720 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2721 fi
2722
2723 if test "$wxUSE_GTK2" = yes; then
2724 echo "$as_me:$LINENO: result: yes" >&5
2725echo "${ECHO_T}yes" >&6
2726 else
2727 echo "$as_me:$LINENO: result: no" >&5
2728echo "${ECHO_T}no" >&6
2729 fi
2730
2731
2732 enablestring=
2733 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2734echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2735 no_cache=0
2736 # Check whether --enable-gpe or --disable-gpe was given.
2737if test "${enable_gpe+set}" = set; then
2738 enableval="$enable_gpe"
2739
2740 if test "$enableval" = yes; then
2741 ac_cv_use_gpe='wxUSE_GPE=yes'
2742 else
2743 ac_cv_use_gpe='wxUSE_GPE=no'
2744 fi
2745
2746else
2747
2748 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2749 if test "x$LINE" != x ; then
2750 eval "DEFAULT_$LINE"
2751 else
2752 no_cache=1
2753 fi
2754
2755 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2756
2757fi;
2758
2759 eval "$ac_cv_use_gpe"
2760 if test "$no_cache" != 1; then
2761 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2762 fi
2763
2764 if test "$wxUSE_GPE" = yes; then
2765 echo "$as_me:$LINENO: result: yes" >&5
2766echo "${ECHO_T}yes" >&6
2767 else
2768 echo "$as_me:$LINENO: result: no" >&5
2769echo "${ECHO_T}no" >&6
2770 fi
2771
2772
2773
2774 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2775echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2776 no_cache=0
2777
2778# Check whether --with-libpng or --without-libpng was given.
2779if test "${with_libpng+set}" = set; then
2780 withval="$with_libpng"
2781
2782 if test "$withval" = yes; then
2783 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2784 elif test "$withval" = no; then
2785 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2786 elif test "$withval" = sys; then
2787 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2788 elif test "$withval" = builtin; then
2789 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2790 else
2791 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2792echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2793 { (exit 1); exit 1; }; }
2794 fi
2795
2796else
2797
2798 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2799 if test "x$LINE" != x ; then
2800 eval "DEFAULT_$LINE"
2801 else
2802 no_cache=1
2803 fi
2804
2805 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2806
2807fi;
2808
2809 eval "$ac_cv_use_libpng"
2810 if test "$no_cache" != 1; then
2811 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2812 fi
2813
2814 if test "$wxUSE_LIBPNG" = yes; then
2815 echo "$as_me:$LINENO: result: yes" >&5
2816echo "${ECHO_T}yes" >&6
2817 elif test "$wxUSE_LIBPNG" = no; then
2818 echo "$as_me:$LINENO: result: no" >&5
2819echo "${ECHO_T}no" >&6
2820 elif test "$wxUSE_LIBPNG" = sys; then
2821 echo "$as_me:$LINENO: result: system version" >&5
2822echo "${ECHO_T}system version" >&6
2823 elif test "$wxUSE_LIBPNG" = builtin; then
2824 echo "$as_me:$LINENO: result: builtin version" >&5
2825echo "${ECHO_T}builtin version" >&6
2826 else
2827 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2828echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2829 { (exit 1); exit 1; }; }
2830 fi
2831
2832
2833 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2834echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2835 no_cache=0
2836
2837# Check whether --with-libjpeg or --without-libjpeg was given.
2838if test "${with_libjpeg+set}" = set; then
2839 withval="$with_libjpeg"
2840
2841 if test "$withval" = yes; then
2842 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2843 elif test "$withval" = no; then
2844 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2845 elif test "$withval" = sys; then
2846 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2847 elif test "$withval" = builtin; then
2848 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2849 else
2850 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2851echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2852 { (exit 1); exit 1; }; }
2853 fi
2854
2855else
2856
2857 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2858 if test "x$LINE" != x ; then
2859 eval "DEFAULT_$LINE"
2860 else
2861 no_cache=1
2862 fi
2863
2864 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2865
2866fi;
2867
2868 eval "$ac_cv_use_libjpeg"
2869 if test "$no_cache" != 1; then
2870 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2871 fi
2872
2873 if test "$wxUSE_LIBJPEG" = yes; then
2874 echo "$as_me:$LINENO: result: yes" >&5
2875echo "${ECHO_T}yes" >&6
2876 elif test "$wxUSE_LIBJPEG" = no; then
2877 echo "$as_me:$LINENO: result: no" >&5
2878echo "${ECHO_T}no" >&6
2879 elif test "$wxUSE_LIBJPEG" = sys; then
2880 echo "$as_me:$LINENO: result: system version" >&5
2881echo "${ECHO_T}system version" >&6
2882 elif test "$wxUSE_LIBJPEG" = builtin; then
2883 echo "$as_me:$LINENO: result: builtin version" >&5
2884echo "${ECHO_T}builtin version" >&6
2885 else
2886 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2887echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2888 { (exit 1); exit 1; }; }
2889 fi
2890
2891
2892 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2893echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2894 no_cache=0
2895
2896# Check whether --with-libtiff or --without-libtiff was given.
2897if test "${with_libtiff+set}" = set; then
2898 withval="$with_libtiff"
2899
2900 if test "$withval" = yes; then
2901 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2902 elif test "$withval" = no; then
2903 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2904 elif test "$withval" = sys; then
2905 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2906 elif test "$withval" = builtin; then
2907 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2908 else
2909 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2910echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2911 { (exit 1); exit 1; }; }
2912 fi
2913
2914else
2915
2916 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2917 if test "x$LINE" != x ; then
2918 eval "DEFAULT_$LINE"
2919 else
2920 no_cache=1
2921 fi
2922
2923 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2924
2925fi;
2926
2927 eval "$ac_cv_use_libtiff"
2928 if test "$no_cache" != 1; then
2929 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2930 fi
2931
2932 if test "$wxUSE_LIBTIFF" = yes; then
2933 echo "$as_me:$LINENO: result: yes" >&5
2934echo "${ECHO_T}yes" >&6
2935 elif test "$wxUSE_LIBTIFF" = no; then
2936 echo "$as_me:$LINENO: result: no" >&5
2937echo "${ECHO_T}no" >&6
2938 elif test "$wxUSE_LIBTIFF" = sys; then
2939 echo "$as_me:$LINENO: result: system version" >&5
2940echo "${ECHO_T}system version" >&6
2941 elif test "$wxUSE_LIBTIFF" = builtin; then
2942 echo "$as_me:$LINENO: result: builtin version" >&5
2943echo "${ECHO_T}builtin version" >&6
2944 else
2945 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2946echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2947 { (exit 1); exit 1; }; }
2948 fi
2949
2950
2951 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2952echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2953 no_cache=0
2954
2955# Check whether --with-libxpm or --without-libxpm was given.
2956if test "${with_libxpm+set}" = set; then
2957 withval="$with_libxpm"
2958
2959 if test "$withval" = yes; then
2960 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2961 elif test "$withval" = no; then
2962 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2963 elif test "$withval" = sys; then
2964 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2965 elif test "$withval" = builtin; then
2966 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2967 else
2968 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2969echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2970 { (exit 1); exit 1; }; }
2971 fi
2972
2973else
2974
2975 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2976 if test "x$LINE" != x ; then
2977 eval "DEFAULT_$LINE"
2978 else
2979 no_cache=1
2980 fi
2981
2982 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2983
2984fi;
2985
2986 eval "$ac_cv_use_libxpm"
2987 if test "$no_cache" != 1; then
2988 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2989 fi
2990
2991 if test "$wxUSE_LIBXPM" = yes; then
2992 echo "$as_me:$LINENO: result: yes" >&5
2993echo "${ECHO_T}yes" >&6
2994 elif test "$wxUSE_LIBXPM" = no; then
2995 echo "$as_me:$LINENO: result: no" >&5
2996echo "${ECHO_T}no" >&6
2997 elif test "$wxUSE_LIBXPM" = sys; then
2998 echo "$as_me:$LINENO: result: system version" >&5
2999echo "${ECHO_T}system version" >&6
3000 elif test "$wxUSE_LIBXPM" = builtin; then
3001 echo "$as_me:$LINENO: result: builtin version" >&5
3002echo "${ECHO_T}builtin version" >&6
3003 else
3004 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3005echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3006 { (exit 1); exit 1; }; }
3007 fi
3008
3009
3010 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
3011echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
3012 no_cache=0
3013
3014# Check whether --with-libmspack or --without-libmspack was given.
3015if test "${with_libmspack+set}" = set; then
3016 withval="$with_libmspack"
3017
3018 if test "$withval" = yes; then
3019 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3020 else
3021 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3022 fi
3023
3024else
3025
3026 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3027 if test "x$LINE" != x ; then
3028 eval "DEFAULT_$LINE"
3029 else
3030 no_cache=1
3031 fi
3032
3033 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3034
3035fi;
3036
3037 eval "$ac_cv_use_libmspack"
3038 if test "$no_cache" != 1; then
3039 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3040 fi
3041
3042 if test "$wxUSE_LIBMSPACK" = yes; then
3043 echo "$as_me:$LINENO: result: yes" >&5
3044echo "${ECHO_T}yes" >&6
3045 else
3046 echo "$as_me:$LINENO: result: no" >&5
3047echo "${ECHO_T}no" >&6
3048 fi
3049
3050
3051 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3052echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3053 no_cache=0
3054
3055# Check whether --with-sdl or --without-sdl was given.
3056if test "${with_sdl+set}" = set; then
3057 withval="$with_sdl"
3058
3059 if test "$withval" = yes; then
3060 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3061 else
3062 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3063 fi
3064
3065else
3066
3067 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3068 if test "x$LINE" != x ; then
3069 eval "DEFAULT_$LINE"
3070 else
3071 no_cache=1
3072 fi
3073
3074 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3075
3076fi;
3077
3078 eval "$ac_cv_use_sdl"
3079 if test "$no_cache" != 1; then
3080 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3081 fi
3082
3083 if test "$wxUSE_LIBSDL" = yes; then
3084 echo "$as_me:$LINENO: result: yes" >&5
3085echo "${ECHO_T}yes" >&6
3086 else
3087 echo "$as_me:$LINENO: result: no" >&5
3088echo "${ECHO_T}no" >&6
3089 fi
3090
3091
d1c38808
VZ
3092 echo "$as_me:$LINENO: checking for --with-gnomeprint" >&5
3093echo $ECHO_N "checking for --with-gnomeprint... $ECHO_C" >&6
3094 no_cache=0
3095
3096# Check whether --with-gnomeprint or --without-gnomeprint was given.
3097if test "${with_gnomeprint+set}" = set; then
3098 withval="$with_gnomeprint"
3099
3100 if test "$withval" = yes; then
3101 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3102 else
3103 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3104 fi
3105
3106else
3107
3108 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3109 if test "x$LINE" != x ; then
3110 eval "DEFAULT_$LINE"
3111 else
3112 no_cache=1
3113 fi
3114
3115 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3116
3117fi;
3118
3119 eval "$ac_cv_use_gnomeprint"
3120 if test "$no_cache" != 1; then
3121 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3122 fi
3123
3124 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3125 echo "$as_me:$LINENO: result: yes" >&5
3126echo "${ECHO_T}yes" >&6
3127 else
3128 echo "$as_me:$LINENO: result: no" >&5
3129echo "${ECHO_T}no" >&6
3130 fi
3131
3132
a848cd7e
SC
3133 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3134echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3135 no_cache=0
3136
3137# Check whether --with-opengl or --without-opengl was given.
3138if test "${with_opengl+set}" = set; then
3139 withval="$with_opengl"
3140
3141 if test "$withval" = yes; then
3142 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3143 else
3144 ac_cv_use_opengl='wxUSE_OPENGL=no'
3145 fi
3146
3147else
3148
3149 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3150 if test "x$LINE" != x ; then
3151 eval "DEFAULT_$LINE"
3152 else
3153 no_cache=1
3154 fi
3155
3156 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3157
3158fi;
3159
3160 eval "$ac_cv_use_opengl"
3161 if test "$no_cache" != 1; then
3162 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3163 fi
3164
3165 if test "$wxUSE_OPENGL" = yes; then
3166 echo "$as_me:$LINENO: result: yes" >&5
3167echo "${ECHO_T}yes" >&6
3168 else
3169 echo "$as_me:$LINENO: result: no" >&5
3170echo "${ECHO_T}no" >&6
3171 fi
3172
3173
3174fi
3175
3176
3177 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3178echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3179 no_cache=0
3180
3181# Check whether --with-dmalloc or --without-dmalloc was given.
3182if test "${with_dmalloc+set}" = set; then
3183 withval="$with_dmalloc"
3184
3185 if test "$withval" = yes; then
3186 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3187 else
3188 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3189 fi
3190
3191else
3192
3193 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3194 if test "x$LINE" != x ; then
3195 eval "DEFAULT_$LINE"
3196 else
3197 no_cache=1
3198 fi
3199
3200 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3201
3202fi;
3203
3204 eval "$ac_cv_use_dmalloc"
3205 if test "$no_cache" != 1; then
3206 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3207 fi
3208
3209 if test "$wxUSE_DMALLOC" = yes; then
3210 echo "$as_me:$LINENO: result: yes" >&5
3211echo "${ECHO_T}yes" >&6
3212 else
3213 echo "$as_me:$LINENO: result: no" >&5
3214echo "${ECHO_T}no" >&6
3215 fi
3216
3217
3218 echo "$as_me:$LINENO: checking for --with-regex" >&5
3219echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3220 no_cache=0
3221
3222# Check whether --with-regex or --without-regex was given.
3223if test "${with_regex+set}" = set; then
3224 withval="$with_regex"
3225
3226 if test "$withval" = yes; then
3227 ac_cv_use_regex='wxUSE_REGEX=yes'
3228 elif test "$withval" = no; then
3229 ac_cv_use_regex='wxUSE_REGEX=no'
3230 elif test "$withval" = sys; then
3231 ac_cv_use_regex='wxUSE_REGEX=sys'
3232 elif test "$withval" = builtin; then
3233 ac_cv_use_regex='wxUSE_REGEX=builtin'
3234 else
3235 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3236echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3237 { (exit 1); exit 1; }; }
3238 fi
3239
3240else
3241
3242 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3243 if test "x$LINE" != x ; then
3244 eval "DEFAULT_$LINE"
3245 else
3246 no_cache=1
3247 fi
3248
3249 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3250
3251fi;
3252
3253 eval "$ac_cv_use_regex"
3254 if test "$no_cache" != 1; then
3255 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3256 fi
3257
3258 if test "$wxUSE_REGEX" = yes; then
3259 echo "$as_me:$LINENO: result: yes" >&5
3260echo "${ECHO_T}yes" >&6
3261 elif test "$wxUSE_REGEX" = no; then
3262 echo "$as_me:$LINENO: result: no" >&5
3263echo "${ECHO_T}no" >&6
3264 elif test "$wxUSE_REGEX" = sys; then
3265 echo "$as_me:$LINENO: result: system version" >&5
3266echo "${ECHO_T}system version" >&6
3267 elif test "$wxUSE_REGEX" = builtin; then
3268 echo "$as_me:$LINENO: result: builtin version" >&5
3269echo "${ECHO_T}builtin version" >&6
3270 else
3271 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3272echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3273 { (exit 1); exit 1; }; }
3274 fi
3275
3276
3277 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3278echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3279 no_cache=0
3280
3281# Check whether --with-zlib or --without-zlib was given.
3282if test "${with_zlib+set}" = set; then
3283 withval="$with_zlib"
3284
3285 if test "$withval" = yes; then
3286 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3287 elif test "$withval" = no; then
3288 ac_cv_use_zlib='wxUSE_ZLIB=no'
3289 elif test "$withval" = sys; then
3290 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3291 elif test "$withval" = builtin; then
3292 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3293 else
3294 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3295echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3296 { (exit 1); exit 1; }; }
3297 fi
3298
3299else
3300
3301 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3302 if test "x$LINE" != x ; then
3303 eval "DEFAULT_$LINE"
3304 else
3305 no_cache=1
3306 fi
3307
3308 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3309
3310fi;
3311
3312 eval "$ac_cv_use_zlib"
3313 if test "$no_cache" != 1; then
3314 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3315 fi
3316
3317 if test "$wxUSE_ZLIB" = yes; then
3318 echo "$as_me:$LINENO: result: yes" >&5
3319echo "${ECHO_T}yes" >&6
3320 elif test "$wxUSE_ZLIB" = no; then
3321 echo "$as_me:$LINENO: result: no" >&5
3322echo "${ECHO_T}no" >&6
3323 elif test "$wxUSE_ZLIB" = sys; then
3324 echo "$as_me:$LINENO: result: system version" >&5
3325echo "${ECHO_T}system version" >&6
3326 elif test "$wxUSE_ZLIB" = builtin; then
3327 echo "$as_me:$LINENO: result: builtin version" >&5
3328echo "${ECHO_T}builtin version" >&6
3329 else
3330 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3331echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3332 { (exit 1); exit 1; }; }
3333 fi
3334
3335
3336 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3337echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3338 no_cache=0
3339
3340# Check whether --with-odbc or --without-odbc was given.
3341if test "${with_odbc+set}" = set; then
3342 withval="$with_odbc"
3343
3344 if test "$withval" = yes; then
3345 ac_cv_use_odbc='wxUSE_ODBC=yes'
3346 elif test "$withval" = no; then
3347 ac_cv_use_odbc='wxUSE_ODBC=no'
3348 elif test "$withval" = sys; then
3349 ac_cv_use_odbc='wxUSE_ODBC=sys'
3350 elif test "$withval" = builtin; then
3351 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3352 else
3353 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3354echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3355 { (exit 1); exit 1; }; }
3356 fi
3357
3358else
3359
3360 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3361 if test "x$LINE" != x ; then
3362 eval "DEFAULT_$LINE"
3363 else
3364 no_cache=1
3365 fi
3366
3367 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3368
3369fi;
3370
3371 eval "$ac_cv_use_odbc"
3372 if test "$no_cache" != 1; then
3373 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3374 fi
3375
3376 if test "$wxUSE_ODBC" = yes; then
3377 echo "$as_me:$LINENO: result: yes" >&5
3378echo "${ECHO_T}yes" >&6
3379 elif test "$wxUSE_ODBC" = no; then
3380 echo "$as_me:$LINENO: result: no" >&5
3381echo "${ECHO_T}no" >&6
3382 elif test "$wxUSE_ODBC" = sys; then
3383 echo "$as_me:$LINENO: result: system version" >&5
3384echo "${ECHO_T}system version" >&6
3385 elif test "$wxUSE_ODBC" = builtin; then
3386 echo "$as_me:$LINENO: result: builtin version" >&5
3387echo "${ECHO_T}builtin version" >&6
3388 else
3389 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3390echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3391 { (exit 1); exit 1; }; }
3392 fi
3393
3394
3395 echo "$as_me:$LINENO: checking for --with-expat" >&5
3396echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3397 no_cache=0
3398
3399# Check whether --with-expat or --without-expat was given.
3400if test "${with_expat+set}" = set; then
3401 withval="$with_expat"
3402
3403 if test "$withval" = yes; then
3404 ac_cv_use_expat='wxUSE_EXPAT=yes'
3405 elif test "$withval" = no; then
3406 ac_cv_use_expat='wxUSE_EXPAT=no'
3407 elif test "$withval" = sys; then
3408 ac_cv_use_expat='wxUSE_EXPAT=sys'
3409 elif test "$withval" = builtin; then
3410 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3411 else
3412 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3413echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3414 { (exit 1); exit 1; }; }
3415 fi
3416
3417else
3418
3419 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3420 if test "x$LINE" != x ; then
3421 eval "DEFAULT_$LINE"
3422 else
3423 no_cache=1
3424 fi
3425
3426 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3427
3428fi;
3429
3430 eval "$ac_cv_use_expat"
3431 if test "$no_cache" != 1; then
3432 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3433 fi
3434
3435 if test "$wxUSE_EXPAT" = yes; then
3436 echo "$as_me:$LINENO: result: yes" >&5
3437echo "${ECHO_T}yes" >&6
3438 elif test "$wxUSE_EXPAT" = no; then
3439 echo "$as_me:$LINENO: result: no" >&5
3440echo "${ECHO_T}no" >&6
3441 elif test "$wxUSE_EXPAT" = sys; then
3442 echo "$as_me:$LINENO: result: system version" >&5
3443echo "${ECHO_T}system version" >&6
3444 elif test "$wxUSE_EXPAT" = builtin; then
3445 echo "$as_me:$LINENO: result: builtin version" >&5
3446echo "${ECHO_T}builtin version" >&6
3447 else
3448 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3449echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3450 { (exit 1); exit 1; }; }
3451 fi
3452
3453
3454
3455
3456 enablestring=
3457 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3458echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3459 no_cache=0
3460 # Check whether --enable-shared or --disable-shared was given.
3461if test "${enable_shared+set}" = set; then
3462 enableval="$enable_shared"
3463
3464 if test "$enableval" = yes; then
3465 ac_cv_use_shared='wxUSE_SHARED=yes'
3466 else
3467 ac_cv_use_shared='wxUSE_SHARED=no'
3468 fi
3469
3470else
3471
3472 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3473 if test "x$LINE" != x ; then
3474 eval "DEFAULT_$LINE"
3475 else
3476 no_cache=1
3477 fi
3478
3479 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3480
3481fi;
3482
3483 eval "$ac_cv_use_shared"
3484 if test "$no_cache" != 1; then
3485 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3486 fi
3487
3488 if test "$wxUSE_SHARED" = yes; then
3489 echo "$as_me:$LINENO: result: yes" >&5
3490echo "${ECHO_T}yes" >&6
3491 else
3492 echo "$as_me:$LINENO: result: no" >&5
3493echo "${ECHO_T}no" >&6
3494 fi
3495
3496
3497 enablestring=
3498 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3499echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3500 no_cache=0
3501 # Check whether --enable-optimise or --disable-optimise was given.
3502if test "${enable_optimise+set}" = set; then
3503 enableval="$enable_optimise"
3504
3505 if test "$enableval" = yes; then
3506 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3507 else
3508 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3509 fi
3510
3511else
3512
3513 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3514 if test "x$LINE" != x ; then
3515 eval "DEFAULT_$LINE"
3516 else
3517 no_cache=1
3518 fi
3519
3520 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3521
3522fi;
3523
3524 eval "$ac_cv_use_optimise"
3525 if test "$no_cache" != 1; then
3526 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3527 fi
3528
3529 if test "$wxUSE_OPTIMISE" = yes; then
3530 echo "$as_me:$LINENO: result: yes" >&5
3531echo "${ECHO_T}yes" >&6
3532 else
3533 echo "$as_me:$LINENO: result: no" >&5
3534echo "${ECHO_T}no" >&6
3535 fi
3536
3537
3538 enablestring=
3539 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3540echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3541 no_cache=0
3542 # Check whether --enable-debug or --disable-debug was given.
3543if test "${enable_debug+set}" = set; then
3544 enableval="$enable_debug"
3545
3546 if test "$enableval" = yes; then
3547 ac_cv_use_debug='wxUSE_DEBUG=yes'
3548 else
3549 ac_cv_use_debug='wxUSE_DEBUG=no'
3550 fi
3551
3552else
3553
3554 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3555 if test "x$LINE" != x ; then
3556 eval "DEFAULT_$LINE"
3557 else
3558 no_cache=1
3559 fi
3560
3561 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3562
3563fi;
3564
3565 eval "$ac_cv_use_debug"
3566 if test "$no_cache" != 1; then
3567 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3568 fi
3569
3570 if test "$wxUSE_DEBUG" = yes; then
3571 echo "$as_me:$LINENO: result: yes" >&5
3572echo "${ECHO_T}yes" >&6
3573 else
3574 echo "$as_me:$LINENO: result: no" >&5
3575echo "${ECHO_T}no" >&6
3576 fi
3577
3578
3579 enablestring=
3580 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3581echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3582 no_cache=0
3583 # Check whether --enable-stl or --disable-stl was given.
3584if test "${enable_stl+set}" = set; then
3585 enableval="$enable_stl"
3586
3587 if test "$enableval" = yes; then
3588 ac_cv_use_stl='wxUSE_STL=yes'
3589 else
3590 ac_cv_use_stl='wxUSE_STL=no'
3591 fi
3592
3593else
3594
3595 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3596 if test "x$LINE" != x ; then
3597 eval "DEFAULT_$LINE"
3598 else
3599 no_cache=1
3600 fi
3601
3602 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3603
3604fi;
3605
3606 eval "$ac_cv_use_stl"
3607 if test "$no_cache" != 1; then
3608 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3609 fi
3610
3611 if test "$wxUSE_STL" = yes; then
3612 echo "$as_me:$LINENO: result: yes" >&5
3613echo "${ECHO_T}yes" >&6
3614 else
3615 echo "$as_me:$LINENO: result: no" >&5
3616echo "${ECHO_T}no" >&6
3617 fi
3618
3619if test "$USE_OS2" = "1"; then
3620
3621 enablestring=
3622 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3623echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3624 no_cache=0
3625 # Check whether --enable-omf or --disable-omf was given.
3626if test "${enable_omf+set}" = set; then
3627 enableval="$enable_omf"
3628
3629 if test "$enableval" = yes; then
3630 ac_cv_use_omf='wxUSE_OMF=yes'
3631 else
3632 ac_cv_use_omf='wxUSE_OMF=no'
3633 fi
3634
3635else
3636
3637 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3638 if test "x$LINE" != x ; then
3639 eval "DEFAULT_$LINE"
3640 else
3641 no_cache=1
3642 fi
3643
3644 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3645
3646fi;
3647
3648 eval "$ac_cv_use_omf"
3649 if test "$no_cache" != 1; then
3650 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3651 fi
3652
3653 if test "$wxUSE_OMF" = yes; then
3654 echo "$as_me:$LINENO: result: yes" >&5
3655echo "${ECHO_T}yes" >&6
3656 else
3657 echo "$as_me:$LINENO: result: no" >&5
3658echo "${ECHO_T}no" >&6
3659 fi
3660
3661fi
3662
3663if test "$wxUSE_DEBUG" = "yes"; then
3664 DEFAULT_wxUSE_DEBUG_FLAG=yes
3665 DEFAULT_wxUSE_DEBUG_INFO=yes
3666 BUILD=debug
3667elif test "$wxUSE_DEBUG" = "no"; then
3668 DEFAULT_wxUSE_DEBUG_FLAG=no
3669 DEFAULT_wxUSE_DEBUG_INFO=no
3670 BUILD=release
3671fi
3672
3673
3674 enablestring=
3675 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3676echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3677 no_cache=0
3678 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3679if test "${enable_debug_flag+set}" = set; then
3680 enableval="$enable_debug_flag"
3681
3682 if test "$enableval" = yes; then
3683 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3684 else
3685 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3686 fi
3687
3688else
3689
3690 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3691 if test "x$LINE" != x ; then
3692 eval "DEFAULT_$LINE"
3693 else
3694 no_cache=1
3695 fi
3696
3697 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3698
3699fi;
3700
3701 eval "$ac_cv_use_debug_flag"
3702 if test "$no_cache" != 1; then
3703 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3704 fi
3705
3706 if test "$wxUSE_DEBUG_FLAG" = yes; then
3707 echo "$as_me:$LINENO: result: yes" >&5
3708echo "${ECHO_T}yes" >&6
3709 else
3710 echo "$as_me:$LINENO: result: no" >&5
3711echo "${ECHO_T}no" >&6
3712 fi
3713
3714
3715 enablestring=
3716 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3717echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3718 no_cache=0
3719 # Check whether --enable-debug_info or --disable-debug_info was given.
3720if test "${enable_debug_info+set}" = set; then
3721 enableval="$enable_debug_info"
3722
3723 if test "$enableval" = yes; then
3724 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3725 else
3726 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3727 fi
3728
3729else
3730
3731 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3732 if test "x$LINE" != x ; then
3733 eval "DEFAULT_$LINE"
3734 else
3735 no_cache=1
3736 fi
3737
3738 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3739
3740fi;
3741
3742 eval "$ac_cv_use_debug_info"
3743 if test "$no_cache" != 1; then
3744 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3745 fi
3746
3747 if test "$wxUSE_DEBUG_INFO" = yes; then
3748 echo "$as_me:$LINENO: result: yes" >&5
3749echo "${ECHO_T}yes" >&6
3750 else
3751 echo "$as_me:$LINENO: result: no" >&5
3752echo "${ECHO_T}no" >&6
3753 fi
3754
3755
3756 enablestring=
3757 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3758echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3759 no_cache=0
3760 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3761if test "${enable_debug_gdb+set}" = set; then
3762 enableval="$enable_debug_gdb"
3763
3764 if test "$enableval" = yes; then
3765 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3766 else
3767 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3768 fi
3769
3770else
3771
3772 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3773 if test "x$LINE" != x ; then
3774 eval "DEFAULT_$LINE"
3775 else
3776 no_cache=1
3777 fi
3778
3779 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3780
3781fi;
3782
3783 eval "$ac_cv_use_debug_gdb"
3784 if test "$no_cache" != 1; then
3785 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3786 fi
3787
3788 if test "$wxUSE_DEBUG_GDB" = yes; then
3789 echo "$as_me:$LINENO: result: yes" >&5
3790echo "${ECHO_T}yes" >&6
3791 else
3792 echo "$as_me:$LINENO: result: no" >&5
3793echo "${ECHO_T}no" >&6
3794 fi
3795
3796
3797 enablestring=
3798 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3799echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3800 no_cache=0
3801 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3802if test "${enable_debug_cntxt+set}" = set; then
3803 enableval="$enable_debug_cntxt"
3804
3805 if test "$enableval" = yes; then
3806 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3807 else
3808 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3809 fi
3810
3811else
3812
3813 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3814 if test "x$LINE" != x ; then
3815 eval "DEFAULT_$LINE"
3816 else
3817 no_cache=1
3818 fi
3819
3820 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3821
3822fi;
3823
3824 eval "$ac_cv_use_debug_cntxt"
3825 if test "$no_cache" != 1; then
3826 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3827 fi
3828
3829 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3830 echo "$as_me:$LINENO: result: yes" >&5
3831echo "${ECHO_T}yes" >&6
3832 else
3833 echo "$as_me:$LINENO: result: no" >&5
3834echo "${ECHO_T}no" >&6
3835 fi
3836
3837
3838 enablestring=
3839 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3840echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3841 no_cache=0
3842 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3843if test "${enable_mem_tracing+set}" = set; then
3844 enableval="$enable_mem_tracing"
3845
3846 if test "$enableval" = yes; then
3847 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3848 else
3849 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3850 fi
3851
3852else
3853
3854 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3855 if test "x$LINE" != x ; then
3856 eval "DEFAULT_$LINE"
3857 else
3858 no_cache=1
3859 fi
3860
3861 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3862
3863fi;
3864
3865 eval "$ac_cv_use_mem_tracing"
3866 if test "$no_cache" != 1; then
3867 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3868 fi
3869
3870 if test "$wxUSE_MEM_TRACING" = yes; then
3871 echo "$as_me:$LINENO: result: yes" >&5
3872echo "${ECHO_T}yes" >&6
3873 else
3874 echo "$as_me:$LINENO: result: no" >&5
3875echo "${ECHO_T}no" >&6
3876 fi
3877
3878
3879 enablestring=
3880 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3881echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3882 no_cache=0
3883 # Check whether --enable-profile or --disable-profile was given.
3884if test "${enable_profile+set}" = set; then
3885 enableval="$enable_profile"
3886
3887 if test "$enableval" = yes; then
3888 ac_cv_use_profile='wxUSE_PROFILE=yes'
3889 else
3890 ac_cv_use_profile='wxUSE_PROFILE=no'
3891 fi
3892
3893else
3894
3895 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3896 if test "x$LINE" != x ; then
3897 eval "DEFAULT_$LINE"
3898 else
3899 no_cache=1
3900 fi
3901
3902 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3903
3904fi;
3905
3906 eval "$ac_cv_use_profile"
3907 if test "$no_cache" != 1; then
3908 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3909 fi
3910
3911 if test "$wxUSE_PROFILE" = yes; then
3912 echo "$as_me:$LINENO: result: yes" >&5
3913echo "${ECHO_T}yes" >&6
3914 else
3915 echo "$as_me:$LINENO: result: no" >&5
3916echo "${ECHO_T}no" >&6
3917 fi
3918
3919
3920 enablestring=
3921 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3922echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3923 no_cache=0
3924 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3925if test "${enable_no_rtti+set}" = set; then
3926 enableval="$enable_no_rtti"
3927
3928 if test "$enableval" = yes; then
3929 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3930 else
3931 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3932 fi
3933
3934else
3935
3936 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3937 if test "x$LINE" != x ; then
3938 eval "DEFAULT_$LINE"
3939 else
3940 no_cache=1
3941 fi
3942
3943 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3944
3945fi;
3946
3947 eval "$ac_cv_use_no_rtti"
3948 if test "$no_cache" != 1; then
3949 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3950 fi
3951
3952 if test "$wxUSE_NO_RTTI" = yes; then
3953 echo "$as_me:$LINENO: result: yes" >&5
3954echo "${ECHO_T}yes" >&6
3955 else
3956 echo "$as_me:$LINENO: result: no" >&5
3957echo "${ECHO_T}no" >&6
3958 fi
3959
3960
3961 enablestring=
3962 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3963echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3964 no_cache=0
3965 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3966if test "${enable_no_exceptions+set}" = set; then
3967 enableval="$enable_no_exceptions"
3968
3969 if test "$enableval" = yes; then
3970 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3971 else
3972 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3973 fi
3974
3975else
3976
3977 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3978 if test "x$LINE" != x ; then
3979 eval "DEFAULT_$LINE"
3980 else
3981 no_cache=1
3982 fi
3983
3984 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3985
3986fi;
3987
3988 eval "$ac_cv_use_no_exceptions"
3989 if test "$no_cache" != 1; then
3990 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3991 fi
3992
3993 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3994 echo "$as_me:$LINENO: result: yes" >&5
3995echo "${ECHO_T}yes" >&6
3996 else
3997 echo "$as_me:$LINENO: result: no" >&5
3998echo "${ECHO_T}no" >&6
3999 fi
4000
4001
4002 enablestring=
4003 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4004echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4005 no_cache=0
4006 # Check whether --enable-permissive or --disable-permissive was given.
4007if test "${enable_permissive+set}" = set; then
4008 enableval="$enable_permissive"
4009
4010 if test "$enableval" = yes; then
4011 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4012 else
4013 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4014 fi
4015
4016else
4017
4018 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4019 if test "x$LINE" != x ; then
4020 eval "DEFAULT_$LINE"
4021 else
4022 no_cache=1
4023 fi
4024
4025 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4026
4027fi;
4028
4029 eval "$ac_cv_use_permissive"
4030 if test "$no_cache" != 1; then
4031 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4032 fi
4033
4034 if test "$wxUSE_PERMISSIVE" = yes; then
4035 echo "$as_me:$LINENO: result: yes" >&5
4036echo "${ECHO_T}yes" >&6
4037 else
4038 echo "$as_me:$LINENO: result: no" >&5
4039echo "${ECHO_T}no" >&6
4040 fi
4041
4042
4043 enablestring=
4044 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4045echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4046 no_cache=0
4047 # Check whether --enable-no_deps or --disable-no_deps was given.
4048if test "${enable_no_deps+set}" = set; then
4049 enableval="$enable_no_deps"
4050
4051 if test "$enableval" = yes; then
4052 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4053 else
4054 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4055 fi
4056
4057else
4058
4059 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4060 if test "x$LINE" != x ; then
4061 eval "DEFAULT_$LINE"
4062 else
4063 no_cache=1
4064 fi
4065
4066 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4067
4068fi;
4069
4070 eval "$ac_cv_use_no_deps"
4071 if test "$no_cache" != 1; then
4072 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4073 fi
4074
4075 if test "$wxUSE_NO_DEPS" = yes; then
4076 echo "$as_me:$LINENO: result: yes" >&5
4077echo "${ECHO_T}yes" >&6
4078 else
4079 echo "$as_me:$LINENO: result: no" >&5
4080echo "${ECHO_T}no" >&6
4081 fi
4082
4083
4084
4085 enablestring=
4086 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4087echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4088 no_cache=0
4089 # Check whether --enable-compat22 or --disable-compat22 was given.
4090if test "${enable_compat22+set}" = set; then
4091 enableval="$enable_compat22"
4092
4093 if test "$enableval" = yes; then
4094 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4095 else
4096 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4097 fi
4098
4099else
4100
4101 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4102 if test "x$LINE" != x ; then
4103 eval "DEFAULT_$LINE"
4104 else
4105 no_cache=1
4106 fi
4107
4108 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4109
4110fi;
4111
4112 eval "$ac_cv_use_compat22"
4113 if test "$no_cache" != 1; then
4114 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4115 fi
4116
4117 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4118 echo "$as_me:$LINENO: result: yes" >&5
4119echo "${ECHO_T}yes" >&6
4120 else
4121 echo "$as_me:$LINENO: result: no" >&5
4122echo "${ECHO_T}no" >&6
4123 fi
4124
4125
4126 enablestring=disable
4127 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4128echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4129 no_cache=0
4130 # Check whether --enable-compat24 or --disable-compat24 was given.
4131if test "${enable_compat24+set}" = set; then
4132 enableval="$enable_compat24"
4133
4134 if test "$enableval" = yes; then
4135 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4136 else
4137 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4138 fi
4139
4140else
4141
4142 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4143 if test "x$LINE" != x ; then
4144 eval "DEFAULT_$LINE"
4145 else
4146 no_cache=1
4147 fi
4148
4149 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4150
4151fi;
4152
4153 eval "$ac_cv_use_compat24"
4154 if test "$no_cache" != 1; then
4155 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4156 fi
4157
4158 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4159 echo "$as_me:$LINENO: result: yes" >&5
4160echo "${ECHO_T}yes" >&6
4161 else
4162 echo "$as_me:$LINENO: result: no" >&5
4163echo "${ECHO_T}no" >&6
4164 fi
4165
4166
ffa0583f
RL
4167
4168 enablestring=
4169 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4170echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4171 no_cache=0
4172 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4173if test "${enable_rpath+set}" = set; then
4174 enableval="$enable_rpath"
ffa0583f
RL
4175
4176 if test "$enableval" = yes; then
4177 ac_cv_use_rpath='wxUSE_RPATH=yes'
4178 else
4179 ac_cv_use_rpath='wxUSE_RPATH=no'
4180 fi
4181
4182else
4183
4184 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4185 if test "x$LINE" != x ; then
4186 eval "DEFAULT_$LINE"
4187 else
4188 no_cache=1
4189 fi
4190
4191 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4192
a848cd7e
SC
4193fi;
4194
ffa0583f
RL
4195 eval "$ac_cv_use_rpath"
4196 if test "$no_cache" != 1; then
4197 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4198 fi
4199
4200 if test "$wxUSE_RPATH" = yes; then
4201 echo "$as_me:$LINENO: result: yes" >&5
4202echo "${ECHO_T}yes" >&6
4203 else
4204 echo "$as_me:$LINENO: result: no" >&5
4205echo "${ECHO_T}no" >&6
4206 fi
4207
a848cd7e
SC
4208
4209
4210
4211
4212 enablestring=
4213 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4214echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4215 no_cache=0
4216 # Check whether --enable-intl or --disable-intl was given.
4217if test "${enable_intl+set}" = set; then
4218 enableval="$enable_intl"
4219
4220 if test "$enableval" = yes; then
4221 ac_cv_use_intl='wxUSE_INTL=yes'
4222 else
4223 ac_cv_use_intl='wxUSE_INTL=no'
4224 fi
4225
4226else
4227
4228 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4229 if test "x$LINE" != x ; then
4230 eval "DEFAULT_$LINE"
4231 else
4232 no_cache=1
4233 fi
4234
4235 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4236
4237fi;
4238
4239 eval "$ac_cv_use_intl"
4240 if test "$no_cache" != 1; then
4241 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4242 fi
4243
4244 if test "$wxUSE_INTL" = yes; then
4245 echo "$as_me:$LINENO: result: yes" >&5
4246echo "${ECHO_T}yes" >&6
4247 else
4248 echo "$as_me:$LINENO: result: no" >&5
4249echo "${ECHO_T}no" >&6
4250 fi
4251
4252
4253 enablestring=
4254 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4255echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4256 no_cache=0
4257 # Check whether --enable-config or --disable-config was given.
4258if test "${enable_config+set}" = set; then
4259 enableval="$enable_config"
4260
4261 if test "$enableval" = yes; then
4262 ac_cv_use_config='wxUSE_CONFIG=yes'
4263 else
4264 ac_cv_use_config='wxUSE_CONFIG=no'
4265 fi
4266
4267else
4268
4269 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4270 if test "x$LINE" != x ; then
4271 eval "DEFAULT_$LINE"
4272 else
4273 no_cache=1
4274 fi
4275
4276 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4277
4278fi;
4279
4280 eval "$ac_cv_use_config"
4281 if test "$no_cache" != 1; then
4282 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4283 fi
4284
4285 if test "$wxUSE_CONFIG" = yes; then
4286 echo "$as_me:$LINENO: result: yes" >&5
4287echo "${ECHO_T}yes" >&6
4288 else
4289 echo "$as_me:$LINENO: result: no" >&5
4290echo "${ECHO_T}no" >&6
4291 fi
4292
4293
4294
4295 enablestring=
4296 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4297echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4298 no_cache=0
4299 # Check whether --enable-protocols or --disable-protocols was given.
4300if test "${enable_protocols+set}" = set; then
4301 enableval="$enable_protocols"
4302
4303 if test "$enableval" = yes; then
4304 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4305 else
4306 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4307 fi
4308
4309else
4310
4311 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4312 if test "x$LINE" != x ; then
4313 eval "DEFAULT_$LINE"
4314 else
4315 no_cache=1
4316 fi
4317
4318 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4319
4320fi;
4321
4322 eval "$ac_cv_use_protocols"
4323 if test "$no_cache" != 1; then
4324 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4325 fi
4326
4327 if test "$wxUSE_PROTOCOL" = yes; then
4328 echo "$as_me:$LINENO: result: yes" >&5
4329echo "${ECHO_T}yes" >&6
4330 else
4331 echo "$as_me:$LINENO: result: no" >&5
4332echo "${ECHO_T}no" >&6
4333 fi
4334
4335
4336 enablestring=
4337 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4338echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4339 no_cache=0
4340 # Check whether --enable-ftp or --disable-ftp was given.
4341if test "${enable_ftp+set}" = set; then
4342 enableval="$enable_ftp"
4343
4344 if test "$enableval" = yes; then
4345 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4346 else
4347 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4348 fi
4349
4350else
4351
4352 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4353 if test "x$LINE" != x ; then
4354 eval "DEFAULT_$LINE"
4355 else
4356 no_cache=1
4357 fi
4358
4359 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4360
4361fi;
4362
4363 eval "$ac_cv_use_ftp"
4364 if test "$no_cache" != 1; then
4365 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4366 fi
4367
4368 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4369 echo "$as_me:$LINENO: result: yes" >&5
4370echo "${ECHO_T}yes" >&6
4371 else
4372 echo "$as_me:$LINENO: result: no" >&5
4373echo "${ECHO_T}no" >&6
4374 fi
4375
4376
4377 enablestring=
4378 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4379echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4380 no_cache=0
4381 # Check whether --enable-http or --disable-http was given.
4382if test "${enable_http+set}" = set; then
4383 enableval="$enable_http"
4384
4385 if test "$enableval" = yes; then
4386 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4387 else
4388 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4389 fi
4390
4391else
4392
4393 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4394 if test "x$LINE" != x ; then
4395 eval "DEFAULT_$LINE"
4396 else
4397 no_cache=1
4398 fi
4399
4400 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4401
4402fi;
4403
4404 eval "$ac_cv_use_http"
4405 if test "$no_cache" != 1; then
4406 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4407 fi
4408
4409 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4410 echo "$as_me:$LINENO: result: yes" >&5
4411echo "${ECHO_T}yes" >&6
4412 else
4413 echo "$as_me:$LINENO: result: no" >&5
4414echo "${ECHO_T}no" >&6
4415 fi
4416
4417
4418 enablestring=
4419 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4420echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4421 no_cache=0
4422 # Check whether --enable-fileproto or --disable-fileproto was given.
4423if test "${enable_fileproto+set}" = set; then
4424 enableval="$enable_fileproto"
4425
4426 if test "$enableval" = yes; then
4427 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4428 else
4429 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4430 fi
4431
4432else
4433
4434 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4435 if test "x$LINE" != x ; then
4436 eval "DEFAULT_$LINE"
4437 else
4438 no_cache=1
4439 fi
4440
4441 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4442
4443fi;
4444
4445 eval "$ac_cv_use_fileproto"
4446 if test "$no_cache" != 1; then
4447 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4448 fi
4449
4450 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4451 echo "$as_me:$LINENO: result: yes" >&5
4452echo "${ECHO_T}yes" >&6
4453 else
4454 echo "$as_me:$LINENO: result: no" >&5
4455echo "${ECHO_T}no" >&6
4456 fi
4457
4458
4459 enablestring=
4460 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4461echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4462 no_cache=0
4463 # Check whether --enable-sockets or --disable-sockets was given.
4464if test "${enable_sockets+set}" = set; then
4465 enableval="$enable_sockets"
4466
4467 if test "$enableval" = yes; then
4468 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4469 else
4470 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4471 fi
4472
4473else
4474
4475 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4476 if test "x$LINE" != x ; then
4477 eval "DEFAULT_$LINE"
4478 else
4479 no_cache=1
4480 fi
4481
4482 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4483
4484fi;
4485
4486 eval "$ac_cv_use_sockets"
4487 if test "$no_cache" != 1; then
4488 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4489 fi
4490
4491 if test "$wxUSE_SOCKETS" = yes; then
4492 echo "$as_me:$LINENO: result: yes" >&5
4493echo "${ECHO_T}yes" >&6
4494 else
4495 echo "$as_me:$LINENO: result: no" >&5
4496echo "${ECHO_T}no" >&6
4497 fi
4498
4499
4500 enablestring=
4501 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4502echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4503 no_cache=0
4504 # Check whether --enable-ole or --disable-ole was given.
4505if test "${enable_ole+set}" = set; then
4506 enableval="$enable_ole"
4507
4508 if test "$enableval" = yes; then
4509 ac_cv_use_ole='wxUSE_OLE=yes'
4510 else
4511 ac_cv_use_ole='wxUSE_OLE=no'
4512 fi
4513
4514else
4515
4516 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4517 if test "x$LINE" != x ; then
4518 eval "DEFAULT_$LINE"
4519 else
4520 no_cache=1
4521 fi
4522
4523 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4524
4525fi;
4526
4527 eval "$ac_cv_use_ole"
4528 if test "$no_cache" != 1; then
4529 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4530 fi
4531
4532 if test "$wxUSE_OLE" = yes; then
4533 echo "$as_me:$LINENO: result: yes" >&5
4534echo "${ECHO_T}yes" >&6
4535 else
4536 echo "$as_me:$LINENO: result: no" >&5
4537echo "${ECHO_T}no" >&6
4538 fi
4539
4540
4541 enablestring=
4542 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4543echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4544 no_cache=0
4545 # Check whether --enable-dataobj or --disable-dataobj was given.
4546if test "${enable_dataobj+set}" = set; then
4547 enableval="$enable_dataobj"
4548
4549 if test "$enableval" = yes; then
4550 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4551 else
4552 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4553 fi
4554
4555else
4556
4557 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4558 if test "x$LINE" != x ; then
4559 eval "DEFAULT_$LINE"
4560 else
4561 no_cache=1
4562 fi
4563
4564 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4565
4566fi;
4567
4568 eval "$ac_cv_use_dataobj"
4569 if test "$no_cache" != 1; then
4570 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4571 fi
4572
4573 if test "$wxUSE_DATAOBJ" = yes; then
4574 echo "$as_me:$LINENO: result: yes" >&5
4575echo "${ECHO_T}yes" >&6
4576 else
4577 echo "$as_me:$LINENO: result: no" >&5
4578echo "${ECHO_T}no" >&6
4579 fi
4580
4581
4582
4583 enablestring=
4584 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4585echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4586 no_cache=0
4587 # Check whether --enable-ipc or --disable-ipc was given.
4588if test "${enable_ipc+set}" = set; then
4589 enableval="$enable_ipc"
4590
4591 if test "$enableval" = yes; then
4592 ac_cv_use_ipc='wxUSE_IPC=yes'
4593 else
4594 ac_cv_use_ipc='wxUSE_IPC=no'
4595 fi
4596
4597else
4598
4599 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4600 if test "x$LINE" != x ; then
4601 eval "DEFAULT_$LINE"
4602 else
4603 no_cache=1
4604 fi
4605
4606 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4607
4608fi;
4609
4610 eval "$ac_cv_use_ipc"
4611 if test "$no_cache" != 1; then
4612 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4613 fi
4614
4615 if test "$wxUSE_IPC" = yes; then
4616 echo "$as_me:$LINENO: result: yes" >&5
4617echo "${ECHO_T}yes" >&6
4618 else
4619 echo "$as_me:$LINENO: result: no" >&5
4620echo "${ECHO_T}no" >&6
4621 fi
4622
4623
4624
4625 enablestring=
4626 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4627echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4628 no_cache=0
4629 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4630if test "${enable_apple_ieee+set}" = set; then
4631 enableval="$enable_apple_ieee"
4632
4633 if test "$enableval" = yes; then
4634 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4635 else
4636 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4637 fi
4638
4639else
4640
4641 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4642 if test "x$LINE" != x ; then
4643 eval "DEFAULT_$LINE"
4644 else
4645 no_cache=1
4646 fi
4647
4648 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4649
4650fi;
4651
4652 eval "$ac_cv_use_apple_ieee"
4653 if test "$no_cache" != 1; then
4654 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4655 fi
4656
4657 if test "$wxUSE_APPLE_IEEE" = yes; then
4658 echo "$as_me:$LINENO: result: yes" >&5
4659echo "${ECHO_T}yes" >&6
4660 else
4661 echo "$as_me:$LINENO: result: no" >&5
4662echo "${ECHO_T}no" >&6
4663 fi
4664
4665
4666 enablestring=
4667 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4668echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
4669 no_cache=0
4670 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4671if test "${enable_catch_segvs+set}" = set; then
4672 enableval="$enable_catch_segvs"
4673
4674 if test "$enableval" = yes; then
4675 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4676 else
4677 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4678 fi
4679
4680else
4681
4682 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4683 if test "x$LINE" != x ; then
4684 eval "DEFAULT_$LINE"
4685 else
4686 no_cache=1
4687 fi
4688
4689 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4690
4691fi;
4692
4693 eval "$ac_cv_use_catch_segvs"
4694 if test "$no_cache" != 1; then
4695 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4696 fi
4697
4698 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4699 echo "$as_me:$LINENO: result: yes" >&5
4700echo "${ECHO_T}yes" >&6
4701 else
4702 echo "$as_me:$LINENO: result: no" >&5
4703echo "${ECHO_T}no" >&6
4704 fi
4705
4706
4707 enablestring=
4708 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4709echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4710 no_cache=0
4711 # Check whether --enable-cmdline or --disable-cmdline was given.
4712if test "${enable_cmdline+set}" = set; then
4713 enableval="$enable_cmdline"
4714
4715 if test "$enableval" = yes; then
4716 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4717 else
4718 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4719 fi
4720
4721else
4722
4723 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4724 if test "x$LINE" != x ; then
4725 eval "DEFAULT_$LINE"
4726 else
4727 no_cache=1
4728 fi
4729
4730 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4731
4732fi;
4733
4734 eval "$ac_cv_use_cmdline"
4735 if test "$no_cache" != 1; then
4736 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4737 fi
4738
4739 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4740 echo "$as_me:$LINENO: result: yes" >&5
4741echo "${ECHO_T}yes" >&6
4742 else
4743 echo "$as_me:$LINENO: result: no" >&5
4744echo "${ECHO_T}no" >&6
4745 fi
4746
4747
4748 enablestring=
4749 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4750echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4751 no_cache=0
4752 # Check whether --enable-datetime or --disable-datetime was given.
4753if test "${enable_datetime+set}" = set; then
4754 enableval="$enable_datetime"
4755
4756 if test "$enableval" = yes; then
4757 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4758 else
4759 ac_cv_use_datetime='wxUSE_DATETIME=no'
4760 fi
4761
4762else
4763
4764 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4765 if test "x$LINE" != x ; then
4766 eval "DEFAULT_$LINE"
4767 else
4768 no_cache=1
4769 fi
4770
4771 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4772
4773fi;
4774
4775 eval "$ac_cv_use_datetime"
4776 if test "$no_cache" != 1; then
4777 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4778 fi
4779
4780 if test "$wxUSE_DATETIME" = yes; then
4781 echo "$as_me:$LINENO: result: yes" >&5
4782echo "${ECHO_T}yes" >&6
4783 else
4784 echo "$as_me:$LINENO: result: no" >&5
4785echo "${ECHO_T}no" >&6
4786 fi
4787
4788
4789 enablestring=
4790 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4791echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4792 no_cache=0
4793 # Check whether --enable-dialupman or --disable-dialupman was given.
4794if test "${enable_dialupman+set}" = set; then
4795 enableval="$enable_dialupman"
4796
4797 if test "$enableval" = yes; then
4798 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4799 else
4800 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4801 fi
4802
4803else
4804
4805 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4806 if test "x$LINE" != x ; then
4807 eval "DEFAULT_$LINE"
4808 else
4809 no_cache=1
4810 fi
4811
4812 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4813
4814fi;
4815
4816 eval "$ac_cv_use_dialupman"
4817 if test "$no_cache" != 1; then
4818 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4819 fi
4820
4821 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4822 echo "$as_me:$LINENO: result: yes" >&5
4823echo "${ECHO_T}yes" >&6
4824 else
4825 echo "$as_me:$LINENO: result: no" >&5
4826echo "${ECHO_T}no" >&6
4827 fi
4828
4829
4830 enablestring=
4831 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4832echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4833 no_cache=0
4834 # Check whether --enable-dynlib or --disable-dynlib was given.
4835if test "${enable_dynlib+set}" = set; then
4836 enableval="$enable_dynlib"
4837
4838 if test "$enableval" = yes; then
4839 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4840 else
4841 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4842 fi
4843
4844else
4845
4846 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4847 if test "x$LINE" != x ; then
4848 eval "DEFAULT_$LINE"
4849 else
4850 no_cache=1
4851 fi
4852
4853 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4854
4855fi;
4856
4857 eval "$ac_cv_use_dynlib"
4858 if test "$no_cache" != 1; then
4859 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4860 fi
4861
4862 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4863 echo "$as_me:$LINENO: result: yes" >&5
4864echo "${ECHO_T}yes" >&6
4865 else
4866 echo "$as_me:$LINENO: result: no" >&5
4867echo "${ECHO_T}no" >&6
4868 fi
4869
4870
4871 enablestring=
4872 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4873echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4874 no_cache=0
4875 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4876if test "${enable_dynamicloader+set}" = set; then
4877 enableval="$enable_dynamicloader"
4878
4879 if test "$enableval" = yes; then
4880 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4881 else
4882 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4883 fi
4884
4885else
4886
4887 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4888 if test "x$LINE" != x ; then
4889 eval "DEFAULT_$LINE"
4890 else
4891 no_cache=1
4892 fi
4893
4894 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
4895
4896fi;
4897
4898 eval "$ac_cv_use_dynamicloader"
4899 if test "$no_cache" != 1; then
4900 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4901 fi
4902
4903 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
4904 echo "$as_me:$LINENO: result: yes" >&5
4905echo "${ECHO_T}yes" >&6
4906 else
4907 echo "$as_me:$LINENO: result: no" >&5
4908echo "${ECHO_T}no" >&6
4909 fi
4910
4911
4912 enablestring=
4913 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
4914echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
4915 no_cache=0
4916 # Check whether --enable-exceptions or --disable-exceptions was given.
4917if test "${enable_exceptions+set}" = set; then
4918 enableval="$enable_exceptions"
4919
4920 if test "$enableval" = yes; then
4921 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
4922 else
4923 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
4924 fi
4925
4926else
4927
4928 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
4929 if test "x$LINE" != x ; then
4930 eval "DEFAULT_$LINE"
4931 else
4932 no_cache=1
4933 fi
4934
4935 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
4936
4937fi;
4938
4939 eval "$ac_cv_use_exceptions"
4940 if test "$no_cache" != 1; then
4941 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
4942 fi
4943
4944 if test "$wxUSE_EXCEPTIONS" = yes; then
4945 echo "$as_me:$LINENO: result: yes" >&5
4946echo "${ECHO_T}yes" >&6
4947 else
4948 echo "$as_me:$LINENO: result: no" >&5
4949echo "${ECHO_T}no" >&6
4950 fi
4951
4952
4953 enablestring=
4954 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4955echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
4956 no_cache=0
4957 # Check whether --enable-ffile or --disable-ffile was given.
4958if test "${enable_ffile+set}" = set; then
4959 enableval="$enable_ffile"
4960
4961 if test "$enableval" = yes; then
4962 ac_cv_use_ffile='wxUSE_FFILE=yes'
4963 else
4964 ac_cv_use_ffile='wxUSE_FFILE=no'
4965 fi
4966
4967else
4968
4969 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4970 if test "x$LINE" != x ; then
4971 eval "DEFAULT_$LINE"
4972 else
4973 no_cache=1
4974 fi
4975
4976 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4977
4978fi;
4979
4980 eval "$ac_cv_use_ffile"
4981 if test "$no_cache" != 1; then
4982 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4983 fi
4984
4985 if test "$wxUSE_FFILE" = yes; then
4986 echo "$as_me:$LINENO: result: yes" >&5
4987echo "${ECHO_T}yes" >&6
4988 else
4989 echo "$as_me:$LINENO: result: no" >&5
4990echo "${ECHO_T}no" >&6
4991 fi
4992
4993
4994 enablestring=
4995 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4996echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
4997 no_cache=0
4998 # Check whether --enable-file or --disable-file was given.
4999if test "${enable_file+set}" = set; then
5000 enableval="$enable_file"
5001
5002 if test "$enableval" = yes; then
5003 ac_cv_use_file='wxUSE_FILE=yes'
5004 else
5005 ac_cv_use_file='wxUSE_FILE=no'
5006 fi
5007
5008else
5009
5010 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5011 if test "x$LINE" != x ; then
5012 eval "DEFAULT_$LINE"
5013 else
5014 no_cache=1
5015 fi
5016
5017 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5018
5019fi;
5020
5021 eval "$ac_cv_use_file"
5022 if test "$no_cache" != 1; then
5023 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5024 fi
5025
5026 if test "$wxUSE_FILE" = yes; then
5027 echo "$as_me:$LINENO: result: yes" >&5
5028echo "${ECHO_T}yes" >&6
5029 else
5030 echo "$as_me:$LINENO: result: no" >&5
5031echo "${ECHO_T}no" >&6
5032 fi
5033
5034
5035 enablestring=
5036 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5037echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5038 no_cache=0
5039 # Check whether --enable-filesystem or --disable-filesystem was given.
5040if test "${enable_filesystem+set}" = set; then
5041 enableval="$enable_filesystem"
5042
5043 if test "$enableval" = yes; then
5044 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5045 else
5046 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5047 fi
5048
5049else
5050
5051 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5052 if test "x$LINE" != x ; then
5053 eval "DEFAULT_$LINE"
5054 else
5055 no_cache=1
5056 fi
5057
5058 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5059
5060fi;
5061
5062 eval "$ac_cv_use_filesystem"
5063 if test "$no_cache" != 1; then
5064 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5065 fi
5066
5067 if test "$wxUSE_FILESYSTEM" = yes; then
5068 echo "$as_me:$LINENO: result: yes" >&5
5069echo "${ECHO_T}yes" >&6
5070 else
5071 echo "$as_me:$LINENO: result: no" >&5
5072echo "${ECHO_T}no" >&6
5073 fi
5074
5075
5076 enablestring=
5077 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5078echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5079 no_cache=0
5080 # Check whether --enable-fontmap or --disable-fontmap was given.
5081if test "${enable_fontmap+set}" = set; then
5082 enableval="$enable_fontmap"
5083
5084 if test "$enableval" = yes; then
5085 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5086 else
5087 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5088 fi
5089
5090else
5091
5092 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5093 if test "x$LINE" != x ; then
5094 eval "DEFAULT_$LINE"
5095 else
5096 no_cache=1
5097 fi
5098
5099 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5100
5101fi;
5102
5103 eval "$ac_cv_use_fontmap"
5104 if test "$no_cache" != 1; then
5105 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5106 fi
5107
5108 if test "$wxUSE_FONTMAP" = yes; then
5109 echo "$as_me:$LINENO: result: yes" >&5
5110echo "${ECHO_T}yes" >&6
5111 else
5112 echo "$as_me:$LINENO: result: no" >&5
5113echo "${ECHO_T}no" >&6
5114 fi
5115
5116
5117 enablestring=
5118 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5119echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5120 no_cache=0
5121 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5122if test "${enable_fs_inet+set}" = set; then
5123 enableval="$enable_fs_inet"
5124
5125 if test "$enableval" = yes; then
5126 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5127 else
5128 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5129 fi
5130
5131else
5132
5133 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5134 if test "x$LINE" != x ; then
5135 eval "DEFAULT_$LINE"
5136 else
5137 no_cache=1
5138 fi
5139
5140 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5141
5142fi;
5143
5144 eval "$ac_cv_use_fs_inet"
5145 if test "$no_cache" != 1; then
5146 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5147 fi
5148
5149 if test "$wxUSE_FS_INET" = yes; then
5150 echo "$as_me:$LINENO: result: yes" >&5
5151echo "${ECHO_T}yes" >&6
5152 else
5153 echo "$as_me:$LINENO: result: no" >&5
5154echo "${ECHO_T}no" >&6
5155 fi
5156
5157
5158 enablestring=
5159 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5160echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5161 no_cache=0
5162 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5163if test "${enable_fs_zip+set}" = set; then
5164 enableval="$enable_fs_zip"
5165
5166 if test "$enableval" = yes; then
5167 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5168 else
5169 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5170 fi
5171
5172else
5173
5174 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5175 if test "x$LINE" != x ; then
5176 eval "DEFAULT_$LINE"
5177 else
5178 no_cache=1
5179 fi
5180
5181 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5182
5183fi;
5184
5185 eval "$ac_cv_use_fs_zip"
5186 if test "$no_cache" != 1; then
5187 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5188 fi
5189
5190 if test "$wxUSE_FS_ZIP" = yes; then
5191 echo "$as_me:$LINENO: result: yes" >&5
5192echo "${ECHO_T}yes" >&6
5193 else
5194 echo "$as_me:$LINENO: result: no" >&5
5195echo "${ECHO_T}no" >&6
5196 fi
5197
5198
5199 enablestring=
5200 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5201echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5202 no_cache=0
5203 # Check whether --enable-geometry or --disable-geometry was given.
5204if test "${enable_geometry+set}" = set; then
5205 enableval="$enable_geometry"
5206
5207 if test "$enableval" = yes; then
5208 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5209 else
5210 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5211 fi
5212
5213else
5214
5215 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5216 if test "x$LINE" != x ; then
5217 eval "DEFAULT_$LINE"
5218 else
5219 no_cache=1
5220 fi
5221
5222 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5223
5224fi;
5225
5226 eval "$ac_cv_use_geometry"
5227 if test "$no_cache" != 1; then
5228 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5229 fi
5230
5231 if test "$wxUSE_GEOMETRY" = yes; then
5232 echo "$as_me:$LINENO: result: yes" >&5
5233echo "${ECHO_T}yes" >&6
5234 else
5235 echo "$as_me:$LINENO: result: no" >&5
5236echo "${ECHO_T}no" >&6
5237 fi
5238
5239
5240 enablestring=
5241 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5242echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5243 no_cache=0
5244 # Check whether --enable-log or --disable-log was given.
5245if test "${enable_log+set}" = set; then
5246 enableval="$enable_log"
5247
5248 if test "$enableval" = yes; then
5249 ac_cv_use_log='wxUSE_LOG=yes'
5250 else
5251 ac_cv_use_log='wxUSE_LOG=no'
5252 fi
5253
5254else
5255
5256 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5257 if test "x$LINE" != x ; then
5258 eval "DEFAULT_$LINE"
5259 else
5260 no_cache=1
5261 fi
5262
5263 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5264
5265fi;
5266
5267 eval "$ac_cv_use_log"
5268 if test "$no_cache" != 1; then
5269 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5270 fi
5271
5272 if test "$wxUSE_LOG" = yes; then
5273 echo "$as_me:$LINENO: result: yes" >&5
5274echo "${ECHO_T}yes" >&6
5275 else
5276 echo "$as_me:$LINENO: result: no" >&5
5277echo "${ECHO_T}no" >&6
5278 fi
5279
5280
5281 enablestring=
5282 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5283echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5284 no_cache=0
5285 # Check whether --enable-longlong or --disable-longlong was given.
5286if test "${enable_longlong+set}" = set; then
5287 enableval="$enable_longlong"
5288
5289 if test "$enableval" = yes; then
5290 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5291 else
5292 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5293 fi
5294
5295else
5296
5297 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5298 if test "x$LINE" != x ; then
5299 eval "DEFAULT_$LINE"
5300 else
5301 no_cache=1
5302 fi
5303
5304 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5305
5306fi;
5307
5308 eval "$ac_cv_use_longlong"
5309 if test "$no_cache" != 1; then
5310 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5311 fi
5312
5313 if test "$wxUSE_LONGLONG" = yes; then
5314 echo "$as_me:$LINENO: result: yes" >&5
5315echo "${ECHO_T}yes" >&6
5316 else
5317 echo "$as_me:$LINENO: result: no" >&5
5318echo "${ECHO_T}no" >&6
5319 fi
5320
5321
5322 enablestring=
5323 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5324echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5325 no_cache=0
5326 # Check whether --enable-mimetype or --disable-mimetype was given.
5327if test "${enable_mimetype+set}" = set; then
5328 enableval="$enable_mimetype"
5329
5330 if test "$enableval" = yes; then
5331 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5332 else
5333 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5334 fi
5335
5336else
5337
5338 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5339 if test "x$LINE" != x ; then
5340 eval "DEFAULT_$LINE"
5341 else
5342 no_cache=1
5343 fi
5344
5345 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5346
5347fi;
5348
5349 eval "$ac_cv_use_mimetype"
5350 if test "$no_cache" != 1; then
5351 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5352 fi
5353
5354 if test "$wxUSE_MIMETYPE" = yes; then
5355 echo "$as_me:$LINENO: result: yes" >&5
5356echo "${ECHO_T}yes" >&6
5357 else
5358 echo "$as_me:$LINENO: result: no" >&5
5359echo "${ECHO_T}no" >&6
5360 fi
5361
5362
5363 enablestring=
5364 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5365echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5366 no_cache=0
5367 # Check whether --enable-mslu or --disable-mslu was given.
5368if test "${enable_mslu+set}" = set; then
5369 enableval="$enable_mslu"
5370
5371 if test "$enableval" = yes; then
5372 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5373 else
5374 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5375 fi
5376
5377else
5378
5379 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5380 if test "x$LINE" != x ; then
5381 eval "DEFAULT_$LINE"
5382 else
5383 no_cache=1
5384 fi
5385
5386 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5387
5388fi;
5389
5390 eval "$ac_cv_use_mslu"
5391 if test "$no_cache" != 1; then
5392 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5393 fi
5394
5395 if test "$wxUSE_UNICODE_MSLU" = yes; then
5396 echo "$as_me:$LINENO: result: yes" >&5
5397echo "${ECHO_T}yes" >&6
5398 else
5399 echo "$as_me:$LINENO: result: no" >&5
5400echo "${ECHO_T}no" >&6
5401 fi
5402
5403
5404 enablestring=
5405 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5406echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5407 no_cache=0
5408 # Check whether --enable-snglinst or --disable-snglinst was given.
5409if test "${enable_snglinst+set}" = set; then
5410 enableval="$enable_snglinst"
5411
5412 if test "$enableval" = yes; then
5413 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5414 else
5415 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5416 fi
5417
5418else
5419
5420 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5421 if test "x$LINE" != x ; then
5422 eval "DEFAULT_$LINE"
5423 else
5424 no_cache=1
5425 fi
5426
5427 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5428
5429fi;
5430
5431 eval "$ac_cv_use_snglinst"
5432 if test "$no_cache" != 1; then
5433 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5434 fi
5435
5436 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5437 echo "$as_me:$LINENO: result: yes" >&5
5438echo "${ECHO_T}yes" >&6
5439 else
5440 echo "$as_me:$LINENO: result: no" >&5
5441echo "${ECHO_T}no" >&6
5442 fi
5443
5444
5445 enablestring=
5446 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5447echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5448 no_cache=0
5449 # Check whether --enable-streams or --disable-streams was given.
5450if test "${enable_streams+set}" = set; then
5451 enableval="$enable_streams"
5452
5453 if test "$enableval" = yes; then
5454 ac_cv_use_streams='wxUSE_STREAMS=yes'
5455 else
5456 ac_cv_use_streams='wxUSE_STREAMS=no'
5457 fi
5458
5459else
5460
5461 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5462 if test "x$LINE" != x ; then
5463 eval "DEFAULT_$LINE"
5464 else
5465 no_cache=1
5466 fi
5467
5468 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5469
5470fi;
5471
5472 eval "$ac_cv_use_streams"
5473 if test "$no_cache" != 1; then
5474 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5475 fi
5476
5477 if test "$wxUSE_STREAMS" = yes; then
5478 echo "$as_me:$LINENO: result: yes" >&5
5479echo "${ECHO_T}yes" >&6
5480 else
5481 echo "$as_me:$LINENO: result: no" >&5
5482echo "${ECHO_T}no" >&6
5483 fi
5484
5485
5486 enablestring=
5487 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5488echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5489 no_cache=0
5490 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5491if test "${enable_std_iostreams+set}" = set; then
5492 enableval="$enable_std_iostreams"
5493
5494 if test "$enableval" = yes; then
5495 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5496 else
5497 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5498 fi
5499
5500else
5501
5502 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5503 if test "x$LINE" != x ; then
5504 eval "DEFAULT_$LINE"
5505 else
5506 no_cache=1
5507 fi
5508
5509 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5510
5511fi;
5512
5513 eval "$ac_cv_use_std_iostreams"
5514 if test "$no_cache" != 1; then
5515 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5516 fi
5517
5518 if test "$wxUSE_STD_IOSTREAM" = yes; then
5519 echo "$as_me:$LINENO: result: yes" >&5
5520echo "${ECHO_T}yes" >&6
5521 else
5522 echo "$as_me:$LINENO: result: no" >&5
5523echo "${ECHO_T}no" >&6
5524 fi
5525
5526
5527 enablestring=
5528 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5529echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5530 no_cache=0
5531 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5532if test "${enable_stopwatch+set}" = set; then
5533 enableval="$enable_stopwatch"
5534
5535 if test "$enableval" = yes; then
5536 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5537 else
5538 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5539 fi
5540
5541else
5542
5543 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5544 if test "x$LINE" != x ; then
5545 eval "DEFAULT_$LINE"
5546 else
5547 no_cache=1
5548 fi
5549
5550 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5551
5552fi;
5553
5554 eval "$ac_cv_use_stopwatch"
5555 if test "$no_cache" != 1; then
5556 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5557 fi
5558
5559 if test "$wxUSE_STOPWATCH" = yes; then
5560 echo "$as_me:$LINENO: result: yes" >&5
5561echo "${ECHO_T}yes" >&6
5562 else
5563 echo "$as_me:$LINENO: result: no" >&5
5564echo "${ECHO_T}no" >&6
5565 fi
5566
5567
5568 enablestring=
5569 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5570echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5571 no_cache=0
5572 # Check whether --enable-system_options or --disable-system_options was given.
5573if test "${enable_system_options+set}" = set; then
5574 enableval="$enable_system_options"
5575
5576 if test "$enableval" = yes; then
5577 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5578 else
5579 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5580 fi
5581
5582else
5583
5584 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5585 if test "x$LINE" != x ; then
5586 eval "DEFAULT_$LINE"
5587 else
5588 no_cache=1
5589 fi
5590
5591 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5592
5593fi;
5594
5595 eval "$ac_cv_use_system_options"
5596 if test "$no_cache" != 1; then
5597 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5598 fi
5599
5600 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5601 echo "$as_me:$LINENO: result: yes" >&5
5602echo "${ECHO_T}yes" >&6
5603 else
5604 echo "$as_me:$LINENO: result: no" >&5
5605echo "${ECHO_T}no" >&6
5606 fi
5607
5608
5609 enablestring=
5610 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5611echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5612 no_cache=0
5613 # Check whether --enable-textbuf or --disable-textbuf was given.
5614if test "${enable_textbuf+set}" = set; then
5615 enableval="$enable_textbuf"
5616
5617 if test "$enableval" = yes; then
5618 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5619 else
5620 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5621 fi
5622
5623else
5624
5625 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5626 if test "x$LINE" != x ; then
5627 eval "DEFAULT_$LINE"
5628 else
5629 no_cache=1
5630 fi
5631
5632 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5633
5634fi;
5635
5636 eval "$ac_cv_use_textbuf"
5637 if test "$no_cache" != 1; then
5638 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5639 fi
5640
5641 if test "$wxUSE_TEXTBUFFER" = yes; then
5642 echo "$as_me:$LINENO: result: yes" >&5
5643echo "${ECHO_T}yes" >&6
5644 else
5645 echo "$as_me:$LINENO: result: no" >&5
5646echo "${ECHO_T}no" >&6
5647 fi
5648
5649
5650 enablestring=
5651 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5652echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5653 no_cache=0
5654 # Check whether --enable-textfile or --disable-textfile was given.
5655if test "${enable_textfile+set}" = set; then
5656 enableval="$enable_textfile"
5657
5658 if test "$enableval" = yes; then
5659 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5660 else
5661 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5662 fi
5663
5664else
5665
5666 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5667 if test "x$LINE" != x ; then
5668 eval "DEFAULT_$LINE"
5669 else
5670 no_cache=1
5671 fi
5672
5673 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5674
5675fi;
5676
5677 eval "$ac_cv_use_textfile"
5678 if test "$no_cache" != 1; then
5679 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5680 fi
5681
5682 if test "$wxUSE_TEXTFILE" = yes; then
5683 echo "$as_me:$LINENO: result: yes" >&5
5684echo "${ECHO_T}yes" >&6
5685 else
5686 echo "$as_me:$LINENO: result: no" >&5
5687echo "${ECHO_T}no" >&6
5688 fi
5689
5690
5691 enablestring=
5692 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5693echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5694 no_cache=0
5695 # Check whether --enable-timer or --disable-timer was given.
5696if test "${enable_timer+set}" = set; then
5697 enableval="$enable_timer"
5698
5699 if test "$enableval" = yes; then
5700 ac_cv_use_timer='wxUSE_TIMER=yes'
5701 else
5702 ac_cv_use_timer='wxUSE_TIMER=no'
5703 fi
5704
5705else
5706
5707 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5708 if test "x$LINE" != x ; then
5709 eval "DEFAULT_$LINE"
5710 else
5711 no_cache=1
5712 fi
5713
5714 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5715
5716fi;
5717
5718 eval "$ac_cv_use_timer"
5719 if test "$no_cache" != 1; then
5720 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5721 fi
5722
5723 if test "$wxUSE_TIMER" = yes; then
5724 echo "$as_me:$LINENO: result: yes" >&5
5725echo "${ECHO_T}yes" >&6
5726 else
5727 echo "$as_me:$LINENO: result: no" >&5
5728echo "${ECHO_T}no" >&6
5729 fi
5730
5731
5732 enablestring=
5733 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5734echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5735 no_cache=0
5736 # Check whether --enable-unicode or --disable-unicode was given.
5737if test "${enable_unicode+set}" = set; then
5738 enableval="$enable_unicode"
5739
5740 if test "$enableval" = yes; then
5741 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5742 else
5743 ac_cv_use_unicode='wxUSE_UNICODE=no'
5744 fi
5745
5746else
5747
5748 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5749 if test "x$LINE" != x ; then
5750 eval "DEFAULT_$LINE"
5751 else
5752 no_cache=1
5753 fi
5754
5755 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5756
5757fi;
5758
5759 eval "$ac_cv_use_unicode"
5760 if test "$no_cache" != 1; then
5761 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5762 fi
5763
5764 if test "$wxUSE_UNICODE" = yes; then
5765 echo "$as_me:$LINENO: result: yes" >&5
5766echo "${ECHO_T}yes" >&6
5767 else
5768 echo "$as_me:$LINENO: result: no" >&5
5769echo "${ECHO_T}no" >&6
5770 fi
5771
5772
5773 enablestring=
5774 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5775echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5776 no_cache=0
5777 # Check whether --enable-sound or --disable-sound was given.
5778if test "${enable_sound+set}" = set; then
5779 enableval="$enable_sound"
5780
5781 if test "$enableval" = yes; then
5782 ac_cv_use_sound='wxUSE_SOUND=yes'
5783 else
5784 ac_cv_use_sound='wxUSE_SOUND=no'
5785 fi
5786
5787else
5788
5789 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5790 if test "x$LINE" != x ; then
5791 eval "DEFAULT_$LINE"
5792 else
5793 no_cache=1
5794 fi
5795
5796 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5797
5798fi;
5799
5800 eval "$ac_cv_use_sound"
5801 if test "$no_cache" != 1; then
5802 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5803 fi
5804
5805 if test "$wxUSE_SOUND" = yes; then
5806 echo "$as_me:$LINENO: result: yes" >&5
5807echo "${ECHO_T}yes" >&6
5808 else
5809 echo "$as_me:$LINENO: result: no" >&5
5810echo "${ECHO_T}no" >&6
5811 fi
5812
5813
3b57de8b
RL
5814 enablestring=
5815 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
5816echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
5817 no_cache=0
5818 # Check whether --enable-mediactrl or --disable-mediactrl was given.
5819if test "${enable_mediactrl+set}" = set; then
5820 enableval="$enable_mediactrl"
5821
5822 if test "$enableval" = yes; then
5823 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
5824 else
5825 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
5826 fi
5827
5828else
5829
5830 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
5831 if test "x$LINE" != x ; then
5832 eval "DEFAULT_$LINE"
5833 else
5834 no_cache=1
5835 fi
5836
5837 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
5838
5839fi;
5840
5841 eval "$ac_cv_use_mediactrl"
5842 if test "$no_cache" != 1; then
5843 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
5844 fi
5845
5846 if test "$wxUSE_MEDIACTRL" = yes; then
5847 echo "$as_me:$LINENO: result: yes" >&5
5848echo "${ECHO_T}yes" >&6
5849 else
5850 echo "$as_me:$LINENO: result: no" >&5
5851echo "${ECHO_T}no" >&6
5852 fi
5853
5854
a848cd7e
SC
5855 enablestring=
5856 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5857echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
5858 no_cache=0
5859 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5860if test "${enable_wxprintfv+set}" = set; then
5861 enableval="$enable_wxprintfv"
5862
5863 if test "$enableval" = yes; then
5864 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5865 else
5866 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5867 fi
5868
5869else
5870
5871 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5872 if test "x$LINE" != x ; then
5873 eval "DEFAULT_$LINE"
5874 else
5875 no_cache=1
5876 fi
5877
5878 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
5879
5880fi;
5881
5882 eval "$ac_cv_use_wxprintfv"
5883 if test "$no_cache" != 1; then
5884 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5885 fi
5886
5887 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
5888 echo "$as_me:$LINENO: result: yes" >&5
5889echo "${ECHO_T}yes" >&6
5890 else
5891 echo "$as_me:$LINENO: result: no" >&5
5892echo "${ECHO_T}no" >&6
5893 fi
5894
5895
5896 enablestring=
5897 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5898echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
5899 no_cache=0
5900 # Check whether --enable-zipstream or --disable-zipstream was given.
5901if test "${enable_zipstream+set}" = set; then
5902 enableval="$enable_zipstream"
5903
5904 if test "$enableval" = yes; then
5905 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5906 else
5907 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5908 fi
5909
5910else
5911
5912 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
5913 if test "x$LINE" != x ; then
5914 eval "DEFAULT_$LINE"
5915 else
5916 no_cache=1
5917 fi
5918
5919 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
5920
5921fi;
5922
5923 eval "$ac_cv_use_zipstream"
5924 if test "$no_cache" != 1; then
5925 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
5926 fi
5927
5928 if test "$wxUSE_ZIPSTREAM" = yes; then
5929 echo "$as_me:$LINENO: result: yes" >&5
5930echo "${ECHO_T}yes" >&6
5931 else
5932 echo "$as_me:$LINENO: result: no" >&5
5933echo "${ECHO_T}no" >&6
5934 fi
5935
5936
a848cd7e
SC
5937
5938 enablestring=
5939 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5940echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
5941 no_cache=0
5942 # Check whether --enable-url or --disable-url was given.
5943if test "${enable_url+set}" = set; then
5944 enableval="$enable_url"
5945
5946 if test "$enableval" = yes; then
5947 ac_cv_use_url='wxUSE_URL=yes'
5948 else
5949 ac_cv_use_url='wxUSE_URL=no'
5950 fi
5951
5952else
5953
5954 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5955 if test "x$LINE" != x ; then
5956 eval "DEFAULT_$LINE"
5957 else
5958 no_cache=1
5959 fi
5960
5961 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
5962
5963fi;
5964
5965 eval "$ac_cv_use_url"
5966 if test "$no_cache" != 1; then
5967 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5968 fi
5969
5970 if test "$wxUSE_URL" = yes; then
5971 echo "$as_me:$LINENO: result: yes" >&5
5972echo "${ECHO_T}yes" >&6
5973 else
5974 echo "$as_me:$LINENO: result: no" >&5
5975echo "${ECHO_T}no" >&6
5976 fi
5977
5978
5979 enablestring=
5980 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5981echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
5982 no_cache=0
5983 # Check whether --enable-protocol or --disable-protocol was given.
5984if test "${enable_protocol+set}" = set; then
5985 enableval="$enable_protocol"
5986
5987 if test "$enableval" = yes; then
5988 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5989 else
5990 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5991 fi
5992
5993else
5994
5995 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5996 if test "x$LINE" != x ; then
5997 eval "DEFAULT_$LINE"
5998 else
5999 no_cache=1
6000 fi
6001
6002 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6003
6004fi;
6005
6006 eval "$ac_cv_use_protocol"
6007 if test "$no_cache" != 1; then
6008 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6009 fi
6010
6011 if test "$wxUSE_PROTOCOL" = yes; then
6012 echo "$as_me:$LINENO: result: yes" >&5
6013echo "${ECHO_T}yes" >&6
6014 else
6015 echo "$as_me:$LINENO: result: no" >&5
6016echo "${ECHO_T}no" >&6
6017 fi
6018
6019
6020 enablestring=
6021 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6022echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6023 no_cache=0
6024 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6025if test "${enable_protocol_http+set}" = set; then
6026 enableval="$enable_protocol_http"
6027
6028 if test "$enableval" = yes; then
6029 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6030 else
6031 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6032 fi
6033
6034else
6035
6036 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6037 if test "x$LINE" != x ; then
6038 eval "DEFAULT_$LINE"
6039 else
6040 no_cache=1
6041 fi
6042
6043 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6044
6045fi;
6046
6047 eval "$ac_cv_use_protocol_http"
6048 if test "$no_cache" != 1; then
6049 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6050 fi
6051
6052 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6053 echo "$as_me:$LINENO: result: yes" >&5
6054echo "${ECHO_T}yes" >&6
6055 else
6056 echo "$as_me:$LINENO: result: no" >&5
6057echo "${ECHO_T}no" >&6
6058 fi
6059
6060
6061 enablestring=
6062 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6063echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6064 no_cache=0
6065 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6066if test "${enable_protocol_ftp+set}" = set; then
6067 enableval="$enable_protocol_ftp"
6068
6069 if test "$enableval" = yes; then
6070 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6071 else
6072 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6073 fi
6074
6075else
6076
6077 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6078 if test "x$LINE" != x ; then
6079 eval "DEFAULT_$LINE"
6080 else
6081 no_cache=1
6082 fi
6083
6084 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6085
6086fi;
6087
6088 eval "$ac_cv_use_protocol_ftp"
6089 if test "$no_cache" != 1; then
6090 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6091 fi
6092
6093 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6094 echo "$as_me:$LINENO: result: yes" >&5
6095echo "${ECHO_T}yes" >&6
6096 else
6097 echo "$as_me:$LINENO: result: no" >&5
6098echo "${ECHO_T}no" >&6
6099 fi
6100
6101
6102 enablestring=
6103 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6104echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6105 no_cache=0
6106 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6107if test "${enable_protocol_file+set}" = set; then
6108 enableval="$enable_protocol_file"
6109
6110 if test "$enableval" = yes; then
6111 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6112 else
6113 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6114 fi
6115
6116else
6117
6118 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6119 if test "x$LINE" != x ; then
6120 eval "DEFAULT_$LINE"
6121 else
6122 no_cache=1
6123 fi
6124
6125 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6126
6127fi;
6128
6129 eval "$ac_cv_use_protocol_file"
6130 if test "$no_cache" != 1; then
6131 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6132 fi
6133
6134 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6135 echo "$as_me:$LINENO: result: yes" >&5
6136echo "${ECHO_T}yes" >&6
6137 else
6138 echo "$as_me:$LINENO: result: no" >&5
6139echo "${ECHO_T}no" >&6
6140 fi
6141
6142
6143
6144
6145
6146 enablestring=
6147 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6148echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6149 no_cache=0
6150 # Check whether --enable-threads or --disable-threads was given.
6151if test "${enable_threads+set}" = set; then
6152 enableval="$enable_threads"
6153
6154 if test "$enableval" = yes; then
6155 ac_cv_use_threads='wxUSE_THREADS=yes'
6156 else
6157 ac_cv_use_threads='wxUSE_THREADS=no'
6158 fi
6159
6160else
6161
6162 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6163 if test "x$LINE" != x ; then
6164 eval "DEFAULT_$LINE"
6165 else
6166 no_cache=1
6167 fi
6168
6169 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6170
6171fi;
6172
6173 eval "$ac_cv_use_threads"
6174 if test "$no_cache" != 1; then
6175 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6176 fi
6177
6178 if test "$wxUSE_THREADS" = yes; then
6179 echo "$as_me:$LINENO: result: yes" >&5
6180echo "${ECHO_T}yes" >&6
6181 else
6182 echo "$as_me:$LINENO: result: no" >&5
6183echo "${ECHO_T}no" >&6
6184 fi
6185
6186
6187if test "$wxUSE_GUI" = "yes"; then
6188
6189
6190
6191 enablestring=
6192 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6193echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6194 no_cache=0
6195 # Check whether --enable-docview or --disable-docview was given.
6196if test "${enable_docview+set}" = set; then
6197 enableval="$enable_docview"
6198
6199 if test "$enableval" = yes; then
6200 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6201 else
6202 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6203 fi
6204
6205else
6206
6207 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6208 if test "x$LINE" != x ; then
6209 eval "DEFAULT_$LINE"
6210 else
6211 no_cache=1
6212 fi
6213
6214 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6215
6216fi;
6217
6218 eval "$ac_cv_use_docview"
6219 if test "$no_cache" != 1; then
6220 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6221 fi
6222
6223 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6224 echo "$as_me:$LINENO: result: yes" >&5
6225echo "${ECHO_T}yes" >&6
6226 else
6227 echo "$as_me:$LINENO: result: no" >&5
6228echo "${ECHO_T}no" >&6
6229 fi
6230
6231
6232 enablestring=
6233 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6234echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6235 no_cache=0
6236 # Check whether --enable-help or --disable-help was given.
6237if test "${enable_help+set}" = set; then
6238 enableval="$enable_help"
6239
6240 if test "$enableval" = yes; then
6241 ac_cv_use_help='wxUSE_HELP=yes'
6242 else
6243 ac_cv_use_help='wxUSE_HELP=no'
6244 fi
6245
6246else
6247
6248 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6249 if test "x$LINE" != x ; then
6250 eval "DEFAULT_$LINE"
6251 else
6252 no_cache=1
6253 fi
6254
6255 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6256
6257fi;
6258
6259 eval "$ac_cv_use_help"
6260 if test "$no_cache" != 1; then
6261 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6262 fi
6263
6264 if test "$wxUSE_HELP" = yes; then
6265 echo "$as_me:$LINENO: result: yes" >&5
6266echo "${ECHO_T}yes" >&6
6267 else
6268 echo "$as_me:$LINENO: result: no" >&5
6269echo "${ECHO_T}no" >&6
6270 fi
6271
6272
6273 enablestring=
6274 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6275echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6276 no_cache=0
6277 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6278if test "${enable_mshtmlhelp+set}" = set; then
6279 enableval="$enable_mshtmlhelp"
6280
6281 if test "$enableval" = yes; then
6282 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6283 else
6284 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6285 fi
6286
6287else
6288
6289 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6290 if test "x$LINE" != x ; then
6291 eval "DEFAULT_$LINE"
6292 else
6293 no_cache=1
6294 fi
6295
6296 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6297
6298fi;
6299
6300 eval "$ac_cv_use_mshtmlhelp"
6301 if test "$no_cache" != 1; then
6302 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6303 fi
6304
6305 if test "$wxUSE_MS_HTML_HELP" = yes; then
6306 echo "$as_me:$LINENO: result: yes" >&5
6307echo "${ECHO_T}yes" >&6
6308 else
6309 echo "$as_me:$LINENO: result: no" >&5
6310echo "${ECHO_T}no" >&6
6311 fi
6312
6313
6314 enablestring=
6315 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6316echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6317 no_cache=0
6318 # Check whether --enable-html or --disable-html was given.
6319if test "${enable_html+set}" = set; then
6320 enableval="$enable_html"
6321
6322 if test "$enableval" = yes; then
6323 ac_cv_use_html='wxUSE_HTML=yes'
6324 else
6325 ac_cv_use_html='wxUSE_HTML=no'
6326 fi
6327
6328else
6329
6330 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6331 if test "x$LINE" != x ; then
6332 eval "DEFAULT_$LINE"
6333 else
6334 no_cache=1
6335 fi
6336
6337 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6338
6339fi;
6340
6341 eval "$ac_cv_use_html"
6342 if test "$no_cache" != 1; then
6343 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6344 fi
6345
6346 if test "$wxUSE_HTML" = yes; then
6347 echo "$as_me:$LINENO: result: yes" >&5
6348echo "${ECHO_T}yes" >&6
6349 else
6350 echo "$as_me:$LINENO: result: no" >&5
6351echo "${ECHO_T}no" >&6
6352 fi
6353
6354
6355 enablestring=
6356 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6357echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6358 no_cache=0
6359 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6360if test "${enable_htmlhelp+set}" = set; then
6361 enableval="$enable_htmlhelp"
6362
6363 if test "$enableval" = yes; then
6364 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6365 else
6366 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6367 fi
6368
6369else
6370
6371 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6372 if test "x$LINE" != x ; then
6373 eval "DEFAULT_$LINE"
6374 else
6375 no_cache=1
6376 fi
6377
6378 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6379
6380fi;
6381
6382 eval "$ac_cv_use_htmlhelp"
6383 if test "$no_cache" != 1; then
6384 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6385 fi
6386
6387 if test "$wxUSE_WXHTML_HELP" = yes; then
6388 echo "$as_me:$LINENO: result: yes" >&5
6389echo "${ECHO_T}yes" >&6
6390 else
6391 echo "$as_me:$LINENO: result: no" >&5
6392echo "${ECHO_T}no" >&6
6393 fi
6394
6395
9a8f0513
VS
6396 enablestring=
6397 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6398echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6399 no_cache=0
6400 # Check whether --enable-xrc or --disable-xrc was given.
6401if test "${enable_xrc+set}" = set; then
6402 enableval="$enable_xrc"
6403
6404 if test "$enableval" = yes; then
6405 ac_cv_use_xrc='wxUSE_XRC=yes'
6406 else
6407 ac_cv_use_xrc='wxUSE_XRC=no'
6408 fi
6409
6410else
6411
6412 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6413 if test "x$LINE" != x ; then
6414 eval "DEFAULT_$LINE"
6415 else
6416 no_cache=1
6417 fi
6418
6419 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6420
6421fi;
6422
6423 eval "$ac_cv_use_xrc"
6424 if test "$no_cache" != 1; then
6425 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6426 fi
6427
6428 if test "$wxUSE_XRC" = yes; then
6429 echo "$as_me:$LINENO: result: yes" >&5
6430echo "${ECHO_T}yes" >&6
6431 else
6432 echo "$as_me:$LINENO: result: no" >&5
6433echo "${ECHO_T}no" >&6
6434 fi
6435
6436
a848cd7e
SC
6437 enablestring=
6438 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6439echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6440 no_cache=0
6441 # Check whether --enable-constraints or --disable-constraints was given.
6442if test "${enable_constraints+set}" = set; then
6443 enableval="$enable_constraints"
6444
6445 if test "$enableval" = yes; then
6446 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6447 else
6448 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6449 fi
6450
6451else
6452
6453 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6454 if test "x$LINE" != x ; then
6455 eval "DEFAULT_$LINE"
6456 else
6457 no_cache=1
6458 fi
6459
6460 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6461
6462fi;
6463
6464 eval "$ac_cv_use_constraints"
6465 if test "$no_cache" != 1; then
6466 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6467 fi
6468
6469 if test "$wxUSE_CONSTRAINTS" = yes; then
6470 echo "$as_me:$LINENO: result: yes" >&5
6471echo "${ECHO_T}yes" >&6
6472 else
6473 echo "$as_me:$LINENO: result: no" >&5
6474echo "${ECHO_T}no" >&6
6475 fi
6476
6477
6478 enablestring=
6479 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6480echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6481 no_cache=0
6482 # Check whether --enable-printarch or --disable-printarch was given.
6483if test "${enable_printarch+set}" = set; then
6484 enableval="$enable_printarch"
6485
6486 if test "$enableval" = yes; then
6487 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6488 else
6489 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6490 fi
6491
6492else
6493
6494 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6495 if test "x$LINE" != x ; then
6496 eval "DEFAULT_$LINE"
6497 else
6498 no_cache=1
6499 fi
6500
6501 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6502
6503fi;
6504
6505 eval "$ac_cv_use_printarch"
6506 if test "$no_cache" != 1; then
6507 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6508 fi
6509
6510 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6511 echo "$as_me:$LINENO: result: yes" >&5
6512echo "${ECHO_T}yes" >&6
6513 else
6514 echo "$as_me:$LINENO: result: no" >&5
6515echo "${ECHO_T}no" >&6
6516 fi
6517
6518
6519 enablestring=
6520 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6521echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6522 no_cache=0
6523 # Check whether --enable-mdi or --disable-mdi was given.
6524if test "${enable_mdi+set}" = set; then
6525 enableval="$enable_mdi"
6526
6527 if test "$enableval" = yes; then
8a7b1113 6528 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6529 else
8a7b1113 6530 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6531 fi
6532
6533else
6534
8a7b1113 6535 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6536 if test "x$LINE" != x ; then
6537 eval "DEFAULT_$LINE"
6538 else
6539 no_cache=1
6540 fi
6541
8a7b1113 6542 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6543
6544fi;
6545
6546 eval "$ac_cv_use_mdi"
6547 if test "$no_cache" != 1; then
6548 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6549 fi
6550
8a7b1113
VZ
6551 if test "$wxUSE_MDI" = yes; then
6552 echo "$as_me:$LINENO: result: yes" >&5
6553echo "${ECHO_T}yes" >&6
6554 else
6555 echo "$as_me:$LINENO: result: no" >&5
6556echo "${ECHO_T}no" >&6
6557 fi
6558
6559
6560 enablestring=
6561 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6562echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6563 no_cache=0
6564 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6565if test "${enable_mdidoc+set}" = set; then
6566 enableval="$enable_mdidoc"
6567
6568 if test "$enableval" = yes; then
6569 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6570 else
6571 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6572 fi
6573
6574else
6575
6576 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6577 if test "x$LINE" != x ; then
6578 eval "DEFAULT_$LINE"
6579 else
6580 no_cache=1
6581 fi
6582
6583 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6584
6585fi;
6586
6587 eval "$ac_cv_use_mdidoc"
6588 if test "$no_cache" != 1; then
6589 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6590 fi
6591
a848cd7e
SC
6592 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6593 echo "$as_me:$LINENO: result: yes" >&5
6594echo "${ECHO_T}yes" >&6
6595 else
6596 echo "$as_me:$LINENO: result: no" >&5
6597echo "${ECHO_T}no" >&6
6598 fi
6599
6600
6601 enablestring=
6602 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6603echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6604 no_cache=0
6605 # Check whether --enable-loggui or --disable-loggui was given.
6606if test "${enable_loggui+set}" = set; then
6607 enableval="$enable_loggui"
6608
6609 if test "$enableval" = yes; then
6610 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6611 else
6612 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6613 fi
6614
6615else
6616
6617 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6618 if test "x$LINE" != x ; then
6619 eval "DEFAULT_$LINE"
6620 else
6621 no_cache=1
6622 fi
6623
6624 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6625
6626fi;
6627
6628 eval "$ac_cv_use_loggui"
6629 if test "$no_cache" != 1; then
6630 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6631 fi
6632
6633 if test "$wxUSE_LOGGUI" = yes; then
6634 echo "$as_me:$LINENO: result: yes" >&5
6635echo "${ECHO_T}yes" >&6
6636 else
6637 echo "$as_me:$LINENO: result: no" >&5
6638echo "${ECHO_T}no" >&6
6639 fi
6640
6641
6642 enablestring=
6643 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6644echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6645 no_cache=0
6646 # Check whether --enable-logwin or --disable-logwin was given.
6647if test "${enable_logwin+set}" = set; then
6648 enableval="$enable_logwin"
6649
6650 if test "$enableval" = yes; then
6651 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6652 else
6653 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6654 fi
6655
6656else
6657
6658 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6659 if test "x$LINE" != x ; then
6660 eval "DEFAULT_$LINE"
6661 else
6662 no_cache=1
6663 fi
6664
6665 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6666
6667fi;
6668
6669 eval "$ac_cv_use_logwin"
6670 if test "$no_cache" != 1; then
6671 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6672 fi
6673
6674 if test "$wxUSE_LOGWINDOW" = yes; then
6675 echo "$as_me:$LINENO: result: yes" >&5
6676echo "${ECHO_T}yes" >&6
6677 else
6678 echo "$as_me:$LINENO: result: no" >&5
6679echo "${ECHO_T}no" >&6
6680 fi
6681
6682
6683 enablestring=
6684 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6685echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6686 no_cache=0
6687 # Check whether --enable-logdialog or --disable-logdialog was given.
6688if test "${enable_logdialog+set}" = set; then
6689 enableval="$enable_logdialog"
6690
6691 if test "$enableval" = yes; then
6692 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6693 else
6694 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6695 fi
6696
6697else
6698
6699 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6700 if test "x$LINE" != x ; then
6701 eval "DEFAULT_$LINE"
6702 else
6703 no_cache=1
6704 fi
6705
6706 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6707
6708fi;
6709
6710 eval "$ac_cv_use_logdialog"
6711 if test "$no_cache" != 1; then
6712 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6713 fi
6714
6715 if test "$wxUSE_LOGDIALOG" = yes; then
6716 echo "$as_me:$LINENO: result: yes" >&5
6717echo "${ECHO_T}yes" >&6
6718 else
6719 echo "$as_me:$LINENO: result: no" >&5
6720echo "${ECHO_T}no" >&6
6721 fi
6722
6723
646b6ec1
VS
6724 enablestring=
6725 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6726echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6727 no_cache=0
6728 # Check whether --enable-webkit or --disable-webkit was given.
6729if test "${enable_webkit+set}" = set; then
6730 enableval="$enable_webkit"
6731
6732 if test "$enableval" = yes; then
6733 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6734 else
6735 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6736 fi
6737
6738else
6739
6740 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6741 if test "x$LINE" != x ; then
6742 eval "DEFAULT_$LINE"
6743 else
6744 no_cache=1
6745 fi
6746
6747 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6748
6749fi;
6750
6751 eval "$ac_cv_use_webkit"
6752 if test "$no_cache" != 1; then
6753 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6754 fi
6755
6756 if test "$wxUSE_WEBKIT" = yes; then
6757 echo "$as_me:$LINENO: result: yes" >&5
6758echo "${ECHO_T}yes" >&6
6759 else
6760 echo "$as_me:$LINENO: result: no" >&5
6761echo "${ECHO_T}no" >&6
6762 fi
6763
6764
a848cd7e
SC
6765
6766 enablestring=
6767 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6768echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6769 no_cache=0
6770 # Check whether --enable-postscript or --disable-postscript was given.
6771if test "${enable_postscript+set}" = set; then
6772 enableval="$enable_postscript"
6773
6774 if test "$enableval" = yes; then
6775 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6776 else
6777 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6778 fi
6779
6780else
6781
6782 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6783 if test "x$LINE" != x ; then
6784 eval "DEFAULT_$LINE"
6785 else
6786 no_cache=1
6787 fi
6788
6789 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6790
6791fi;
6792
6793 eval "$ac_cv_use_postscript"
6794 if test "$no_cache" != 1; then
6795 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6796 fi
6797
6798 if test "$wxUSE_POSTSCRIPT" = yes; then
6799 echo "$as_me:$LINENO: result: yes" >&5
6800echo "${ECHO_T}yes" >&6
6801 else
6802 echo "$as_me:$LINENO: result: no" >&5
6803echo "${ECHO_T}no" >&6
6804 fi
6805
6806
6807
6808
6809
6810 enablestring=
6811 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6812echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
6813 no_cache=0
6814 # Check whether --enable-prologio or --disable-prologio was given.
6815if test "${enable_prologio+set}" = set; then
6816 enableval="$enable_prologio"
6817
6818 if test "$enableval" = yes; then
6819 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
6820 else
6821 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
6822 fi
6823
6824else
6825
6826 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
6827 if test "x$LINE" != x ; then
6828 eval "DEFAULT_$LINE"
6829 else
6830 no_cache=1
6831 fi
6832
6833 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
6834
6835fi;
6836
6837 eval "$ac_cv_use_prologio"
6838 if test "$no_cache" != 1; then
6839 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
6840 fi
6841
6842 if test "$wxUSE_PROLOGIO" = yes; then
6843 echo "$as_me:$LINENO: result: yes" >&5
6844echo "${ECHO_T}yes" >&6
6845 else
6846 echo "$as_me:$LINENO: result: no" >&5
6847echo "${ECHO_T}no" >&6
6848 fi
6849
6850
6851 enablestring=
6852 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6853echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
6854 no_cache=0
6855 # Check whether --enable-resources or --disable-resources was given.
6856if test "${enable_resources+set}" = set; then
6857 enableval="$enable_resources"
6858
6859 if test "$enableval" = yes; then
6860 ac_cv_use_resources='wxUSE_RESOURCES=yes'
6861 else
6862 ac_cv_use_resources='wxUSE_RESOURCES=no'
6863 fi
6864
6865else
6866
6867 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
6868 if test "x$LINE" != x ; then
6869 eval "DEFAULT_$LINE"
6870 else
6871 no_cache=1
6872 fi
6873
6874 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
6875
6876fi;
6877
6878 eval "$ac_cv_use_resources"
6879 if test "$no_cache" != 1; then
6880 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
6881 fi
6882
6883 if test "$wxUSE_RESOURCES" = yes; then
6884 echo "$as_me:$LINENO: result: yes" >&5
6885echo "${ECHO_T}yes" >&6
6886 else
6887 echo "$as_me:$LINENO: result: no" >&5
6888echo "${ECHO_T}no" >&6
6889 fi
6890
6891
6892
6893
6894 enablestring=
6895 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6896echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
6897 no_cache=0
6898 # Check whether --enable-clipboard or --disable-clipboard was given.
6899if test "${enable_clipboard+set}" = set; then
6900 enableval="$enable_clipboard"
6901
6902 if test "$enableval" = yes; then
6903 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6904 else
6905 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6906 fi
6907
6908else
6909
6910 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6911 if test "x$LINE" != x ; then
6912 eval "DEFAULT_$LINE"
6913 else
6914 no_cache=1
6915 fi
6916
6917 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
6918
6919fi;
6920
6921 eval "$ac_cv_use_clipboard"
6922 if test "$no_cache" != 1; then
6923 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6924 fi
6925
6926 if test "$wxUSE_CLIPBOARD" = yes; then
6927 echo "$as_me:$LINENO: result: yes" >&5
6928echo "${ECHO_T}yes" >&6
6929 else
6930 echo "$as_me:$LINENO: result: no" >&5
6931echo "${ECHO_T}no" >&6
6932 fi
6933
6934
6935 enablestring=
6936 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6937echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
6938 no_cache=0
6939 # Check whether --enable-dnd or --disable-dnd was given.
6940if test "${enable_dnd+set}" = set; then
6941 enableval="$enable_dnd"
6942
6943 if test "$enableval" = yes; then
6944 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6945 else
6946 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6947 fi
6948
6949else
6950
6951 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6952 if test "x$LINE" != x ; then
6953 eval "DEFAULT_$LINE"
6954 else
6955 no_cache=1
6956 fi
6957
6958 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
6959
6960fi;
6961
6962 eval "$ac_cv_use_dnd"
6963 if test "$no_cache" != 1; then
6964 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6965 fi
6966
6967 if test "$wxUSE_DRAG_AND_DROP" = yes; then
6968 echo "$as_me:$LINENO: result: yes" >&5
6969echo "${ECHO_T}yes" >&6
6970 else
6971 echo "$as_me:$LINENO: result: no" >&5
6972echo "${ECHO_T}no" >&6
6973 fi
6974
6975
6976 enablestring=
6977 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6978echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
6979 no_cache=0
6980 # Check whether --enable-metafile or --disable-metafile was given.
6981if test "${enable_metafile+set}" = set; then
6982 enableval="$enable_metafile"
6983
6984 if test "$enableval" = yes; then
6985 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6986 else
6987 ac_cv_use_metafile='wxUSE_METAFILE=no'
6988 fi
6989
6990else
6991
6992 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6993 if test "x$LINE" != x ; then
6994 eval "DEFAULT_$LINE"
6995 else
6996 no_cache=1
6997 fi
6998
6999 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7000
7001fi;
7002
7003 eval "$ac_cv_use_metafile"
7004 if test "$no_cache" != 1; then
7005 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7006 fi
7007
7008 if test "$wxUSE_METAFILE" = yes; then
7009 echo "$as_me:$LINENO: result: yes" >&5
7010echo "${ECHO_T}yes" >&6
7011 else
7012 echo "$as_me:$LINENO: result: no" >&5
7013echo "${ECHO_T}no" >&6
7014 fi
7015
7016
7017
7018
7019
7020 enablestring=
7021 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7022echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7023 no_cache=0
7024 # Check whether --enable-controls or --disable-controls was given.
7025if test "${enable_controls+set}" = set; then
7026 enableval="$enable_controls"
7027
7028 if test "$enableval" = yes; then
7029 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7030 else
7031 ac_cv_use_controls='wxUSE_CONTROLS=no'
7032 fi
7033
7034else
7035
7036 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7037 if test "x$LINE" != x ; then
7038 eval "DEFAULT_$LINE"
7039 else
7040 no_cache=1
7041 fi
7042
7043 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7044
7045fi;
7046
7047 eval "$ac_cv_use_controls"
7048 if test "$no_cache" != 1; then
7049 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7050 fi
7051
7052 if test "$wxUSE_CONTROLS" = yes; then
7053 echo "$as_me:$LINENO: result: yes" >&5
7054echo "${ECHO_T}yes" >&6
7055 else
7056 echo "$as_me:$LINENO: result: no" >&5
7057echo "${ECHO_T}no" >&6
7058 fi
7059
7060
7061if test "$wxUSE_CONTROLS" = "yes"; then
7062 DEFAULT_wxUSE_ACCEL=yes
7063 DEFAULT_wxUSE_BMPBUTTON=yes
7064 DEFAULT_wxUSE_BUTTON=yes
7065 DEFAULT_wxUSE_CALCTRL=no
7066 DEFAULT_wxUSE_CARET=yes
7067 DEFAULT_wxUSE_COMBOBOX=yes
7068 DEFAULT_wxUSE_CHECKBOX=yes
7069 DEFAULT_wxUSE_CHECKLISTBOX=yes
7070 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7071 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e
SC
7072 DEFAULT_wxUSE_GAUGE=yes
7073 DEFAULT_wxUSE_GRID=yes
7074 DEFAULT_wxUSE_IMAGLIST=yes
7075 DEFAULT_wxUSE_LISTBOOK=yes
7076 DEFAULT_wxUSE_LISTBOX=yes
7077 DEFAULT_wxUSE_LISTCTRL=yes
7078 DEFAULT_wxUSE_NOTEBOOK=yes
7079 DEFAULT_wxUSE_RADIOBOX=yes
7080 DEFAULT_wxUSE_RADIOBTN=yes
7081 DEFAULT_wxUSE_SASH=yes
7082 DEFAULT_wxUSE_SCROLLBAR=yes
7083 DEFAULT_wxUSE_SLIDER=yes
7084 DEFAULT_wxUSE_SPINBTN=yes
7085 DEFAULT_wxUSE_SPINCTRL=yes
7086 DEFAULT_wxUSE_SPLITTER=yes
7087 DEFAULT_wxUSE_STATBMP=yes
7088 DEFAULT_wxUSE_STATBOX=yes
7089 DEFAULT_wxUSE_STATLINE=yes
7090 DEFAULT_wxUSE_STATUSBAR=yes
7091 DEFAULT_wxUSE_TAB_DIALOG=yes
7092 DEFAULT_wxUSE_TOGGLEBTN=yes
7093 DEFAULT_wxUSE_TOOLBAR=yes
7094 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7095 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7096 DEFAULT_wxUSE_TOOLTIPS=yes
7097 DEFAULT_wxUSE_TREECTRL=yes
7098 DEFAULT_wxUSE_POPUPWIN=yes
7099 DEFAULT_wxUSE_TIPWINDOW=yes
7100elif test "$wxUSE_CONTROLS" = "no"; then
7101 DEFAULT_wxUSE_ACCEL=no
7102 DEFAULT_wxUSE_BMPBUTTON=no
7103 DEFAULT_wxUSE_BUTTON=no
7104 DEFAULT_wxUSE_CALCTRL=no
7105 DEFAULT_wxUSE_CARET=no
7106 DEFAULT_wxUSE_COMBOBOX=no
7107 DEFAULT_wxUSE_CHECKBOX=no
7108 DEFAULT_wxUSE_CHECKLISTBOX=no
7109 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7110 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e
SC
7111 DEFAULT_wxUSE_GAUGE=no
7112 DEFAULT_wxUSE_GRID=no
7113 DEFAULT_wxUSE_IMAGLIST=no
7114 DEFAULT_wxUSE_LISTBOOK=no
7115 DEFAULT_wxUSE_LISTBOX=no
7116 DEFAULT_wxUSE_LISTCTRL=no
7117 DEFAULT_wxUSE_NOTEBOOK=no
7118 DEFAULT_wxUSE_RADIOBOX=no
7119 DEFAULT_wxUSE_RADIOBTN=no
7120 DEFAULT_wxUSE_SASH=no
7121 DEFAULT_wxUSE_SCROLLBAR=no
7122 DEFAULT_wxUSE_SLIDER=no
7123 DEFAULT_wxUSE_SPINBTN=no
7124 DEFAULT_wxUSE_SPINCTRL=no
7125 DEFAULT_wxUSE_SPLITTER=no
7126 DEFAULT_wxUSE_STATBMP=no
7127 DEFAULT_wxUSE_STATBOX=no
7128 DEFAULT_wxUSE_STATLINE=no
7129 DEFAULT_wxUSE_STATUSBAR=no
7130 DEFAULT_wxUSE_TAB_DIALOG=no
7131 DEFAULT_wxUSE_TOGGLEBTN=no
7132 DEFAULT_wxUSE_TOOLBAR=no
7133 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7134 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7135 DEFAULT_wxUSE_TOOLTIPS=no
7136 DEFAULT_wxUSE_TREECTRL=no
7137 DEFAULT_wxUSE_POPUPWIN=no
7138 DEFAULT_wxUSE_TIPWINDOW=no
7139fi
7140
a848cd7e
SC
7141
7142 enablestring=
7143 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7144echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7145 no_cache=0
7146 # Check whether --enable-accel or --disable-accel was given.
7147if test "${enable_accel+set}" = set; then
7148 enableval="$enable_accel"
7149
7150 if test "$enableval" = yes; then
7151 ac_cv_use_accel='wxUSE_ACCEL=yes'
7152 else
7153 ac_cv_use_accel='wxUSE_ACCEL=no'
7154 fi
7155
7156else
7157
7158 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7159 if test "x$LINE" != x ; then
7160 eval "DEFAULT_$LINE"
7161 else
7162 no_cache=1
7163 fi
7164
7165 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7166
7167fi;
7168
7169 eval "$ac_cv_use_accel"
7170 if test "$no_cache" != 1; then
7171 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7172 fi
7173
7174 if test "$wxUSE_ACCEL" = yes; then
7175 echo "$as_me:$LINENO: result: yes" >&5
7176echo "${ECHO_T}yes" >&6
7177 else
7178 echo "$as_me:$LINENO: result: no" >&5
7179echo "${ECHO_T}no" >&6
7180 fi
7181
7182
7183 enablestring=
7184 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7185echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7186 no_cache=0
7187 # Check whether --enable-button or --disable-button was given.
7188if test "${enable_button+set}" = set; then
7189 enableval="$enable_button"
7190
7191 if test "$enableval" = yes; then
7192 ac_cv_use_button='wxUSE_BUTTON=yes'
7193 else
7194 ac_cv_use_button='wxUSE_BUTTON=no'
7195 fi
7196
7197else
7198
7199 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7200 if test "x$LINE" != x ; then
7201 eval "DEFAULT_$LINE"
7202 else
7203 no_cache=1
7204 fi
7205
7206 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7207
7208fi;
7209
7210 eval "$ac_cv_use_button"
7211 if test "$no_cache" != 1; then
7212 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7213 fi
7214
7215 if test "$wxUSE_BUTTON" = yes; then
7216 echo "$as_me:$LINENO: result: yes" >&5
7217echo "${ECHO_T}yes" >&6
7218 else
7219 echo "$as_me:$LINENO: result: no" >&5
7220echo "${ECHO_T}no" >&6
7221 fi
7222
7223
7224 enablestring=
7225 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7226echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7227 no_cache=0
7228 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7229if test "${enable_bmpbutton+set}" = set; then
7230 enableval="$enable_bmpbutton"
7231
7232 if test "$enableval" = yes; then
7233 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7234 else
7235 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7236 fi
7237
7238else
7239
7240 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7241 if test "x$LINE" != x ; then
7242 eval "DEFAULT_$LINE"
7243 else
7244 no_cache=1
7245 fi
7246
7247 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7248
7249fi;
7250
7251 eval "$ac_cv_use_bmpbutton"
7252 if test "$no_cache" != 1; then
7253 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7254 fi
7255
7256 if test "$wxUSE_BMPBUTTON" = yes; then
7257 echo "$as_me:$LINENO: result: yes" >&5
7258echo "${ECHO_T}yes" >&6
7259 else
7260 echo "$as_me:$LINENO: result: no" >&5
7261echo "${ECHO_T}no" >&6
7262 fi
7263
7264
7265 enablestring=
7266 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7267echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7268 no_cache=0
7269 # Check whether --enable-calendar or --disable-calendar was given.
7270if test "${enable_calendar+set}" = set; then
7271 enableval="$enable_calendar"
7272
7273 if test "$enableval" = yes; then
7274 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7275 else
7276 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7277 fi
7278
7279else
7280
7281 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7282 if test "x$LINE" != x ; then
7283 eval "DEFAULT_$LINE"
7284 else
7285 no_cache=1
7286 fi
7287
7288 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7289
7290fi;
7291
7292 eval "$ac_cv_use_calendar"
7293 if test "$no_cache" != 1; then
7294 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7295 fi
7296
7297 if test "$wxUSE_CALCTRL" = yes; then
7298 echo "$as_me:$LINENO: result: yes" >&5
7299echo "${ECHO_T}yes" >&6
7300 else
7301 echo "$as_me:$LINENO: result: no" >&5
7302echo "${ECHO_T}no" >&6
7303 fi
7304
7305
7306 enablestring=
7307 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7308echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7309 no_cache=0
7310 # Check whether --enable-caret or --disable-caret was given.
7311if test "${enable_caret+set}" = set; then
7312 enableval="$enable_caret"
7313
7314 if test "$enableval" = yes; then
7315 ac_cv_use_caret='wxUSE_CARET=yes'
7316 else
7317 ac_cv_use_caret='wxUSE_CARET=no'
7318 fi
7319
7320else
7321
7322 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7323 if test "x$LINE" != x ; then
7324 eval "DEFAULT_$LINE"
7325 else
7326 no_cache=1
7327 fi
7328
7329 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7330
7331fi;
7332
7333 eval "$ac_cv_use_caret"
7334 if test "$no_cache" != 1; then
7335 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7336 fi
7337
7338 if test "$wxUSE_CARET" = yes; then
7339 echo "$as_me:$LINENO: result: yes" >&5
7340echo "${ECHO_T}yes" >&6
7341 else
7342 echo "$as_me:$LINENO: result: no" >&5
7343echo "${ECHO_T}no" >&6
7344 fi
7345
7346
7347 enablestring=
7348 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7349echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7350 no_cache=0
7351 # Check whether --enable-checkbox or --disable-checkbox was given.
7352if test "${enable_checkbox+set}" = set; then
7353 enableval="$enable_checkbox"
7354
7355 if test "$enableval" = yes; then
7356 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7357 else
7358 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7359 fi
7360
7361else
7362
7363 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7364 if test "x$LINE" != x ; then
7365 eval "DEFAULT_$LINE"
7366 else
7367 no_cache=1
7368 fi
7369
7370 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7371
7372fi;
7373
7374 eval "$ac_cv_use_checkbox"
7375 if test "$no_cache" != 1; then
7376 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7377 fi
7378
7379 if test "$wxUSE_CHECKBOX" = yes; then
7380 echo "$as_me:$LINENO: result: yes" >&5
7381echo "${ECHO_T}yes" >&6
7382 else
7383 echo "$as_me:$LINENO: result: no" >&5
7384echo "${ECHO_T}no" >&6
7385 fi
7386
7387
7388 enablestring=
7389 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7390echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7391 no_cache=0
7392 # Check whether --enable-checklst or --disable-checklst was given.
7393if test "${enable_checklst+set}" = set; then
7394 enableval="$enable_checklst"
7395
7396 if test "$enableval" = yes; then
7397 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7398 else
7399 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7400 fi
7401
7402else
7403
7404 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7405 if test "x$LINE" != x ; then
7406 eval "DEFAULT_$LINE"
7407 else
7408 no_cache=1
7409 fi
7410
7411 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7412
7413fi;
7414
7415 eval "$ac_cv_use_checklst"
7416 if test "$no_cache" != 1; then
7417 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7418 fi
7419
7420 if test "$wxUSE_CHECKLST" = yes; then
7421 echo "$as_me:$LINENO: result: yes" >&5
7422echo "${ECHO_T}yes" >&6
7423 else
7424 echo "$as_me:$LINENO: result: no" >&5
7425echo "${ECHO_T}no" >&6
7426 fi
7427
7428
7429 enablestring=
7430 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7431echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7432 no_cache=0
7433 # Check whether --enable-choice or --disable-choice was given.
7434if test "${enable_choice+set}" = set; then
7435 enableval="$enable_choice"
7436
7437 if test "$enableval" = yes; then
7438 ac_cv_use_choice='wxUSE_CHOICE=yes'
7439 else
7440 ac_cv_use_choice='wxUSE_CHOICE=no'
7441 fi
7442
7443else
7444
7445 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7446 if test "x$LINE" != x ; then
7447 eval "DEFAULT_$LINE"
7448 else
7449 no_cache=1
7450 fi
7451
7452 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7453
7454fi;
7455
7456 eval "$ac_cv_use_choice"
7457 if test "$no_cache" != 1; then
7458 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7459 fi
7460
7461 if test "$wxUSE_CHOICE" = yes; then
7462 echo "$as_me:$LINENO: result: yes" >&5
7463echo "${ECHO_T}yes" >&6
7464 else
7465 echo "$as_me:$LINENO: result: no" >&5
7466echo "${ECHO_T}no" >&6
7467 fi
7468
7469
92bbdbcd
WS
7470 enablestring=
7471 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7472echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7473 no_cache=0
7474 # Check whether --enable-choicebook or --disable-choicebook was given.
7475if test "${enable_choicebook+set}" = set; then
7476 enableval="$enable_choicebook"
7477
7478 if test "$enableval" = yes; then
7479 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7480 else
7481 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7482 fi
7483
7484else
7485
7486 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7487 if test "x$LINE" != x ; then
7488 eval "DEFAULT_$LINE"
7489 else
7490 no_cache=1
7491 fi
7492
7493 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7494
7495fi;
7496
7497 eval "$ac_cv_use_choicebook"
7498 if test "$no_cache" != 1; then
7499 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7500 fi
7501
7502 if test "$wxUSE_CHOICEBOOK" = yes; then
7503 echo "$as_me:$LINENO: result: yes" >&5
7504echo "${ECHO_T}yes" >&6
7505 else
7506 echo "$as_me:$LINENO: result: no" >&5
7507echo "${ECHO_T}no" >&6
7508 fi
7509
7510
a848cd7e
SC
7511 enablestring=
7512 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7513echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7514 no_cache=0
7515 # Check whether --enable-combobox or --disable-combobox was given.
7516if test "${enable_combobox+set}" = set; then
7517 enableval="$enable_combobox"
7518
7519 if test "$enableval" = yes; then
7520 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7521 else
7522 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7523 fi
7524
7525else
7526
7527 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7528 if test "x$LINE" != x ; then
7529 eval "DEFAULT_$LINE"
7530 else
7531 no_cache=1
7532 fi
7533
7534 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7535
7536fi;
7537
7538 eval "$ac_cv_use_combobox"
7539 if test "$no_cache" != 1; then
7540 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7541 fi
7542
7543 if test "$wxUSE_COMBOBOX" = yes; then
7544 echo "$as_me:$LINENO: result: yes" >&5
7545echo "${ECHO_T}yes" >&6
7546 else
7547 echo "$as_me:$LINENO: result: no" >&5
7548echo "${ECHO_T}no" >&6
7549 fi
7550
7551
7552 enablestring=
7553 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7554echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7555 no_cache=0
7556 # Check whether --enable-display or --disable-display was given.
7557if test "${enable_display+set}" = set; then
7558 enableval="$enable_display"
7559
7560 if test "$enableval" = yes; then
7561 ac_cv_use_display='wxUSE_DISPLAY=yes'
7562 else
7563 ac_cv_use_display='wxUSE_DISPLAY=no'
7564 fi
7565
7566else
7567
7568 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7569 if test "x$LINE" != x ; then
7570 eval "DEFAULT_$LINE"
7571 else
7572 no_cache=1
7573 fi
7574
7575 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7576
7577fi;
7578
7579 eval "$ac_cv_use_display"
7580 if test "$no_cache" != 1; then
7581 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7582 fi
7583
7584 if test "$wxUSE_DISPLAY" = yes; then
7585 echo "$as_me:$LINENO: result: yes" >&5
7586echo "${ECHO_T}yes" >&6
7587 else
7588 echo "$as_me:$LINENO: result: no" >&5
7589echo "${ECHO_T}no" >&6
7590 fi
7591
7592
7593 enablestring=
7594 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7595echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7596 no_cache=0
7597 # Check whether --enable-gauge or --disable-gauge was given.
7598if test "${enable_gauge+set}" = set; then
7599 enableval="$enable_gauge"
7600
7601 if test "$enableval" = yes; then
7602 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7603 else
7604 ac_cv_use_gauge='wxUSE_GAUGE=no'
7605 fi
7606
7607else
7608
7609 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7610 if test "x$LINE" != x ; then
7611 eval "DEFAULT_$LINE"
7612 else
7613 no_cache=1
7614 fi
7615
7616 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7617
7618fi;
7619
7620 eval "$ac_cv_use_gauge"
7621 if test "$no_cache" != 1; then
7622 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7623 fi
7624
7625 if test "$wxUSE_GAUGE" = yes; then
7626 echo "$as_me:$LINENO: result: yes" >&5
7627echo "${ECHO_T}yes" >&6
7628 else
7629 echo "$as_me:$LINENO: result: no" >&5
7630echo "${ECHO_T}no" >&6
7631 fi
7632
7633
7634 enablestring=
7635 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7636echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7637 no_cache=0
7638 # Check whether --enable-grid or --disable-grid was given.
7639if test "${enable_grid+set}" = set; then
7640 enableval="$enable_grid"
7641
7642 if test "$enableval" = yes; then
7643 ac_cv_use_grid='wxUSE_GRID=yes'
7644 else
7645 ac_cv_use_grid='wxUSE_GRID=no'
7646 fi
7647
7648else
7649
7650 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7651 if test "x$LINE" != x ; then
7652 eval "DEFAULT_$LINE"
7653 else
7654 no_cache=1
7655 fi
7656
7657 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7658
7659fi;
7660
7661 eval "$ac_cv_use_grid"
7662 if test "$no_cache" != 1; then
7663 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7664 fi
7665
7666 if test "$wxUSE_GRID" = yes; then
7667 echo "$as_me:$LINENO: result: yes" >&5
7668echo "${ECHO_T}yes" >&6
7669 else
7670 echo "$as_me:$LINENO: result: no" >&5
7671echo "${ECHO_T}no" >&6
7672 fi
7673
7674
7675 enablestring=
7676 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7677echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7678 no_cache=0
7679 # Check whether --enable-imaglist or --disable-imaglist was given.
7680if test "${enable_imaglist+set}" = set; then
7681 enableval="$enable_imaglist"
7682
7683 if test "$enableval" = yes; then
7684 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7685 else
7686 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7687 fi
7688
7689else
7690
7691 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7692 if test "x$LINE" != x ; then
7693 eval "DEFAULT_$LINE"
7694 else
7695 no_cache=1
7696 fi
7697
7698 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7699
7700fi;
7701
7702 eval "$ac_cv_use_imaglist"
7703 if test "$no_cache" != 1; then
7704 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7705 fi
7706
7707 if test "$wxUSE_IMAGLIST" = yes; then
7708 echo "$as_me:$LINENO: result: yes" >&5
7709echo "${ECHO_T}yes" >&6
7710 else
7711 echo "$as_me:$LINENO: result: no" >&5
7712echo "${ECHO_T}no" >&6
7713 fi
7714
7715
7716 enablestring=
7717 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7718echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7719 no_cache=0
7720 # Check whether --enable-listbook or --disable-listbook was given.
7721if test "${enable_listbook+set}" = set; then
7722 enableval="$enable_listbook"
7723
7724 if test "$enableval" = yes; then
7725 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7726 else
7727 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7728 fi
7729
7730else
7731
7732 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7733 if test "x$LINE" != x ; then
7734 eval "DEFAULT_$LINE"
7735 else
7736 no_cache=1
7737 fi
7738
7739 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7740
7741fi;
7742
7743 eval "$ac_cv_use_listbook"
7744 if test "$no_cache" != 1; then
7745 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7746 fi
7747
7748 if test "$wxUSE_LISTBOOK" = yes; then
7749 echo "$as_me:$LINENO: result: yes" >&5
7750echo "${ECHO_T}yes" >&6
7751 else
7752 echo "$as_me:$LINENO: result: no" >&5
7753echo "${ECHO_T}no" >&6
7754 fi
7755
7756
7757 enablestring=
7758 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7759echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7760 no_cache=0
7761 # Check whether --enable-listbox or --disable-listbox was given.
7762if test "${enable_listbox+set}" = set; then
7763 enableval="$enable_listbox"
7764
7765 if test "$enableval" = yes; then
7766 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7767 else
7768 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7769 fi
7770
7771else
7772
7773 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7774 if test "x$LINE" != x ; then
7775 eval "DEFAULT_$LINE"
7776 else
7777 no_cache=1
7778 fi
7779
7780 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
7781
7782fi;
7783
7784 eval "$ac_cv_use_listbox"
7785 if test "$no_cache" != 1; then
7786 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7787 fi
7788
7789 if test "$wxUSE_LISTBOX" = yes; then
7790 echo "$as_me:$LINENO: result: yes" >&5
7791echo "${ECHO_T}yes" >&6
7792 else
7793 echo "$as_me:$LINENO: result: no" >&5
7794echo "${ECHO_T}no" >&6
7795 fi
7796
7797
7798 enablestring=
7799 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7800echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
7801 no_cache=0
7802 # Check whether --enable-listctrl or --disable-listctrl was given.
7803if test "${enable_listctrl+set}" = set; then
7804 enableval="$enable_listctrl"
7805
7806 if test "$enableval" = yes; then
7807 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7808 else
7809 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7810 fi
7811
7812else
7813
7814 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7815 if test "x$LINE" != x ; then
7816 eval "DEFAULT_$LINE"
7817 else
7818 no_cache=1
7819 fi
7820
7821 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
7822
7823fi;
7824
7825 eval "$ac_cv_use_listctrl"
7826 if test "$no_cache" != 1; then
7827 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7828 fi
7829
7830 if test "$wxUSE_LISTCTRL" = yes; then
7831 echo "$as_me:$LINENO: result: yes" >&5
7832echo "${ECHO_T}yes" >&6
7833 else
7834 echo "$as_me:$LINENO: result: no" >&5
7835echo "${ECHO_T}no" >&6
7836 fi
7837
7838
7839 enablestring=
7840 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7841echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
7842 no_cache=0
7843 # Check whether --enable-notebook or --disable-notebook was given.
7844if test "${enable_notebook+set}" = set; then
7845 enableval="$enable_notebook"
7846
7847 if test "$enableval" = yes; then
7848 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7849 else
7850 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7851 fi
7852
7853else
7854
7855 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7856 if test "x$LINE" != x ; then
7857 eval "DEFAULT_$LINE"
7858 else
7859 no_cache=1
7860 fi
7861
7862 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
7863
7864fi;
7865
7866 eval "$ac_cv_use_notebook"
7867 if test "$no_cache" != 1; then
7868 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7869 fi
7870
7871 if test "$wxUSE_NOTEBOOK" = yes; then
7872 echo "$as_me:$LINENO: result: yes" >&5
7873echo "${ECHO_T}yes" >&6
7874 else
7875 echo "$as_me:$LINENO: result: no" >&5
7876echo "${ECHO_T}no" >&6
7877 fi
7878
7879
7880 enablestring=
7881 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7882echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
7883 no_cache=0
7884 # Check whether --enable-radiobox or --disable-radiobox was given.
7885if test "${enable_radiobox+set}" = set; then
7886 enableval="$enable_radiobox"
7887
7888 if test "$enableval" = yes; then
7889 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7890 else
7891 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7892 fi
7893
7894else
7895
7896 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7897 if test "x$LINE" != x ; then
7898 eval "DEFAULT_$LINE"
7899 else
7900 no_cache=1
7901 fi
7902
7903 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
7904
7905fi;
7906
7907 eval "$ac_cv_use_radiobox"
7908 if test "$no_cache" != 1; then
7909 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7910 fi
7911
7912 if test "$wxUSE_RADIOBOX" = yes; then
7913 echo "$as_me:$LINENO: result: yes" >&5
7914echo "${ECHO_T}yes" >&6
7915 else
7916 echo "$as_me:$LINENO: result: no" >&5
7917echo "${ECHO_T}no" >&6
7918 fi
7919
7920
7921 enablestring=
7922 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7923echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
7924 no_cache=0
7925 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7926if test "${enable_radiobtn+set}" = set; then
7927 enableval="$enable_radiobtn"
7928
7929 if test "$enableval" = yes; then
7930 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7931 else
7932 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7933 fi
7934
7935else
7936
7937 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7938 if test "x$LINE" != x ; then
7939 eval "DEFAULT_$LINE"
7940 else
7941 no_cache=1
7942 fi
7943
7944 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
7945
7946fi;
7947
7948 eval "$ac_cv_use_radiobtn"
7949 if test "$no_cache" != 1; then
7950 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7951 fi
7952
7953 if test "$wxUSE_RADIOBTN" = yes; then
7954 echo "$as_me:$LINENO: result: yes" >&5
7955echo "${ECHO_T}yes" >&6
7956 else
7957 echo "$as_me:$LINENO: result: no" >&5
7958echo "${ECHO_T}no" >&6
7959 fi
7960
7961
7962 enablestring=
7963 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7964echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
7965 no_cache=0
7966 # Check whether --enable-sash or --disable-sash was given.
7967if test "${enable_sash+set}" = set; then
7968 enableval="$enable_sash"
7969
7970 if test "$enableval" = yes; then
7971 ac_cv_use_sash='wxUSE_SASH=yes'
7972 else
7973 ac_cv_use_sash='wxUSE_SASH=no'
7974 fi
7975
7976else
7977
7978 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7979 if test "x$LINE" != x ; then
7980 eval "DEFAULT_$LINE"
7981 else
7982 no_cache=1
7983 fi
7984
7985 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
7986
7987fi;
7988
7989 eval "$ac_cv_use_sash"
7990 if test "$no_cache" != 1; then
7991 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7992 fi
7993
7994 if test "$wxUSE_SASH" = yes; then
7995 echo "$as_me:$LINENO: result: yes" >&5
7996echo "${ECHO_T}yes" >&6
7997 else
7998 echo "$as_me:$LINENO: result: no" >&5
7999echo "${ECHO_T}no" >&6
8000 fi
8001
8002
8003 enablestring=
8004 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8005echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8006 no_cache=0
8007 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8008if test "${enable_scrollbar+set}" = set; then
8009 enableval="$enable_scrollbar"
8010
8011 if test "$enableval" = yes; then
8012 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8013 else
8014 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8015 fi
8016
8017else
8018
8019 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8020 if test "x$LINE" != x ; then
8021 eval "DEFAULT_$LINE"
8022 else
8023 no_cache=1
8024 fi
8025
8026 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8027
8028fi;
8029
8030 eval "$ac_cv_use_scrollbar"
8031 if test "$no_cache" != 1; then
8032 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8033 fi
8034
8035 if test "$wxUSE_SCROLLBAR" = yes; then
8036 echo "$as_me:$LINENO: result: yes" >&5
8037echo "${ECHO_T}yes" >&6
8038 else
8039 echo "$as_me:$LINENO: result: no" >&5
8040echo "${ECHO_T}no" >&6
8041 fi
8042
8043
8044 enablestring=
8045 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8046echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8047 no_cache=0
8048 # Check whether --enable-slider or --disable-slider was given.
8049if test "${enable_slider+set}" = set; then
8050 enableval="$enable_slider"
8051
8052 if test "$enableval" = yes; then
8053 ac_cv_use_slider='wxUSE_SLIDER=yes'
8054 else
8055 ac_cv_use_slider='wxUSE_SLIDER=no'
8056 fi
8057
8058else
8059
8060 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8061 if test "x$LINE" != x ; then
8062 eval "DEFAULT_$LINE"
8063 else
8064 no_cache=1
8065 fi
8066
8067 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8068
8069fi;
8070
8071 eval "$ac_cv_use_slider"
8072 if test "$no_cache" != 1; then
8073 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8074 fi
8075
8076 if test "$wxUSE_SLIDER" = yes; then
8077 echo "$as_me:$LINENO: result: yes" >&5
8078echo "${ECHO_T}yes" >&6
8079 else
8080 echo "$as_me:$LINENO: result: no" >&5
8081echo "${ECHO_T}no" >&6
8082 fi
8083
8084
8085 enablestring=
8086 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8087echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8088 no_cache=0
8089 # Check whether --enable-spinbtn or --disable-spinbtn was given.
8090if test "${enable_spinbtn+set}" = set; then
8091 enableval="$enable_spinbtn"
8092
8093 if test "$enableval" = yes; then
8094 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8095 else
8096 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8097 fi
8098
8099else
8100
8101 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8102 if test "x$LINE" != x ; then
8103 eval "DEFAULT_$LINE"
8104 else
8105 no_cache=1
8106 fi
8107
8108 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8109
8110fi;
8111
8112 eval "$ac_cv_use_spinbtn"
8113 if test "$no_cache" != 1; then
8114 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8115 fi
8116
8117 if test "$wxUSE_SPINBTN" = yes; then
8118 echo "$as_me:$LINENO: result: yes" >&5
8119echo "${ECHO_T}yes" >&6
8120 else
8121 echo "$as_me:$LINENO: result: no" >&5
8122echo "${ECHO_T}no" >&6
8123 fi
8124
8125
8126 enablestring=
8127 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8128echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8129 no_cache=0
8130 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8131if test "${enable_spinctrl+set}" = set; then
8132 enableval="$enable_spinctrl"
8133
8134 if test "$enableval" = yes; then
8135 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8136 else
8137 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8138 fi
8139
8140else
8141
8142 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8143 if test "x$LINE" != x ; then
8144 eval "DEFAULT_$LINE"
8145 else
8146 no_cache=1
8147 fi
8148
8149 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8150
8151fi;
8152
8153 eval "$ac_cv_use_spinctrl"
8154 if test "$no_cache" != 1; then
8155 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8156 fi
8157
8158 if test "$wxUSE_SPINCTRL" = yes; then
8159 echo "$as_me:$LINENO: result: yes" >&5
8160echo "${ECHO_T}yes" >&6
8161 else
8162 echo "$as_me:$LINENO: result: no" >&5
8163echo "${ECHO_T}no" >&6
8164 fi
8165
8166
8167 enablestring=
8168 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8169echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8170 no_cache=0
8171 # Check whether --enable-splitter or --disable-splitter was given.
8172if test "${enable_splitter+set}" = set; then
8173 enableval="$enable_splitter"
8174
8175 if test "$enableval" = yes; then
8176 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8177 else
8178 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8179 fi
8180
8181else
8182
8183 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8184 if test "x$LINE" != x ; then
8185 eval "DEFAULT_$LINE"
8186 else
8187 no_cache=1
8188 fi
8189
8190 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8191
8192fi;
8193
8194 eval "$ac_cv_use_splitter"
8195 if test "$no_cache" != 1; then
8196 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8197 fi
8198
8199 if test "$wxUSE_SPLITTER" = yes; then
8200 echo "$as_me:$LINENO: result: yes" >&5
8201echo "${ECHO_T}yes" >&6
8202 else
8203 echo "$as_me:$LINENO: result: no" >&5
8204echo "${ECHO_T}no" >&6
8205 fi
8206
8207
8208 enablestring=
8209 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8210echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8211 no_cache=0
8212 # Check whether --enable-statbmp or --disable-statbmp was given.
8213if test "${enable_statbmp+set}" = set; then
8214 enableval="$enable_statbmp"
8215
8216 if test "$enableval" = yes; then
8217 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8218 else
8219 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8220 fi
8221
8222else
8223
8224 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8225 if test "x$LINE" != x ; then
8226 eval "DEFAULT_$LINE"
8227 else
8228 no_cache=1
8229 fi
8230
8231 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8232
8233fi;
8234
8235 eval "$ac_cv_use_statbmp"
8236 if test "$no_cache" != 1; then
8237 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8238 fi
8239
8240 if test "$wxUSE_STATBMP" = yes; then
8241 echo "$as_me:$LINENO: result: yes" >&5
8242echo "${ECHO_T}yes" >&6
8243 else
8244 echo "$as_me:$LINENO: result: no" >&5
8245echo "${ECHO_T}no" >&6
8246 fi
8247
8248
8249 enablestring=
8250 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8251echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8252 no_cache=0
8253 # Check whether --enable-statbox or --disable-statbox was given.
8254if test "${enable_statbox+set}" = set; then
8255 enableval="$enable_statbox"
8256
8257 if test "$enableval" = yes; then
8258 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8259 else
8260 ac_cv_use_statbox='wxUSE_STATBOX=no'
8261 fi
8262
8263else
8264
8265 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8266 if test "x$LINE" != x ; then
8267 eval "DEFAULT_$LINE"
8268 else
8269 no_cache=1
8270 fi
8271
8272 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8273
8274fi;
8275
8276 eval "$ac_cv_use_statbox"
8277 if test "$no_cache" != 1; then
8278 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8279 fi
8280
8281 if test "$wxUSE_STATBOX" = yes; then
8282 echo "$as_me:$LINENO: result: yes" >&5
8283echo "${ECHO_T}yes" >&6
8284 else
8285 echo "$as_me:$LINENO: result: no" >&5
8286echo "${ECHO_T}no" >&6
8287 fi
8288
8289
8290 enablestring=
8291 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8292echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8293 no_cache=0
8294 # Check whether --enable-statline or --disable-statline was given.
8295if test "${enable_statline+set}" = set; then
8296 enableval="$enable_statline"
8297
8298 if test "$enableval" = yes; then
8299 ac_cv_use_statline='wxUSE_STATLINE=yes'
8300 else
8301 ac_cv_use_statline='wxUSE_STATLINE=no'
8302 fi
8303
8304else
8305
8306 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8307 if test "x$LINE" != x ; then
8308 eval "DEFAULT_$LINE"
8309 else
8310 no_cache=1
8311 fi
8312
8313 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8314
8315fi;
8316
8317 eval "$ac_cv_use_statline"
8318 if test "$no_cache" != 1; then
8319 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8320 fi
8321
8322 if test "$wxUSE_STATLINE" = yes; then
8323 echo "$as_me:$LINENO: result: yes" >&5
8324echo "${ECHO_T}yes" >&6
8325 else
8326 echo "$as_me:$LINENO: result: no" >&5
8327echo "${ECHO_T}no" >&6
8328 fi
8329
8330
8331 enablestring=
8332 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8333echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8334 no_cache=0
8335 # Check whether --enable-stattext or --disable-stattext was given.
8336if test "${enable_stattext+set}" = set; then
8337 enableval="$enable_stattext"
8338
8339 if test "$enableval" = yes; then
8340 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8341 else
8342 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8343 fi
8344
8345else
8346
8347 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8348 if test "x$LINE" != x ; then
8349 eval "DEFAULT_$LINE"
8350 else
8351 no_cache=1
8352 fi
8353
8354 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8355
8356fi;
8357
8358 eval "$ac_cv_use_stattext"
8359 if test "$no_cache" != 1; then
8360 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8361 fi
8362
8363 if test "$wxUSE_STATTEXT" = yes; then
8364 echo "$as_me:$LINENO: result: yes" >&5
8365echo "${ECHO_T}yes" >&6
8366 else
8367 echo "$as_me:$LINENO: result: no" >&5
8368echo "${ECHO_T}no" >&6
8369 fi
8370
8371
8372 enablestring=
8373 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8374echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8375 no_cache=0
8376 # Check whether --enable-statusbar or --disable-statusbar was given.
8377if test "${enable_statusbar+set}" = set; then
8378 enableval="$enable_statusbar"
8379
8380 if test "$enableval" = yes; then
8381 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8382 else
8383 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8384 fi
8385
8386else
8387
8388 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8389 if test "x$LINE" != x ; then
8390 eval "DEFAULT_$LINE"
8391 else
8392 no_cache=1
8393 fi
8394
8395 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8396
8397fi;
8398
8399 eval "$ac_cv_use_statusbar"
8400 if test "$no_cache" != 1; then
8401 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8402 fi
8403
8404 if test "$wxUSE_STATUSBAR" = yes; then
8405 echo "$as_me:$LINENO: result: yes" >&5
8406echo "${ECHO_T}yes" >&6
8407 else
8408 echo "$as_me:$LINENO: result: no" >&5
8409echo "${ECHO_T}no" >&6
8410 fi
8411
8412
8413 enablestring=
8414 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8415echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8416 no_cache=0
8417 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8418if test "${enable_tabdialog+set}" = set; then
8419 enableval="$enable_tabdialog"
8420
8421 if test "$enableval" = yes; then
8422 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8423 else
8424 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8425 fi
8426
8427else
8428
8429 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8430 if test "x$LINE" != x ; then
8431 eval "DEFAULT_$LINE"
8432 else
8433 no_cache=1
8434 fi
8435
8436 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8437
8438fi;
8439
8440 eval "$ac_cv_use_tabdialog"
8441 if test "$no_cache" != 1; then
8442 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8443 fi
8444
8445 if test "$wxUSE_TABDIALOG" = yes; then
8446 echo "$as_me:$LINENO: result: yes" >&5
8447echo "${ECHO_T}yes" >&6
8448 else
8449 echo "$as_me:$LINENO: result: no" >&5
8450echo "${ECHO_T}no" >&6
8451 fi
8452
8453
8454 enablestring=
8455 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8456echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8457 no_cache=0
8458 # Check whether --enable-textctrl or --disable-textctrl was given.
8459if test "${enable_textctrl+set}" = set; then
8460 enableval="$enable_textctrl"
8461
8462 if test "$enableval" = yes; then
8463 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8464 else
8465 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8466 fi
8467
8468else
8469
8470 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8471 if test "x$LINE" != x ; then
8472 eval "DEFAULT_$LINE"
8473 else
8474 no_cache=1
8475 fi
8476
8477 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8478
8479fi;
8480
8481 eval "$ac_cv_use_textctrl"
8482 if test "$no_cache" != 1; then
8483 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8484 fi
8485
8486 if test "$wxUSE_TEXTCTRL" = yes; then
8487 echo "$as_me:$LINENO: result: yes" >&5
8488echo "${ECHO_T}yes" >&6
8489 else
8490 echo "$as_me:$LINENO: result: no" >&5
8491echo "${ECHO_T}no" >&6
8492 fi
8493
8494
8495 enablestring=
8496 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8497echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8498 no_cache=0
8499 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8500if test "${enable_togglebtn+set}" = set; then
8501 enableval="$enable_togglebtn"
8502
8503 if test "$enableval" = yes; then
8504 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8505 else
8506 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8507 fi
8508
8509else
8510
8511 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8512 if test "x$LINE" != x ; then
8513 eval "DEFAULT_$LINE"
8514 else
8515 no_cache=1
8516 fi
8517
8518 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8519
8520fi;
8521
8522 eval "$ac_cv_use_togglebtn"
8523 if test "$no_cache" != 1; then
8524 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8525 fi
8526
8527 if test "$wxUSE_TOGGLEBTN" = yes; then
8528 echo "$as_me:$LINENO: result: yes" >&5
8529echo "${ECHO_T}yes" >&6
8530 else
8531 echo "$as_me:$LINENO: result: no" >&5
8532echo "${ECHO_T}no" >&6
8533 fi
8534
8535
8536 enablestring=
8537 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8538echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8539 no_cache=0
8540 # Check whether --enable-toolbar or --disable-toolbar was given.
8541if test "${enable_toolbar+set}" = set; then
8542 enableval="$enable_toolbar"
8543
8544 if test "$enableval" = yes; then
8545 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8546 else
8547 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8548 fi
8549
8550else
8551
8552 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8553 if test "x$LINE" != x ; then
8554 eval "DEFAULT_$LINE"
8555 else
8556 no_cache=1
8557 fi
8558
8559 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8560
8561fi;
8562
8563 eval "$ac_cv_use_toolbar"
8564 if test "$no_cache" != 1; then
8565 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8566 fi
8567
8568 if test "$wxUSE_TOOLBAR" = yes; then
8569 echo "$as_me:$LINENO: result: yes" >&5
8570echo "${ECHO_T}yes" >&6
8571 else
8572 echo "$as_me:$LINENO: result: no" >&5
8573echo "${ECHO_T}no" >&6
8574 fi
8575
8576
8577 enablestring=
8578 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8579echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8580 no_cache=0
8581 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8582if test "${enable_tbarnative+set}" = set; then
8583 enableval="$enable_tbarnative"
8584
8585 if test "$enableval" = yes; then
8586 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8587 else
8588 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8589 fi
8590
8591else
8592
8593 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8594 if test "x$LINE" != x ; then
8595 eval "DEFAULT_$LINE"
8596 else
8597 no_cache=1
8598 fi
8599
8600 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8601
8602fi;
8603
8604 eval "$ac_cv_use_tbarnative"
8605 if test "$no_cache" != 1; then
8606 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8607 fi
8608
8609 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8610 echo "$as_me:$LINENO: result: yes" >&5
8611echo "${ECHO_T}yes" >&6
8612 else
8613 echo "$as_me:$LINENO: result: no" >&5
8614echo "${ECHO_T}no" >&6
8615 fi
8616
8617
8618 enablestring=
8619 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8620echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8621 no_cache=0
8622 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8623if test "${enable_tbarsmpl+set}" = set; then
8624 enableval="$enable_tbarsmpl"
8625
8626 if test "$enableval" = yes; then
8627 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8628 else
8629 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8630 fi
8631
8632else
8633
8634 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8635 if test "x$LINE" != x ; then
8636 eval "DEFAULT_$LINE"
8637 else
8638 no_cache=1
8639 fi
8640
8641 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8642
8643fi;
8644
8645 eval "$ac_cv_use_tbarsmpl"
8646 if test "$no_cache" != 1; then
8647 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8648 fi
8649
8650 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8651 echo "$as_me:$LINENO: result: yes" >&5
8652echo "${ECHO_T}yes" >&6
8653 else
8654 echo "$as_me:$LINENO: result: no" >&5
8655echo "${ECHO_T}no" >&6
8656 fi
8657
8658
8659 enablestring=
8660 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8661echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8662 no_cache=0
8663 # Check whether --enable-treectrl or --disable-treectrl was given.
8664if test "${enable_treectrl+set}" = set; then
8665 enableval="$enable_treectrl"
8666
8667 if test "$enableval" = yes; then
8668 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8669 else
8670 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8671 fi
8672
8673else
8674
8675 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8676 if test "x$LINE" != x ; then
8677 eval "DEFAULT_$LINE"
8678 else
8679 no_cache=1
8680 fi
8681
8682 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8683
8684fi;
8685
8686 eval "$ac_cv_use_treectrl"
8687 if test "$no_cache" != 1; then
8688 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8689 fi
8690
8691 if test "$wxUSE_TREECTRL" = yes; then
8692 echo "$as_me:$LINENO: result: yes" >&5
8693echo "${ECHO_T}yes" >&6
8694 else
8695 echo "$as_me:$LINENO: result: no" >&5
8696echo "${ECHO_T}no" >&6
8697 fi
8698
8699
8700 enablestring=
8701 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8702echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8703 no_cache=0
8704 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8705if test "${enable_tipwindow+set}" = set; then
8706 enableval="$enable_tipwindow"
8707
8708 if test "$enableval" = yes; then
8709 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8710 else
8711 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8712 fi
8713
8714else
8715
8716 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8717 if test "x$LINE" != x ; then
8718 eval "DEFAULT_$LINE"
8719 else
8720 no_cache=1
8721 fi
8722
8723 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8724
8725fi;
8726
8727 eval "$ac_cv_use_tipwindow"
8728 if test "$no_cache" != 1; then
8729 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8730 fi
8731
8732 if test "$wxUSE_TIPWINDOW" = yes; then
8733 echo "$as_me:$LINENO: result: yes" >&5
8734echo "${ECHO_T}yes" >&6
8735 else
8736 echo "$as_me:$LINENO: result: no" >&5
8737echo "${ECHO_T}no" >&6
8738 fi
8739
8740
8741 enablestring=
8742 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8743echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8744 no_cache=0
8745 # Check whether --enable-popupwin or --disable-popupwin was given.
8746if test "${enable_popupwin+set}" = set; then
8747 enableval="$enable_popupwin"
8748
8749 if test "$enableval" = yes; then
8750 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8751 else
8752 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8753 fi
8754
8755else
8756
8757 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8758 if test "x$LINE" != x ; then
8759 eval "DEFAULT_$LINE"
8760 else
8761 no_cache=1
8762 fi
8763
8764 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
8765
8766fi;
8767
8768 eval "$ac_cv_use_popupwin"
8769 if test "$no_cache" != 1; then
8770 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8771 fi
8772
8773 if test "$wxUSE_POPUPWIN" = yes; then
8774 echo "$as_me:$LINENO: result: yes" >&5
8775echo "${ECHO_T}yes" >&6
8776 else
8777 echo "$as_me:$LINENO: result: no" >&5
8778echo "${ECHO_T}no" >&6
8779 fi
8780
8781
8782
8783
8784 enablestring=
8785 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8786echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
8787 no_cache=0
8788 # Check whether --enable-commondlg or --disable-commondlg was given.
8789if test "${enable_commondlg+set}" = set; then
8790 enableval="$enable_commondlg"
8791
8792 if test "$enableval" = yes; then
8793 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8794 else
8795 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8796 fi
8797
8798else
8799
8800 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8801 if test "x$LINE" != x ; then
8802 eval "DEFAULT_$LINE"
8803 else
8804 no_cache=1
8805 fi
8806
8807 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
8808
8809fi;
8810
8811 eval "$ac_cv_use_commondlg"
8812 if test "$no_cache" != 1; then
8813 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8814 fi
8815
8816 if test "$wxUSE_COMMONDLGS" = yes; then
8817 echo "$as_me:$LINENO: result: yes" >&5
8818echo "${ECHO_T}yes" >&6
8819 else
8820 echo "$as_me:$LINENO: result: no" >&5
8821echo "${ECHO_T}no" >&6
8822 fi
8823
8824
8825 enablestring=
8826 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8827echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
8828 no_cache=0
8829 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8830if test "${enable_choicedlg+set}" = set; then
8831 enableval="$enable_choicedlg"
8832
8833 if test "$enableval" = yes; then
8834 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8835 else
8836 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8837 fi
8838
8839else
8840
8841 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8842 if test "x$LINE" != x ; then
8843 eval "DEFAULT_$LINE"
8844 else
8845 no_cache=1
8846 fi
8847
8848 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
8849
8850fi;
8851
8852 eval "$ac_cv_use_choicedlg"
8853 if test "$no_cache" != 1; then
8854 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8855 fi
8856
8857 if test "$wxUSE_CHOICEDLG" = yes; then
8858 echo "$as_me:$LINENO: result: yes" >&5
8859echo "${ECHO_T}yes" >&6
8860 else
8861 echo "$as_me:$LINENO: result: no" >&5
8862echo "${ECHO_T}no" >&6
8863 fi
8864
8865
8866 enablestring=
8867 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8868echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
8869 no_cache=0
8870 # Check whether --enable-coldlg or --disable-coldlg was given.
8871if test "${enable_coldlg+set}" = set; then
8872 enableval="$enable_coldlg"
8873
8874 if test "$enableval" = yes; then
8875 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8876 else
8877 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8878 fi
8879
8880else
8881
8882 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8883 if test "x$LINE" != x ; then
8884 eval "DEFAULT_$LINE"
8885 else
8886 no_cache=1
8887 fi
8888
8889 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
8890
8891fi;
8892
8893 eval "$ac_cv_use_coldlg"
8894 if test "$no_cache" != 1; then
8895 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8896 fi
8897
8898 if test "$wxUSE_COLOURDLG" = yes; then
8899 echo "$as_me:$LINENO: result: yes" >&5
8900echo "${ECHO_T}yes" >&6
8901 else
8902 echo "$as_me:$LINENO: result: no" >&5
8903echo "${ECHO_T}no" >&6
8904 fi
8905
8906
8907 enablestring=
8908 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8909echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
8910 no_cache=0
8911 # Check whether --enable-filedlg or --disable-filedlg was given.
8912if test "${enable_filedlg+set}" = set; then
8913 enableval="$enable_filedlg"
8914
8915 if test "$enableval" = yes; then
8916 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8917 else
8918 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8919 fi
8920
8921else
8922
8923 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8924 if test "x$LINE" != x ; then
8925 eval "DEFAULT_$LINE"
8926 else
8927 no_cache=1
8928 fi
8929
8930 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
8931
8932fi;
8933
8934 eval "$ac_cv_use_filedlg"
8935 if test "$no_cache" != 1; then
8936 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8937 fi
8938
8939 if test "$wxUSE_FILEDLG" = yes; then
8940 echo "$as_me:$LINENO: result: yes" >&5
8941echo "${ECHO_T}yes" >&6
8942 else
8943 echo "$as_me:$LINENO: result: no" >&5
8944echo "${ECHO_T}no" >&6
8945 fi
8946
8947
8948 enablestring=
8949 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8950echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8951 no_cache=0
8952 # Check whether --enable-finddlg or --disable-finddlg was given.
8953if test "${enable_finddlg+set}" = set; then
8954 enableval="$enable_finddlg"
8955
8956 if test "$enableval" = yes; then
8957 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8958 else
8959 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8960 fi
8961
8962else
8963
8964 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8965 if test "x$LINE" != x ; then
8966 eval "DEFAULT_$LINE"
8967 else
8968 no_cache=1
8969 fi
8970
8971 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8972
8973fi;
8974
8975 eval "$ac_cv_use_finddlg"
8976 if test "$no_cache" != 1; then
8977 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8978 fi
8979
8980 if test "$wxUSE_FINDREPLDLG" = yes; then
8981 echo "$as_me:$LINENO: result: yes" >&5
8982echo "${ECHO_T}yes" >&6
8983 else
8984 echo "$as_me:$LINENO: result: no" >&5
8985echo "${ECHO_T}no" >&6
8986 fi
8987
8988
8989 enablestring=
8990 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8991echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
8992 no_cache=0
8993 # Check whether --enable-fontdlg or --disable-fontdlg was given.
8994if test "${enable_fontdlg+set}" = set; then
8995 enableval="$enable_fontdlg"
8996
8997 if test "$enableval" = yes; then
8998 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8999 else
9000 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9001 fi
9002
9003else
9004
9005 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9006 if test "x$LINE" != x ; then
9007 eval "DEFAULT_$LINE"
9008 else
9009 no_cache=1
9010 fi
9011
9012 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9013
9014fi;
9015
9016 eval "$ac_cv_use_fontdlg"
9017 if test "$no_cache" != 1; then
9018 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9019 fi
9020
9021 if test "$wxUSE_FONTDLG" = yes; then
9022 echo "$as_me:$LINENO: result: yes" >&5
9023echo "${ECHO_T}yes" >&6
9024 else
9025 echo "$as_me:$LINENO: result: no" >&5
9026echo "${ECHO_T}no" >&6
9027 fi
9028
9029
9030 enablestring=
9031 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9032echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9033 no_cache=0
9034 # Check whether --enable-dirdlg or --disable-dirdlg was given.
9035if test "${enable_dirdlg+set}" = set; then
9036 enableval="$enable_dirdlg"
9037
9038 if test "$enableval" = yes; then
9039 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9040 else
9041 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9042 fi
9043
9044else
9045
9046 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9047 if test "x$LINE" != x ; then
9048 eval "DEFAULT_$LINE"
9049 else
9050 no_cache=1
9051 fi
9052
9053 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9054
9055fi;
9056
9057 eval "$ac_cv_use_dirdlg"
9058 if test "$no_cache" != 1; then
9059 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9060 fi
9061
9062 if test "$wxUSE_DIRDLG" = yes; then
9063 echo "$as_me:$LINENO: result: yes" >&5
9064echo "${ECHO_T}yes" >&6
9065 else
9066 echo "$as_me:$LINENO: result: no" >&5
9067echo "${ECHO_T}no" >&6
9068 fi
9069
9070
9071 enablestring=
9072 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9073echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9074 no_cache=0
9075 # Check whether --enable-msgdlg or --disable-msgdlg was given.
9076if test "${enable_msgdlg+set}" = set; then
9077 enableval="$enable_msgdlg"
9078
9079 if test "$enableval" = yes; then
9080 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9081 else
9082 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9083 fi
9084
9085else
9086
9087 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9088 if test "x$LINE" != x ; then
9089 eval "DEFAULT_$LINE"
9090 else
9091 no_cache=1
9092 fi
9093
9094 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9095
9096fi;
9097
9098 eval "$ac_cv_use_msgdlg"
9099 if test "$no_cache" != 1; then
9100 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9101 fi
9102
9103 if test "$wxUSE_MSGDLG" = yes; then
9104 echo "$as_me:$LINENO: result: yes" >&5
9105echo "${ECHO_T}yes" >&6
9106 else
9107 echo "$as_me:$LINENO: result: no" >&5
9108echo "${ECHO_T}no" >&6
9109 fi
9110
9111
9112 enablestring=
9113 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9114echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9115 no_cache=0
9116 # Check whether --enable-numberdlg or --disable-numberdlg was given.
9117if test "${enable_numberdlg+set}" = set; then
9118 enableval="$enable_numberdlg"
9119
9120 if test "$enableval" = yes; then
9121 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9122 else
9123 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9124 fi
9125
9126else
9127
9128 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9129 if test "x$LINE" != x ; then
9130 eval "DEFAULT_$LINE"
9131 else
9132 no_cache=1
9133 fi
9134
9135 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9136
9137fi;
9138
9139 eval "$ac_cv_use_numberdlg"
9140 if test "$no_cache" != 1; then
9141 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9142 fi
9143
9144 if test "$wxUSE_NUMBERDLG" = yes; then
9145 echo "$as_me:$LINENO: result: yes" >&5
9146echo "${ECHO_T}yes" >&6
9147 else
9148 echo "$as_me:$LINENO: result: no" >&5
9149echo "${ECHO_T}no" >&6
9150 fi
9151
9152
9153 enablestring=
9154 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9155echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9156 no_cache=0
9157 # Check whether --enable-splash or --disable-splash was given.
9158if test "${enable_splash+set}" = set; then
9159 enableval="$enable_splash"
9160
9161 if test "$enableval" = yes; then
9162 ac_cv_use_splash='wxUSE_SPLASH=yes'
9163 else
9164 ac_cv_use_splash='wxUSE_SPLASH=no'
9165 fi
9166
9167else
9168
9169 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9170 if test "x$LINE" != x ; then
9171 eval "DEFAULT_$LINE"
9172 else
9173 no_cache=1
9174 fi
9175
9176 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9177
9178fi;
9179
9180 eval "$ac_cv_use_splash"
9181 if test "$no_cache" != 1; then
9182 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9183 fi
9184
9185 if test "$wxUSE_SPLASH" = yes; then
9186 echo "$as_me:$LINENO: result: yes" >&5
9187echo "${ECHO_T}yes" >&6
9188 else
9189 echo "$as_me:$LINENO: result: no" >&5
9190echo "${ECHO_T}no" >&6
9191 fi
9192
9193
9194 enablestring=
9195 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9196echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9197 no_cache=0
9198 # Check whether --enable-textdlg or --disable-textdlg was given.
9199if test "${enable_textdlg+set}" = set; then
9200 enableval="$enable_textdlg"
9201
9202 if test "$enableval" = yes; then
9203 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9204 else
9205 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9206 fi
9207
9208else
9209
9210 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9211 if test "x$LINE" != x ; then
9212 eval "DEFAULT_$LINE"
9213 else
9214 no_cache=1
9215 fi
9216
9217 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9218
9219fi;
9220
9221 eval "$ac_cv_use_textdlg"
9222 if test "$no_cache" != 1; then
9223 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9224 fi
9225
9226 if test "$wxUSE_TEXTDLG" = yes; then
9227 echo "$as_me:$LINENO: result: yes" >&5
9228echo "${ECHO_T}yes" >&6
9229 else
9230 echo "$as_me:$LINENO: result: no" >&5
9231echo "${ECHO_T}no" >&6
9232 fi
9233
9234
9235 enablestring=
9236 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9237echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9238 no_cache=0
9239 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9240if test "${enable_tipdlg+set}" = set; then
9241 enableval="$enable_tipdlg"
9242
9243 if test "$enableval" = yes; then
9244 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9245 else
9246 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9247 fi
9248
9249else
9250
9251 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9252 if test "x$LINE" != x ; then
9253 eval "DEFAULT_$LINE"
9254 else
9255 no_cache=1
9256 fi
9257
9258 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9259
9260fi;
9261
9262 eval "$ac_cv_use_tipdlg"
9263 if test "$no_cache" != 1; then
9264 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9265 fi
9266
9267 if test "$wxUSE_STARTUP_TIPS" = yes; then
9268 echo "$as_me:$LINENO: result: yes" >&5
9269echo "${ECHO_T}yes" >&6
9270 else
9271 echo "$as_me:$LINENO: result: no" >&5
9272echo "${ECHO_T}no" >&6
9273 fi
9274
9275
9276 enablestring=
9277 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9278echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9279 no_cache=0
9280 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9281if test "${enable_progressdlg+set}" = set; then
9282 enableval="$enable_progressdlg"
9283
9284 if test "$enableval" = yes; then
9285 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9286 else
9287 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9288 fi
9289
9290else
9291
9292 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9293 if test "x$LINE" != x ; then
9294 eval "DEFAULT_$LINE"
9295 else
9296 no_cache=1
9297 fi
9298
9299 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9300
9301fi;
9302
9303 eval "$ac_cv_use_progressdlg"
9304 if test "$no_cache" != 1; then
9305 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9306 fi
9307
9308 if test "$wxUSE_PROGRESSDLG" = yes; then
9309 echo "$as_me:$LINENO: result: yes" >&5
9310echo "${ECHO_T}yes" >&6
9311 else
9312 echo "$as_me:$LINENO: result: no" >&5
9313echo "${ECHO_T}no" >&6
9314 fi
9315
9316
9317 enablestring=
9318 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9319echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9320 no_cache=0
9321 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9322if test "${enable_wizarddlg+set}" = set; then
9323 enableval="$enable_wizarddlg"
9324
9325 if test "$enableval" = yes; then
9326 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9327 else
9328 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9329 fi
9330
9331else
9332
9333 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9334 if test "x$LINE" != x ; then
9335 eval "DEFAULT_$LINE"
9336 else
9337 no_cache=1
9338 fi
9339
9340 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9341
9342fi;
9343
9344 eval "$ac_cv_use_wizarddlg"
9345 if test "$no_cache" != 1; then
9346 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9347 fi
9348
9349 if test "$wxUSE_WIZARDDLG" = yes; then
9350 echo "$as_me:$LINENO: result: yes" >&5
9351echo "${ECHO_T}yes" >&6
9352 else
9353 echo "$as_me:$LINENO: result: no" >&5
9354echo "${ECHO_T}no" >&6
9355 fi
9356
9357
9358
9359
9360 enablestring=
9361 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9362echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9363 no_cache=0
9364 # Check whether --enable-menus or --disable-menus was given.
9365if test "${enable_menus+set}" = set; then
9366 enableval="$enable_menus"
9367
9368 if test "$enableval" = yes; then
9369 ac_cv_use_menus='wxUSE_MENUS=yes'
9370 else
9371 ac_cv_use_menus='wxUSE_MENUS=no'
9372 fi
9373
9374else
9375
9376 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9377 if test "x$LINE" != x ; then
9378 eval "DEFAULT_$LINE"
9379 else
9380 no_cache=1
9381 fi
9382
9383 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9384
9385fi;
9386
9387 eval "$ac_cv_use_menus"
9388 if test "$no_cache" != 1; then
9389 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9390 fi
9391
9392 if test "$wxUSE_MENUS" = yes; then
9393 echo "$as_me:$LINENO: result: yes" >&5
9394echo "${ECHO_T}yes" >&6
9395 else
9396 echo "$as_me:$LINENO: result: no" >&5
9397echo "${ECHO_T}no" >&6
9398 fi
9399
9400
9401 enablestring=
9402 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9403echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9404 no_cache=0
9405 # Check whether --enable-miniframe or --disable-miniframe was given.
9406if test "${enable_miniframe+set}" = set; then
9407 enableval="$enable_miniframe"
9408
9409 if test "$enableval" = yes; then
9410 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9411 else
9412 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9413 fi
9414
9415else
9416
9417 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9418 if test "x$LINE" != x ; then
9419 eval "DEFAULT_$LINE"
9420 else
9421 no_cache=1
9422 fi
9423
9424 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9425
9426fi;
9427
9428 eval "$ac_cv_use_miniframe"
9429 if test "$no_cache" != 1; then
9430 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9431 fi
9432
9433 if test "$wxUSE_MINIFRAME" = yes; then
9434 echo "$as_me:$LINENO: result: yes" >&5
9435echo "${ECHO_T}yes" >&6
9436 else
9437 echo "$as_me:$LINENO: result: no" >&5
9438echo "${ECHO_T}no" >&6
9439 fi
9440
9441
9442 enablestring=
9443 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9444echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9445 no_cache=0
9446 # Check whether --enable-tooltips or --disable-tooltips was given.
9447if test "${enable_tooltips+set}" = set; then
9448 enableval="$enable_tooltips"
9449
9450 if test "$enableval" = yes; then
9451 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9452 else
9453 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9454 fi
9455
9456else
9457
9458 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9459 if test "x$LINE" != x ; then
9460 eval "DEFAULT_$LINE"
9461 else
9462 no_cache=1
9463 fi
9464
9465 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9466
9467fi;
9468
9469 eval "$ac_cv_use_tooltips"
9470 if test "$no_cache" != 1; then
9471 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9472 fi
9473
9474 if test "$wxUSE_TOOLTIPS" = yes; then
9475 echo "$as_me:$LINENO: result: yes" >&5
9476echo "${ECHO_T}yes" >&6
9477 else
9478 echo "$as_me:$LINENO: result: no" >&5
9479echo "${ECHO_T}no" >&6
9480 fi
9481
9482
9483 enablestring=
9484 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9485echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9486 no_cache=0
9487 # Check whether --enable-splines or --disable-splines was given.
9488if test "${enable_splines+set}" = set; then
9489 enableval="$enable_splines"
9490
9491 if test "$enableval" = yes; then
9492 ac_cv_use_splines='wxUSE_SPLINES=yes'
9493 else
9494 ac_cv_use_splines='wxUSE_SPLINES=no'
9495 fi
9496
9497else
9498
9499 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9500 if test "x$LINE" != x ; then
9501 eval "DEFAULT_$LINE"
9502 else
9503 no_cache=1
9504 fi
9505
9506 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9507
9508fi;
9509
9510 eval "$ac_cv_use_splines"
9511 if test "$no_cache" != 1; then
9512 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9513 fi
9514
9515 if test "$wxUSE_SPLINES" = yes; then
9516 echo "$as_me:$LINENO: result: yes" >&5
9517echo "${ECHO_T}yes" >&6
9518 else
9519 echo "$as_me:$LINENO: result: no" >&5
9520echo "${ECHO_T}no" >&6
9521 fi
9522
9523
9524 enablestring=
9525 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9526echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9527 no_cache=0
9528 # Check whether --enable-validators or --disable-validators was given.
9529if test "${enable_validators+set}" = set; then
9530 enableval="$enable_validators"
9531
9532 if test "$enableval" = yes; then
9533 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9534 else
9535 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9536 fi
9537
9538else
9539
9540 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9541 if test "x$LINE" != x ; then
9542 eval "DEFAULT_$LINE"
9543 else
9544 no_cache=1
9545 fi
9546
9547 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9548
9549fi;
9550
9551 eval "$ac_cv_use_validators"
9552 if test "$no_cache" != 1; then
9553 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9554 fi
9555
9556 if test "$wxUSE_VALIDATORS" = yes; then
9557 echo "$as_me:$LINENO: result: yes" >&5
9558echo "${ECHO_T}yes" >&6
9559 else
9560 echo "$as_me:$LINENO: result: no" >&5
9561echo "${ECHO_T}no" >&6
9562 fi
9563
9564
9565 enablestring=
9566 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9567echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9568 no_cache=0
9569 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9570if test "${enable_busyinfo+set}" = set; then
9571 enableval="$enable_busyinfo"
9572
9573 if test "$enableval" = yes; then
9574 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9575 else
9576 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9577 fi
9578
9579else
9580
9581 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9582 if test "x$LINE" != x ; then
9583 eval "DEFAULT_$LINE"
9584 else
9585 no_cache=1
9586 fi
9587
9588 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9589
9590fi;
9591
9592 eval "$ac_cv_use_busyinfo"
9593 if test "$no_cache" != 1; then
9594 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9595 fi
9596
9597 if test "$wxUSE_BUSYINFO" = yes; then
9598 echo "$as_me:$LINENO: result: yes" >&5
9599echo "${ECHO_T}yes" >&6
9600 else
9601 echo "$as_me:$LINENO: result: no" >&5
9602echo "${ECHO_T}no" >&6
9603 fi
9604
9605
9606 enablestring=
9607 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9608echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9609 no_cache=0
9610 # Check whether --enable-joystick or --disable-joystick was given.
9611if test "${enable_joystick+set}" = set; then
9612 enableval="$enable_joystick"
9613
9614 if test "$enableval" = yes; then
9615 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9616 else
9617 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9618 fi
9619
9620else
9621
9622 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9623 if test "x$LINE" != x ; then
9624 eval "DEFAULT_$LINE"
9625 else
9626 no_cache=1
9627 fi
9628
9629 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9630
9631fi;
9632
9633 eval "$ac_cv_use_joystick"
9634 if test "$no_cache" != 1; then
9635 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9636 fi
9637
9638 if test "$wxUSE_JOYSTICK" = yes; then
9639 echo "$as_me:$LINENO: result: yes" >&5
9640echo "${ECHO_T}yes" >&6
9641 else
9642 echo "$as_me:$LINENO: result: no" >&5
9643echo "${ECHO_T}no" >&6
9644 fi
9645
9646
9647 enablestring=
9648 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9649echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9650 no_cache=0
9651 # Check whether --enable-metafile or --disable-metafile was given.
9652if test "${enable_metafile+set}" = set; then
9653 enableval="$enable_metafile"
9654
9655 if test "$enableval" = yes; then
9656 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9657 else
9658 ac_cv_use_metafile='wxUSE_METAFILE=no'
9659 fi
9660
9661else
9662
9663 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9664 if test "x$LINE" != x ; then
9665 eval "DEFAULT_$LINE"
9666 else
9667 no_cache=1
9668 fi
9669
9670 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9671
9672fi;
9673
9674 eval "$ac_cv_use_metafile"
9675 if test "$no_cache" != 1; then
9676 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9677 fi
9678
9679 if test "$wxUSE_METAFILE" = yes; then
9680 echo "$as_me:$LINENO: result: yes" >&5
9681echo "${ECHO_T}yes" >&6
9682 else
9683 echo "$as_me:$LINENO: result: no" >&5
9684echo "${ECHO_T}no" >&6
9685 fi
9686
9687
9688 enablestring=
9689 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9690echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9691 no_cache=0
9692 # Check whether --enable-dragimage or --disable-dragimage was given.
9693if test "${enable_dragimage+set}" = set; then
9694 enableval="$enable_dragimage"
9695
9696 if test "$enableval" = yes; then
9697 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9698 else
9699 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9700 fi
9701
9702else
9703
9704 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9705 if test "x$LINE" != x ; then
9706 eval "DEFAULT_$LINE"
9707 else
9708 no_cache=1
9709 fi
9710
9711 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9712
9713fi;
9714
9715 eval "$ac_cv_use_dragimage"
9716 if test "$no_cache" != 1; then
9717 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9718 fi
9719
9720 if test "$wxUSE_DRAGIMAGE" = yes; then
9721 echo "$as_me:$LINENO: result: yes" >&5
9722echo "${ECHO_T}yes" >&6
9723 else
9724 echo "$as_me:$LINENO: result: no" >&5
9725echo "${ECHO_T}no" >&6
9726 fi
9727
9728
9729 enablestring=
9730 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9731echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
9732 no_cache=0
9733 # Check whether --enable-accessibility or --disable-accessibility was given.
9734if test "${enable_accessibility+set}" = set; then
9735 enableval="$enable_accessibility"
9736
9737 if test "$enableval" = yes; then
9738 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9739 else
9740 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9741 fi
9742
9743else
9744
9745 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9746 if test "x$LINE" != x ; then
9747 eval "DEFAULT_$LINE"
9748 else
9749 no_cache=1
9750 fi
9751
9752 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
9753
9754fi;
9755
9756 eval "$ac_cv_use_accessibility"
9757 if test "$no_cache" != 1; then
9758 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9759 fi
9760
9761 if test "$wxUSE_ACCESSIBILITY" = yes; then
9762 echo "$as_me:$LINENO: result: yes" >&5
9763echo "${ECHO_T}yes" >&6
9764 else
9765 echo "$as_me:$LINENO: result: no" >&5
9766echo "${ECHO_T}no" >&6
9767 fi
9768
9769
9770
9771
9772 enablestring=
9773 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9774echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
9775 no_cache=0
9776 # Check whether --enable-palette or --disable-palette was given.
9777if test "${enable_palette+set}" = set; then
9778 enableval="$enable_palette"
9779
9780 if test "$enableval" = yes; then
9781 ac_cv_use_palette='wxUSE_PALETTE=yes'
9782 else
9783 ac_cv_use_palette='wxUSE_PALETTE=no'
9784 fi
9785
9786else
9787
9788 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9789 if test "x$LINE" != x ; then
9790 eval "DEFAULT_$LINE"
9791 else
9792 no_cache=1
9793 fi
9794
9795 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
9796
9797fi;
9798
9799 eval "$ac_cv_use_palette"
9800 if test "$no_cache" != 1; then
9801 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9802 fi
9803
9804 if test "$wxUSE_PALETTE" = yes; then
9805 echo "$as_me:$LINENO: result: yes" >&5
9806echo "${ECHO_T}yes" >&6
9807 else
9808 echo "$as_me:$LINENO: result: no" >&5
9809echo "${ECHO_T}no" >&6
9810 fi
9811
9812
9813 enablestring=
9814 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9815echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
9816 no_cache=0
9817 # Check whether --enable-image or --disable-image was given.
9818if test "${enable_image+set}" = set; then
9819 enableval="$enable_image"
9820
9821 if test "$enableval" = yes; then
9822 ac_cv_use_image='wxUSE_IMAGE=yes'
9823 else
9824 ac_cv_use_image='wxUSE_IMAGE=no'
9825 fi
9826
9827else
9828
9829 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9830 if test "x$LINE" != x ; then
9831 eval "DEFAULT_$LINE"
9832 else
9833 no_cache=1
9834 fi
9835
9836 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
9837
9838fi;
9839
9840 eval "$ac_cv_use_image"
9841 if test "$no_cache" != 1; then
9842 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9843 fi
9844
9845 if test "$wxUSE_IMAGE" = yes; then
9846 echo "$as_me:$LINENO: result: yes" >&5
9847echo "${ECHO_T}yes" >&6
9848 else
9849 echo "$as_me:$LINENO: result: no" >&5
9850echo "${ECHO_T}no" >&6
9851 fi
9852
9853
9854 enablestring=
9855 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9856echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
9857 no_cache=0
9858 # Check whether --enable-gif or --disable-gif was given.
9859if test "${enable_gif+set}" = set; then
9860 enableval="$enable_gif"
9861
9862 if test "$enableval" = yes; then
9863 ac_cv_use_gif='wxUSE_GIF=yes'
9864 else
9865 ac_cv_use_gif='wxUSE_GIF=no'
9866 fi
9867
9868else
9869
9870 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9871 if test "x$LINE" != x ; then
9872 eval "DEFAULT_$LINE"
9873 else
9874 no_cache=1
9875 fi
9876
9877 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
9878
9879fi;
9880
9881 eval "$ac_cv_use_gif"
9882 if test "$no_cache" != 1; then
9883 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9884 fi
9885
9886 if test "$wxUSE_GIF" = yes; then
9887 echo "$as_me:$LINENO: result: yes" >&5
9888echo "${ECHO_T}yes" >&6
9889 else
9890 echo "$as_me:$LINENO: result: no" >&5
9891echo "${ECHO_T}no" >&6
9892 fi
9893
9894
9895 enablestring=
9896 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9897echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
9898 no_cache=0
9899 # Check whether --enable-pcx or --disable-pcx was given.
9900if test "${enable_pcx+set}" = set; then
9901 enableval="$enable_pcx"
9902
9903 if test "$enableval" = yes; then
9904 ac_cv_use_pcx='wxUSE_PCX=yes'
9905 else
9906 ac_cv_use_pcx='wxUSE_PCX=no'
9907 fi
9908
9909else
9910
9911 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9912 if test "x$LINE" != x ; then
9913 eval "DEFAULT_$LINE"
9914 else
9915 no_cache=1
9916 fi
9917
9918 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
9919
9920fi;
9921
9922 eval "$ac_cv_use_pcx"
9923 if test "$no_cache" != 1; then
9924 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9925 fi
9926
9927 if test "$wxUSE_PCX" = yes; then
9928 echo "$as_me:$LINENO: result: yes" >&5
9929echo "${ECHO_T}yes" >&6
9930 else
9931 echo "$as_me:$LINENO: result: no" >&5
9932echo "${ECHO_T}no" >&6
9933 fi
9934
9935
9936 enablestring=
9937 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9938echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
9939 no_cache=0
9940 # Check whether --enable-iff or --disable-iff was given.
9941if test "${enable_iff+set}" = set; then
9942 enableval="$enable_iff"
9943
9944 if test "$enableval" = yes; then
9945 ac_cv_use_iff='wxUSE_IFF=yes'
9946 else
9947 ac_cv_use_iff='wxUSE_IFF=no'
9948 fi
9949
9950else
9951
9952 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9953 if test "x$LINE" != x ; then
9954 eval "DEFAULT_$LINE"
9955 else
9956 no_cache=1
9957 fi
9958
9959 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
9960
9961fi;
9962
9963 eval "$ac_cv_use_iff"
9964 if test "$no_cache" != 1; then
9965 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9966 fi
9967
9968 if test "$wxUSE_IFF" = yes; then
9969 echo "$as_me:$LINENO: result: yes" >&5
9970echo "${ECHO_T}yes" >&6
9971 else
9972 echo "$as_me:$LINENO: result: no" >&5
9973echo "${ECHO_T}no" >&6
9974 fi
9975
9976
9977 enablestring=
9978 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9979echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
9980 no_cache=0
9981 # Check whether --enable-pnm or --disable-pnm was given.
9982if test "${enable_pnm+set}" = set; then
9983 enableval="$enable_pnm"
9984
9985 if test "$enableval" = yes; then
9986 ac_cv_use_pnm='wxUSE_PNM=yes'
9987 else
9988 ac_cv_use_pnm='wxUSE_PNM=no'
9989 fi
9990
9991else
9992
9993 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9994 if test "x$LINE" != x ; then
9995 eval "DEFAULT_$LINE"
9996 else
9997 no_cache=1
9998 fi
9999
10000 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10001
10002fi;
10003
10004 eval "$ac_cv_use_pnm"
10005 if test "$no_cache" != 1; then
10006 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10007 fi
10008
10009 if test "$wxUSE_PNM" = yes; then
10010 echo "$as_me:$LINENO: result: yes" >&5
10011echo "${ECHO_T}yes" >&6
10012 else
10013 echo "$as_me:$LINENO: result: no" >&5
10014echo "${ECHO_T}no" >&6
10015 fi
10016
10017
10018 enablestring=
10019 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10020echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10021 no_cache=0
10022 # Check whether --enable-xpm or --disable-xpm was given.
10023if test "${enable_xpm+set}" = set; then
10024 enableval="$enable_xpm"
10025
10026 if test "$enableval" = yes; then
10027 ac_cv_use_xpm='wxUSE_XPM=yes'
10028 else
10029 ac_cv_use_xpm='wxUSE_XPM=no'
10030 fi
10031
10032else
10033
10034 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10035 if test "x$LINE" != x ; then
10036 eval "DEFAULT_$LINE"
10037 else
10038 no_cache=1
10039 fi
10040
10041 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10042
10043fi;
10044
10045 eval "$ac_cv_use_xpm"
10046 if test "$no_cache" != 1; then
10047 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10048 fi
10049
10050 if test "$wxUSE_XPM" = yes; then
10051 echo "$as_me:$LINENO: result: yes" >&5
10052echo "${ECHO_T}yes" >&6
10053 else
10054 echo "$as_me:$LINENO: result: no" >&5
10055echo "${ECHO_T}no" >&6
10056 fi
10057
10058
10059 enablestring=
10060 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10061echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10062 no_cache=0
10063 # Check whether --enable-ico_cur or --disable-ico_cur was given.
10064if test "${enable_ico_cur+set}" = set; then
10065 enableval="$enable_ico_cur"
10066
10067 if test "$enableval" = yes; then
10068 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10069 else
10070 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10071 fi
10072
10073else
10074
10075 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10076 if test "x$LINE" != x ; then
10077 eval "DEFAULT_$LINE"
10078 else
10079 no_cache=1
10080 fi
10081
10082 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10083
10084fi;
10085
10086 eval "$ac_cv_use_ico_cur"
10087 if test "$no_cache" != 1; then
10088 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10089 fi
10090
10091 if test "$wxUSE_ICO_CUR" = yes; then
10092 echo "$as_me:$LINENO: result: yes" >&5
10093echo "${ECHO_T}yes" >&6
10094 else
10095 echo "$as_me:$LINENO: result: no" >&5
10096echo "${ECHO_T}no" >&6
10097 fi
10098
10099
10100fi
10101
10102
10103
ceec2216
RL
10104# Check whether --with-flavour or --without-flavour was given.
10105if test "${with_flavour+set}" = set; then
10106 withval="$with_flavour"
10107 WX_FLAVOUR="$withval"
10108fi;
10109
10110
10111
a848cd7e
SC
10112 enablestring=
10113 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10114echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10115 no_cache=0
10116 # Check whether --enable-official_build or --disable-official_build was given.
10117if test "${enable_official_build+set}" = set; then
10118 enableval="$enable_official_build"
10119
10120 if test "$enableval" = yes; then
10121 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10122 else
10123 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10124 fi
10125
10126else
10127
10128 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10129 if test "x$LINE" != x ; then
10130 eval "DEFAULT_$LINE"
10131 else
10132 no_cache=1
10133 fi
10134
10135 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10136
10137fi;
10138
10139 eval "$ac_cv_use_official_build"
10140 if test "$no_cache" != 1; then
10141 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10142 fi
10143
10144 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10145 echo "$as_me:$LINENO: result: yes" >&5
10146echo "${ECHO_T}yes" >&6
10147 else
10148 echo "$as_me:$LINENO: result: no" >&5
10149echo "${ECHO_T}no" >&6
10150 fi
10151
10152# Check whether --enable-vendor or --disable-vendor was given.
10153if test "${enable_vendor+set}" = set; then
10154 enableval="$enable_vendor"
10155 VENDOR="$enableval"
10156fi;
10157if test "x$VENDOR" = "x"; then
10158 VENDOR="custom"
10159fi
10160
a848cd7e
SC
10161
10162
10163
10164 echo "saving argument cache $wx_arg_cache_file"
10165 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10166
10167
10168
10169echo "$as_me:$LINENO: checking for toolkit" >&5
10170echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10171
10172# In Wine, we need to default to MSW, not GTK or MOTIF
10173if test "$wxUSE_WINE" = "yes"; then
10174 DEFAULT_DEFAULT_wxUSE_GTK=0
10175 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10176 DEFAULT_DEFAULT_wxUSE_MSW=1
10177 wxUSE_SHARED=no
10178fi
10179
10180if test "$wxUSE_GUI" = "yes"; then
10181
10182 if test "$USE_BEOS" = 1; then
10183 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10184echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10185 { (exit 1); exit 1; }; }
10186 fi
10187
10188 if test "$TOOLKIT_GIVEN" = 1; then
10189 for toolkit in `echo $ALL_TOOLKITS`; do
10190 var=wxUSE_$toolkit
10191 eval "value=\$${var}"
10192 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
10193 done
10194 else
10195 for toolkit in `echo $ALL_TOOLKITS`; do
10196 if test "$has_toolkit_in_cache" != 1; then
10197 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10198 else
10199 var=DEFAULT_wxUSE_$toolkit
10200 fi
10201 eval "wxUSE_$toolkit=\$${var}"
10202 done
10203 fi
10204
10205 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10206 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10207 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10208
10209 case "${host}" in
10210 *-pc-os2_emx | *-pc-os2-emx )
10211 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10212 esac
10213
10214 case "$NUM_TOOLKITS" in
10215 1)
10216 ;;
10217 0)
10218 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10219echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10220 { (exit 1); exit 1; }; }
10221 ;;
10222 *)
10223 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10224echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10225 { (exit 1); exit 1; }; }
10226 esac
10227
10228 for toolkit in `echo $ALL_TOOLKITS`; do
10229 var=wxUSE_$toolkit
10230 eval "value=\$${var}"
10231 if test "x$value" != x; then
10232 cache_var=CACHE_$toolkit
10233 eval "cache=\$${cache_var}"
10234 if test "$cache" = 1; then
10235 echo "$var=$value" >> ${wx_arg_cache_file}
10236 fi
10237 if test "$value" = 1; then
10238 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10239 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10240echo "${ECHO_T}$toolkit_echo" >&6
10241 fi
10242 fi
10243 done
10244else
10245 if test "x$host_alias" != "x"; then
10246 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10247echo "${ECHO_T}base ($host_alias hosted) only" >&6
10248 else
10249 echo "$as_me:$LINENO: result: base only" >&5
10250echo "${ECHO_T}base only" >&6
10251 fi
10252fi
10253
10254wants_win32=0
10255doesnt_want_win32=0
10256case "${host}" in
10257 *-*-cygwin*)
10258 if test "$wxUSE_MSW" = 1 ; then
10259 wants_win32=1
10260 else
10261 doesnt_want_win32=1
10262 fi
10263 ;;
10264 *-*-mingw*)
10265 wants_win32=1
10266 ;;
10267esac
10268
10269if test "$wxUSE_WINE" = "yes"; then
10270 wants_win32=1
10271 CC=winegcc
10272 CXX=wineg++
10273 RESCOMP=wrc
10274 LDFLAGS_GUI="-mwindows"
10275fi
10276
10277if test "$wants_win32" = 1 ; then
10278 USE_UNIX=0
10279 USE_WIN32=1
10280 cat >>confdefs.h <<\_ACEOF
10281#define __WIN32__ 1
10282_ACEOF
10283
10284 cat >>confdefs.h <<\_ACEOF
10285#define __WIN95__ 1
10286_ACEOF
10287
10288 cat >>confdefs.h <<\_ACEOF
10289#define __WINDOWS__ 1
10290_ACEOF
10291
10292 cat >>confdefs.h <<\_ACEOF
10293#define __GNUWIN32__ 1
10294_ACEOF
10295
10296 cat >>confdefs.h <<\_ACEOF
10297#define STRICT 1
10298_ACEOF
10299
10300 cat >>confdefs.h <<\_ACEOF
10301#define WINVER 0x0400
10302_ACEOF
10303
10304fi
10305if test "$doesnt_want_win32" = 1 ; then
10306 USE_UNIX=1
10307 USE_WIN32=0
10308fi
10309
10310if test "$USE_UNIX" = 1 ; then
10311 wxUSE_UNIX=yes
10312 cat >>confdefs.h <<\_ACEOF
10313#define __UNIX__ 1
10314_ACEOF
10315
10316fi
10317
10318
10319cat >confcache <<\_ACEOF
10320# This file is a shell script that caches the results of configure
10321# tests run on this system so they can be shared between configure
10322# scripts and configure runs, see configure's option --config-cache.
10323# It is not useful on other systems. If it contains results you don't
10324# want to keep, you may remove or edit it.
10325#
10326# config.status only pays attention to the cache file if you give it
10327# the --recheck option to rerun configure.
10328#
10329# `ac_cv_env_foo' variables (set or unset) will be overridden when
10330# loading this file, other *unset* `ac_cv_foo' will be assigned the
10331# following values.
10332
10333_ACEOF
10334
10335# The following way of writing the cache mishandles newlines in values,
10336# but we know of no workaround that is simple, portable, and efficient.
10337# So, don't put newlines in cache variables' values.
10338# Ultrix sh set writes to stderr and can't be redirected directly,
10339# and sets the high bit in the cache file unless we assign to the vars.
10340{
10341 (set) 2>&1 |
10342 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10343 *ac_space=\ *)
10344 # `set' does not quote correctly, so add quotes (double-quote
10345 # substitution turns \\\\ into \\, and sed turns \\ into \).
10346 sed -n \
ac1cb8d3
VS
10347 "s/'/'\\\\''/g;
10348 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10349 ;;
10350 *)
10351 # `set' quotes correctly as required by POSIX, so do not add quotes.
10352 sed -n \
ac1cb8d3 10353 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10354 ;;
10355 esac;
10356} |
10357 sed '
10358 t clear
10359 : clear
10360 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10361 t end
10362 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10363 : end' >>confcache
10364if diff $cache_file confcache >/dev/null 2>&1; then :; else
10365 if test -w $cache_file; then
10366 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10367 cat confcache >$cache_file
10368 else
10369 echo "not updating unwritable cache $cache_file"
10370 fi
10371fi
10372rm -f confcache
10373
10374if test "$build" != "$host" ; then
1e9e8aba 10375 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX" = 1; then
a848cd7e
SC
10376 CC=$host_alias-gcc
10377 CXX=$host_alias-c++
10378 AR=$host_alias-ar
10379 RANLIB=$host_alias-ranlib
10380 DLLTOOL=$host_alias-dlltool
10381 RESCOMP=$host_alias-windres
a848cd7e 10382 STRIP=$host_alias-strip
1e9e8aba
DE
10383 elif test "x$CC" '!=' "x"; then
10384 echo "You set CC, I assume you know what you are doing."
a848cd7e
SC
10385 else
10386 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10387echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10388 { (exit 1); exit 1; }; }
10389 fi
10390fi
10391
10392CFLAGS=${CFLAGS:=}
10393ac_ext=c
10394ac_cpp='$CPP $CPPFLAGS'
10395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10397ac_compiler_gnu=$ac_cv_c_compiler_gnu
10398if test -n "$ac_tool_prefix"; then
10399 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10400set dummy ${ac_tool_prefix}gcc; ac_word=$2
10401echo "$as_me:$LINENO: checking for $ac_word" >&5
10402echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10403if test "${ac_cv_prog_CC+set}" = set; then
10404 echo $ECHO_N "(cached) $ECHO_C" >&6
10405else
10406 if test -n "$CC"; then
10407 ac_cv_prog_CC="$CC" # Let the user override the test.
10408else
10409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10410for as_dir in $PATH
10411do
10412 IFS=$as_save_IFS
10413 test -z "$as_dir" && as_dir=.
10414 for ac_exec_ext in '' $ac_executable_extensions; do
10415 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10416 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10418 break 2
10419 fi
10420done
10421done
10422
10423fi
10424fi
10425CC=$ac_cv_prog_CC
10426if test -n "$CC"; then
10427 echo "$as_me:$LINENO: result: $CC" >&5
10428echo "${ECHO_T}$CC" >&6
10429else
10430 echo "$as_me:$LINENO: result: no" >&5
10431echo "${ECHO_T}no" >&6
10432fi
10433
10434fi
10435if test -z "$ac_cv_prog_CC"; then
10436 ac_ct_CC=$CC
10437 # Extract the first word of "gcc", so it can be a program name with args.
10438set dummy gcc; ac_word=$2
10439echo "$as_me:$LINENO: checking for $ac_word" >&5
10440echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10441if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10442 echo $ECHO_N "(cached) $ECHO_C" >&6
10443else
10444 if test -n "$ac_ct_CC"; then
10445 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10446else
10447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10448for as_dir in $PATH
10449do
10450 IFS=$as_save_IFS
10451 test -z "$as_dir" && as_dir=.
10452 for ac_exec_ext in '' $ac_executable_extensions; do
10453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10454 ac_cv_prog_ac_ct_CC="gcc"
10455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10456 break 2
10457 fi
10458done
10459done
10460
10461fi
10462fi
10463ac_ct_CC=$ac_cv_prog_ac_ct_CC
10464if test -n "$ac_ct_CC"; then
10465 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10466echo "${ECHO_T}$ac_ct_CC" >&6
10467else
10468 echo "$as_me:$LINENO: result: no" >&5
10469echo "${ECHO_T}no" >&6
10470fi
10471
10472 CC=$ac_ct_CC
10473else
10474 CC="$ac_cv_prog_CC"
10475fi
10476
10477if test -z "$CC"; then
10478 if test -n "$ac_tool_prefix"; then
10479 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10480set dummy ${ac_tool_prefix}cc; ac_word=$2
10481echo "$as_me:$LINENO: checking for $ac_word" >&5
10482echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10483if test "${ac_cv_prog_CC+set}" = set; then
10484 echo $ECHO_N "(cached) $ECHO_C" >&6
10485else
10486 if test -n "$CC"; then
10487 ac_cv_prog_CC="$CC" # Let the user override the test.
10488else
10489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10490for as_dir in $PATH
10491do
10492 IFS=$as_save_IFS
10493 test -z "$as_dir" && as_dir=.
10494 for ac_exec_ext in '' $ac_executable_extensions; do
10495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10496 ac_cv_prog_CC="${ac_tool_prefix}cc"
10497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10498 break 2
10499 fi
10500done
10501done
10502
10503fi
10504fi
10505CC=$ac_cv_prog_CC
10506if test -n "$CC"; then
10507 echo "$as_me:$LINENO: result: $CC" >&5
10508echo "${ECHO_T}$CC" >&6
10509else
10510 echo "$as_me:$LINENO: result: no" >&5
10511echo "${ECHO_T}no" >&6
10512fi
10513
10514fi
10515if test -z "$ac_cv_prog_CC"; then
10516 ac_ct_CC=$CC
10517 # Extract the first word of "cc", so it can be a program name with args.
10518set dummy cc; ac_word=$2
10519echo "$as_me:$LINENO: checking for $ac_word" >&5
10520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10521if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10522 echo $ECHO_N "(cached) $ECHO_C" >&6
10523else
10524 if test -n "$ac_ct_CC"; then
10525 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10526else
10527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10528for as_dir in $PATH
10529do
10530 IFS=$as_save_IFS
10531 test -z "$as_dir" && as_dir=.
10532 for ac_exec_ext in '' $ac_executable_extensions; do
10533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10534 ac_cv_prog_ac_ct_CC="cc"
10535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10536 break 2
10537 fi
10538done
10539done
10540
10541fi
10542fi
10543ac_ct_CC=$ac_cv_prog_ac_ct_CC
10544if test -n "$ac_ct_CC"; then
10545 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10546echo "${ECHO_T}$ac_ct_CC" >&6
10547else
10548 echo "$as_me:$LINENO: result: no" >&5
10549echo "${ECHO_T}no" >&6
10550fi
10551
10552 CC=$ac_ct_CC
10553else
10554 CC="$ac_cv_prog_CC"
10555fi
10556
10557fi
10558if test -z "$CC"; then
10559 # Extract the first word of "cc", so it can be a program name with args.
10560set dummy cc; ac_word=$2
10561echo "$as_me:$LINENO: checking for $ac_word" >&5
10562echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10563if test "${ac_cv_prog_CC+set}" = set; then
10564 echo $ECHO_N "(cached) $ECHO_C" >&6
10565else
10566 if test -n "$CC"; then
10567 ac_cv_prog_CC="$CC" # Let the user override the test.
10568else
10569 ac_prog_rejected=no
10570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10571for as_dir in $PATH
10572do
10573 IFS=$as_save_IFS
10574 test -z "$as_dir" && as_dir=.
10575 for ac_exec_ext in '' $ac_executable_extensions; do
10576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10577 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10578 ac_prog_rejected=yes
10579 continue
10580 fi
10581 ac_cv_prog_CC="cc"
10582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10583 break 2
10584 fi
10585done
10586done
10587
10588if test $ac_prog_rejected = yes; then
10589 # We found a bogon in the path, so make sure we never use it.
10590 set dummy $ac_cv_prog_CC
10591 shift
10592 if test $# != 0; then
10593 # We chose a different compiler from the bogus one.
10594 # However, it has the same basename, so the bogon will be chosen
10595 # first if we set CC to just the basename; use the full file name.
10596 shift
10597 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10598 fi
10599fi
10600fi
10601fi
10602CC=$ac_cv_prog_CC
10603if test -n "$CC"; then
10604 echo "$as_me:$LINENO: result: $CC" >&5
10605echo "${ECHO_T}$CC" >&6
10606else
10607 echo "$as_me:$LINENO: result: no" >&5
10608echo "${ECHO_T}no" >&6
10609fi
10610
10611fi
10612if test -z "$CC"; then
10613 if test -n "$ac_tool_prefix"; then
10614 for ac_prog in cl
10615 do
10616 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10617set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10618echo "$as_me:$LINENO: checking for $ac_word" >&5
10619echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10620if test "${ac_cv_prog_CC+set}" = set; then
10621 echo $ECHO_N "(cached) $ECHO_C" >&6
10622else
10623 if test -n "$CC"; then
10624 ac_cv_prog_CC="$CC" # Let the user override the test.
10625else
10626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10627for as_dir in $PATH
10628do
10629 IFS=$as_save_IFS
10630 test -z "$as_dir" && as_dir=.
10631 for ac_exec_ext in '' $ac_executable_extensions; do
10632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10633 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10635 break 2
10636 fi
10637done
10638done
10639
10640fi
10641fi
10642CC=$ac_cv_prog_CC
10643if test -n "$CC"; then
10644 echo "$as_me:$LINENO: result: $CC" >&5
10645echo "${ECHO_T}$CC" >&6
10646else
10647 echo "$as_me:$LINENO: result: no" >&5
10648echo "${ECHO_T}no" >&6
10649fi
10650
10651 test -n "$CC" && break
10652 done
10653fi
10654if test -z "$CC"; then
10655 ac_ct_CC=$CC
10656 for ac_prog in cl
10657do
10658 # Extract the first word of "$ac_prog", so it can be a program name with args.
10659set dummy $ac_prog; ac_word=$2
10660echo "$as_me:$LINENO: checking for $ac_word" >&5
10661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10662if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10663 echo $ECHO_N "(cached) $ECHO_C" >&6
10664else
10665 if test -n "$ac_ct_CC"; then
10666 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10667else
10668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10669for as_dir in $PATH
10670do
10671 IFS=$as_save_IFS
10672 test -z "$as_dir" && as_dir=.
10673 for ac_exec_ext in '' $ac_executable_extensions; do
10674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10675 ac_cv_prog_ac_ct_CC="$ac_prog"
10676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10677 break 2
10678 fi
10679done
10680done
10681
10682fi
10683fi
10684ac_ct_CC=$ac_cv_prog_ac_ct_CC
10685if test -n "$ac_ct_CC"; then
10686 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10687echo "${ECHO_T}$ac_ct_CC" >&6
10688else
10689 echo "$as_me:$LINENO: result: no" >&5
10690echo "${ECHO_T}no" >&6
10691fi
10692
10693 test -n "$ac_ct_CC" && break
10694done
10695
10696 CC=$ac_ct_CC
10697fi
10698
10699fi
10700
10701
10702test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10703See \`config.log' for more details." >&5
10704echo "$as_me: error: no acceptable C compiler found in \$PATH
10705See \`config.log' for more details." >&2;}
10706 { (exit 1); exit 1; }; }
10707
10708# Provide some information about the compiler.
10709echo "$as_me:$LINENO:" \
10710 "checking for C compiler version" >&5
10711ac_compiler=`set X $ac_compile; echo $2`
10712{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10713 (eval $ac_compiler --version </dev/null >&5) 2>&5
10714 ac_status=$?
10715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716 (exit $ac_status); }
10717{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10718 (eval $ac_compiler -v </dev/null >&5) 2>&5
10719 ac_status=$?
10720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721 (exit $ac_status); }
10722{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10723 (eval $ac_compiler -V </dev/null >&5) 2>&5
10724 ac_status=$?
10725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726 (exit $ac_status); }
10727
10728cat >conftest.$ac_ext <<_ACEOF
10729/* confdefs.h. */
10730_ACEOF
10731cat confdefs.h >>conftest.$ac_ext
10732cat >>conftest.$ac_ext <<_ACEOF
10733/* end confdefs.h. */
10734
10735int
10736main ()
10737{
10738
10739 ;
10740 return 0;
10741}
10742_ACEOF
10743ac_clean_files_save=$ac_clean_files
10744ac_clean_files="$ac_clean_files a.out a.exe b.out"
10745# Try to create an executable without -o first, disregard a.out.
10746# It will help us diagnose broken compilers, and finding out an intuition
10747# of exeext.
ac1cb8d3
VS
10748echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
10749echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
10750ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10751if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10752 (eval $ac_link_default) 2>&5
10753 ac_status=$?
10754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755 (exit $ac_status); }; then
10756 # Find the output, starting from the most likely. This scheme is
10757# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10758# resort.
10759
10760# Be careful to initialize this variable, since it used to be cached.
10761# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10762ac_cv_exeext=
10763# b.out is created by i960 compilers.
10764for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10765do
10766 test -f "$ac_file" || continue
10767 case $ac_file in
10768 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 10769 ;;
a848cd7e 10770 conftest.$ac_ext )
ac1cb8d3
VS
10771 # This is the source file.
10772 ;;
a848cd7e 10773 [ab].out )
ac1cb8d3
VS
10774 # We found the default executable, but exeext='' is most
10775 # certainly right.
10776 break;;
a848cd7e 10777 *.* )
ac1cb8d3
VS
10778 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10779 # FIXME: I believe we export ac_cv_exeext for Libtool,
10780 # but it would be cool to find out if it's true. Does anybody
10781 # maintain Libtool? --akim.
10782 export ac_cv_exeext
10783 break;;
a848cd7e 10784 * )
ac1cb8d3 10785 break;;
a848cd7e
SC
10786 esac
10787done
10788else
10789 echo "$as_me: failed program was:" >&5
10790sed 's/^/| /' conftest.$ac_ext >&5
10791
10792{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10793See \`config.log' for more details." >&5
10794echo "$as_me: error: C compiler cannot create executables
10795See \`config.log' for more details." >&2;}
10796 { (exit 77); exit 77; }; }
10797fi
10798
10799ac_exeext=$ac_cv_exeext
10800echo "$as_me:$LINENO: result: $ac_file" >&5
10801echo "${ECHO_T}$ac_file" >&6
10802
10803# Check the compiler produces executables we can run. If not, either
10804# the compiler is broken, or we cross compile.
10805echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10806echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10807# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10808# If not cross compiling, check that we can run a simple program.
10809if test "$cross_compiling" != yes; then
10810 if { ac_try='./$ac_file'
10811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10812 (eval $ac_try) 2>&5
10813 ac_status=$?
10814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815 (exit $ac_status); }; }; then
10816 cross_compiling=no
10817 else
10818 if test "$cross_compiling" = maybe; then
10819 cross_compiling=yes
10820 else
10821 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10822If you meant to cross compile, use \`--host'.
10823See \`config.log' for more details." >&5
10824echo "$as_me: error: cannot run C compiled programs.
10825If you meant to cross compile, use \`--host'.
10826See \`config.log' for more details." >&2;}
10827 { (exit 1); exit 1; }; }
10828 fi
10829 fi
10830fi
10831echo "$as_me:$LINENO: result: yes" >&5
10832echo "${ECHO_T}yes" >&6
10833
10834rm -f a.out a.exe conftest$ac_cv_exeext b.out
10835ac_clean_files=$ac_clean_files_save
10836# Check the compiler produces executables we can run. If not, either
10837# the compiler is broken, or we cross compile.
10838echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10839echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10840echo "$as_me:$LINENO: result: $cross_compiling" >&5
10841echo "${ECHO_T}$cross_compiling" >&6
10842
10843echo "$as_me:$LINENO: checking for suffix of executables" >&5
10844echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10845if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10846 (eval $ac_link) 2>&5
10847 ac_status=$?
10848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849 (exit $ac_status); }; then
10850 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10851# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10852# work properly (i.e., refer to `conftest.exe'), while it won't with
10853# `rm'.
10854for ac_file in conftest.exe conftest conftest.*; do
10855 test -f "$ac_file" || continue
10856 case $ac_file in
10857 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10858 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
10859 export ac_cv_exeext
10860 break;;
a848cd7e
SC
10861 * ) break;;
10862 esac
10863done
10864else
10865 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10866See \`config.log' for more details." >&5
10867echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10868See \`config.log' for more details." >&2;}
10869 { (exit 1); exit 1; }; }
10870fi
10871
10872rm -f conftest$ac_cv_exeext
10873echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10874echo "${ECHO_T}$ac_cv_exeext" >&6
10875
10876rm -f conftest.$ac_ext
10877EXEEXT=$ac_cv_exeext
10878ac_exeext=$EXEEXT
10879echo "$as_me:$LINENO: checking for suffix of object files" >&5
10880echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10881if test "${ac_cv_objext+set}" = set; then
10882 echo $ECHO_N "(cached) $ECHO_C" >&6
10883else
10884 cat >conftest.$ac_ext <<_ACEOF
10885/* confdefs.h. */
10886_ACEOF
10887cat confdefs.h >>conftest.$ac_ext
10888cat >>conftest.$ac_ext <<_ACEOF
10889/* end confdefs.h. */
10890
10891int
10892main ()
10893{
10894
10895 ;
10896 return 0;
10897}
10898_ACEOF
10899rm -f conftest.o conftest.obj
10900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10901 (eval $ac_compile) 2>&5
10902 ac_status=$?
10903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904 (exit $ac_status); }; then
10905 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10906 case $ac_file in
10907 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10908 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10909 break;;
10910 esac
10911done
10912else
10913 echo "$as_me: failed program was:" >&5
10914sed 's/^/| /' conftest.$ac_ext >&5
10915
10916{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10917See \`config.log' for more details." >&5
10918echo "$as_me: error: cannot compute suffix of object files: cannot compile
10919See \`config.log' for more details." >&2;}
10920 { (exit 1); exit 1; }; }
10921fi
10922
10923rm -f conftest.$ac_cv_objext conftest.$ac_ext
10924fi
10925echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10926echo "${ECHO_T}$ac_cv_objext" >&6
10927OBJEXT=$ac_cv_objext
10928ac_objext=$OBJEXT
10929echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10930echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10931if test "${ac_cv_c_compiler_gnu+set}" = set; then
10932 echo $ECHO_N "(cached) $ECHO_C" >&6
10933else
10934 cat >conftest.$ac_ext <<_ACEOF
10935/* confdefs.h. */
10936_ACEOF
10937cat confdefs.h >>conftest.$ac_ext
10938cat >>conftest.$ac_ext <<_ACEOF
10939/* end confdefs.h. */
10940
10941int
10942main ()
10943{
10944#ifndef __GNUC__
10945 choke me
10946#endif
10947
10948 ;
10949 return 0;
10950}
10951_ACEOF
10952rm -f conftest.$ac_objext
10953if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 10954 (eval $ac_compile) 2>conftest.er1
a848cd7e 10955 ac_status=$?
ac1cb8d3
VS
10956 grep -v '^ *+' conftest.er1 >conftest.err
10957 rm -f conftest.er1
10958 cat conftest.err >&5
a848cd7e
SC
10959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960 (exit $ac_status); } &&
5294a27e 10961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
10962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10963 (eval $ac_try) 2>&5
10964 ac_status=$?
10965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); }; } &&
10967 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10969 (eval $ac_try) 2>&5
10970 ac_status=$?
10971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972 (exit $ac_status); }; }; then
10973 ac_compiler_gnu=yes
10974else
10975 echo "$as_me: failed program was:" >&5
10976sed 's/^/| /' conftest.$ac_ext >&5
10977
10978ac_compiler_gnu=no
10979fi
ac1cb8d3 10980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
10981ac_cv_c_compiler_gnu=$ac_compiler_gnu
10982
10983fi
10984echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10985echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10986GCC=`test $ac_compiler_gnu = yes && echo yes`
10987ac_test_CFLAGS=${CFLAGS+set}
10988ac_save_CFLAGS=$CFLAGS
10989CFLAGS="-g"
10990echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10991echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10992if test "${ac_cv_prog_cc_g+set}" = set; then
10993 echo $ECHO_N "(cached) $ECHO_C" >&6
10994else
10995 cat >conftest.$ac_ext <<_ACEOF
10996/* confdefs.h. */
10997_ACEOF
10998cat confdefs.h >>conftest.$ac_ext
10999cat >>conftest.$ac_ext <<_ACEOF
11000/* end confdefs.h. */
11001
11002int
11003main ()
11004{
11005
11006 ;
11007 return 0;
11008}
11009_ACEOF
11010rm -f conftest.$ac_objext
11011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11012 (eval $ac_compile) 2>conftest.er1
a848cd7e 11013 ac_status=$?
ac1cb8d3
VS
11014 grep -v '^ *+' conftest.er1 >conftest.err
11015 rm -f conftest.er1
11016 cat conftest.err >&5
a848cd7e
SC
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); } &&
5294a27e 11019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11021 (eval $ac_try) 2>&5
11022 ac_status=$?
11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); }; } &&
11025 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11027 (eval $ac_try) 2>&5
11028 ac_status=$?
11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); }; }; then
11031 ac_cv_prog_cc_g=yes
11032else
11033 echo "$as_me: failed program was:" >&5
11034sed 's/^/| /' conftest.$ac_ext >&5
11035
11036ac_cv_prog_cc_g=no
11037fi
ac1cb8d3 11038rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11039fi
11040echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11041echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11042if test "$ac_test_CFLAGS" = set; then
11043 CFLAGS=$ac_save_CFLAGS
11044elif test $ac_cv_prog_cc_g = yes; then
11045 if test "$GCC" = yes; then
11046 CFLAGS="-g -O2"
11047 else
11048 CFLAGS="-g"
11049 fi
11050else
11051 if test "$GCC" = yes; then
11052 CFLAGS="-O2"
11053 else
11054 CFLAGS=
11055 fi
11056fi
11057echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11058echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11059if test "${ac_cv_prog_cc_stdc+set}" = set; then
11060 echo $ECHO_N "(cached) $ECHO_C" >&6
11061else
11062 ac_cv_prog_cc_stdc=no
11063ac_save_CC=$CC
11064cat >conftest.$ac_ext <<_ACEOF
11065/* confdefs.h. */
11066_ACEOF
11067cat confdefs.h >>conftest.$ac_ext
11068cat >>conftest.$ac_ext <<_ACEOF
11069/* end confdefs.h. */
11070#include <stdarg.h>
11071#include <stdio.h>
11072#include <sys/types.h>
11073#include <sys/stat.h>
11074/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11075struct buf { int x; };
11076FILE * (*rcsopen) (struct buf *, struct stat *, int);
11077static char *e (p, i)
11078 char **p;
11079 int i;
11080{
11081 return p[i];
11082}
11083static char *f (char * (*g) (char **, int), char **p, ...)
11084{
11085 char *s;
11086 va_list v;
11087 va_start (v,p);
11088 s = g (p, va_arg (v,int));
11089 va_end (v);
11090 return s;
11091}
ac1cb8d3
VS
11092
11093/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11094 function prototypes and stuff, but not '\xHH' hex character constants.
11095 These don't provoke an error unfortunately, instead are silently treated
11096 as 'x'. The following induces an error, until -std1 is added to get
11097 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11098 array size at least. It's necessary to write '\x00'==0 to get something
11099 that's true only with -std1. */
11100int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11101
a848cd7e
SC
11102int test (int i, double x);
11103struct s1 {int (*f) (int a);};
11104struct s2 {int (*f) (double a);};
11105int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11106int argc;
11107char **argv;
11108int
11109main ()
11110{
11111return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11112 ;
11113 return 0;
11114}
11115_ACEOF
11116# Don't try gcc -ansi; that turns off useful extensions and
11117# breaks some systems' header files.
11118# AIX -qlanglvl=ansi
11119# Ultrix and OSF/1 -std1
11120# HP-UX 10.20 and later -Ae
11121# HP-UX older versions -Aa -D_HPUX_SOURCE
11122# SVR4 -Xc -D__EXTENSIONS__
11123for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11124do
11125 CC="$ac_save_CC $ac_arg"
11126 rm -f conftest.$ac_objext
11127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11128 (eval $ac_compile) 2>conftest.er1
a848cd7e 11129 ac_status=$?
ac1cb8d3
VS
11130 grep -v '^ *+' conftest.er1 >conftest.err
11131 rm -f conftest.er1
11132 cat conftest.err >&5
a848cd7e
SC
11133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134 (exit $ac_status); } &&
5294a27e 11135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11137 (eval $ac_try) 2>&5
11138 ac_status=$?
11139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140 (exit $ac_status); }; } &&
11141 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11143 (eval $ac_try) 2>&5
11144 ac_status=$?
11145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146 (exit $ac_status); }; }; then
11147 ac_cv_prog_cc_stdc=$ac_arg
11148break
11149else
11150 echo "$as_me: failed program was:" >&5
11151sed 's/^/| /' conftest.$ac_ext >&5
11152
11153fi
ac1cb8d3 11154rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11155done
11156rm -f conftest.$ac_ext conftest.$ac_objext
11157CC=$ac_save_CC
11158
11159fi
11160
11161case "x$ac_cv_prog_cc_stdc" in
11162 x|xno)
11163 echo "$as_me:$LINENO: result: none needed" >&5
11164echo "${ECHO_T}none needed" >&6 ;;
11165 *)
11166 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11167echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11168 CC="$CC $ac_cv_prog_cc_stdc" ;;
11169esac
11170
11171# Some people use a C++ compiler to compile C. Since we use `exit',
11172# in C++ we need to declare it. In case someone uses the same compiler
11173# for both compiling C and C++ we need to have the C++ compiler decide
11174# the declaration of exit, since it's the most demanding environment.
11175cat >conftest.$ac_ext <<_ACEOF
11176#ifndef __cplusplus
11177 choke me
11178#endif
11179_ACEOF
11180rm -f conftest.$ac_objext
11181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11182 (eval $ac_compile) 2>conftest.er1
a848cd7e 11183 ac_status=$?
ac1cb8d3
VS
11184 grep -v '^ *+' conftest.er1 >conftest.err
11185 rm -f conftest.er1
11186 cat conftest.err >&5
a848cd7e
SC
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); } &&
5294a27e 11189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11191 (eval $ac_try) 2>&5
11192 ac_status=$?
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); }; } &&
11195 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11197 (eval $ac_try) 2>&5
11198 ac_status=$?
11199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200 (exit $ac_status); }; }; then
11201 for ac_declaration in \
ac1cb8d3 11202 '' \
a848cd7e
SC
11203 'extern "C" void std::exit (int) throw (); using std::exit;' \
11204 'extern "C" void std::exit (int); using std::exit;' \
11205 'extern "C" void exit (int) throw ();' \
11206 'extern "C" void exit (int);' \
11207 'void exit (int);'
11208do
11209 cat >conftest.$ac_ext <<_ACEOF
11210/* confdefs.h. */
11211_ACEOF
11212cat confdefs.h >>conftest.$ac_ext
11213cat >>conftest.$ac_ext <<_ACEOF
11214/* end confdefs.h. */
de59c161 11215$ac_declaration
ac1cb8d3 11216#include <stdlib.h>
a848cd7e
SC
11217int
11218main ()
11219{
11220exit (42);
11221 ;
11222 return 0;
11223}
11224_ACEOF
11225rm -f conftest.$ac_objext
11226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11227 (eval $ac_compile) 2>conftest.er1
a848cd7e 11228 ac_status=$?
ac1cb8d3
VS
11229 grep -v '^ *+' conftest.er1 >conftest.err
11230 rm -f conftest.er1
11231 cat conftest.err >&5
a848cd7e
SC
11232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233 (exit $ac_status); } &&
5294a27e 11234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11236 (eval $ac_try) 2>&5
11237 ac_status=$?
11238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239 (exit $ac_status); }; } &&
11240 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11242 (eval $ac_try) 2>&5
11243 ac_status=$?
11244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245 (exit $ac_status); }; }; then
11246 :
11247else
11248 echo "$as_me: failed program was:" >&5
11249sed 's/^/| /' conftest.$ac_ext >&5
11250
11251continue
11252fi
ac1cb8d3 11253rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11254 cat >conftest.$ac_ext <<_ACEOF
11255/* confdefs.h. */
11256_ACEOF
11257cat confdefs.h >>conftest.$ac_ext
11258cat >>conftest.$ac_ext <<_ACEOF
11259/* end confdefs.h. */
11260$ac_declaration
11261int
11262main ()
11263{
11264exit (42);
11265 ;
11266 return 0;
11267}
11268_ACEOF
11269rm -f conftest.$ac_objext
11270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11271 (eval $ac_compile) 2>conftest.er1
a848cd7e 11272 ac_status=$?
ac1cb8d3
VS
11273 grep -v '^ *+' conftest.er1 >conftest.err
11274 rm -f conftest.er1
11275 cat conftest.err >&5
a848cd7e
SC
11276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277 (exit $ac_status); } &&
5294a27e 11278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11280 (eval $ac_try) 2>&5
11281 ac_status=$?
11282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283 (exit $ac_status); }; } &&
11284 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11286 (eval $ac_try) 2>&5
11287 ac_status=$?
11288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289 (exit $ac_status); }; }; then
11290 break
11291else
11292 echo "$as_me: failed program was:" >&5
11293sed 's/^/| /' conftest.$ac_ext >&5
11294
11295fi
ac1cb8d3 11296rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11297done
11298rm -f conftest*
11299if test -n "$ac_declaration"; then
11300 echo '#ifdef __cplusplus' >>confdefs.h
11301 echo $ac_declaration >>confdefs.h
11302 echo '#endif' >>confdefs.h
11303fi
11304
11305else
11306 echo "$as_me: failed program was:" >&5
11307sed 's/^/| /' conftest.$ac_ext >&5
11308
11309fi
ac1cb8d3 11310rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11311ac_ext=c
11312ac_cpp='$CPP $CPPFLAGS'
11313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11315ac_compiler_gnu=$ac_cv_c_compiler_gnu
11316
11317
11318
11319ac_ext=c
11320ac_cpp='$CPP $CPPFLAGS'
11321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11323ac_compiler_gnu=$ac_cv_c_compiler_gnu
11324echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11325echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11326# On Suns, sometimes $CPP names a directory.
11327if test -n "$CPP" && test -d "$CPP"; then
11328 CPP=
11329fi
11330if test -z "$CPP"; then
11331 if test "${ac_cv_prog_CPP+set}" = set; then
11332 echo $ECHO_N "(cached) $ECHO_C" >&6
11333else
11334 # Double quotes because CPP needs to be expanded
11335 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11336 do
11337 ac_preproc_ok=false
11338for ac_c_preproc_warn_flag in '' yes
11339do
11340 # Use a header file that comes with gcc, so configuring glibc
11341 # with a fresh cross-compiler works.
11342 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11343 # <limits.h> exists even on freestanding compilers.
11344 # On the NeXT, cc -E runs the code through the compiler's parser,
11345 # not just through cpp. "Syntax error" is here to catch this case.
11346 cat >conftest.$ac_ext <<_ACEOF
11347/* confdefs.h. */
11348_ACEOF
11349cat confdefs.h >>conftest.$ac_ext
11350cat >>conftest.$ac_ext <<_ACEOF
11351/* end confdefs.h. */
11352#ifdef __STDC__
11353# include <limits.h>
11354#else
11355# include <assert.h>
11356#endif
ac1cb8d3 11357 Syntax error
a848cd7e
SC
11358_ACEOF
11359if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11360 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11361 ac_status=$?
11362 grep -v '^ *+' conftest.er1 >conftest.err
11363 rm -f conftest.er1
11364 cat conftest.err >&5
11365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11366 (exit $ac_status); } >/dev/null; then
11367 if test -s conftest.err; then
11368 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11369 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11370 else
11371 ac_cpp_err=
11372 fi
11373else
11374 ac_cpp_err=yes
11375fi
11376if test -z "$ac_cpp_err"; then
11377 :
11378else
11379 echo "$as_me: failed program was:" >&5
11380sed 's/^/| /' conftest.$ac_ext >&5
11381
11382 # Broken: fails on valid input.
11383continue
11384fi
11385rm -f conftest.err conftest.$ac_ext
11386
11387 # OK, works on sane cases. Now check whether non-existent headers
11388 # can be detected and how.
11389 cat >conftest.$ac_ext <<_ACEOF
11390/* confdefs.h. */
11391_ACEOF
11392cat confdefs.h >>conftest.$ac_ext
11393cat >>conftest.$ac_ext <<_ACEOF
11394/* end confdefs.h. */
11395#include <ac_nonexistent.h>
11396_ACEOF
11397if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11398 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11399 ac_status=$?
11400 grep -v '^ *+' conftest.er1 >conftest.err
11401 rm -f conftest.er1
11402 cat conftest.err >&5
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); } >/dev/null; then
11405 if test -s conftest.err; then
11406 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11407 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11408 else
11409 ac_cpp_err=
11410 fi
11411else
11412 ac_cpp_err=yes
11413fi
11414if test -z "$ac_cpp_err"; then
11415 # Broken: success on invalid input.
11416continue
11417else
11418 echo "$as_me: failed program was:" >&5
11419sed 's/^/| /' conftest.$ac_ext >&5
11420
11421 # Passes both tests.
11422ac_preproc_ok=:
11423break
11424fi
11425rm -f conftest.err conftest.$ac_ext
11426
11427done
11428# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11429rm -f conftest.err conftest.$ac_ext
11430if $ac_preproc_ok; then
11431 break
11432fi
11433
11434 done
11435 ac_cv_prog_CPP=$CPP
11436
11437fi
11438 CPP=$ac_cv_prog_CPP
11439else
11440 ac_cv_prog_CPP=$CPP
11441fi
11442echo "$as_me:$LINENO: result: $CPP" >&5
11443echo "${ECHO_T}$CPP" >&6
11444ac_preproc_ok=false
11445for ac_c_preproc_warn_flag in '' yes
11446do
11447 # Use a header file that comes with gcc, so configuring glibc
11448 # with a fresh cross-compiler works.
11449 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11450 # <limits.h> exists even on freestanding compilers.
11451 # On the NeXT, cc -E runs the code through the compiler's parser,
11452 # not just through cpp. "Syntax error" is here to catch this case.
11453 cat >conftest.$ac_ext <<_ACEOF
11454/* confdefs.h. */
11455_ACEOF
11456cat confdefs.h >>conftest.$ac_ext
11457cat >>conftest.$ac_ext <<_ACEOF
11458/* end confdefs.h. */
11459#ifdef __STDC__
11460# include <limits.h>
11461#else
11462# include <assert.h>
11463#endif
ac1cb8d3 11464 Syntax error
a848cd7e
SC
11465_ACEOF
11466if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11467 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11468 ac_status=$?
11469 grep -v '^ *+' conftest.er1 >conftest.err
11470 rm -f conftest.er1
11471 cat conftest.err >&5
11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); } >/dev/null; then
11474 if test -s conftest.err; then
11475 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11476 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11477 else
11478 ac_cpp_err=
11479 fi
11480else
11481 ac_cpp_err=yes
11482fi
11483if test -z "$ac_cpp_err"; then
11484 :
11485else
11486 echo "$as_me: failed program was:" >&5
11487sed 's/^/| /' conftest.$ac_ext >&5
11488
11489 # Broken: fails on valid input.
11490continue
11491fi
11492rm -f conftest.err conftest.$ac_ext
11493
11494 # OK, works on sane cases. Now check whether non-existent headers
11495 # can be detected and how.
11496 cat >conftest.$ac_ext <<_ACEOF
11497/* confdefs.h. */
11498_ACEOF
11499cat confdefs.h >>conftest.$ac_ext
11500cat >>conftest.$ac_ext <<_ACEOF
11501/* end confdefs.h. */
11502#include <ac_nonexistent.h>
11503_ACEOF
11504if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11505 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11506 ac_status=$?
11507 grep -v '^ *+' conftest.er1 >conftest.err
11508 rm -f conftest.er1
11509 cat conftest.err >&5
11510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511 (exit $ac_status); } >/dev/null; then
11512 if test -s conftest.err; then
11513 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11514 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11515 else
11516 ac_cpp_err=
11517 fi
11518else
11519 ac_cpp_err=yes
11520fi
11521if test -z "$ac_cpp_err"; then
11522 # Broken: success on invalid input.
11523continue
11524else
11525 echo "$as_me: failed program was:" >&5
11526sed 's/^/| /' conftest.$ac_ext >&5
11527
11528 # Passes both tests.
11529ac_preproc_ok=:
11530break
11531fi
11532rm -f conftest.err conftest.$ac_ext
11533
11534done
11535# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11536rm -f conftest.err conftest.$ac_ext
11537if $ac_preproc_ok; then
11538 :
11539else
11540 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11541See \`config.log' for more details." >&5
11542echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11543See \`config.log' for more details." >&2;}
11544 { (exit 1); exit 1; }; }
11545fi
11546
11547ac_ext=c
11548ac_cpp='$CPP $CPPFLAGS'
11549ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11550ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11551ac_compiler_gnu=$ac_cv_c_compiler_gnu
11552
11553
11554echo "$as_me:$LINENO: checking for egrep" >&5
11555echo $ECHO_N "checking for egrep... $ECHO_C" >&6
11556if test "${ac_cv_prog_egrep+set}" = set; then
11557 echo $ECHO_N "(cached) $ECHO_C" >&6
11558else
11559 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
11560 then ac_cv_prog_egrep='grep -E'
11561 else ac_cv_prog_egrep='egrep'
11562 fi
11563fi
11564echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
11565echo "${ECHO_T}$ac_cv_prog_egrep" >&6
11566 EGREP=$ac_cv_prog_egrep
11567
11568
11569if test $ac_cv_c_compiler_gnu = yes; then
11570 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11571echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11572if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11573 echo $ECHO_N "(cached) $ECHO_C" >&6
11574else
11575 ac_pattern="Autoconf.*'x'"
11576 cat >conftest.$ac_ext <<_ACEOF
11577/* confdefs.h. */
11578_ACEOF
11579cat confdefs.h >>conftest.$ac_ext
11580cat >>conftest.$ac_ext <<_ACEOF
11581/* end confdefs.h. */
11582#include <sgtty.h>
11583Autoconf TIOCGETP
11584_ACEOF
11585if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11586 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11587 ac_cv_prog_gcc_traditional=yes
11588else
11589 ac_cv_prog_gcc_traditional=no
11590fi
11591rm -f conftest*
11592
11593
11594 if test $ac_cv_prog_gcc_traditional = no; then
11595 cat >conftest.$ac_ext <<_ACEOF
11596/* confdefs.h. */
11597_ACEOF
11598cat confdefs.h >>conftest.$ac_ext
11599cat >>conftest.$ac_ext <<_ACEOF
11600/* end confdefs.h. */
11601#include <termio.h>
11602Autoconf TCGETA
11603_ACEOF
11604if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11605 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11606 ac_cv_prog_gcc_traditional=yes
11607fi
11608rm -f conftest*
11609
11610 fi
11611fi
11612echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11613echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
11614 if test $ac_cv_prog_gcc_traditional = yes; then
11615 CC="$CC -traditional"
11616 fi
11617fi
11618
11619
11620
11621
11622ac_ext=cc
11623ac_cpp='$CXXCPP $CPPFLAGS'
11624ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11625ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11626ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11627
11628
11629CXXFLAGS=${CXXFLAGS:=}
11630ac_ext=cc
11631ac_cpp='$CXXCPP $CPPFLAGS'
11632ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11633ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11634ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11635if test -n "$ac_tool_prefix"; then
11636 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11637 do
11638 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11639set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11640echo "$as_me:$LINENO: checking for $ac_word" >&5
11641echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11642if test "${ac_cv_prog_CXX+set}" = set; then
11643 echo $ECHO_N "(cached) $ECHO_C" >&6
11644else
11645 if test -n "$CXX"; then
11646 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11647else
11648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11649for as_dir in $PATH
11650do
11651 IFS=$as_save_IFS
11652 test -z "$as_dir" && as_dir=.
11653 for ac_exec_ext in '' $ac_executable_extensions; do
11654 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11655 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11657 break 2
11658 fi
11659done
11660done
11661
11662fi
11663fi
11664CXX=$ac_cv_prog_CXX
11665if test -n "$CXX"; then
11666 echo "$as_me:$LINENO: result: $CXX" >&5
11667echo "${ECHO_T}$CXX" >&6
11668else
11669 echo "$as_me:$LINENO: result: no" >&5
11670echo "${ECHO_T}no" >&6
11671fi
11672
11673 test -n "$CXX" && break
11674 done
11675fi
11676if test -z "$CXX"; then
11677 ac_ct_CXX=$CXX
11678 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11679do
11680 # Extract the first word of "$ac_prog", so it can be a program name with args.
11681set dummy $ac_prog; ac_word=$2
11682echo "$as_me:$LINENO: checking for $ac_word" >&5
11683echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11684if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11685 echo $ECHO_N "(cached) $ECHO_C" >&6
11686else
11687 if test -n "$ac_ct_CXX"; then
11688 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11689else
11690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11691for as_dir in $PATH
11692do
11693 IFS=$as_save_IFS
11694 test -z "$as_dir" && as_dir=.
11695 for ac_exec_ext in '' $ac_executable_extensions; do
11696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11697 ac_cv_prog_ac_ct_CXX="$ac_prog"
11698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11699 break 2
11700 fi
11701done
11702done
11703
11704fi
11705fi
11706ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11707if test -n "$ac_ct_CXX"; then
11708 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11709echo "${ECHO_T}$ac_ct_CXX" >&6
11710else
11711 echo "$as_me:$LINENO: result: no" >&5
11712echo "${ECHO_T}no" >&6
11713fi
11714
11715 test -n "$ac_ct_CXX" && break
11716done
11717test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11718
11719 CXX=$ac_ct_CXX
11720fi
11721
11722
11723# Provide some information about the compiler.
11724echo "$as_me:$LINENO:" \
11725 "checking for C++ compiler version" >&5
11726ac_compiler=`set X $ac_compile; echo $2`
11727{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11728 (eval $ac_compiler --version </dev/null >&5) 2>&5
11729 ac_status=$?
11730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731 (exit $ac_status); }
11732{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11733 (eval $ac_compiler -v </dev/null >&5) 2>&5
11734 ac_status=$?
11735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736 (exit $ac_status); }
11737{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11738 (eval $ac_compiler -V </dev/null >&5) 2>&5
11739 ac_status=$?
11740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741 (exit $ac_status); }
11742
11743echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11744echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11745if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11746 echo $ECHO_N "(cached) $ECHO_C" >&6
11747else
11748 cat >conftest.$ac_ext <<_ACEOF
11749/* confdefs.h. */
11750_ACEOF
11751cat confdefs.h >>conftest.$ac_ext
11752cat >>conftest.$ac_ext <<_ACEOF
11753/* end confdefs.h. */
11754
11755int
11756main ()
11757{
11758#ifndef __GNUC__
11759 choke me
11760#endif
11761
11762 ;
11763 return 0;
11764}
11765_ACEOF
11766rm -f conftest.$ac_objext
11767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11768 (eval $ac_compile) 2>conftest.er1
a848cd7e 11769 ac_status=$?
ac1cb8d3
VS
11770 grep -v '^ *+' conftest.er1 >conftest.err
11771 rm -f conftest.er1
11772 cat conftest.err >&5
a848cd7e
SC
11773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774 (exit $ac_status); } &&
5294a27e 11775 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11777 (eval $ac_try) 2>&5
11778 ac_status=$?
11779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780 (exit $ac_status); }; } &&
11781 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11783 (eval $ac_try) 2>&5
11784 ac_status=$?
11785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); }; }; then
11787 ac_compiler_gnu=yes
11788else
11789 echo "$as_me: failed program was:" >&5
11790sed 's/^/| /' conftest.$ac_ext >&5
11791
11792ac_compiler_gnu=no
11793fi
ac1cb8d3 11794rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11795ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11796
11797fi
11798echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11799echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11800GXX=`test $ac_compiler_gnu = yes && echo yes`
11801ac_test_CXXFLAGS=${CXXFLAGS+set}
11802ac_save_CXXFLAGS=$CXXFLAGS
11803CXXFLAGS="-g"
11804echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11805echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11806if test "${ac_cv_prog_cxx_g+set}" = set; then
11807 echo $ECHO_N "(cached) $ECHO_C" >&6
11808else
11809 cat >conftest.$ac_ext <<_ACEOF
11810/* confdefs.h. */
11811_ACEOF
11812cat confdefs.h >>conftest.$ac_ext
11813cat >>conftest.$ac_ext <<_ACEOF
11814/* end confdefs.h. */
11815
11816int
11817main ()
11818{
11819
11820 ;
11821 return 0;
11822}
11823_ACEOF
11824rm -f conftest.$ac_objext
11825if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11826 (eval $ac_compile) 2>conftest.er1
a848cd7e 11827 ac_status=$?
ac1cb8d3
VS
11828 grep -v '^ *+' conftest.er1 >conftest.err
11829 rm -f conftest.er1
11830 cat conftest.err >&5
a848cd7e
SC
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); } &&
5294a27e 11833 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11835 (eval $ac_try) 2>&5
11836 ac_status=$?
11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838 (exit $ac_status); }; } &&
11839 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11841 (eval $ac_try) 2>&5
11842 ac_status=$?
11843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844 (exit $ac_status); }; }; then
11845 ac_cv_prog_cxx_g=yes
11846else
11847 echo "$as_me: failed program was:" >&5
11848sed 's/^/| /' conftest.$ac_ext >&5
11849
11850ac_cv_prog_cxx_g=no
11851fi
ac1cb8d3 11852rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11853fi
11854echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11855echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
11856if test "$ac_test_CXXFLAGS" = set; then
11857 CXXFLAGS=$ac_save_CXXFLAGS
11858elif test $ac_cv_prog_cxx_g = yes; then
11859 if test "$GXX" = yes; then
11860 CXXFLAGS="-g -O2"
11861 else
11862 CXXFLAGS="-g"
11863 fi
11864else
11865 if test "$GXX" = yes; then
11866 CXXFLAGS="-O2"
11867 else
11868 CXXFLAGS=
11869 fi
11870fi
11871for ac_declaration in \
ac1cb8d3 11872 '' \
a848cd7e
SC
11873 'extern "C" void std::exit (int) throw (); using std::exit;' \
11874 'extern "C" void std::exit (int); using std::exit;' \
11875 'extern "C" void exit (int) throw ();' \
11876 'extern "C" void exit (int);' \
11877 'void exit (int);'
11878do
11879 cat >conftest.$ac_ext <<_ACEOF
11880/* confdefs.h. */
11881_ACEOF
11882cat confdefs.h >>conftest.$ac_ext
11883cat >>conftest.$ac_ext <<_ACEOF
11884/* end confdefs.h. */
de59c161 11885$ac_declaration
ac1cb8d3 11886#include <stdlib.h>
a848cd7e
SC
11887int
11888main ()
11889{
11890exit (42);
11891 ;
11892 return 0;
11893}
11894_ACEOF
11895rm -f conftest.$ac_objext
11896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11897 (eval $ac_compile) 2>conftest.er1
a848cd7e 11898 ac_status=$?
ac1cb8d3
VS
11899 grep -v '^ *+' conftest.er1 >conftest.err
11900 rm -f conftest.er1
11901 cat conftest.err >&5
a848cd7e
SC
11902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903 (exit $ac_status); } &&
5294a27e 11904 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11906 (eval $ac_try) 2>&5
11907 ac_status=$?
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); }; } &&
11910 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11912 (eval $ac_try) 2>&5
11913 ac_status=$?
11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); }; }; then
11916 :
11917else
11918 echo "$as_me: failed program was:" >&5
11919sed 's/^/| /' conftest.$ac_ext >&5
11920
11921continue
11922fi
ac1cb8d3 11923rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11924 cat >conftest.$ac_ext <<_ACEOF
11925/* confdefs.h. */
11926_ACEOF
11927cat confdefs.h >>conftest.$ac_ext
11928cat >>conftest.$ac_ext <<_ACEOF
11929/* end confdefs.h. */
11930$ac_declaration
11931int
11932main ()
11933{
11934exit (42);
11935 ;
11936 return 0;
11937}
11938_ACEOF
11939rm -f conftest.$ac_objext
11940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11941 (eval $ac_compile) 2>conftest.er1
a848cd7e 11942 ac_status=$?
ac1cb8d3
VS
11943 grep -v '^ *+' conftest.er1 >conftest.err
11944 rm -f conftest.er1
11945 cat conftest.err >&5
a848cd7e
SC
11946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947 (exit $ac_status); } &&
5294a27e 11948 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11950 (eval $ac_try) 2>&5
11951 ac_status=$?
11952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953 (exit $ac_status); }; } &&
11954 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11956 (eval $ac_try) 2>&5
11957 ac_status=$?
11958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959 (exit $ac_status); }; }; then
11960 break
11961else
11962 echo "$as_me: failed program was:" >&5
11963sed 's/^/| /' conftest.$ac_ext >&5
11964
11965fi
ac1cb8d3 11966rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11967done
11968rm -f conftest*
11969if test -n "$ac_declaration"; then
11970 echo '#ifdef __cplusplus' >>confdefs.h
11971 echo $ac_declaration >>confdefs.h
11972 echo '#endif' >>confdefs.h
11973fi
11974
11975ac_ext=cc
11976ac_cpp='$CXXCPP $CPPFLAGS'
11977ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11978ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11979ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11980
11981
11982ac_ext=c
11983ac_cpp='$CPP $CPPFLAGS'
11984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11986ac_compiler_gnu=$ac_cv_c_compiler_gnu
11987
11988
a848cd7e
SC
11989if test -n "$ac_tool_prefix"; then
11990 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11991set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11992echo "$as_me:$LINENO: checking for $ac_word" >&5
11993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11994if test "${ac_cv_prog_RANLIB+set}" = set; then
11995 echo $ECHO_N "(cached) $ECHO_C" >&6
11996else
11997 if test -n "$RANLIB"; then
11998 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11999else
12000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12001for as_dir in $PATH
12002do
12003 IFS=$as_save_IFS
12004 test -z "$as_dir" && as_dir=.
12005 for ac_exec_ext in '' $ac_executable_extensions; do
12006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12007 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12009 break 2
12010 fi
12011done
12012done
12013
12014fi
12015fi
12016RANLIB=$ac_cv_prog_RANLIB
12017if test -n "$RANLIB"; then
12018 echo "$as_me:$LINENO: result: $RANLIB" >&5
12019echo "${ECHO_T}$RANLIB" >&6
12020else
12021 echo "$as_me:$LINENO: result: no" >&5
12022echo "${ECHO_T}no" >&6
12023fi
12024
12025fi
12026if test -z "$ac_cv_prog_RANLIB"; then
12027 ac_ct_RANLIB=$RANLIB
12028 # Extract the first word of "ranlib", so it can be a program name with args.
12029set dummy ranlib; ac_word=$2
12030echo "$as_me:$LINENO: checking for $ac_word" >&5
12031echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12032if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12033 echo $ECHO_N "(cached) $ECHO_C" >&6
12034else
12035 if test -n "$ac_ct_RANLIB"; then
12036 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12037else
12038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12039for as_dir in $PATH
12040do
12041 IFS=$as_save_IFS
12042 test -z "$as_dir" && as_dir=.
12043 for ac_exec_ext in '' $ac_executable_extensions; do
12044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12045 ac_cv_prog_ac_ct_RANLIB="ranlib"
12046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12047 break 2
12048 fi
12049done
12050done
12051
12052 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
12053fi
12054fi
12055ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12056if test -n "$ac_ct_RANLIB"; then
12057 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12058echo "${ECHO_T}$ac_ct_RANLIB" >&6
12059else
12060 echo "$as_me:$LINENO: result: no" >&5
12061echo "${ECHO_T}no" >&6
12062fi
12063
12064 RANLIB=$ac_ct_RANLIB
12065else
12066 RANLIB="$ac_cv_prog_RANLIB"
12067fi
12068
12069
12070# Extract the first word of "ar", so it can be a program name with args.
12071set dummy ar; ac_word=$2
12072echo "$as_me:$LINENO: checking for $ac_word" >&5
12073echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12074if test "${ac_cv_prog_AR+set}" = set; then
12075 echo $ECHO_N "(cached) $ECHO_C" >&6
12076else
12077 if test -n "$AR"; then
12078 ac_cv_prog_AR="$AR" # Let the user override the test.
12079else
12080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12081for as_dir in $PATH
12082do
12083 IFS=$as_save_IFS
12084 test -z "$as_dir" && as_dir=.
12085 for ac_exec_ext in '' $ac_executable_extensions; do
12086 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12087 ac_cv_prog_AR="ar"
12088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12089 break 2
12090 fi
12091done
12092done
12093
12094fi
12095fi
12096AR=$ac_cv_prog_AR
12097if test -n "$AR"; then
12098 echo "$as_me:$LINENO: result: $AR" >&5
12099echo "${ECHO_T}$AR" >&6
12100else
12101 echo "$as_me:$LINENO: result: no" >&5
12102echo "${ECHO_T}no" >&6
12103fi
12104
12105if test "x$AR" = "x" ; then
77ffb593
JS
12106 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
12107echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
12108 { (exit 1); exit 1; }; }
12109fi
12110
12111# Find a good install program. We prefer a C program (faster),
12112# so one script is as good as another. But avoid the broken or
12113# incompatible versions:
12114# SysV /etc/install, /usr/sbin/install
12115# SunOS /usr/etc/install
12116# IRIX /sbin/install
12117# AIX /bin/install
12118# AmigaOS /C/install, which installs bootblocks on floppy discs
12119# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12120# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12121# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 12122# OS/2's system install, which has a completely different semantic
a848cd7e
SC
12123# ./install, which can be erroneously created by make from ./install.sh.
12124echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12125echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12126if test -z "$INSTALL"; then
12127if test "${ac_cv_path_install+set}" = set; then
12128 echo $ECHO_N "(cached) $ECHO_C" >&6
12129else
12130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12131for as_dir in $PATH
12132do
12133 IFS=$as_save_IFS
12134 test -z "$as_dir" && as_dir=.
12135 # Account for people who put trailing slashes in PATH elements.
12136case $as_dir/ in
12137 ./ | .// | /cC/* | \
12138 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 12139 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
12140 /usr/ucb/* ) ;;
12141 *)
12142 # OSF1 and SCO ODT 3.0 have their own names for install.
12143 # Don't use installbsd from OSF since it installs stuff as root
12144 # by default.
12145 for ac_prog in ginstall scoinst install; do
12146 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
12147 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12148 if test $ac_prog = install &&
12149 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12150 # AIX install. It has an incompatible calling convention.
12151 :
12152 elif test $ac_prog = install &&
12153 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12154 # program-specific install script used by HP pwplus--don't use.
12155 :
12156 else
12157 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12158 break 3
12159 fi
12160 fi
a848cd7e
SC
12161 done
12162 done
12163 ;;
12164esac
12165done
12166
12167
12168fi
12169 if test "${ac_cv_path_install+set}" = set; then
12170 INSTALL=$ac_cv_path_install
12171 else
12172 # As a last resort, use the slow shell script. We don't cache a
12173 # path for INSTALL within a source directory, because that will
12174 # break other packages using the cache if that directory is
12175 # removed, or if the path is relative.
12176 INSTALL=$ac_install_sh
12177 fi
12178fi
12179echo "$as_me:$LINENO: result: $INSTALL" >&5
12180echo "${ECHO_T}$INSTALL" >&6
12181
12182# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12183# It thinks the first close brace ends the variable substitution.
12184test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12185
12186test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12187
12188test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12189
12190
12191case ${INSTALL} in
12192 /* ) # Absolute
12193 ;;
12194 ?:* ) # Drive letter, considered as absolute.
12195 ;;
12196 *)
12197 INSTALL=`pwd`/${INSTALL} ;;
12198esac
12199
a848cd7e
SC
12200
12201case "${host}" in
12202
12203 powerpc-*-darwin* )
12204 INSTALL_PROGRAM="cp -fp"
12205 INSTALL_DATA="cp -fp"
12206 ;;
12207 *)
12208 ;;
12209esac
12210
12211# Extract the first word of "strip", so it can be a program name with args.
12212set dummy strip; ac_word=$2
12213echo "$as_me:$LINENO: checking for $ac_word" >&5
12214echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12215if test "${ac_cv_prog_STRIP+set}" = set; then
12216 echo $ECHO_N "(cached) $ECHO_C" >&6
12217else
12218 if test -n "$STRIP"; then
12219 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12220else
12221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12222for as_dir in $PATH
12223do
12224 IFS=$as_save_IFS
12225 test -z "$as_dir" && as_dir=.
12226 for ac_exec_ext in '' $ac_executable_extensions; do
12227 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12228 ac_cv_prog_STRIP="strip"
12229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12230 break 2
12231 fi
12232done
12233done
12234
12235 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
12236fi
12237fi
12238STRIP=$ac_cv_prog_STRIP
12239if test -n "$STRIP"; then
12240 echo "$as_me:$LINENO: result: $STRIP" >&5
12241echo "${ECHO_T}$STRIP" >&6
12242else
12243 echo "$as_me:$LINENO: result: no" >&5
12244echo "${ECHO_T}no" >&6
12245fi
12246
12247
12248echo "$as_me:$LINENO: checking if make is GNU make" >&5
12249echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
12250if test "${wx_cv_prog_makeisgnu+set}" = set; then
12251 echo $ECHO_N "(cached) $ECHO_C" >&6
12252else
12253
12254 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
12255 egrep -s GNU > /dev/null); then
12256 wx_cv_prog_makeisgnu="yes"
12257 else
12258 wx_cv_prog_makeisgnu="no"
12259 fi
12260
12261fi
12262echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
12263echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
12264
12265if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
12266 IF_GNU_MAKE=""
12267else
12268 IF_GNU_MAKE="#"
12269fi
12270
12271
12272
12273if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
12274echo "$as_me:$LINENO: checking if make supports VPATH" >&5
12275echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
12276if test "${wx_cv_prog_makevpath+set}" = set; then
12277 echo $ECHO_N "(cached) $ECHO_C" >&6
12278else
12279
12280cat - << EOF > confMake
12281check : file
12282 cp \$? \$@
12283 cp \$? final_file
12284EOF
12285
12286if test ! -d sub ; then
12287 mkdir sub
12288fi
12289echo dummy > sub/file
12290${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
12291RESULT=$?
12292rm -f sub/file check final_file confMake
12293rmdir sub
12294if test "$RESULT" = 0; then
12295 wx_cv_prog_makevpath="yes"
12296else
12297 wx_cv_prog_makevpath="no"
12298fi
12299
12300fi
12301echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
12302echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
12303
12304if test "x$wx_cv_prog_makevpath" != "xyes"; then
12305{ { echo "$as_me:$LINENO: error:
12306You need a make-utility that is able to use the variable
12307VPATH correctly.
12308If your version of make does not support VPATH correctly,
12309please install GNU-make (possibly as gmake), and start
12310configure with the following command:
12311export MAKE=gmake; ./configure for sh-type shells
12312setenv MAKE gmake; ./configure for csh-type shells
12313Also please do remember to use gmake in this case every time
12314you are trying to compile.
12315" >&5
12316echo "$as_me: error:
12317You need a make-utility that is able to use the variable
12318VPATH correctly.
12319If your version of make does not support VPATH correctly,
12320please install GNU-make (possibly as gmake), and start
12321configure with the following command:
12322export MAKE=gmake; ./configure for sh-type shells
12323setenv MAKE gmake; ./configure for csh-type shells
12324Also please do remember to use gmake in this case every time
12325you are trying to compile.
12326" >&2;}
12327 { (exit 1); exit 1; }; }
12328fi fi
12329echo "$as_me:$LINENO: checking whether ln -s works" >&5
12330echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
12331LN_S=$as_ln_s
12332if test "$LN_S" = "ln -s"; then
12333 echo "$as_me:$LINENO: result: yes" >&5
12334echo "${ECHO_T}yes" >&6
12335else
12336 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
12337echo "${ECHO_T}no, using $LN_S" >&6
12338fi
12339
12340
12341
12342case "${host}" in
12343 *-pc-os2_emx | *-pc-os2-emx )
12344 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
12345 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
12346echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
12347if test "${ac_cv_lib_cExt_drand48+set}" = set; then
12348 echo $ECHO_N "(cached) $ECHO_C" >&6
12349else
12350 ac_check_lib_save_LIBS=$LIBS
12351LIBS="-lcExt $LIBS"
12352cat >conftest.$ac_ext <<_ACEOF
12353/* confdefs.h. */
12354_ACEOF
12355cat confdefs.h >>conftest.$ac_ext
12356cat >>conftest.$ac_ext <<_ACEOF
12357/* end confdefs.h. */
12358
12359/* Override any gcc2 internal prototype to avoid an error. */
12360#ifdef __cplusplus
12361extern "C"
12362#endif
12363/* We use char because int might match the return type of a gcc2
12364 builtin and then its argument prototype would still apply. */
12365char drand48 ();
12366int
12367main ()
12368{
12369drand48 ();
12370 ;
12371 return 0;
12372}
12373_ACEOF
12374rm -f conftest.$ac_objext conftest$ac_exeext
12375if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12376 (eval $ac_link) 2>conftest.er1
a848cd7e 12377 ac_status=$?
ac1cb8d3
VS
12378 grep -v '^ *+' conftest.er1 >conftest.err
12379 rm -f conftest.er1
12380 cat conftest.err >&5
a848cd7e
SC
12381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382 (exit $ac_status); } &&
5294a27e 12383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12385 (eval $ac_try) 2>&5
12386 ac_status=$?
12387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388 (exit $ac_status); }; } &&
12389 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12391 (eval $ac_try) 2>&5
12392 ac_status=$?
12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394 (exit $ac_status); }; }; then
12395 ac_cv_lib_cExt_drand48=yes
12396else
12397 echo "$as_me: failed program was:" >&5
12398sed 's/^/| /' conftest.$ac_ext >&5
12399
12400ac_cv_lib_cExt_drand48=no
12401fi
ac1cb8d3
VS
12402rm -f conftest.err conftest.$ac_objext \
12403 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12404LIBS=$ac_check_lib_save_LIBS
12405fi
12406echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
12407echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
12408if test $ac_cv_lib_cExt_drand48 = yes; then
12409 LIBS="$LIBS -lcExt"
12410fi
12411
12412 else
12413 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
12414 fi
12415 echo "$as_me:$LINENO: checking for gcc version" >&5
12416echo $ECHO_N "checking for gcc version... $ECHO_C" >&6
12417if test "${wx_cv_gccversion+set}" = set; then
12418 echo $ECHO_N "(cached) $ECHO_C" >&6
12419else
12420
12421 cat >conftest.$ac_ext <<_ACEOF
12422/* confdefs.h. */
12423_ACEOF
12424cat confdefs.h >>conftest.$ac_ext
12425cat >>conftest.$ac_ext <<_ACEOF
12426/* end confdefs.h. */
12427
12428int
12429main ()
12430{
12431
12432 #if (__GNUC__ < 3)
12433 #error old gcc
12434 #endif
12435
12436 ;
12437 return 0;
12438}
12439_ACEOF
12440rm -f conftest.$ac_objext
12441if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12442 (eval $ac_compile) 2>conftest.er1
a848cd7e 12443 ac_status=$?
ac1cb8d3
VS
12444 grep -v '^ *+' conftest.er1 >conftest.err
12445 rm -f conftest.er1
12446 cat conftest.err >&5
a848cd7e
SC
12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); } &&
5294a27e 12449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12451 (eval $ac_try) 2>&5
12452 ac_status=$?
12453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454 (exit $ac_status); }; } &&
12455 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12457 (eval $ac_try) 2>&5
12458 ac_status=$?
12459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460 (exit $ac_status); }; }; then
12461
12462 cat >conftest.$ac_ext <<_ACEOF
12463/* confdefs.h. */
12464_ACEOF
12465cat confdefs.h >>conftest.$ac_ext
12466cat >>conftest.$ac_ext <<_ACEOF
12467/* end confdefs.h. */
12468
12469int
12470main ()
12471{
12472
12473 #if (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
12474 #error intermediate gcc
12475 #endif
12476
12477 ;
12478 return 0;
12479}
12480_ACEOF
12481rm -f conftest.$ac_objext
12482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12483 (eval $ac_compile) 2>conftest.er1
a848cd7e 12484 ac_status=$?
ac1cb8d3
VS
12485 grep -v '^ *+' conftest.er1 >conftest.err
12486 rm -f conftest.er1
12487 cat conftest.err >&5
a848cd7e
SC
12488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489 (exit $ac_status); } &&
5294a27e 12490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12492 (eval $ac_try) 2>&5
12493 ac_status=$?
12494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495 (exit $ac_status); }; } &&
12496 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12498 (eval $ac_try) 2>&5
12499 ac_status=$?
12500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501 (exit $ac_status); }; }; then
12502
12503 wx_cv_gccversion=Innotek
12504
12505else
12506 echo "$as_me: failed program was:" >&5
12507sed 's/^/| /' conftest.$ac_ext >&5
12508
12509
12510 wx_cv_gccversion=3
12511
12512
12513fi
ac1cb8d3 12514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12515
12516else
12517 echo "$as_me: failed program was:" >&5
12518sed 's/^/| /' conftest.$ac_ext >&5
12519
12520
12521 wx_cv_gccversion=2
12522
12523
12524fi
ac1cb8d3 12525rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12526
12527fi
12528echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
12529echo "${ECHO_T}$wx_cv_gccversion" >&6
12530 if test "$wx_cv_gccversion" = "2"; then
12531 LIBS="$LIBS -lstdcpp"
12532 LDFLAGS="$LDFLAGS -Zsysv-signals"
12533 else
12534 if test "$wx_cv_gccversion" = "3"; then
12535 LIBS="$LIBS -lstdcxx"
12536 LDFLAGS="$LDFLAGS -Zsysv-signals"
12537 else
12538 LIBS="$LIBS -lstdc++"
12539 fi
12540 fi
12541 if test "$wxUSE_OMF" = "yes"; then
de59c161 12542 LDFLAGS="$LDFLAGS -Zomf -Zlinker /PMTYPE:PM -Zlinker /EXEPACK"
a848cd7e
SC
12543 fi
12544 ;;
12545 *)
12546
12547
12548
12549 ac_ext=cc
12550ac_cpp='$CXXCPP $CPPFLAGS'
12551ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12552ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12553ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12554
12555
12556
12557echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
12558echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
12559if test "${ac_cv_string_strcasecmp+set}" = set; then
12560 echo $ECHO_N "(cached) $ECHO_C" >&6
12561else
12562
12563 cat >conftest.$ac_ext <<_ACEOF
12564/* confdefs.h. */
12565_ACEOF
12566cat confdefs.h >>conftest.$ac_ext
12567cat >>conftest.$ac_ext <<_ACEOF
12568/* end confdefs.h. */
12569
12570 #include <string.h>
12571
12572int
12573main ()
12574{
12575
12576 strcasecmp("foo", "bar");
12577
12578 ;
12579 return 0;
12580}
12581_ACEOF
12582rm -f conftest.$ac_objext conftest$ac_exeext
12583if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12584 (eval $ac_link) 2>conftest.er1
a848cd7e 12585 ac_status=$?
ac1cb8d3
VS
12586 grep -v '^ *+' conftest.er1 >conftest.err
12587 rm -f conftest.er1
12588 cat conftest.err >&5
a848cd7e
SC
12589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590 (exit $ac_status); } &&
5294a27e 12591 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12593 (eval $ac_try) 2>&5
12594 ac_status=$?
12595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596 (exit $ac_status); }; } &&
12597 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12599 (eval $ac_try) 2>&5
12600 ac_status=$?
12601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602 (exit $ac_status); }; }; then
12603 ac_cv_string_strcasecmp=yes
12604else
12605 echo "$as_me: failed program was:" >&5
12606sed 's/^/| /' conftest.$ac_ext >&5
12607
12608ac_cv_string_strcasecmp=no
12609
12610fi
ac1cb8d3
VS
12611rm -f conftest.err conftest.$ac_objext \
12612 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12613
12614fi
12615echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
12616echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
12617
12618 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12619 cat >>confdefs.h <<\_ACEOF
12620#define HAVE_STRCASECMP_IN_STRING_H 1
12621_ACEOF
12622
12623 else
12624 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
12625echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
12626if test "${ac_cv_strings_strcasecmp+set}" = set; then
12627 echo $ECHO_N "(cached) $ECHO_C" >&6
12628else
12629
12630 cat >conftest.$ac_ext <<_ACEOF
12631/* confdefs.h. */
12632_ACEOF
12633cat confdefs.h >>conftest.$ac_ext
12634cat >>conftest.$ac_ext <<_ACEOF
12635/* end confdefs.h. */
12636
12637 #include <strings.h>
12638
12639int
12640main ()
12641{
12642
12643 strcasecmp("foo", "bar");
12644
12645 ;
12646 return 0;
12647}
12648_ACEOF
12649rm -f conftest.$ac_objext conftest$ac_exeext
12650if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12651 (eval $ac_link) 2>conftest.er1
a848cd7e 12652 ac_status=$?
ac1cb8d3
VS
12653 grep -v '^ *+' conftest.er1 >conftest.err
12654 rm -f conftest.er1
12655 cat conftest.err >&5
a848cd7e
SC
12656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 (exit $ac_status); } &&
5294a27e 12658 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12660 (eval $ac_try) 2>&5
12661 ac_status=$?
12662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663 (exit $ac_status); }; } &&
12664 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12666 (eval $ac_try) 2>&5
12667 ac_status=$?
12668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669 (exit $ac_status); }; }; then
12670 ac_cv_strings_strcasecmp=yes
12671else
12672 echo "$as_me: failed program was:" >&5
12673sed 's/^/| /' conftest.$ac_ext >&5
12674
12675ac_cv_strings_strcasecmp=no
12676
12677fi
ac1cb8d3
VS
12678rm -f conftest.err conftest.$ac_objext \
12679 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12680
12681fi
12682echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
12683echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
12684
0c3c69fc 12685 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
12686 cat >>confdefs.h <<\_ACEOF
12687#define HAVE_STRCASECMP_IN_STRINGS_H 1
12688_ACEOF
12689
12690 else
12691 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
12692echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
12693 { (exit 1); exit 1; }; }
12694 fi
12695 fi
12696
12697 ac_ext=c
12698ac_cpp='$CPP $CPPFLAGS'
12699ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12700ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12701ac_compiler_gnu=$ac_cv_c_compiler_gnu
12702
12703 ;;
12704esac
12705
12706
12707echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12708echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12709if test "${ac_cv_header_stdc+set}" = set; then
12710 echo $ECHO_N "(cached) $ECHO_C" >&6
12711else
12712 cat >conftest.$ac_ext <<_ACEOF
12713/* confdefs.h. */
12714_ACEOF
12715cat confdefs.h >>conftest.$ac_ext
12716cat >>conftest.$ac_ext <<_ACEOF
12717/* end confdefs.h. */
12718#include <stdlib.h>
12719#include <stdarg.h>
12720#include <string.h>
12721#include <float.h>
12722
12723int
12724main ()
12725{
12726
12727 ;
12728 return 0;
12729}
12730_ACEOF
12731rm -f conftest.$ac_objext
12732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12733 (eval $ac_compile) 2>conftest.er1
a848cd7e 12734 ac_status=$?
ac1cb8d3
VS
12735 grep -v '^ *+' conftest.er1 >conftest.err
12736 rm -f conftest.er1
12737 cat conftest.err >&5
a848cd7e
SC
12738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739 (exit $ac_status); } &&
5294a27e 12740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12742 (eval $ac_try) 2>&5
12743 ac_status=$?
12744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745 (exit $ac_status); }; } &&
12746 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12748 (eval $ac_try) 2>&5
12749 ac_status=$?
12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); }; }; then
12752 ac_cv_header_stdc=yes
12753else
12754 echo "$as_me: failed program was:" >&5
12755sed 's/^/| /' conftest.$ac_ext >&5
12756
12757ac_cv_header_stdc=no
12758fi
ac1cb8d3 12759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12760
12761if test $ac_cv_header_stdc = yes; then
12762 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12763 cat >conftest.$ac_ext <<_ACEOF
12764/* confdefs.h. */
12765_ACEOF
12766cat confdefs.h >>conftest.$ac_ext
12767cat >>conftest.$ac_ext <<_ACEOF
12768/* end confdefs.h. */
12769#include <string.h>
12770
12771_ACEOF
12772if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12773 $EGREP "memchr" >/dev/null 2>&1; then
12774 :
12775else
12776 ac_cv_header_stdc=no
12777fi
12778rm -f conftest*
12779
12780fi
12781
12782if test $ac_cv_header_stdc = yes; then
12783 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12784 cat >conftest.$ac_ext <<_ACEOF
12785/* confdefs.h. */
12786_ACEOF
12787cat confdefs.h >>conftest.$ac_ext
12788cat >>conftest.$ac_ext <<_ACEOF
12789/* end confdefs.h. */
12790#include <stdlib.h>
12791
12792_ACEOF
12793if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12794 $EGREP "free" >/dev/null 2>&1; then
12795 :
12796else
12797 ac_cv_header_stdc=no
12798fi
12799rm -f conftest*
12800
12801fi
12802
12803if test $ac_cv_header_stdc = yes; then
12804 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12805 if test "$cross_compiling" = yes; then
12806 :
12807else
12808 cat >conftest.$ac_ext <<_ACEOF
12809/* confdefs.h. */
12810_ACEOF
12811cat confdefs.h >>conftest.$ac_ext
12812cat >>conftest.$ac_ext <<_ACEOF
12813/* end confdefs.h. */
12814#include <ctype.h>
12815#if ((' ' & 0x0FF) == 0x020)
12816# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12817# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12818#else
12819# define ISLOWER(c) \
ac1cb8d3
VS
12820 (('a' <= (c) && (c) <= 'i') \
12821 || ('j' <= (c) && (c) <= 'r') \
12822 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
12823# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12824#endif
12825
12826#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12827int
12828main ()
12829{
12830 int i;
12831 for (i = 0; i < 256; i++)
12832 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 12833 || toupper (i) != TOUPPER (i))
a848cd7e
SC
12834 exit(2);
12835 exit (0);
12836}
12837_ACEOF
12838rm -f conftest$ac_exeext
12839if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12840 (eval $ac_link) 2>&5
12841 ac_status=$?
12842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12845 (eval $ac_try) 2>&5
12846 ac_status=$?
12847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848 (exit $ac_status); }; }; then
12849 :
12850else
12851 echo "$as_me: program exited with status $ac_status" >&5
12852echo "$as_me: failed program was:" >&5
12853sed 's/^/| /' conftest.$ac_ext >&5
12854
12855( exit $ac_status )
12856ac_cv_header_stdc=no
12857fi
ac1cb8d3 12858rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12859fi
12860fi
12861fi
12862echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12863echo "${ECHO_T}$ac_cv_header_stdc" >&6
12864if test $ac_cv_header_stdc = yes; then
12865
12866cat >>confdefs.h <<\_ACEOF
12867#define STDC_HEADERS 1
12868_ACEOF
12869
12870fi
12871
12872# On IRIX 5.3, sys/types and inttypes.h are conflicting.
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 12883 inttypes.h stdint.h unistd.h
a848cd7e
SC
12884do
12885as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12886echo "$as_me:$LINENO: checking for $ac_header" >&5
12887echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12888if eval "test \"\${$as_ac_Header+set}\" = set"; then
12889 echo $ECHO_N "(cached) $ECHO_C" >&6
12890else
12891 cat >conftest.$ac_ext <<_ACEOF
12892/* confdefs.h. */
12893_ACEOF
12894cat confdefs.h >>conftest.$ac_ext
12895cat >>conftest.$ac_ext <<_ACEOF
12896/* end confdefs.h. */
12897$ac_includes_default
12898
12899#include <$ac_header>
12900_ACEOF
12901rm -f conftest.$ac_objext
12902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12903 (eval $ac_compile) 2>conftest.er1
a848cd7e 12904 ac_status=$?
ac1cb8d3
VS
12905 grep -v '^ *+' conftest.er1 >conftest.err
12906 rm -f conftest.er1
12907 cat conftest.err >&5
a848cd7e
SC
12908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909 (exit $ac_status); } &&
5294a27e 12910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12912 (eval $ac_try) 2>&5
12913 ac_status=$?
12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); }; } &&
12916 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12918 (eval $ac_try) 2>&5
12919 ac_status=$?
12920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921 (exit $ac_status); }; }; then
12922 eval "$as_ac_Header=yes"
12923else
12924 echo "$as_me: failed program was:" >&5
12925sed 's/^/| /' conftest.$ac_ext >&5
12926
12927eval "$as_ac_Header=no"
12928fi
ac1cb8d3 12929rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12930fi
12931echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12932echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12933if test `eval echo '${'$as_ac_Header'}'` = yes; then
12934 cat >>confdefs.h <<_ACEOF
12935#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12936_ACEOF
12937
12938fi
12939
12940done
12941
12942
12943
12944for ac_header in stdlib.h
12945do
12946as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12947if eval "test \"\${$as_ac_Header+set}\" = set"; then
12948 echo "$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
12952fi
12953echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12954echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12955else
12956 # Is the header compilable?
12957echo "$as_me:$LINENO: checking $ac_header usability" >&5
12958echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12959cat >conftest.$ac_ext <<_ACEOF
12960/* confdefs.h. */
12961_ACEOF
12962cat confdefs.h >>conftest.$ac_ext
12963cat >>conftest.$ac_ext <<_ACEOF
12964/* end confdefs.h. */
12965$ac_includes_default
12966#include <$ac_header>
12967_ACEOF
12968rm -f conftest.$ac_objext
12969if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12970 (eval $ac_compile) 2>conftest.er1
a848cd7e 12971 ac_status=$?
ac1cb8d3
VS
12972 grep -v '^ *+' conftest.er1 >conftest.err
12973 rm -f conftest.er1
12974 cat conftest.err >&5
a848cd7e
SC
12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 (exit $ac_status); } &&
5294a27e 12977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12979 (eval $ac_try) 2>&5
12980 ac_status=$?
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); }; } &&
12983 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12985 (eval $ac_try) 2>&5
12986 ac_status=$?
12987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988 (exit $ac_status); }; }; then
12989 ac_header_compiler=yes
12990else
12991 echo "$as_me: failed program was:" >&5
12992sed 's/^/| /' conftest.$ac_ext >&5
12993
12994ac_header_compiler=no
12995fi
ac1cb8d3 12996rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12997echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12998echo "${ECHO_T}$ac_header_compiler" >&6
12999
13000# Is the header present?
13001echo "$as_me:$LINENO: checking $ac_header presence" >&5
13002echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13003cat >conftest.$ac_ext <<_ACEOF
13004/* confdefs.h. */
13005_ACEOF
13006cat confdefs.h >>conftest.$ac_ext
13007cat >>conftest.$ac_ext <<_ACEOF
13008/* end confdefs.h. */
13009#include <$ac_header>
13010_ACEOF
13011if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13012 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13013 ac_status=$?
13014 grep -v '^ *+' conftest.er1 >conftest.err
13015 rm -f conftest.er1
13016 cat conftest.err >&5
13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); } >/dev/null; then
13019 if test -s conftest.err; then
13020 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13021 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13022 else
13023 ac_cpp_err=
13024 fi
13025else
13026 ac_cpp_err=yes
13027fi
13028if test -z "$ac_cpp_err"; then
13029 ac_header_preproc=yes
13030else
13031 echo "$as_me: failed program was:" >&5
13032sed 's/^/| /' conftest.$ac_ext >&5
13033
13034 ac_header_preproc=no
13035fi
13036rm -f conftest.err conftest.$ac_ext
13037echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13038echo "${ECHO_T}$ac_header_preproc" >&6
13039
13040# So? What about this header?
ac1cb8d3
VS
13041case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13042 yes:no: )
a848cd7e
SC
13043 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13044echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13046echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13047 ac_header_preproc=yes
a848cd7e 13048 ;;
ac1cb8d3 13049 no:yes:* )
a848cd7e
SC
13050 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13051echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13052 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13053echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13054 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13055echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13056 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13057echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13059echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13060 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13061echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13062 (
13063 cat <<\_ASBOX
ac1cb8d3
VS
13064## ----------------------------------------- ##
13065## Report this to wx-dev@lists.wxwidgets.org ##
13066## ----------------------------------------- ##
a848cd7e
SC
13067_ASBOX
13068 ) |
13069 sed "s/^/$as_me: WARNING: /" >&2
13070 ;;
13071esac
13072echo "$as_me:$LINENO: checking for $ac_header" >&5
13073echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13074if eval "test \"\${$as_ac_Header+set}\" = set"; then
13075 echo $ECHO_N "(cached) $ECHO_C" >&6
13076else
ac1cb8d3 13077 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13078fi
13079echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13080echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13081
13082fi
13083if test `eval echo '${'$as_ac_Header'}'` = yes; then
13084 cat >>confdefs.h <<_ACEOF
13085#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13086_ACEOF
13087
13088fi
13089
13090done
13091
13092
13093for ac_header in malloc.h
13094do
13095as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13096if eval "test \"\${$as_ac_Header+set}\" = set"; then
13097 echo "$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
13101fi
13102echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13103echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13104else
13105 # Is the header compilable?
13106echo "$as_me:$LINENO: checking $ac_header usability" >&5
13107echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13108cat >conftest.$ac_ext <<_ACEOF
13109/* confdefs.h. */
13110_ACEOF
13111cat confdefs.h >>conftest.$ac_ext
13112cat >>conftest.$ac_ext <<_ACEOF
13113/* end confdefs.h. */
13114$ac_includes_default
13115#include <$ac_header>
13116_ACEOF
13117rm -f conftest.$ac_objext
13118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13119 (eval $ac_compile) 2>conftest.er1
a848cd7e 13120 ac_status=$?
ac1cb8d3
VS
13121 grep -v '^ *+' conftest.er1 >conftest.err
13122 rm -f conftest.er1
13123 cat conftest.err >&5
a848cd7e
SC
13124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13125 (exit $ac_status); } &&
5294a27e 13126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13128 (eval $ac_try) 2>&5
13129 ac_status=$?
13130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131 (exit $ac_status); }; } &&
13132 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13134 (eval $ac_try) 2>&5
13135 ac_status=$?
13136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137 (exit $ac_status); }; }; then
13138 ac_header_compiler=yes
13139else
13140 echo "$as_me: failed program was:" >&5
13141sed 's/^/| /' conftest.$ac_ext >&5
13142
13143ac_header_compiler=no
13144fi
ac1cb8d3 13145rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13146echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13147echo "${ECHO_T}$ac_header_compiler" >&6
13148
13149# Is the header present?
13150echo "$as_me:$LINENO: checking $ac_header presence" >&5
13151echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13152cat >conftest.$ac_ext <<_ACEOF
13153/* confdefs.h. */
13154_ACEOF
13155cat confdefs.h >>conftest.$ac_ext
13156cat >>conftest.$ac_ext <<_ACEOF
13157/* end confdefs.h. */
13158#include <$ac_header>
13159_ACEOF
13160if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13161 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13162 ac_status=$?
13163 grep -v '^ *+' conftest.er1 >conftest.err
13164 rm -f conftest.er1
13165 cat conftest.err >&5
13166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); } >/dev/null; then
13168 if test -s conftest.err; then
13169 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13170 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13171 else
13172 ac_cpp_err=
13173 fi
13174else
13175 ac_cpp_err=yes
13176fi
13177if test -z "$ac_cpp_err"; then
13178 ac_header_preproc=yes
13179else
13180 echo "$as_me: failed program was:" >&5
13181sed 's/^/| /' conftest.$ac_ext >&5
13182
13183 ac_header_preproc=no
13184fi
13185rm -f conftest.err conftest.$ac_ext
13186echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13187echo "${ECHO_T}$ac_header_preproc" >&6
13188
13189# So? What about this header?
ac1cb8d3
VS
13190case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13191 yes:no: )
a848cd7e
SC
13192 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13193echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13195echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13196 ac_header_preproc=yes
a848cd7e 13197 ;;
ac1cb8d3 13198 no:yes:* )
a848cd7e
SC
13199 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13200echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13201 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13202echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13203 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13204echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13205 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13206echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13208echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13209 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13210echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13211 (
13212 cat <<\_ASBOX
ac1cb8d3
VS
13213## ----------------------------------------- ##
13214## Report this to wx-dev@lists.wxwidgets.org ##
13215## ----------------------------------------- ##
a848cd7e
SC
13216_ASBOX
13217 ) |
13218 sed "s/^/$as_me: WARNING: /" >&2
13219 ;;
13220esac
13221echo "$as_me:$LINENO: checking for $ac_header" >&5
13222echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13223if eval "test \"\${$as_ac_Header+set}\" = set"; then
13224 echo $ECHO_N "(cached) $ECHO_C" >&6
13225else
ac1cb8d3 13226 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13227fi
13228echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13229echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13230
13231fi
13232if test `eval echo '${'$as_ac_Header'}'` = yes; then
13233 cat >>confdefs.h <<_ACEOF
13234#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13235_ACEOF
13236
13237fi
13238
13239done
13240
13241
13242for ac_header in unistd.h
13243do
13244as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13245if eval "test \"\${$as_ac_Header+set}\" = set"; then
13246 echo "$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
13250fi
13251echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13252echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13253else
13254 # Is the header compilable?
13255echo "$as_me:$LINENO: checking $ac_header usability" >&5
13256echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13257cat >conftest.$ac_ext <<_ACEOF
13258/* confdefs.h. */
13259_ACEOF
13260cat confdefs.h >>conftest.$ac_ext
13261cat >>conftest.$ac_ext <<_ACEOF
13262/* end confdefs.h. */
13263$ac_includes_default
13264#include <$ac_header>
13265_ACEOF
13266rm -f conftest.$ac_objext
13267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13268 (eval $ac_compile) 2>conftest.er1
a848cd7e 13269 ac_status=$?
ac1cb8d3
VS
13270 grep -v '^ *+' conftest.er1 >conftest.err
13271 rm -f conftest.er1
13272 cat conftest.err >&5
a848cd7e
SC
13273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); } &&
5294a27e 13275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13277 (eval $ac_try) 2>&5
13278 ac_status=$?
13279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 (exit $ac_status); }; } &&
13281 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13283 (eval $ac_try) 2>&5
13284 ac_status=$?
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); }; }; then
13287 ac_header_compiler=yes
13288else
13289 echo "$as_me: failed program was:" >&5
13290sed 's/^/| /' conftest.$ac_ext >&5
13291
13292ac_header_compiler=no
13293fi
ac1cb8d3 13294rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13295echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13296echo "${ECHO_T}$ac_header_compiler" >&6
13297
13298# Is the header present?
13299echo "$as_me:$LINENO: checking $ac_header presence" >&5
13300echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13301cat >conftest.$ac_ext <<_ACEOF
13302/* confdefs.h. */
13303_ACEOF
13304cat confdefs.h >>conftest.$ac_ext
13305cat >>conftest.$ac_ext <<_ACEOF
13306/* end confdefs.h. */
13307#include <$ac_header>
13308_ACEOF
13309if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13310 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13311 ac_status=$?
13312 grep -v '^ *+' conftest.er1 >conftest.err
13313 rm -f conftest.er1
13314 cat conftest.err >&5
13315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); } >/dev/null; then
13317 if test -s conftest.err; then
13318 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13319 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13320 else
13321 ac_cpp_err=
13322 fi
13323else
13324 ac_cpp_err=yes
13325fi
13326if test -z "$ac_cpp_err"; then
13327 ac_header_preproc=yes
13328else
13329 echo "$as_me: failed program was:" >&5
13330sed 's/^/| /' conftest.$ac_ext >&5
13331
13332 ac_header_preproc=no
13333fi
13334rm -f conftest.err conftest.$ac_ext
13335echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13336echo "${ECHO_T}$ac_header_preproc" >&6
13337
13338# So? What about this header?
ac1cb8d3
VS
13339case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13340 yes:no: )
a848cd7e
SC
13341 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13342echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13343 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13344echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13345 ac_header_preproc=yes
a848cd7e 13346 ;;
ac1cb8d3 13347 no:yes:* )
a848cd7e
SC
13348 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13349echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13350 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13351echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13352 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13353echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13354 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13355echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13356 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13357echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13358 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13359echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13360 (
13361 cat <<\_ASBOX
ac1cb8d3
VS
13362## ----------------------------------------- ##
13363## Report this to wx-dev@lists.wxwidgets.org ##
13364## ----------------------------------------- ##
a848cd7e
SC
13365_ASBOX
13366 ) |
13367 sed "s/^/$as_me: WARNING: /" >&2
13368 ;;
13369esac
13370echo "$as_me:$LINENO: checking for $ac_header" >&5
13371echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13372if eval "test \"\${$as_ac_Header+set}\" = set"; then
13373 echo $ECHO_N "(cached) $ECHO_C" >&6
13374else
ac1cb8d3 13375 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13376fi
13377echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13378echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13379
13380fi
13381if test `eval echo '${'$as_ac_Header'}'` = yes; then
13382 cat >>confdefs.h <<_ACEOF
13383#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13384_ACEOF
13385
13386fi
13387
13388done
13389
13390
13391for ac_header in wchar.h
13392do
13393as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13394if eval "test \"\${$as_ac_Header+set}\" = set"; then
13395 echo "$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
13399fi
13400echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13401echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13402else
13403 # Is the header compilable?
13404echo "$as_me:$LINENO: checking $ac_header usability" >&5
13405echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13406cat >conftest.$ac_ext <<_ACEOF
13407/* confdefs.h. */
13408_ACEOF
13409cat confdefs.h >>conftest.$ac_ext
13410cat >>conftest.$ac_ext <<_ACEOF
13411/* end confdefs.h. */
13412$ac_includes_default
13413#include <$ac_header>
13414_ACEOF
13415rm -f conftest.$ac_objext
13416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13417 (eval $ac_compile) 2>conftest.er1
a848cd7e 13418 ac_status=$?
ac1cb8d3
VS
13419 grep -v '^ *+' conftest.er1 >conftest.err
13420 rm -f conftest.er1
13421 cat conftest.err >&5
a848cd7e
SC
13422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423 (exit $ac_status); } &&
5294a27e 13424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13426 (eval $ac_try) 2>&5
13427 ac_status=$?
13428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429 (exit $ac_status); }; } &&
13430 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13432 (eval $ac_try) 2>&5
13433 ac_status=$?
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); }; }; then
13436 ac_header_compiler=yes
13437else
13438 echo "$as_me: failed program was:" >&5
13439sed 's/^/| /' conftest.$ac_ext >&5
13440
13441ac_header_compiler=no
13442fi
ac1cb8d3 13443rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13444echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13445echo "${ECHO_T}$ac_header_compiler" >&6
13446
13447# Is the header present?
13448echo "$as_me:$LINENO: checking $ac_header presence" >&5
13449echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13450cat >conftest.$ac_ext <<_ACEOF
13451/* confdefs.h. */
13452_ACEOF
13453cat confdefs.h >>conftest.$ac_ext
13454cat >>conftest.$ac_ext <<_ACEOF
13455/* end confdefs.h. */
13456#include <$ac_header>
13457_ACEOF
13458if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13459 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13460 ac_status=$?
13461 grep -v '^ *+' conftest.er1 >conftest.err
13462 rm -f conftest.er1
13463 cat conftest.err >&5
13464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465 (exit $ac_status); } >/dev/null; then
13466 if test -s conftest.err; then
13467 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13468 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13469 else
13470 ac_cpp_err=
13471 fi
13472else
13473 ac_cpp_err=yes
13474fi
13475if test -z "$ac_cpp_err"; then
13476 ac_header_preproc=yes
13477else
13478 echo "$as_me: failed program was:" >&5
13479sed 's/^/| /' conftest.$ac_ext >&5
13480
13481 ac_header_preproc=no
13482fi
13483rm -f conftest.err conftest.$ac_ext
13484echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13485echo "${ECHO_T}$ac_header_preproc" >&6
13486
13487# So? What about this header?
ac1cb8d3
VS
13488case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13489 yes:no: )
a848cd7e
SC
13490 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13491echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13493echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13494 ac_header_preproc=yes
a848cd7e 13495 ;;
ac1cb8d3 13496 no:yes:* )
a848cd7e
SC
13497 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13498echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13499 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13500echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13501 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13502echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13503 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13504echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13505 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13506echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13507 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13508echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13509 (
13510 cat <<\_ASBOX
ac1cb8d3
VS
13511## ----------------------------------------- ##
13512## Report this to wx-dev@lists.wxwidgets.org ##
13513## ----------------------------------------- ##
a848cd7e
SC
13514_ASBOX
13515 ) |
13516 sed "s/^/$as_me: WARNING: /" >&2
13517 ;;
13518esac
13519echo "$as_me:$LINENO: checking for $ac_header" >&5
13520echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13521if eval "test \"\${$as_ac_Header+set}\" = set"; then
13522 echo $ECHO_N "(cached) $ECHO_C" >&6
13523else
ac1cb8d3 13524 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13525fi
13526echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13527echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13528
13529fi
13530if test `eval echo '${'$as_ac_Header'}'` = yes; then
13531 cat >>confdefs.h <<_ACEOF
13532#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13533_ACEOF
13534
13535fi
13536
13537done
13538
13539
13540if test "$ac_cv_header_wchar_h" != "yes"; then
13541
13542for ac_header in wcstr.h
13543do
13544as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13545if eval "test \"\${$as_ac_Header+set}\" = set"; then
13546 echo "$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
13550fi
13551echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13552echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13553else
13554 # Is the header compilable?
13555echo "$as_me:$LINENO: checking $ac_header usability" >&5
13556echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13557cat >conftest.$ac_ext <<_ACEOF
13558/* confdefs.h. */
13559_ACEOF
13560cat confdefs.h >>conftest.$ac_ext
13561cat >>conftest.$ac_ext <<_ACEOF
13562/* end confdefs.h. */
13563$ac_includes_default
13564#include <$ac_header>
13565_ACEOF
13566rm -f conftest.$ac_objext
13567if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13568 (eval $ac_compile) 2>conftest.er1
a848cd7e 13569 ac_status=$?
ac1cb8d3
VS
13570 grep -v '^ *+' conftest.er1 >conftest.err
13571 rm -f conftest.er1
13572 cat conftest.err >&5
a848cd7e
SC
13573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574 (exit $ac_status); } &&
5294a27e 13575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13577 (eval $ac_try) 2>&5
13578 ac_status=$?
13579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580 (exit $ac_status); }; } &&
13581 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13583 (eval $ac_try) 2>&5
13584 ac_status=$?
13585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586 (exit $ac_status); }; }; then
13587 ac_header_compiler=yes
13588else
13589 echo "$as_me: failed program was:" >&5
13590sed 's/^/| /' conftest.$ac_ext >&5
13591
13592ac_header_compiler=no
13593fi
ac1cb8d3 13594rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13595echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13596echo "${ECHO_T}$ac_header_compiler" >&6
13597
13598# Is the header present?
13599echo "$as_me:$LINENO: checking $ac_header presence" >&5
13600echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13601cat >conftest.$ac_ext <<_ACEOF
13602/* confdefs.h. */
13603_ACEOF
13604cat confdefs.h >>conftest.$ac_ext
13605cat >>conftest.$ac_ext <<_ACEOF
13606/* end confdefs.h. */
13607#include <$ac_header>
13608_ACEOF
13609if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13610 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13611 ac_status=$?
13612 grep -v '^ *+' conftest.er1 >conftest.err
13613 rm -f conftest.er1
13614 cat conftest.err >&5
13615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616 (exit $ac_status); } >/dev/null; then
13617 if test -s conftest.err; then
13618 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13619 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13620 else
13621 ac_cpp_err=
13622 fi
13623else
13624 ac_cpp_err=yes
13625fi
13626if test -z "$ac_cpp_err"; then
13627 ac_header_preproc=yes
13628else
13629 echo "$as_me: failed program was:" >&5
13630sed 's/^/| /' conftest.$ac_ext >&5
13631
13632 ac_header_preproc=no
13633fi
13634rm -f conftest.err conftest.$ac_ext
13635echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13636echo "${ECHO_T}$ac_header_preproc" >&6
13637
13638# So? What about this header?
ac1cb8d3
VS
13639case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13640 yes:no: )
a848cd7e
SC
13641 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13642echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13643 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13644echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13645 ac_header_preproc=yes
a848cd7e 13646 ;;
ac1cb8d3 13647 no:yes:* )
a848cd7e
SC
13648 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13649echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13650 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13651echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13652 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13653echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13654 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13655echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13657echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13658 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13659echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13660 (
13661 cat <<\_ASBOX
ac1cb8d3
VS
13662## ----------------------------------------- ##
13663## Report this to wx-dev@lists.wxwidgets.org ##
13664## ----------------------------------------- ##
a848cd7e
SC
13665_ASBOX
13666 ) |
13667 sed "s/^/$as_me: WARNING: /" >&2
13668 ;;
13669esac
13670echo "$as_me:$LINENO: checking for $ac_header" >&5
13671echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13672if eval "test \"\${$as_ac_Header+set}\" = set"; then
13673 echo $ECHO_N "(cached) $ECHO_C" >&6
13674else
ac1cb8d3 13675 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13676fi
13677echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13678echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13679
13680fi
13681if test `eval echo '${'$as_ac_Header'}'` = yes; then
13682 cat >>confdefs.h <<_ACEOF
13683#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13684_ACEOF
13685
13686fi
13687
13688done
13689
13690fi
13691
13692
13693for ac_header in fnmatch.h
13694do
13695as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13696if eval "test \"\${$as_ac_Header+set}\" = set"; then
13697 echo "$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
13701fi
13702echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13703echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13704else
13705 # Is the header compilable?
13706echo "$as_me:$LINENO: checking $ac_header usability" >&5
13707echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13708cat >conftest.$ac_ext <<_ACEOF
13709/* confdefs.h. */
13710_ACEOF
13711cat confdefs.h >>conftest.$ac_ext
13712cat >>conftest.$ac_ext <<_ACEOF
13713/* end confdefs.h. */
13714$ac_includes_default
13715#include <$ac_header>
13716_ACEOF
13717rm -f conftest.$ac_objext
13718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13719 (eval $ac_compile) 2>conftest.er1
a848cd7e 13720 ac_status=$?
ac1cb8d3
VS
13721 grep -v '^ *+' conftest.er1 >conftest.err
13722 rm -f conftest.er1
13723 cat conftest.err >&5
a848cd7e
SC
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); } &&
5294a27e 13726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13728 (eval $ac_try) 2>&5
13729 ac_status=$?
13730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731 (exit $ac_status); }; } &&
13732 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13734 (eval $ac_try) 2>&5
13735 ac_status=$?
13736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737 (exit $ac_status); }; }; then
13738 ac_header_compiler=yes
13739else
13740 echo "$as_me: failed program was:" >&5
13741sed 's/^/| /' conftest.$ac_ext >&5
13742
13743ac_header_compiler=no
13744fi
ac1cb8d3 13745rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13746echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13747echo "${ECHO_T}$ac_header_compiler" >&6
13748
13749# Is the header present?
13750echo "$as_me:$LINENO: checking $ac_header presence" >&5
13751echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13752cat >conftest.$ac_ext <<_ACEOF
13753/* confdefs.h. */
13754_ACEOF
13755cat confdefs.h >>conftest.$ac_ext
13756cat >>conftest.$ac_ext <<_ACEOF
13757/* end confdefs.h. */
13758#include <$ac_header>
13759_ACEOF
13760if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13761 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13762 ac_status=$?
13763 grep -v '^ *+' conftest.er1 >conftest.err
13764 rm -f conftest.er1
13765 cat conftest.err >&5
13766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767 (exit $ac_status); } >/dev/null; then
13768 if test -s conftest.err; then
13769 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13770 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13771 else
13772 ac_cpp_err=
13773 fi
13774else
13775 ac_cpp_err=yes
13776fi
13777if test -z "$ac_cpp_err"; then
13778 ac_header_preproc=yes
13779else
13780 echo "$as_me: failed program was:" >&5
13781sed 's/^/| /' conftest.$ac_ext >&5
13782
13783 ac_header_preproc=no
13784fi
13785rm -f conftest.err conftest.$ac_ext
13786echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13787echo "${ECHO_T}$ac_header_preproc" >&6
13788
13789# So? What about this header?
ac1cb8d3
VS
13790case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13791 yes:no: )
a848cd7e
SC
13792 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13793echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13794 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13795echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13796 ac_header_preproc=yes
a848cd7e 13797 ;;
ac1cb8d3 13798 no:yes:* )
a848cd7e
SC
13799 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13800echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13801 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13802echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13803 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13804echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13805 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13806echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13807 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13808echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13809 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13810echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13811 (
13812 cat <<\_ASBOX
ac1cb8d3
VS
13813## ----------------------------------------- ##
13814## Report this to wx-dev@lists.wxwidgets.org ##
13815## ----------------------------------------- ##
a848cd7e
SC
13816_ASBOX
13817 ) |
13818 sed "s/^/$as_me: WARNING: /" >&2
13819 ;;
13820esac
13821echo "$as_me:$LINENO: checking for $ac_header" >&5
13822echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13823if eval "test \"\${$as_ac_Header+set}\" = set"; then
13824 echo $ECHO_N "(cached) $ECHO_C" >&6
13825else
ac1cb8d3 13826 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13827fi
13828echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13829echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13830
13831fi
13832if test `eval echo '${'$as_ac_Header'}'` = yes; then
13833 cat >>confdefs.h <<_ACEOF
13834#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13835_ACEOF
13836
13837fi
13838
13839done
13840
13841
13842if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
13843
13844for ac_func in fnmatch
13845do
13846as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13847echo "$as_me:$LINENO: checking for $ac_func" >&5
13848echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13849if eval "test \"\${$as_ac_var+set}\" = set"; then
13850 echo $ECHO_N "(cached) $ECHO_C" >&6
13851else
13852 cat >conftest.$ac_ext <<_ACEOF
13853/* confdefs.h. */
13854_ACEOF
13855cat confdefs.h >>conftest.$ac_ext
13856cat >>conftest.$ac_ext <<_ACEOF
13857/* end confdefs.h. */
ac1cb8d3
VS
13858/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13860#define $ac_func innocuous_$ac_func
13861
a848cd7e
SC
13862/* System header to define __stub macros and hopefully few prototypes,
13863 which can conflict with char $ac_func (); below.
13864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13865 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 13866
a848cd7e
SC
13867#ifdef __STDC__
13868# include <limits.h>
13869#else
13870# include <assert.h>
13871#endif
ac1cb8d3
VS
13872
13873#undef $ac_func
13874
a848cd7e
SC
13875/* Override any gcc2 internal prototype to avoid an error. */
13876#ifdef __cplusplus
13877extern "C"
13878{
13879#endif
13880/* We use char because int might match the return type of a gcc2
13881 builtin and then its argument prototype would still apply. */
13882char $ac_func ();
13883/* The GNU C library defines this for functions which it implements
13884 to always fail with ENOSYS. Some functions are actually named
13885 something starting with __ and the normal name is an alias. */
13886#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13887choke me
13888#else
13889char (*f) () = $ac_func;
13890#endif
13891#ifdef __cplusplus
13892}
13893#endif
13894
13895int
13896main ()
13897{
13898return f != $ac_func;
13899 ;
13900 return 0;
13901}
13902_ACEOF
13903rm -f conftest.$ac_objext conftest$ac_exeext
13904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13905 (eval $ac_link) 2>conftest.er1
a848cd7e 13906 ac_status=$?
ac1cb8d3
VS
13907 grep -v '^ *+' conftest.er1 >conftest.err
13908 rm -f conftest.er1
13909 cat conftest.err >&5
a848cd7e
SC
13910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911 (exit $ac_status); } &&
5294a27e 13912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13914 (eval $ac_try) 2>&5
13915 ac_status=$?
13916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917 (exit $ac_status); }; } &&
13918 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13920 (eval $ac_try) 2>&5
13921 ac_status=$?
13922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923 (exit $ac_status); }; }; then
13924 eval "$as_ac_var=yes"
13925else
13926 echo "$as_me: failed program was:" >&5
13927sed 's/^/| /' conftest.$ac_ext >&5
13928
13929eval "$as_ac_var=no"
13930fi
ac1cb8d3
VS
13931rm -f conftest.err conftest.$ac_objext \
13932 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13933fi
13934echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13935echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13936if test `eval echo '${'$as_ac_var'}'` = yes; then
13937 cat >>confdefs.h <<_ACEOF
13938#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13939_ACEOF
13940
13941fi
13942done
13943
13944fi
13945
13946
13947for ac_header in langinfo.h
13948do
13949as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13950if eval "test \"\${$as_ac_Header+set}\" = set"; then
13951 echo "$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
13955fi
13956echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13957echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13958else
13959 # Is the header compilable?
13960echo "$as_me:$LINENO: checking $ac_header usability" >&5
13961echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13962cat >conftest.$ac_ext <<_ACEOF
13963/* confdefs.h. */
13964_ACEOF
13965cat confdefs.h >>conftest.$ac_ext
13966cat >>conftest.$ac_ext <<_ACEOF
13967/* end confdefs.h. */
13968$ac_includes_default
13969#include <$ac_header>
13970_ACEOF
13971rm -f conftest.$ac_objext
13972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13973 (eval $ac_compile) 2>conftest.er1
a848cd7e 13974 ac_status=$?
ac1cb8d3
VS
13975 grep -v '^ *+' conftest.er1 >conftest.err
13976 rm -f conftest.er1
13977 cat conftest.err >&5
a848cd7e
SC
13978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979 (exit $ac_status); } &&
5294a27e 13980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13982 (eval $ac_try) 2>&5
13983 ac_status=$?
13984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13985 (exit $ac_status); }; } &&
13986 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13988 (eval $ac_try) 2>&5
13989 ac_status=$?
13990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991 (exit $ac_status); }; }; then
13992 ac_header_compiler=yes
13993else
13994 echo "$as_me: failed program was:" >&5
13995sed 's/^/| /' conftest.$ac_ext >&5
13996
13997ac_header_compiler=no
13998fi
ac1cb8d3 13999rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14000echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14001echo "${ECHO_T}$ac_header_compiler" >&6
14002
14003# Is the header present?
14004echo "$as_me:$LINENO: checking $ac_header presence" >&5
14005echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14006cat >conftest.$ac_ext <<_ACEOF
14007/* confdefs.h. */
14008_ACEOF
14009cat confdefs.h >>conftest.$ac_ext
14010cat >>conftest.$ac_ext <<_ACEOF
14011/* end confdefs.h. */
14012#include <$ac_header>
14013_ACEOF
14014if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14015 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14016 ac_status=$?
14017 grep -v '^ *+' conftest.er1 >conftest.err
14018 rm -f conftest.er1
14019 cat conftest.err >&5
14020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021 (exit $ac_status); } >/dev/null; then
14022 if test -s conftest.err; then
14023 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14024 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14025 else
14026 ac_cpp_err=
14027 fi
14028else
14029 ac_cpp_err=yes
14030fi
14031if test -z "$ac_cpp_err"; then
14032 ac_header_preproc=yes
14033else
14034 echo "$as_me: failed program was:" >&5
14035sed 's/^/| /' conftest.$ac_ext >&5
14036
14037 ac_header_preproc=no
14038fi
14039rm -f conftest.err conftest.$ac_ext
14040echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14041echo "${ECHO_T}$ac_header_preproc" >&6
14042
14043# So? What about this header?
ac1cb8d3
VS
14044case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14045 yes:no: )
a848cd7e
SC
14046 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14047echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14049echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14050 ac_header_preproc=yes
a848cd7e 14051 ;;
ac1cb8d3 14052 no:yes:* )
a848cd7e
SC
14053 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14054echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14055 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14056echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14057 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14058echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14059 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14060echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14061 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14062echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14063 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14064echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14065 (
14066 cat <<\_ASBOX
ac1cb8d3
VS
14067## ----------------------------------------- ##
14068## Report this to wx-dev@lists.wxwidgets.org ##
14069## ----------------------------------------- ##
a848cd7e
SC
14070_ASBOX
14071 ) |
14072 sed "s/^/$as_me: WARNING: /" >&2
14073 ;;
14074esac
14075echo "$as_me:$LINENO: checking for $ac_header" >&5
14076echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14077if eval "test \"\${$as_ac_Header+set}\" = set"; then
14078 echo $ECHO_N "(cached) $ECHO_C" >&6
14079else
ac1cb8d3 14080 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14081fi
14082echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14083echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14084
14085fi
14086if test `eval echo '${'$as_ac_Header'}'` = yes; then
14087 cat >>confdefs.h <<_ACEOF
14088#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14089_ACEOF
14090
14091fi
14092
14093done
14094
14095
14096case "${host}" in
14097 *-pc-os2_emx | *-pc-os2-emx )
14098 if test $ac_cv_header_langinfo_h = "yes"; then
14099 LIBS="$LIBS -lintl"
14100 fi
14101 ;;
14102esac
14103
14104if test "$wxUSE_GUI" = "yes"; then
14105 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
14106
14107for ac_header in X11/Xlib.h
14108do
14109as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14110if eval "test \"\${$as_ac_Header+set}\" = set"; then
14111 echo "$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
14115fi
14116echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14117echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14118else
14119 # Is the header compilable?
14120echo "$as_me:$LINENO: checking $ac_header usability" >&5
14121echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14122cat >conftest.$ac_ext <<_ACEOF
14123/* confdefs.h. */
14124_ACEOF
14125cat confdefs.h >>conftest.$ac_ext
14126cat >>conftest.$ac_ext <<_ACEOF
14127/* end confdefs.h. */
14128$ac_includes_default
14129#include <$ac_header>
14130_ACEOF
14131rm -f conftest.$ac_objext
14132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14133 (eval $ac_compile) 2>conftest.er1
a848cd7e 14134 ac_status=$?
ac1cb8d3
VS
14135 grep -v '^ *+' conftest.er1 >conftest.err
14136 rm -f conftest.er1
14137 cat conftest.err >&5
a848cd7e
SC
14138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14139 (exit $ac_status); } &&
5294a27e 14140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14142 (eval $ac_try) 2>&5
14143 ac_status=$?
14144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145 (exit $ac_status); }; } &&
14146 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14148 (eval $ac_try) 2>&5
14149 ac_status=$?
14150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151 (exit $ac_status); }; }; then
14152 ac_header_compiler=yes
14153else
14154 echo "$as_me: failed program was:" >&5
14155sed 's/^/| /' conftest.$ac_ext >&5
14156
14157ac_header_compiler=no
14158fi
ac1cb8d3 14159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14160echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14161echo "${ECHO_T}$ac_header_compiler" >&6
14162
14163# Is the header present?
14164echo "$as_me:$LINENO: checking $ac_header presence" >&5
14165echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14166cat >conftest.$ac_ext <<_ACEOF
14167/* confdefs.h. */
14168_ACEOF
14169cat confdefs.h >>conftest.$ac_ext
14170cat >>conftest.$ac_ext <<_ACEOF
14171/* end confdefs.h. */
14172#include <$ac_header>
14173_ACEOF
14174if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14175 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14176 ac_status=$?
14177 grep -v '^ *+' conftest.er1 >conftest.err
14178 rm -f conftest.er1
14179 cat conftest.err >&5
14180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); } >/dev/null; then
14182 if test -s conftest.err; then
14183 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14184 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14185 else
14186 ac_cpp_err=
14187 fi
14188else
14189 ac_cpp_err=yes
14190fi
14191if test -z "$ac_cpp_err"; then
14192 ac_header_preproc=yes
14193else
14194 echo "$as_me: failed program was:" >&5
14195sed 's/^/| /' conftest.$ac_ext >&5
14196
14197 ac_header_preproc=no
14198fi
14199rm -f conftest.err conftest.$ac_ext
14200echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14201echo "${ECHO_T}$ac_header_preproc" >&6
14202
14203# So? What about this header?
ac1cb8d3
VS
14204case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14205 yes:no: )
a848cd7e
SC
14206 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14207echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14208 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14209echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14210 ac_header_preproc=yes
a848cd7e 14211 ;;
ac1cb8d3 14212 no:yes:* )
a848cd7e
SC
14213 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14214echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14215 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14216echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14217 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14218echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14219 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14220echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14222echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14223 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14224echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14225 (
14226 cat <<\_ASBOX
ac1cb8d3
VS
14227## ----------------------------------------- ##
14228## Report this to wx-dev@lists.wxwidgets.org ##
14229## ----------------------------------------- ##
a848cd7e
SC
14230_ASBOX
14231 ) |
14232 sed "s/^/$as_me: WARNING: /" >&2
14233 ;;
14234esac
14235echo "$as_me:$LINENO: checking for $ac_header" >&5
14236echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14237if eval "test \"\${$as_ac_Header+set}\" = set"; then
14238 echo $ECHO_N "(cached) $ECHO_C" >&6
14239else
ac1cb8d3 14240 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14241fi
14242echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14243echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14244
14245fi
14246if test `eval echo '${'$as_ac_Header'}'` = yes; then
14247 cat >>confdefs.h <<_ACEOF
14248#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14249_ACEOF
14250
14251fi
14252
14253done
14254
14255
14256for ac_header in X11/XKBlib.h
14257do
14258as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14259echo "$as_me:$LINENO: checking for $ac_header" >&5
14260echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14261if eval "test \"\${$as_ac_Header+set}\" = set"; then
14262 echo $ECHO_N "(cached) $ECHO_C" >&6
14263else
14264 cat >conftest.$ac_ext <<_ACEOF
14265/* confdefs.h. */
14266_ACEOF
14267cat confdefs.h >>conftest.$ac_ext
14268cat >>conftest.$ac_ext <<_ACEOF
14269/* end confdefs.h. */
14270
14271 #if HAVE_X11_XLIB_H
14272 #include <X11/Xlib.h>
14273 #endif
14274
14275
14276#include <$ac_header>
14277_ACEOF
14278rm -f conftest.$ac_objext
14279if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14280 (eval $ac_compile) 2>conftest.er1
a848cd7e 14281 ac_status=$?
ac1cb8d3
VS
14282 grep -v '^ *+' conftest.er1 >conftest.err
14283 rm -f conftest.er1
14284 cat conftest.err >&5
a848cd7e
SC
14285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286 (exit $ac_status); } &&
5294a27e 14287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14289 (eval $ac_try) 2>&5
14290 ac_status=$?
14291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292 (exit $ac_status); }; } &&
14293 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14295 (eval $ac_try) 2>&5
14296 ac_status=$?
14297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298 (exit $ac_status); }; }; then
14299 eval "$as_ac_Header=yes"
14300else
14301 echo "$as_me: failed program was:" >&5
14302sed 's/^/| /' conftest.$ac_ext >&5
14303
14304eval "$as_ac_Header=no"
14305fi
ac1cb8d3 14306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14307fi
14308echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14309echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14310if test `eval echo '${'$as_ac_Header'}'` = yes; then
14311 cat >>confdefs.h <<_ACEOF
14312#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14313_ACEOF
14314
14315fi
14316
14317done
14318
14319 fi
14320fi
14321
14322
14323echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14324echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14325if test "${ac_cv_c_const+set}" = set; then
14326 echo $ECHO_N "(cached) $ECHO_C" >&6
14327else
14328 cat >conftest.$ac_ext <<_ACEOF
14329/* confdefs.h. */
14330_ACEOF
14331cat confdefs.h >>conftest.$ac_ext
14332cat >>conftest.$ac_ext <<_ACEOF
14333/* end confdefs.h. */
14334
14335int
14336main ()
14337{
14338/* FIXME: Include the comments suggested by Paul. */
14339#ifndef __cplusplus
14340 /* Ultrix mips cc rejects this. */
14341 typedef int charset[2];
14342 const charset x;
14343 /* SunOS 4.1.1 cc rejects this. */
14344 char const *const *ccp;
14345 char **p;
14346 /* NEC SVR4.0.2 mips cc rejects this. */
14347 struct point {int x, y;};
14348 static struct point const zero = {0,0};
14349 /* AIX XL C 1.02.0.0 rejects this.
14350 It does not let you subtract one const X* pointer from another in
14351 an arm of an if-expression whose if-part is not a constant
14352 expression */
14353 const char *g = "string";
14354 ccp = &g + (g ? g-g : 0);
14355 /* HPUX 7.0 cc rejects these. */
14356 ++ccp;
14357 p = (char**) ccp;
14358 ccp = (char const *const *) p;
14359 { /* SCO 3.2v4 cc rejects this. */
14360 char *t;
14361 char const *s = 0 ? (char *) 0 : (char const *) 0;
14362
14363 *t++ = 0;
14364 }
14365 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14366 int x[] = {25, 17};
14367 const int *foo = &x[0];
14368 ++foo;
14369 }
14370 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14371 typedef const int *iptr;
14372 iptr p = 0;
14373 ++p;
14374 }
14375 { /* AIX XL C 1.02.0.0 rejects this saying
14376 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14377 struct s { int j; const int *ap[3]; };
14378 struct s *b; b->j = 5;
14379 }
14380 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14381 const int foo = 10;
14382 }
14383#endif
14384
14385 ;
14386 return 0;
14387}
14388_ACEOF
14389rm -f conftest.$ac_objext
14390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14391 (eval $ac_compile) 2>conftest.er1
a848cd7e 14392 ac_status=$?
ac1cb8d3
VS
14393 grep -v '^ *+' conftest.er1 >conftest.err
14394 rm -f conftest.er1
14395 cat conftest.err >&5
a848cd7e
SC
14396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397 (exit $ac_status); } &&
5294a27e 14398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14400 (eval $ac_try) 2>&5
14401 ac_status=$?
14402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403 (exit $ac_status); }; } &&
14404 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14406 (eval $ac_try) 2>&5
14407 ac_status=$?
14408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409 (exit $ac_status); }; }; then
14410 ac_cv_c_const=yes
14411else
14412 echo "$as_me: failed program was:" >&5
14413sed 's/^/| /' conftest.$ac_ext >&5
14414
14415ac_cv_c_const=no
14416fi
ac1cb8d3 14417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14418fi
14419echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14420echo "${ECHO_T}$ac_cv_c_const" >&6
14421if test $ac_cv_c_const = no; then
14422
14423cat >>confdefs.h <<\_ACEOF
14424#define const
14425_ACEOF
14426
14427fi
14428
14429echo "$as_me:$LINENO: checking for inline" >&5
14430echo $ECHO_N "checking for inline... $ECHO_C" >&6
14431if test "${ac_cv_c_inline+set}" = set; then
14432 echo $ECHO_N "(cached) $ECHO_C" >&6
14433else
14434 ac_cv_c_inline=no
14435for ac_kw in inline __inline__ __inline; do
14436 cat >conftest.$ac_ext <<_ACEOF
14437/* confdefs.h. */
14438_ACEOF
14439cat confdefs.h >>conftest.$ac_ext
14440cat >>conftest.$ac_ext <<_ACEOF
14441/* end confdefs.h. */
14442#ifndef __cplusplus
14443typedef int foo_t;
14444static $ac_kw foo_t static_foo () {return 0; }
14445$ac_kw foo_t foo () {return 0; }
14446#endif
14447
14448_ACEOF
14449rm -f conftest.$ac_objext
14450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14451 (eval $ac_compile) 2>conftest.er1
a848cd7e 14452 ac_status=$?
ac1cb8d3
VS
14453 grep -v '^ *+' conftest.er1 >conftest.err
14454 rm -f conftest.er1
14455 cat conftest.err >&5
a848cd7e
SC
14456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457 (exit $ac_status); } &&
5294a27e 14458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14460 (eval $ac_try) 2>&5
14461 ac_status=$?
14462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463 (exit $ac_status); }; } &&
14464 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14466 (eval $ac_try) 2>&5
14467 ac_status=$?
14468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14469 (exit $ac_status); }; }; then
14470 ac_cv_c_inline=$ac_kw; break
14471else
14472 echo "$as_me: failed program was:" >&5
14473sed 's/^/| /' conftest.$ac_ext >&5
14474
14475fi
ac1cb8d3 14476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14477done
14478
14479fi
14480echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14481echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
14482
14483
a848cd7e
SC
14484case $ac_cv_c_inline in
14485 inline | yes) ;;
ac1cb8d3
VS
14486 *)
14487 case $ac_cv_c_inline in
14488 no) ac_val=;;
14489 *) ac_val=$ac_cv_c_inline;;
14490 esac
14491 cat >>confdefs.h <<_ACEOF
14492#ifndef __cplusplus
14493#define inline $ac_val
14494#endif
de59c161 14495_ACEOF
ac1cb8d3 14496 ;;
a848cd7e
SC
14497esac
14498
14499
14500echo "$as_me:$LINENO: checking for char" >&5
14501echo $ECHO_N "checking for char... $ECHO_C" >&6
14502if test "${ac_cv_type_char+set}" = set; then
14503 echo $ECHO_N "(cached) $ECHO_C" >&6
14504else
14505 cat >conftest.$ac_ext <<_ACEOF
14506/* confdefs.h. */
14507_ACEOF
14508cat confdefs.h >>conftest.$ac_ext
14509cat >>conftest.$ac_ext <<_ACEOF
14510/* end confdefs.h. */
14511$ac_includes_default
14512int
14513main ()
14514{
14515if ((char *) 0)
14516 return 0;
14517if (sizeof (char))
14518 return 0;
14519 ;
14520 return 0;
14521}
14522_ACEOF
14523rm -f conftest.$ac_objext
14524if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14525 (eval $ac_compile) 2>conftest.er1
a848cd7e 14526 ac_status=$?
ac1cb8d3
VS
14527 grep -v '^ *+' conftest.er1 >conftest.err
14528 rm -f conftest.er1
14529 cat conftest.err >&5
a848cd7e
SC
14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); } &&
5294a27e 14532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14534 (eval $ac_try) 2>&5
14535 ac_status=$?
14536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537 (exit $ac_status); }; } &&
14538 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14540 (eval $ac_try) 2>&5
14541 ac_status=$?
14542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543 (exit $ac_status); }; }; then
14544 ac_cv_type_char=yes
14545else
14546 echo "$as_me: failed program was:" >&5
14547sed 's/^/| /' conftest.$ac_ext >&5
14548
14549ac_cv_type_char=no
14550fi
ac1cb8d3 14551rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14552fi
14553echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14554echo "${ECHO_T}$ac_cv_type_char" >&6
14555
14556echo "$as_me:$LINENO: checking size of char" >&5
14557echo $ECHO_N "checking size of char... $ECHO_C" >&6
14558if test "${ac_cv_sizeof_char+set}" = set; then
14559 echo $ECHO_N "(cached) $ECHO_C" >&6
14560else
14561 if test "$ac_cv_type_char" = yes; then
14562 # The cast to unsigned long works around a bug in the HP C Compiler
14563 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14564 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14565 # This bug is HP SR number 8606223364.
14566 if test "$cross_compiling" = yes; then
14567 # Depending upon the size, compute the lo and hi bounds.
14568cat >conftest.$ac_ext <<_ACEOF
14569/* confdefs.h. */
14570_ACEOF
14571cat confdefs.h >>conftest.$ac_ext
14572cat >>conftest.$ac_ext <<_ACEOF
14573/* end confdefs.h. */
14574$ac_includes_default
14575int
14576main ()
14577{
14578static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14579test_array [0] = 0
14580
14581 ;
14582 return 0;
14583}
14584_ACEOF
14585rm -f conftest.$ac_objext
14586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14587 (eval $ac_compile) 2>conftest.er1
a848cd7e 14588 ac_status=$?
ac1cb8d3
VS
14589 grep -v '^ *+' conftest.er1 >conftest.err
14590 rm -f conftest.er1
14591 cat conftest.err >&5
a848cd7e
SC
14592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14593 (exit $ac_status); } &&
5294a27e 14594 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14596 (eval $ac_try) 2>&5
14597 ac_status=$?
14598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599 (exit $ac_status); }; } &&
14600 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14602 (eval $ac_try) 2>&5
14603 ac_status=$?
14604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605 (exit $ac_status); }; }; then
14606 ac_lo=0 ac_mid=0
14607 while :; do
14608 cat >conftest.$ac_ext <<_ACEOF
14609/* confdefs.h. */
14610_ACEOF
14611cat confdefs.h >>conftest.$ac_ext
14612cat >>conftest.$ac_ext <<_ACEOF
14613/* end confdefs.h. */
14614$ac_includes_default
14615int
14616main ()
14617{
14618static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14619test_array [0] = 0
14620
14621 ;
14622 return 0;
14623}
14624_ACEOF
14625rm -f conftest.$ac_objext
14626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14627 (eval $ac_compile) 2>conftest.er1
a848cd7e 14628 ac_status=$?
ac1cb8d3
VS
14629 grep -v '^ *+' conftest.er1 >conftest.err
14630 rm -f conftest.er1
14631 cat conftest.err >&5
a848cd7e
SC
14632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633 (exit $ac_status); } &&
5294a27e 14634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14636 (eval $ac_try) 2>&5
14637 ac_status=$?
14638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639 (exit $ac_status); }; } &&
14640 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14642 (eval $ac_try) 2>&5
14643 ac_status=$?
14644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14645 (exit $ac_status); }; }; then
14646 ac_hi=$ac_mid; break
14647else
14648 echo "$as_me: failed program was:" >&5
14649sed 's/^/| /' conftest.$ac_ext >&5
14650
14651ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
14652 if test $ac_lo -le $ac_mid; then
14653 ac_lo= ac_hi=
14654 break
14655 fi
14656 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 14657fi
ac1cb8d3 14658rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14659 done
14660else
14661 echo "$as_me: failed program was:" >&5
14662sed 's/^/| /' conftest.$ac_ext >&5
14663
14664cat >conftest.$ac_ext <<_ACEOF
14665/* confdefs.h. */
14666_ACEOF
14667cat confdefs.h >>conftest.$ac_ext
14668cat >>conftest.$ac_ext <<_ACEOF
14669/* end confdefs.h. */
14670$ac_includes_default
14671int
14672main ()
14673{
14674static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14675test_array [0] = 0
14676
14677 ;
14678 return 0;
14679}
14680_ACEOF
14681rm -f conftest.$ac_objext
14682if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14683 (eval $ac_compile) 2>conftest.er1
a848cd7e 14684 ac_status=$?
ac1cb8d3
VS
14685 grep -v '^ *+' conftest.er1 >conftest.err
14686 rm -f conftest.er1
14687 cat conftest.err >&5
a848cd7e
SC
14688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14689 (exit $ac_status); } &&
5294a27e 14690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14692 (eval $ac_try) 2>&5
14693 ac_status=$?
14694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14695 (exit $ac_status); }; } &&
14696 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14698 (eval $ac_try) 2>&5
14699 ac_status=$?
14700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14701 (exit $ac_status); }; }; then
14702 ac_hi=-1 ac_mid=-1
14703 while :; do
14704 cat >conftest.$ac_ext <<_ACEOF
14705/* confdefs.h. */
14706_ACEOF
14707cat confdefs.h >>conftest.$ac_ext
14708cat >>conftest.$ac_ext <<_ACEOF
14709/* end confdefs.h. */
14710$ac_includes_default
14711int
14712main ()
14713{
14714static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14715test_array [0] = 0
14716
14717 ;
14718 return 0;
14719}
14720_ACEOF
14721rm -f conftest.$ac_objext
14722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14723 (eval $ac_compile) 2>conftest.er1
a848cd7e 14724 ac_status=$?
ac1cb8d3
VS
14725 grep -v '^ *+' conftest.er1 >conftest.err
14726 rm -f conftest.er1
14727 cat conftest.err >&5
a848cd7e
SC
14728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729 (exit $ac_status); } &&
5294a27e 14730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14732 (eval $ac_try) 2>&5
14733 ac_status=$?
14734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735 (exit $ac_status); }; } &&
14736 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14738 (eval $ac_try) 2>&5
14739 ac_status=$?
14740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741 (exit $ac_status); }; }; then
14742 ac_lo=$ac_mid; break
14743else
14744 echo "$as_me: failed program was:" >&5
14745sed 's/^/| /' conftest.$ac_ext >&5
14746
14747ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
14748 if test $ac_mid -le $ac_hi; then
14749 ac_lo= ac_hi=
14750 break
14751 fi
14752 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 14753fi
ac1cb8d3 14754rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14755 done
14756else
14757 echo "$as_me: failed program was:" >&5
14758sed 's/^/| /' conftest.$ac_ext >&5
14759
14760ac_lo= ac_hi=
14761fi
ac1cb8d3 14762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 14763fi
ac1cb8d3 14764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14765# Binary search between lo and hi bounds.
14766while test "x$ac_lo" != "x$ac_hi"; do
14767 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14768 cat >conftest.$ac_ext <<_ACEOF
14769/* confdefs.h. */
14770_ACEOF
14771cat confdefs.h >>conftest.$ac_ext
14772cat >>conftest.$ac_ext <<_ACEOF
14773/* end confdefs.h. */
14774$ac_includes_default
14775int
14776main ()
14777{
14778static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14779test_array [0] = 0
14780
14781 ;
14782 return 0;
14783}
14784_ACEOF
14785rm -f conftest.$ac_objext
14786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14787 (eval $ac_compile) 2>conftest.er1
a848cd7e 14788 ac_status=$?
ac1cb8d3
VS
14789 grep -v '^ *+' conftest.er1 >conftest.err
14790 rm -f conftest.er1
14791 cat conftest.err >&5
a848cd7e
SC
14792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793 (exit $ac_status); } &&
5294a27e 14794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14796 (eval $ac_try) 2>&5
14797 ac_status=$?
14798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14799 (exit $ac_status); }; } &&
14800 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14802 (eval $ac_try) 2>&5
14803 ac_status=$?
14804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14805 (exit $ac_status); }; }; then
14806 ac_hi=$ac_mid
14807else
14808 echo "$as_me: failed program was:" >&5
14809sed 's/^/| /' conftest.$ac_ext >&5
14810
14811ac_lo=`expr '(' $ac_mid ')' + 1`
14812fi
ac1cb8d3 14813rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14814done
14815case $ac_lo in
14816?*) ac_cv_sizeof_char=$ac_lo;;
14817'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14818See \`config.log' for more details." >&5
14819echo "$as_me: error: cannot compute sizeof (char), 77
14820See \`config.log' for more details." >&2;}
14821 { (exit 1); exit 1; }; } ;;
14822esac
14823else
14824 if test "$cross_compiling" = yes; then
5294a27e
VZ
14825 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
14826echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
14827 { (exit 1); exit 1; }; }
14828else
14829 cat >conftest.$ac_ext <<_ACEOF
14830/* confdefs.h. */
14831_ACEOF
14832cat confdefs.h >>conftest.$ac_ext
14833cat >>conftest.$ac_ext <<_ACEOF
14834/* end confdefs.h. */
14835$ac_includes_default
14836long longval () { return (long) (sizeof (char)); }
14837unsigned long ulongval () { return (long) (sizeof (char)); }
14838#include <stdio.h>
14839#include <stdlib.h>
14840int
14841main ()
14842{
14843
14844 FILE *f = fopen ("conftest.val", "w");
14845 if (! f)
14846 exit (1);
14847 if (((long) (sizeof (char))) < 0)
14848 {
14849 long i = longval ();
14850 if (i != ((long) (sizeof (char))))
14851 exit (1);
14852 fprintf (f, "%ld\n", i);
14853 }
14854 else
14855 {
14856 unsigned long i = ulongval ();
14857 if (i != ((long) (sizeof (char))))
14858 exit (1);
14859 fprintf (f, "%lu\n", i);
14860 }
14861 exit (ferror (f) || fclose (f) != 0);
14862
14863 ;
14864 return 0;
14865}
14866_ACEOF
14867rm -f conftest$ac_exeext
14868if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14869 (eval $ac_link) 2>&5
14870 ac_status=$?
14871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14872 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14874 (eval $ac_try) 2>&5
14875 ac_status=$?
14876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877 (exit $ac_status); }; }; then
14878 ac_cv_sizeof_char=`cat conftest.val`
14879else
14880 echo "$as_me: program exited with status $ac_status" >&5
14881echo "$as_me: failed program was:" >&5
14882sed 's/^/| /' conftest.$ac_ext >&5
14883
14884( exit $ac_status )
14885{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14886See \`config.log' for more details." >&5
14887echo "$as_me: error: cannot compute sizeof (char), 77
14888See \`config.log' for more details." >&2;}
14889 { (exit 1); exit 1; }; }
14890fi
ac1cb8d3 14891rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14892fi
14893fi
14894rm -f conftest.val
14895else
14896 ac_cv_sizeof_char=0
14897fi
14898fi
14899echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14900echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14901cat >>confdefs.h <<_ACEOF
14902#define SIZEOF_CHAR $ac_cv_sizeof_char
14903_ACEOF
14904
14905
14906echo "$as_me:$LINENO: checking for short" >&5
14907echo $ECHO_N "checking for short... $ECHO_C" >&6
14908if test "${ac_cv_type_short+set}" = set; then
14909 echo $ECHO_N "(cached) $ECHO_C" >&6
14910else
14911 cat >conftest.$ac_ext <<_ACEOF
14912/* confdefs.h. */
14913_ACEOF
14914cat confdefs.h >>conftest.$ac_ext
14915cat >>conftest.$ac_ext <<_ACEOF
14916/* end confdefs.h. */
14917$ac_includes_default
14918int
14919main ()
14920{
14921if ((short *) 0)
14922 return 0;
14923if (sizeof (short))
14924 return 0;
14925 ;
14926 return 0;
14927}
14928_ACEOF
14929rm -f conftest.$ac_objext
14930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14931 (eval $ac_compile) 2>conftest.er1
a848cd7e 14932 ac_status=$?
ac1cb8d3
VS
14933 grep -v '^ *+' conftest.er1 >conftest.err
14934 rm -f conftest.er1
14935 cat conftest.err >&5
a848cd7e
SC
14936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14937 (exit $ac_status); } &&
5294a27e 14938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14940 (eval $ac_try) 2>&5
14941 ac_status=$?
14942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14943 (exit $ac_status); }; } &&
14944 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14946 (eval $ac_try) 2>&5
14947 ac_status=$?
14948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949 (exit $ac_status); }; }; then
14950 ac_cv_type_short=yes
14951else
14952 echo "$as_me: failed program was:" >&5
14953sed 's/^/| /' conftest.$ac_ext >&5
14954
14955ac_cv_type_short=no
14956fi
ac1cb8d3 14957rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14958fi
14959echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14960echo "${ECHO_T}$ac_cv_type_short" >&6
14961
14962echo "$as_me:$LINENO: checking size of short" >&5
14963echo $ECHO_N "checking size of short... $ECHO_C" >&6
14964if test "${ac_cv_sizeof_short+set}" = set; then
14965 echo $ECHO_N "(cached) $ECHO_C" >&6
14966else
14967 if test "$ac_cv_type_short" = yes; then
14968 # The cast to unsigned long works around a bug in the HP C Compiler
14969 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14970 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14971 # This bug is HP SR number 8606223364.
14972 if test "$cross_compiling" = yes; then
14973 # Depending upon the size, compute the lo and hi bounds.
14974cat >conftest.$ac_ext <<_ACEOF
14975/* confdefs.h. */
14976_ACEOF
14977cat confdefs.h >>conftest.$ac_ext
14978cat >>conftest.$ac_ext <<_ACEOF
14979/* end confdefs.h. */
14980$ac_includes_default
14981int
14982main ()
14983{
14984static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14985test_array [0] = 0
14986
14987 ;
14988 return 0;
14989}
14990_ACEOF
14991rm -f conftest.$ac_objext
14992if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14993 (eval $ac_compile) 2>conftest.er1
a848cd7e 14994 ac_status=$?
ac1cb8d3
VS
14995 grep -v '^ *+' conftest.er1 >conftest.err
14996 rm -f conftest.er1
14997 cat conftest.err >&5
a848cd7e
SC
14998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999 (exit $ac_status); } &&
5294a27e 15000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15002 (eval $ac_try) 2>&5
15003 ac_status=$?
15004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005 (exit $ac_status); }; } &&
15006 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15008 (eval $ac_try) 2>&5
15009 ac_status=$?
15010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15011 (exit $ac_status); }; }; then
15012 ac_lo=0 ac_mid=0
15013 while :; do
15014 cat >conftest.$ac_ext <<_ACEOF
15015/* confdefs.h. */
15016_ACEOF
15017cat confdefs.h >>conftest.$ac_ext
15018cat >>conftest.$ac_ext <<_ACEOF
15019/* end confdefs.h. */
15020$ac_includes_default
15021int
15022main ()
15023{
15024static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15025test_array [0] = 0
15026
15027 ;
15028 return 0;
15029}
15030_ACEOF
15031rm -f conftest.$ac_objext
15032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15033 (eval $ac_compile) 2>conftest.er1
a848cd7e 15034 ac_status=$?
ac1cb8d3
VS
15035 grep -v '^ *+' conftest.er1 >conftest.err
15036 rm -f conftest.er1
15037 cat conftest.err >&5
a848cd7e
SC
15038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039 (exit $ac_status); } &&
5294a27e 15040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15042 (eval $ac_try) 2>&5
15043 ac_status=$?
15044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045 (exit $ac_status); }; } &&
15046 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15048 (eval $ac_try) 2>&5
15049 ac_status=$?
15050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15051 (exit $ac_status); }; }; then
15052 ac_hi=$ac_mid; break
15053else
15054 echo "$as_me: failed program was:" >&5
15055sed 's/^/| /' conftest.$ac_ext >&5
15056
15057ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15058 if test $ac_lo -le $ac_mid; then
15059 ac_lo= ac_hi=
15060 break
15061 fi
15062 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15063fi
ac1cb8d3 15064rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15065 done
15066else
15067 echo "$as_me: failed program was:" >&5
15068sed 's/^/| /' conftest.$ac_ext >&5
15069
15070cat >conftest.$ac_ext <<_ACEOF
15071/* confdefs.h. */
15072_ACEOF
15073cat confdefs.h >>conftest.$ac_ext
15074cat >>conftest.$ac_ext <<_ACEOF
15075/* end confdefs.h. */
15076$ac_includes_default
15077int
15078main ()
15079{
15080static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
15081test_array [0] = 0
15082
15083 ;
15084 return 0;
15085}
15086_ACEOF
15087rm -f conftest.$ac_objext
15088if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15089 (eval $ac_compile) 2>conftest.er1
a848cd7e 15090 ac_status=$?
ac1cb8d3
VS
15091 grep -v '^ *+' conftest.er1 >conftest.err
15092 rm -f conftest.er1
15093 cat conftest.err >&5
a848cd7e
SC
15094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095 (exit $ac_status); } &&
5294a27e 15096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15098 (eval $ac_try) 2>&5
15099 ac_status=$?
15100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101 (exit $ac_status); }; } &&
15102 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15104 (eval $ac_try) 2>&5
15105 ac_status=$?
15106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107 (exit $ac_status); }; }; then
15108 ac_hi=-1 ac_mid=-1
15109 while :; do
15110 cat >conftest.$ac_ext <<_ACEOF
15111/* confdefs.h. */
15112_ACEOF
15113cat confdefs.h >>conftest.$ac_ext
15114cat >>conftest.$ac_ext <<_ACEOF
15115/* end confdefs.h. */
15116$ac_includes_default
15117int
15118main ()
15119{
15120static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
15121test_array [0] = 0
15122
15123 ;
15124 return 0;
15125}
15126_ACEOF
15127rm -f conftest.$ac_objext
15128if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15129 (eval $ac_compile) 2>conftest.er1
a848cd7e 15130 ac_status=$?
ac1cb8d3
VS
15131 grep -v '^ *+' conftest.er1 >conftest.err
15132 rm -f conftest.er1
15133 cat conftest.err >&5
a848cd7e
SC
15134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135 (exit $ac_status); } &&
5294a27e 15136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15138 (eval $ac_try) 2>&5
15139 ac_status=$?
15140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15141 (exit $ac_status); }; } &&
15142 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15144 (eval $ac_try) 2>&5
15145 ac_status=$?
15146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147 (exit $ac_status); }; }; then
15148 ac_lo=$ac_mid; break
15149else
15150 echo "$as_me: failed program was:" >&5
15151sed 's/^/| /' conftest.$ac_ext >&5
15152
15153ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15154 if test $ac_mid -le $ac_hi; then
15155 ac_lo= ac_hi=
15156 break
15157 fi
15158 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15159fi
ac1cb8d3 15160rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15161 done
15162else
15163 echo "$as_me: failed program was:" >&5
15164sed 's/^/| /' conftest.$ac_ext >&5
15165
15166ac_lo= ac_hi=
15167fi
ac1cb8d3 15168rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15169fi
ac1cb8d3 15170rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15171# Binary search between lo and hi bounds.
15172while test "x$ac_lo" != "x$ac_hi"; do
15173 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15174 cat >conftest.$ac_ext <<_ACEOF
15175/* confdefs.h. */
15176_ACEOF
15177cat confdefs.h >>conftest.$ac_ext
15178cat >>conftest.$ac_ext <<_ACEOF
15179/* end confdefs.h. */
15180$ac_includes_default
15181int
15182main ()
15183{
15184static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15185test_array [0] = 0
15186
15187 ;
15188 return 0;
15189}
15190_ACEOF
15191rm -f conftest.$ac_objext
15192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15193 (eval $ac_compile) 2>conftest.er1
a848cd7e 15194 ac_status=$?
ac1cb8d3
VS
15195 grep -v '^ *+' conftest.er1 >conftest.err
15196 rm -f conftest.er1
15197 cat conftest.err >&5
a848cd7e
SC
15198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199 (exit $ac_status); } &&
5294a27e 15200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15202 (eval $ac_try) 2>&5
15203 ac_status=$?
15204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205 (exit $ac_status); }; } &&
15206 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15208 (eval $ac_try) 2>&5
15209 ac_status=$?
15210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15211 (exit $ac_status); }; }; then
15212 ac_hi=$ac_mid
15213else
15214 echo "$as_me: failed program was:" >&5
15215sed 's/^/| /' conftest.$ac_ext >&5
15216
15217ac_lo=`expr '(' $ac_mid ')' + 1`
15218fi
ac1cb8d3 15219rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15220done
15221case $ac_lo in
15222?*) ac_cv_sizeof_short=$ac_lo;;
15223'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15224See \`config.log' for more details." >&5
15225echo "$as_me: error: cannot compute sizeof (short), 77
15226See \`config.log' for more details." >&2;}
15227 { (exit 1); exit 1; }; } ;;
15228esac
15229else
15230 if test "$cross_compiling" = yes; then
5294a27e
VZ
15231 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15232echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
15233 { (exit 1); exit 1; }; }
15234else
15235 cat >conftest.$ac_ext <<_ACEOF
15236/* confdefs.h. */
15237_ACEOF
15238cat confdefs.h >>conftest.$ac_ext
15239cat >>conftest.$ac_ext <<_ACEOF
15240/* end confdefs.h. */
15241$ac_includes_default
15242long longval () { return (long) (sizeof (short)); }
15243unsigned long ulongval () { return (long) (sizeof (short)); }
15244#include <stdio.h>
15245#include <stdlib.h>
15246int
15247main ()
15248{
15249
15250 FILE *f = fopen ("conftest.val", "w");
15251 if (! f)
15252 exit (1);
15253 if (((long) (sizeof (short))) < 0)
15254 {
15255 long i = longval ();
15256 if (i != ((long) (sizeof (short))))
15257 exit (1);
15258 fprintf (f, "%ld\n", i);
15259 }
15260 else
15261 {
15262 unsigned long i = ulongval ();
15263 if (i != ((long) (sizeof (short))))
15264 exit (1);
15265 fprintf (f, "%lu\n", i);
15266 }
15267 exit (ferror (f) || fclose (f) != 0);
15268
15269 ;
15270 return 0;
15271}
15272_ACEOF
15273rm -f conftest$ac_exeext
15274if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15275 (eval $ac_link) 2>&5
15276 ac_status=$?
15277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15280 (eval $ac_try) 2>&5
15281 ac_status=$?
15282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283 (exit $ac_status); }; }; then
15284 ac_cv_sizeof_short=`cat conftest.val`
15285else
15286 echo "$as_me: program exited with status $ac_status" >&5
15287echo "$as_me: failed program was:" >&5
15288sed 's/^/| /' conftest.$ac_ext >&5
15289
15290( exit $ac_status )
15291{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15292See \`config.log' for more details." >&5
15293echo "$as_me: error: cannot compute sizeof (short), 77
15294See \`config.log' for more details." >&2;}
15295 { (exit 1); exit 1; }; }
15296fi
ac1cb8d3 15297rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15298fi
15299fi
15300rm -f conftest.val
15301else
15302 ac_cv_sizeof_short=0
15303fi
15304fi
15305echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15306echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15307cat >>confdefs.h <<_ACEOF
15308#define SIZEOF_SHORT $ac_cv_sizeof_short
15309_ACEOF
15310
15311
15312echo "$as_me:$LINENO: checking for void *" >&5
15313echo $ECHO_N "checking for void *... $ECHO_C" >&6
15314if test "${ac_cv_type_void_p+set}" = set; then
15315 echo $ECHO_N "(cached) $ECHO_C" >&6
15316else
15317 cat >conftest.$ac_ext <<_ACEOF
15318/* confdefs.h. */
15319_ACEOF
15320cat confdefs.h >>conftest.$ac_ext
15321cat >>conftest.$ac_ext <<_ACEOF
15322/* end confdefs.h. */
15323$ac_includes_default
15324int
15325main ()
15326{
15327if ((void * *) 0)
15328 return 0;
15329if (sizeof (void *))
15330 return 0;
15331 ;
15332 return 0;
15333}
15334_ACEOF
15335rm -f conftest.$ac_objext
15336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15337 (eval $ac_compile) 2>conftest.er1
a848cd7e 15338 ac_status=$?
ac1cb8d3
VS
15339 grep -v '^ *+' conftest.er1 >conftest.err
15340 rm -f conftest.er1
15341 cat conftest.err >&5
a848cd7e
SC
15342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343 (exit $ac_status); } &&
5294a27e 15344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15346 (eval $ac_try) 2>&5
15347 ac_status=$?
15348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15349 (exit $ac_status); }; } &&
15350 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15352 (eval $ac_try) 2>&5
15353 ac_status=$?
15354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355 (exit $ac_status); }; }; then
15356 ac_cv_type_void_p=yes
15357else
15358 echo "$as_me: failed program was:" >&5
15359sed 's/^/| /' conftest.$ac_ext >&5
15360
15361ac_cv_type_void_p=no
15362fi
ac1cb8d3 15363rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15364fi
15365echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
15366echo "${ECHO_T}$ac_cv_type_void_p" >&6
15367
15368echo "$as_me:$LINENO: checking size of void *" >&5
15369echo $ECHO_N "checking size of void *... $ECHO_C" >&6
15370if test "${ac_cv_sizeof_void_p+set}" = set; then
15371 echo $ECHO_N "(cached) $ECHO_C" >&6
15372else
15373 if test "$ac_cv_type_void_p" = yes; then
15374 # The cast to unsigned long works around a bug in the HP C Compiler
15375 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15376 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15377 # This bug is HP SR number 8606223364.
15378 if test "$cross_compiling" = yes; then
15379 # Depending upon the size, compute the lo and hi bounds.
15380cat >conftest.$ac_ext <<_ACEOF
15381/* confdefs.h. */
15382_ACEOF
15383cat confdefs.h >>conftest.$ac_ext
15384cat >>conftest.$ac_ext <<_ACEOF
15385/* end confdefs.h. */
15386$ac_includes_default
15387int
15388main ()
15389{
15390static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
15391test_array [0] = 0
15392
15393 ;
15394 return 0;
15395}
15396_ACEOF
15397rm -f conftest.$ac_objext
15398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15399 (eval $ac_compile) 2>conftest.er1
a848cd7e 15400 ac_status=$?
ac1cb8d3
VS
15401 grep -v '^ *+' conftest.er1 >conftest.err
15402 rm -f conftest.er1
15403 cat conftest.err >&5
a848cd7e
SC
15404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15405 (exit $ac_status); } &&
5294a27e 15406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15408 (eval $ac_try) 2>&5
15409 ac_status=$?
15410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15411 (exit $ac_status); }; } &&
15412 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15414 (eval $ac_try) 2>&5
15415 ac_status=$?
15416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417 (exit $ac_status); }; }; then
15418 ac_lo=0 ac_mid=0
15419 while :; do
15420 cat >conftest.$ac_ext <<_ACEOF
15421/* confdefs.h. */
15422_ACEOF
15423cat confdefs.h >>conftest.$ac_ext
15424cat >>conftest.$ac_ext <<_ACEOF
15425/* end confdefs.h. */
15426$ac_includes_default
15427int
15428main ()
15429{
15430static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15431test_array [0] = 0
15432
15433 ;
15434 return 0;
15435}
15436_ACEOF
15437rm -f conftest.$ac_objext
15438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15439 (eval $ac_compile) 2>conftest.er1
a848cd7e 15440 ac_status=$?
ac1cb8d3
VS
15441 grep -v '^ *+' conftest.er1 >conftest.err
15442 rm -f conftest.er1
15443 cat conftest.err >&5
a848cd7e
SC
15444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445 (exit $ac_status); } &&
5294a27e 15446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15448 (eval $ac_try) 2>&5
15449 ac_status=$?
15450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15451 (exit $ac_status); }; } &&
15452 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15454 (eval $ac_try) 2>&5
15455 ac_status=$?
15456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457 (exit $ac_status); }; }; then
15458 ac_hi=$ac_mid; break
15459else
15460 echo "$as_me: failed program was:" >&5
15461sed 's/^/| /' conftest.$ac_ext >&5
15462
15463ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15464 if test $ac_lo -le $ac_mid; then
15465 ac_lo= ac_hi=
15466 break
15467 fi
15468 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15469fi
ac1cb8d3 15470rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15471 done
15472else
15473 echo "$as_me: failed program was:" >&5
15474sed 's/^/| /' conftest.$ac_ext >&5
15475
15476cat >conftest.$ac_ext <<_ACEOF
15477/* confdefs.h. */
15478_ACEOF
15479cat confdefs.h >>conftest.$ac_ext
15480cat >>conftest.$ac_ext <<_ACEOF
15481/* end confdefs.h. */
15482$ac_includes_default
15483int
15484main ()
15485{
15486static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15487test_array [0] = 0
15488
15489 ;
15490 return 0;
15491}
15492_ACEOF
15493rm -f conftest.$ac_objext
15494if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15495 (eval $ac_compile) 2>conftest.er1
a848cd7e 15496 ac_status=$?
ac1cb8d3
VS
15497 grep -v '^ *+' conftest.er1 >conftest.err
15498 rm -f conftest.er1
15499 cat conftest.err >&5
a848cd7e
SC
15500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15501 (exit $ac_status); } &&
5294a27e 15502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15504 (eval $ac_try) 2>&5
15505 ac_status=$?
15506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507 (exit $ac_status); }; } &&
15508 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15510 (eval $ac_try) 2>&5
15511 ac_status=$?
15512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513 (exit $ac_status); }; }; then
15514 ac_hi=-1 ac_mid=-1
15515 while :; do
15516 cat >conftest.$ac_ext <<_ACEOF
15517/* confdefs.h. */
15518_ACEOF
15519cat confdefs.h >>conftest.$ac_ext
15520cat >>conftest.$ac_ext <<_ACEOF
15521/* end confdefs.h. */
15522$ac_includes_default
15523int
15524main ()
15525{
15526static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15527test_array [0] = 0
15528
15529 ;
15530 return 0;
15531}
15532_ACEOF
15533rm -f conftest.$ac_objext
15534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15535 (eval $ac_compile) 2>conftest.er1
a848cd7e 15536 ac_status=$?
ac1cb8d3
VS
15537 grep -v '^ *+' conftest.er1 >conftest.err
15538 rm -f conftest.er1
15539 cat conftest.err >&5
a848cd7e
SC
15540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15541 (exit $ac_status); } &&
5294a27e 15542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15544 (eval $ac_try) 2>&5
15545 ac_status=$?
15546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547 (exit $ac_status); }; } &&
15548 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15550 (eval $ac_try) 2>&5
15551 ac_status=$?
15552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553 (exit $ac_status); }; }; then
15554 ac_lo=$ac_mid; break
15555else
15556 echo "$as_me: failed program was:" >&5
15557sed 's/^/| /' conftest.$ac_ext >&5
15558
15559ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15560 if test $ac_mid -le $ac_hi; then
15561 ac_lo= ac_hi=
15562 break
15563 fi
15564 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15565fi
ac1cb8d3 15566rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15567 done
15568else
15569 echo "$as_me: failed program was:" >&5
15570sed 's/^/| /' conftest.$ac_ext >&5
15571
15572ac_lo= ac_hi=
15573fi
ac1cb8d3 15574rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15575fi
ac1cb8d3 15576rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15577# Binary search between lo and hi bounds.
15578while test "x$ac_lo" != "x$ac_hi"; do
15579 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15580 cat >conftest.$ac_ext <<_ACEOF
15581/* confdefs.h. */
15582_ACEOF
15583cat confdefs.h >>conftest.$ac_ext
15584cat >>conftest.$ac_ext <<_ACEOF
15585/* end confdefs.h. */
15586$ac_includes_default
15587int
15588main ()
15589{
15590static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15591test_array [0] = 0
15592
15593 ;
15594 return 0;
15595}
15596_ACEOF
15597rm -f conftest.$ac_objext
15598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15599 (eval $ac_compile) 2>conftest.er1
a848cd7e 15600 ac_status=$?
ac1cb8d3
VS
15601 grep -v '^ *+' conftest.er1 >conftest.err
15602 rm -f conftest.er1
15603 cat conftest.err >&5
a848cd7e
SC
15604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15605 (exit $ac_status); } &&
5294a27e 15606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15608 (eval $ac_try) 2>&5
15609 ac_status=$?
15610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611 (exit $ac_status); }; } &&
15612 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15614 (eval $ac_try) 2>&5
15615 ac_status=$?
15616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617 (exit $ac_status); }; }; then
15618 ac_hi=$ac_mid
15619else
15620 echo "$as_me: failed program was:" >&5
15621sed 's/^/| /' conftest.$ac_ext >&5
15622
15623ac_lo=`expr '(' $ac_mid ')' + 1`
15624fi
ac1cb8d3 15625rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15626done
15627case $ac_lo in
15628?*) ac_cv_sizeof_void_p=$ac_lo;;
15629'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15630See \`config.log' for more details." >&5
15631echo "$as_me: error: cannot compute sizeof (void *), 77
15632See \`config.log' for more details." >&2;}
15633 { (exit 1); exit 1; }; } ;;
15634esac
15635else
15636 if test "$cross_compiling" = yes; then
5294a27e
VZ
15637 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15638echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
15639 { (exit 1); exit 1; }; }
15640else
15641 cat >conftest.$ac_ext <<_ACEOF
15642/* confdefs.h. */
15643_ACEOF
15644cat confdefs.h >>conftest.$ac_ext
15645cat >>conftest.$ac_ext <<_ACEOF
15646/* end confdefs.h. */
15647$ac_includes_default
15648long longval () { return (long) (sizeof (void *)); }
15649unsigned long ulongval () { return (long) (sizeof (void *)); }
15650#include <stdio.h>
15651#include <stdlib.h>
15652int
15653main ()
15654{
15655
15656 FILE *f = fopen ("conftest.val", "w");
15657 if (! f)
15658 exit (1);
15659 if (((long) (sizeof (void *))) < 0)
15660 {
15661 long i = longval ();
15662 if (i != ((long) (sizeof (void *))))
15663 exit (1);
15664 fprintf (f, "%ld\n", i);
15665 }
15666 else
15667 {
15668 unsigned long i = ulongval ();
15669 if (i != ((long) (sizeof (void *))))
15670 exit (1);
15671 fprintf (f, "%lu\n", i);
15672 }
15673 exit (ferror (f) || fclose (f) != 0);
15674
15675 ;
15676 return 0;
15677}
15678_ACEOF
15679rm -f conftest$ac_exeext
15680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15681 (eval $ac_link) 2>&5
15682 ac_status=$?
15683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15686 (eval $ac_try) 2>&5
15687 ac_status=$?
15688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689 (exit $ac_status); }; }; then
15690 ac_cv_sizeof_void_p=`cat conftest.val`
15691else
15692 echo "$as_me: program exited with status $ac_status" >&5
15693echo "$as_me: failed program was:" >&5
15694sed 's/^/| /' conftest.$ac_ext >&5
15695
15696( exit $ac_status )
15697{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15698See \`config.log' for more details." >&5
15699echo "$as_me: error: cannot compute sizeof (void *), 77
15700See \`config.log' for more details." >&2;}
15701 { (exit 1); exit 1; }; }
15702fi
ac1cb8d3 15703rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15704fi
15705fi
15706rm -f conftest.val
15707else
15708 ac_cv_sizeof_void_p=0
15709fi
15710fi
15711echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15712echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15713cat >>confdefs.h <<_ACEOF
15714#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15715_ACEOF
15716
15717
15718echo "$as_me:$LINENO: checking for int" >&5
15719echo $ECHO_N "checking for int... $ECHO_C" >&6
15720if test "${ac_cv_type_int+set}" = set; then
15721 echo $ECHO_N "(cached) $ECHO_C" >&6
15722else
15723 cat >conftest.$ac_ext <<_ACEOF
15724/* confdefs.h. */
15725_ACEOF
15726cat confdefs.h >>conftest.$ac_ext
15727cat >>conftest.$ac_ext <<_ACEOF
15728/* end confdefs.h. */
15729$ac_includes_default
15730int
15731main ()
15732{
15733if ((int *) 0)
15734 return 0;
15735if (sizeof (int))
15736 return 0;
15737 ;
15738 return 0;
15739}
15740_ACEOF
15741rm -f conftest.$ac_objext
15742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15743 (eval $ac_compile) 2>conftest.er1
a848cd7e 15744 ac_status=$?
ac1cb8d3
VS
15745 grep -v '^ *+' conftest.er1 >conftest.err
15746 rm -f conftest.er1
15747 cat conftest.err >&5
a848cd7e
SC
15748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15749 (exit $ac_status); } &&
5294a27e 15750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15752 (eval $ac_try) 2>&5
15753 ac_status=$?
15754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755 (exit $ac_status); }; } &&
15756 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15758 (eval $ac_try) 2>&5
15759 ac_status=$?
15760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15761 (exit $ac_status); }; }; then
15762 ac_cv_type_int=yes
15763else
15764 echo "$as_me: failed program was:" >&5
15765sed 's/^/| /' conftest.$ac_ext >&5
15766
15767ac_cv_type_int=no
15768fi
ac1cb8d3 15769rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15770fi
15771echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15772echo "${ECHO_T}$ac_cv_type_int" >&6
15773
15774echo "$as_me:$LINENO: checking size of int" >&5
15775echo $ECHO_N "checking size of int... $ECHO_C" >&6
15776if test "${ac_cv_sizeof_int+set}" = set; then
15777 echo $ECHO_N "(cached) $ECHO_C" >&6
15778else
15779 if test "$ac_cv_type_int" = yes; then
15780 # The cast to unsigned long works around a bug in the HP C Compiler
15781 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15782 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15783 # This bug is HP SR number 8606223364.
15784 if test "$cross_compiling" = yes; then
15785 # Depending upon the size, compute the lo and hi bounds.
15786cat >conftest.$ac_ext <<_ACEOF
15787/* confdefs.h. */
15788_ACEOF
15789cat confdefs.h >>conftest.$ac_ext
15790cat >>conftest.$ac_ext <<_ACEOF
15791/* end confdefs.h. */
15792$ac_includes_default
15793int
15794main ()
15795{
15796static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15797test_array [0] = 0
15798
15799 ;
15800 return 0;
15801}
15802_ACEOF
15803rm -f conftest.$ac_objext
15804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15805 (eval $ac_compile) 2>conftest.er1
a848cd7e 15806 ac_status=$?
ac1cb8d3
VS
15807 grep -v '^ *+' conftest.er1 >conftest.err
15808 rm -f conftest.er1
15809 cat conftest.err >&5
a848cd7e
SC
15810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811 (exit $ac_status); } &&
5294a27e 15812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15814 (eval $ac_try) 2>&5
15815 ac_status=$?
15816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817 (exit $ac_status); }; } &&
15818 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15820 (eval $ac_try) 2>&5
15821 ac_status=$?
15822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823 (exit $ac_status); }; }; then
15824 ac_lo=0 ac_mid=0
15825 while :; do
15826 cat >conftest.$ac_ext <<_ACEOF
15827/* confdefs.h. */
15828_ACEOF
15829cat confdefs.h >>conftest.$ac_ext
15830cat >>conftest.$ac_ext <<_ACEOF
15831/* end confdefs.h. */
15832$ac_includes_default
15833int
15834main ()
15835{
15836static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15837test_array [0] = 0
15838
15839 ;
15840 return 0;
15841}
15842_ACEOF
15843rm -f conftest.$ac_objext
15844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15845 (eval $ac_compile) 2>conftest.er1
a848cd7e 15846 ac_status=$?
ac1cb8d3
VS
15847 grep -v '^ *+' conftest.er1 >conftest.err
15848 rm -f conftest.er1
15849 cat conftest.err >&5
a848cd7e
SC
15850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851 (exit $ac_status); } &&
5294a27e 15852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15854 (eval $ac_try) 2>&5
15855 ac_status=$?
15856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15857 (exit $ac_status); }; } &&
15858 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15860 (eval $ac_try) 2>&5
15861 ac_status=$?
15862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863 (exit $ac_status); }; }; then
15864 ac_hi=$ac_mid; break
15865else
15866 echo "$as_me: failed program was:" >&5
15867sed 's/^/| /' conftest.$ac_ext >&5
15868
15869ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15870 if test $ac_lo -le $ac_mid; then
15871 ac_lo= ac_hi=
15872 break
15873 fi
15874 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15875fi
ac1cb8d3 15876rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15877 done
15878else
15879 echo "$as_me: failed program was:" >&5
15880sed 's/^/| /' conftest.$ac_ext >&5
15881
15882cat >conftest.$ac_ext <<_ACEOF
15883/* confdefs.h. */
15884_ACEOF
15885cat confdefs.h >>conftest.$ac_ext
15886cat >>conftest.$ac_ext <<_ACEOF
15887/* end confdefs.h. */
15888$ac_includes_default
15889int
15890main ()
15891{
15892static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15893test_array [0] = 0
15894
15895 ;
15896 return 0;
15897}
15898_ACEOF
15899rm -f conftest.$ac_objext
15900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15901 (eval $ac_compile) 2>conftest.er1
a848cd7e 15902 ac_status=$?
ac1cb8d3
VS
15903 grep -v '^ *+' conftest.er1 >conftest.err
15904 rm -f conftest.er1
15905 cat conftest.err >&5
a848cd7e
SC
15906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15907 (exit $ac_status); } &&
5294a27e 15908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15910 (eval $ac_try) 2>&5
15911 ac_status=$?
15912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913 (exit $ac_status); }; } &&
15914 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15916 (eval $ac_try) 2>&5
15917 ac_status=$?
15918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919 (exit $ac_status); }; }; then
15920 ac_hi=-1 ac_mid=-1
15921 while :; do
15922 cat >conftest.$ac_ext <<_ACEOF
15923/* confdefs.h. */
15924_ACEOF
15925cat confdefs.h >>conftest.$ac_ext
15926cat >>conftest.$ac_ext <<_ACEOF
15927/* end confdefs.h. */
15928$ac_includes_default
15929int
15930main ()
15931{
15932static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15933test_array [0] = 0
15934
15935 ;
15936 return 0;
15937}
15938_ACEOF
15939rm -f conftest.$ac_objext
15940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15941 (eval $ac_compile) 2>conftest.er1
a848cd7e 15942 ac_status=$?
ac1cb8d3
VS
15943 grep -v '^ *+' conftest.er1 >conftest.err
15944 rm -f conftest.er1
15945 cat conftest.err >&5
a848cd7e
SC
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); } &&
5294a27e 15948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15950 (eval $ac_try) 2>&5
15951 ac_status=$?
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); }; } &&
15954 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15956 (eval $ac_try) 2>&5
15957 ac_status=$?
15958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959 (exit $ac_status); }; }; then
15960 ac_lo=$ac_mid; break
15961else
15962 echo "$as_me: failed program was:" >&5
15963sed 's/^/| /' conftest.$ac_ext >&5
15964
15965ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15966 if test $ac_mid -le $ac_hi; then
15967 ac_lo= ac_hi=
15968 break
15969 fi
15970 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15971fi
ac1cb8d3 15972rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15973 done
15974else
15975 echo "$as_me: failed program was:" >&5
15976sed 's/^/| /' conftest.$ac_ext >&5
15977
15978ac_lo= ac_hi=
15979fi
ac1cb8d3 15980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15981fi
ac1cb8d3 15982rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15983# Binary search between lo and hi bounds.
15984while test "x$ac_lo" != "x$ac_hi"; do
15985 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15986 cat >conftest.$ac_ext <<_ACEOF
15987/* confdefs.h. */
15988_ACEOF
15989cat confdefs.h >>conftest.$ac_ext
15990cat >>conftest.$ac_ext <<_ACEOF
15991/* end confdefs.h. */
15992$ac_includes_default
15993int
15994main ()
15995{
15996static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15997test_array [0] = 0
15998
15999 ;
16000 return 0;
16001}
16002_ACEOF
16003rm -f conftest.$ac_objext
16004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16005 (eval $ac_compile) 2>conftest.er1
a848cd7e 16006 ac_status=$?
ac1cb8d3
VS
16007 grep -v '^ *+' conftest.er1 >conftest.err
16008 rm -f conftest.er1
16009 cat conftest.err >&5
a848cd7e
SC
16010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16011 (exit $ac_status); } &&
5294a27e 16012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16014 (eval $ac_try) 2>&5
16015 ac_status=$?
16016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017 (exit $ac_status); }; } &&
16018 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16020 (eval $ac_try) 2>&5
16021 ac_status=$?
16022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16023 (exit $ac_status); }; }; then
16024 ac_hi=$ac_mid
16025else
16026 echo "$as_me: failed program was:" >&5
16027sed 's/^/| /' conftest.$ac_ext >&5
16028
16029ac_lo=`expr '(' $ac_mid ')' + 1`
16030fi
ac1cb8d3 16031rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16032done
16033case $ac_lo in
16034?*) ac_cv_sizeof_int=$ac_lo;;
16035'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16036See \`config.log' for more details." >&5
16037echo "$as_me: error: cannot compute sizeof (int), 77
16038See \`config.log' for more details." >&2;}
16039 { (exit 1); exit 1; }; } ;;
16040esac
16041else
16042 if test "$cross_compiling" = yes; then
5294a27e
VZ
16043 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16044echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16045 { (exit 1); exit 1; }; }
16046else
16047 cat >conftest.$ac_ext <<_ACEOF
16048/* confdefs.h. */
16049_ACEOF
16050cat confdefs.h >>conftest.$ac_ext
16051cat >>conftest.$ac_ext <<_ACEOF
16052/* end confdefs.h. */
16053$ac_includes_default
16054long longval () { return (long) (sizeof (int)); }
16055unsigned long ulongval () { return (long) (sizeof (int)); }
16056#include <stdio.h>
16057#include <stdlib.h>
16058int
16059main ()
16060{
16061
16062 FILE *f = fopen ("conftest.val", "w");
16063 if (! f)
16064 exit (1);
16065 if (((long) (sizeof (int))) < 0)
16066 {
16067 long i = longval ();
16068 if (i != ((long) (sizeof (int))))
16069 exit (1);
16070 fprintf (f, "%ld\n", i);
16071 }
16072 else
16073 {
16074 unsigned long i = ulongval ();
16075 if (i != ((long) (sizeof (int))))
16076 exit (1);
16077 fprintf (f, "%lu\n", i);
16078 }
16079 exit (ferror (f) || fclose (f) != 0);
16080
16081 ;
16082 return 0;
16083}
16084_ACEOF
16085rm -f conftest$ac_exeext
16086if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16087 (eval $ac_link) 2>&5
16088 ac_status=$?
16089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16090 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16092 (eval $ac_try) 2>&5
16093 ac_status=$?
16094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16095 (exit $ac_status); }; }; then
16096 ac_cv_sizeof_int=`cat conftest.val`
16097else
16098 echo "$as_me: program exited with status $ac_status" >&5
16099echo "$as_me: failed program was:" >&5
16100sed 's/^/| /' conftest.$ac_ext >&5
16101
16102( exit $ac_status )
16103{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16104See \`config.log' for more details." >&5
16105echo "$as_me: error: cannot compute sizeof (int), 77
16106See \`config.log' for more details." >&2;}
16107 { (exit 1); exit 1; }; }
16108fi
ac1cb8d3 16109rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16110fi
16111fi
16112rm -f conftest.val
16113else
16114 ac_cv_sizeof_int=0
16115fi
16116fi
16117echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16118echo "${ECHO_T}$ac_cv_sizeof_int" >&6
16119cat >>confdefs.h <<_ACEOF
16120#define SIZEOF_INT $ac_cv_sizeof_int
16121_ACEOF
16122
16123
16124echo "$as_me:$LINENO: checking for long" >&5
16125echo $ECHO_N "checking for long... $ECHO_C" >&6
16126if test "${ac_cv_type_long+set}" = set; then
16127 echo $ECHO_N "(cached) $ECHO_C" >&6
16128else
16129 cat >conftest.$ac_ext <<_ACEOF
16130/* confdefs.h. */
16131_ACEOF
16132cat confdefs.h >>conftest.$ac_ext
16133cat >>conftest.$ac_ext <<_ACEOF
16134/* end confdefs.h. */
16135$ac_includes_default
16136int
16137main ()
16138{
16139if ((long *) 0)
16140 return 0;
16141if (sizeof (long))
16142 return 0;
16143 ;
16144 return 0;
16145}
16146_ACEOF
16147rm -f conftest.$ac_objext
16148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16149 (eval $ac_compile) 2>conftest.er1
a848cd7e 16150 ac_status=$?
ac1cb8d3
VS
16151 grep -v '^ *+' conftest.er1 >conftest.err
16152 rm -f conftest.er1
16153 cat conftest.err >&5
a848cd7e
SC
16154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155 (exit $ac_status); } &&
5294a27e 16156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16158 (eval $ac_try) 2>&5
16159 ac_status=$?
16160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16161 (exit $ac_status); }; } &&
16162 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16164 (eval $ac_try) 2>&5
16165 ac_status=$?
16166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167 (exit $ac_status); }; }; then
16168 ac_cv_type_long=yes
16169else
16170 echo "$as_me: failed program was:" >&5
16171sed 's/^/| /' conftest.$ac_ext >&5
16172
16173ac_cv_type_long=no
16174fi
ac1cb8d3 16175rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16176fi
16177echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
16178echo "${ECHO_T}$ac_cv_type_long" >&6
16179
16180echo "$as_me:$LINENO: checking size of long" >&5
16181echo $ECHO_N "checking size of long... $ECHO_C" >&6
16182if test "${ac_cv_sizeof_long+set}" = set; then
16183 echo $ECHO_N "(cached) $ECHO_C" >&6
16184else
16185 if test "$ac_cv_type_long" = yes; then
16186 # The cast to unsigned long works around a bug in the HP C Compiler
16187 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16188 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16189 # This bug is HP SR number 8606223364.
16190 if test "$cross_compiling" = yes; then
16191 # Depending upon the size, compute the lo and hi bounds.
16192cat >conftest.$ac_ext <<_ACEOF
16193/* confdefs.h. */
16194_ACEOF
16195cat confdefs.h >>conftest.$ac_ext
16196cat >>conftest.$ac_ext <<_ACEOF
16197/* end confdefs.h. */
16198$ac_includes_default
16199int
16200main ()
16201{
16202static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
16203test_array [0] = 0
16204
16205 ;
16206 return 0;
16207}
16208_ACEOF
16209rm -f conftest.$ac_objext
16210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16211 (eval $ac_compile) 2>conftest.er1
a848cd7e 16212 ac_status=$?
ac1cb8d3
VS
16213 grep -v '^ *+' conftest.er1 >conftest.err
16214 rm -f conftest.er1
16215 cat conftest.err >&5
a848cd7e
SC
16216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217 (exit $ac_status); } &&
5294a27e 16218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16220 (eval $ac_try) 2>&5
16221 ac_status=$?
16222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223 (exit $ac_status); }; } &&
16224 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16226 (eval $ac_try) 2>&5
16227 ac_status=$?
16228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229 (exit $ac_status); }; }; then
16230 ac_lo=0 ac_mid=0
16231 while :; do
16232 cat >conftest.$ac_ext <<_ACEOF
16233/* confdefs.h. */
16234_ACEOF
16235cat confdefs.h >>conftest.$ac_ext
16236cat >>conftest.$ac_ext <<_ACEOF
16237/* end confdefs.h. */
16238$ac_includes_default
16239int
16240main ()
16241{
16242static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16243test_array [0] = 0
16244
16245 ;
16246 return 0;
16247}
16248_ACEOF
16249rm -f conftest.$ac_objext
16250if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16251 (eval $ac_compile) 2>conftest.er1
a848cd7e 16252 ac_status=$?
ac1cb8d3
VS
16253 grep -v '^ *+' conftest.er1 >conftest.err
16254 rm -f conftest.er1
16255 cat conftest.err >&5
a848cd7e
SC
16256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257 (exit $ac_status); } &&
5294a27e 16258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16260 (eval $ac_try) 2>&5
16261 ac_status=$?
16262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263 (exit $ac_status); }; } &&
16264 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16266 (eval $ac_try) 2>&5
16267 ac_status=$?
16268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269 (exit $ac_status); }; }; then
16270 ac_hi=$ac_mid; break
16271else
16272 echo "$as_me: failed program was:" >&5
16273sed 's/^/| /' conftest.$ac_ext >&5
16274
16275ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16276 if test $ac_lo -le $ac_mid; then
16277 ac_lo= ac_hi=
16278 break
16279 fi
16280 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16281fi
ac1cb8d3 16282rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16283 done
16284else
16285 echo "$as_me: failed program was:" >&5
16286sed 's/^/| /' conftest.$ac_ext >&5
16287
16288cat >conftest.$ac_ext <<_ACEOF
16289/* confdefs.h. */
16290_ACEOF
16291cat confdefs.h >>conftest.$ac_ext
16292cat >>conftest.$ac_ext <<_ACEOF
16293/* end confdefs.h. */
16294$ac_includes_default
16295int
16296main ()
16297{
16298static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
16299test_array [0] = 0
16300
16301 ;
16302 return 0;
16303}
16304_ACEOF
16305rm -f conftest.$ac_objext
16306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16307 (eval $ac_compile) 2>conftest.er1
a848cd7e 16308 ac_status=$?
ac1cb8d3
VS
16309 grep -v '^ *+' conftest.er1 >conftest.err
16310 rm -f conftest.er1
16311 cat conftest.err >&5
a848cd7e
SC
16312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313 (exit $ac_status); } &&
5294a27e 16314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16316 (eval $ac_try) 2>&5
16317 ac_status=$?
16318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319 (exit $ac_status); }; } &&
16320 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16322 (eval $ac_try) 2>&5
16323 ac_status=$?
16324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325 (exit $ac_status); }; }; then
16326 ac_hi=-1 ac_mid=-1
16327 while :; do
16328 cat >conftest.$ac_ext <<_ACEOF
16329/* confdefs.h. */
16330_ACEOF
16331cat confdefs.h >>conftest.$ac_ext
16332cat >>conftest.$ac_ext <<_ACEOF
16333/* end confdefs.h. */
16334$ac_includes_default
16335int
16336main ()
16337{
16338static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
16339test_array [0] = 0
16340
16341 ;
16342 return 0;
16343}
16344_ACEOF
16345rm -f conftest.$ac_objext
16346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16347 (eval $ac_compile) 2>conftest.er1
a848cd7e 16348 ac_status=$?
ac1cb8d3
VS
16349 grep -v '^ *+' conftest.er1 >conftest.err
16350 rm -f conftest.er1
16351 cat conftest.err >&5
a848cd7e
SC
16352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353 (exit $ac_status); } &&
5294a27e 16354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16356 (eval $ac_try) 2>&5
16357 ac_status=$?
16358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359 (exit $ac_status); }; } &&
16360 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16362 (eval $ac_try) 2>&5
16363 ac_status=$?
16364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365 (exit $ac_status); }; }; then
16366 ac_lo=$ac_mid; break
16367else
16368 echo "$as_me: failed program was:" >&5
16369sed 's/^/| /' conftest.$ac_ext >&5
16370
16371ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16372 if test $ac_mid -le $ac_hi; then
16373 ac_lo= ac_hi=
16374 break
16375 fi
16376 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16377fi
ac1cb8d3 16378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16379 done
16380else
16381 echo "$as_me: failed program was:" >&5
16382sed 's/^/| /' conftest.$ac_ext >&5
16383
16384ac_lo= ac_hi=
16385fi
ac1cb8d3 16386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16387fi
ac1cb8d3 16388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16389# Binary search between lo and hi bounds.
16390while test "x$ac_lo" != "x$ac_hi"; do
16391 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16392 cat >conftest.$ac_ext <<_ACEOF
16393/* confdefs.h. */
16394_ACEOF
16395cat confdefs.h >>conftest.$ac_ext
16396cat >>conftest.$ac_ext <<_ACEOF
16397/* end confdefs.h. */
16398$ac_includes_default
16399int
16400main ()
16401{
16402static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16403test_array [0] = 0
16404
16405 ;
16406 return 0;
16407}
16408_ACEOF
16409rm -f conftest.$ac_objext
16410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16411 (eval $ac_compile) 2>conftest.er1
a848cd7e 16412 ac_status=$?
ac1cb8d3
VS
16413 grep -v '^ *+' conftest.er1 >conftest.err
16414 rm -f conftest.er1
16415 cat conftest.err >&5
a848cd7e
SC
16416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16417 (exit $ac_status); } &&
5294a27e 16418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16420 (eval $ac_try) 2>&5
16421 ac_status=$?
16422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16423 (exit $ac_status); }; } &&
16424 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16426 (eval $ac_try) 2>&5
16427 ac_status=$?
16428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429 (exit $ac_status); }; }; then
16430 ac_hi=$ac_mid
16431else
16432 echo "$as_me: failed program was:" >&5
16433sed 's/^/| /' conftest.$ac_ext >&5
16434
16435ac_lo=`expr '(' $ac_mid ')' + 1`
16436fi
ac1cb8d3 16437rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16438done
16439case $ac_lo in
16440?*) ac_cv_sizeof_long=$ac_lo;;
16441'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16442See \`config.log' for more details." >&5
16443echo "$as_me: error: cannot compute sizeof (long), 77
16444See \`config.log' for more details." >&2;}
16445 { (exit 1); exit 1; }; } ;;
16446esac
16447else
16448 if test "$cross_compiling" = yes; then
5294a27e
VZ
16449 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16450echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16451 { (exit 1); exit 1; }; }
16452else
16453 cat >conftest.$ac_ext <<_ACEOF
16454/* confdefs.h. */
16455_ACEOF
16456cat confdefs.h >>conftest.$ac_ext
16457cat >>conftest.$ac_ext <<_ACEOF
16458/* end confdefs.h. */
16459$ac_includes_default
16460long longval () { return (long) (sizeof (long)); }
16461unsigned long ulongval () { return (long) (sizeof (long)); }
16462#include <stdio.h>
16463#include <stdlib.h>
16464int
16465main ()
16466{
16467
16468 FILE *f = fopen ("conftest.val", "w");
16469 if (! f)
16470 exit (1);
16471 if (((long) (sizeof (long))) < 0)
16472 {
16473 long i = longval ();
16474 if (i != ((long) (sizeof (long))))
16475 exit (1);
16476 fprintf (f, "%ld\n", i);
16477 }
16478 else
16479 {
16480 unsigned long i = ulongval ();
16481 if (i != ((long) (sizeof (long))))
16482 exit (1);
16483 fprintf (f, "%lu\n", i);
16484 }
16485 exit (ferror (f) || fclose (f) != 0);
16486
16487 ;
16488 return 0;
16489}
16490_ACEOF
16491rm -f conftest$ac_exeext
16492if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16493 (eval $ac_link) 2>&5
16494 ac_status=$?
16495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16496 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16498 (eval $ac_try) 2>&5
16499 ac_status=$?
16500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501 (exit $ac_status); }; }; then
16502 ac_cv_sizeof_long=`cat conftest.val`
16503else
16504 echo "$as_me: program exited with status $ac_status" >&5
16505echo "$as_me: failed program was:" >&5
16506sed 's/^/| /' conftest.$ac_ext >&5
16507
16508( exit $ac_status )
16509{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16510See \`config.log' for more details." >&5
16511echo "$as_me: error: cannot compute sizeof (long), 77
16512See \`config.log' for more details." >&2;}
16513 { (exit 1); exit 1; }; }
16514fi
ac1cb8d3 16515rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16516fi
16517fi
16518rm -f conftest.val
16519else
16520 ac_cv_sizeof_long=0
16521fi
16522fi
16523echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
16524echo "${ECHO_T}$ac_cv_sizeof_long" >&6
16525cat >>confdefs.h <<_ACEOF
16526#define SIZEOF_LONG $ac_cv_sizeof_long
16527_ACEOF
16528
16529
16530echo "$as_me:$LINENO: checking for size_t" >&5
16531echo $ECHO_N "checking for size_t... $ECHO_C" >&6
16532if test "${ac_cv_type_size_t+set}" = set; then
16533 echo $ECHO_N "(cached) $ECHO_C" >&6
16534else
16535 cat >conftest.$ac_ext <<_ACEOF
16536/* confdefs.h. */
16537_ACEOF
16538cat confdefs.h >>conftest.$ac_ext
16539cat >>conftest.$ac_ext <<_ACEOF
16540/* end confdefs.h. */
16541$ac_includes_default
16542int
16543main ()
16544{
16545if ((size_t *) 0)
16546 return 0;
16547if (sizeof (size_t))
16548 return 0;
16549 ;
16550 return 0;
16551}
16552_ACEOF
16553rm -f conftest.$ac_objext
16554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16555 (eval $ac_compile) 2>conftest.er1
a848cd7e 16556 ac_status=$?
ac1cb8d3
VS
16557 grep -v '^ *+' conftest.er1 >conftest.err
16558 rm -f conftest.er1
16559 cat conftest.err >&5
a848cd7e
SC
16560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16561 (exit $ac_status); } &&
5294a27e 16562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16564 (eval $ac_try) 2>&5
16565 ac_status=$?
16566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16567 (exit $ac_status); }; } &&
16568 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16570 (eval $ac_try) 2>&5
16571 ac_status=$?
16572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573 (exit $ac_status); }; }; then
16574 ac_cv_type_size_t=yes
16575else
16576 echo "$as_me: failed program was:" >&5
16577sed 's/^/| /' conftest.$ac_ext >&5
16578
16579ac_cv_type_size_t=no
16580fi
ac1cb8d3 16581rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16582fi
16583echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16584echo "${ECHO_T}$ac_cv_type_size_t" >&6
16585
16586echo "$as_me:$LINENO: checking size of size_t" >&5
16587echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
16588if test "${ac_cv_sizeof_size_t+set}" = set; then
16589 echo $ECHO_N "(cached) $ECHO_C" >&6
16590else
16591 if test "$ac_cv_type_size_t" = yes; then
16592 # The cast to unsigned long works around a bug in the HP C Compiler
16593 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16594 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16595 # This bug is HP SR number 8606223364.
16596 if test "$cross_compiling" = yes; then
16597 # Depending upon the size, compute the lo and hi bounds.
16598cat >conftest.$ac_ext <<_ACEOF
16599/* confdefs.h. */
16600_ACEOF
16601cat confdefs.h >>conftest.$ac_ext
16602cat >>conftest.$ac_ext <<_ACEOF
16603/* end confdefs.h. */
16604$ac_includes_default
16605int
16606main ()
16607{
16608static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
16609test_array [0] = 0
16610
16611 ;
16612 return 0;
16613}
16614_ACEOF
16615rm -f conftest.$ac_objext
16616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16617 (eval $ac_compile) 2>conftest.er1
a848cd7e 16618 ac_status=$?
ac1cb8d3
VS
16619 grep -v '^ *+' conftest.er1 >conftest.err
16620 rm -f conftest.er1
16621 cat conftest.err >&5
a848cd7e
SC
16622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623 (exit $ac_status); } &&
5294a27e 16624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16626 (eval $ac_try) 2>&5
16627 ac_status=$?
16628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16629 (exit $ac_status); }; } &&
16630 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16632 (eval $ac_try) 2>&5
16633 ac_status=$?
16634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16635 (exit $ac_status); }; }; then
16636 ac_lo=0 ac_mid=0
16637 while :; do
16638 cat >conftest.$ac_ext <<_ACEOF
16639/* confdefs.h. */
16640_ACEOF
16641cat confdefs.h >>conftest.$ac_ext
16642cat >>conftest.$ac_ext <<_ACEOF
16643/* end confdefs.h. */
16644$ac_includes_default
16645int
16646main ()
16647{
16648static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16649test_array [0] = 0
16650
16651 ;
16652 return 0;
16653}
16654_ACEOF
16655rm -f conftest.$ac_objext
16656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16657 (eval $ac_compile) 2>conftest.er1
a848cd7e 16658 ac_status=$?
ac1cb8d3
VS
16659 grep -v '^ *+' conftest.er1 >conftest.err
16660 rm -f conftest.er1
16661 cat conftest.err >&5
a848cd7e
SC
16662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663 (exit $ac_status); } &&
5294a27e 16664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16666 (eval $ac_try) 2>&5
16667 ac_status=$?
16668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669 (exit $ac_status); }; } &&
16670 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16672 (eval $ac_try) 2>&5
16673 ac_status=$?
16674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675 (exit $ac_status); }; }; then
16676 ac_hi=$ac_mid; break
16677else
16678 echo "$as_me: failed program was:" >&5
16679sed 's/^/| /' conftest.$ac_ext >&5
16680
16681ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16682 if test $ac_lo -le $ac_mid; then
16683 ac_lo= ac_hi=
16684 break
16685 fi
16686 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16687fi
ac1cb8d3 16688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16689 done
16690else
16691 echo "$as_me: failed program was:" >&5
16692sed 's/^/| /' conftest.$ac_ext >&5
16693
16694cat >conftest.$ac_ext <<_ACEOF
16695/* confdefs.h. */
16696_ACEOF
16697cat confdefs.h >>conftest.$ac_ext
16698cat >>conftest.$ac_ext <<_ACEOF
16699/* end confdefs.h. */
16700$ac_includes_default
16701int
16702main ()
16703{
16704static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
16705test_array [0] = 0
16706
16707 ;
16708 return 0;
16709}
16710_ACEOF
16711rm -f conftest.$ac_objext
16712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16713 (eval $ac_compile) 2>conftest.er1
a848cd7e 16714 ac_status=$?
ac1cb8d3
VS
16715 grep -v '^ *+' conftest.er1 >conftest.err
16716 rm -f conftest.er1
16717 cat conftest.err >&5
a848cd7e
SC
16718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719 (exit $ac_status); } &&
5294a27e 16720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16722 (eval $ac_try) 2>&5
16723 ac_status=$?
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); }; } &&
16726 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16728 (eval $ac_try) 2>&5
16729 ac_status=$?
16730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); }; }; then
16732 ac_hi=-1 ac_mid=-1
16733 while :; do
16734 cat >conftest.$ac_ext <<_ACEOF
16735/* confdefs.h. */
16736_ACEOF
16737cat confdefs.h >>conftest.$ac_ext
16738cat >>conftest.$ac_ext <<_ACEOF
16739/* end confdefs.h. */
16740$ac_includes_default
16741int
16742main ()
16743{
16744static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
16745test_array [0] = 0
16746
16747 ;
16748 return 0;
16749}
16750_ACEOF
16751rm -f conftest.$ac_objext
16752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16753 (eval $ac_compile) 2>conftest.er1
a848cd7e 16754 ac_status=$?
ac1cb8d3
VS
16755 grep -v '^ *+' conftest.er1 >conftest.err
16756 rm -f conftest.er1
16757 cat conftest.err >&5
a848cd7e
SC
16758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759 (exit $ac_status); } &&
5294a27e 16760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16762 (eval $ac_try) 2>&5
16763 ac_status=$?
16764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765 (exit $ac_status); }; } &&
16766 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16768 (eval $ac_try) 2>&5
16769 ac_status=$?
16770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771 (exit $ac_status); }; }; then
16772 ac_lo=$ac_mid; break
16773else
16774 echo "$as_me: failed program was:" >&5
16775sed 's/^/| /' conftest.$ac_ext >&5
16776
16777ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16778 if test $ac_mid -le $ac_hi; then
16779 ac_lo= ac_hi=
16780 break
16781 fi
16782 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16783fi
ac1cb8d3 16784rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16785 done
16786else
16787 echo "$as_me: failed program was:" >&5
16788sed 's/^/| /' conftest.$ac_ext >&5
16789
16790ac_lo= ac_hi=
16791fi
ac1cb8d3 16792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16793fi
ac1cb8d3 16794rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16795# Binary search between lo and hi bounds.
16796while test "x$ac_lo" != "x$ac_hi"; do
16797 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16798 cat >conftest.$ac_ext <<_ACEOF
16799/* confdefs.h. */
16800_ACEOF
16801cat confdefs.h >>conftest.$ac_ext
16802cat >>conftest.$ac_ext <<_ACEOF
16803/* end confdefs.h. */
16804$ac_includes_default
16805int
16806main ()
16807{
16808static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16809test_array [0] = 0
16810
16811 ;
16812 return 0;
16813}
16814_ACEOF
16815rm -f conftest.$ac_objext
16816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16817 (eval $ac_compile) 2>conftest.er1
a848cd7e 16818 ac_status=$?
ac1cb8d3
VS
16819 grep -v '^ *+' conftest.er1 >conftest.err
16820 rm -f conftest.er1
16821 cat conftest.err >&5
a848cd7e
SC
16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); } &&
5294a27e 16824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16826 (eval $ac_try) 2>&5
16827 ac_status=$?
16828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829 (exit $ac_status); }; } &&
16830 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16832 (eval $ac_try) 2>&5
16833 ac_status=$?
16834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16835 (exit $ac_status); }; }; then
16836 ac_hi=$ac_mid
16837else
16838 echo "$as_me: failed program was:" >&5
16839sed 's/^/| /' conftest.$ac_ext >&5
16840
16841ac_lo=`expr '(' $ac_mid ')' + 1`
16842fi
ac1cb8d3 16843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16844done
16845case $ac_lo in
16846?*) ac_cv_sizeof_size_t=$ac_lo;;
16847'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16848See \`config.log' for more details." >&5
16849echo "$as_me: error: cannot compute sizeof (size_t), 77
16850See \`config.log' for more details." >&2;}
16851 { (exit 1); exit 1; }; } ;;
16852esac
16853else
16854 if test "$cross_compiling" = yes; then
5294a27e
VZ
16855 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16856echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16857 { (exit 1); exit 1; }; }
16858else
16859 cat >conftest.$ac_ext <<_ACEOF
16860/* confdefs.h. */
16861_ACEOF
16862cat confdefs.h >>conftest.$ac_ext
16863cat >>conftest.$ac_ext <<_ACEOF
16864/* end confdefs.h. */
16865$ac_includes_default
16866long longval () { return (long) (sizeof (size_t)); }
16867unsigned long ulongval () { return (long) (sizeof (size_t)); }
16868#include <stdio.h>
16869#include <stdlib.h>
16870int
16871main ()
16872{
16873
16874 FILE *f = fopen ("conftest.val", "w");
16875 if (! f)
16876 exit (1);
16877 if (((long) (sizeof (size_t))) < 0)
16878 {
16879 long i = longval ();
16880 if (i != ((long) (sizeof (size_t))))
16881 exit (1);
16882 fprintf (f, "%ld\n", i);
16883 }
16884 else
16885 {
16886 unsigned long i = ulongval ();
16887 if (i != ((long) (sizeof (size_t))))
16888 exit (1);
16889 fprintf (f, "%lu\n", i);
16890 }
16891 exit (ferror (f) || fclose (f) != 0);
16892
16893 ;
16894 return 0;
16895}
16896_ACEOF
16897rm -f conftest$ac_exeext
16898if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16899 (eval $ac_link) 2>&5
16900 ac_status=$?
16901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16904 (eval $ac_try) 2>&5
16905 ac_status=$?
16906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907 (exit $ac_status); }; }; then
16908 ac_cv_sizeof_size_t=`cat conftest.val`
16909else
16910 echo "$as_me: program exited with status $ac_status" >&5
16911echo "$as_me: failed program was:" >&5
16912sed 's/^/| /' conftest.$ac_ext >&5
16913
16914( exit $ac_status )
16915{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16916See \`config.log' for more details." >&5
16917echo "$as_me: error: cannot compute sizeof (size_t), 77
16918See \`config.log' for more details." >&2;}
16919 { (exit 1); exit 1; }; }
16920fi
ac1cb8d3 16921rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16922fi
16923fi
16924rm -f conftest.val
16925else
16926 ac_cv_sizeof_size_t=0
16927fi
16928fi
16929echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
16930echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
16931cat >>confdefs.h <<_ACEOF
16932#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
16933_ACEOF
16934
16935
16936
16937case "${host}" in
16938 arm-*-linux* )
16939 echo "$as_me:$LINENO: checking for long long" >&5
16940echo $ECHO_N "checking for long long... $ECHO_C" >&6
16941if test "${ac_cv_type_long_long+set}" = set; then
16942 echo $ECHO_N "(cached) $ECHO_C" >&6
16943else
16944 cat >conftest.$ac_ext <<_ACEOF
16945/* confdefs.h. */
16946_ACEOF
16947cat confdefs.h >>conftest.$ac_ext
16948cat >>conftest.$ac_ext <<_ACEOF
16949/* end confdefs.h. */
16950$ac_includes_default
16951int
16952main ()
16953{
16954if ((long long *) 0)
16955 return 0;
16956if (sizeof (long long))
16957 return 0;
16958 ;
16959 return 0;
16960}
16961_ACEOF
16962rm -f conftest.$ac_objext
16963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16964 (eval $ac_compile) 2>conftest.er1
a848cd7e 16965 ac_status=$?
ac1cb8d3
VS
16966 grep -v '^ *+' conftest.er1 >conftest.err
16967 rm -f conftest.er1
16968 cat conftest.err >&5
a848cd7e
SC
16969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16970 (exit $ac_status); } &&
5294a27e 16971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16973 (eval $ac_try) 2>&5
16974 ac_status=$?
16975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16976 (exit $ac_status); }; } &&
16977 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16979 (eval $ac_try) 2>&5
16980 ac_status=$?
16981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16982 (exit $ac_status); }; }; then
16983 ac_cv_type_long_long=yes
16984else
16985 echo "$as_me: failed program was:" >&5
16986sed 's/^/| /' conftest.$ac_ext >&5
16987
16988ac_cv_type_long_long=no
16989fi
ac1cb8d3 16990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16991fi
16992echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16993echo "${ECHO_T}$ac_cv_type_long_long" >&6
16994
16995echo "$as_me:$LINENO: checking size of long long" >&5
16996echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16997if test "${ac_cv_sizeof_long_long+set}" = set; then
16998 echo $ECHO_N "(cached) $ECHO_C" >&6
16999else
17000 if test "$ac_cv_type_long_long" = yes; then
17001 # The cast to unsigned long works around a bug in the HP C Compiler
17002 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17003 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17004 # This bug is HP SR number 8606223364.
17005 if test "$cross_compiling" = yes; then
17006 # Depending upon the size, compute the lo and hi bounds.
17007cat >conftest.$ac_ext <<_ACEOF
17008/* confdefs.h. */
17009_ACEOF
17010cat confdefs.h >>conftest.$ac_ext
17011cat >>conftest.$ac_ext <<_ACEOF
17012/* end confdefs.h. */
17013$ac_includes_default
17014int
17015main ()
17016{
17017static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17018test_array [0] = 0
17019
17020 ;
17021 return 0;
17022}
17023_ACEOF
17024rm -f conftest.$ac_objext
17025if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17026 (eval $ac_compile) 2>conftest.er1
a848cd7e 17027 ac_status=$?
ac1cb8d3
VS
17028 grep -v '^ *+' conftest.er1 >conftest.err
17029 rm -f conftest.er1
17030 cat conftest.err >&5
a848cd7e
SC
17031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032 (exit $ac_status); } &&
5294a27e 17033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17035 (eval $ac_try) 2>&5
17036 ac_status=$?
17037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038 (exit $ac_status); }; } &&
17039 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17041 (eval $ac_try) 2>&5
17042 ac_status=$?
17043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044 (exit $ac_status); }; }; then
17045 ac_lo=0 ac_mid=0
17046 while :; do
17047 cat >conftest.$ac_ext <<_ACEOF
17048/* confdefs.h. */
17049_ACEOF
17050cat confdefs.h >>conftest.$ac_ext
17051cat >>conftest.$ac_ext <<_ACEOF
17052/* end confdefs.h. */
17053$ac_includes_default
17054int
17055main ()
17056{
17057static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17058test_array [0] = 0
17059
17060 ;
17061 return 0;
17062}
17063_ACEOF
17064rm -f conftest.$ac_objext
17065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17066 (eval $ac_compile) 2>conftest.er1
a848cd7e 17067 ac_status=$?
ac1cb8d3
VS
17068 grep -v '^ *+' conftest.er1 >conftest.err
17069 rm -f conftest.er1
17070 cat conftest.err >&5
a848cd7e
SC
17071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17072 (exit $ac_status); } &&
5294a27e 17073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17075 (eval $ac_try) 2>&5
17076 ac_status=$?
17077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078 (exit $ac_status); }; } &&
17079 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17081 (eval $ac_try) 2>&5
17082 ac_status=$?
17083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084 (exit $ac_status); }; }; then
17085 ac_hi=$ac_mid; break
17086else
17087 echo "$as_me: failed program was:" >&5
17088sed 's/^/| /' conftest.$ac_ext >&5
17089
17090ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17091 if test $ac_lo -le $ac_mid; then
17092 ac_lo= ac_hi=
17093 break
17094 fi
17095 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17096fi
ac1cb8d3 17097rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17098 done
17099else
17100 echo "$as_me: failed program was:" >&5
17101sed 's/^/| /' conftest.$ac_ext >&5
17102
17103cat >conftest.$ac_ext <<_ACEOF
17104/* confdefs.h. */
17105_ACEOF
17106cat confdefs.h >>conftest.$ac_ext
17107cat >>conftest.$ac_ext <<_ACEOF
17108/* end confdefs.h. */
17109$ac_includes_default
17110int
17111main ()
17112{
17113static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17114test_array [0] = 0
17115
17116 ;
17117 return 0;
17118}
17119_ACEOF
17120rm -f conftest.$ac_objext
17121if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17122 (eval $ac_compile) 2>conftest.er1
a848cd7e 17123 ac_status=$?
ac1cb8d3
VS
17124 grep -v '^ *+' conftest.er1 >conftest.err
17125 rm -f conftest.er1
17126 cat conftest.err >&5
a848cd7e
SC
17127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128 (exit $ac_status); } &&
5294a27e 17129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17131 (eval $ac_try) 2>&5
17132 ac_status=$?
17133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134 (exit $ac_status); }; } &&
17135 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17137 (eval $ac_try) 2>&5
17138 ac_status=$?
17139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140 (exit $ac_status); }; }; then
17141 ac_hi=-1 ac_mid=-1
17142 while :; do
17143 cat >conftest.$ac_ext <<_ACEOF
17144/* confdefs.h. */
17145_ACEOF
17146cat confdefs.h >>conftest.$ac_ext
17147cat >>conftest.$ac_ext <<_ACEOF
17148/* end confdefs.h. */
17149$ac_includes_default
17150int
17151main ()
17152{
17153static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17154test_array [0] = 0
17155
17156 ;
17157 return 0;
17158}
17159_ACEOF
17160rm -f conftest.$ac_objext
17161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17162 (eval $ac_compile) 2>conftest.er1
a848cd7e 17163 ac_status=$?
ac1cb8d3
VS
17164 grep -v '^ *+' conftest.er1 >conftest.err
17165 rm -f conftest.er1
17166 cat conftest.err >&5
a848cd7e
SC
17167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168 (exit $ac_status); } &&
5294a27e 17169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17171 (eval $ac_try) 2>&5
17172 ac_status=$?
17173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174 (exit $ac_status); }; } &&
17175 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17177 (eval $ac_try) 2>&5
17178 ac_status=$?
17179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17180 (exit $ac_status); }; }; then
17181 ac_lo=$ac_mid; break
17182else
17183 echo "$as_me: failed program was:" >&5
17184sed 's/^/| /' conftest.$ac_ext >&5
17185
17186ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17187 if test $ac_mid -le $ac_hi; then
17188 ac_lo= ac_hi=
17189 break
17190 fi
17191 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17192fi
ac1cb8d3 17193rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17194 done
17195else
17196 echo "$as_me: failed program was:" >&5
17197sed 's/^/| /' conftest.$ac_ext >&5
17198
17199ac_lo= ac_hi=
17200fi
ac1cb8d3 17201rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17202fi
ac1cb8d3 17203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17204# Binary search between lo and hi bounds.
17205while test "x$ac_lo" != "x$ac_hi"; do
17206 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17207 cat >conftest.$ac_ext <<_ACEOF
17208/* confdefs.h. */
17209_ACEOF
17210cat confdefs.h >>conftest.$ac_ext
17211cat >>conftest.$ac_ext <<_ACEOF
17212/* end confdefs.h. */
17213$ac_includes_default
17214int
17215main ()
17216{
17217static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17218test_array [0] = 0
17219
17220 ;
17221 return 0;
17222}
17223_ACEOF
17224rm -f conftest.$ac_objext
17225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17226 (eval $ac_compile) 2>conftest.er1
a848cd7e 17227 ac_status=$?
ac1cb8d3
VS
17228 grep -v '^ *+' conftest.er1 >conftest.err
17229 rm -f conftest.er1
17230 cat conftest.err >&5
a848cd7e
SC
17231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17232 (exit $ac_status); } &&
5294a27e 17233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17235 (eval $ac_try) 2>&5
17236 ac_status=$?
17237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17238 (exit $ac_status); }; } &&
17239 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17241 (eval $ac_try) 2>&5
17242 ac_status=$?
17243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244 (exit $ac_status); }; }; then
17245 ac_hi=$ac_mid
17246else
17247 echo "$as_me: failed program was:" >&5
17248sed 's/^/| /' conftest.$ac_ext >&5
17249
17250ac_lo=`expr '(' $ac_mid ')' + 1`
17251fi
ac1cb8d3 17252rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17253done
17254case $ac_lo in
17255?*) ac_cv_sizeof_long_long=$ac_lo;;
17256'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17257See \`config.log' for more details." >&5
17258echo "$as_me: error: cannot compute sizeof (long long), 77
17259See \`config.log' for more details." >&2;}
17260 { (exit 1); exit 1; }; } ;;
17261esac
17262else
17263 if test "$cross_compiling" = yes; then
5294a27e
VZ
17264 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17265echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17266 { (exit 1); exit 1; }; }
17267else
17268 cat >conftest.$ac_ext <<_ACEOF
17269/* confdefs.h. */
17270_ACEOF
17271cat confdefs.h >>conftest.$ac_ext
17272cat >>conftest.$ac_ext <<_ACEOF
17273/* end confdefs.h. */
17274$ac_includes_default
17275long longval () { return (long) (sizeof (long long)); }
17276unsigned long ulongval () { return (long) (sizeof (long long)); }
17277#include <stdio.h>
17278#include <stdlib.h>
17279int
17280main ()
17281{
17282
17283 FILE *f = fopen ("conftest.val", "w");
17284 if (! f)
17285 exit (1);
17286 if (((long) (sizeof (long long))) < 0)
17287 {
17288 long i = longval ();
17289 if (i != ((long) (sizeof (long long))))
17290 exit (1);
17291 fprintf (f, "%ld\n", i);
17292 }
17293 else
17294 {
17295 unsigned long i = ulongval ();
17296 if (i != ((long) (sizeof (long long))))
17297 exit (1);
17298 fprintf (f, "%lu\n", i);
17299 }
17300 exit (ferror (f) || fclose (f) != 0);
17301
17302 ;
17303 return 0;
17304}
17305_ACEOF
17306rm -f conftest$ac_exeext
17307if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17308 (eval $ac_link) 2>&5
17309 ac_status=$?
17310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17313 (eval $ac_try) 2>&5
17314 ac_status=$?
17315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316 (exit $ac_status); }; }; then
17317 ac_cv_sizeof_long_long=`cat conftest.val`
17318else
17319 echo "$as_me: program exited with status $ac_status" >&5
17320echo "$as_me: failed program was:" >&5
17321sed 's/^/| /' conftest.$ac_ext >&5
17322
17323( exit $ac_status )
17324{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17325See \`config.log' for more details." >&5
17326echo "$as_me: error: cannot compute sizeof (long long), 77
17327See \`config.log' for more details." >&2;}
17328 { (exit 1); exit 1; }; }
17329fi
ac1cb8d3 17330rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17331fi
17332fi
17333rm -f conftest.val
17334else
17335 ac_cv_sizeof_long_long=0
17336fi
17337fi
17338echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17339echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17340cat >>confdefs.h <<_ACEOF
17341#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17342_ACEOF
17343
17344
17345 ;;
17346 *-hp-hpux* )
17347 echo "$as_me:$LINENO: checking for long long" >&5
17348echo $ECHO_N "checking for long long... $ECHO_C" >&6
17349if test "${ac_cv_type_long_long+set}" = set; then
17350 echo $ECHO_N "(cached) $ECHO_C" >&6
17351else
17352 cat >conftest.$ac_ext <<_ACEOF
17353/* confdefs.h. */
17354_ACEOF
17355cat confdefs.h >>conftest.$ac_ext
17356cat >>conftest.$ac_ext <<_ACEOF
17357/* end confdefs.h. */
17358$ac_includes_default
17359int
17360main ()
17361{
17362if ((long long *) 0)
17363 return 0;
17364if (sizeof (long long))
17365 return 0;
17366 ;
17367 return 0;
17368}
17369_ACEOF
17370rm -f conftest.$ac_objext
17371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17372 (eval $ac_compile) 2>conftest.er1
a848cd7e 17373 ac_status=$?
ac1cb8d3
VS
17374 grep -v '^ *+' conftest.er1 >conftest.err
17375 rm -f conftest.er1
17376 cat conftest.err >&5
a848cd7e
SC
17377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17378 (exit $ac_status); } &&
5294a27e 17379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17381 (eval $ac_try) 2>&5
17382 ac_status=$?
17383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384 (exit $ac_status); }; } &&
17385 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17387 (eval $ac_try) 2>&5
17388 ac_status=$?
17389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390 (exit $ac_status); }; }; then
17391 ac_cv_type_long_long=yes
17392else
17393 echo "$as_me: failed program was:" >&5
17394sed 's/^/| /' conftest.$ac_ext >&5
17395
17396ac_cv_type_long_long=no
17397fi
ac1cb8d3 17398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17399fi
17400echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17401echo "${ECHO_T}$ac_cv_type_long_long" >&6
17402
17403echo "$as_me:$LINENO: checking size of long long" >&5
17404echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17405if test "${ac_cv_sizeof_long_long+set}" = set; then
17406 echo $ECHO_N "(cached) $ECHO_C" >&6
17407else
17408 if test "$ac_cv_type_long_long" = yes; then
17409 # The cast to unsigned long works around a bug in the HP C Compiler
17410 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17411 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17412 # This bug is HP SR number 8606223364.
17413 if test "$cross_compiling" = yes; then
17414 # Depending upon the size, compute the lo and hi bounds.
17415cat >conftest.$ac_ext <<_ACEOF
17416/* confdefs.h. */
17417_ACEOF
17418cat confdefs.h >>conftest.$ac_ext
17419cat >>conftest.$ac_ext <<_ACEOF
17420/* end confdefs.h. */
17421$ac_includes_default
17422int
17423main ()
17424{
17425static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17426test_array [0] = 0
17427
17428 ;
17429 return 0;
17430}
17431_ACEOF
17432rm -f conftest.$ac_objext
17433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17434 (eval $ac_compile) 2>conftest.er1
a848cd7e 17435 ac_status=$?
ac1cb8d3
VS
17436 grep -v '^ *+' conftest.er1 >conftest.err
17437 rm -f conftest.er1
17438 cat conftest.err >&5
a848cd7e
SC
17439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440 (exit $ac_status); } &&
5294a27e 17441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17443 (eval $ac_try) 2>&5
17444 ac_status=$?
17445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17446 (exit $ac_status); }; } &&
17447 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17449 (eval $ac_try) 2>&5
17450 ac_status=$?
17451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452 (exit $ac_status); }; }; then
17453 ac_lo=0 ac_mid=0
17454 while :; do
17455 cat >conftest.$ac_ext <<_ACEOF
17456/* confdefs.h. */
17457_ACEOF
17458cat confdefs.h >>conftest.$ac_ext
17459cat >>conftest.$ac_ext <<_ACEOF
17460/* end confdefs.h. */
17461$ac_includes_default
17462int
17463main ()
17464{
17465static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17466test_array [0] = 0
17467
17468 ;
17469 return 0;
17470}
17471_ACEOF
17472rm -f conftest.$ac_objext
17473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17474 (eval $ac_compile) 2>conftest.er1
a848cd7e 17475 ac_status=$?
ac1cb8d3
VS
17476 grep -v '^ *+' conftest.er1 >conftest.err
17477 rm -f conftest.er1
17478 cat conftest.err >&5
a848cd7e
SC
17479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480 (exit $ac_status); } &&
5294a27e 17481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17483 (eval $ac_try) 2>&5
17484 ac_status=$?
17485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486 (exit $ac_status); }; } &&
17487 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17489 (eval $ac_try) 2>&5
17490 ac_status=$?
17491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492 (exit $ac_status); }; }; then
17493 ac_hi=$ac_mid; break
17494else
17495 echo "$as_me: failed program was:" >&5
17496sed 's/^/| /' conftest.$ac_ext >&5
17497
17498ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17499 if test $ac_lo -le $ac_mid; then
17500 ac_lo= ac_hi=
17501 break
17502 fi
17503 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17504fi
ac1cb8d3 17505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17506 done
17507else
17508 echo "$as_me: failed program was:" >&5
17509sed 's/^/| /' conftest.$ac_ext >&5
17510
17511cat >conftest.$ac_ext <<_ACEOF
17512/* confdefs.h. */
17513_ACEOF
17514cat confdefs.h >>conftest.$ac_ext
17515cat >>conftest.$ac_ext <<_ACEOF
17516/* end confdefs.h. */
17517$ac_includes_default
17518int
17519main ()
17520{
17521static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17522test_array [0] = 0
17523
17524 ;
17525 return 0;
17526}
17527_ACEOF
17528rm -f conftest.$ac_objext
17529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17530 (eval $ac_compile) 2>conftest.er1
a848cd7e 17531 ac_status=$?
ac1cb8d3
VS
17532 grep -v '^ *+' conftest.er1 >conftest.err
17533 rm -f conftest.er1
17534 cat conftest.err >&5
a848cd7e
SC
17535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17536 (exit $ac_status); } &&
5294a27e 17537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17539 (eval $ac_try) 2>&5
17540 ac_status=$?
17541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17542 (exit $ac_status); }; } &&
17543 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17545 (eval $ac_try) 2>&5
17546 ac_status=$?
17547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548 (exit $ac_status); }; }; then
17549 ac_hi=-1 ac_mid=-1
17550 while :; do
17551 cat >conftest.$ac_ext <<_ACEOF
17552/* confdefs.h. */
17553_ACEOF
17554cat confdefs.h >>conftest.$ac_ext
17555cat >>conftest.$ac_ext <<_ACEOF
17556/* end confdefs.h. */
17557$ac_includes_default
17558int
17559main ()
17560{
17561static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17562test_array [0] = 0
17563
17564 ;
17565 return 0;
17566}
17567_ACEOF
17568rm -f conftest.$ac_objext
17569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17570 (eval $ac_compile) 2>conftest.er1
a848cd7e 17571 ac_status=$?
ac1cb8d3
VS
17572 grep -v '^ *+' conftest.er1 >conftest.err
17573 rm -f conftest.er1
17574 cat conftest.err >&5
a848cd7e
SC
17575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576 (exit $ac_status); } &&
5294a27e 17577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17579 (eval $ac_try) 2>&5
17580 ac_status=$?
17581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582 (exit $ac_status); }; } &&
17583 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17585 (eval $ac_try) 2>&5
17586 ac_status=$?
17587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588 (exit $ac_status); }; }; then
17589 ac_lo=$ac_mid; break
17590else
17591 echo "$as_me: failed program was:" >&5
17592sed 's/^/| /' conftest.$ac_ext >&5
17593
17594ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17595 if test $ac_mid -le $ac_hi; then
17596 ac_lo= ac_hi=
17597 break
17598 fi
17599 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17600fi
ac1cb8d3 17601rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17602 done
17603else
17604 echo "$as_me: failed program was:" >&5
17605sed 's/^/| /' conftest.$ac_ext >&5
17606
17607ac_lo= ac_hi=
17608fi
ac1cb8d3 17609rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17610fi
ac1cb8d3 17611rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17612# Binary search between lo and hi bounds.
17613while test "x$ac_lo" != "x$ac_hi"; do
17614 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17615 cat >conftest.$ac_ext <<_ACEOF
17616/* confdefs.h. */
17617_ACEOF
17618cat confdefs.h >>conftest.$ac_ext
17619cat >>conftest.$ac_ext <<_ACEOF
17620/* end confdefs.h. */
17621$ac_includes_default
17622int
17623main ()
17624{
17625static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17626test_array [0] = 0
17627
17628 ;
17629 return 0;
17630}
17631_ACEOF
17632rm -f conftest.$ac_objext
17633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17634 (eval $ac_compile) 2>conftest.er1
a848cd7e 17635 ac_status=$?
ac1cb8d3
VS
17636 grep -v '^ *+' conftest.er1 >conftest.err
17637 rm -f conftest.er1
17638 cat conftest.err >&5
a848cd7e
SC
17639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17640 (exit $ac_status); } &&
5294a27e 17641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17643 (eval $ac_try) 2>&5
17644 ac_status=$?
17645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646 (exit $ac_status); }; } &&
17647 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17649 (eval $ac_try) 2>&5
17650 ac_status=$?
17651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652 (exit $ac_status); }; }; then
17653 ac_hi=$ac_mid
17654else
17655 echo "$as_me: failed program was:" >&5
17656sed 's/^/| /' conftest.$ac_ext >&5
17657
17658ac_lo=`expr '(' $ac_mid ')' + 1`
17659fi
ac1cb8d3 17660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17661done
17662case $ac_lo in
17663?*) ac_cv_sizeof_long_long=$ac_lo;;
17664'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17665See \`config.log' for more details." >&5
17666echo "$as_me: error: cannot compute sizeof (long long), 77
17667See \`config.log' for more details." >&2;}
17668 { (exit 1); exit 1; }; } ;;
17669esac
17670else
17671 if test "$cross_compiling" = yes; then
5294a27e
VZ
17672 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17673echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17674 { (exit 1); exit 1; }; }
17675else
17676 cat >conftest.$ac_ext <<_ACEOF
17677/* confdefs.h. */
17678_ACEOF
17679cat confdefs.h >>conftest.$ac_ext
17680cat >>conftest.$ac_ext <<_ACEOF
17681/* end confdefs.h. */
17682$ac_includes_default
17683long longval () { return (long) (sizeof (long long)); }
17684unsigned long ulongval () { return (long) (sizeof (long long)); }
17685#include <stdio.h>
17686#include <stdlib.h>
17687int
17688main ()
17689{
17690
17691 FILE *f = fopen ("conftest.val", "w");
17692 if (! f)
17693 exit (1);
17694 if (((long) (sizeof (long long))) < 0)
17695 {
17696 long i = longval ();
17697 if (i != ((long) (sizeof (long long))))
17698 exit (1);
17699 fprintf (f, "%ld\n", i);
17700 }
17701 else
17702 {
17703 unsigned long i = ulongval ();
17704 if (i != ((long) (sizeof (long long))))
17705 exit (1);
17706 fprintf (f, "%lu\n", i);
17707 }
17708 exit (ferror (f) || fclose (f) != 0);
17709
17710 ;
17711 return 0;
17712}
17713_ACEOF
17714rm -f conftest$ac_exeext
17715if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17716 (eval $ac_link) 2>&5
17717 ac_status=$?
17718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17721 (eval $ac_try) 2>&5
17722 ac_status=$?
17723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724 (exit $ac_status); }; }; then
17725 ac_cv_sizeof_long_long=`cat conftest.val`
17726else
17727 echo "$as_me: program exited with status $ac_status" >&5
17728echo "$as_me: failed program was:" >&5
17729sed 's/^/| /' conftest.$ac_ext >&5
17730
17731( exit $ac_status )
17732{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17733See \`config.log' for more details." >&5
17734echo "$as_me: error: cannot compute sizeof (long long), 77
17735See \`config.log' for more details." >&2;}
17736 { (exit 1); exit 1; }; }
17737fi
ac1cb8d3 17738rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17739fi
17740fi
17741rm -f conftest.val
17742else
17743 ac_cv_sizeof_long_long=0
17744fi
17745fi
17746echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17747echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17748cat >>confdefs.h <<_ACEOF
17749#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17750_ACEOF
17751
17752
17753 if test "$ac_cv_sizeof_long_long" != "0"; then
17754 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
17755 fi
17756 ;;
17757 * )
17758 echo "$as_me:$LINENO: checking for long long" >&5
17759echo $ECHO_N "checking for long long... $ECHO_C" >&6
17760if test "${ac_cv_type_long_long+set}" = set; then
17761 echo $ECHO_N "(cached) $ECHO_C" >&6
17762else
17763 cat >conftest.$ac_ext <<_ACEOF
17764/* confdefs.h. */
17765_ACEOF
17766cat confdefs.h >>conftest.$ac_ext
17767cat >>conftest.$ac_ext <<_ACEOF
17768/* end confdefs.h. */
17769$ac_includes_default
17770int
17771main ()
17772{
17773if ((long long *) 0)
17774 return 0;
17775if (sizeof (long long))
17776 return 0;
17777 ;
17778 return 0;
17779}
17780_ACEOF
17781rm -f conftest.$ac_objext
17782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17783 (eval $ac_compile) 2>conftest.er1
a848cd7e 17784 ac_status=$?
ac1cb8d3
VS
17785 grep -v '^ *+' conftest.er1 >conftest.err
17786 rm -f conftest.er1
17787 cat conftest.err >&5
a848cd7e
SC
17788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17789 (exit $ac_status); } &&
5294a27e 17790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17792 (eval $ac_try) 2>&5
17793 ac_status=$?
17794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17795 (exit $ac_status); }; } &&
17796 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17798 (eval $ac_try) 2>&5
17799 ac_status=$?
17800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17801 (exit $ac_status); }; }; then
17802 ac_cv_type_long_long=yes
17803else
17804 echo "$as_me: failed program was:" >&5
17805sed 's/^/| /' conftest.$ac_ext >&5
17806
17807ac_cv_type_long_long=no
17808fi
ac1cb8d3 17809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17810fi
17811echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17812echo "${ECHO_T}$ac_cv_type_long_long" >&6
17813
17814echo "$as_me:$LINENO: checking size of long long" >&5
17815echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17816if test "${ac_cv_sizeof_long_long+set}" = set; then
17817 echo $ECHO_N "(cached) $ECHO_C" >&6
17818else
17819 if test "$ac_cv_type_long_long" = yes; then
17820 # The cast to unsigned long works around a bug in the HP C Compiler
17821 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17822 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17823 # This bug is HP SR number 8606223364.
17824 if test "$cross_compiling" = yes; then
17825 # Depending upon the size, compute the lo and hi bounds.
17826cat >conftest.$ac_ext <<_ACEOF
17827/* confdefs.h. */
17828_ACEOF
17829cat confdefs.h >>conftest.$ac_ext
17830cat >>conftest.$ac_ext <<_ACEOF
17831/* end confdefs.h. */
17832$ac_includes_default
17833int
17834main ()
17835{
17836static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17837test_array [0] = 0
17838
17839 ;
17840 return 0;
17841}
17842_ACEOF
17843rm -f conftest.$ac_objext
17844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17845 (eval $ac_compile) 2>conftest.er1
a848cd7e 17846 ac_status=$?
ac1cb8d3
VS
17847 grep -v '^ *+' conftest.er1 >conftest.err
17848 rm -f conftest.er1
17849 cat conftest.err >&5
a848cd7e
SC
17850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17851 (exit $ac_status); } &&
5294a27e 17852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17854 (eval $ac_try) 2>&5
17855 ac_status=$?
17856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17857 (exit $ac_status); }; } &&
17858 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17860 (eval $ac_try) 2>&5
17861 ac_status=$?
17862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17863 (exit $ac_status); }; }; then
17864 ac_lo=0 ac_mid=0
17865 while :; do
17866 cat >conftest.$ac_ext <<_ACEOF
17867/* confdefs.h. */
17868_ACEOF
17869cat confdefs.h >>conftest.$ac_ext
17870cat >>conftest.$ac_ext <<_ACEOF
17871/* end confdefs.h. */
17872$ac_includes_default
17873int
17874main ()
17875{
17876static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17877test_array [0] = 0
17878
17879 ;
17880 return 0;
17881}
17882_ACEOF
17883rm -f conftest.$ac_objext
17884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17885 (eval $ac_compile) 2>conftest.er1
a848cd7e 17886 ac_status=$?
ac1cb8d3
VS
17887 grep -v '^ *+' conftest.er1 >conftest.err
17888 rm -f conftest.er1
17889 cat conftest.err >&5
a848cd7e
SC
17890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); } &&
5294a27e 17892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17894 (eval $ac_try) 2>&5
17895 ac_status=$?
17896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897 (exit $ac_status); }; } &&
17898 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17900 (eval $ac_try) 2>&5
17901 ac_status=$?
17902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17903 (exit $ac_status); }; }; then
17904 ac_hi=$ac_mid; break
17905else
17906 echo "$as_me: failed program was:" >&5
17907sed 's/^/| /' conftest.$ac_ext >&5
17908
17909ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17910 if test $ac_lo -le $ac_mid; then
17911 ac_lo= ac_hi=
17912 break
17913 fi
17914 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17915fi
ac1cb8d3 17916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17917 done
17918else
17919 echo "$as_me: failed program was:" >&5
17920sed 's/^/| /' conftest.$ac_ext >&5
17921
17922cat >conftest.$ac_ext <<_ACEOF
17923/* confdefs.h. */
17924_ACEOF
17925cat confdefs.h >>conftest.$ac_ext
17926cat >>conftest.$ac_ext <<_ACEOF
17927/* end confdefs.h. */
17928$ac_includes_default
17929int
17930main ()
17931{
17932static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17933test_array [0] = 0
17934
17935 ;
17936 return 0;
17937}
17938_ACEOF
17939rm -f conftest.$ac_objext
17940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17941 (eval $ac_compile) 2>conftest.er1
a848cd7e 17942 ac_status=$?
ac1cb8d3
VS
17943 grep -v '^ *+' conftest.er1 >conftest.err
17944 rm -f conftest.er1
17945 cat conftest.err >&5
a848cd7e
SC
17946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947 (exit $ac_status); } &&
5294a27e 17948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17950 (eval $ac_try) 2>&5
17951 ac_status=$?
17952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953 (exit $ac_status); }; } &&
17954 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17956 (eval $ac_try) 2>&5
17957 ac_status=$?
17958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959 (exit $ac_status); }; }; then
17960 ac_hi=-1 ac_mid=-1
17961 while :; do
17962 cat >conftest.$ac_ext <<_ACEOF
17963/* confdefs.h. */
17964_ACEOF
17965cat confdefs.h >>conftest.$ac_ext
17966cat >>conftest.$ac_ext <<_ACEOF
17967/* end confdefs.h. */
17968$ac_includes_default
17969int
17970main ()
17971{
17972static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17973test_array [0] = 0
17974
17975 ;
17976 return 0;
17977}
17978_ACEOF
17979rm -f conftest.$ac_objext
17980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17981 (eval $ac_compile) 2>conftest.er1
a848cd7e 17982 ac_status=$?
ac1cb8d3
VS
17983 grep -v '^ *+' conftest.er1 >conftest.err
17984 rm -f conftest.er1
17985 cat conftest.err >&5
a848cd7e
SC
17986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17987 (exit $ac_status); } &&
5294a27e 17988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17990 (eval $ac_try) 2>&5
17991 ac_status=$?
17992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993 (exit $ac_status); }; } &&
17994 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17996 (eval $ac_try) 2>&5
17997 ac_status=$?
17998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999 (exit $ac_status); }; }; then
18000 ac_lo=$ac_mid; break
18001else
18002 echo "$as_me: failed program was:" >&5
18003sed 's/^/| /' conftest.$ac_ext >&5
18004
18005ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18006 if test $ac_mid -le $ac_hi; then
18007 ac_lo= ac_hi=
18008 break
18009 fi
18010 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18011fi
ac1cb8d3 18012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18013 done
18014else
18015 echo "$as_me: failed program was:" >&5
18016sed 's/^/| /' conftest.$ac_ext >&5
18017
18018ac_lo= ac_hi=
18019fi
ac1cb8d3 18020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18021fi
ac1cb8d3 18022rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18023# Binary search between lo and hi bounds.
18024while test "x$ac_lo" != "x$ac_hi"; do
18025 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18026 cat >conftest.$ac_ext <<_ACEOF
18027/* confdefs.h. */
18028_ACEOF
18029cat confdefs.h >>conftest.$ac_ext
18030cat >>conftest.$ac_ext <<_ACEOF
18031/* end confdefs.h. */
18032$ac_includes_default
18033int
18034main ()
18035{
18036static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18037test_array [0] = 0
18038
18039 ;
18040 return 0;
18041}
18042_ACEOF
18043rm -f conftest.$ac_objext
18044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18045 (eval $ac_compile) 2>conftest.er1
a848cd7e 18046 ac_status=$?
ac1cb8d3
VS
18047 grep -v '^ *+' conftest.er1 >conftest.err
18048 rm -f conftest.er1
18049 cat conftest.err >&5
a848cd7e
SC
18050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18051 (exit $ac_status); } &&
5294a27e 18052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18054 (eval $ac_try) 2>&5
18055 ac_status=$?
18056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18057 (exit $ac_status); }; } &&
18058 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18060 (eval $ac_try) 2>&5
18061 ac_status=$?
18062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18063 (exit $ac_status); }; }; then
18064 ac_hi=$ac_mid
18065else
18066 echo "$as_me: failed program was:" >&5
18067sed 's/^/| /' conftest.$ac_ext >&5
18068
18069ac_lo=`expr '(' $ac_mid ')' + 1`
18070fi
ac1cb8d3 18071rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18072done
18073case $ac_lo in
18074?*) ac_cv_sizeof_long_long=$ac_lo;;
18075'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18076See \`config.log' for more details." >&5
18077echo "$as_me: error: cannot compute sizeof (long long), 77
18078See \`config.log' for more details." >&2;}
18079 { (exit 1); exit 1; }; } ;;
18080esac
18081else
18082 if test "$cross_compiling" = yes; then
5294a27e
VZ
18083 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18084echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18085 { (exit 1); exit 1; }; }
18086else
18087 cat >conftest.$ac_ext <<_ACEOF
18088/* confdefs.h. */
18089_ACEOF
18090cat confdefs.h >>conftest.$ac_ext
18091cat >>conftest.$ac_ext <<_ACEOF
18092/* end confdefs.h. */
18093$ac_includes_default
18094long longval () { return (long) (sizeof (long long)); }
18095unsigned long ulongval () { return (long) (sizeof (long long)); }
18096#include <stdio.h>
18097#include <stdlib.h>
18098int
18099main ()
18100{
18101
18102 FILE *f = fopen ("conftest.val", "w");
18103 if (! f)
18104 exit (1);
18105 if (((long) (sizeof (long long))) < 0)
18106 {
18107 long i = longval ();
18108 if (i != ((long) (sizeof (long long))))
18109 exit (1);
18110 fprintf (f, "%ld\n", i);
18111 }
18112 else
18113 {
18114 unsigned long i = ulongval ();
18115 if (i != ((long) (sizeof (long long))))
18116 exit (1);
18117 fprintf (f, "%lu\n", i);
18118 }
18119 exit (ferror (f) || fclose (f) != 0);
18120
18121 ;
18122 return 0;
18123}
18124_ACEOF
18125rm -f conftest$ac_exeext
18126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18127 (eval $ac_link) 2>&5
18128 ac_status=$?
18129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18132 (eval $ac_try) 2>&5
18133 ac_status=$?
18134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18135 (exit $ac_status); }; }; then
18136 ac_cv_sizeof_long_long=`cat conftest.val`
18137else
18138 echo "$as_me: program exited with status $ac_status" >&5
18139echo "$as_me: failed program was:" >&5
18140sed 's/^/| /' conftest.$ac_ext >&5
18141
18142( exit $ac_status )
18143{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18144See \`config.log' for more details." >&5
18145echo "$as_me: error: cannot compute sizeof (long long), 77
18146See \`config.log' for more details." >&2;}
18147 { (exit 1); exit 1; }; }
18148fi
ac1cb8d3 18149rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18150fi
18151fi
18152rm -f conftest.val
18153else
18154 ac_cv_sizeof_long_long=0
18155fi
18156fi
18157echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18158echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18159cat >>confdefs.h <<_ACEOF
18160#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18161_ACEOF
18162
18163
18164esac
18165
18166echo "$as_me:$LINENO: checking size of wchar_t" >&5
18167echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
18168if test "${wx_cv_sizeof_wchar_t+set}" = set; then
18169 echo $ECHO_N "(cached) $ECHO_C" >&6
18170else
18171
18172 if test "$cross_compiling" = yes; then
18173
18174 case "${host}" in
18175 *-pc-msdosdjgpp )
18176 wx_cv_sizeof_wchar_t=0
18177 ;;
18178 * )
18179 wx_cv_sizeof_wchar_t=4
18180 ;;
18181 esac
18182
18183
18184else
18185 cat >conftest.$ac_ext <<_ACEOF
18186/* confdefs.h. */
18187_ACEOF
18188cat confdefs.h >>conftest.$ac_ext
18189cat >>conftest.$ac_ext <<_ACEOF
18190/* end confdefs.h. */
18191
18192 /* DJGPP only has fake wchar_t: */
18193 #ifdef __DJGPP__
18194 # error "fake wchar_t"
18195 #endif
18196 #ifdef HAVE_WCHAR_H
18197 # ifdef __CYGWIN__
18198 # include <stddef.h>
18199 # endif
18200 # include <wchar.h>
18201 #endif
18202 #ifdef HAVE_STDLIB_H
18203 # include <stdlib.h>
18204 #endif
18205 #include <stdio.h>
18206 int main()
18207 {
18208 FILE *f=fopen("conftestval", "w");
18209 if (!f) exit(1);
18210 fprintf(f, "%i", sizeof(wchar_t));
18211 exit(0);
18212 }
18213
18214_ACEOF
18215rm -f conftest$ac_exeext
18216if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18217 (eval $ac_link) 2>&5
18218 ac_status=$?
18219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18222 (eval $ac_try) 2>&5
18223 ac_status=$?
18224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18225 (exit $ac_status); }; }; then
18226 wx_cv_sizeof_wchar_t=`cat conftestval`
18227else
18228 echo "$as_me: program exited with status $ac_status" >&5
18229echo "$as_me: failed program was:" >&5
18230sed 's/^/| /' conftest.$ac_ext >&5
18231
18232( exit $ac_status )
18233wx_cv_sizeof_wchar_t=0
18234fi
ac1cb8d3 18235rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18236fi
18237
18238fi
18239echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
18240echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
18241
18242cat >>confdefs.h <<_ACEOF
18243#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
18244_ACEOF
18245
18246
ba3d13e1
VZ
18247echo "$as_me:$LINENO: checking for va_copy" >&5
18248echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
18249if test "${wx_cv_func_va_copy+set}" = set; then
18250 echo $ECHO_N "(cached) $ECHO_C" >&6
18251else
18252
18253 cat >conftest.$ac_ext <<_ACEOF
18254
18255 #include <stdarg.h>
18256 void foo(char *f, ...)
18257 {
18258 va_list ap1, ap2;
18259 va_start(ap1, f);
18260 va_copy(ap2, ap1);
18261 va_end(ap2);
18262 va_end(ap1);
18263 }
5886b072
VZ
18264 int main()
18265 {
b902e639
VZ
18266 foo("hi", 17);
18267 return 0;
5886b072 18268 }
ba3d13e1
VZ
18269_ACEOF
18270rm -f conftest.$ac_objext conftest$ac_exeext
18271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18272 (eval $ac_link) 2>conftest.er1
18273 ac_status=$?
18274 grep -v '^ *+' conftest.er1 >conftest.err
18275 rm -f conftest.er1
18276 cat conftest.err >&5
18277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278 (exit $ac_status); } &&
5294a27e 18279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
18280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18281 (eval $ac_try) 2>&5
18282 ac_status=$?
18283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18284 (exit $ac_status); }; } &&
18285 { ac_try='test -s conftest$ac_exeext'
18286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18287 (eval $ac_try) 2>&5
18288 ac_status=$?
18289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290 (exit $ac_status); }; }; then
18291 wx_cv_func_va_copy=yes
18292else
18293 echo "$as_me: failed program was:" >&5
18294sed 's/^/| /' conftest.$ac_ext >&5
18295
18296wx_cv_func_va_copy=no
18297
18298fi
18299rm -f conftest.err conftest.$ac_objext \
18300 conftest$ac_exeext conftest.$ac_ext
18301
18302
18303fi
18304echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
18305echo "${ECHO_T}$wx_cv_func_va_copy" >&6
18306
18307if test $wx_cv_func_va_copy = "yes"; then
18308 cat >>confdefs.h <<\_ACEOF
18309#define HAVE_VA_COPY 1
18310_ACEOF
18311
18312else
18313 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
18314echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
18315if test "${wx_cv_type_va_list_lvalue+set}" = set; then
18316 echo $ECHO_N "(cached) $ECHO_C" >&6
18317else
18318
18319 if test "$cross_compiling" = yes; then
18320 wx_cv_type_va_list_lvalue=yes
18321
18322else
18323 cat >conftest.$ac_ext <<_ACEOF
18324
18325 #include <stdarg.h>
18326 int foo(char *f, ...)
18327 {
18328 va_list ap1, ap2;
18329 va_start(ap1, f);
18330 ap2 = ap1;
18331 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
18332 return 1;
18333 va_end(ap2);
18334 va_end(ap1);
18335 return 0;
18336 }
18337 int main()
18338 {
18339 return foo("hi", 17);
18340 }
18341_ACEOF
18342rm -f conftest$ac_exeext
18343if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18344 (eval $ac_link) 2>&5
18345 ac_status=$?
18346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18347 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18349 (eval $ac_try) 2>&5
18350 ac_status=$?
18351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352 (exit $ac_status); }; }; then
18353 wx_cv_type_va_list_lvalue=yes
18354else
18355 echo "$as_me: program exited with status $ac_status" >&5
18356echo "$as_me: failed program was:" >&5
18357sed 's/^/| /' conftest.$ac_ext >&5
18358
18359( exit $ac_status )
18360wx_cv_type_va_list_lvalue=no
18361fi
18362rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18363fi
18364
18365
18366fi
18367echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
18368echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
18369
18370 if test $wx_cv_type_va_list_lvalue != "yes"; then
18371 cat >>confdefs.h <<\_ACEOF
18372#define VA_LIST_IS_ARRAY 1
18373_ACEOF
18374
18375 fi
18376fi
18377
a848cd7e
SC
18378# Check whether --enable-largefile or --disable-largefile was given.
18379if test "${enable_largefile+set}" = set; then
18380 enableval="$enable_largefile"
18381
18382fi;
18383if test "$enable_largefile" != no; then
18384 wx_largefile=no
18385
18386 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18387echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
18388if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18389 echo $ECHO_N "(cached) $ECHO_C" >&6
18390else
18391
18392 cat >conftest.$ac_ext <<_ACEOF
18393/* confdefs.h. */
18394_ACEOF
18395cat confdefs.h >>conftest.$ac_ext
18396cat >>conftest.$ac_ext <<_ACEOF
18397/* end confdefs.h. */
18398#define _FILE_OFFSET_BITS 64
18399 #include <sys/types.h>
18400int
18401main ()
18402{
18403typedef struct {
18404 unsigned int field: sizeof(off_t) == 8;
18405} wxlf;
18406
18407 ;
18408 return 0;
18409}
18410_ACEOF
18411rm -f conftest.$ac_objext
18412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18413 (eval $ac_compile) 2>conftest.er1
a848cd7e 18414 ac_status=$?
ac1cb8d3
VS
18415 grep -v '^ *+' conftest.er1 >conftest.err
18416 rm -f conftest.er1
18417 cat conftest.err >&5
a848cd7e
SC
18418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18419 (exit $ac_status); } &&
5294a27e 18420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18422 (eval $ac_try) 2>&5
18423 ac_status=$?
18424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18425 (exit $ac_status); }; } &&
18426 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18428 (eval $ac_try) 2>&5
18429 ac_status=$?
18430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431 (exit $ac_status); }; }; then
18432 ac_cv_sys_file_offset_bits=64
18433else
18434 echo "$as_me: failed program was:" >&5
18435sed 's/^/| /' conftest.$ac_ext >&5
18436
18437ac_cv_sys_file_offset_bits=no
18438fi
ac1cb8d3 18439rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18440
18441
18442fi
18443echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18444echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
18445
18446 if test "$ac_cv_sys_file_offset_bits" != no; then
18447 wx_largefile=yes
18448 cat >>confdefs.h <<_ACEOF
18449#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18450_ACEOF
18451
18452 fi
18453
18454 if test "x$wx_largefile" != "xyes"; then
18455
18456 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18457echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
18458if test "${ac_cv_sys_large_files+set}" = set; then
18459 echo $ECHO_N "(cached) $ECHO_C" >&6
18460else
18461
18462 cat >conftest.$ac_ext <<_ACEOF
18463/* confdefs.h. */
18464_ACEOF
18465cat confdefs.h >>conftest.$ac_ext
18466cat >>conftest.$ac_ext <<_ACEOF
18467/* end confdefs.h. */
18468#define _LARGE_FILES 1
18469 #include <sys/types.h>
18470int
18471main ()
18472{
18473typedef struct {
18474 unsigned int field: sizeof(off_t) == 8;
18475} wxlf;
18476
18477 ;
18478 return 0;
18479}
18480_ACEOF
18481rm -f conftest.$ac_objext
18482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18483 (eval $ac_compile) 2>conftest.er1
a848cd7e 18484 ac_status=$?
ac1cb8d3
VS
18485 grep -v '^ *+' conftest.er1 >conftest.err
18486 rm -f conftest.er1
18487 cat conftest.err >&5
a848cd7e
SC
18488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18489 (exit $ac_status); } &&
5294a27e 18490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18492 (eval $ac_try) 2>&5
18493 ac_status=$?
18494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18495 (exit $ac_status); }; } &&
18496 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18498 (eval $ac_try) 2>&5
18499 ac_status=$?
18500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18501 (exit $ac_status); }; }; then
18502 ac_cv_sys_large_files=1
18503else
18504 echo "$as_me: failed program was:" >&5
18505sed 's/^/| /' conftest.$ac_ext >&5
18506
18507ac_cv_sys_large_files=no
18508fi
ac1cb8d3 18509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18510
18511
18512fi
18513echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18514echo "${ECHO_T}$ac_cv_sys_large_files" >&6
18515
18516 if test "$ac_cv_sys_large_files" != no; then
18517 wx_largefile=yes
18518 cat >>confdefs.h <<_ACEOF
18519#define _LARGE_FILES $ac_cv_sys_large_files
18520_ACEOF
18521
18522 fi
18523
18524 fi
18525
18526 echo "$as_me:$LINENO: checking if large file support is available" >&5
18527echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
18528 if test "x$wx_largefile" = "xyes"; then
18529 cat >>confdefs.h <<\_ACEOF
18530#define HAVE_LARGEFILE_SUPPORT 1
18531_ACEOF
18532
18533 fi
18534 echo "$as_me:$LINENO: result: $wx_largefile" >&5
18535echo "${ECHO_T}$wx_largefile" >&6
18536fi
18537
5b674b9d
DE
18538
18539if test "x$wx_largefile" = "xyes"; then
18540 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
18541 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
18542 else
18543 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
18544 fi
18545 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
18546echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
18547if test "${ac_cv_sys_largefile_source+set}" = set; then
18548 echo $ECHO_N "(cached) $ECHO_C" >&6
18549else
18550 while :; do
18551 ac_cv_sys_largefile_source=no
18552 cat >conftest.$ac_ext <<_ACEOF
18553/* confdefs.h. */
18554_ACEOF
18555cat confdefs.h >>conftest.$ac_ext
18556cat >>conftest.$ac_ext <<_ACEOF
18557/* end confdefs.h. */
18558#include <stdio.h>
18559int
18560main ()
18561{
18562return !fseeko;
18563 ;
18564 return 0;
18565}
18566_ACEOF
18567rm -f conftest.$ac_objext
18568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18569 (eval $ac_compile) 2>conftest.er1
18570 ac_status=$?
18571 grep -v '^ *+' conftest.er1 >conftest.err
18572 rm -f conftest.er1
18573 cat conftest.err >&5
18574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18575 (exit $ac_status); } &&
18576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18578 (eval $ac_try) 2>&5
18579 ac_status=$?
18580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18581 (exit $ac_status); }; } &&
18582 { ac_try='test -s conftest.$ac_objext'
18583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18584 (eval $ac_try) 2>&5
18585 ac_status=$?
18586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18587 (exit $ac_status); }; }; then
18588 break
18589else
18590 echo "$as_me: failed program was:" >&5
18591sed 's/^/| /' conftest.$ac_ext >&5
18592
18593fi
18594rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18595 cat >conftest.$ac_ext <<_ACEOF
18596/* confdefs.h. */
18597_ACEOF
18598cat confdefs.h >>conftest.$ac_ext
18599cat >>conftest.$ac_ext <<_ACEOF
18600/* end confdefs.h. */
18601#define _LARGEFILE_SOURCE 1
18602#include <stdio.h>
18603int
18604main ()
18605{
18606return !fseeko;
18607 ;
18608 return 0;
18609}
18610_ACEOF
18611rm -f conftest.$ac_objext
18612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18613 (eval $ac_compile) 2>conftest.er1
18614 ac_status=$?
18615 grep -v '^ *+' conftest.er1 >conftest.err
18616 rm -f conftest.er1
18617 cat conftest.err >&5
18618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18619 (exit $ac_status); } &&
18620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18622 (eval $ac_try) 2>&5
18623 ac_status=$?
18624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18625 (exit $ac_status); }; } &&
18626 { ac_try='test -s conftest.$ac_objext'
18627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18628 (eval $ac_try) 2>&5
18629 ac_status=$?
18630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18631 (exit $ac_status); }; }; then
18632 ac_cv_sys_largefile_source=1; break
18633else
18634 echo "$as_me: failed program was:" >&5
18635sed 's/^/| /' conftest.$ac_ext >&5
18636
18637fi
18638rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18639 break
18640done
18641fi
18642echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18643echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
18644if test "$ac_cv_sys_largefile_source" != no; then
18645
18646cat >>confdefs.h <<_ACEOF
18647#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18648_ACEOF
18649
18650fi
18651rm -f conftest*
18652
18653# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18654# in glibc 2.1.3, but that breaks too many other things.
18655# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18656echo "$as_me:$LINENO: checking for fseeko" >&5
18657echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
18658if test "${ac_cv_func_fseeko+set}" = set; then
18659 echo $ECHO_N "(cached) $ECHO_C" >&6
18660else
18661 cat >conftest.$ac_ext <<_ACEOF
18662/* confdefs.h. */
18663_ACEOF
18664cat confdefs.h >>conftest.$ac_ext
18665cat >>conftest.$ac_ext <<_ACEOF
18666/* end confdefs.h. */
18667#include <stdio.h>
18668int
18669main ()
18670{
18671return fseeko && fseeko (stdin, 0, 0);
18672 ;
18673 return 0;
18674}
18675_ACEOF
18676rm -f conftest.$ac_objext conftest$ac_exeext
18677if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18678 (eval $ac_link) 2>conftest.er1
18679 ac_status=$?
18680 grep -v '^ *+' conftest.er1 >conftest.err
18681 rm -f conftest.er1
18682 cat conftest.err >&5
18683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684 (exit $ac_status); } &&
18685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18687 (eval $ac_try) 2>&5
18688 ac_status=$?
18689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18690 (exit $ac_status); }; } &&
18691 { ac_try='test -s conftest$ac_exeext'
18692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18693 (eval $ac_try) 2>&5
18694 ac_status=$?
18695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696 (exit $ac_status); }; }; then
18697 ac_cv_func_fseeko=yes
18698else
18699 echo "$as_me: failed program was:" >&5
18700sed 's/^/| /' conftest.$ac_ext >&5
18701
18702ac_cv_func_fseeko=no
18703fi
18704rm -f conftest.err conftest.$ac_objext \
18705 conftest$ac_exeext conftest.$ac_ext
18706fi
18707echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
18708echo "${ECHO_T}$ac_cv_func_fseeko" >&6
18709if test $ac_cv_func_fseeko = yes; then
18710
18711cat >>confdefs.h <<\_ACEOF
18712#define HAVE_FSEEKO 1
18713_ACEOF
18714
18715fi
18716
5b674b9d
DE
18717 if test "$ac_cv_sys_largefile_source" != no; then
18718 WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e
SC
18719 fi
18720 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
18721fi
18722
18723echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
18724echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
18725if test "${ac_cv_c_bigendian+set}" = set; then
18726 echo $ECHO_N "(cached) $ECHO_C" >&6
18727else
18728 ac_cv_c_bigendian=unknown
18729# See if sys/param.h defines the BYTE_ORDER macro.
18730cat >conftest.$ac_ext <<_ACEOF
18731/* confdefs.h. */
18732_ACEOF
18733cat confdefs.h >>conftest.$ac_ext
18734cat >>conftest.$ac_ext <<_ACEOF
18735/* end confdefs.h. */
18736#include <sys/types.h>
18737#include <sys/param.h>
18738int
18739main ()
18740{
18741
18742#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
18743 bogus endian macros
18744#endif
18745 ;
18746 return 0;
18747}
18748_ACEOF
18749rm -f conftest.$ac_objext
18750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18751 (eval $ac_compile) 2>conftest.er1
a848cd7e 18752 ac_status=$?
ac1cb8d3
VS
18753 grep -v '^ *+' conftest.er1 >conftest.err
18754 rm -f conftest.er1
18755 cat conftest.err >&5
a848cd7e
SC
18756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18757 (exit $ac_status); } &&
5294a27e 18758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18760 (eval $ac_try) 2>&5
18761 ac_status=$?
18762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18763 (exit $ac_status); }; } &&
18764 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18766 (eval $ac_try) 2>&5
18767 ac_status=$?
18768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769 (exit $ac_status); }; }; then
18770 # It does; now see whether it defined to BIG_ENDIAN or not.
18771cat >conftest.$ac_ext <<_ACEOF
18772/* confdefs.h. */
18773_ACEOF
18774cat confdefs.h >>conftest.$ac_ext
18775cat >>conftest.$ac_ext <<_ACEOF
18776/* end confdefs.h. */
18777#include <sys/types.h>
18778#include <sys/param.h>
18779int
18780main ()
18781{
18782
18783#if BYTE_ORDER != BIG_ENDIAN
18784 not big endian
18785#endif
18786 ;
18787 return 0;
18788}
18789_ACEOF
18790rm -f conftest.$ac_objext
18791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18792 (eval $ac_compile) 2>conftest.er1
a848cd7e 18793 ac_status=$?
ac1cb8d3
VS
18794 grep -v '^ *+' conftest.er1 >conftest.err
18795 rm -f conftest.er1
18796 cat conftest.err >&5
a848cd7e
SC
18797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798 (exit $ac_status); } &&
5294a27e 18799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18801 (eval $ac_try) 2>&5
18802 ac_status=$?
18803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18804 (exit $ac_status); }; } &&
18805 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18807 (eval $ac_try) 2>&5
18808 ac_status=$?
18809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18810 (exit $ac_status); }; }; then
18811 ac_cv_c_bigendian=yes
18812else
18813 echo "$as_me: failed program was:" >&5
18814sed 's/^/| /' conftest.$ac_ext >&5
18815
18816ac_cv_c_bigendian=no
18817fi
ac1cb8d3 18818rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18819else
18820 echo "$as_me: failed program was:" >&5
18821sed 's/^/| /' conftest.$ac_ext >&5
18822
18823fi
ac1cb8d3 18824rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18825if test $ac_cv_c_bigendian = unknown; then
18826if test "$cross_compiling" = yes; then
18827 ac_cv_c_bigendian=unknown
18828else
18829 cat >conftest.$ac_ext <<_ACEOF
18830/* confdefs.h. */
18831_ACEOF
18832cat confdefs.h >>conftest.$ac_ext
18833cat >>conftest.$ac_ext <<_ACEOF
18834/* end confdefs.h. */
18835main () {
18836 /* Are we little or big endian? From Harbison&Steele. */
18837 union
18838 {
18839 long l;
18840 char c[sizeof (long)];
18841 } u;
18842 u.l = 1;
18843 exit (u.c[sizeof (long) - 1] == 1);
18844}
18845_ACEOF
18846rm -f conftest$ac_exeext
18847if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18848 (eval $ac_link) 2>&5
18849 ac_status=$?
18850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18853 (eval $ac_try) 2>&5
18854 ac_status=$?
18855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18856 (exit $ac_status); }; }; then
18857 ac_cv_c_bigendian=no
18858else
18859 echo "$as_me: program exited with status $ac_status" >&5
18860echo "$as_me: failed program was:" >&5
18861sed 's/^/| /' conftest.$ac_ext >&5
18862
18863( exit $ac_status )
18864ac_cv_c_bigendian=yes
18865fi
ac1cb8d3 18866rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18867fi
18868fi
18869fi
18870echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
18871echo "${ECHO_T}$ac_cv_c_bigendian" >&6
18872if test $ac_cv_c_bigendian = unknown; then
18873 { 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
18874echo "$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;}
18875fi
18876if test $ac_cv_c_bigendian = yes; then
18877 cat >>confdefs.h <<\_ACEOF
18878#define WORDS_BIGENDIAN 1
18879_ACEOF
18880
18881fi
18882
18883
18884ac_ext=cc
18885ac_cpp='$CXXCPP $CPPFLAGS'
18886ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18887ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18888ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18889echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
18890echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
18891if test -z "$CXXCPP"; then
18892 if test "${ac_cv_prog_CXXCPP+set}" = set; then
18893 echo $ECHO_N "(cached) $ECHO_C" >&6
18894else
18895 # Double quotes because CXXCPP needs to be expanded
18896 for CXXCPP in "$CXX -E" "/lib/cpp"
18897 do
18898 ac_preproc_ok=false
18899for ac_cxx_preproc_warn_flag in '' yes
18900do
18901 # Use a header file that comes with gcc, so configuring glibc
18902 # with a fresh cross-compiler works.
18903 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18904 # <limits.h> exists even on freestanding compilers.
18905 # On the NeXT, cc -E runs the code through the compiler's parser,
18906 # not just through cpp. "Syntax error" is here to catch this case.
18907 cat >conftest.$ac_ext <<_ACEOF
18908/* confdefs.h. */
18909_ACEOF
18910cat confdefs.h >>conftest.$ac_ext
18911cat >>conftest.$ac_ext <<_ACEOF
18912/* end confdefs.h. */
18913#ifdef __STDC__
18914# include <limits.h>
18915#else
18916# include <assert.h>
18917#endif
ac1cb8d3 18918 Syntax error
a848cd7e
SC
18919_ACEOF
18920if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18921 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18922 ac_status=$?
18923 grep -v '^ *+' conftest.er1 >conftest.err
18924 rm -f conftest.er1
18925 cat conftest.err >&5
18926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18927 (exit $ac_status); } >/dev/null; then
18928 if test -s conftest.err; then
18929 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18930 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18931 else
18932 ac_cpp_err=
18933 fi
18934else
18935 ac_cpp_err=yes
18936fi
18937if test -z "$ac_cpp_err"; then
18938 :
18939else
18940 echo "$as_me: failed program was:" >&5
18941sed 's/^/| /' conftest.$ac_ext >&5
18942
18943 # Broken: fails on valid input.
18944continue
18945fi
18946rm -f conftest.err conftest.$ac_ext
18947
18948 # OK, works on sane cases. Now check whether non-existent headers
18949 # can be detected and how.
18950 cat >conftest.$ac_ext <<_ACEOF
18951/* confdefs.h. */
18952_ACEOF
18953cat confdefs.h >>conftest.$ac_ext
18954cat >>conftest.$ac_ext <<_ACEOF
18955/* end confdefs.h. */
18956#include <ac_nonexistent.h>
18957_ACEOF
18958if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18959 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18960 ac_status=$?
18961 grep -v '^ *+' conftest.er1 >conftest.err
18962 rm -f conftest.er1
18963 cat conftest.err >&5
18964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965 (exit $ac_status); } >/dev/null; then
18966 if test -s conftest.err; then
18967 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18968 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18969 else
18970 ac_cpp_err=
18971 fi
18972else
18973 ac_cpp_err=yes
18974fi
18975if test -z "$ac_cpp_err"; then
18976 # Broken: success on invalid input.
18977continue
18978else
18979 echo "$as_me: failed program was:" >&5
18980sed 's/^/| /' conftest.$ac_ext >&5
18981
18982 # Passes both tests.
18983ac_preproc_ok=:
18984break
18985fi
18986rm -f conftest.err conftest.$ac_ext
18987
18988done
18989# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18990rm -f conftest.err conftest.$ac_ext
18991if $ac_preproc_ok; then
18992 break
18993fi
18994
18995 done
18996 ac_cv_prog_CXXCPP=$CXXCPP
18997
18998fi
18999 CXXCPP=$ac_cv_prog_CXXCPP
19000else
19001 ac_cv_prog_CXXCPP=$CXXCPP
19002fi
19003echo "$as_me:$LINENO: result: $CXXCPP" >&5
19004echo "${ECHO_T}$CXXCPP" >&6
19005ac_preproc_ok=false
19006for ac_cxx_preproc_warn_flag in '' yes
19007do
19008 # Use a header file that comes with gcc, so configuring glibc
19009 # with a fresh cross-compiler works.
19010 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19011 # <limits.h> exists even on freestanding compilers.
19012 # On the NeXT, cc -E runs the code through the compiler's parser,
19013 # not just through cpp. "Syntax error" is here to catch this case.
19014 cat >conftest.$ac_ext <<_ACEOF
19015/* confdefs.h. */
19016_ACEOF
19017cat confdefs.h >>conftest.$ac_ext
19018cat >>conftest.$ac_ext <<_ACEOF
19019/* end confdefs.h. */
19020#ifdef __STDC__
19021# include <limits.h>
19022#else
19023# include <assert.h>
19024#endif
ac1cb8d3 19025 Syntax error
a848cd7e
SC
19026_ACEOF
19027if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19028 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19029 ac_status=$?
19030 grep -v '^ *+' conftest.er1 >conftest.err
19031 rm -f conftest.er1
19032 cat conftest.err >&5
19033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19034 (exit $ac_status); } >/dev/null; then
19035 if test -s conftest.err; then
19036 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19037 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
19038 else
19039 ac_cpp_err=
19040 fi
19041else
19042 ac_cpp_err=yes
19043fi
19044if test -z "$ac_cpp_err"; then
19045 :
19046else
19047 echo "$as_me: failed program was:" >&5
19048sed 's/^/| /' conftest.$ac_ext >&5
19049
19050 # Broken: fails on valid input.
19051continue
19052fi
19053rm -f conftest.err conftest.$ac_ext
19054
19055 # OK, works on sane cases. Now check whether non-existent headers
19056 # can be detected and how.
19057 cat >conftest.$ac_ext <<_ACEOF
19058/* confdefs.h. */
19059_ACEOF
19060cat confdefs.h >>conftest.$ac_ext
19061cat >>conftest.$ac_ext <<_ACEOF
19062/* end confdefs.h. */
19063#include <ac_nonexistent.h>
19064_ACEOF
19065if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19066 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19067 ac_status=$?
19068 grep -v '^ *+' conftest.er1 >conftest.err
19069 rm -f conftest.er1
19070 cat conftest.err >&5
19071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072 (exit $ac_status); } >/dev/null; then
19073 if test -s conftest.err; then
19074 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19075 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
19076 else
19077 ac_cpp_err=
19078 fi
19079else
19080 ac_cpp_err=yes
19081fi
19082if test -z "$ac_cpp_err"; then
19083 # Broken: success on invalid input.
19084continue
19085else
19086 echo "$as_me: failed program was:" >&5
19087sed 's/^/| /' conftest.$ac_ext >&5
19088
19089 # Passes both tests.
19090ac_preproc_ok=:
19091break
19092fi
19093rm -f conftest.err conftest.$ac_ext
19094
19095done
19096# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19097rm -f conftest.err conftest.$ac_ext
19098if $ac_preproc_ok; then
19099 :
19100else
19101 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
19102See \`config.log' for more details." >&5
19103echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
19104See \`config.log' for more details." >&2;}
19105 { (exit 1); exit 1; }; }
19106fi
19107
19108ac_ext=cc
19109ac_cpp='$CXXCPP $CPPFLAGS'
19110ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19111ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19112ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19113
19114
19115
19116
19117
19118 ac_ext=cc
19119ac_cpp='$CXXCPP $CPPFLAGS'
19120ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19121ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19122ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19123
19124
19125
19126for ac_header in iostream
19127do
19128as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19129if eval "test \"\${$as_ac_Header+set}\" = set"; then
19130 echo "$as_me:$LINENO: checking for $ac_header" >&5
19131echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19132if eval "test \"\${$as_ac_Header+set}\" = set"; then
19133 echo $ECHO_N "(cached) $ECHO_C" >&6
19134fi
19135echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19136echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19137else
19138 # Is the header compilable?
19139echo "$as_me:$LINENO: checking $ac_header usability" >&5
19140echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19141cat >conftest.$ac_ext <<_ACEOF
19142/* confdefs.h. */
19143_ACEOF
19144cat confdefs.h >>conftest.$ac_ext
19145cat >>conftest.$ac_ext <<_ACEOF
19146/* end confdefs.h. */
19147$ac_includes_default
19148#include <$ac_header>
19149_ACEOF
19150rm -f conftest.$ac_objext
19151if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19152 (eval $ac_compile) 2>conftest.er1
a848cd7e 19153 ac_status=$?
ac1cb8d3
VS
19154 grep -v '^ *+' conftest.er1 >conftest.err
19155 rm -f conftest.er1
19156 cat conftest.err >&5
a848cd7e
SC
19157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19158 (exit $ac_status); } &&
5294a27e 19159 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19161 (eval $ac_try) 2>&5
19162 ac_status=$?
19163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19164 (exit $ac_status); }; } &&
19165 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19167 (eval $ac_try) 2>&5
19168 ac_status=$?
19169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19170 (exit $ac_status); }; }; then
19171 ac_header_compiler=yes
19172else
19173 echo "$as_me: failed program was:" >&5
19174sed 's/^/| /' conftest.$ac_ext >&5
19175
19176ac_header_compiler=no
19177fi
ac1cb8d3 19178rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19179echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19180echo "${ECHO_T}$ac_header_compiler" >&6
19181
19182# Is the header present?
19183echo "$as_me:$LINENO: checking $ac_header presence" >&5
19184echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19185cat >conftest.$ac_ext <<_ACEOF
19186/* confdefs.h. */
19187_ACEOF
19188cat confdefs.h >>conftest.$ac_ext
19189cat >>conftest.$ac_ext <<_ACEOF
19190/* end confdefs.h. */
19191#include <$ac_header>
19192_ACEOF
19193if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19194 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19195 ac_status=$?
19196 grep -v '^ *+' conftest.er1 >conftest.err
19197 rm -f conftest.er1
19198 cat conftest.err >&5
19199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19200 (exit $ac_status); } >/dev/null; then
19201 if test -s conftest.err; then
19202 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19203 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
19204 else
19205 ac_cpp_err=
19206 fi
19207else
19208 ac_cpp_err=yes
19209fi
19210if test -z "$ac_cpp_err"; then
19211 ac_header_preproc=yes
19212else
19213 echo "$as_me: failed program was:" >&5
19214sed 's/^/| /' conftest.$ac_ext >&5
19215
19216 ac_header_preproc=no
19217fi
19218rm -f conftest.err conftest.$ac_ext
19219echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19220echo "${ECHO_T}$ac_header_preproc" >&6
19221
19222# So? What about this header?
ac1cb8d3
VS
19223case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19224 yes:no: )
a848cd7e
SC
19225 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19226echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
19227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19228echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19229 ac_header_preproc=yes
a848cd7e 19230 ;;
ac1cb8d3 19231 no:yes:* )
a848cd7e
SC
19232 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19233echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
19234 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19235echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19236 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19237echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19238 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19239echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
19240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19241echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
19242 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19243echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
19244 (
19245 cat <<\_ASBOX
ac1cb8d3
VS
19246## ----------------------------------------- ##
19247## Report this to wx-dev@lists.wxwidgets.org ##
19248## ----------------------------------------- ##
a848cd7e
SC
19249_ASBOX
19250 ) |
19251 sed "s/^/$as_me: WARNING: /" >&2
19252 ;;
19253esac
19254echo "$as_me:$LINENO: checking for $ac_header" >&5
19255echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19256if eval "test \"\${$as_ac_Header+set}\" = set"; then
19257 echo $ECHO_N "(cached) $ECHO_C" >&6
19258else
ac1cb8d3 19259 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
19260fi
19261echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19262echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19263
19264fi
19265if test `eval echo '${'$as_ac_Header'}'` = yes; then
19266 cat >>confdefs.h <<_ACEOF
19267#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19268_ACEOF
19269
19270fi
19271
19272done
19273
19274
19275 if test "$ac_cv_header_iostream" = "yes" ; then
19276 :
19277 else
19278 cat >>confdefs.h <<\_ACEOF
19279#define wxUSE_IOSTREAMH 1
19280_ACEOF
19281
19282 fi
19283
19284 ac_ext=c
19285ac_cpp='$CPP $CPPFLAGS'
19286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19288ac_compiler_gnu=$ac_cv_c_compiler_gnu
19289
19290
19291
19292
19293 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
19294echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
19295if test "${wx_cv_cpp_bool+set}" = set; then
19296 echo $ECHO_N "(cached) $ECHO_C" >&6
19297else
19298
19299
19300
19301 ac_ext=cc
19302ac_cpp='$CXXCPP $CPPFLAGS'
19303ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19304ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19305ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19306
19307
19308 cat >conftest.$ac_ext <<_ACEOF
19309/* confdefs.h. */
19310_ACEOF
19311cat confdefs.h >>conftest.$ac_ext
19312cat >>conftest.$ac_ext <<_ACEOF
19313/* end confdefs.h. */
19314
19315
19316int
19317main ()
19318{
19319
19320 bool b = true;
19321
19322 return 0;
19323
19324 ;
19325 return 0;
19326}
19327_ACEOF
19328rm -f conftest.$ac_objext
19329if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19330 (eval $ac_compile) 2>conftest.er1
a848cd7e 19331 ac_status=$?
ac1cb8d3
VS
19332 grep -v '^ *+' conftest.er1 >conftest.err
19333 rm -f conftest.er1
19334 cat conftest.err >&5
a848cd7e
SC
19335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19336 (exit $ac_status); } &&
5294a27e 19337 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19339 (eval $ac_try) 2>&5
19340 ac_status=$?
19341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19342 (exit $ac_status); }; } &&
19343 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19345 (eval $ac_try) 2>&5
19346 ac_status=$?
19347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19348 (exit $ac_status); }; }; then
19349
19350 wx_cv_cpp_bool=yes
19351
19352else
19353 echo "$as_me: failed program was:" >&5
19354sed 's/^/| /' conftest.$ac_ext >&5
19355
19356
19357 wx_cv_cpp_bool=no
19358
19359
19360fi
ac1cb8d3 19361rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19362
19363 ac_ext=c
19364ac_cpp='$CPP $CPPFLAGS'
19365ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19366ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19367ac_compiler_gnu=$ac_cv_c_compiler_gnu
19368
19369
19370fi
19371echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
19372echo "${ECHO_T}$wx_cv_cpp_bool" >&6
19373
19374 if test "$wx_cv_cpp_bool" = "yes"; then
19375 cat >>confdefs.h <<\_ACEOF
19376#define HAVE_BOOL 1
19377_ACEOF
19378
19379 fi
19380
19381
19382
19383 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
19384echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
19385if test "${wx_cv_explicit+set}" = set; then
19386 echo $ECHO_N "(cached) $ECHO_C" >&6
19387else
19388
19389
19390
19391 ac_ext=cc
19392ac_cpp='$CXXCPP $CPPFLAGS'
19393ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19394ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19395ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19396
19397
19398 cat >conftest.$ac_ext <<_ACEOF
19399/* confdefs.h. */
19400_ACEOF
19401cat confdefs.h >>conftest.$ac_ext
19402cat >>conftest.$ac_ext <<_ACEOF
19403/* end confdefs.h. */
19404
19405 class Foo { public: explicit Foo(int) {} };
19406
19407int
19408main ()
19409{
19410
19411 return 0;
19412
19413 ;
19414 return 0;
19415}
19416_ACEOF
19417rm -f conftest.$ac_objext
19418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19419 (eval $ac_compile) 2>conftest.er1
a848cd7e 19420 ac_status=$?
ac1cb8d3
VS
19421 grep -v '^ *+' conftest.er1 >conftest.err
19422 rm -f conftest.er1
19423 cat conftest.err >&5
a848cd7e
SC
19424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19425 (exit $ac_status); } &&
5294a27e 19426 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19428 (eval $ac_try) 2>&5
19429 ac_status=$?
19430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431 (exit $ac_status); }; } &&
19432 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19434 (eval $ac_try) 2>&5
19435 ac_status=$?
19436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437 (exit $ac_status); }; }; then
19438
19439 cat >conftest.$ac_ext <<_ACEOF
19440/* confdefs.h. */
19441_ACEOF
19442cat confdefs.h >>conftest.$ac_ext
19443cat >>conftest.$ac_ext <<_ACEOF
19444/* end confdefs.h. */
19445
19446 class Foo { public: explicit Foo(int) {} };
19447 static void TakeFoo(const Foo& foo) { }
19448
19449int
19450main ()
19451{
19452
19453 TakeFoo(17);
19454 return 0;
19455
19456 ;
19457 return 0;
19458}
19459_ACEOF
19460rm -f conftest.$ac_objext
19461if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19462 (eval $ac_compile) 2>conftest.er1
a848cd7e 19463 ac_status=$?
ac1cb8d3
VS
19464 grep -v '^ *+' conftest.er1 >conftest.err
19465 rm -f conftest.er1
19466 cat conftest.err >&5
a848cd7e
SC
19467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19468 (exit $ac_status); } &&
5294a27e 19469 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19471 (eval $ac_try) 2>&5
19472 ac_status=$?
19473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474 (exit $ac_status); }; } &&
19475 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19477 (eval $ac_try) 2>&5
19478 ac_status=$?
19479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480 (exit $ac_status); }; }; then
19481 wx_cv_explicit=no
19482else
19483 echo "$as_me: failed program was:" >&5
19484sed 's/^/| /' conftest.$ac_ext >&5
19485
19486wx_cv_explicit=yes
19487
19488fi
ac1cb8d3 19489rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19490
19491else
19492 echo "$as_me: failed program was:" >&5
19493sed 's/^/| /' conftest.$ac_ext >&5
19494
19495wx_cv_explicit=no
19496
19497fi
ac1cb8d3 19498rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19499
19500 ac_ext=c
19501ac_cpp='$CPP $CPPFLAGS'
19502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19504ac_compiler_gnu=$ac_cv_c_compiler_gnu
19505
19506
19507fi
19508echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
19509echo "${ECHO_T}$wx_cv_explicit" >&6
19510
19511 if test "$wx_cv_explicit" = "yes"; then
19512 cat >>confdefs.h <<\_ACEOF
19513#define HAVE_EXPLICIT 1
19514_ACEOF
19515
19516 fi
19517
19518
19519echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
19520echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
19521if test "${ac_cv_cxx_const_cast+set}" = set; then
19522 echo $ECHO_N "(cached) $ECHO_C" >&6
19523else
19524
19525
19526 ac_ext=cc
19527ac_cpp='$CXXCPP $CPPFLAGS'
19528ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19529ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19530ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19531
19532 cat >conftest.$ac_ext <<_ACEOF
19533/* confdefs.h. */
19534_ACEOF
19535cat confdefs.h >>conftest.$ac_ext
19536cat >>conftest.$ac_ext <<_ACEOF
19537/* end confdefs.h. */
19538
19539int
19540main ()
19541{
19542int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
19543 ;
19544 return 0;
19545}
19546_ACEOF
19547rm -f conftest.$ac_objext
19548if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19549 (eval $ac_compile) 2>conftest.er1
a848cd7e 19550 ac_status=$?
ac1cb8d3
VS
19551 grep -v '^ *+' conftest.er1 >conftest.err
19552 rm -f conftest.er1
19553 cat conftest.err >&5
a848cd7e
SC
19554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19555 (exit $ac_status); } &&
5294a27e 19556 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19558 (eval $ac_try) 2>&5
19559 ac_status=$?
19560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19561 (exit $ac_status); }; } &&
19562 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19564 (eval $ac_try) 2>&5
19565 ac_status=$?
19566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567 (exit $ac_status); }; }; then
19568 ac_cv_cxx_const_cast=yes
19569else
19570 echo "$as_me: failed program was:" >&5
19571sed 's/^/| /' conftest.$ac_ext >&5
19572
19573ac_cv_cxx_const_cast=no
19574fi
ac1cb8d3 19575rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19576 ac_ext=c
19577ac_cpp='$CPP $CPPFLAGS'
19578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19580ac_compiler_gnu=$ac_cv_c_compiler_gnu
19581
19582
19583fi
19584echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
19585echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
19586if test "$ac_cv_cxx_const_cast" = yes; then
19587
19588cat >>confdefs.h <<\_ACEOF
19589#define HAVE_CONST_CAST
19590_ACEOF
19591
19592fi
19593
7714864e
RL
19594echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
19595echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
19596if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
19597 echo $ECHO_N "(cached) $ECHO_C" >&6
19598else
19599
19600
19601 ac_ext=cc
19602ac_cpp='$CXXCPP $CPPFLAGS'
19603ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19604ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19605ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19606
19607 cat >conftest.$ac_ext <<_ACEOF
19608/* confdefs.h. */
19609_ACEOF
19610cat confdefs.h >>conftest.$ac_ext
19611cat >>conftest.$ac_ext <<_ACEOF
19612/* end confdefs.h. */
19613#include <typeinfo>
19614class Base { public : Base () {} virtual void f () = 0;};
19615class Derived : public Base { public : Derived () {} virtual void f () {} };
19616class Unrelated { public : Unrelated () {} };
19617int g (Unrelated&) { return 0; }
19618int
19619main ()
19620{
19621
19622Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
19623 ;
19624 return 0;
19625}
19626_ACEOF
19627rm -f conftest.$ac_objext
19628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19629 (eval $ac_compile) 2>conftest.er1
19630 ac_status=$?
19631 grep -v '^ *+' conftest.er1 >conftest.err
19632 rm -f conftest.er1
19633 cat conftest.err >&5
19634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19635 (exit $ac_status); } &&
5294a27e 19636 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
19637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19638 (eval $ac_try) 2>&5
19639 ac_status=$?
19640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641 (exit $ac_status); }; } &&
19642 { ac_try='test -s conftest.$ac_objext'
19643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19644 (eval $ac_try) 2>&5
19645 ac_status=$?
19646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647 (exit $ac_status); }; }; then
19648 ac_cv_cxx_reinterpret_cast=yes
19649else
19650 echo "$as_me: failed program was:" >&5
19651sed 's/^/| /' conftest.$ac_ext >&5
19652
19653ac_cv_cxx_reinterpret_cast=no
19654fi
19655rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19656 ac_ext=c
19657ac_cpp='$CPP $CPPFLAGS'
19658ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19659ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19660ac_compiler_gnu=$ac_cv_c_compiler_gnu
19661
19662
19663fi
19664echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
19665echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
19666if test "$ac_cv_cxx_reinterpret_cast" = yes; then
19667
19668cat >>confdefs.h <<\_ACEOF
19669#define HAVE_REINTERPRET_CAST
19670_ACEOF
19671
19672fi
19673
a848cd7e
SC
19674echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
19675echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
19676if test "${ac_cv_cxx_static_cast+set}" = set; then
19677 echo $ECHO_N "(cached) $ECHO_C" >&6
19678else
19679
19680
19681 ac_ext=cc
19682ac_cpp='$CXXCPP $CPPFLAGS'
19683ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19684ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19685ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19686
19687 cat >conftest.$ac_ext <<_ACEOF
19688/* confdefs.h. */
19689_ACEOF
19690cat confdefs.h >>conftest.$ac_ext
19691cat >>conftest.$ac_ext <<_ACEOF
19692/* end confdefs.h. */
19693#include <typeinfo>
19694class Base { public : Base () {} virtual void f () = 0; };
19695class Derived : public Base { public : Derived () {} virtual void f () {} };
19696int g (Derived&) { return 0; }
19697int
19698main ()
19699{
19700
19701Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
19702 ;
19703 return 0;
19704}
19705_ACEOF
19706rm -f conftest.$ac_objext
19707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19708 (eval $ac_compile) 2>conftest.er1
a848cd7e 19709 ac_status=$?
ac1cb8d3
VS
19710 grep -v '^ *+' conftest.er1 >conftest.err
19711 rm -f conftest.er1
19712 cat conftest.err >&5
a848cd7e
SC
19713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19714 (exit $ac_status); } &&
5294a27e 19715 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19717 (eval $ac_try) 2>&5
19718 ac_status=$?
19719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19720 (exit $ac_status); }; } &&
19721 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19723 (eval $ac_try) 2>&5
19724 ac_status=$?
19725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19726 (exit $ac_status); }; }; then
19727 ac_cv_cxx_static_cast=yes
19728else
19729 echo "$as_me: failed program was:" >&5
19730sed 's/^/| /' conftest.$ac_ext >&5
19731
19732ac_cv_cxx_static_cast=no
19733fi
ac1cb8d3 19734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19735 ac_ext=c
19736ac_cpp='$CPP $CPPFLAGS'
19737ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19738ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19739ac_compiler_gnu=$ac_cv_c_compiler_gnu
19740
19741
19742fi
19743echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
19744echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
19745if test "$ac_cv_cxx_static_cast" = yes; then
19746
19747cat >>confdefs.h <<\_ACEOF
19748#define HAVE_STATIC_CAST
19749_ACEOF
19750
19751fi
19752
19753
19754if test "$wxUSE_STL" = "yes"; then
19755 ac_ext=cc
19756ac_cpp='$CXXCPP $CPPFLAGS'
19757ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19758ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19759ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19760
19761
19762 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
19763echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
19764 cat >conftest.$ac_ext <<_ACEOF
19765/* confdefs.h. */
19766_ACEOF
19767cat confdefs.h >>conftest.$ac_ext
19768cat >>conftest.$ac_ext <<_ACEOF
19769/* end confdefs.h. */
19770#include <string>
19771 #include <functional>
19772 #include <algorithm>
19773 #include <vector>
19774 #include <list>
19775int
19776main ()
19777{
19778std::vector<int> moo;
19779 std::list<int> foo;
19780 std::vector<int>::iterator it =
19781 std::find_if(moo.begin(), moo.end(),
19782 std::bind2nd(std::less<int>(), 3));
19783 ;
19784 return 0;
19785}
19786_ACEOF
19787rm -f conftest.$ac_objext
19788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19789 (eval $ac_compile) 2>conftest.er1
a848cd7e 19790 ac_status=$?
ac1cb8d3
VS
19791 grep -v '^ *+' conftest.er1 >conftest.err
19792 rm -f conftest.er1
19793 cat conftest.err >&5
a848cd7e
SC
19794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795 (exit $ac_status); } &&
5294a27e 19796 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19798 (eval $ac_try) 2>&5
19799 ac_status=$?
19800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801 (exit $ac_status); }; } &&
19802 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19804 (eval $ac_try) 2>&5
19805 ac_status=$?
19806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19807 (exit $ac_status); }; }; then
19808 echo "$as_me:$LINENO: result: yes" >&5
19809echo "${ECHO_T}yes" >&6
19810else
19811 echo "$as_me: failed program was:" >&5
19812sed 's/^/| /' conftest.$ac_ext >&5
19813
19814echo "$as_me:$LINENO: result: no" >&5
19815echo "${ECHO_T}no" >&6
19816 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
19817echo "$as_me: error: Basic STL functionality missing" >&2;}
19818 { (exit 1); exit 1; }; }
19819fi
ac1cb8d3 19820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19821
19822 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
19823echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
19824 cat >conftest.$ac_ext <<_ACEOF
19825/* confdefs.h. */
19826_ACEOF
19827cat confdefs.h >>conftest.$ac_ext
19828cat >>conftest.$ac_ext <<_ACEOF
19829/* end confdefs.h. */
19830#include <string>
19831int
19832main ()
19833{
19834std::wstring foo;
19835 ;
19836 return 0;
19837}
19838_ACEOF
19839rm -f conftest.$ac_objext
19840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19841 (eval $ac_compile) 2>conftest.er1
a848cd7e 19842 ac_status=$?
ac1cb8d3
VS
19843 grep -v '^ *+' conftest.er1 >conftest.err
19844 rm -f conftest.er1
19845 cat conftest.err >&5
a848cd7e
SC
19846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847 (exit $ac_status); } &&
5294a27e 19848 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19850 (eval $ac_try) 2>&5
19851 ac_status=$?
19852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853 (exit $ac_status); }; } &&
19854 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19856 (eval $ac_try) 2>&5
19857 ac_status=$?
19858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19859 (exit $ac_status); }; }; then
19860 echo "$as_me:$LINENO: result: yes" >&5
19861echo "${ECHO_T}yes" >&6
19862 cat >>confdefs.h <<\_ACEOF
19863#define HAVE_STD_WSTRING 1
19864_ACEOF
19865
19866else
19867 echo "$as_me: failed program was:" >&5
19868sed 's/^/| /' conftest.$ac_ext >&5
19869
19870echo "$as_me:$LINENO: result: no" >&5
19871echo "${ECHO_T}no" >&6
19872fi
ac1cb8d3 19873rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19874
19875 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
19876echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
19877 cat >conftest.$ac_ext <<_ACEOF
19878/* confdefs.h. */
19879_ACEOF
19880cat confdefs.h >>conftest.$ac_ext
19881cat >>conftest.$ac_ext <<_ACEOF
19882/* end confdefs.h. */
19883#include <string>
19884int
19885main ()
19886{
19887std::string foo, bar;
19888 foo.compare(bar);
19889 foo.compare(1, 1, bar);
19890 foo.compare(1, 1, bar, 1, 1);
19891 foo.compare("");
19892 foo.compare(1, 1, "");
19893 foo.compare(1, 1, "", 2);
19894 ;
19895 return 0;
19896}
19897_ACEOF
19898rm -f conftest.$ac_objext
19899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19900 (eval $ac_compile) 2>conftest.er1
a848cd7e 19901 ac_status=$?
ac1cb8d3
VS
19902 grep -v '^ *+' conftest.er1 >conftest.err
19903 rm -f conftest.er1
19904 cat conftest.err >&5
a848cd7e
SC
19905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19906 (exit $ac_status); } &&
5294a27e 19907 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19909 (eval $ac_try) 2>&5
19910 ac_status=$?
19911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19912 (exit $ac_status); }; } &&
19913 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19915 (eval $ac_try) 2>&5
19916 ac_status=$?
19917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19918 (exit $ac_status); }; }; then
19919 echo "$as_me:$LINENO: result: yes" >&5
19920echo "${ECHO_T}yes" >&6
19921 cat >>confdefs.h <<\_ACEOF
19922#define HAVE_STD_STRING_COMPARE 1
19923_ACEOF
19924
19925else
19926 echo "$as_me: failed program was:" >&5
19927sed 's/^/| /' conftest.$ac_ext >&5
19928
19929echo "$as_me:$LINENO: result: no" >&5
19930echo "${ECHO_T}no" >&6
19931fi
ac1cb8d3 19932rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19933
19934 if test "${ac_cv_header_hash_map+set}" = set; then
19935 echo "$as_me:$LINENO: checking for hash_map" >&5
19936echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
19937if test "${ac_cv_header_hash_map+set}" = set; then
19938 echo $ECHO_N "(cached) $ECHO_C" >&6
19939fi
19940echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
19941echo "${ECHO_T}$ac_cv_header_hash_map" >&6
19942else
19943 # Is the header compilable?
19944echo "$as_me:$LINENO: checking hash_map usability" >&5
19945echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
19946cat >conftest.$ac_ext <<_ACEOF
19947/* confdefs.h. */
19948_ACEOF
19949cat confdefs.h >>conftest.$ac_ext
19950cat >>conftest.$ac_ext <<_ACEOF
19951/* end confdefs.h. */
19952$ac_includes_default
19953#include <hash_map>
19954_ACEOF
19955rm -f conftest.$ac_objext
19956if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19957 (eval $ac_compile) 2>conftest.er1
bdcade0a 19958 ac_status=$?
ac1cb8d3
VS
19959 grep -v '^ *+' conftest.er1 >conftest.err
19960 rm -f conftest.er1
19961 cat conftest.err >&5
bdcade0a
MB
19962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19963 (exit $ac_status); } &&
5294a27e 19964 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19966 (eval $ac_try) 2>&5
19967 ac_status=$?
19968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19969 (exit $ac_status); }; } &&
19970 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19972 (eval $ac_try) 2>&5
19973 ac_status=$?
19974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19975 (exit $ac_status); }; }; then
19976 ac_header_compiler=yes
19977else
19978 echo "$as_me: failed program was:" >&5
19979sed 's/^/| /' conftest.$ac_ext >&5
19980
19981ac_header_compiler=no
19982fi
ac1cb8d3 19983rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19984echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19985echo "${ECHO_T}$ac_header_compiler" >&6
19986
19987# Is the header present?
19988echo "$as_me:$LINENO: checking hash_map presence" >&5
19989echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
19990cat >conftest.$ac_ext <<_ACEOF
19991/* confdefs.h. */
19992_ACEOF
19993cat confdefs.h >>conftest.$ac_ext
19994cat >>conftest.$ac_ext <<_ACEOF
19995/* end confdefs.h. */
19996#include <hash_map>
19997_ACEOF
19998if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19999 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20000 ac_status=$?
20001 grep -v '^ *+' conftest.er1 >conftest.err
20002 rm -f conftest.er1
20003 cat conftest.err >&5
20004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005 (exit $ac_status); } >/dev/null; then
20006 if test -s conftest.err; then
20007 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20008 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
20009 else
20010 ac_cpp_err=
20011 fi
20012else
20013 ac_cpp_err=yes
20014fi
20015if test -z "$ac_cpp_err"; then
20016 ac_header_preproc=yes
20017else
20018 echo "$as_me: failed program was:" >&5
20019sed 's/^/| /' conftest.$ac_ext >&5
20020
20021 ac_header_preproc=no
20022fi
20023rm -f conftest.err conftest.$ac_ext
20024echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20025echo "${ECHO_T}$ac_header_preproc" >&6
20026
20027# So? What about this header?
ac1cb8d3
VS
20028case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20029 yes:no: )
bdcade0a
MB
20030 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
20031echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20032 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
20033echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
20034 ac_header_preproc=yes
bdcade0a 20035 ;;
ac1cb8d3 20036 no:yes:* )
bdcade0a
MB
20037 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
20038echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20039 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
20040echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
20041 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
20042echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
20043 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
20044echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
20045 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
20046echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20047 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
20048echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
20049 (
20050 cat <<\_ASBOX
ac1cb8d3
VS
20051## ----------------------------------------- ##
20052## Report this to wx-dev@lists.wxwidgets.org ##
20053## ----------------------------------------- ##
bdcade0a
MB
20054_ASBOX
20055 ) |
20056 sed "s/^/$as_me: WARNING: /" >&2
20057 ;;
20058esac
20059echo "$as_me:$LINENO: checking for hash_map" >&5
20060echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
20061if test "${ac_cv_header_hash_map+set}" = set; then
20062 echo $ECHO_N "(cached) $ECHO_C" >&6
20063else
20064 ac_cv_header_hash_map=$ac_header_preproc
20065fi
20066echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
20067echo "${ECHO_T}$ac_cv_header_hash_map" >&6
20068
20069fi
20070if test $ac_cv_header_hash_map = yes; then
20071 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
20072echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
20073 cat >conftest.$ac_ext <<_ACEOF
20074/* confdefs.h. */
20075_ACEOF
20076cat confdefs.h >>conftest.$ac_ext
20077cat >>conftest.$ac_ext <<_ACEOF
20078/* end confdefs.h. */
20079#include <hash_map>
20080 #include <hash_set>
20081int
20082main ()
20083{
20084std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
20085 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
20086 ;
20087 return 0;
20088}
20089_ACEOF
20090rm -f conftest.$ac_objext
20091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20092 (eval $ac_compile) 2>conftest.er1
bdcade0a 20093 ac_status=$?
ac1cb8d3
VS
20094 grep -v '^ *+' conftest.er1 >conftest.err
20095 rm -f conftest.er1
20096 cat conftest.err >&5
bdcade0a
MB
20097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20098 (exit $ac_status); } &&
5294a27e 20099 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20101 (eval $ac_try) 2>&5
20102 ac_status=$?
20103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20104 (exit $ac_status); }; } &&
20105 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
20106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20107 (eval $ac_try) 2>&5
20108 ac_status=$?
20109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110 (exit $ac_status); }; }; then
20111 echo "$as_me:$LINENO: result: yes" >&5
20112echo "${ECHO_T}yes" >&6
20113 cat >>confdefs.h <<\_ACEOF
20114#define HAVE_HASH_MAP 1
20115_ACEOF
20116
20117 cat >>confdefs.h <<\_ACEOF
20118#define HAVE_STD_HASH_MAP 1
20119_ACEOF
20120
20121else
20122 echo "$as_me: failed program was:" >&5
20123sed 's/^/| /' conftest.$ac_ext >&5
20124
20125echo "$as_me:$LINENO: result: no" >&5
20126echo "${ECHO_T}no" >&6
20127fi
ac1cb8d3 20128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20129
20130fi
20131
20132
20133
20134 if test "${ac_cv_header_ext_hash_map+set}" = set; then
20135 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
20136echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
20137if test "${ac_cv_header_ext_hash_map+set}" = set; then
20138 echo $ECHO_N "(cached) $ECHO_C" >&6
20139fi
20140echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
20141echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
20142else
20143 # Is the header compilable?
20144echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
20145echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
20146cat >conftest.$ac_ext <<_ACEOF
20147/* confdefs.h. */
20148_ACEOF
20149cat confdefs.h >>conftest.$ac_ext
20150cat >>conftest.$ac_ext <<_ACEOF
20151/* end confdefs.h. */
20152$ac_includes_default
20153#include <ext/hash_map>
20154_ACEOF
20155rm -f conftest.$ac_objext
20156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20157 (eval $ac_compile) 2>conftest.er1
bdcade0a 20158 ac_status=$?
ac1cb8d3
VS
20159 grep -v '^ *+' conftest.er1 >conftest.err
20160 rm -f conftest.er1
20161 cat conftest.err >&5
bdcade0a
MB
20162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163 (exit $ac_status); } &&
5294a27e 20164 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20166 (eval $ac_try) 2>&5
20167 ac_status=$?
20168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20169 (exit $ac_status); }; } &&
20170 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
20171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20172 (eval $ac_try) 2>&5
20173 ac_status=$?
20174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20175 (exit $ac_status); }; }; then
20176 ac_header_compiler=yes
20177else
20178 echo "$as_me: failed program was:" >&5
20179sed 's/^/| /' conftest.$ac_ext >&5
20180
20181ac_header_compiler=no
20182fi
ac1cb8d3 20183rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20184echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20185echo "${ECHO_T}$ac_header_compiler" >&6
20186
20187# Is the header present?
20188echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
20189echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
20190cat >conftest.$ac_ext <<_ACEOF
20191/* confdefs.h. */
20192_ACEOF
20193cat confdefs.h >>conftest.$ac_ext
20194cat >>conftest.$ac_ext <<_ACEOF
20195/* end confdefs.h. */
20196#include <ext/hash_map>
20197_ACEOF
20198if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20199 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20200 ac_status=$?
20201 grep -v '^ *+' conftest.er1 >conftest.err
20202 rm -f conftest.er1
20203 cat conftest.err >&5
20204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20205 (exit $ac_status); } >/dev/null; then
20206 if test -s conftest.err; then
20207 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20208 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
20209 else
20210 ac_cpp_err=
20211 fi
20212else
20213 ac_cpp_err=yes
20214fi
20215if test -z "$ac_cpp_err"; then
20216 ac_header_preproc=yes
20217else
20218 echo "$as_me: failed program was:" >&5
20219sed 's/^/| /' conftest.$ac_ext >&5
20220
20221 ac_header_preproc=no
20222fi
20223rm -f conftest.err conftest.$ac_ext
20224echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20225echo "${ECHO_T}$ac_header_preproc" >&6
20226
20227# So? What about this header?
ac1cb8d3
VS
20228case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20229 yes:no: )
bdcade0a
MB
20230 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
20231echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20232 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
20233echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
20234 ac_header_preproc=yes
bdcade0a 20235 ;;
ac1cb8d3 20236 no:yes:* )
bdcade0a
MB
20237 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
20238echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20239 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
20240echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
20241 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
20242echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
20243 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
20244echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
20245 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
20246echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20247 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
20248echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
20249 (
20250 cat <<\_ASBOX
ac1cb8d3
VS
20251## ----------------------------------------- ##
20252## Report this to wx-dev@lists.wxwidgets.org ##
20253## ----------------------------------------- ##
bdcade0a
MB
20254_ASBOX
20255 ) |
20256 sed "s/^/$as_me: WARNING: /" >&2
20257 ;;
20258esac
20259echo "$as_me:$LINENO: checking for ext/hash_map" >&5
20260echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
20261if test "${ac_cv_header_ext_hash_map+set}" = set; then
20262 echo $ECHO_N "(cached) $ECHO_C" >&6
20263else
20264 ac_cv_header_ext_hash_map=$ac_header_preproc
20265fi
20266echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
20267echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
20268
20269fi
20270if test $ac_cv_header_ext_hash_map = yes; then
20271 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
20272echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
20273 cat >conftest.$ac_ext <<_ACEOF
20274/* confdefs.h. */
20275_ACEOF
20276cat confdefs.h >>conftest.$ac_ext
20277cat >>conftest.$ac_ext <<_ACEOF
20278/* end confdefs.h. */
20279#include <ext/hash_map>
20280 #include <ext/hash_set>
20281int
20282main ()
20283{
20284__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
20285 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
20286 ;
20287 return 0;
20288}
20289_ACEOF
20290rm -f conftest.$ac_objext
20291if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20292 (eval $ac_compile) 2>conftest.er1
bdcade0a 20293 ac_status=$?
ac1cb8d3
VS
20294 grep -v '^ *+' conftest.er1 >conftest.err
20295 rm -f conftest.er1
20296 cat conftest.err >&5
bdcade0a
MB
20297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298 (exit $ac_status); } &&
5294a27e 20299 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20301 (eval $ac_try) 2>&5
20302 ac_status=$?
20303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304 (exit $ac_status); }; } &&
20305 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
20306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20307 (eval $ac_try) 2>&5
20308 ac_status=$?
20309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20310 (exit $ac_status); }; }; then
20311 echo "$as_me:$LINENO: result: yes" >&5
20312echo "${ECHO_T}yes" >&6
20313 cat >>confdefs.h <<\_ACEOF
20314#define HAVE_EXT_HASH_MAP 1
20315_ACEOF
20316
20317 cat >>confdefs.h <<\_ACEOF
20318#define HAVE_GNU_CXX_HASH_MAP 1
20319_ACEOF
20320
20321else
20322 echo "$as_me: failed program was:" >&5
20323sed 's/^/| /' conftest.$ac_ext >&5
20324
20325echo "$as_me:$LINENO: result: no" >&5
20326echo "${ECHO_T}no" >&6
20327fi
ac1cb8d3 20328rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20329
20330fi
20331
20332
a848cd7e
SC
20333
20334 ac_ext=c
20335ac_cpp='$CPP $CPPFLAGS'
20336ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20337ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20338ac_compiler_gnu=$ac_cv_c_compiler_gnu
20339
20340fi
20341
20342
20343SEARCH_INCLUDE="\
20344 /usr/local/include \
20345 \
20346 /usr/Motif-2.1/include \
20347 /usr/Motif-1.2/include \
20348 /usr/include/Motif1.2 \
20349 /opt/xpm/include/X11 \
20350 /opt/GBxpm/include/ \
20351 /opt/GBxpm/X11/include/ \
20352 \
20353 /usr/dt/include \
20354 /usr/openwin/include \
20355 \
20356 /usr/include/Xm \
20357 \
20358 /usr/X11R6/include \
20359 /usr/X11R6.4/include \
20360 /usr/X11R5/include \
20361 /usr/X11R4/include \
20362 \
20363 /usr/include/X11R6 \
20364 /usr/include/X11R5 \
20365 /usr/include/X11R4 \
20366 \
20367 /usr/local/X11R6/include \
20368 /usr/local/X11R5/include \
20369 /usr/local/X11R4/include \
20370 \
20371 /usr/local/include/X11R6 \
20372 /usr/local/include/X11R5 \
20373 /usr/local/include/X11R4 \
20374 \
20375 /usr/X11/include \
20376 /usr/include/X11 \
20377 /usr/local/X11/include \
20378 /usr/local/include/X11 \
20379 \
20380 /usr/X386/include \
20381 /usr/x386/include \
20382 /usr/XFree86/include/X11 \
20383 \
20384 X:/XFree86/include \
20385 X:/XFree86/include/X11 \
20386 \
20387 /usr/include/gtk \
20388 /usr/local/include/gtk \
20389 /usr/include/glib \
20390 /usr/local/include/glib \
20391 \
20392 /usr/include/qt \
20393 /usr/local/include/qt \
20394 \
20395 /usr/local/arm/3.3.2/include \
20396 \
20397 /usr/include/windows \
20398 /usr/include/wine \
20399 /usr/local/include/wine \
20400 \
20401 /usr/unsupported/include \
20402 /usr/athena/include \
20403 /usr/local/x11r5/include \
20404 /usr/lpp/Xamples/include \
20405 \
20406 /usr/openwin/share/include"
20407
20408SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64"
20409
20410
20411cat >confcache <<\_ACEOF
20412# This file is a shell script that caches the results of configure
20413# tests run on this system so they can be shared between configure
20414# scripts and configure runs, see configure's option --config-cache.
20415# It is not useful on other systems. If it contains results you don't
20416# want to keep, you may remove or edit it.
20417#
20418# config.status only pays attention to the cache file if you give it
20419# the --recheck option to rerun configure.
20420#
20421# `ac_cv_env_foo' variables (set or unset) will be overridden when
20422# loading this file, other *unset* `ac_cv_foo' will be assigned the
20423# following values.
20424
20425_ACEOF
20426
20427# The following way of writing the cache mishandles newlines in values,
20428# but we know of no workaround that is simple, portable, and efficient.
20429# So, don't put newlines in cache variables' values.
20430# Ultrix sh set writes to stderr and can't be redirected directly,
20431# and sets the high bit in the cache file unless we assign to the vars.
20432{
20433 (set) 2>&1 |
20434 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20435 *ac_space=\ *)
20436 # `set' does not quote correctly, so add quotes (double-quote
20437 # substitution turns \\\\ into \\, and sed turns \\ into \).
20438 sed -n \
ac1cb8d3
VS
20439 "s/'/'\\\\''/g;
20440 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
20441 ;;
20442 *)
20443 # `set' quotes correctly as required by POSIX, so do not add quotes.
20444 sed -n \
ac1cb8d3 20445 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
20446 ;;
20447 esac;
20448} |
20449 sed '
20450 t clear
20451 : clear
20452 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20453 t end
20454 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20455 : end' >>confcache
20456if diff $cache_file confcache >/dev/null 2>&1; then :; else
20457 if test -w $cache_file; then
20458 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20459 cat confcache >$cache_file
20460 else
20461 echo "not updating unwritable cache $cache_file"
20462 fi
20463fi
20464rm -f confcache
20465
20466if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
20467 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
20468echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
20469if test "${wx_cv_lib_glibc21+set}" = set; then
20470 echo $ECHO_N "(cached) $ECHO_C" >&6
20471else
20472
20473 cat >conftest.$ac_ext <<_ACEOF
20474/* confdefs.h. */
20475_ACEOF
20476cat confdefs.h >>conftest.$ac_ext
20477cat >>conftest.$ac_ext <<_ACEOF
20478/* end confdefs.h. */
20479#include <features.h>
20480int
20481main ()
20482{
20483
20484 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
20485 #error not glibc2.1
20486 #endif
20487
20488 ;
20489 return 0;
20490}
20491_ACEOF
20492rm -f conftest.$ac_objext
20493if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20494 (eval $ac_compile) 2>conftest.er1
a848cd7e 20495 ac_status=$?
ac1cb8d3
VS
20496 grep -v '^ *+' conftest.er1 >conftest.err
20497 rm -f conftest.er1
20498 cat conftest.err >&5
a848cd7e
SC
20499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500 (exit $ac_status); } &&
5294a27e 20501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20503 (eval $ac_try) 2>&5
20504 ac_status=$?
20505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506 (exit $ac_status); }; } &&
20507 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20509 (eval $ac_try) 2>&5
20510 ac_status=$?
20511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20512 (exit $ac_status); }; }; then
20513
20514 wx_cv_lib_glibc21=yes
20515
20516else
20517 echo "$as_me: failed program was:" >&5
20518sed 's/^/| /' conftest.$ac_ext >&5
20519
20520
20521 wx_cv_lib_glibc21=no
20522
20523
20524fi
ac1cb8d3 20525rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20526
20527fi
20528echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
20529echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
20530 if test "$wx_cv_lib_glibc21" = "yes"; then
20531 cat >>confdefs.h <<\_ACEOF
20532#define wxHAVE_GLIBC2 1
20533_ACEOF
20534
20535 fi
20536fi
20537
20538if test "x$wx_cv_lib_glibc21" = "xyes"; then
20539 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
20540 cat >>confdefs.h <<\_ACEOF
20541#define _GNU_SOURCE 1
20542_ACEOF
20543
20544 fi
20545fi
20546
20547
20548
20549if test "$wxUSE_REGEX" != "no"; then
20550 cat >>confdefs.h <<\_ACEOF
20551#define wxUSE_REGEX 1
20552_ACEOF
20553
20554
20555 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
20556 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
20557echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
20558 wxUSE_REGEX=builtin
20559 fi
20560
20561 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
20562 if test "${ac_cv_header_regex_h+set}" = set; then
20563 echo "$as_me:$LINENO: checking for regex.h" >&5
20564echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20565if test "${ac_cv_header_regex_h+set}" = set; then
20566 echo $ECHO_N "(cached) $ECHO_C" >&6
20567fi
20568echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20569echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20570else
20571 # Is the header compilable?
20572echo "$as_me:$LINENO: checking regex.h usability" >&5
20573echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
20574cat >conftest.$ac_ext <<_ACEOF
20575/* confdefs.h. */
20576_ACEOF
20577cat confdefs.h >>conftest.$ac_ext
20578cat >>conftest.$ac_ext <<_ACEOF
20579/* end confdefs.h. */
20580$ac_includes_default
20581#include <regex.h>
20582_ACEOF
20583rm -f conftest.$ac_objext
20584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20585 (eval $ac_compile) 2>conftest.er1
a848cd7e 20586 ac_status=$?
ac1cb8d3
VS
20587 grep -v '^ *+' conftest.er1 >conftest.err
20588 rm -f conftest.er1
20589 cat conftest.err >&5
a848cd7e
SC
20590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20591 (exit $ac_status); } &&
5294a27e 20592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20594 (eval $ac_try) 2>&5
20595 ac_status=$?
20596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20597 (exit $ac_status); }; } &&
20598 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20600 (eval $ac_try) 2>&5
20601 ac_status=$?
20602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20603 (exit $ac_status); }; }; then
20604 ac_header_compiler=yes
20605else
20606 echo "$as_me: failed program was:" >&5
20607sed 's/^/| /' conftest.$ac_ext >&5
20608
20609ac_header_compiler=no
20610fi
ac1cb8d3 20611rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20612echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20613echo "${ECHO_T}$ac_header_compiler" >&6
20614
20615# Is the header present?
20616echo "$as_me:$LINENO: checking regex.h presence" >&5
20617echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
20618cat >conftest.$ac_ext <<_ACEOF
20619/* confdefs.h. */
20620_ACEOF
20621cat confdefs.h >>conftest.$ac_ext
20622cat >>conftest.$ac_ext <<_ACEOF
20623/* end confdefs.h. */
20624#include <regex.h>
20625_ACEOF
20626if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20627 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20628 ac_status=$?
20629 grep -v '^ *+' conftest.er1 >conftest.err
20630 rm -f conftest.er1
20631 cat conftest.err >&5
20632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20633 (exit $ac_status); } >/dev/null; then
20634 if test -s conftest.err; then
20635 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20636 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20637 else
20638 ac_cpp_err=
20639 fi
20640else
20641 ac_cpp_err=yes
20642fi
20643if test -z "$ac_cpp_err"; then
20644 ac_header_preproc=yes
20645else
20646 echo "$as_me: failed program was:" >&5
20647sed 's/^/| /' conftest.$ac_ext >&5
20648
20649 ac_header_preproc=no
20650fi
20651rm -f conftest.err conftest.$ac_ext
20652echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20653echo "${ECHO_T}$ac_header_preproc" >&6
20654
20655# So? What about this header?
ac1cb8d3
VS
20656case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20657 yes:no: )
a848cd7e
SC
20658 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
20659echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20660 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
20661echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
20662 ac_header_preproc=yes
a848cd7e 20663 ;;
ac1cb8d3 20664 no:yes:* )
a848cd7e
SC
20665 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
20666echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20667 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
20668echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
20669 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
20670echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
20671 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
20672echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20673 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
20674echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20675 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
20676echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20677 (
20678 cat <<\_ASBOX
ac1cb8d3
VS
20679## ----------------------------------------- ##
20680## Report this to wx-dev@lists.wxwidgets.org ##
20681## ----------------------------------------- ##
a848cd7e
SC
20682_ASBOX
20683 ) |
20684 sed "s/^/$as_me: WARNING: /" >&2
20685 ;;
20686esac
20687echo "$as_me:$LINENO: checking for regex.h" >&5
20688echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20689if test "${ac_cv_header_regex_h+set}" = set; then
20690 echo $ECHO_N "(cached) $ECHO_C" >&6
20691else
20692 ac_cv_header_regex_h=$ac_header_preproc
20693fi
20694echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20695echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20696
20697fi
20698if test $ac_cv_header_regex_h = yes; then
20699
20700for ac_func in regcomp
20701do
20702as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20703echo "$as_me:$LINENO: checking for $ac_func" >&5
20704echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20705if eval "test \"\${$as_ac_var+set}\" = set"; then
20706 echo $ECHO_N "(cached) $ECHO_C" >&6
20707else
20708 cat >conftest.$ac_ext <<_ACEOF
20709/* confdefs.h. */
20710_ACEOF
20711cat confdefs.h >>conftest.$ac_ext
20712cat >>conftest.$ac_ext <<_ACEOF
20713/* end confdefs.h. */
ac1cb8d3
VS
20714/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20716#define $ac_func innocuous_$ac_func
20717
a848cd7e
SC
20718/* System header to define __stub macros and hopefully few prototypes,
20719 which can conflict with char $ac_func (); below.
20720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20721 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 20722
a848cd7e
SC
20723#ifdef __STDC__
20724# include <limits.h>
20725#else
20726# include <assert.h>
20727#endif
ac1cb8d3
VS
20728
20729#undef $ac_func
20730
a848cd7e
SC
20731/* Override any gcc2 internal prototype to avoid an error. */
20732#ifdef __cplusplus
20733extern "C"
20734{
20735#endif
20736/* We use char because int might match the return type of a gcc2
20737 builtin and then its argument prototype would still apply. */
20738char $ac_func ();
20739/* The GNU C library defines this for functions which it implements
20740 to always fail with ENOSYS. Some functions are actually named
20741 something starting with __ and the normal name is an alias. */
20742#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20743choke me
20744#else
20745char (*f) () = $ac_func;
20746#endif
20747#ifdef __cplusplus
20748}
20749#endif
20750
20751int
20752main ()
20753{
20754return f != $ac_func;
20755 ;
20756 return 0;
20757}
20758_ACEOF
20759rm -f conftest.$ac_objext conftest$ac_exeext
20760if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20761 (eval $ac_link) 2>conftest.er1
a848cd7e 20762 ac_status=$?
ac1cb8d3
VS
20763 grep -v '^ *+' conftest.er1 >conftest.err
20764 rm -f conftest.er1
20765 cat conftest.err >&5
a848cd7e
SC
20766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20767 (exit $ac_status); } &&
5294a27e 20768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20770 (eval $ac_try) 2>&5
20771 ac_status=$?
20772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20773 (exit $ac_status); }; } &&
20774 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20776 (eval $ac_try) 2>&5
20777 ac_status=$?
20778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20779 (exit $ac_status); }; }; then
20780 eval "$as_ac_var=yes"
20781else
20782 echo "$as_me: failed program was:" >&5
20783sed 's/^/| /' conftest.$ac_ext >&5
20784
20785eval "$as_ac_var=no"
20786fi
ac1cb8d3
VS
20787rm -f conftest.err conftest.$ac_objext \
20788 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20789fi
20790echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20791echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20792if test `eval echo '${'$as_ac_var'}'` = yes; then
20793 cat >>confdefs.h <<_ACEOF
20794#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20795_ACEOF
20796
20797fi
20798done
20799
20800fi
20801
20802
20803
20804 if test "x$ac_cv_func_regcomp" != "xyes"; then
20805 if test "$wxUSE_REGEX" = "sys" ; then
20806 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
20807echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
20808 { (exit 1); exit 1; }; }
20809 else
20810 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
20811echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
20812 wxUSE_REGEX=builtin
20813 fi
20814 else
20815 wxUSE_REGEX=sys
20816 cat >>confdefs.h <<\_ACEOF
20817#define WX_NO_REGEX_ADVANCED 1
20818_ACEOF
20819
20820 fi
20821 fi
dd3a2d96
VZ
20822else
20823 cat >>confdefs.h <<\_ACEOF
20824#define wxUSE_REGEX 0
20825_ACEOF
20826
a848cd7e
SC
20827fi
20828
20829
20830ZLIB_LINK=
20831if test "$wxUSE_ZLIB" != "no" ; then
20832 cat >>confdefs.h <<\_ACEOF
20833#define wxUSE_ZLIB 1
20834_ACEOF
20835
20836
20837 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
20838 if test "$USE_DARWIN" = 1; then
20839 system_zlib_h_ok="yes"
20840 else
20841 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
20842echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
20843if test "${ac_cv_header_zlib_h+set}" = set; then
20844 echo $ECHO_N "(cached) $ECHO_C" >&6
20845else
20846 if test "$cross_compiling" = yes; then
20847 unset ac_cv_header_zlib_h
20848
20849else
20850 cat >conftest.$ac_ext <<_ACEOF
20851/* confdefs.h. */
20852_ACEOF
20853cat confdefs.h >>conftest.$ac_ext
20854cat >>conftest.$ac_ext <<_ACEOF
20855/* end confdefs.h. */
20856
20857 #include <zlib.h>
20858 #include <stdio.h>
20859
20860 int main()
20861 {
20862 FILE *f=fopen("conftestval", "w");
20863 if (!f) exit(1);
20864 fprintf(f, "%s",
20865 ZLIB_VERSION[0] == '1' &&
20866 (ZLIB_VERSION[2] > '1' ||
20867 (ZLIB_VERSION[2] == '1' &&
20868 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
20869 exit(0);
20870 }
20871
20872_ACEOF
20873rm -f conftest$ac_exeext
20874if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20875 (eval $ac_link) 2>&5
20876 ac_status=$?
20877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20878 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20880 (eval $ac_try) 2>&5
20881 ac_status=$?
20882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883 (exit $ac_status); }; }; then
20884 ac_cv_header_zlib_h=`cat conftestval`
20885else
20886 echo "$as_me: program exited with status $ac_status" >&5
20887echo "$as_me: failed program was:" >&5
20888sed 's/^/| /' conftest.$ac_ext >&5
20889
20890( exit $ac_status )
20891ac_cv_header_zlib_h=no
20892fi
ac1cb8d3 20893rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20894fi
20895
20896fi
20897echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20898echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20899 if test "${ac_cv_header_zlib_h+set}" = set; then
20900 echo "$as_me:$LINENO: checking for zlib.h" >&5
20901echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
20902if test "${ac_cv_header_zlib_h+set}" = set; then
20903 echo $ECHO_N "(cached) $ECHO_C" >&6
20904fi
20905echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20906echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20907else
20908 # Is the header compilable?
20909echo "$as_me:$LINENO: checking zlib.h usability" >&5
20910echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
20911cat >conftest.$ac_ext <<_ACEOF
20912/* confdefs.h. */
20913_ACEOF
20914cat confdefs.h >>conftest.$ac_ext
20915cat >>conftest.$ac_ext <<_ACEOF
20916/* end confdefs.h. */
20917$ac_includes_default
20918#include <zlib.h>
20919_ACEOF
20920rm -f conftest.$ac_objext
20921if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20922 (eval $ac_compile) 2>conftest.er1
a848cd7e 20923 ac_status=$?
ac1cb8d3
VS
20924 grep -v '^ *+' conftest.er1 >conftest.err
20925 rm -f conftest.er1
20926 cat conftest.err >&5
a848cd7e
SC
20927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20928 (exit $ac_status); } &&
5294a27e 20929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20931 (eval $ac_try) 2>&5
20932 ac_status=$?
20933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20934 (exit $ac_status); }; } &&
20935 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20937 (eval $ac_try) 2>&5
20938 ac_status=$?
20939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20940 (exit $ac_status); }; }; then
20941 ac_header_compiler=yes
20942else
20943 echo "$as_me: failed program was:" >&5
20944sed 's/^/| /' conftest.$ac_ext >&5
20945
20946ac_header_compiler=no
20947fi
ac1cb8d3 20948rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20949echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20950echo "${ECHO_T}$ac_header_compiler" >&6
20951
20952# Is the header present?
20953echo "$as_me:$LINENO: checking zlib.h presence" >&5
20954echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
20955cat >conftest.$ac_ext <<_ACEOF
20956/* confdefs.h. */
20957_ACEOF
20958cat confdefs.h >>conftest.$ac_ext
20959cat >>conftest.$ac_ext <<_ACEOF
20960/* end confdefs.h. */
20961#include <zlib.h>
20962_ACEOF
20963if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20964 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20965 ac_status=$?
20966 grep -v '^ *+' conftest.er1 >conftest.err
20967 rm -f conftest.er1
20968 cat conftest.err >&5
20969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20970 (exit $ac_status); } >/dev/null; then
20971 if test -s conftest.err; then
20972 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20973 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20974 else
20975 ac_cpp_err=
20976 fi
20977else
20978 ac_cpp_err=yes
20979fi
20980if test -z "$ac_cpp_err"; then
20981 ac_header_preproc=yes
20982else
20983 echo "$as_me: failed program was:" >&5
20984sed 's/^/| /' conftest.$ac_ext >&5
20985
20986 ac_header_preproc=no
20987fi
20988rm -f conftest.err conftest.$ac_ext
20989echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20990echo "${ECHO_T}$ac_header_preproc" >&6
20991
20992# So? What about this header?
ac1cb8d3
VS
20993case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20994 yes:no: )
a848cd7e
SC
20995 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
20996echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20997 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
20998echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
20999 ac_header_preproc=yes
a848cd7e 21000 ;;
ac1cb8d3 21001 no:yes:* )
a848cd7e
SC
21002 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
21003echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21004 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
21005echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
21006 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
21007echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
21008 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
21009echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21010 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
21011echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21012 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
21013echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21014 (
21015 cat <<\_ASBOX
ac1cb8d3
VS
21016## ----------------------------------------- ##
21017## Report this to wx-dev@lists.wxwidgets.org ##
21018## ----------------------------------------- ##
a848cd7e
SC
21019_ASBOX
21020 ) |
21021 sed "s/^/$as_me: WARNING: /" >&2
21022 ;;
21023esac
21024echo "$as_me:$LINENO: checking for zlib.h" >&5
21025echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
21026if test "${ac_cv_header_zlib_h+set}" = set; then
21027 echo $ECHO_N "(cached) $ECHO_C" >&6
21028else
21029 ac_cv_header_zlib_h=$ac_header_preproc
21030fi
21031echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
21032echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
21033
21034fi
21035
21036
21037
21038 system_zlib_h_ok=$ac_cv_header_zlib_h
21039 fi
21040
21041 if test "$system_zlib_h_ok" = "yes"; then
21042 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
21043echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
21044if test "${ac_cv_lib_z_deflate+set}" = set; then
21045 echo $ECHO_N "(cached) $ECHO_C" >&6
21046else
21047 ac_check_lib_save_LIBS=$LIBS
21048LIBS="-lz $LIBS"
21049cat >conftest.$ac_ext <<_ACEOF
21050/* confdefs.h. */
21051_ACEOF
21052cat confdefs.h >>conftest.$ac_ext
21053cat >>conftest.$ac_ext <<_ACEOF
21054/* end confdefs.h. */
21055
21056/* Override any gcc2 internal prototype to avoid an error. */
21057#ifdef __cplusplus
21058extern "C"
21059#endif
21060/* We use char because int might match the return type of a gcc2
21061 builtin and then its argument prototype would still apply. */
21062char deflate ();
21063int
21064main ()
21065{
21066deflate ();
21067 ;
21068 return 0;
21069}
21070_ACEOF
21071rm -f conftest.$ac_objext conftest$ac_exeext
21072if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21073 (eval $ac_link) 2>conftest.er1
a848cd7e 21074 ac_status=$?
ac1cb8d3
VS
21075 grep -v '^ *+' conftest.er1 >conftest.err
21076 rm -f conftest.er1
21077 cat conftest.err >&5
a848cd7e
SC
21078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21079 (exit $ac_status); } &&
5294a27e 21080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21082 (eval $ac_try) 2>&5
21083 ac_status=$?
21084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21085 (exit $ac_status); }; } &&
21086 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21088 (eval $ac_try) 2>&5
21089 ac_status=$?
21090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21091 (exit $ac_status); }; }; then
21092 ac_cv_lib_z_deflate=yes
21093else
21094 echo "$as_me: failed program was:" >&5
21095sed 's/^/| /' conftest.$ac_ext >&5
21096
21097ac_cv_lib_z_deflate=no
21098fi
ac1cb8d3
VS
21099rm -f conftest.err conftest.$ac_objext \
21100 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21101LIBS=$ac_check_lib_save_LIBS
21102fi
21103echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
21104echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
21105if test $ac_cv_lib_z_deflate = yes; then
21106 ZLIB_LINK=" -lz"
21107fi
21108
21109 fi
21110
21111 if test "x$ZLIB_LINK" = "x" ; then
21112 if test "$wxUSE_ZLIB" = "sys" ; then
21113 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
21114echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
21115 { (exit 1); exit 1; }; }
21116 else
21117 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
21118echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
21119 wxUSE_ZLIB=builtin
21120 fi
21121 else
21122 wxUSE_ZLIB=sys
21123 fi
21124 fi
dd3a2d96
VZ
21125else
21126 cat >>confdefs.h <<\_ACEOF
21127#define wxUSE_ZLIB 0
21128_ACEOF
21129
a848cd7e
SC
21130fi
21131
21132
21133PNG_LINK=
21134if test "$wxUSE_LIBPNG" != "no" ; then
21135 cat >>confdefs.h <<\_ACEOF
21136#define wxUSE_LIBPNG 1
21137_ACEOF
21138
21139
21140 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
21141 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
21142echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
21143 wxUSE_LIBPNG=sys
21144 fi
21145
21146 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
21147 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
21148echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
21149 wxUSE_LIBPNG=builtin
21150 fi
21151
21152 if test "$wxUSE_MGL" != 1 ; then
21153 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
21154 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
21155echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
21156if test "${ac_cv_header_png_h+set}" = set; then
21157 echo $ECHO_N "(cached) $ECHO_C" >&6
21158else
21159 if test "$cross_compiling" = yes; then
21160 unset ac_cv_header_png_h
21161
21162else
21163 cat >conftest.$ac_ext <<_ACEOF
21164/* confdefs.h. */
21165_ACEOF
21166cat confdefs.h >>conftest.$ac_ext
21167cat >>conftest.$ac_ext <<_ACEOF
21168/* end confdefs.h. */
21169
21170 #include <png.h>
21171 #include <stdio.h>
21172
21173 int main()
21174 {
21175 FILE *f=fopen("conftestval", "w");
21176 if (!f) exit(1);
21177 fprintf(f, "%s",
21178 PNG_LIBPNG_VER > 90 ? "yes" : "no");
21179 exit(0);
21180 }
21181
21182_ACEOF
21183rm -f conftest$ac_exeext
21184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21185 (eval $ac_link) 2>&5
21186 ac_status=$?
21187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21188 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21190 (eval $ac_try) 2>&5
21191 ac_status=$?
21192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21193 (exit $ac_status); }; }; then
21194 ac_cv_header_png_h=`cat conftestval`
21195else
21196 echo "$as_me: program exited with status $ac_status" >&5
21197echo "$as_me: failed program was:" >&5
21198sed 's/^/| /' conftest.$ac_ext >&5
21199
21200( exit $ac_status )
21201ac_cv_header_png_h=no
21202fi
ac1cb8d3 21203rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21204fi
21205
21206fi
21207echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
21208echo "${ECHO_T}$ac_cv_header_png_h" >&6
21209 if test "${ac_cv_header_png_h+set}" = set; then
21210 echo "$as_me:$LINENO: checking for png.h" >&5
21211echo $ECHO_N "checking for png.h... $ECHO_C" >&6
21212if test "${ac_cv_header_png_h+set}" = set; then
21213 echo $ECHO_N "(cached) $ECHO_C" >&6
21214fi
21215echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
21216echo "${ECHO_T}$ac_cv_header_png_h" >&6
21217else
21218 # Is the header compilable?
21219echo "$as_me:$LINENO: checking png.h usability" >&5
21220echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
21221cat >conftest.$ac_ext <<_ACEOF
21222/* confdefs.h. */
21223_ACEOF
21224cat confdefs.h >>conftest.$ac_ext
21225cat >>conftest.$ac_ext <<_ACEOF
21226/* end confdefs.h. */
21227$ac_includes_default
21228#include <png.h>
21229_ACEOF
21230rm -f conftest.$ac_objext
21231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21232 (eval $ac_compile) 2>conftest.er1
a848cd7e 21233 ac_status=$?
ac1cb8d3
VS
21234 grep -v '^ *+' conftest.er1 >conftest.err
21235 rm -f conftest.er1
21236 cat conftest.err >&5
a848cd7e
SC
21237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21238 (exit $ac_status); } &&
5294a27e 21239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21241 (eval $ac_try) 2>&5
21242 ac_status=$?
21243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21244 (exit $ac_status); }; } &&
21245 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21247 (eval $ac_try) 2>&5
21248 ac_status=$?
21249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250 (exit $ac_status); }; }; then
21251 ac_header_compiler=yes
21252else
21253 echo "$as_me: failed program was:" >&5
21254sed 's/^/| /' conftest.$ac_ext >&5
21255
21256ac_header_compiler=no
21257fi
ac1cb8d3 21258rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21259echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21260echo "${ECHO_T}$ac_header_compiler" >&6
21261
21262# Is the header present?
21263echo "$as_me:$LINENO: checking png.h presence" >&5
21264echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
21265cat >conftest.$ac_ext <<_ACEOF
21266/* confdefs.h. */
21267_ACEOF
21268cat confdefs.h >>conftest.$ac_ext
21269cat >>conftest.$ac_ext <<_ACEOF
21270/* end confdefs.h. */
21271#include <png.h>
21272_ACEOF
21273if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21274 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21275 ac_status=$?
21276 grep -v '^ *+' conftest.er1 >conftest.err
21277 rm -f conftest.er1
21278 cat conftest.err >&5
21279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21280 (exit $ac_status); } >/dev/null; then
21281 if test -s conftest.err; then
21282 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21283 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21284 else
21285 ac_cpp_err=
21286 fi
21287else
21288 ac_cpp_err=yes
21289fi
21290if test -z "$ac_cpp_err"; then
21291 ac_header_preproc=yes
21292else
21293 echo "$as_me: failed program was:" >&5
21294sed 's/^/| /' conftest.$ac_ext >&5
21295
21296 ac_header_preproc=no
21297fi
21298rm -f conftest.err conftest.$ac_ext
21299echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21300echo "${ECHO_T}$ac_header_preproc" >&6
21301
21302# So? What about this header?
ac1cb8d3
VS
21303case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21304 yes:no: )
a848cd7e
SC
21305 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
21306echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21307 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
21308echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
21309 ac_header_preproc=yes
a848cd7e 21310 ;;
ac1cb8d3 21311 no:yes:* )
a848cd7e
SC
21312 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
21313echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21314 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
21315echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
21316 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
21317echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
21318 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
21319echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21320 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
21321echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21322 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
21323echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21324 (
21325 cat <<\_ASBOX
ac1cb8d3
VS
21326## ----------------------------------------- ##
21327## Report this to wx-dev@lists.wxwidgets.org ##
21328## ----------------------------------------- ##
a848cd7e
SC
21329_ASBOX
21330 ) |
21331 sed "s/^/$as_me: WARNING: /" >&2
21332 ;;
21333esac
21334echo "$as_me:$LINENO: checking for png.h" >&5
21335echo $ECHO_N "checking for png.h... $ECHO_C" >&6
21336if test "${ac_cv_header_png_h+set}" = set; then
21337 echo $ECHO_N "(cached) $ECHO_C" >&6
21338else
21339 ac_cv_header_png_h=$ac_header_preproc
21340fi
21341echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
21342echo "${ECHO_T}$ac_cv_header_png_h" >&6
21343
21344fi
21345
21346
21347
21348 if test "$ac_cv_header_png_h" = "yes"; then
21349 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
21350echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
21351if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
21352 echo $ECHO_N "(cached) $ECHO_C" >&6
21353else
21354 ac_check_lib_save_LIBS=$LIBS
21355LIBS="-lpng -lz -lm $LIBS"
21356cat >conftest.$ac_ext <<_ACEOF
21357/* confdefs.h. */
21358_ACEOF
21359cat confdefs.h >>conftest.$ac_ext
21360cat >>conftest.$ac_ext <<_ACEOF
21361/* end confdefs.h. */
21362
21363/* Override any gcc2 internal prototype to avoid an error. */
21364#ifdef __cplusplus
21365extern "C"
21366#endif
21367/* We use char because int might match the return type of a gcc2
21368 builtin and then its argument prototype would still apply. */
21369char png_check_sig ();
21370int
21371main ()
21372{
21373png_check_sig ();
21374 ;
21375 return 0;
21376}
21377_ACEOF
21378rm -f conftest.$ac_objext conftest$ac_exeext
21379if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21380 (eval $ac_link) 2>conftest.er1
a848cd7e 21381 ac_status=$?
ac1cb8d3
VS
21382 grep -v '^ *+' conftest.er1 >conftest.err
21383 rm -f conftest.er1
21384 cat conftest.err >&5
a848cd7e
SC
21385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21386 (exit $ac_status); } &&
5294a27e 21387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21389 (eval $ac_try) 2>&5
21390 ac_status=$?
21391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21392 (exit $ac_status); }; } &&
21393 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21395 (eval $ac_try) 2>&5
21396 ac_status=$?
21397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21398 (exit $ac_status); }; }; then
21399 ac_cv_lib_png_png_check_sig=yes
21400else
21401 echo "$as_me: failed program was:" >&5
21402sed 's/^/| /' conftest.$ac_ext >&5
21403
21404ac_cv_lib_png_png_check_sig=no
21405fi
ac1cb8d3
VS
21406rm -f conftest.err conftest.$ac_objext \
21407 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21408LIBS=$ac_check_lib_save_LIBS
21409fi
21410echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
21411echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
21412if test $ac_cv_lib_png_png_check_sig = yes; then
21413 PNG_LINK=" -lpng -lz"
21414fi
21415
21416 fi
21417
21418 if test "x$PNG_LINK" = "x" ; then
21419 if test "$wxUSE_LIBPNG" = "sys" ; then
21420 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
21421echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
21422 { (exit 1); exit 1; }; }
21423 else
21424 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
21425echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
21426 wxUSE_LIBPNG=builtin
21427 fi
21428 else
21429 wxUSE_LIBPNG=sys
21430 fi
21431 fi
21432 fi
21433
21434 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
dd3a2d96
VZ
21435else
21436 cat >>confdefs.h <<\_ACEOF
21437#define wxUSE_LIBPNG 0
21438_ACEOF
21439
a848cd7e
SC
21440fi
21441
21442
21443JPEG_LINK=
21444if test "$wxUSE_LIBJPEG" != "no" ; then
21445 cat >>confdefs.h <<\_ACEOF
21446#define wxUSE_LIBJPEG 1
21447_ACEOF
21448
21449
21450 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
21451 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
21452echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
21453 wxUSE_LIBJPEG=sys
21454 fi
21455
21456 if test "$wxUSE_MGL" != 1 ; then
21457 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
21458 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
21459echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
21460 if test "${ac_cv_header_jpeglib_h+set}" = set; then
21461 echo $ECHO_N "(cached) $ECHO_C" >&6
21462else
21463 cat >conftest.$ac_ext <<_ACEOF
21464/* confdefs.h. */
21465_ACEOF
21466cat confdefs.h >>conftest.$ac_ext
21467cat >>conftest.$ac_ext <<_ACEOF
21468/* end confdefs.h. */
21469
21470 #undef HAVE_STDLIB_H
21471 #include <stdio.h>
21472 #include <jpeglib.h>
21473
21474int
21475main ()
21476{
21477
21478
21479 ;
21480 return 0;
21481}
21482_ACEOF
21483rm -f conftest.$ac_objext
21484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21485 (eval $ac_compile) 2>conftest.er1
a848cd7e 21486 ac_status=$?
ac1cb8d3
VS
21487 grep -v '^ *+' conftest.er1 >conftest.err
21488 rm -f conftest.er1
21489 cat conftest.err >&5
a848cd7e
SC
21490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21491 (exit $ac_status); } &&
5294a27e 21492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21494 (eval $ac_try) 2>&5
21495 ac_status=$?
21496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21497 (exit $ac_status); }; } &&
21498 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21500 (eval $ac_try) 2>&5
21501 ac_status=$?
21502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21503 (exit $ac_status); }; }; then
21504 ac_cv_header_jpeglib_h=yes
21505else
21506 echo "$as_me: failed program was:" >&5
21507sed 's/^/| /' conftest.$ac_ext >&5
21508
21509ac_cv_header_jpeglib_h=no
21510
21511fi
ac1cb8d3 21512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21513
21514fi
21515
21516 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
21517echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
21518
21519 if test "$ac_cv_header_jpeglib_h" = "yes"; then
21520 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
21521echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
21522if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
21523 echo $ECHO_N "(cached) $ECHO_C" >&6
21524else
21525 ac_check_lib_save_LIBS=$LIBS
21526LIBS="-ljpeg $LIBS"
21527cat >conftest.$ac_ext <<_ACEOF
21528/* confdefs.h. */
21529_ACEOF
21530cat confdefs.h >>conftest.$ac_ext
21531cat >>conftest.$ac_ext <<_ACEOF
21532/* end confdefs.h. */
21533
21534/* Override any gcc2 internal prototype to avoid an error. */
21535#ifdef __cplusplus
21536extern "C"
21537#endif
21538/* We use char because int might match the return type of a gcc2
21539 builtin and then its argument prototype would still apply. */
21540char jpeg_read_header ();
21541int
21542main ()
21543{
21544jpeg_read_header ();
21545 ;
21546 return 0;
21547}
21548_ACEOF
21549rm -f conftest.$ac_objext conftest$ac_exeext
21550if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21551 (eval $ac_link) 2>conftest.er1
a848cd7e 21552 ac_status=$?
ac1cb8d3
VS
21553 grep -v '^ *+' conftest.er1 >conftest.err
21554 rm -f conftest.er1
21555 cat conftest.err >&5
a848cd7e
SC
21556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21557 (exit $ac_status); } &&
5294a27e 21558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21560 (eval $ac_try) 2>&5
21561 ac_status=$?
21562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21563 (exit $ac_status); }; } &&
21564 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21566 (eval $ac_try) 2>&5
21567 ac_status=$?
21568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21569 (exit $ac_status); }; }; then
21570 ac_cv_lib_jpeg_jpeg_read_header=yes
21571else
21572 echo "$as_me: failed program was:" >&5
21573sed 's/^/| /' conftest.$ac_ext >&5
21574
21575ac_cv_lib_jpeg_jpeg_read_header=no
21576fi
ac1cb8d3
VS
21577rm -f conftest.err conftest.$ac_objext \
21578 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21579LIBS=$ac_check_lib_save_LIBS
21580fi
21581echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
21582echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
21583if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21584 JPEG_LINK=" -ljpeg"
21585fi
21586
21587 fi
21588
21589 if test "x$JPEG_LINK" = "x" ; then
21590 if test "$wxUSE_LIBJPEG" = "sys" ; then
21591 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
21592echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
21593 { (exit 1); exit 1; }; }
21594 else
21595 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
21596echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21597 wxUSE_LIBJPEG=builtin
21598 fi
21599 else
21600 wxUSE_LIBJPEG=sys
21601 fi
21602 fi
21603 fi
dd3a2d96
VZ
21604else
21605 cat >>confdefs.h <<\_ACEOF
21606#define wxUSE_LIBJPEG 0
21607_ACEOF
21608
a848cd7e
SC
21609fi
21610
21611
21612TIFF_LINK=
21613TIFF_PREREQ_LINKS=-lm
21614if test "$wxUSE_LIBTIFF" != "no" ; then
21615 cat >>confdefs.h <<\_ACEOF
21616#define wxUSE_LIBTIFF 1
21617_ACEOF
21618
21619
21620 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
21621 if test "$wxUSE_LIBJPEG" = "sys"; then
21622 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
21623 fi
21624 if test "$wxUSE_ZLIB" = "sys"; then
21625 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
21626 fi
21627 if test "${ac_cv_header_tiffio_h+set}" = set; then
21628 echo "$as_me:$LINENO: checking for tiffio.h" >&5
21629echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21630if test "${ac_cv_header_tiffio_h+set}" = set; then
21631 echo $ECHO_N "(cached) $ECHO_C" >&6
21632fi
21633echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21634echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21635else
21636 # Is the header compilable?
21637echo "$as_me:$LINENO: checking tiffio.h usability" >&5
21638echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
21639cat >conftest.$ac_ext <<_ACEOF
21640/* confdefs.h. */
21641_ACEOF
21642cat confdefs.h >>conftest.$ac_ext
21643cat >>conftest.$ac_ext <<_ACEOF
21644/* end confdefs.h. */
21645$ac_includes_default
21646#include <tiffio.h>
21647_ACEOF
21648rm -f conftest.$ac_objext
21649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21650 (eval $ac_compile) 2>conftest.er1
a848cd7e 21651 ac_status=$?
ac1cb8d3
VS
21652 grep -v '^ *+' conftest.er1 >conftest.err
21653 rm -f conftest.er1
21654 cat conftest.err >&5
a848cd7e
SC
21655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656 (exit $ac_status); } &&
5294a27e 21657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21659 (eval $ac_try) 2>&5
21660 ac_status=$?
21661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21662 (exit $ac_status); }; } &&
21663 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21665 (eval $ac_try) 2>&5
21666 ac_status=$?
21667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21668 (exit $ac_status); }; }; then
21669 ac_header_compiler=yes
21670else
21671 echo "$as_me: failed program was:" >&5
21672sed 's/^/| /' conftest.$ac_ext >&5
21673
21674ac_header_compiler=no
21675fi
ac1cb8d3 21676rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21677echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21678echo "${ECHO_T}$ac_header_compiler" >&6
21679
21680# Is the header present?
21681echo "$as_me:$LINENO: checking tiffio.h presence" >&5
21682echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
21683cat >conftest.$ac_ext <<_ACEOF
21684/* confdefs.h. */
21685_ACEOF
21686cat confdefs.h >>conftest.$ac_ext
21687cat >>conftest.$ac_ext <<_ACEOF
21688/* end confdefs.h. */
21689#include <tiffio.h>
21690_ACEOF
21691if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21692 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21693 ac_status=$?
21694 grep -v '^ *+' conftest.er1 >conftest.err
21695 rm -f conftest.er1
21696 cat conftest.err >&5
21697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21698 (exit $ac_status); } >/dev/null; then
21699 if test -s conftest.err; then
21700 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21701 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21702 else
21703 ac_cpp_err=
21704 fi
21705else
21706 ac_cpp_err=yes
21707fi
21708if test -z "$ac_cpp_err"; then
21709 ac_header_preproc=yes
21710else
21711 echo "$as_me: failed program was:" >&5
21712sed 's/^/| /' conftest.$ac_ext >&5
21713
21714 ac_header_preproc=no
21715fi
21716rm -f conftest.err conftest.$ac_ext
21717echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21718echo "${ECHO_T}$ac_header_preproc" >&6
21719
21720# So? What about this header?
ac1cb8d3
VS
21721case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21722 yes:no: )
a848cd7e
SC
21723 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
21724echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21725 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
21726echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
21727 ac_header_preproc=yes
a848cd7e 21728 ;;
ac1cb8d3 21729 no:yes:* )
a848cd7e
SC
21730 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
21731echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21732 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
21733echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
21734 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
21735echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
21736 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
21737echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21738 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
21739echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21740 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
21741echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21742 (
21743 cat <<\_ASBOX
ac1cb8d3
VS
21744## ----------------------------------------- ##
21745## Report this to wx-dev@lists.wxwidgets.org ##
21746## ----------------------------------------- ##
a848cd7e
SC
21747_ASBOX
21748 ) |
21749 sed "s/^/$as_me: WARNING: /" >&2
21750 ;;
21751esac
21752echo "$as_me:$LINENO: checking for tiffio.h" >&5
21753echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21754if test "${ac_cv_header_tiffio_h+set}" = set; then
21755 echo $ECHO_N "(cached) $ECHO_C" >&6
21756else
21757 ac_cv_header_tiffio_h=$ac_header_preproc
21758fi
21759echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21760echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21761
21762fi
21763if test $ac_cv_header_tiffio_h = yes; then
21764
21765 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
21766echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
21767if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
21768 echo $ECHO_N "(cached) $ECHO_C" >&6
21769else
21770 ac_check_lib_save_LIBS=$LIBS
21771LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
21772cat >conftest.$ac_ext <<_ACEOF
21773/* confdefs.h. */
21774_ACEOF
21775cat confdefs.h >>conftest.$ac_ext
21776cat >>conftest.$ac_ext <<_ACEOF
21777/* end confdefs.h. */
21778
21779/* Override any gcc2 internal prototype to avoid an error. */
21780#ifdef __cplusplus
21781extern "C"
21782#endif
21783/* We use char because int might match the return type of a gcc2
21784 builtin and then its argument prototype would still apply. */
21785char TIFFError ();
21786int
21787main ()
21788{
21789TIFFError ();
21790 ;
21791 return 0;
21792}
21793_ACEOF
21794rm -f conftest.$ac_objext conftest$ac_exeext
21795if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21796 (eval $ac_link) 2>conftest.er1
a848cd7e 21797 ac_status=$?
ac1cb8d3
VS
21798 grep -v '^ *+' conftest.er1 >conftest.err
21799 rm -f conftest.er1
21800 cat conftest.err >&5
a848cd7e
SC
21801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21802 (exit $ac_status); } &&
5294a27e 21803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21805 (eval $ac_try) 2>&5
21806 ac_status=$?
21807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21808 (exit $ac_status); }; } &&
21809 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21811 (eval $ac_try) 2>&5
21812 ac_status=$?
21813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21814 (exit $ac_status); }; }; then
21815 ac_cv_lib_tiff_TIFFError=yes
21816else
21817 echo "$as_me: failed program was:" >&5
21818sed 's/^/| /' conftest.$ac_ext >&5
21819
21820ac_cv_lib_tiff_TIFFError=no
21821fi
ac1cb8d3
VS
21822rm -f conftest.err conftest.$ac_objext \
21823 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21824LIBS=$ac_check_lib_save_LIBS
21825fi
21826echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
21827echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
21828if test $ac_cv_lib_tiff_TIFFError = yes; then
21829 TIFF_LINK=" -ltiff"
21830fi
21831
21832
21833
21834fi
21835
21836
21837
21838 if test "x$TIFF_LINK" = "x" ; then
21839 if test "$wxUSE_LIBTIFF" = "sys" ; then
21840 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
21841echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
21842 { (exit 1); exit 1; }; }
21843 else
21844 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
21845echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
21846 wxUSE_LIBTIFF=builtin
21847 fi
21848 else
21849 wxUSE_LIBTIFF=sys
21850 fi
21851 fi
dd3a2d96
VZ
21852else
21853 cat >>confdefs.h <<\_ACEOF
21854#define wxUSE_LIBTIFF 0
21855_ACEOF
21856
a848cd7e
SC
21857fi
21858
21859
21860if test "$wxUSE_EXPAT" != "no"; then
21861 wxUSE_XML=yes
21862 cat >>confdefs.h <<\_ACEOF
21863#define wxUSE_EXPAT 1
21864_ACEOF
21865
21866 cat >>confdefs.h <<\_ACEOF
21867#define wxUSE_XML 1
21868_ACEOF
21869
21870
21871 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
21872 if test "${ac_cv_header_expat_h+set}" = set; then
21873 echo "$as_me:$LINENO: checking for expat.h" >&5
21874echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
21875if test "${ac_cv_header_expat_h+set}" = set; then
21876 echo $ECHO_N "(cached) $ECHO_C" >&6
21877fi
21878echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
21879echo "${ECHO_T}$ac_cv_header_expat_h" >&6
21880else
21881 # Is the header compilable?
21882echo "$as_me:$LINENO: checking expat.h usability" >&5
21883echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
21884cat >conftest.$ac_ext <<_ACEOF
21885/* confdefs.h. */
21886_ACEOF
21887cat confdefs.h >>conftest.$ac_ext
21888cat >>conftest.$ac_ext <<_ACEOF
21889/* end confdefs.h. */
21890$ac_includes_default
21891#include <expat.h>
21892_ACEOF
21893rm -f conftest.$ac_objext
21894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21895 (eval $ac_compile) 2>conftest.er1
a848cd7e 21896 ac_status=$?
ac1cb8d3
VS
21897 grep -v '^ *+' conftest.er1 >conftest.err
21898 rm -f conftest.er1
21899 cat conftest.err >&5
a848cd7e
SC
21900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21901 (exit $ac_status); } &&
5294a27e 21902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21904 (eval $ac_try) 2>&5
21905 ac_status=$?
21906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21907 (exit $ac_status); }; } &&
21908 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21910 (eval $ac_try) 2>&5
21911 ac_status=$?
21912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21913 (exit $ac_status); }; }; then
21914 ac_header_compiler=yes
21915else
21916 echo "$as_me: failed program was:" >&5
21917sed 's/^/| /' conftest.$ac_ext >&5
21918
21919ac_header_compiler=no
21920fi
ac1cb8d3 21921rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21922echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21923echo "${ECHO_T}$ac_header_compiler" >&6
21924
21925# Is the header present?
21926echo "$as_me:$LINENO: checking expat.h presence" >&5
21927echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
21928cat >conftest.$ac_ext <<_ACEOF
21929/* confdefs.h. */
21930_ACEOF
21931cat confdefs.h >>conftest.$ac_ext
21932cat >>conftest.$ac_ext <<_ACEOF
21933/* end confdefs.h. */
21934#include <expat.h>
21935_ACEOF
21936if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21937 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21938 ac_status=$?
21939 grep -v '^ *+' conftest.er1 >conftest.err
21940 rm -f conftest.er1
21941 cat conftest.err >&5
21942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21943 (exit $ac_status); } >/dev/null; then
21944 if test -s conftest.err; then
21945 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21946 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21947 else
21948 ac_cpp_err=
21949 fi
21950else
21951 ac_cpp_err=yes
21952fi
21953if test -z "$ac_cpp_err"; then
21954 ac_header_preproc=yes
21955else
21956 echo "$as_me: failed program was:" >&5
21957sed 's/^/| /' conftest.$ac_ext >&5
21958
21959 ac_header_preproc=no
21960fi
21961rm -f conftest.err conftest.$ac_ext
21962echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21963echo "${ECHO_T}$ac_header_preproc" >&6
21964
21965# So? What about this header?
ac1cb8d3
VS
21966case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21967 yes:no: )
a848cd7e
SC
21968 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
21969echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21970 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
21971echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
21972 ac_header_preproc=yes
a848cd7e 21973 ;;
ac1cb8d3 21974 no:yes:* )
a848cd7e
SC
21975 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
21976echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21977 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
21978echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
21979 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
21980echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
21981 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
21982echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21983 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
21984echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21985 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
21986echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21987 (
21988 cat <<\_ASBOX
ac1cb8d3
VS
21989## ----------------------------------------- ##
21990## Report this to wx-dev@lists.wxwidgets.org ##
21991## ----------------------------------------- ##
a848cd7e
SC
21992_ASBOX
21993 ) |
21994 sed "s/^/$as_me: WARNING: /" >&2
21995 ;;
21996esac
21997echo "$as_me:$LINENO: checking for expat.h" >&5
21998echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
21999if test "${ac_cv_header_expat_h+set}" = set; then
22000 echo $ECHO_N "(cached) $ECHO_C" >&6
22001else
22002 ac_cv_header_expat_h=$ac_header_preproc
22003fi
22004echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
22005echo "${ECHO_T}$ac_cv_header_expat_h" >&6
22006
22007fi
22008if test $ac_cv_header_expat_h = yes; then
22009 found_expat_h=1
22010fi
22011
22012
22013 if test "x$found_expat_h" = "x1"; then
22014 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
22015echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
22016if test "${wx_cv_expat_is_not_broken+set}" = set; then
22017 echo $ECHO_N "(cached) $ECHO_C" >&6
22018else
22019
22020
22021
22022 ac_ext=cc
22023ac_cpp='$CXXCPP $CPPFLAGS'
22024ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22025ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22026ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22027
22028 cat >conftest.$ac_ext <<_ACEOF
22029/* confdefs.h. */
22030_ACEOF
22031cat confdefs.h >>conftest.$ac_ext
22032cat >>conftest.$ac_ext <<_ACEOF
22033/* end confdefs.h. */
22034#include <expat.h>
22035int
22036main ()
22037{
22038
22039 ;
22040 return 0;
22041}
22042_ACEOF
22043rm -f conftest.$ac_objext
22044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22045 (eval $ac_compile) 2>conftest.er1
a848cd7e 22046 ac_status=$?
ac1cb8d3
VS
22047 grep -v '^ *+' conftest.er1 >conftest.err
22048 rm -f conftest.er1
22049 cat conftest.err >&5
a848cd7e
SC
22050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22051 (exit $ac_status); } &&
5294a27e 22052 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22054 (eval $ac_try) 2>&5
22055 ac_status=$?
22056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22057 (exit $ac_status); }; } &&
22058 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22060 (eval $ac_try) 2>&5
22061 ac_status=$?
22062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22063 (exit $ac_status); }; }; then
22064 wx_cv_expat_is_not_broken=yes
22065else
22066 echo "$as_me: failed program was:" >&5
22067sed 's/^/| /' conftest.$ac_ext >&5
22068
22069wx_cv_expat_is_not_broken=no
22070
22071fi
ac1cb8d3 22072rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22073 ac_ext=c
22074ac_cpp='$CPP $CPPFLAGS'
22075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22077ac_compiler_gnu=$ac_cv_c_compiler_gnu
22078
22079
22080
22081fi
22082echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
22083echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
22084 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
22085 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
22086echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
22087if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
22088 echo $ECHO_N "(cached) $ECHO_C" >&6
22089else
22090 ac_check_lib_save_LIBS=$LIBS
22091LIBS="-lexpat $LIBS"
22092cat >conftest.$ac_ext <<_ACEOF
22093/* confdefs.h. */
22094_ACEOF
22095cat confdefs.h >>conftest.$ac_ext
22096cat >>conftest.$ac_ext <<_ACEOF
22097/* end confdefs.h. */
22098
22099/* Override any gcc2 internal prototype to avoid an error. */
22100#ifdef __cplusplus
22101extern "C"
22102#endif
22103/* We use char because int might match the return type of a gcc2
22104 builtin and then its argument prototype would still apply. */
22105char XML_ParserCreate ();
22106int
22107main ()
22108{
22109XML_ParserCreate ();
22110 ;
22111 return 0;
22112}
22113_ACEOF
22114rm -f conftest.$ac_objext conftest$ac_exeext
22115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22116 (eval $ac_link) 2>conftest.er1
a848cd7e 22117 ac_status=$?
ac1cb8d3
VS
22118 grep -v '^ *+' conftest.er1 >conftest.err
22119 rm -f conftest.er1
22120 cat conftest.err >&5
a848cd7e
SC
22121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22122 (exit $ac_status); } &&
5294a27e 22123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22125 (eval $ac_try) 2>&5
22126 ac_status=$?
22127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22128 (exit $ac_status); }; } &&
22129 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22131 (eval $ac_try) 2>&5
22132 ac_status=$?
22133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22134 (exit $ac_status); }; }; then
22135 ac_cv_lib_expat_XML_ParserCreate=yes
22136else
22137 echo "$as_me: failed program was:" >&5
22138sed 's/^/| /' conftest.$ac_ext >&5
22139
22140ac_cv_lib_expat_XML_ParserCreate=no
22141fi
ac1cb8d3
VS
22142rm -f conftest.err conftest.$ac_objext \
22143 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22144LIBS=$ac_check_lib_save_LIBS
22145fi
22146echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
22147echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
22148if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
22149 EXPAT_LINK=" -lexpat"
22150fi
22151
22152 fi
22153 fi
22154 if test "x$EXPAT_LINK" = "x" ; then
22155 if test "$wxUSE_EXPAT" = "sys" ; then
22156 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
22157echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
22158 { (exit 1); exit 1; }; }
22159 else
22160 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
22161echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
22162 wxUSE_EXPAT=builtin
22163 fi
22164 else
22165 wxUSE_EXPAT=sys
22166 fi
22167 fi
22168 if test "$wxUSE_EXPAT" = "builtin" ; then
22169
22170
22171subdirs="$subdirs src/expat"
22172
22173 fi
dd3a2d96
VZ
22174else
22175 cat >>confdefs.h <<\_ACEOF
22176#define wxUSE_EXPAT 0
22177_ACEOF
22178
22179 cat >>confdefs.h <<\_ACEOF
22180#define wxUSE_XML 0
22181_ACEOF
22182
a848cd7e
SC
22183fi
22184
22185
22186
22187if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
22188 if test "${ac_cv_header_mspack_h+set}" = set; then
22189 echo "$as_me:$LINENO: checking for mspack.h" >&5
22190echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
22191if test "${ac_cv_header_mspack_h+set}" = set; then
22192 echo $ECHO_N "(cached) $ECHO_C" >&6
22193fi
22194echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
22195echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
22196else
22197 # Is the header compilable?
22198echo "$as_me:$LINENO: checking mspack.h usability" >&5
22199echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
22200cat >conftest.$ac_ext <<_ACEOF
22201/* confdefs.h. */
22202_ACEOF
22203cat confdefs.h >>conftest.$ac_ext
22204cat >>conftest.$ac_ext <<_ACEOF
22205/* end confdefs.h. */
22206$ac_includes_default
22207#include <mspack.h>
22208_ACEOF
22209rm -f conftest.$ac_objext
22210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22211 (eval $ac_compile) 2>conftest.er1
a848cd7e 22212 ac_status=$?
ac1cb8d3
VS
22213 grep -v '^ *+' conftest.er1 >conftest.err
22214 rm -f conftest.er1
22215 cat conftest.err >&5
a848cd7e
SC
22216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22217 (exit $ac_status); } &&
5294a27e 22218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22220 (eval $ac_try) 2>&5
22221 ac_status=$?
22222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22223 (exit $ac_status); }; } &&
22224 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22226 (eval $ac_try) 2>&5
22227 ac_status=$?
22228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22229 (exit $ac_status); }; }; then
22230 ac_header_compiler=yes
22231else
22232 echo "$as_me: failed program was:" >&5
22233sed 's/^/| /' conftest.$ac_ext >&5
22234
22235ac_header_compiler=no
22236fi
ac1cb8d3 22237rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22238echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22239echo "${ECHO_T}$ac_header_compiler" >&6
22240
22241# Is the header present?
22242echo "$as_me:$LINENO: checking mspack.h presence" >&5
22243echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
22244cat >conftest.$ac_ext <<_ACEOF
22245/* confdefs.h. */
22246_ACEOF
22247cat confdefs.h >>conftest.$ac_ext
22248cat >>conftest.$ac_ext <<_ACEOF
22249/* end confdefs.h. */
22250#include <mspack.h>
22251_ACEOF
22252if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22253 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22254 ac_status=$?
22255 grep -v '^ *+' conftest.er1 >conftest.err
22256 rm -f conftest.er1
22257 cat conftest.err >&5
22258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22259 (exit $ac_status); } >/dev/null; then
22260 if test -s conftest.err; then
22261 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22262 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22263 else
22264 ac_cpp_err=
22265 fi
22266else
22267 ac_cpp_err=yes
22268fi
22269if test -z "$ac_cpp_err"; then
22270 ac_header_preproc=yes
22271else
22272 echo "$as_me: failed program was:" >&5
22273sed 's/^/| /' conftest.$ac_ext >&5
22274
22275 ac_header_preproc=no
22276fi
22277rm -f conftest.err conftest.$ac_ext
22278echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22279echo "${ECHO_T}$ac_header_preproc" >&6
22280
22281# So? What about this header?
ac1cb8d3
VS
22282case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22283 yes:no: )
a848cd7e
SC
22284 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
22285echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22286 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
22287echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
22288 ac_header_preproc=yes
a848cd7e 22289 ;;
ac1cb8d3 22290 no:yes:* )
a848cd7e
SC
22291 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
22292echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22293 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
22294echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
22295 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
22296echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
22297 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
22298echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22299 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
22300echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22301 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
22302echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22303 (
22304 cat <<\_ASBOX
ac1cb8d3
VS
22305## ----------------------------------------- ##
22306## Report this to wx-dev@lists.wxwidgets.org ##
22307## ----------------------------------------- ##
a848cd7e
SC
22308_ASBOX
22309 ) |
22310 sed "s/^/$as_me: WARNING: /" >&2
22311 ;;
22312esac
22313echo "$as_me:$LINENO: checking for mspack.h" >&5
22314echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
22315if test "${ac_cv_header_mspack_h+set}" = set; then
22316 echo $ECHO_N "(cached) $ECHO_C" >&6
22317else
22318 ac_cv_header_mspack_h=$ac_header_preproc
22319fi
22320echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
22321echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
22322
22323fi
22324if test $ac_cv_header_mspack_h = yes; then
22325 found_mspack_h=1
22326fi
22327
22328
22329 if test "x$found_mspack_h" = "x1"; then
22330 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
22331echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
22332if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
22333 echo $ECHO_N "(cached) $ECHO_C" >&6
22334else
22335 ac_check_lib_save_LIBS=$LIBS
22336LIBS="-lmspack $LIBS"
22337cat >conftest.$ac_ext <<_ACEOF
22338/* confdefs.h. */
22339_ACEOF
22340cat confdefs.h >>conftest.$ac_ext
22341cat >>conftest.$ac_ext <<_ACEOF
22342/* end confdefs.h. */
22343
22344/* Override any gcc2 internal prototype to avoid an error. */
22345#ifdef __cplusplus
22346extern "C"
22347#endif
22348/* We use char because int might match the return type of a gcc2
22349 builtin and then its argument prototype would still apply. */
22350char mspack_create_chm_decompressor ();
22351int
22352main ()
22353{
22354mspack_create_chm_decompressor ();
22355 ;
22356 return 0;
22357}
22358_ACEOF
22359rm -f conftest.$ac_objext conftest$ac_exeext
22360if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22361 (eval $ac_link) 2>conftest.er1
a848cd7e 22362 ac_status=$?
ac1cb8d3
VS
22363 grep -v '^ *+' conftest.er1 >conftest.err
22364 rm -f conftest.er1
22365 cat conftest.err >&5
a848cd7e
SC
22366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22367 (exit $ac_status); } &&
5294a27e 22368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22370 (eval $ac_try) 2>&5
22371 ac_status=$?
22372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22373 (exit $ac_status); }; } &&
22374 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22376 (eval $ac_try) 2>&5
22377 ac_status=$?
22378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22379 (exit $ac_status); }; }; then
22380 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
22381else
22382 echo "$as_me: failed program was:" >&5
22383sed 's/^/| /' conftest.$ac_ext >&5
22384
22385ac_cv_lib_mspack_mspack_create_chm_decompressor=no
22386fi
ac1cb8d3
VS
22387rm -f conftest.err conftest.$ac_objext \
22388 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22389LIBS=$ac_check_lib_save_LIBS
22390fi
22391echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
22392echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
22393if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
22394 MSPACK_LINK=" -lmspack"
22395fi
22396
22397 fi
22398 if test "x$MSPACK_LINK" = "x" ; then
22399 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
22400 fi
22401fi
22402
22403if test "$wxUSE_LIBMSPACK" != "no"; then
22404 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
22405#define wxUSE_LIBMSPACK 1
22406_ACEOF
22407
dd3a2d96
VZ
22408else
22409 cat >>confdefs.h <<\_ACEOF
22410#define wxUSE_LIBMSPACK 0
22411_ACEOF
22412
a848cd7e
SC
22413fi
22414
22415
22416
22417AFMINSTALL=
22418WIN32INSTALL=
22419
22420TOOLKIT=
22421TOOLKIT_INCLUDE=
22422WIDGET_SET=
22423
22424if test "$USE_WIN32" = 1 ; then
22425
22426for ac_header in w32api.h
22427do
22428as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22429if eval "test \"\${$as_ac_Header+set}\" = set"; then
22430 echo "$as_me:$LINENO: checking for $ac_header" >&5
22431echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22432if eval "test \"\${$as_ac_Header+set}\" = set"; then
22433 echo $ECHO_N "(cached) $ECHO_C" >&6
22434fi
22435echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22436echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22437else
22438 # Is the header compilable?
22439echo "$as_me:$LINENO: checking $ac_header usability" >&5
22440echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22441cat >conftest.$ac_ext <<_ACEOF
22442/* confdefs.h. */
22443_ACEOF
22444cat confdefs.h >>conftest.$ac_ext
22445cat >>conftest.$ac_ext <<_ACEOF
22446/* end confdefs.h. */
22447$ac_includes_default
22448#include <$ac_header>
22449_ACEOF
22450rm -f conftest.$ac_objext
22451if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22452 (eval $ac_compile) 2>conftest.er1
a848cd7e 22453 ac_status=$?
ac1cb8d3
VS
22454 grep -v '^ *+' conftest.er1 >conftest.err
22455 rm -f conftest.er1
22456 cat conftest.err >&5
a848cd7e
SC
22457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22458 (exit $ac_status); } &&
5294a27e 22459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22461 (eval $ac_try) 2>&5
22462 ac_status=$?
22463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22464 (exit $ac_status); }; } &&
22465 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22467 (eval $ac_try) 2>&5
22468 ac_status=$?
22469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22470 (exit $ac_status); }; }; then
22471 ac_header_compiler=yes
22472else
22473 echo "$as_me: failed program was:" >&5
22474sed 's/^/| /' conftest.$ac_ext >&5
22475
22476ac_header_compiler=no
22477fi
ac1cb8d3 22478rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22479echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22480echo "${ECHO_T}$ac_header_compiler" >&6
22481
22482# Is the header present?
22483echo "$as_me:$LINENO: checking $ac_header presence" >&5
22484echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22485cat >conftest.$ac_ext <<_ACEOF
22486/* confdefs.h. */
22487_ACEOF
22488cat confdefs.h >>conftest.$ac_ext
22489cat >>conftest.$ac_ext <<_ACEOF
22490/* end confdefs.h. */
22491#include <$ac_header>
22492_ACEOF
22493if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22494 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22495 ac_status=$?
22496 grep -v '^ *+' conftest.er1 >conftest.err
22497 rm -f conftest.er1
22498 cat conftest.err >&5
22499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22500 (exit $ac_status); } >/dev/null; then
22501 if test -s conftest.err; then
22502 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22503 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22504 else
22505 ac_cpp_err=
22506 fi
22507else
22508 ac_cpp_err=yes
22509fi
22510if test -z "$ac_cpp_err"; then
22511 ac_header_preproc=yes
22512else
22513 echo "$as_me: failed program was:" >&5
22514sed 's/^/| /' conftest.$ac_ext >&5
22515
22516 ac_header_preproc=no
22517fi
22518rm -f conftest.err conftest.$ac_ext
22519echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22520echo "${ECHO_T}$ac_header_preproc" >&6
22521
22522# So? What about this header?
ac1cb8d3
VS
22523case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22524 yes:no: )
a848cd7e
SC
22525 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22526echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22528echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22529 ac_header_preproc=yes
a848cd7e 22530 ;;
ac1cb8d3 22531 no:yes:* )
a848cd7e
SC
22532 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22533echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22534 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22535echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22536 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22537echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22538 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22539echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22541echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22542 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22543echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22544 (
22545 cat <<\_ASBOX
ac1cb8d3
VS
22546## ----------------------------------------- ##
22547## Report this to wx-dev@lists.wxwidgets.org ##
22548## ----------------------------------------- ##
a848cd7e
SC
22549_ASBOX
22550 ) |
22551 sed "s/^/$as_me: WARNING: /" >&2
22552 ;;
22553esac
22554echo "$as_me:$LINENO: checking for $ac_header" >&5
22555echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22556if eval "test \"\${$as_ac_Header+set}\" = set"; then
22557 echo $ECHO_N "(cached) $ECHO_C" >&6
22558else
ac1cb8d3 22559 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
22560fi
22561echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22562echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22563
22564fi
22565if test `eval echo '${'$as_ac_Header'}'` = yes; then
22566 cat >>confdefs.h <<_ACEOF
22567#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22568_ACEOF
22569
22570fi
22571
22572done
22573
22574 if test "${ac_cv_header_windows_h+set}" = set; then
22575 echo "$as_me:$LINENO: checking for windows.h" >&5
22576echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
22577if test "${ac_cv_header_windows_h+set}" = set; then
22578 echo $ECHO_N "(cached) $ECHO_C" >&6
22579fi
22580echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
22581echo "${ECHO_T}$ac_cv_header_windows_h" >&6
22582else
22583 # Is the header compilable?
22584echo "$as_me:$LINENO: checking windows.h usability" >&5
22585echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
22586cat >conftest.$ac_ext <<_ACEOF
22587/* confdefs.h. */
22588_ACEOF
22589cat confdefs.h >>conftest.$ac_ext
22590cat >>conftest.$ac_ext <<_ACEOF
22591/* end confdefs.h. */
22592$ac_includes_default
22593#include <windows.h>
22594_ACEOF
22595rm -f conftest.$ac_objext
22596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22597 (eval $ac_compile) 2>conftest.er1
a848cd7e 22598 ac_status=$?
ac1cb8d3
VS
22599 grep -v '^ *+' conftest.er1 >conftest.err
22600 rm -f conftest.er1
22601 cat conftest.err >&5
a848cd7e
SC
22602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22603 (exit $ac_status); } &&
5294a27e 22604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22606 (eval $ac_try) 2>&5
22607 ac_status=$?
22608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22609 (exit $ac_status); }; } &&
22610 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22612 (eval $ac_try) 2>&5
22613 ac_status=$?
22614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22615 (exit $ac_status); }; }; then
22616 ac_header_compiler=yes
22617else
22618 echo "$as_me: failed program was:" >&5
22619sed 's/^/| /' conftest.$ac_ext >&5
22620
22621ac_header_compiler=no
22622fi
ac1cb8d3 22623rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22624echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22625echo "${ECHO_T}$ac_header_compiler" >&6
22626
22627# Is the header present?
22628echo "$as_me:$LINENO: checking windows.h presence" >&5
22629echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
22630cat >conftest.$ac_ext <<_ACEOF
22631/* confdefs.h. */
22632_ACEOF
22633cat confdefs.h >>conftest.$ac_ext
22634cat >>conftest.$ac_ext <<_ACEOF
22635/* end confdefs.h. */
22636#include <windows.h>
22637_ACEOF
22638if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22639 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22640 ac_status=$?
22641 grep -v '^ *+' conftest.er1 >conftest.err
22642 rm -f conftest.er1
22643 cat conftest.err >&5
22644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22645 (exit $ac_status); } >/dev/null; then
22646 if test -s conftest.err; then
22647 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22648 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22649 else
22650 ac_cpp_err=
22651 fi
22652else
22653 ac_cpp_err=yes
22654fi
22655if test -z "$ac_cpp_err"; then
22656 ac_header_preproc=yes
22657else
22658 echo "$as_me: failed program was:" >&5
22659sed 's/^/| /' conftest.$ac_ext >&5
22660
22661 ac_header_preproc=no
22662fi
22663rm -f conftest.err conftest.$ac_ext
22664echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22665echo "${ECHO_T}$ac_header_preproc" >&6
22666
22667# So? What about this header?
ac1cb8d3
VS
22668case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22669 yes:no: )
a848cd7e
SC
22670 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
22671echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22672 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
22673echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
22674 ac_header_preproc=yes
a848cd7e 22675 ;;
ac1cb8d3 22676 no:yes:* )
a848cd7e
SC
22677 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
22678echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22679 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
22680echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
22681 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
22682echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
22683 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
22684echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22685 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
22686echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22687 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
22688echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22689 (
22690 cat <<\_ASBOX
ac1cb8d3
VS
22691## ----------------------------------------- ##
22692## Report this to wx-dev@lists.wxwidgets.org ##
22693## ----------------------------------------- ##
a848cd7e
SC
22694_ASBOX
22695 ) |
22696 sed "s/^/$as_me: WARNING: /" >&2
22697 ;;
22698esac
22699echo "$as_me:$LINENO: checking for windows.h" >&5
22700echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
22701if test "${ac_cv_header_windows_h+set}" = set; then
22702 echo $ECHO_N "(cached) $ECHO_C" >&6
22703else
22704 ac_cv_header_windows_h=$ac_header_preproc
22705fi
22706echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
22707echo "${ECHO_T}$ac_cv_header_windows_h" >&6
22708
22709fi
22710if test $ac_cv_header_windows_h = yes; then
22711 :
22712else
22713
22714 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
22715echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
22716 { (exit 1); exit 1; }; }
22717
22718fi
22719
22720
22721
22722 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
22723
22724 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
22725 LIBS="$LIBS -loleacc"
22726 fi
22727
22728 case "${host}" in
22729 *-*-cygwin* )
22730 LIBS="$LIBS -lkernel32 -luser32"
22731 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
22732 esac
22733
22734 if test "$wxUSE_ODBC" = "sys" ; then
22735 wxUSE_ODBC = "yes"
22736 fi
22737 if test "$wxUSE_ODBC" = "yes" ; then
22738 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
22739 cat >>confdefs.h <<\_ACEOF
22740#define wxUSE_ODBC 1
22741_ACEOF
22742
22743 fi
22744
22745 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
22746 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
22747
22748 WIN32INSTALL=win32install
22749fi
22750
22751if test "$wxUSE_GUI" = "yes"; then
22752 USE_GUI=1
22753
22754 GUI_TK_LIBRARY=
22755
22756 WXGTK12=
22757 WXGTK127=
22758 WXGTK20=
22759 WXGPE=
22760
207bc66c
RN
22761 if test "$wxUSE_COCOA" = 1 ; then
22762 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
22763 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
22764echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
22765 wxUSE_PRINTING_ARCHITECTURE=no
22766 fi
22767 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
22768 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
22769echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
22770 wxUSE_DRAG_AND_DROP=no
22771 fi
22772 if test "$wxUSE_DRAGIMAGE" = "yes"; then
22773 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
22774echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
22775 wxUSE_DRAGIMAGE=no
22776 fi
22777 fi
22778
a848cd7e
SC
22779 if test "$wxUSE_MSW" = 1 ; then
22780 TOOLKIT=MSW
22781 GUIDIST=MSW_DIST
22782
ceec2216 22783 case "${host}" in
a848cd7e
SC
22784 *-*-mingw32* )
22785 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
22786 esac
22787 fi
22788
22789 if test "$wxUSE_GTK" = 1; then
22790 echo "$as_me:$LINENO: checking for GTK+ version" >&5
22791echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
22792
22793 gtk_version_cached=1
22794 if test "${wx_cv_lib_gtk+set}" = set; then
22795 echo $ECHO_N "(cached) $ECHO_C" >&6
22796else
22797
22798 gtk_version_cached=0
22799 echo "$as_me:$LINENO: result: " >&5
22800echo "${ECHO_T}" >&6
22801
22802 GTK_MODULES=
22803 if test "$wxUSE_THREADS" = "yes"; then
22804 GTK_MODULES=gthread
22805 fi
22806
22807 wx_cv_lib_gtk=
22808 if test "x$wxUSE_GTK2" = "xyes"; then
22809 # Check whether --enable-gtktest or --disable-gtktest was given.
22810if test "${enable_gtktest+set}" = set; then
22811 enableval="$enable_gtktest"
22812
22813else
22814 enable_gtktest=yes
22815fi;
22816
22817 pkg_config_args=gtk+-2.0
22818 for module in . $GTK_MODULES
22819 do
22820 case "$module" in
22821 gthread)
22822 pkg_config_args="$pkg_config_args gthread-2.0"
22823 ;;
22824 esac
22825 done
22826
22827 no_gtk=""
22828
22829 # Extract the first word of "pkg-config", so it can be a program name with args.
22830set dummy pkg-config; ac_word=$2
22831echo "$as_me:$LINENO: checking for $ac_word" >&5
22832echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22833if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22834 echo $ECHO_N "(cached) $ECHO_C" >&6
22835else
22836 case $PKG_CONFIG in
22837 [\\/]* | ?:[\\/]*)
22838 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22839 ;;
22840 *)
22841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22842for as_dir in $PATH
22843do
22844 IFS=$as_save_IFS
22845 test -z "$as_dir" && as_dir=.
22846 for ac_exec_ext in '' $ac_executable_extensions; do
22847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22848 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22850 break 2
22851 fi
22852done
22853done
22854
22855 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22856 ;;
22857esac
22858fi
22859PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22860
22861if test -n "$PKG_CONFIG"; then
22862 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22863echo "${ECHO_T}$PKG_CONFIG" >&6
22864else
22865 echo "$as_me:$LINENO: result: no" >&5
22866echo "${ECHO_T}no" >&6
22867fi
22868
22869
22870 if test x$PKG_CONFIG != xno ; then
22871 if pkg-config --atleast-pkgconfig-version 0.7 ; then
22872 :
22873 else
c2218763 22874 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
22875 no_gtk=yes
22876 PKG_CONFIG=no
22877 fi
22878 else
22879 no_gtk=yes
22880 fi
22881
22882 min_gtk_version=2.0.0
22883 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
22884echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
22885
22886 if test x$PKG_CONFIG != xno ; then
22887 ## don't try to run the test against uninstalled libtool libs
22888 if $PKG_CONFIG --uninstalled $pkg_config_args; then
22889 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
22890 enable_gtktest=no
22891 fi
22892
22893 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
22894 :
22895 else
22896 no_gtk=yes
22897 fi
22898 fi
22899
22900 if test x"$no_gtk" = x ; then
22901 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
22902 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
22903 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22904 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22905 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22906 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22907 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22908 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22909 if test "x$enable_gtktest" = "xyes" ; then
22910 ac_save_CFLAGS="$CFLAGS"
22911 ac_save_LIBS="$LIBS"
22912 CFLAGS="$CFLAGS $GTK_CFLAGS"
22913 LIBS="$GTK_LIBS $LIBS"
22914 rm -f conf.gtktest
22915 if test "$cross_compiling" = yes; then
22916 echo $ac_n "cross compiling; assumed OK... $ac_c"
22917else
22918 cat >conftest.$ac_ext <<_ACEOF
22919/* confdefs.h. */
22920_ACEOF
22921cat confdefs.h >>conftest.$ac_ext
22922cat >>conftest.$ac_ext <<_ACEOF
22923/* end confdefs.h. */
22924
22925#include <gtk/gtk.h>
22926#include <stdio.h>
22927#include <stdlib.h>
22928
22929int
22930main ()
22931{
22932 int major, minor, micro;
22933 char *tmp_version;
22934
22935 system ("touch conf.gtktest");
22936
22937 /* HP/UX 9 (%@#!) writes to sscanf strings */
22938 tmp_version = g_strdup("$min_gtk_version");
22939 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22940 printf("%s, bad version string\n", "$min_gtk_version");
22941 exit(1);
22942 }
22943
22944 if ((gtk_major_version != $gtk_config_major_version) ||
22945 (gtk_minor_version != $gtk_config_minor_version) ||
22946 (gtk_micro_version != $gtk_config_micro_version))
22947 {
22948 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
22949 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22950 gtk_major_version, gtk_minor_version, gtk_micro_version);
22951 printf ("*** was found! If pkg-config was correct, then it is best\n");
22952 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22953 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22954 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22955 printf("*** required on your system.\n");
22956 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
22957 printf("*** to point to the correct configuration files\n");
22958 }
22959 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22960 (gtk_minor_version != GTK_MINOR_VERSION) ||
22961 (gtk_micro_version != GTK_MICRO_VERSION))
22962 {
22963 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22964 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22965 printf("*** library (version %d.%d.%d)\n",
22966 gtk_major_version, gtk_minor_version, gtk_micro_version);
22967 }
22968 else
22969 {
22970 if ((gtk_major_version > major) ||
22971 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22972 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22973 {
22974 return 0;
22975 }
22976 else
22977 {
22978 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22979 gtk_major_version, gtk_minor_version, gtk_micro_version);
22980 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22981 major, minor, micro);
22982 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22983 printf("***\n");
22984 printf("*** If you have already installed a sufficiently new version, this error\n");
22985 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
22986 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22987 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
22988 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
22989 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22990 printf("*** so that the correct libraries are found at run-time))\n");
22991 }
22992 }
22993 return 1;
22994}
22995
22996_ACEOF
22997rm -f conftest$ac_exeext
22998if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22999 (eval $ac_link) 2>&5
23000 ac_status=$?
23001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23002 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23004 (eval $ac_try) 2>&5
23005 ac_status=$?
23006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23007 (exit $ac_status); }; }; then
23008 :
23009else
23010 echo "$as_me: program exited with status $ac_status" >&5
23011echo "$as_me: failed program was:" >&5
23012sed 's/^/| /' conftest.$ac_ext >&5
23013
23014( exit $ac_status )
23015no_gtk=yes
23016fi
ac1cb8d3 23017rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23018fi
23019 CFLAGS="$ac_save_CFLAGS"
23020 LIBS="$ac_save_LIBS"
23021 fi
23022 fi
23023 if test "x$no_gtk" = x ; then
23024 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
23025echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
23026 wx_cv_lib_gtk=2.0
23027 else
23028 echo "$as_me:$LINENO: result: no" >&5
23029echo "${ECHO_T}no" >&6
23030 if test "$PKG_CONFIG" = "no" ; then
23031 echo "*** A new enough version of pkg-config was not found."
23032 echo "*** See http://pkgconfig.sourceforge.net"
23033 else
23034 if test -f conf.gtktest ; then
23035 :
23036 else
23037 echo "*** Could not run GTK+ test program, checking why..."
23038 ac_save_CFLAGS="$CFLAGS"
23039 ac_save_LIBS="$LIBS"
23040 CFLAGS="$CFLAGS $GTK_CFLAGS"
23041 LIBS="$LIBS $GTK_LIBS"
23042 cat >conftest.$ac_ext <<_ACEOF
23043/* confdefs.h. */
23044_ACEOF
23045cat confdefs.h >>conftest.$ac_ext
23046cat >>conftest.$ac_ext <<_ACEOF
23047/* end confdefs.h. */
23048
23049#include <gtk/gtk.h>
23050#include <stdio.h>
23051
23052int
23053main ()
23054{
23055 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23056 ;
23057 return 0;
23058}
23059_ACEOF
23060rm -f conftest.$ac_objext conftest$ac_exeext
23061if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23062 (eval $ac_link) 2>conftest.er1
a848cd7e 23063 ac_status=$?
ac1cb8d3
VS
23064 grep -v '^ *+' conftest.er1 >conftest.err
23065 rm -f conftest.er1
23066 cat conftest.err >&5
a848cd7e
SC
23067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23068 (exit $ac_status); } &&
5294a27e 23069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23071 (eval $ac_try) 2>&5
23072 ac_status=$?
23073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23074 (exit $ac_status); }; } &&
23075 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23077 (eval $ac_try) 2>&5
23078 ac_status=$?
23079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23080 (exit $ac_status); }; }; then
23081 echo "*** The test program compiled, but did not run. This usually means"
23082 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
23083 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
23084 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23085 echo "*** to the installed location Also, make sure you have run ldconfig if that"
23086 echo "*** is required on your system"
23087 echo "***"
23088 echo "*** If you have an old version installed, it is best to remove it, although"
23089 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23090else
23091 echo "$as_me: failed program was:" >&5
23092sed 's/^/| /' conftest.$ac_ext >&5
23093
23094 echo "*** The test program failed to compile or link. See the file config.log for the"
23095 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
23096fi
ac1cb8d3
VS
23097rm -f conftest.err conftest.$ac_objext \
23098 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23099 CFLAGS="$ac_save_CFLAGS"
23100 LIBS="$ac_save_LIBS"
23101 fi
23102 fi
23103 GTK_CFLAGS=""
23104 GTK_LIBS=""
23105 :
23106 fi
23107
23108
23109 rm -f conf.gtktest
23110
23111 else
23112
23113# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
23114if test "${with_gtk_prefix+set}" = set; then
23115 withval="$with_gtk_prefix"
23116 gtk_config_prefix="$withval"
23117else
23118 gtk_config_prefix=""
23119fi;
23120
23121# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
23122if test "${with_gtk_exec_prefix+set}" = set; then
23123 withval="$with_gtk_exec_prefix"
23124 gtk_config_exec_prefix="$withval"
23125else
23126 gtk_config_exec_prefix=""
23127fi;
23128# Check whether --enable-gtktest or --disable-gtktest was given.
23129if test "${enable_gtktest+set}" = set; then
23130 enableval="$enable_gtktest"
23131
23132else
23133 enable_gtktest=yes
23134fi;
23135
23136 for module in . $GTK_MODULES
23137 do
23138 case "$module" in
23139 gthread)
23140 gtk_config_args="$gtk_config_args gthread"
23141 ;;
23142 esac
23143 done
23144
23145 if test x$gtk_config_exec_prefix != x ; then
23146 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
23147 if test x${GTK_CONFIG+set} != xset ; then
23148 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
23149 fi
23150 fi
23151 if test x$gtk_config_prefix != x ; then
23152 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
23153 if test x${GTK_CONFIG+set} != xset ; then
23154 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
23155 fi
23156 fi
23157
23158 # Extract the first word of "gtk-config", so it can be a program name with args.
23159set dummy gtk-config; ac_word=$2
23160echo "$as_me:$LINENO: checking for $ac_word" >&5
23161echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23162if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
23163 echo $ECHO_N "(cached) $ECHO_C" >&6
23164else
23165 case $GTK_CONFIG in
23166 [\\/]* | ?:[\\/]*)
23167 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
23168 ;;
23169 *)
23170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23171for as_dir in $PATH
23172do
23173 IFS=$as_save_IFS
23174 test -z "$as_dir" && as_dir=.
23175 for ac_exec_ext in '' $ac_executable_extensions; do
23176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23177 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23179 break 2
23180 fi
23181done
23182done
23183
23184 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
23185 ;;
23186esac
23187fi
23188GTK_CONFIG=$ac_cv_path_GTK_CONFIG
23189
23190if test -n "$GTK_CONFIG"; then
23191 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
23192echo "${ECHO_T}$GTK_CONFIG" >&6
23193else
23194 echo "$as_me:$LINENO: result: no" >&5
23195echo "${ECHO_T}no" >&6
23196fi
23197
23198 min_gtk_version=1.2.7
23199 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
23200echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
23201 no_gtk=""
23202 if test "$GTK_CONFIG" = "no" ; then
23203 no_gtk=yes
23204 else
23205 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
23206 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
23207 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
23208 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
23209 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
23210 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
23211 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
23212 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
23213 if test "x$enable_gtktest" = "xyes" ; then
23214 ac_save_CFLAGS="$CFLAGS"
23215 ac_save_LIBS="$LIBS"
23216 CFLAGS="$CFLAGS $GTK_CFLAGS"
23217 LIBS="$GTK_LIBS $LIBS"
23218 rm -f conf.gtktest
23219 if test "$cross_compiling" = yes; then
23220 echo $ac_n "cross compiling; assumed OK... $ac_c"
23221else
23222 cat >conftest.$ac_ext <<_ACEOF
23223/* confdefs.h. */
23224_ACEOF
23225cat confdefs.h >>conftest.$ac_ext
23226cat >>conftest.$ac_ext <<_ACEOF
23227/* end confdefs.h. */
23228
23229#include <gtk/gtk.h>
23230#include <stdio.h>
23231#include <stdlib.h>
23232
23233int
23234main ()
23235{
23236 int major, minor, micro;
23237 char *tmp_version;
23238
23239 system ("touch conf.gtktest");
23240
23241 /* HP/UX 9 (%@#!) writes to sscanf strings */
23242 tmp_version = g_strdup("$min_gtk_version");
23243 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
23244 printf("%s, bad version string\n", "$min_gtk_version");
23245 exit(1);
23246 }
23247
23248 if ((gtk_major_version != $gtk_config_major_version) ||
23249 (gtk_minor_version != $gtk_config_minor_version) ||
23250 (gtk_micro_version != $gtk_config_micro_version))
23251 {
23252 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
23253 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
23254 gtk_major_version, gtk_minor_version, gtk_micro_version);
23255 printf ("*** was found! If gtk-config was correct, then it is best\n");
23256 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
23257 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
23258 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
23259 printf("*** required on your system.\n");
23260 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
23261 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
23262 printf("*** before re-running configure\n");
23263 }
23264#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
23265 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
23266 (gtk_minor_version != GTK_MINOR_VERSION) ||
23267 (gtk_micro_version != GTK_MICRO_VERSION))
23268 {
23269 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
23270 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
23271 printf("*** library (version %d.%d.%d)\n",
23272 gtk_major_version, gtk_minor_version, gtk_micro_version);
23273 }
23274#endif /* defined (GTK_MAJOR_VERSION) ... */
23275 else
23276 {
23277 if ((gtk_major_version > major) ||
23278 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
23279 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
23280 {
23281 return 0;
23282 }
23283 else
23284 {
23285 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
23286 gtk_major_version, gtk_minor_version, gtk_micro_version);
23287 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
23288 major, minor, micro);
23289 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
23290 printf("***\n");
23291 printf("*** If you have already installed a sufficiently new version, this error\n");
23292 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
23293 printf("*** being found. The easiest way to fix this is to remove the old version\n");
23294 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
23295 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
23296 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
23297 printf("*** so that the correct libraries are found at run-time))\n");
23298 }
23299 }
23300 return 1;
23301}
23302
23303_ACEOF
23304rm -f conftest$ac_exeext
23305if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23306 (eval $ac_link) 2>&5
23307 ac_status=$?
23308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23309 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23311 (eval $ac_try) 2>&5
23312 ac_status=$?
23313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23314 (exit $ac_status); }; }; then
23315 :
23316else
23317 echo "$as_me: program exited with status $ac_status" >&5
23318echo "$as_me: failed program was:" >&5
23319sed 's/^/| /' conftest.$ac_ext >&5
23320
23321( exit $ac_status )
23322no_gtk=yes
23323fi
ac1cb8d3 23324rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23325fi
23326 CFLAGS="$ac_save_CFLAGS"
23327 LIBS="$ac_save_LIBS"
23328 fi
23329 fi
23330 if test "x$no_gtk" = x ; then
23331 echo "$as_me:$LINENO: result: yes" >&5
23332echo "${ECHO_T}yes" >&6
23333 wx_cv_lib_gtk=1.2.7
23334 else
23335 echo "$as_me:$LINENO: result: no" >&5
23336echo "${ECHO_T}no" >&6
23337 if test "$GTK_CONFIG" = "no" ; then
23338 echo "*** The gtk-config script installed by GTK could not be found"
23339 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
23340 echo "*** your path, or set the GTK_CONFIG environment variable to the"
23341 echo "*** full path to gtk-config."
23342 else
23343 if test -f conf.gtktest ; then
23344 :
23345 else
23346 echo "*** Could not run GTK test program, checking why..."
23347 CFLAGS="$CFLAGS $GTK_CFLAGS"
23348 LIBS="$LIBS $GTK_LIBS"
23349 cat >conftest.$ac_ext <<_ACEOF
23350/* confdefs.h. */
23351_ACEOF
23352cat confdefs.h >>conftest.$ac_ext
23353cat >>conftest.$ac_ext <<_ACEOF
23354/* end confdefs.h. */
23355
23356#include <gtk/gtk.h>
23357#include <stdio.h>
23358
23359int
23360main ()
23361{
23362 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23363 ;
23364 return 0;
23365}
23366_ACEOF
23367rm -f conftest.$ac_objext conftest$ac_exeext
23368if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23369 (eval $ac_link) 2>conftest.er1
a848cd7e 23370 ac_status=$?
ac1cb8d3
VS
23371 grep -v '^ *+' conftest.er1 >conftest.err
23372 rm -f conftest.er1
23373 cat conftest.err >&5
a848cd7e
SC
23374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23375 (exit $ac_status); } &&
5294a27e 23376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23378 (eval $ac_try) 2>&5
23379 ac_status=$?
23380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23381 (exit $ac_status); }; } &&
23382 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23384 (eval $ac_try) 2>&5
23385 ac_status=$?
23386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23387 (exit $ac_status); }; }; then
23388 echo "*** The test program compiled, but did not run. This usually means"
23389 echo "*** that the run-time linker is not finding GTK or finding the wrong"
23390 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
23391 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23392 echo "*** to the installed location Also, make sure you have run ldconfig if that"
23393 echo "*** is required on your system"
23394 echo "***"
23395 echo "*** If you have an old version installed, it is best to remove it, although"
23396 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23397 echo "***"
23398 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
23399 echo "*** came with the system with the command"
23400 echo "***"
23401 echo "*** rpm --erase --nodeps gtk gtk-devel"
23402else
23403 echo "$as_me: failed program was:" >&5
23404sed 's/^/| /' conftest.$ac_ext >&5
23405
23406 echo "*** The test program failed to compile or link. See the file config.log for the"
23407 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
23408 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
23409 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
23410fi
ac1cb8d3
VS
23411rm -f conftest.err conftest.$ac_objext \
23412 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23413 CFLAGS="$ac_save_CFLAGS"
23414 LIBS="$ac_save_LIBS"
23415 fi
23416 fi
23417 GTK_CFLAGS=""
23418 GTK_LIBS=""
23419 :
23420 fi
23421
23422
23423 rm -f conf.gtktest
23424
23425
23426 if test -z "$wx_cv_lib_gtk"; then
23427
23428# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
23429if test "${with_gtk_prefix+set}" = set; then
23430 withval="$with_gtk_prefix"
23431 gtk_config_prefix="$withval"
23432else
23433 gtk_config_prefix=""
23434fi;
23435
23436# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
23437if test "${with_gtk_exec_prefix+set}" = set; then
23438 withval="$with_gtk_exec_prefix"
23439 gtk_config_exec_prefix="$withval"
23440else
23441 gtk_config_exec_prefix=""
23442fi;
23443# Check whether --enable-gtktest or --disable-gtktest was given.
23444if test "${enable_gtktest+set}" = set; then
23445 enableval="$enable_gtktest"
23446
23447else
23448 enable_gtktest=yes
23449fi;
23450
23451 for module in . $GTK_MODULES
23452 do
23453 case "$module" in
23454 gthread)
23455 gtk_config_args="$gtk_config_args gthread"
23456 ;;
23457 esac
23458 done
23459
23460 if test x$gtk_config_exec_prefix != x ; then
23461 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
23462 if test x${GTK_CONFIG+set} != xset ; then
23463 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
23464 fi
23465 fi
23466 if test x$gtk_config_prefix != x ; then
23467 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
23468 if test x${GTK_CONFIG+set} != xset ; then
23469 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
23470 fi
23471 fi
23472
23473 # Extract the first word of "gtk-config", so it can be a program name with args.
23474set dummy gtk-config; ac_word=$2
23475echo "$as_me:$LINENO: checking for $ac_word" >&5
23476echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23477if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
23478 echo $ECHO_N "(cached) $ECHO_C" >&6
23479else
23480 case $GTK_CONFIG in
23481 [\\/]* | ?:[\\/]*)
23482 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
23483 ;;
23484 *)
23485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23486for as_dir in $PATH
23487do
23488 IFS=$as_save_IFS
23489 test -z "$as_dir" && as_dir=.
23490 for ac_exec_ext in '' $ac_executable_extensions; do
23491 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23492 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23494 break 2
23495 fi
23496done
23497done
23498
23499 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
23500 ;;
23501esac
23502fi
23503GTK_CONFIG=$ac_cv_path_GTK_CONFIG
23504
23505if test -n "$GTK_CONFIG"; then
23506 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
23507echo "${ECHO_T}$GTK_CONFIG" >&6
23508else
23509 echo "$as_me:$LINENO: result: no" >&5
23510echo "${ECHO_T}no" >&6
23511fi
23512
23513 min_gtk_version=1.2.3
23514 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
23515echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
23516 no_gtk=""
23517 if test "$GTK_CONFIG" = "no" ; then
23518 no_gtk=yes
23519 else
23520 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
23521 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
23522 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
23523 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
23524 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
23525 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
23526 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
23527 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
23528 if test "x$enable_gtktest" = "xyes" ; then
23529 ac_save_CFLAGS="$CFLAGS"
23530 ac_save_LIBS="$LIBS"
23531 CFLAGS="$CFLAGS $GTK_CFLAGS"
23532 LIBS="$GTK_LIBS $LIBS"
23533 rm -f conf.gtktest
23534 if test "$cross_compiling" = yes; then
23535 echo $ac_n "cross compiling; assumed OK... $ac_c"
23536else
23537 cat >conftest.$ac_ext <<_ACEOF
23538/* confdefs.h. */
23539_ACEOF
23540cat confdefs.h >>conftest.$ac_ext
23541cat >>conftest.$ac_ext <<_ACEOF
23542/* end confdefs.h. */
23543
23544#include <gtk/gtk.h>
23545#include <stdio.h>
23546#include <stdlib.h>
23547
23548int
23549main ()
23550{
23551 int major, minor, micro;
23552 char *tmp_version;
23553
23554 system ("touch conf.gtktest");
23555
23556 /* HP/UX 9 (%@#!) writes to sscanf strings */
23557 tmp_version = g_strdup("$min_gtk_version");
23558 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
23559 printf("%s, bad version string\n", "$min_gtk_version");
23560 exit(1);
23561 }
23562
23563 if ((gtk_major_version != $gtk_config_major_version) ||
23564 (gtk_minor_version != $gtk_config_minor_version) ||
23565 (gtk_micro_version != $gtk_config_micro_version))
23566 {
23567 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
23568 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
23569 gtk_major_version, gtk_minor_version, gtk_micro_version);
23570 printf ("*** was found! If gtk-config was correct, then it is best\n");
23571 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
23572 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
23573 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
23574 printf("*** required on your system.\n");
23575 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
23576 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
23577 printf("*** before re-running configure\n");
23578 }
23579#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
23580 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
23581 (gtk_minor_version != GTK_MINOR_VERSION) ||
23582 (gtk_micro_version != GTK_MICRO_VERSION))
23583 {
23584 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
23585 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
23586 printf("*** library (version %d.%d.%d)\n",
23587 gtk_major_version, gtk_minor_version, gtk_micro_version);
23588 }
23589#endif /* defined (GTK_MAJOR_VERSION) ... */
23590 else
23591 {
23592 if ((gtk_major_version > major) ||
23593 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
23594 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
23595 {
23596 return 0;
23597 }
23598 else
23599 {
23600 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
23601 gtk_major_version, gtk_minor_version, gtk_micro_version);
23602 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
23603 major, minor, micro);
23604 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
23605 printf("***\n");
23606 printf("*** If you have already installed a sufficiently new version, this error\n");
23607 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
23608 printf("*** being found. The easiest way to fix this is to remove the old version\n");
23609 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
23610 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
23611 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
23612 printf("*** so that the correct libraries are found at run-time))\n");
23613 }
23614 }
23615 return 1;
23616}
23617
23618_ACEOF
23619rm -f conftest$ac_exeext
23620if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23621 (eval $ac_link) 2>&5
23622 ac_status=$?
23623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23624 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23626 (eval $ac_try) 2>&5
23627 ac_status=$?
23628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23629 (exit $ac_status); }; }; then
23630 :
23631else
23632 echo "$as_me: program exited with status $ac_status" >&5
23633echo "$as_me: failed program was:" >&5
23634sed 's/^/| /' conftest.$ac_ext >&5
23635
23636( exit $ac_status )
23637no_gtk=yes
23638fi
ac1cb8d3 23639rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23640fi
23641 CFLAGS="$ac_save_CFLAGS"
23642 LIBS="$ac_save_LIBS"
23643 fi
23644 fi
23645 if test "x$no_gtk" = x ; then
23646 echo "$as_me:$LINENO: result: yes" >&5
23647echo "${ECHO_T}yes" >&6
23648 wx_cv_lib_gtk=1.2.3
23649 else
23650 echo "$as_me:$LINENO: result: no" >&5
23651echo "${ECHO_T}no" >&6
23652 if test "$GTK_CONFIG" = "no" ; then
23653 echo "*** The gtk-config script installed by GTK could not be found"
23654 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
23655 echo "*** your path, or set the GTK_CONFIG environment variable to the"
23656 echo "*** full path to gtk-config."
23657 else
23658 if test -f conf.gtktest ; then
23659 :
23660 else
23661 echo "*** Could not run GTK test program, checking why..."
23662 CFLAGS="$CFLAGS $GTK_CFLAGS"
23663 LIBS="$LIBS $GTK_LIBS"
23664 cat >conftest.$ac_ext <<_ACEOF
23665/* confdefs.h. */
23666_ACEOF
23667cat confdefs.h >>conftest.$ac_ext
23668cat >>conftest.$ac_ext <<_ACEOF
23669/* end confdefs.h. */
23670
23671#include <gtk/gtk.h>
23672#include <stdio.h>
23673
23674int
23675main ()
23676{
23677 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23678 ;
23679 return 0;
23680}
23681_ACEOF
23682rm -f conftest.$ac_objext conftest$ac_exeext
23683if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23684 (eval $ac_link) 2>conftest.er1
a848cd7e 23685 ac_status=$?
ac1cb8d3
VS
23686 grep -v '^ *+' conftest.er1 >conftest.err
23687 rm -f conftest.er1
23688 cat conftest.err >&5
a848cd7e
SC
23689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23690 (exit $ac_status); } &&
5294a27e 23691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23693 (eval $ac_try) 2>&5
23694 ac_status=$?
23695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23696 (exit $ac_status); }; } &&
23697 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23699 (eval $ac_try) 2>&5
23700 ac_status=$?
23701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23702 (exit $ac_status); }; }; then
23703 echo "*** The test program compiled, but did not run. This usually means"
23704 echo "*** that the run-time linker is not finding GTK or finding the wrong"
23705 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
23706 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23707 echo "*** to the installed location Also, make sure you have run ldconfig if that"
23708 echo "*** is required on your system"
23709 echo "***"
23710 echo "*** If you have an old version installed, it is best to remove it, although"
23711 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23712 echo "***"
23713 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
23714 echo "*** came with the system with the command"
23715 echo "***"
23716 echo "*** rpm --erase --nodeps gtk gtk-devel"
23717else
23718 echo "$as_me: failed program was:" >&5
23719sed 's/^/| /' conftest.$ac_ext >&5
23720
23721 echo "*** The test program failed to compile or link. See the file config.log for the"
23722 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
23723 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
23724 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
23725fi
ac1cb8d3
VS
23726rm -f conftest.err conftest.$ac_objext \
23727 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23728 CFLAGS="$ac_save_CFLAGS"
23729 LIBS="$ac_save_LIBS"
23730 fi
23731 fi
23732 GTK_CFLAGS=""
23733 GTK_LIBS=""
23734 :
23735 fi
23736
23737
23738 rm -f conf.gtktest
23739
23740 fi
23741 fi
23742
23743 if test -z "$wx_cv_lib_gtk"; then
23744 wx_cv_lib_gtk=none
23745 else
23746 wx_cv_cflags_gtk=$GTK_CFLAGS
23747 wx_cv_libs_gtk=$GTK_LIBS
23748 fi
23749
23750
23751fi
23752
23753
23754 if test "$gtk_version_cached" = 1; then
23755 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
23756echo "${ECHO_T}$wx_cv_lib_gtk" >&6
23757 fi
23758
23759 case "$wx_cv_lib_gtk" in
23760 2.0) WXGTK20=1
23761 TOOLKIT_VERSION=2
23762 ;;
23763 1.2.7) WXGTK127=1
23764 WXGTK12=1
23765 ;;
23766 1.2.3) WXGTK12=1
23767 ;;
23768 *) { { echo "$as_me:$LINENO: error:
23769Please check that gtk-config is in path, the directory
23770where GTK+ libraries are installed (returned by
23771'gtk-config --libs' command) is in LD_LIBRARY_PATH or
23772equivalent variable and GTK+ is version 1.2.3 or above.
23773 " >&5
23774echo "$as_me: error:
23775Please check that gtk-config is in path, the directory
23776where GTK+ libraries are installed (returned by
23777'gtk-config --libs' command) is in LD_LIBRARY_PATH or
23778equivalent variable and GTK+ is version 1.2.3 or above.
23779 " >&2;}
23780 { (exit 1); exit 1; }; }
23781 ;;
23782 esac
23783
23784 if test "$WXGTK20" = 1; then
304205f1
VS
23785 save_CFLAGS="$CFLAGS"
23786 save_LIBS="$LIBS"
23787 CFLAGS="$CFLAGS $GTK_CFLAGS"
23788 LIBS="$LIBS $GTK_LIBS"
23789
9755e73b 23790
304205f1
VS
23791for ac_func in pango_font_family_is_monospace
23792do
23793as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23794echo "$as_me:$LINENO: checking for $ac_func" >&5
23795echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23796if eval "test \"\${$as_ac_var+set}\" = set"; then
23797 echo $ECHO_N "(cached) $ECHO_C" >&6
23798else
23799 cat >conftest.$ac_ext <<_ACEOF
23800/* confdefs.h. */
23801_ACEOF
23802cat confdefs.h >>conftest.$ac_ext
23803cat >>conftest.$ac_ext <<_ACEOF
23804/* end confdefs.h. */
23805/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23807#define $ac_func innocuous_$ac_func
23808
23809/* System header to define __stub macros and hopefully few prototypes,
23810 which can conflict with char $ac_func (); below.
23811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23812 <limits.h> exists even on freestanding compilers. */
23813
23814#ifdef __STDC__
23815# include <limits.h>
23816#else
23817# include <assert.h>
23818#endif
23819
23820#undef $ac_func
23821
23822/* Override any gcc2 internal prototype to avoid an error. */
23823#ifdef __cplusplus
23824extern "C"
23825{
23826#endif
23827/* We use char because int might match the return type of a gcc2
23828 builtin and then its argument prototype would still apply. */
23829char $ac_func ();
23830/* The GNU C library defines this for functions which it implements
23831 to always fail with ENOSYS. Some functions are actually named
23832 something starting with __ and the normal name is an alias. */
23833#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23834choke me
23835#else
23836char (*f) () = $ac_func;
23837#endif
23838#ifdef __cplusplus
23839}
23840#endif
23841
23842int
23843main ()
23844{
23845return f != $ac_func;
23846 ;
23847 return 0;
23848}
23849_ACEOF
23850rm -f conftest.$ac_objext conftest$ac_exeext
23851if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23852 (eval $ac_link) 2>conftest.er1
23853 ac_status=$?
23854 grep -v '^ *+' conftest.er1 >conftest.err
23855 rm -f conftest.er1
23856 cat conftest.err >&5
23857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23858 (exit $ac_status); } &&
5294a27e 23859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
23860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23861 (eval $ac_try) 2>&5
23862 ac_status=$?
23863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23864 (exit $ac_status); }; } &&
23865 { ac_try='test -s conftest$ac_exeext'
23866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23867 (eval $ac_try) 2>&5
23868 ac_status=$?
23869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23870 (exit $ac_status); }; }; then
23871 eval "$as_ac_var=yes"
23872else
23873 echo "$as_me: failed program was:" >&5
23874sed 's/^/| /' conftest.$ac_ext >&5
23875
23876eval "$as_ac_var=no"
23877fi
23878rm -f conftest.err conftest.$ac_objext \
23879 conftest$ac_exeext conftest.$ac_ext
23880fi
23881echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23882echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23883if test `eval echo '${'$as_ac_var'}'` = yes; then
23884 cat >>confdefs.h <<_ACEOF
23885#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23886_ACEOF
23887
23888fi
23889done
23890
9755e73b
VS
23891
23892 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
23893echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
23894 cat >conftest.$ac_ext <<_ACEOF
23895/* confdefs.h. */
23896_ACEOF
23897cat confdefs.h >>conftest.$ac_ext
23898cat >>conftest.$ac_ext <<_ACEOF
23899/* end confdefs.h. */
23900
23901 #include <gtk/gtk.h>
23902
23903int
23904main ()
23905{
23906
23907 #if !GTK_CHECK_VERSION(2,4,0)
23908 #error "Not GTK+ 2.4"
23909 #endif
23910
23911 ;
23912 return 0;
23913}
23914_ACEOF
23915rm -f conftest.$ac_objext
23916if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23917 (eval $ac_compile) 2>conftest.er1
23918 ac_status=$?
23919 grep -v '^ *+' conftest.er1 >conftest.err
23920 rm -f conftest.er1
23921 cat conftest.err >&5
23922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23923 (exit $ac_status); } &&
5294a27e 23924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755e73b
VS
23925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23926 (eval $ac_try) 2>&5
23927 ac_status=$?
23928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23929 (exit $ac_status); }; } &&
23930 { ac_try='test -s conftest.$ac_objext'
23931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23932 (eval $ac_try) 2>&5
23933 ac_status=$?
23934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23935 (exit $ac_status); }; }; then
23936
23937 cat >>confdefs.h <<\_ACEOF
23938#define __WXGTK24__ 1
23939_ACEOF
23940
23941 echo "$as_me:$LINENO: result: yes" >&5
23942echo "${ECHO_T}yes" >&6
23943
23944else
23945 echo "$as_me: failed program was:" >&5
23946sed 's/^/| /' conftest.$ac_ext >&5
23947
23948
23949 echo "$as_me:$LINENO: result: no" >&5
23950echo "${ECHO_T}no" >&6
23951
23952fi
23953rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23954
304205f1
VS
23955 CFLAGS="$save_CFLAGS"
23956 LIBS="$save_LIBS"
a848cd7e
SC
23957 else
23958 if test "$wxUSE_UNICODE" = "yes"; then
23959 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
23960echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
23961 wxUSE_UNICODE=no
23962 fi
23963 fi
23964
23965 if test "$USE_DARWIN" != 1; then
23966
23967for ac_func in poll
23968do
23969as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23970echo "$as_me:$LINENO: checking for $ac_func" >&5
23971echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23972if eval "test \"\${$as_ac_var+set}\" = set"; then
23973 echo $ECHO_N "(cached) $ECHO_C" >&6
23974else
23975 cat >conftest.$ac_ext <<_ACEOF
23976/* confdefs.h. */
23977_ACEOF
23978cat confdefs.h >>conftest.$ac_ext
23979cat >>conftest.$ac_ext <<_ACEOF
23980/* end confdefs.h. */
ac1cb8d3
VS
23981/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23982 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23983#define $ac_func innocuous_$ac_func
23984
a848cd7e
SC
23985/* System header to define __stub macros and hopefully few prototypes,
23986 which can conflict with char $ac_func (); below.
23987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23988 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 23989
a848cd7e
SC
23990#ifdef __STDC__
23991# include <limits.h>
23992#else
23993# include <assert.h>
23994#endif
ac1cb8d3
VS
23995
23996#undef $ac_func
23997
a848cd7e
SC
23998/* Override any gcc2 internal prototype to avoid an error. */
23999#ifdef __cplusplus
24000extern "C"
24001{
24002#endif
24003/* We use char because int might match the return type of a gcc2
24004 builtin and then its argument prototype would still apply. */
24005char $ac_func ();
24006/* The GNU C library defines this for functions which it implements
24007 to always fail with ENOSYS. Some functions are actually named
24008 something starting with __ and the normal name is an alias. */
24009#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24010choke me
24011#else
24012char (*f) () = $ac_func;
24013#endif
24014#ifdef __cplusplus
24015}
24016#endif
24017
24018int
24019main ()
24020{
24021return f != $ac_func;
24022 ;
24023 return 0;
24024}
24025_ACEOF
24026rm -f conftest.$ac_objext conftest$ac_exeext
24027if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24028 (eval $ac_link) 2>conftest.er1
a848cd7e 24029 ac_status=$?
ac1cb8d3
VS
24030 grep -v '^ *+' conftest.er1 >conftest.err
24031 rm -f conftest.er1
24032 cat conftest.err >&5
a848cd7e
SC
24033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24034 (exit $ac_status); } &&
5294a27e 24035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24037 (eval $ac_try) 2>&5
24038 ac_status=$?
24039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24040 (exit $ac_status); }; } &&
24041 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24043 (eval $ac_try) 2>&5
24044 ac_status=$?
24045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24046 (exit $ac_status); }; }; then
24047 eval "$as_ac_var=yes"
24048else
24049 echo "$as_me: failed program was:" >&5
24050sed 's/^/| /' conftest.$ac_ext >&5
24051
24052eval "$as_ac_var=no"
24053fi
ac1cb8d3
VS
24054rm -f conftest.err conftest.$ac_objext \
24055 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24056fi
24057echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24058echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24059if test `eval echo '${'$as_ac_var'}'` = yes; then
24060 cat >>confdefs.h <<_ACEOF
24061#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24062_ACEOF
24063
24064fi
24065done
24066
24067 fi
24068
24069 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
24070 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
24071
24072 AFMINSTALL=afminstall
24073 TOOLKIT=GTK
24074 GUIDIST=GTK_DIST
24075
24076 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
24077echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
24078if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
24079 echo $ECHO_N "(cached) $ECHO_C" >&6
24080else
24081 ac_check_lib_save_LIBS=$LIBS
24082LIBS="-lgdk $LIBS"
24083cat >conftest.$ac_ext <<_ACEOF
24084/* confdefs.h. */
24085_ACEOF
24086cat confdefs.h >>conftest.$ac_ext
24087cat >>conftest.$ac_ext <<_ACEOF
24088/* end confdefs.h. */
24089
24090/* Override any gcc2 internal prototype to avoid an error. */
24091#ifdef __cplusplus
24092extern "C"
24093#endif
24094/* We use char because int might match the return type of a gcc2
24095 builtin and then its argument prototype would still apply. */
24096char gdk_im_open ();
24097int
24098main ()
24099{
24100gdk_im_open ();
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); } &&
5294a27e 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_cv_lib_gdk_gdk_im_open=yes
24127else
24128 echo "$as_me: failed program was:" >&5
24129sed 's/^/| /' conftest.$ac_ext >&5
24130
24131ac_cv_lib_gdk_gdk_im_open=no
24132fi
ac1cb8d3
VS
24133rm -f conftest.err conftest.$ac_objext \
24134 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24135LIBS=$ac_check_lib_save_LIBS
24136fi
24137echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
24138echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
24139if test $ac_cv_lib_gdk_gdk_im_open = yes; then
24140 cat >>confdefs.h <<\_ACEOF
24141#define HAVE_XIM 1
24142_ACEOF
24143
24144fi
24145
24146
24147
24148 if test "$wxUSE_GPE" = "yes"; then
24149 echo "$as_me:$LINENO: checking for gpewidget library" >&5
24150echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
24151
24152ac_find_libraries=
24153for ac_dir in $SEARCH_LIB /usr/lib;
24154 do
24155 for ac_extension in a so sl dylib; do
24156 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
24157 ac_find_libraries=$ac_dir
24158 break 2
24159 fi
24160 done
24161 done
24162
24163 if test "$ac_find_libraries" != "" ; then
24164
24165 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
24166 result=$?
24167 if test $result = 0; then
24168 ac_path_to_link=""
24169 else
24170 ac_path_to_link=" -L$ac_find_libraries"
24171 fi
24172
24173 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
24174 WXGPE=1
24175 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
24176echo "${ECHO_T}found at $ac_find_libraries" >&6
24177 else
24178 echo "$as_me:$LINENO: result: not found" >&5
24179echo "${ECHO_T}not found" >&6
24180 fi
24181
24182 fi
24183 fi
24184
24185 if test "$wxUSE_MGL" = 1; then
24186 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
24187echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
24188 if test "x$MGL_ROOT" = x ; then
24189 echo "$as_me:$LINENO: result: not found" >&5
24190echo "${ECHO_T}not found" >&6
24191 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
24192echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
24193 { (exit 1); exit 1; }; }
24194 else
24195 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
24196echo "${ECHO_T}$MGL_ROOT" >&6
24197 fi
24198
24199 echo "$as_me:$LINENO: checking for libmgl location" >&5
24200echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
24201 case "${host}" in
24202 *-*-linux* )
24203 if test "x$wxUSE_SHARED" = xyes ; then
24204 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
24205 else
24206 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
24207 fi
24208 ;;
24209 *-pc-msdosdjgpp )
24210 mgl_os_candidates="dos32/dj2"
24211 ;;
24212 *)
24213 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
24214echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
24215 { (exit 1); exit 1; }; }
24216 esac
24217
24218 mgl_lib_type=""
24219 mgl_os=""
24220
24221 for mgl_os_i in $mgl_os_candidates ; do
24222 if test "x$mgl_os" = x ; then
24223 if test "$wxUSE_DEBUG_FLAG" = yes ; then
24224 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
24225 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
24226 mgl_lib_type=debug
24227 mgl_os=$mgl_os_i
24228 fi
24229 fi
24230 if test "x$mgl_lib_type" = x ; then
24231 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
24232 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
24233 mgl_lib_type=release
24234 mgl_os=$mgl_os_i
24235 fi
24236 fi
24237 fi
24238 done
24239
24240 if test "x$mgl_os" = x ; then
24241 echo "$as_me:$LINENO: result: not found" >&5
24242echo "${ECHO_T}not found" >&6
24243 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
24244echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
24245 { (exit 1); exit 1; }; }
24246 fi
24247 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
24248echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
24249
24250 wxUSE_UNIVERSAL="yes"
24251
24252 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
24253 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
24254
24255 AFMINSTALL=afminstall
24256 TOOLKIT=MGL
24257 GUIDIST=MGL_DIST
24258 fi
24259
24260 if test "$wxUSE_MICROWIN" = 1; then
24261 echo "$as_me:$LINENO: checking for MicroWindows" >&5
24262echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
24263 if test "x$MICROWINDOWS" = x ; then
24264 echo "$as_me:$LINENO: result: not found" >&5
24265echo "${ECHO_T}not found" >&6
24266 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
24267echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
24268 { (exit 1); exit 1; }; }
24269 else
24270 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
24271echo "${ECHO_T}$MICROWINDOWS" >&6
24272 fi
24273
24274 if test -f $MICROWINDOWS/lib/libmwin.a; then
24275 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
24276echo "${ECHO_T}MicroWindows' libraries found." >&6
24277 else
24278 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
24279echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
24280 { (exit 1); exit 1; }; }
24281 fi
24282
24283 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
24284 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
24285
24286 wxUSE_UNIVERSAL="yes"
24287
24288 AFMINSTALL=afminstall
24289 TOOLKIT=MICROWIN
24290 GUIDIST=MICROWIN_DIST
24291
24292 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
24293 fi
24294
74b84332 24295 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
5294a27e
VZ
24296
24297if test "x$ac_path_x_has_been_run" != xyes; then
24298 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
24299echo $ECHO_N "checking for X... $ECHO_C" >&6
24300
5294a27e 24301ac_path_x_has_been_run=yes
a848cd7e
SC
24302
24303# Check whether --with-x or --without-x was given.
24304if test "${with_x+set}" = set; then
24305 withval="$with_x"
24306
24307fi;
24308# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24309if test "x$with_x" = xno; then
24310 # The user explicitly disabled X.
24311 have_x=disabled
24312else
24313 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
24314 # Both variables are already set.
24315 have_x=yes
24316 else
24317 if test "${ac_cv_have_x+set}" = set; then
24318 echo $ECHO_N "(cached) $ECHO_C" >&6
24319else
24320 # One or both of the vars are not set, and there is no cached value.
24321ac_x_includes=no ac_x_libraries=no
24322rm -fr conftest.dir
24323if mkdir conftest.dir; then
24324 cd conftest.dir
24325 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
24326 cat >Imakefile <<'_ACEOF'
24327acfindx:
24328 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
24329_ACEOF
24330 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
24331 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24332 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
24333 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24334 for ac_extension in a so sl; do
24335 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
24336 test -f $ac_im_libdir/libX11.$ac_extension; then
24337 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
24338 fi
24339 done
24340 # Screen out bogus values from the imake configuration. They are
24341 # bogus both because they are the default anyway, and because
24342 # using them would break gcc on systems where it needs fixed includes.
24343 case $ac_im_incroot in
24344 /usr/include) ;;
24345 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24346 esac
24347 case $ac_im_usrlibdir in
24348 /usr/lib | /lib) ;;
24349 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24350 esac
24351 fi
24352 cd ..
24353 rm -fr conftest.dir
24354fi
24355
24356# Standard set of common directories for X headers.
24357# Check X11 before X11Rn because it is often a symlink to the current release.
24358ac_x_header_dirs='
24359/usr/X11/include
24360/usr/X11R6/include
24361/usr/X11R5/include
24362/usr/X11R4/include
24363
24364/usr/include/X11
24365/usr/include/X11R6
24366/usr/include/X11R5
24367/usr/include/X11R4
24368
24369/usr/local/X11/include
24370/usr/local/X11R6/include
24371/usr/local/X11R5/include
24372/usr/local/X11R4/include
24373
24374/usr/local/include/X11
24375/usr/local/include/X11R6
24376/usr/local/include/X11R5
24377/usr/local/include/X11R4
24378
24379/usr/X386/include
24380/usr/x386/include
24381/usr/XFree86/include/X11
24382
24383/usr/include
24384/usr/local/include
24385/usr/unsupported/include
24386/usr/athena/include
24387/usr/local/x11r5/include
24388/usr/lpp/Xamples/include
24389
24390/usr/openwin/include
24391/usr/openwin/share/include'
24392
24393if test "$ac_x_includes" = no; then
5294a27e 24394 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
24395 # First, try using that file with no special directory specified.
24396 cat >conftest.$ac_ext <<_ACEOF
24397/* confdefs.h. */
24398_ACEOF
24399cat confdefs.h >>conftest.$ac_ext
24400cat >>conftest.$ac_ext <<_ACEOF
24401/* end confdefs.h. */
24402#include <X11/Intrinsic.h>
24403_ACEOF
24404if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24405 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24406 ac_status=$?
24407 grep -v '^ *+' conftest.er1 >conftest.err
24408 rm -f conftest.er1
24409 cat conftest.err >&5
24410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24411 (exit $ac_status); } >/dev/null; then
24412 if test -s conftest.err; then
24413 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24414 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24415 else
24416 ac_cpp_err=
24417 fi
24418else
24419 ac_cpp_err=yes
24420fi
24421if test -z "$ac_cpp_err"; then
24422 # We can compile using X headers with no special include directory.
24423ac_x_includes=
24424else
24425 echo "$as_me: failed program was:" >&5
24426sed 's/^/| /' conftest.$ac_ext >&5
24427
24428 for ac_dir in $ac_x_header_dirs; do
24429 if test -r "$ac_dir/X11/Intrinsic.h"; then
24430 ac_x_includes=$ac_dir
24431 break
24432 fi
24433done
24434fi
24435rm -f conftest.err conftest.$ac_ext
24436fi # $ac_x_includes = no
24437
24438if test "$ac_x_libraries" = no; then
24439 # Check for the libraries.
24440 # See if we find them without any special options.
24441 # Don't add to $LIBS permanently.
24442 ac_save_LIBS=$LIBS
24443 LIBS="-lXt $LIBS"
24444 cat >conftest.$ac_ext <<_ACEOF
24445/* confdefs.h. */
24446_ACEOF
24447cat confdefs.h >>conftest.$ac_ext
24448cat >>conftest.$ac_ext <<_ACEOF
24449/* end confdefs.h. */
24450#include <X11/Intrinsic.h>
24451int
24452main ()
24453{
24454XtMalloc (0)
24455 ;
24456 return 0;
24457}
24458_ACEOF
24459rm -f conftest.$ac_objext conftest$ac_exeext
24460if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24461 (eval $ac_link) 2>conftest.er1
a848cd7e 24462 ac_status=$?
ac1cb8d3
VS
24463 grep -v '^ *+' conftest.er1 >conftest.err
24464 rm -f conftest.er1
24465 cat conftest.err >&5
a848cd7e
SC
24466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24467 (exit $ac_status); } &&
5294a27e 24468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24470 (eval $ac_try) 2>&5
24471 ac_status=$?
24472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24473 (exit $ac_status); }; } &&
24474 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24476 (eval $ac_try) 2>&5
24477 ac_status=$?
24478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24479 (exit $ac_status); }; }; then
24480 LIBS=$ac_save_LIBS
24481# We can link X programs with no special library path.
24482ac_x_libraries=
24483else
24484 echo "$as_me: failed program was:" >&5
24485sed 's/^/| /' conftest.$ac_ext >&5
24486
24487LIBS=$ac_save_LIBS
24488for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24489do
24490 # Don't even attempt the hair of trying to link an X program!
24491 for ac_extension in a so sl; do
24492 if test -r $ac_dir/libXt.$ac_extension; then
24493 ac_x_libraries=$ac_dir
24494 break 2
24495 fi
24496 done
24497done
24498fi
ac1cb8d3
VS
24499rm -f conftest.err conftest.$ac_objext \
24500 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24501fi # $ac_x_libraries = no
24502
24503if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
24504 # Didn't find X anywhere. Cache the known absence of X.
24505 ac_cv_have_x="have_x=no"
24506else
24507 # Record where we found X for the cache.
24508 ac_cv_have_x="have_x=yes \
ac1cb8d3 24509 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
24510fi
24511fi
24512
24513 fi
24514 eval "$ac_cv_have_x"
24515fi # $with_x != no
24516
24517if test "$have_x" != yes; then
24518 echo "$as_me:$LINENO: result: $have_x" >&5
24519echo "${ECHO_T}$have_x" >&6
24520 no_x=yes
24521else
24522 # If each of the values was on the command line, it overrides each guess.
24523 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24524 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24525 # Update the cache value to reflect the command line values.
24526 ac_cv_have_x="have_x=yes \
24527 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5294a27e
VZ
24528 # It might be that x_includes is empty (headers are found in the
24529 # standard search path. Then output the corresponding message
24530 ac_out_x_includes=$x_includes
24531 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
24532 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
24533echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
24534fi
24535
5294a27e 24536fi
a848cd7e
SC
24537if test "$no_x" = yes; then
24538 # Not all programs may use this symbol, but it does not hurt to define it.
24539
24540cat >>confdefs.h <<\_ACEOF
24541#define X_DISPLAY_MISSING 1
24542_ACEOF
24543
24544 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24545else
24546 if test -n "$x_includes"; then
24547 X_CFLAGS="$X_CFLAGS -I$x_includes"
24548 fi
24549
24550 # It would also be nice to do this for all -L options, not just this one.
24551 if test -n "$x_libraries"; then
24552 X_LIBS="$X_LIBS -L$x_libraries"
24553 # For Solaris; some versions of Sun CC require a space after -R and
24554 # others require no space. Words are not sufficient . . . .
24555 case `(uname -sr) 2>/dev/null` in
24556 "SunOS 5"*)
24557 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
24558echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
24559 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24560 cat >conftest.$ac_ext <<_ACEOF
24561/* confdefs.h. */
24562_ACEOF
24563cat confdefs.h >>conftest.$ac_ext
24564cat >>conftest.$ac_ext <<_ACEOF
24565/* end confdefs.h. */
24566
24567int
24568main ()
24569{
24570
24571 ;
24572 return 0;
24573}
24574_ACEOF
24575rm -f conftest.$ac_objext conftest$ac_exeext
24576if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24577 (eval $ac_link) 2>conftest.er1
a848cd7e 24578 ac_status=$?
ac1cb8d3
VS
24579 grep -v '^ *+' conftest.er1 >conftest.err
24580 rm -f conftest.er1
24581 cat conftest.err >&5
a848cd7e
SC
24582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24583 (exit $ac_status); } &&
5294a27e 24584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24586 (eval $ac_try) 2>&5
24587 ac_status=$?
24588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24589 (exit $ac_status); }; } &&
24590 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24592 (eval $ac_try) 2>&5
24593 ac_status=$?
24594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24595 (exit $ac_status); }; }; then
24596 ac_R_nospace=yes
24597else
24598 echo "$as_me: failed program was:" >&5
24599sed 's/^/| /' conftest.$ac_ext >&5
24600
24601ac_R_nospace=no
24602fi
ac1cb8d3
VS
24603rm -f conftest.err conftest.$ac_objext \
24604 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24605 if test $ac_R_nospace = yes; then
24606 echo "$as_me:$LINENO: result: no" >&5
24607echo "${ECHO_T}no" >&6
24608 X_LIBS="$X_LIBS -R$x_libraries"
24609 else
24610 LIBS="$ac_xsave_LIBS -R $x_libraries"
24611 cat >conftest.$ac_ext <<_ACEOF
24612/* confdefs.h. */
24613_ACEOF
24614cat confdefs.h >>conftest.$ac_ext
24615cat >>conftest.$ac_ext <<_ACEOF
24616/* end confdefs.h. */
24617
24618int
24619main ()
24620{
24621
24622 ;
24623 return 0;
24624}
24625_ACEOF
24626rm -f conftest.$ac_objext conftest$ac_exeext
24627if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24628 (eval $ac_link) 2>conftest.er1
a848cd7e 24629 ac_status=$?
ac1cb8d3
VS
24630 grep -v '^ *+' conftest.er1 >conftest.err
24631 rm -f conftest.er1
24632 cat conftest.err >&5
a848cd7e
SC
24633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24634 (exit $ac_status); } &&
5294a27e 24635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24637 (eval $ac_try) 2>&5
24638 ac_status=$?
24639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24640 (exit $ac_status); }; } &&
24641 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24643 (eval $ac_try) 2>&5
24644 ac_status=$?
24645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24646 (exit $ac_status); }; }; then
24647 ac_R_space=yes
24648else
24649 echo "$as_me: failed program was:" >&5
24650sed 's/^/| /' conftest.$ac_ext >&5
24651
24652ac_R_space=no
24653fi
ac1cb8d3
VS
24654rm -f conftest.err conftest.$ac_objext \
24655 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24656 if test $ac_R_space = yes; then
24657 echo "$as_me:$LINENO: result: yes" >&5
24658echo "${ECHO_T}yes" >&6
24659 X_LIBS="$X_LIBS -R $x_libraries"
24660 else
24661 echo "$as_me:$LINENO: result: neither works" >&5
24662echo "${ECHO_T}neither works" >&6
24663 fi
24664 fi
24665 LIBS=$ac_xsave_LIBS
24666 esac
24667 fi
24668
24669 # Check for system-dependent libraries X programs must link with.
24670 # Do this before checking for the system-independent R6 libraries
24671 # (-lICE), since we may need -lsocket or whatever for X linking.
24672
24673 if test "$ISC" = yes; then
24674 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24675 else
24676 # Martyn Johnson says this is needed for Ultrix, if the X
24677 # libraries were built with DECnet support. And Karl Berry says
24678 # the Alpha needs dnet_stub (dnet does not exist).
24679 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24680 cat >conftest.$ac_ext <<_ACEOF
24681/* confdefs.h. */
24682_ACEOF
24683cat confdefs.h >>conftest.$ac_ext
24684cat >>conftest.$ac_ext <<_ACEOF
24685/* end confdefs.h. */
24686
24687/* Override any gcc2 internal prototype to avoid an error. */
24688#ifdef __cplusplus
24689extern "C"
24690#endif
24691/* We use char because int might match the return type of a gcc2
24692 builtin and then its argument prototype would still apply. */
24693char XOpenDisplay ();
24694int
24695main ()
24696{
24697XOpenDisplay ();
24698 ;
24699 return 0;
24700}
24701_ACEOF
24702rm -f conftest.$ac_objext conftest$ac_exeext
24703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24704 (eval $ac_link) 2>conftest.er1
a848cd7e 24705 ac_status=$?
ac1cb8d3
VS
24706 grep -v '^ *+' conftest.er1 >conftest.err
24707 rm -f conftest.er1
24708 cat conftest.err >&5
a848cd7e
SC
24709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24710 (exit $ac_status); } &&
5294a27e 24711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24713 (eval $ac_try) 2>&5
24714 ac_status=$?
24715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24716 (exit $ac_status); }; } &&
24717 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24719 (eval $ac_try) 2>&5
24720 ac_status=$?
24721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24722 (exit $ac_status); }; }; then
24723 :
24724else
24725 echo "$as_me: failed program was:" >&5
24726sed 's/^/| /' conftest.$ac_ext >&5
24727
24728echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
24729echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
24730if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
24731 echo $ECHO_N "(cached) $ECHO_C" >&6
24732else
24733 ac_check_lib_save_LIBS=$LIBS
24734LIBS="-ldnet $LIBS"
24735cat >conftest.$ac_ext <<_ACEOF
24736/* confdefs.h. */
24737_ACEOF
24738cat confdefs.h >>conftest.$ac_ext
24739cat >>conftest.$ac_ext <<_ACEOF
24740/* end confdefs.h. */
24741
24742/* Override any gcc2 internal prototype to avoid an error. */
24743#ifdef __cplusplus
24744extern "C"
24745#endif
24746/* We use char because int might match the return type of a gcc2
24747 builtin and then its argument prototype would still apply. */
24748char dnet_ntoa ();
24749int
24750main ()
24751{
24752dnet_ntoa ();
24753 ;
24754 return 0;
24755}
24756_ACEOF
24757rm -f conftest.$ac_objext conftest$ac_exeext
24758if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24759 (eval $ac_link) 2>conftest.er1
a848cd7e 24760 ac_status=$?
ac1cb8d3
VS
24761 grep -v '^ *+' conftest.er1 >conftest.err
24762 rm -f conftest.er1
24763 cat conftest.err >&5
a848cd7e
SC
24764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24765 (exit $ac_status); } &&
5294a27e 24766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24768 (eval $ac_try) 2>&5
24769 ac_status=$?
24770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24771 (exit $ac_status); }; } &&
24772 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24774 (eval $ac_try) 2>&5
24775 ac_status=$?
24776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24777 (exit $ac_status); }; }; then
24778 ac_cv_lib_dnet_dnet_ntoa=yes
24779else
24780 echo "$as_me: failed program was:" >&5
24781sed 's/^/| /' conftest.$ac_ext >&5
24782
24783ac_cv_lib_dnet_dnet_ntoa=no
24784fi
ac1cb8d3
VS
24785rm -f conftest.err conftest.$ac_objext \
24786 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24787LIBS=$ac_check_lib_save_LIBS
24788fi
24789echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24790echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
24791if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
24792 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24793fi
24794
24795 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24796 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
24797echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
24798if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
24799 echo $ECHO_N "(cached) $ECHO_C" >&6
24800else
24801 ac_check_lib_save_LIBS=$LIBS
24802LIBS="-ldnet_stub $LIBS"
24803cat >conftest.$ac_ext <<_ACEOF
24804/* confdefs.h. */
24805_ACEOF
24806cat confdefs.h >>conftest.$ac_ext
24807cat >>conftest.$ac_ext <<_ACEOF
24808/* end confdefs.h. */
24809
24810/* Override any gcc2 internal prototype to avoid an error. */
24811#ifdef __cplusplus
24812extern "C"
24813#endif
24814/* We use char because int might match the return type of a gcc2
24815 builtin and then its argument prototype would still apply. */
24816char dnet_ntoa ();
24817int
24818main ()
24819{
24820dnet_ntoa ();
24821 ;
24822 return 0;
24823}
24824_ACEOF
24825rm -f conftest.$ac_objext conftest$ac_exeext
24826if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24827 (eval $ac_link) 2>conftest.er1
a848cd7e 24828 ac_status=$?
ac1cb8d3
VS
24829 grep -v '^ *+' conftest.er1 >conftest.err
24830 rm -f conftest.er1
24831 cat conftest.err >&5
a848cd7e
SC
24832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24833 (exit $ac_status); } &&
5294a27e 24834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24836 (eval $ac_try) 2>&5
24837 ac_status=$?
24838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24839 (exit $ac_status); }; } &&
24840 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24842 (eval $ac_try) 2>&5
24843 ac_status=$?
24844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24845 (exit $ac_status); }; }; then
24846 ac_cv_lib_dnet_stub_dnet_ntoa=yes
24847else
24848 echo "$as_me: failed program was:" >&5
24849sed 's/^/| /' conftest.$ac_ext >&5
24850
24851ac_cv_lib_dnet_stub_dnet_ntoa=no
24852fi
ac1cb8d3
VS
24853rm -f conftest.err conftest.$ac_objext \
24854 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24855LIBS=$ac_check_lib_save_LIBS
24856fi
24857echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24858echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
24859if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
24860 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24861fi
24862
24863 fi
24864fi
ac1cb8d3
VS
24865rm -f conftest.err conftest.$ac_objext \
24866 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24867 LIBS="$ac_xsave_LIBS"
24868
24869 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24870 # to get the SysV transport functions.
24871 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24872 # needs -lnsl.
24873 # The nsl library prevents programs from opening the X display
24874 # on Irix 5.2, according to T.E. Dickey.
24875 # The functions gethostbyname, getservbyname, and inet_addr are
24876 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24877 echo "$as_me:$LINENO: checking for gethostbyname" >&5
24878echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
24879if test "${ac_cv_func_gethostbyname+set}" = set; then
24880 echo $ECHO_N "(cached) $ECHO_C" >&6
24881else
24882 cat >conftest.$ac_ext <<_ACEOF
24883/* confdefs.h. */
24884_ACEOF
24885cat confdefs.h >>conftest.$ac_ext
24886cat >>conftest.$ac_ext <<_ACEOF
24887/* end confdefs.h. */
ac1cb8d3
VS
24888/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
24889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24890#define gethostbyname innocuous_gethostbyname
24891
a848cd7e
SC
24892/* System header to define __stub macros and hopefully few prototypes,
24893 which can conflict with char gethostbyname (); below.
24894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24895 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24896
a848cd7e
SC
24897#ifdef __STDC__
24898# include <limits.h>
24899#else
24900# include <assert.h>
24901#endif
ac1cb8d3
VS
24902
24903#undef gethostbyname
24904
a848cd7e
SC
24905/* Override any gcc2 internal prototype to avoid an error. */
24906#ifdef __cplusplus
24907extern "C"
24908{
24909#endif
24910/* We use char because int might match the return type of a gcc2
24911 builtin and then its argument prototype would still apply. */
24912char gethostbyname ();
24913/* The GNU C library defines this for functions which it implements
24914 to always fail with ENOSYS. Some functions are actually named
24915 something starting with __ and the normal name is an alias. */
24916#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
24917choke me
24918#else
24919char (*f) () = gethostbyname;
24920#endif
24921#ifdef __cplusplus
24922}
24923#endif
24924
24925int
24926main ()
24927{
24928return f != gethostbyname;
24929 ;
24930 return 0;
24931}
24932_ACEOF
24933rm -f conftest.$ac_objext conftest$ac_exeext
24934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24935 (eval $ac_link) 2>conftest.er1
a848cd7e 24936 ac_status=$?
ac1cb8d3
VS
24937 grep -v '^ *+' conftest.er1 >conftest.err
24938 rm -f conftest.er1
24939 cat conftest.err >&5
a848cd7e
SC
24940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24941 (exit $ac_status); } &&
5294a27e 24942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24944 (eval $ac_try) 2>&5
24945 ac_status=$?
24946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24947 (exit $ac_status); }; } &&
24948 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24950 (eval $ac_try) 2>&5
24951 ac_status=$?
24952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24953 (exit $ac_status); }; }; then
24954 ac_cv_func_gethostbyname=yes
24955else
24956 echo "$as_me: failed program was:" >&5
24957sed 's/^/| /' conftest.$ac_ext >&5
24958
24959ac_cv_func_gethostbyname=no
24960fi
ac1cb8d3
VS
24961rm -f conftest.err conftest.$ac_objext \
24962 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24963fi
24964echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
24965echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
24966
24967 if test $ac_cv_func_gethostbyname = no; then
24968 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
24969echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
24970if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
24971 echo $ECHO_N "(cached) $ECHO_C" >&6
24972else
24973 ac_check_lib_save_LIBS=$LIBS
24974LIBS="-lnsl $LIBS"
24975cat >conftest.$ac_ext <<_ACEOF
24976/* confdefs.h. */
24977_ACEOF
24978cat confdefs.h >>conftest.$ac_ext
24979cat >>conftest.$ac_ext <<_ACEOF
24980/* end confdefs.h. */
24981
24982/* Override any gcc2 internal prototype to avoid an error. */
24983#ifdef __cplusplus
24984extern "C"
24985#endif
24986/* We use char because int might match the return type of a gcc2
24987 builtin and then its argument prototype would still apply. */
24988char gethostbyname ();
24989int
24990main ()
24991{
24992gethostbyname ();
24993 ;
24994 return 0;
24995}
24996_ACEOF
24997rm -f conftest.$ac_objext conftest$ac_exeext
24998if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
24999 (eval $ac_link) 2>conftest.er1
25000 ac_status=$?
25001 grep -v '^ *+' conftest.er1 >conftest.err
25002 rm -f conftest.er1
25003 cat conftest.err >&5
25004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25005 (exit $ac_status); } &&
5294a27e 25006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25008 (eval $ac_try) 2>&5
25009 ac_status=$?
25010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25011 (exit $ac_status); }; } &&
25012 { ac_try='test -s conftest$ac_exeext'
25013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25014 (eval $ac_try) 2>&5
25015 ac_status=$?
25016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25017 (exit $ac_status); }; }; then
25018 ac_cv_lib_nsl_gethostbyname=yes
25019else
25020 echo "$as_me: failed program was:" >&5
25021sed 's/^/| /' conftest.$ac_ext >&5
25022
25023ac_cv_lib_nsl_gethostbyname=no
25024fi
25025rm -f conftest.err conftest.$ac_objext \
25026 conftest$ac_exeext conftest.$ac_ext
25027LIBS=$ac_check_lib_save_LIBS
25028fi
25029echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
25030echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
25031if test $ac_cv_lib_nsl_gethostbyname = yes; then
25032 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25033fi
25034
25035 if test $ac_cv_lib_nsl_gethostbyname = no; then
25036 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
25037echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
25038if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
25039 echo $ECHO_N "(cached) $ECHO_C" >&6
25040else
25041 ac_check_lib_save_LIBS=$LIBS
25042LIBS="-lbsd $LIBS"
25043cat >conftest.$ac_ext <<_ACEOF
25044/* confdefs.h. */
25045_ACEOF
25046cat confdefs.h >>conftest.$ac_ext
25047cat >>conftest.$ac_ext <<_ACEOF
25048/* end confdefs.h. */
25049
25050/* Override any gcc2 internal prototype to avoid an error. */
25051#ifdef __cplusplus
25052extern "C"
25053#endif
25054/* We use char because int might match the return type of a gcc2
25055 builtin and then its argument prototype would still apply. */
25056char gethostbyname ();
25057int
25058main ()
25059{
25060gethostbyname ();
25061 ;
25062 return 0;
25063}
25064_ACEOF
25065rm -f conftest.$ac_objext conftest$ac_exeext
25066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25067 (eval $ac_link) 2>conftest.er1
a848cd7e 25068 ac_status=$?
ac1cb8d3
VS
25069 grep -v '^ *+' conftest.er1 >conftest.err
25070 rm -f conftest.er1
25071 cat conftest.err >&5
a848cd7e
SC
25072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25073 (exit $ac_status); } &&
5294a27e 25074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
25075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25076 (eval $ac_try) 2>&5
25077 ac_status=$?
25078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
25079 (exit $ac_status); }; } &&
25080 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25082 (eval $ac_try) 2>&5
25083 ac_status=$?
25084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25085 (exit $ac_status); }; }; then
25086 ac_cv_lib_bsd_gethostbyname=yes
25087else
25088 echo "$as_me: failed program was:" >&5
25089sed 's/^/| /' conftest.$ac_ext >&5
25090
25091ac_cv_lib_bsd_gethostbyname=no
25092fi
ac1cb8d3
VS
25093rm -f conftest.err conftest.$ac_objext \
25094 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25095LIBS=$ac_check_lib_save_LIBS
25096fi
25097echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
25098echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
25099if test $ac_cv_lib_bsd_gethostbyname = yes; then
25100 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25101fi
25102
25103 fi
25104 fi
25105
25106 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25107 # socket/setsockopt and other routines are undefined under SCO ODT
25108 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25109 # on later versions), says Simon Leinen: it contains gethostby*
25110 # variants that don't use the name server (or something). -lsocket
25111 # must be given before -lnsl if both are needed. We assume that
25112 # if connect needs -lnsl, so does gethostbyname.
25113 echo "$as_me:$LINENO: checking for connect" >&5
25114echo $ECHO_N "checking for connect... $ECHO_C" >&6
25115if test "${ac_cv_func_connect+set}" = set; then
25116 echo $ECHO_N "(cached) $ECHO_C" >&6
25117else
25118 cat >conftest.$ac_ext <<_ACEOF
25119/* confdefs.h. */
25120_ACEOF
25121cat confdefs.h >>conftest.$ac_ext
25122cat >>conftest.$ac_ext <<_ACEOF
25123/* end confdefs.h. */
ac1cb8d3
VS
25124/* Define connect to an innocuous variant, in case <limits.h> declares connect.
25125 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25126#define connect innocuous_connect
25127
a848cd7e
SC
25128/* System header to define __stub macros and hopefully few prototypes,
25129 which can conflict with char connect (); below.
25130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25131 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25132
a848cd7e
SC
25133#ifdef __STDC__
25134# include <limits.h>
25135#else
25136# include <assert.h>
25137#endif
ac1cb8d3
VS
25138
25139#undef connect
25140
a848cd7e
SC
25141/* Override any gcc2 internal prototype to avoid an error. */
25142#ifdef __cplusplus
25143extern "C"
25144{
25145#endif
25146/* We use char because int might match the return type of a gcc2
25147 builtin and then its argument prototype would still apply. */
25148char connect ();
25149/* The GNU C library defines this for functions which it implements
25150 to always fail with ENOSYS. Some functions are actually named
25151 something starting with __ and the normal name is an alias. */
25152#if defined (__stub_connect) || defined (__stub___connect)
25153choke me
25154#else
25155char (*f) () = connect;
25156#endif
25157#ifdef __cplusplus
25158}
25159#endif
25160
25161int
25162main ()
25163{
25164return f != connect;
25165 ;
25166 return 0;
25167}
25168_ACEOF
25169rm -f conftest.$ac_objext conftest$ac_exeext
25170if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25171 (eval $ac_link) 2>conftest.er1
a848cd7e 25172 ac_status=$?
ac1cb8d3
VS
25173 grep -v '^ *+' conftest.er1 >conftest.err
25174 rm -f conftest.er1
25175 cat conftest.err >&5
a848cd7e
SC
25176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25177 (exit $ac_status); } &&
5294a27e 25178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25180 (eval $ac_try) 2>&5
25181 ac_status=$?
25182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25183 (exit $ac_status); }; } &&
25184 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25186 (eval $ac_try) 2>&5
25187 ac_status=$?
25188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25189 (exit $ac_status); }; }; then
25190 ac_cv_func_connect=yes
25191else
25192 echo "$as_me: failed program was:" >&5
25193sed 's/^/| /' conftest.$ac_ext >&5
25194
25195ac_cv_func_connect=no
25196fi
ac1cb8d3
VS
25197rm -f conftest.err conftest.$ac_objext \
25198 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25199fi
25200echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
25201echo "${ECHO_T}$ac_cv_func_connect" >&6
25202
25203 if test $ac_cv_func_connect = no; then
25204 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
25205echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
25206if test "${ac_cv_lib_socket_connect+set}" = set; then
25207 echo $ECHO_N "(cached) $ECHO_C" >&6
25208else
25209 ac_check_lib_save_LIBS=$LIBS
25210LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25211cat >conftest.$ac_ext <<_ACEOF
25212/* confdefs.h. */
25213_ACEOF
25214cat confdefs.h >>conftest.$ac_ext
25215cat >>conftest.$ac_ext <<_ACEOF
25216/* end confdefs.h. */
25217
25218/* Override any gcc2 internal prototype to avoid an error. */
25219#ifdef __cplusplus
25220extern "C"
25221#endif
25222/* We use char because int might match the return type of a gcc2
25223 builtin and then its argument prototype would still apply. */
25224char connect ();
25225int
25226main ()
25227{
25228connect ();
25229 ;
25230 return 0;
25231}
25232_ACEOF
25233rm -f conftest.$ac_objext conftest$ac_exeext
25234if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25235 (eval $ac_link) 2>conftest.er1
a848cd7e 25236 ac_status=$?
ac1cb8d3
VS
25237 grep -v '^ *+' conftest.er1 >conftest.err
25238 rm -f conftest.er1
25239 cat conftest.err >&5
a848cd7e
SC
25240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25241 (exit $ac_status); } &&
5294a27e 25242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25244 (eval $ac_try) 2>&5
25245 ac_status=$?
25246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25247 (exit $ac_status); }; } &&
25248 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25250 (eval $ac_try) 2>&5
25251 ac_status=$?
25252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25253 (exit $ac_status); }; }; then
25254 ac_cv_lib_socket_connect=yes
25255else
25256 echo "$as_me: failed program was:" >&5
25257sed 's/^/| /' conftest.$ac_ext >&5
25258
25259ac_cv_lib_socket_connect=no
25260fi
ac1cb8d3
VS
25261rm -f conftest.err conftest.$ac_objext \
25262 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25263LIBS=$ac_check_lib_save_LIBS
25264fi
25265echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
25266echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
25267if test $ac_cv_lib_socket_connect = yes; then
25268 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25269fi
25270
25271 fi
25272
25273 # Guillermo Gomez says -lposix is necessary on A/UX.
25274 echo "$as_me:$LINENO: checking for remove" >&5
25275echo $ECHO_N "checking for remove... $ECHO_C" >&6
25276if test "${ac_cv_func_remove+set}" = set; then
25277 echo $ECHO_N "(cached) $ECHO_C" >&6
25278else
25279 cat >conftest.$ac_ext <<_ACEOF
25280/* confdefs.h. */
25281_ACEOF
25282cat confdefs.h >>conftest.$ac_ext
25283cat >>conftest.$ac_ext <<_ACEOF
25284/* end confdefs.h. */
ac1cb8d3
VS
25285/* Define remove to an innocuous variant, in case <limits.h> declares remove.
25286 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25287#define remove innocuous_remove
25288
a848cd7e
SC
25289/* System header to define __stub macros and hopefully few prototypes,
25290 which can conflict with char remove (); below.
25291 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25292 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25293
a848cd7e
SC
25294#ifdef __STDC__
25295# include <limits.h>
25296#else
25297# include <assert.h>
25298#endif
ac1cb8d3
VS
25299
25300#undef remove
25301
a848cd7e
SC
25302/* Override any gcc2 internal prototype to avoid an error. */
25303#ifdef __cplusplus
25304extern "C"
25305{
25306#endif
25307/* We use char because int might match the return type of a gcc2
25308 builtin and then its argument prototype would still apply. */
25309char remove ();
25310/* The GNU C library defines this for functions which it implements
25311 to always fail with ENOSYS. Some functions are actually named
25312 something starting with __ and the normal name is an alias. */
25313#if defined (__stub_remove) || defined (__stub___remove)
25314choke me
25315#else
25316char (*f) () = remove;
25317#endif
25318#ifdef __cplusplus
25319}
25320#endif
25321
25322int
25323main ()
25324{
25325return f != remove;
25326 ;
25327 return 0;
25328}
25329_ACEOF
25330rm -f conftest.$ac_objext conftest$ac_exeext
25331if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25332 (eval $ac_link) 2>conftest.er1
a848cd7e 25333 ac_status=$?
ac1cb8d3
VS
25334 grep -v '^ *+' conftest.er1 >conftest.err
25335 rm -f conftest.er1
25336 cat conftest.err >&5
a848cd7e
SC
25337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25338 (exit $ac_status); } &&
5294a27e 25339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25341 (eval $ac_try) 2>&5
25342 ac_status=$?
25343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25344 (exit $ac_status); }; } &&
25345 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25347 (eval $ac_try) 2>&5
25348 ac_status=$?
25349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25350 (exit $ac_status); }; }; then
25351 ac_cv_func_remove=yes
25352else
25353 echo "$as_me: failed program was:" >&5
25354sed 's/^/| /' conftest.$ac_ext >&5
25355
25356ac_cv_func_remove=no
25357fi
ac1cb8d3
VS
25358rm -f conftest.err conftest.$ac_objext \
25359 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25360fi
25361echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
25362echo "${ECHO_T}$ac_cv_func_remove" >&6
25363
25364 if test $ac_cv_func_remove = no; then
25365 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
25366echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
25367if test "${ac_cv_lib_posix_remove+set}" = set; then
25368 echo $ECHO_N "(cached) $ECHO_C" >&6
25369else
25370 ac_check_lib_save_LIBS=$LIBS
25371LIBS="-lposix $LIBS"
25372cat >conftest.$ac_ext <<_ACEOF
25373/* confdefs.h. */
25374_ACEOF
25375cat confdefs.h >>conftest.$ac_ext
25376cat >>conftest.$ac_ext <<_ACEOF
25377/* end confdefs.h. */
25378
25379/* Override any gcc2 internal prototype to avoid an error. */
25380#ifdef __cplusplus
25381extern "C"
25382#endif
25383/* We use char because int might match the return type of a gcc2
25384 builtin and then its argument prototype would still apply. */
25385char remove ();
25386int
25387main ()
25388{
25389remove ();
25390 ;
25391 return 0;
25392}
25393_ACEOF
25394rm -f conftest.$ac_objext conftest$ac_exeext
25395if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25396 (eval $ac_link) 2>conftest.er1
a848cd7e 25397 ac_status=$?
ac1cb8d3
VS
25398 grep -v '^ *+' conftest.er1 >conftest.err
25399 rm -f conftest.er1
25400 cat conftest.err >&5
a848cd7e
SC
25401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25402 (exit $ac_status); } &&
5294a27e 25403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25405 (eval $ac_try) 2>&5
25406 ac_status=$?
25407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25408 (exit $ac_status); }; } &&
25409 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25411 (eval $ac_try) 2>&5
25412 ac_status=$?
25413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25414 (exit $ac_status); }; }; then
25415 ac_cv_lib_posix_remove=yes
25416else
25417 echo "$as_me: failed program was:" >&5
25418sed 's/^/| /' conftest.$ac_ext >&5
25419
25420ac_cv_lib_posix_remove=no
25421fi
ac1cb8d3
VS
25422rm -f conftest.err conftest.$ac_objext \
25423 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25424LIBS=$ac_check_lib_save_LIBS
25425fi
25426echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
25427echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
25428if test $ac_cv_lib_posix_remove = yes; then
25429 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25430fi
25431
25432 fi
25433
25434 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25435 echo "$as_me:$LINENO: checking for shmat" >&5
25436echo $ECHO_N "checking for shmat... $ECHO_C" >&6
25437if test "${ac_cv_func_shmat+set}" = set; then
25438 echo $ECHO_N "(cached) $ECHO_C" >&6
25439else
25440 cat >conftest.$ac_ext <<_ACEOF
25441/* confdefs.h. */
25442_ACEOF
25443cat confdefs.h >>conftest.$ac_ext
25444cat >>conftest.$ac_ext <<_ACEOF
25445/* end confdefs.h. */
ac1cb8d3
VS
25446/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
25447 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25448#define shmat innocuous_shmat
25449
a848cd7e
SC
25450/* System header to define __stub macros and hopefully few prototypes,
25451 which can conflict with char shmat (); below.
25452 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25453 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25454
a848cd7e
SC
25455#ifdef __STDC__
25456# include <limits.h>
25457#else
25458# include <assert.h>
25459#endif
ac1cb8d3
VS
25460
25461#undef shmat
25462
a848cd7e
SC
25463/* Override any gcc2 internal prototype to avoid an error. */
25464#ifdef __cplusplus
25465extern "C"
25466{
25467#endif
25468/* We use char because int might match the return type of a gcc2
25469 builtin and then its argument prototype would still apply. */
25470char shmat ();
25471/* The GNU C library defines this for functions which it implements
25472 to always fail with ENOSYS. Some functions are actually named
25473 something starting with __ and the normal name is an alias. */
25474#if defined (__stub_shmat) || defined (__stub___shmat)
25475choke me
25476#else
25477char (*f) () = shmat;
25478#endif
25479#ifdef __cplusplus
25480}
25481#endif
25482
25483int
25484main ()
25485{
25486return f != shmat;
25487 ;
25488 return 0;
25489}
25490_ACEOF
25491rm -f conftest.$ac_objext conftest$ac_exeext
25492if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25493 (eval $ac_link) 2>conftest.er1
a848cd7e 25494 ac_status=$?
ac1cb8d3
VS
25495 grep -v '^ *+' conftest.er1 >conftest.err
25496 rm -f conftest.er1
25497 cat conftest.err >&5
a848cd7e
SC
25498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25499 (exit $ac_status); } &&
5294a27e 25500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25502 (eval $ac_try) 2>&5
25503 ac_status=$?
25504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25505 (exit $ac_status); }; } &&
25506 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25508 (eval $ac_try) 2>&5
25509 ac_status=$?
25510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25511 (exit $ac_status); }; }; then
25512 ac_cv_func_shmat=yes
25513else
25514 echo "$as_me: failed program was:" >&5
25515sed 's/^/| /' conftest.$ac_ext >&5
25516
25517ac_cv_func_shmat=no
25518fi
ac1cb8d3
VS
25519rm -f conftest.err conftest.$ac_objext \
25520 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25521fi
25522echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
25523echo "${ECHO_T}$ac_cv_func_shmat" >&6
25524
25525 if test $ac_cv_func_shmat = no; then
25526 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
25527echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
25528if test "${ac_cv_lib_ipc_shmat+set}" = set; then
25529 echo $ECHO_N "(cached) $ECHO_C" >&6
25530else
25531 ac_check_lib_save_LIBS=$LIBS
25532LIBS="-lipc $LIBS"
25533cat >conftest.$ac_ext <<_ACEOF
25534/* confdefs.h. */
25535_ACEOF
25536cat confdefs.h >>conftest.$ac_ext
25537cat >>conftest.$ac_ext <<_ACEOF
25538/* end confdefs.h. */
25539
25540/* Override any gcc2 internal prototype to avoid an error. */
25541#ifdef __cplusplus
25542extern "C"
25543#endif
25544/* We use char because int might match the return type of a gcc2
25545 builtin and then its argument prototype would still apply. */
25546char shmat ();
25547int
25548main ()
25549{
25550shmat ();
25551 ;
25552 return 0;
25553}
25554_ACEOF
25555rm -f conftest.$ac_objext conftest$ac_exeext
25556if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25557 (eval $ac_link) 2>conftest.er1
a848cd7e 25558 ac_status=$?
ac1cb8d3
VS
25559 grep -v '^ *+' conftest.er1 >conftest.err
25560 rm -f conftest.er1
25561 cat conftest.err >&5
a848cd7e
SC
25562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25563 (exit $ac_status); } &&
5294a27e 25564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25566 (eval $ac_try) 2>&5
25567 ac_status=$?
25568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25569 (exit $ac_status); }; } &&
25570 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25572 (eval $ac_try) 2>&5
25573 ac_status=$?
25574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25575 (exit $ac_status); }; }; then
25576 ac_cv_lib_ipc_shmat=yes
25577else
25578 echo "$as_me: failed program was:" >&5
25579sed 's/^/| /' conftest.$ac_ext >&5
25580
25581ac_cv_lib_ipc_shmat=no
25582fi
ac1cb8d3
VS
25583rm -f conftest.err conftest.$ac_objext \
25584 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25585LIBS=$ac_check_lib_save_LIBS
25586fi
25587echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
25588echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
25589if test $ac_cv_lib_ipc_shmat = yes; then
25590 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25591fi
25592
25593 fi
25594 fi
25595
25596 # Check for libraries that X11R6 Xt/Xaw programs need.
25597 ac_save_LDFLAGS=$LDFLAGS
25598 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25599 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25600 # check for ICE first), but we must link in the order -lSM -lICE or
25601 # we get undefined symbols. So assume we have SM if we have ICE.
25602 # These have to be linked with before -lX11, unlike the other
25603 # libraries we check for below, so use a different variable.
25604 # John Interrante, Karl Berry
25605 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
25606echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
25607if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
25608 echo $ECHO_N "(cached) $ECHO_C" >&6
25609else
25610 ac_check_lib_save_LIBS=$LIBS
25611LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25612cat >conftest.$ac_ext <<_ACEOF
25613/* confdefs.h. */
25614_ACEOF
25615cat confdefs.h >>conftest.$ac_ext
25616cat >>conftest.$ac_ext <<_ACEOF
25617/* end confdefs.h. */
25618
25619/* Override any gcc2 internal prototype to avoid an error. */
25620#ifdef __cplusplus
25621extern "C"
25622#endif
25623/* We use char because int might match the return type of a gcc2
25624 builtin and then its argument prototype would still apply. */
25625char IceConnectionNumber ();
25626int
25627main ()
25628{
25629IceConnectionNumber ();
25630 ;
25631 return 0;
25632}
25633_ACEOF
25634rm -f conftest.$ac_objext conftest$ac_exeext
25635if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25636 (eval $ac_link) 2>conftest.er1
a848cd7e 25637 ac_status=$?
ac1cb8d3
VS
25638 grep -v '^ *+' conftest.er1 >conftest.err
25639 rm -f conftest.er1
25640 cat conftest.err >&5
a848cd7e
SC
25641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25642 (exit $ac_status); } &&
5294a27e 25643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25645 (eval $ac_try) 2>&5
25646 ac_status=$?
25647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25648 (exit $ac_status); }; } &&
25649 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25651 (eval $ac_try) 2>&5
25652 ac_status=$?
25653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25654 (exit $ac_status); }; }; then
25655 ac_cv_lib_ICE_IceConnectionNumber=yes
25656else
25657 echo "$as_me: failed program was:" >&5
25658sed 's/^/| /' conftest.$ac_ext >&5
25659
25660ac_cv_lib_ICE_IceConnectionNumber=no
25661fi
ac1cb8d3
VS
25662rm -f conftest.err conftest.$ac_objext \
25663 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25664LIBS=$ac_check_lib_save_LIBS
25665fi
25666echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25667echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
25668if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
25669 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25670fi
25671
25672 LDFLAGS=$ac_save_LDFLAGS
25673
25674fi
25675
25676
25677 if test "$no_x" = "yes"; then
25678 { { echo "$as_me:$LINENO: error: X11 not found" >&5
25679echo "$as_me: error: X11 not found" >&2;}
25680 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
25681 fi
25682
74b84332
VS
25683 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
25684 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
25685 AFMINSTALL=afminstall
25686 COMPILED_X_PROGRAM=0
25687
74b84332
VS
25688 fi
25689
25690 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
25691 if test "$wxUSE_NANOX" = "yes"; then
25692 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
25693echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
25694 if test "x$MICROWIN" = x ; then
25695 echo "$as_me:$LINENO: result: not found" >&5
25696echo "${ECHO_T}not found" >&6
25697 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
25698echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
25699 { (exit 1); exit 1; }; }
25700 else
25701 echo "$as_me:$LINENO: result: $MICROWIN" >&5
25702echo "${ECHO_T}$MICROWIN" >&6
25703 cat >>confdefs.h <<\_ACEOF
25704#define wxUSE_NANOX 1
25705_ACEOF
25706
25707 fi
25708 fi
25709
25710 if test "$wxUSE_UNICODE" = "yes"; then
25711
25712 succeeded=no
25713
25714 if test -z "$PKG_CONFIG"; then
25715 # Extract the first word of "pkg-config", so it can be a program name with args.
25716set dummy pkg-config; ac_word=$2
25717echo "$as_me:$LINENO: checking for $ac_word" >&5
25718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25719if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25720 echo $ECHO_N "(cached) $ECHO_C" >&6
25721else
25722 case $PKG_CONFIG in
25723 [\\/]* | ?:[\\/]*)
25724 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25725 ;;
25726 *)
25727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25728for as_dir in $PATH
25729do
25730 IFS=$as_save_IFS
25731 test -z "$as_dir" && as_dir=.
25732 for ac_exec_ext in '' $ac_executable_extensions; do
25733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25734 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25736 break 2
25737 fi
25738done
25739done
25740
25741 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25742 ;;
25743esac
25744fi
25745PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25746
25747if test -n "$PKG_CONFIG"; then
25748 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25749echo "${ECHO_T}$PKG_CONFIG" >&6
25750else
25751 echo "$as_me:$LINENO: result: no" >&5
25752echo "${ECHO_T}no" >&6
25753fi
25754
25755 fi
25756
25757 if test "$PKG_CONFIG" = "no" ; then
25758 echo "*** The pkg-config script could not be found. Make sure it is"
25759 echo "*** in your path, or set the PKG_CONFIG environment variable"
25760 echo "*** to the full path to pkg-config."
25761 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25762 else
25763 PKG_CONFIG_MIN_VERSION=0.9.0
25764 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25765 echo "$as_me:$LINENO: checking for pangox" >&5
25766echo $ECHO_N "checking for pangox... $ECHO_C" >&6
25767
25768 if $PKG_CONFIG --exists "pangox" ; then
25769 echo "$as_me:$LINENO: result: yes" >&5
25770echo "${ECHO_T}yes" >&6
25771 succeeded=yes
25772
25773 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
25774echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
25775 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
25776 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
25777echo "${ECHO_T}$PANGOX_CFLAGS" >&6
25778
25779 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
25780echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
25781 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
25782 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
25783echo "${ECHO_T}$PANGOX_LIBS" >&6
25784 else
25785 PANGOX_CFLAGS=""
25786 PANGOX_LIBS=""
25787 ## If we have a custom action on failure, don't print errors, but
25788 ## do set a variable so people can do so.
25789 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
25790
25791 fi
25792
25793
25794
25795 else
25796 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25797 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25798 fi
25799 fi
25800
25801 if test $succeeded = yes; then
25802
25803 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
25804 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
25805
25806 else
25807
25808 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
25809echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
25810 { (exit 1); exit 1; }; }
25811
25812
25813 fi
25814
25815
25816 succeeded=no
25817
25818 if test -z "$PKG_CONFIG"; then
25819 # Extract the first word of "pkg-config", so it can be a program name with args.
25820set dummy pkg-config; ac_word=$2
25821echo "$as_me:$LINENO: checking for $ac_word" >&5
25822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25823if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25824 echo $ECHO_N "(cached) $ECHO_C" >&6
25825else
25826 case $PKG_CONFIG in
25827 [\\/]* | ?:[\\/]*)
25828 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25829 ;;
25830 *)
25831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25832for as_dir in $PATH
25833do
25834 IFS=$as_save_IFS
25835 test -z "$as_dir" && as_dir=.
25836 for ac_exec_ext in '' $ac_executable_extensions; do
25837 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25838 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25840 break 2
25841 fi
25842done
25843done
25844
25845 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25846 ;;
25847esac
25848fi
25849PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25850
25851if test -n "$PKG_CONFIG"; then
25852 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25853echo "${ECHO_T}$PKG_CONFIG" >&6
25854else
25855 echo "$as_me:$LINENO: result: no" >&5
25856echo "${ECHO_T}no" >&6
25857fi
25858
25859 fi
25860
25861 if test "$PKG_CONFIG" = "no" ; then
25862 echo "*** The pkg-config script could not be found. Make sure it is"
25863 echo "*** in your path, or set the PKG_CONFIG environment variable"
25864 echo "*** to the full path to pkg-config."
25865 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25866 else
25867 PKG_CONFIG_MIN_VERSION=0.9.0
25868 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25869 echo "$as_me:$LINENO: checking for pangoft2" >&5
25870echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
25871
25872 if $PKG_CONFIG --exists "pangoft2" ; then
25873 echo "$as_me:$LINENO: result: yes" >&5
25874echo "${ECHO_T}yes" >&6
25875 succeeded=yes
25876
25877 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
25878echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
25879 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
25880 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
25881echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
25882
25883 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
25884echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
25885 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
25886 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
25887echo "${ECHO_T}$PANGOFT2_LIBS" >&6
25888 else
25889 PANGOFT2_CFLAGS=""
25890 PANGOFT2_LIBS=""
25891 ## If we have a custom action on failure, don't print errors, but
25892 ## do set a variable so people can do so.
25893 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
25894
25895 fi
25896
25897
25898
25899 else
25900 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25901 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25902 fi
25903 fi
25904
25905 if test $succeeded = yes; then
25906
25907 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
25908 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
25909
25910 else
25911
25912 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
25913echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
25914 wxUSE_PRINTING_ARCHITECTURE="no"
25915
25916
25917 fi
25918
25919
25920 succeeded=no
25921
25922 if test -z "$PKG_CONFIG"; then
25923 # Extract the first word of "pkg-config", so it can be a program name with args.
25924set dummy pkg-config; ac_word=$2
25925echo "$as_me:$LINENO: checking for $ac_word" >&5
25926echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25927if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25928 echo $ECHO_N "(cached) $ECHO_C" >&6
25929else
25930 case $PKG_CONFIG in
25931 [\\/]* | ?:[\\/]*)
25932 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25933 ;;
25934 *)
25935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25936for as_dir in $PATH
25937do
25938 IFS=$as_save_IFS
25939 test -z "$as_dir" && as_dir=.
25940 for ac_exec_ext in '' $ac_executable_extensions; do
25941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25942 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25944 break 2
25945 fi
25946done
25947done
25948
25949 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25950 ;;
25951esac
25952fi
25953PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25954
25955if test -n "$PKG_CONFIG"; then
25956 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25957echo "${ECHO_T}$PKG_CONFIG" >&6
25958else
25959 echo "$as_me:$LINENO: result: no" >&5
25960echo "${ECHO_T}no" >&6
25961fi
25962
25963 fi
25964
25965 if test "$PKG_CONFIG" = "no" ; then
25966 echo "*** The pkg-config script could not be found. Make sure it is"
25967 echo "*** in your path, or set the PKG_CONFIG environment variable"
25968 echo "*** to the full path to pkg-config."
25969 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25970 else
25971 PKG_CONFIG_MIN_VERSION=0.9.0
25972 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25973 echo "$as_me:$LINENO: checking for pangoxft" >&5
25974echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
25975
25976 if $PKG_CONFIG --exists "pangoxft" ; then
25977 echo "$as_me:$LINENO: result: yes" >&5
25978echo "${ECHO_T}yes" >&6
25979 succeeded=yes
25980
25981 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
25982echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
25983 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
25984 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
25985echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
25986
25987 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
25988echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
25989 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
25990 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
25991echo "${ECHO_T}$PANGOXFT_LIBS" >&6
25992 else
25993 PANGOXFT_CFLAGS=""
25994 PANGOXFT_LIBS=""
25995 ## If we have a custom action on failure, don't print errors, but
25996 ## do set a variable so people can do so.
25997 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
25998
25999 fi
26000
26001
26002
26003 else
26004 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
26005 echo "*** See http://www.freedesktop.org/software/pkgconfig"
26006 fi
26007 fi
26008
26009 if test $succeeded = yes; then
26010
4ae1af05
MB
26011 cat >>confdefs.h <<\_ACEOF
26012#define HAVE_PANGO_XFT 1
26013_ACEOF
26014
a848cd7e
SC
26015 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
26016 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
26017
26018 else
26019
26020 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
26021echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
26022
26023
26024 fi
26025
304205f1
VS
26026 save_CFLAGS="$CFLAGS"
26027 save_LIBS="$LIBS"
26028 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
26029 LIBS="$LIBS $PANGOX_LIBS"
26030
26031for ac_func in pango_font_family_is_monospace
26032do
26033as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26034echo "$as_me:$LINENO: checking for $ac_func" >&5
26035echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26036if eval "test \"\${$as_ac_var+set}\" = set"; then
26037 echo $ECHO_N "(cached) $ECHO_C" >&6
26038else
26039 cat >conftest.$ac_ext <<_ACEOF
26040/* confdefs.h. */
26041_ACEOF
26042cat confdefs.h >>conftest.$ac_ext
26043cat >>conftest.$ac_ext <<_ACEOF
26044/* end confdefs.h. */
26045/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26047#define $ac_func innocuous_$ac_func
26048
26049/* System header to define __stub macros and hopefully few prototypes,
26050 which can conflict with char $ac_func (); below.
26051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26052 <limits.h> exists even on freestanding compilers. */
26053
26054#ifdef __STDC__
26055# include <limits.h>
26056#else
26057# include <assert.h>
26058#endif
26059
26060#undef $ac_func
26061
26062/* Override any gcc2 internal prototype to avoid an error. */
26063#ifdef __cplusplus
26064extern "C"
26065{
26066#endif
26067/* We use char because int might match the return type of a gcc2
26068 builtin and then its argument prototype would still apply. */
26069char $ac_func ();
26070/* The GNU C library defines this for functions which it implements
26071 to always fail with ENOSYS. Some functions are actually named
26072 something starting with __ and the normal name is an alias. */
26073#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26074choke me
26075#else
26076char (*f) () = $ac_func;
26077#endif
26078#ifdef __cplusplus
26079}
26080#endif
26081
26082int
26083main ()
26084{
26085return f != $ac_func;
26086 ;
26087 return 0;
26088}
26089_ACEOF
26090rm -f conftest.$ac_objext conftest$ac_exeext
26091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26092 (eval $ac_link) 2>conftest.er1
26093 ac_status=$?
26094 grep -v '^ *+' conftest.er1 >conftest.err
26095 rm -f conftest.er1
26096 cat conftest.err >&5
26097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26098 (exit $ac_status); } &&
5294a27e 26099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
26100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26101 (eval $ac_try) 2>&5
26102 ac_status=$?
26103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26104 (exit $ac_status); }; } &&
26105 { ac_try='test -s conftest$ac_exeext'
26106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26107 (eval $ac_try) 2>&5
26108 ac_status=$?
26109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26110 (exit $ac_status); }; }; then
26111 eval "$as_ac_var=yes"
26112else
26113 echo "$as_me: failed program was:" >&5
26114sed 's/^/| /' conftest.$ac_ext >&5
26115
26116eval "$as_ac_var=no"
26117fi
26118rm -f conftest.err conftest.$ac_objext \
26119 conftest$ac_exeext conftest.$ac_ext
26120fi
26121echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26122echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26123if test `eval echo '${'$as_ac_var'}'` = yes; then
26124 cat >>confdefs.h <<_ACEOF
26125#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26126_ACEOF
26127
26128fi
26129done
26130
26131 CFLAGS="$save_CFLAGS"
26132 LIBS="$save_LIBS"
a848cd7e
SC
26133 fi
26134
26135 wxUSE_UNIVERSAL="yes"
26136
26137 if test "$wxUSE_NANOX" = "yes"; then
26138 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
26139 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"
26140 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
26141 else
26142 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
26143 fi
26144
a848cd7e
SC
26145 TOOLKIT=X11
26146 GUIDIST=X11_DIST
26147 fi
26148
26149 if test "$wxUSE_MOTIF" = 1; then
74b84332
VS
26150 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
26151echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 26152
74b84332
VS
26153ac_find_includes=
26154for ac_dir in $SEARCH_INCLUDE /usr/include;
26155 do
26156 if test -f "$ac_dir/Xm/Xm.h"; then
26157 ac_find_includes=$ac_dir
26158 break
26159 fi
26160 done
a848cd7e 26161
74b84332
VS
26162 if test "$ac_find_includes" != "" ; then
26163 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
26164echo "${ECHO_T}found in $ac_find_includes" >&6
26165
26166 if test "x$ac_find_includes" = "x/usr/include"; then
26167 ac_path_to_include=""
26168 else
26169 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
26170 result=$?
26171 if test $result = 0; then
26172 ac_path_to_include=""
26173 else
26174 ac_path_to_include=" -I$ac_find_includes"
26175 fi
a848cd7e
SC
26176 fi
26177
74b84332
VS
26178 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
26179 else
26180 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
26181/* confdefs.h. */
26182_ACEOF
26183cat confdefs.h >>conftest.$ac_ext
26184cat >>conftest.$ac_ext <<_ACEOF
26185/* end confdefs.h. */
26186
74b84332
VS
26187 #include <Xm/Xm.h>
26188
a848cd7e
SC
26189int
26190main ()
26191{
26192
74b84332
VS
26193 int version;
26194 version = xmUseVersion;
26195
a848cd7e
SC
26196 ;
26197 return 0;
26198}
26199_ACEOF
74b84332
VS
26200rm -f conftest.$ac_objext
26201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26202 (eval $ac_compile) 2>conftest.er1
a848cd7e 26203 ac_status=$?
ac1cb8d3
VS
26204 grep -v '^ *+' conftest.er1 >conftest.err
26205 rm -f conftest.er1
26206 cat conftest.err >&5
a848cd7e
SC
26207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26208 (exit $ac_status); } &&
5294a27e 26209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26211 (eval $ac_try) 2>&5
26212 ac_status=$?
26213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26214 (exit $ac_status); }; } &&
74b84332 26215 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26217 (eval $ac_try) 2>&5
26218 ac_status=$?
26219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26220 (exit $ac_status); }; }; then
74b84332
VS
26221
26222 echo "$as_me:$LINENO: result: found in default search path" >&5
26223echo "${ECHO_T}found in default search path" >&6
26224 COMPILED_X_PROGRAM=1
26225
a848cd7e
SC
26226else
26227 echo "$as_me: failed program was:" >&5
26228sed 's/^/| /' conftest.$ac_ext >&5
26229
a848cd7e 26230
74b84332
VS
26231 echo "$as_me:$LINENO: result: no" >&5
26232echo "${ECHO_T}no" >&6
26233 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
26234echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
26235 { (exit 1); exit 1; }; }
a848cd7e 26236
a848cd7e 26237
a848cd7e 26238fi
74b84332
VS
26239rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26240 fi
26241
26242 if test "$COMPILED_X_PROGRAM" = 0; then
26243 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
26244echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
26245
26246ac_find_libraries=
26247for ac_dir in $SEARCH_LIB /usr/lib;
26248 do
26249 for ac_extension in a so sl dylib; do
26250 if test -f "$ac_dir/libXm.$ac_extension"; then
26251 ac_find_libraries=$ac_dir
26252 break 2
a848cd7e 26253 fi
74b84332
VS
26254 done
26255 done
a848cd7e 26256
74b84332
VS
26257 if test "$ac_find_libraries" != "" ; then
26258 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26259echo "${ECHO_T}found at $ac_find_libraries" >&6
a848cd7e 26260
74b84332
VS
26261
26262 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26263 result=$?
26264 if test $result = 0; then
26265 ac_path_to_link=""
a848cd7e 26266 else
74b84332
VS
26267 ac_path_to_link=" -L$ac_find_libraries"
26268 fi
26269
26270 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26271 else
26272 save_CFLAGS=$CFLAGS
26273 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26274
26275 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
26276/* confdefs.h. */
26277_ACEOF
26278cat confdefs.h >>conftest.$ac_ext
26279cat >>conftest.$ac_ext <<_ACEOF
26280/* end confdefs.h. */
26281
74b84332
VS
26282 #include <Xm/Xm.h>
26283
a848cd7e
SC
26284int
26285main ()
26286{
74b84332
VS
26287
26288 int version;
26289 version = xmUseVersion;
26290
a848cd7e
SC
26291 ;
26292 return 0;
26293}
26294_ACEOF
74b84332
VS
26295rm -f conftest.$ac_objext
26296if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26297 (eval $ac_compile) 2>conftest.er1
a848cd7e 26298 ac_status=$?
ac1cb8d3
VS
26299 grep -v '^ *+' conftest.er1 >conftest.err
26300 rm -f conftest.er1
26301 cat conftest.err >&5
a848cd7e
SC
26302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26303 (exit $ac_status); } &&
5294a27e 26304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26306 (eval $ac_try) 2>&5
26307 ac_status=$?
26308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26309 (exit $ac_status); }; } &&
74b84332 26310 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26312 (eval $ac_try) 2>&5
26313 ac_status=$?
26314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26315 (exit $ac_status); }; }; then
74b84332
VS
26316
26317 echo "$as_me:$LINENO: result: found in default search path" >&5
26318echo "${ECHO_T}found in default search path" >&6
26319 COMPILED_X_PROGRAM=1
26320
a848cd7e
SC
26321else
26322 echo "$as_me: failed program was:" >&5
26323sed 's/^/| /' conftest.$ac_ext >&5
26324
74b84332
VS
26325
26326 echo "$as_me:$LINENO: result: no" >&5
26327echo "${ECHO_T}no" >&6
26328 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
26329echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
26330 { (exit 1); exit 1; }; }
26331
26332
26333fi
26334rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26335
26336 CFLAGS=$save_CFLAGS
26337 fi
26338 fi
26339
26340 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
26341echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
26342 libp_link=""
26343 libsm_ice_link=""
26344 libs_found=0
26345 for libp in "" " -lXp"; do
26346 if test "$libs_found" = "0"; then
26347 for libsm_ice in "" " -lSM -lICE"; do
26348 if test "$libs_found" = "0"; then
26349 save_LIBS="$LIBS"
26350 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
26351 save_CFLAGS=$CFLAGS
26352 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26353
26354 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
26355/* confdefs.h. */
26356_ACEOF
26357cat confdefs.h >>conftest.$ac_ext
26358cat >>conftest.$ac_ext <<_ACEOF
26359/* end confdefs.h. */
26360
74b84332
VS
26361 #include <Xm/Xm.h>
26362 #include <Xm/List.h>
26363
a848cd7e
SC
26364int
26365main ()
26366{
74b84332
VS
26367
26368 XmString string = NULL;
26369 Widget w = NULL;
26370 int position = 0;
26371 XmListAddItem(w, string, position);
26372
a848cd7e
SC
26373 ;
26374 return 0;
26375}
26376_ACEOF
26377rm -f conftest.$ac_objext conftest$ac_exeext
26378if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26379 (eval $ac_link) 2>conftest.er1
a848cd7e 26380 ac_status=$?
ac1cb8d3
VS
26381 grep -v '^ *+' conftest.er1 >conftest.err
26382 rm -f conftest.er1
26383 cat conftest.err >&5
a848cd7e
SC
26384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26385 (exit $ac_status); } &&
5294a27e 26386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26388 (eval $ac_try) 2>&5
26389 ac_status=$?
26390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26391 (exit $ac_status); }; } &&
26392 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26394 (eval $ac_try) 2>&5
26395 ac_status=$?
26396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26397 (exit $ac_status); }; }; then
26398
26399 libp_link="$libp"
26400 libsm_ice_link="$libsm_ice"
26401 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
26402echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
26403 libs_found=1
26404
26405else
26406 echo "$as_me: failed program was:" >&5
26407sed 's/^/| /' conftest.$ac_ext >&5
26408
26409
26410
26411fi
ac1cb8d3
VS
26412rm -f conftest.err conftest.$ac_objext \
26413 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26414
26415 LIBS="$save_LIBS"
26416 CFLAGS=$save_CFLAGS
26417 fi
26418 done
26419 fi
26420 done
26421
26422 if test "$libs_found" = "0"; then
26423 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
26424echo "${ECHO_T}can't find the right libraries" >&6
26425 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
26426echo "$as_me: error: can't link a simple motif program" >&2;}
26427 { (exit 1); exit 1; }; }
26428 fi
26429
26430 save_CFLAGS=$CFLAGS
26431 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26432 echo "$as_me:$LINENO: checking for Motif 2" >&5
26433echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
26434 cat >conftest.$ac_ext <<_ACEOF
26435/* confdefs.h. */
26436_ACEOF
26437cat confdefs.h >>conftest.$ac_ext
26438cat >>conftest.$ac_ext <<_ACEOF
26439/* end confdefs.h. */
26440
26441 #include <Xm/Xm.h>
26442
26443int
26444main ()
26445{
26446
26447 #if XmVersion < 2000
26448 #error "Not Motif 2"
26449 #endif
26450
26451 ;
26452 return 0;
26453}
26454_ACEOF
26455rm -f conftest.$ac_objext
26456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26457 (eval $ac_compile) 2>conftest.er1
a848cd7e 26458 ac_status=$?
ac1cb8d3
VS
26459 grep -v '^ *+' conftest.er1 >conftest.err
26460 rm -f conftest.er1
26461 cat conftest.err >&5
a848cd7e
SC
26462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26463 (exit $ac_status); } &&
5294a27e 26464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26466 (eval $ac_try) 2>&5
26467 ac_status=$?
26468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26469 (exit $ac_status); }; } &&
26470 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26472 (eval $ac_try) 2>&5
26473 ac_status=$?
26474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26475 (exit $ac_status); }; }; then
26476
26477 cat >>confdefs.h <<\_ACEOF
26478#define __WXMOTIF20__ 1
26479_ACEOF
26480
26481 echo "$as_me:$LINENO: result: found" >&5
26482echo "${ECHO_T}found" >&6
26483
26484else
26485 echo "$as_me: failed program was:" >&5
26486sed 's/^/| /' conftest.$ac_ext >&5
26487
26488
26489 cat >>confdefs.h <<\_ACEOF
26490#define __WXMOTIF20__ 0
26491_ACEOF
26492
26493 echo "$as_me:$LINENO: result: not found" >&5
26494echo "${ECHO_T}not found" >&6
26495
26496fi
ac1cb8d3 26497rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26498 CFLAGS=$save_CFLAGS
26499
26500 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
26501 TOOLKIT=MOTIF
26502 GUIDIST=MOTIF_DIST
26503 fi
26504
74b84332 26505 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
26506 if test "$wxUSE_LIBXPM" = "sys"; then
26507 echo "$as_me:$LINENO: checking for Xpm library" >&5
26508echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
26509
26510ac_find_libraries=
26511for ac_dir in $SEARCH_LIB /usr/lib;
26512 do
26513 for ac_extension in a so sl dylib; do
26514 if test -f "$ac_dir/libXpm.$ac_extension"; then
26515 ac_find_libraries=$ac_dir
26516 break 2
26517 fi
26518 done
26519 done
26520
26521 if test "$ac_find_libraries" != "" ; then
26522
26523 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26524 result=$?
26525 if test $result = 0; then
26526 ac_path_to_link=""
26527 else
26528 ac_path_to_link=" -L$ac_find_libraries"
26529 fi
26530
26531 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26532 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26533echo "${ECHO_T}found at $ac_find_libraries" >&6
26534
26535 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
26536echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
26537if test "${wx_cv_x11_xpm_h+set}" = set; then
26538 echo $ECHO_N "(cached) $ECHO_C" >&6
26539else
26540
26541 save_CFLAGS=$CFLAGS
26542 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26543
26544 cat >conftest.$ac_ext <<_ACEOF
26545/* confdefs.h. */
26546_ACEOF
26547cat confdefs.h >>conftest.$ac_ext
26548cat >>conftest.$ac_ext <<_ACEOF
26549/* end confdefs.h. */
26550
26551 #include <X11/xpm.h>
26552
26553int
26554main ()
26555{
26556
26557 int version;
26558 version = XpmLibraryVersion();
26559
26560 ;
26561 return 0;
26562}
26563_ACEOF
26564rm -f conftest.$ac_objext
26565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26566 (eval $ac_compile) 2>conftest.er1
a848cd7e 26567 ac_status=$?
ac1cb8d3
VS
26568 grep -v '^ *+' conftest.er1 >conftest.err
26569 rm -f conftest.er1
26570 cat conftest.err >&5
a848cd7e
SC
26571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26572 (exit $ac_status); } &&
5294a27e 26573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26575 (eval $ac_try) 2>&5
26576 ac_status=$?
26577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26578 (exit $ac_status); }; } &&
26579 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26581 (eval $ac_try) 2>&5
26582 ac_status=$?
26583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26584 (exit $ac_status); }; }; then
26585 wx_cv_x11_xpm_h=yes
26586else
26587 echo "$as_me: failed program was:" >&5
26588sed 's/^/| /' conftest.$ac_ext >&5
26589
26590wx_cv_x11_xpm_h=no
26591
26592fi
ac1cb8d3 26593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26594
26595 CFLAGS=$save_CFLAGS
26596
26597
26598fi
26599echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
26600echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
26601
26602 if test $wx_cv_x11_xpm_h = "yes"; then
26603 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
26604 cat >>confdefs.h <<\_ACEOF
26605#define wxHAVE_LIB_XPM 1
26606_ACEOF
26607
26608 else
26609 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
26610echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
26611 fi
26612 fi
26613
26614 fi
26615
26616 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
26617echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
26618if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
26619 echo $ECHO_N "(cached) $ECHO_C" >&6
26620else
26621 ac_check_lib_save_LIBS=$LIBS
26622LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
26623cat >conftest.$ac_ext <<_ACEOF
26624/* confdefs.h. */
26625_ACEOF
26626cat confdefs.h >>conftest.$ac_ext
26627cat >>conftest.$ac_ext <<_ACEOF
26628/* end confdefs.h. */
26629
26630/* Override any gcc2 internal prototype to avoid an error. */
26631#ifdef __cplusplus
26632extern "C"
26633#endif
26634/* We use char because int might match the return type of a gcc2
26635 builtin and then its argument prototype would still apply. */
26636char XShapeQueryExtension ();
26637int
26638main ()
26639{
26640XShapeQueryExtension ();
26641 ;
26642 return 0;
26643}
26644_ACEOF
26645rm -f conftest.$ac_objext conftest$ac_exeext
26646if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26647 (eval $ac_link) 2>conftest.er1
a848cd7e 26648 ac_status=$?
ac1cb8d3
VS
26649 grep -v '^ *+' conftest.er1 >conftest.err
26650 rm -f conftest.er1
26651 cat conftest.err >&5
a848cd7e
SC
26652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26653 (exit $ac_status); } &&
5294a27e 26654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26656 (eval $ac_try) 2>&5
26657 ac_status=$?
26658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26659 (exit $ac_status); }; } &&
26660 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26662 (eval $ac_try) 2>&5
26663 ac_status=$?
26664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26665 (exit $ac_status); }; }; then
26666 ac_cv_lib_Xext_XShapeQueryExtension=yes
26667else
26668 echo "$as_me: failed program was:" >&5
26669sed 's/^/| /' conftest.$ac_ext >&5
26670
26671ac_cv_lib_Xext_XShapeQueryExtension=no
26672fi
ac1cb8d3
VS
26673rm -f conftest.err conftest.$ac_objext \
26674 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26675LIBS=$ac_check_lib_save_LIBS
26676fi
26677echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
26678echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
26679if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
26680
26681 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
26682 wxHAVE_XEXT_LIB=1
26683
26684fi
26685
26686
26687 if test "$wxHAVE_XEXT_LIB" = 1; then
26688 save_CFLAGS="$CFLAGS"
26689 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26690
26691 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
26692echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
26693 cat >conftest.$ac_ext <<_ACEOF
26694/* confdefs.h. */
26695_ACEOF
26696cat confdefs.h >>conftest.$ac_ext
26697cat >>conftest.$ac_ext <<_ACEOF
26698/* end confdefs.h. */
26699
26700 #include <X11/Xlib.h>
26701 #include <X11/extensions/shape.h>
26702
26703int
26704main ()
26705{
26706
26707 int dummy1, dummy2;
26708 XShapeQueryExtension((Display*)NULL,
26709 (int*)NULL, (int*)NULL);
26710
26711 ;
26712 return 0;
26713}
26714_ACEOF
26715rm -f conftest.$ac_objext
26716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26717 (eval $ac_compile) 2>conftest.er1
a848cd7e 26718 ac_status=$?
ac1cb8d3
VS
26719 grep -v '^ *+' conftest.er1 >conftest.err
26720 rm -f conftest.er1
26721 cat conftest.err >&5
a848cd7e
SC
26722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26723 (exit $ac_status); } &&
5294a27e 26724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26726 (eval $ac_try) 2>&5
26727 ac_status=$?
26728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26729 (exit $ac_status); }; } &&
26730 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26732 (eval $ac_try) 2>&5
26733 ac_status=$?
26734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26735 (exit $ac_status); }; }; then
26736
26737 cat >>confdefs.h <<\_ACEOF
26738#define HAVE_XSHAPE 1
26739_ACEOF
26740
26741 echo "$as_me:$LINENO: result: found" >&5
26742echo "${ECHO_T}found" >&6
26743
26744else
26745 echo "$as_me: failed program was:" >&5
26746sed 's/^/| /' conftest.$ac_ext >&5
26747
26748
26749 echo "$as_me:$LINENO: result: not found" >&5
26750echo "${ECHO_T}not found" >&6
26751
26752fi
ac1cb8d3 26753rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26754 CFLAGS="$save_CFLAGS"
26755
26756 fi
26757 fi
26758
26759 if test "$wxUSE_MAC" = 1; then
26760 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
26761echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
26762 if test "$GCC" = yes; then
26763 echo "$as_me:$LINENO: result: gcc" >&5
26764echo "${ECHO_T}gcc" >&6
26765 CPPFLAGS_PASCAL="-fpascal-strings"
26766 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
26767 echo "$as_me:$LINENO: result: xlc" >&5
26768echo "${ECHO_T}xlc" >&6
26769 CPPFLAGS_PASCAL="-qmacpstr"
26770 else
26771 echo "$as_me:$LINENO: result: none" >&5
26772echo "${ECHO_T}none" >&6
26773 fi
26774
1e9e8aba
DE
26775 if test "x$wxUSE_UNIX" = "xyes"; then
26776 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
26777 else
26778 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON"
26779 fi
a848cd7e 26780
a848cd7e
SC
26781 TOOLKIT=MAC
26782 GUIDIST=MACX_DIST
dd21ced8 26783 WXBASEPORT="_carbon"
a848cd7e
SC
26784 fi
26785
26786 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
26787 TOOLKIT=COCOA
26788 GUIDIST=COCOA_DIST
26789 fi
26790
26791 if test "$wxUSE_PM" = 1; then
26792 TOOLKIT=PM
de59c161
RD
26793 GUIDIST=PM_DIST
26794 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
26795echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
26796if test "${wx_cv_spbcdata+set}" = set; then
26797 echo $ECHO_N "(cached) $ECHO_C" >&6
26798else
26799
26800 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
26801/* confdefs.h. */
26802_ACEOF
26803cat confdefs.h >>conftest.$ac_ext
26804cat >>conftest.$ac_ext <<_ACEOF
26805/* end confdefs.h. */
26806
26807 #define INCL_PM
26808 #include <os2.h>
26809
26810int
26811main ()
26812{
26813
26814 SPBCDATA test;
26815
26816 ;
26817 return 0;
26818}
26819_ACEOF
26820rm -f conftest.$ac_objext
26821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26822 (eval $ac_compile) 2>conftest.er1
de59c161 26823 ac_status=$?
ac1cb8d3
VS
26824 grep -v '^ *+' conftest.er1 >conftest.err
26825 rm -f conftest.er1
26826 cat conftest.err >&5
de59c161
RD
26827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26828 (exit $ac_status); } &&
5294a27e 26829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26831 (eval $ac_try) 2>&5
26832 ac_status=$?
26833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26834 (exit $ac_status); }; } &&
26835 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
26836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26837 (eval $ac_try) 2>&5
26838 ac_status=$?
26839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26840 (exit $ac_status); }; }; then
26841 wx_cv_spbcdata=yes
26842else
26843 echo "$as_me: failed program was:" >&5
26844sed 's/^/| /' conftest.$ac_ext >&5
26845
26846wx_cv_spbcdata=no
26847
26848fi
ac1cb8d3 26849rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
26850
26851
26852fi
26853echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
26854echo "${ECHO_T}$wx_cv_spbcdata" >&6
26855
26856 if test $wx_cv_spbcdata = "yes"; then
26857 cat >>confdefs.h <<\_ACEOF
26858#define HAVE_SPBCDATA 1
26859_ACEOF
26860
26861 fi
a848cd7e
SC
26862 fi
26863
26864 if test "$TOOLKIT" = "PM" ; then
26865 TOOLKIT_DIR="os2"
26866 else
26867 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
26868 fi
26869
a848cd7e 26870 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
26871 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
26872 WIDGET_SET=univ
a848cd7e
SC
26873 fi
26874
26875 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
26876 DISTDIR="wx\$(TOOLKIT)"
26877else
26878 USE_GUI=0
26879
26880 TOOLKIT_DIR="base"
26881
26882 if test "$USE_WIN32" = 1 ; then
a848cd7e 26883 TOOLKIT="MSW"
a848cd7e
SC
26884 fi
26885
a848cd7e
SC
26886 GUIDIST="BASE_DIST"
26887 DISTDIR="wxBase"
26888fi
26889
26890
26891
26892
26893IODBC_C_SRC=""
26894
26895
26896if test "$TOOLKIT" != "MSW" ; then
26897
26898 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
26899
26900 if test "${ac_cv_header_sql_h+set}" = set; then
26901 echo "$as_me:$LINENO: checking for sql.h" >&5
26902echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26903if test "${ac_cv_header_sql_h+set}" = set; then
26904 echo $ECHO_N "(cached) $ECHO_C" >&6
26905fi
26906echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26907echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26908else
26909 # Is the header compilable?
26910echo "$as_me:$LINENO: checking sql.h usability" >&5
26911echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
26912cat >conftest.$ac_ext <<_ACEOF
26913/* confdefs.h. */
26914_ACEOF
26915cat confdefs.h >>conftest.$ac_ext
26916cat >>conftest.$ac_ext <<_ACEOF
26917/* end confdefs.h. */
26918$ac_includes_default
26919#include <sql.h>
26920_ACEOF
26921rm -f conftest.$ac_objext
26922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26923 (eval $ac_compile) 2>conftest.er1
a848cd7e 26924 ac_status=$?
ac1cb8d3
VS
26925 grep -v '^ *+' conftest.er1 >conftest.err
26926 rm -f conftest.er1
26927 cat conftest.err >&5
a848cd7e
SC
26928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26929 (exit $ac_status); } &&
5294a27e 26930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26932 (eval $ac_try) 2>&5
26933 ac_status=$?
26934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26935 (exit $ac_status); }; } &&
26936 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26938 (eval $ac_try) 2>&5
26939 ac_status=$?
26940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26941 (exit $ac_status); }; }; then
26942 ac_header_compiler=yes
26943else
26944 echo "$as_me: failed program was:" >&5
26945sed 's/^/| /' conftest.$ac_ext >&5
26946
26947ac_header_compiler=no
26948fi
ac1cb8d3 26949rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26950echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26951echo "${ECHO_T}$ac_header_compiler" >&6
26952
26953# Is the header present?
26954echo "$as_me:$LINENO: checking sql.h presence" >&5
26955echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
26956cat >conftest.$ac_ext <<_ACEOF
26957/* confdefs.h. */
26958_ACEOF
26959cat confdefs.h >>conftest.$ac_ext
26960cat >>conftest.$ac_ext <<_ACEOF
26961/* end confdefs.h. */
26962#include <sql.h>
26963_ACEOF
26964if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26965 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26966 ac_status=$?
26967 grep -v '^ *+' conftest.er1 >conftest.err
26968 rm -f conftest.er1
26969 cat conftest.err >&5
26970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26971 (exit $ac_status); } >/dev/null; then
26972 if test -s conftest.err; then
26973 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 26974 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
26975 else
26976 ac_cpp_err=
26977 fi
26978else
26979 ac_cpp_err=yes
26980fi
26981if test -z "$ac_cpp_err"; then
26982 ac_header_preproc=yes
26983else
26984 echo "$as_me: failed program was:" >&5
26985sed 's/^/| /' conftest.$ac_ext >&5
26986
26987 ac_header_preproc=no
26988fi
26989rm -f conftest.err conftest.$ac_ext
26990echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26991echo "${ECHO_T}$ac_header_preproc" >&6
26992
26993# So? What about this header?
ac1cb8d3
VS
26994case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26995 yes:no: )
a848cd7e
SC
26996 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
26997echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26998 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
26999echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
27000 ac_header_preproc=yes
a848cd7e 27001 ;;
ac1cb8d3 27002 no:yes:* )
a848cd7e
SC
27003 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
27004echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27005 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
27006echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
27007 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
27008echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
27009 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
27010echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27011 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
27012echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27013 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
27014echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27015 (
27016 cat <<\_ASBOX
ac1cb8d3
VS
27017## ----------------------------------------- ##
27018## Report this to wx-dev@lists.wxwidgets.org ##
27019## ----------------------------------------- ##
a848cd7e
SC
27020_ASBOX
27021 ) |
27022 sed "s/^/$as_me: WARNING: /" >&2
27023 ;;
27024esac
27025echo "$as_me:$LINENO: checking for sql.h" >&5
27026echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
27027if test "${ac_cv_header_sql_h+set}" = set; then
27028 echo $ECHO_N "(cached) $ECHO_C" >&6
27029else
27030 ac_cv_header_sql_h=$ac_header_preproc
27031fi
27032echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
27033echo "${ECHO_T}$ac_cv_header_sql_h" >&6
27034
27035fi
27036if test $ac_cv_header_sql_h = yes; then
27037 found_sql_h=1
27038fi
27039
27040
27041 if test "x$found_sql_h" = "x1" ; then
27042 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
27043echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
27044if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
27045 echo $ECHO_N "(cached) $ECHO_C" >&6
27046else
27047 ac_check_lib_save_LIBS=$LIBS
27048LIBS="-liodbc $LIBS"
27049cat >conftest.$ac_ext <<_ACEOF
27050/* confdefs.h. */
27051_ACEOF
27052cat confdefs.h >>conftest.$ac_ext
27053cat >>conftest.$ac_ext <<_ACEOF
27054/* end confdefs.h. */
27055
27056/* Override any gcc2 internal prototype to avoid an error. */
27057#ifdef __cplusplus
27058extern "C"
27059#endif
27060/* We use char because int might match the return type of a gcc2
27061 builtin and then its argument prototype would still apply. */
27062char SQLAllocEnv ();
27063int
27064main ()
27065{
27066SQLAllocEnv ();
27067 ;
27068 return 0;
27069}
27070_ACEOF
27071rm -f conftest.$ac_objext conftest$ac_exeext
27072if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27073 (eval $ac_link) 2>conftest.er1
a848cd7e 27074 ac_status=$?
ac1cb8d3
VS
27075 grep -v '^ *+' conftest.er1 >conftest.err
27076 rm -f conftest.er1
27077 cat conftest.err >&5
a848cd7e
SC
27078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27079 (exit $ac_status); } &&
5294a27e 27080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27082 (eval $ac_try) 2>&5
27083 ac_status=$?
27084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27085 (exit $ac_status); }; } &&
27086 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27088 (eval $ac_try) 2>&5
27089 ac_status=$?
27090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27091 (exit $ac_status); }; }; then
27092 ac_cv_lib_iodbc_SQLAllocEnv=yes
27093else
27094 echo "$as_me: failed program was:" >&5
27095sed 's/^/| /' conftest.$ac_ext >&5
27096
27097ac_cv_lib_iodbc_SQLAllocEnv=no
27098fi
ac1cb8d3
VS
27099rm -f conftest.err conftest.$ac_objext \
27100 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27101LIBS=$ac_check_lib_save_LIBS
27102fi
27103echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
27104echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
27105if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
27106 ODBC_LINK=" -liodbc"
27107else
27108
27109 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
27110echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
27111if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
27112 echo $ECHO_N "(cached) $ECHO_C" >&6
27113else
27114 ac_check_lib_save_LIBS=$LIBS
27115LIBS="-lunixodbc $LIBS"
27116cat >conftest.$ac_ext <<_ACEOF
27117/* confdefs.h. */
27118_ACEOF
27119cat confdefs.h >>conftest.$ac_ext
27120cat >>conftest.$ac_ext <<_ACEOF
27121/* end confdefs.h. */
27122
27123/* Override any gcc2 internal prototype to avoid an error. */
27124#ifdef __cplusplus
27125extern "C"
27126#endif
27127/* We use char because int might match the return type of a gcc2
27128 builtin and then its argument prototype would still apply. */
27129char SQLAllocEnv ();
27130int
27131main ()
27132{
27133SQLAllocEnv ();
27134 ;
27135 return 0;
27136}
27137_ACEOF
27138rm -f conftest.$ac_objext conftest$ac_exeext
27139if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27140 (eval $ac_link) 2>conftest.er1
a848cd7e 27141 ac_status=$?
ac1cb8d3
VS
27142 grep -v '^ *+' conftest.er1 >conftest.err
27143 rm -f conftest.er1
27144 cat conftest.err >&5
a848cd7e
SC
27145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27146 (exit $ac_status); } &&
5294a27e 27147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27149 (eval $ac_try) 2>&5
27150 ac_status=$?
27151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27152 (exit $ac_status); }; } &&
27153 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27155 (eval $ac_try) 2>&5
27156 ac_status=$?
27157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27158 (exit $ac_status); }; }; then
27159 ac_cv_lib_unixodbc_SQLAllocEnv=yes
27160else
27161 echo "$as_me: failed program was:" >&5
27162sed 's/^/| /' conftest.$ac_ext >&5
27163
27164ac_cv_lib_unixodbc_SQLAllocEnv=no
27165fi
ac1cb8d3
VS
27166rm -f conftest.err conftest.$ac_objext \
27167 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27168LIBS=$ac_check_lib_save_LIBS
27169fi
27170echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
27171echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
27172if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
27173 ODBC_LINK=" -lunixodbc"
27174else
27175
27176 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
27177echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
27178if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
27179 echo $ECHO_N "(cached) $ECHO_C" >&6
27180else
27181 ac_check_lib_save_LIBS=$LIBS
27182LIBS="-lodbc $LIBS"
27183cat >conftest.$ac_ext <<_ACEOF
27184/* confdefs.h. */
27185_ACEOF
27186cat confdefs.h >>conftest.$ac_ext
27187cat >>conftest.$ac_ext <<_ACEOF
27188/* end confdefs.h. */
27189
27190/* Override any gcc2 internal prototype to avoid an error. */
27191#ifdef __cplusplus
27192extern "C"
27193#endif
27194/* We use char because int might match the return type of a gcc2
27195 builtin and then its argument prototype would still apply. */
27196char SQLAllocEnv ();
27197int
27198main ()
27199{
27200SQLAllocEnv ();
27201 ;
27202 return 0;
27203}
27204_ACEOF
27205rm -f conftest.$ac_objext conftest$ac_exeext
27206if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27207 (eval $ac_link) 2>conftest.er1
a848cd7e 27208 ac_status=$?
ac1cb8d3
VS
27209 grep -v '^ *+' conftest.er1 >conftest.err
27210 rm -f conftest.er1
27211 cat conftest.err >&5
a848cd7e
SC
27212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27213 (exit $ac_status); } &&
5294a27e 27214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27216 (eval $ac_try) 2>&5
27217 ac_status=$?
27218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27219 (exit $ac_status); }; } &&
27220 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27222 (eval $ac_try) 2>&5
27223 ac_status=$?
27224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27225 (exit $ac_status); }; }; then
27226 ac_cv_lib_odbc_SQLAllocEnv=yes
27227else
27228 echo "$as_me: failed program was:" >&5
27229sed 's/^/| /' conftest.$ac_ext >&5
27230
27231ac_cv_lib_odbc_SQLAllocEnv=no
27232fi
ac1cb8d3
VS
27233rm -f conftest.err conftest.$ac_objext \
27234 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27235LIBS=$ac_check_lib_save_LIBS
27236fi
27237echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
27238echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
27239if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
27240 ODBC_LINK=" -lodbc"
27241fi
27242
27243
27244fi
27245
27246
27247fi
27248
27249 fi
27250 if test "x$ODBC_LINK" = "x" ; then
27251 if test "$wxUSE_ODBC" = "sys" ; then
27252 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
27253echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
27254 { (exit 1); exit 1; }; }
27255 else
27256 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
27257echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
27258 wxUSE_ODBC=builtin
27259 fi
27260 else
27261 wxUSE_ODBC=sys
27262 fi
27263 fi
27264 if test "$wxUSE_ODBC" != "no" ; then
27265 cat >>confdefs.h <<\_ACEOF
27266#define wxUSE_ODBC 1
27267_ACEOF
27268
27269 if test "$wxUSE_ODBC" = "builtin" ; then
27270 cat >>confdefs.h <<\_ACEOF
27271#define wxUSE_BUILTIN_IODBC 1
27272_ACEOF
27273
27274 fi
27275 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
27276
27277 WXODBCFLAG="-D_IODBC_"
27278 fi
27279fi
27280
a848cd7e 27281
01cb68df 27282
a848cd7e 27283if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 27284 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
27285 echo "$as_me:$LINENO: checking for Xinerama" >&5
27286echo $ECHO_N "checking for Xinerama... $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/libXinerama.$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 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27310 LDFLAGS="$LDFLAGS $ac_path_to_link"
27311 fi
27312 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
27313 echo "$as_me:$LINENO: result: yes" >&5
27314echo "${ECHO_T}yes" >&6
27315
27316 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
27317echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
27318
27319ac_find_libraries=
27320for ac_dir in $SEARCH_LIB /usr/lib;
27321 do
27322 for ac_extension in a so sl dylib; do
27323 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
27324 ac_find_libraries=$ac_dir
27325 break 2
27326 fi
27327 done
27328 done
27329
27330 if test "$ac_find_libraries" != "" ; then
27331 echo "$as_me:$LINENO: result: yes" >&5
27332echo "${ECHO_T}yes" >&6
27333
27334for ac_header in X11/extensions/xf86vmode.h
27335do
27336as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27337echo "$as_me:$LINENO: checking for $ac_header" >&5
27338echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27339if eval "test \"\${$as_ac_Header+set}\" = set"; then
27340 echo $ECHO_N "(cached) $ECHO_C" >&6
27341else
27342 cat >conftest.$ac_ext <<_ACEOF
27343/* confdefs.h. */
27344_ACEOF
27345cat confdefs.h >>conftest.$ac_ext
27346cat >>conftest.$ac_ext <<_ACEOF
27347/* end confdefs.h. */
27348
27349 #if HAVE_X11_XLIB_H
27350 #include <X11/Xlib.h>
27351 #endif
27352
27353
27354#include <$ac_header>
27355_ACEOF
27356rm -f conftest.$ac_objext
27357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27358 (eval $ac_compile) 2>conftest.er1
a848cd7e 27359 ac_status=$?
ac1cb8d3
VS
27360 grep -v '^ *+' conftest.er1 >conftest.err
27361 rm -f conftest.er1
27362 cat conftest.err >&5
a848cd7e
SC
27363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27364 (exit $ac_status); } &&
5294a27e 27365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27367 (eval $ac_try) 2>&5
27368 ac_status=$?
27369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27370 (exit $ac_status); }; } &&
27371 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27373 (eval $ac_try) 2>&5
27374 ac_status=$?
27375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27376 (exit $ac_status); }; }; then
27377 eval "$as_ac_Header=yes"
27378else
27379 echo "$as_me: failed program was:" >&5
27380sed 's/^/| /' conftest.$ac_ext >&5
27381
27382eval "$as_ac_Header=no"
27383fi
ac1cb8d3 27384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27385fi
27386echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27387echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27388if test `eval echo '${'$as_ac_Header'}'` = yes; then
27389 cat >>confdefs.h <<_ACEOF
27390#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27391_ACEOF
27392
27393 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
27394
27395fi
27396
27397done
27398
27399 else
27400 echo "$as_me:$LINENO: result: no" >&5
27401echo "${ECHO_T}no" >&6
27402 fi
27403
27404 else
27405 echo "$as_me:$LINENO: result: no" >&5
27406echo "${ECHO_T}no" >&6
dcc1b6ad
VS
27407 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
27408echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
27409 wxUSE_DISPLAY="no"
27410 fi
01cb68df
RG
27411 elif test "$wxUSE_MSW" = 1; then
27412
27413
27414for ac_header in multimon.h ddraw.h
27415do
27416as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 27417echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
27418echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27419if eval "test \"\${$as_ac_Header+set}\" = set"; then
27420 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 27421else
5294a27e 27422 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
27423/* confdefs.h. */
27424_ACEOF
27425cat confdefs.h >>conftest.$ac_ext
27426cat >>conftest.$ac_ext <<_ACEOF
27427/* end confdefs.h. */
5294a27e
VZ
27428#include <windows.h>
27429
01cb68df
RG
27430#include <$ac_header>
27431_ACEOF
27432rm -f conftest.$ac_objext
27433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27434 (eval $ac_compile) 2>conftest.er1
01cb68df 27435 ac_status=$?
ac1cb8d3
VS
27436 grep -v '^ *+' conftest.er1 >conftest.err
27437 rm -f conftest.er1
27438 cat conftest.err >&5
01cb68df
RG
27439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27440 (exit $ac_status); } &&
5294a27e 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_objext'
01cb68df
RG
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
5294a27e 27453 eval "$as_ac_Header=yes"
01cb68df
RG
27454else
27455 echo "$as_me: failed program was:" >&5
27456sed 's/^/| /' conftest.$ac_ext >&5
27457
5294a27e 27458eval "$as_ac_Header=no"
01cb68df 27459fi
ac1cb8d3 27460rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
27461fi
27462echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27463echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
27464if test `eval echo '${'$as_ac_Header'}'` = yes; then
27465 cat >>confdefs.h <<_ACEOF
27466#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27467_ACEOF
27468
27469else
27470
5294a27e
VZ
27471 wxUSE_DISPLAY="no"
27472 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
dcc1b6ad 27473echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
27474
27475fi
27476
27477done
27478
a848cd7e
SC
27479 fi
27480fi
27481
27482
3b57de8b
RL
27483if test "$wxUSE_MEDIACTRL" = "yes"; then
27484 if test "$wxUSE_MSW" = 1; then
27485 wxUSE_DIRECTSHOW="yes"
27486
27487for ac_header in dshow.h
27488do
27489as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 27490echo "$as_me:$LINENO: checking for $ac_header" >&5
3b57de8b
RL
27491echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27492if eval "test \"\${$as_ac_Header+set}\" = set"; then
27493 echo $ECHO_N "(cached) $ECHO_C" >&6
3b57de8b 27494else
5294a27e 27495 cat >conftest.$ac_ext <<_ACEOF
3b57de8b
RL
27496/* confdefs.h. */
27497_ACEOF
27498cat confdefs.h >>conftest.$ac_ext
27499cat >>conftest.$ac_ext <<_ACEOF
27500/* end confdefs.h. */
5294a27e
VZ
27501#include <windows.h>
27502
3b57de8b
RL
27503#include <$ac_header>
27504_ACEOF
27505rm -f conftest.$ac_objext
27506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27507 (eval $ac_compile) 2>conftest.er1
27508 ac_status=$?
27509 grep -v '^ *+' conftest.er1 >conftest.err
27510 rm -f conftest.er1
27511 cat conftest.err >&5
27512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27513 (exit $ac_status); } &&
5294a27e 27514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3b57de8b
RL
27515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27516 (eval $ac_try) 2>&5
27517 ac_status=$?
27518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27519 (exit $ac_status); }; } &&
27520 { ac_try='test -s conftest.$ac_objext'
27521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27522 (eval $ac_try) 2>&5
27523 ac_status=$?
27524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27525 (exit $ac_status); }; }; then
5294a27e 27526 eval "$as_ac_Header=yes"
3b57de8b
RL
27527else
27528 echo "$as_me: failed program was:" >&5
27529sed 's/^/| /' conftest.$ac_ext >&5
27530
5294a27e 27531eval "$as_ac_Header=no"
3b57de8b
RL
27532fi
27533rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3b57de8b
RL
27534fi
27535echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27536echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3b57de8b
RL
27537if test `eval echo '${'$as_ac_Header'}'` = yes; then
27538 cat >>confdefs.h <<_ACEOF
27539#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27540_ACEOF
27541
27542else
27543
5294a27e
VZ
27544 wxUSE_DIRECTSHOW="no"
27545 { echo "$as_me:$LINENO: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&5
3b57de8b
RL
27546echo "$as_me: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&2;}
27547
27548fi
27549
27550done
27551
27552
27553 if test "$wxUSE_DIRECTSHOW" = "yes"; then
5294a27e 27554 cat >>confdefs.h <<\_ACEOF
3b57de8b
RL
27555#define wxUSE_DIRECTSHOW 1
27556_ACEOF
27557
5294a27e 27558 LIBS="$LIBS -lstrmiids"
a98bf0c0 27559 fi
3b57de8b 27560 fi
7e4a1c28 27561
fa9ad408 27562 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
7e4a1c28
RN
27563 cat >>confdefs.h <<\_ACEOF
27564#define wxUSE_MEDIACTRL 1
27565_ACEOF
27566
3b57de8b
RL
27567fi
27568
27569
a848cd7e
SC
27570USE_OPENGL=0
27571if test "$wxUSE_OPENGL" = "yes"; then
27572 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27573 OPENGL_LIBS="-framework OpenGL -framework AGL"
27574 elif test "$wxUSE_MSW" = 1; then
27575 OPENGL_LIBS="-lopengl32 -lglu32"
27576 else
27577
27578
27579ac_find_includes=
27580for ac_dir in $SEARCH_INCLUDE /usr/include;
27581 do
27582 if test -f "$ac_dir/GL/gl.h"; then
27583 ac_find_includes=$ac_dir
27584 break
27585 fi
27586 done
27587
27588 if test "$ac_find_includes" != "" ; then
27589 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
27590echo "${ECHO_T}found in $ac_find_includes" >&6
27591
27592 if test "x$ac_find_includes" = "x/usr/include"; then
27593 ac_path_to_include=""
27594 else
27595 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
27596 result=$?
27597 if test $result = 0; then
27598 ac_path_to_include=""
27599 else
27600 ac_path_to_include=" -I$ac_find_includes"
27601 fi
27602 fi
27603
27604 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
27605 fi
27606
27607 if test "${ac_cv_header_GL_gl_h+set}" = set; then
27608 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27609echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27610if test "${ac_cv_header_GL_gl_h+set}" = set; then
27611 echo $ECHO_N "(cached) $ECHO_C" >&6
27612fi
27613echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27614echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27615else
27616 # Is the header compilable?
27617echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
27618echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
27619cat >conftest.$ac_ext <<_ACEOF
27620/* confdefs.h. */
27621_ACEOF
27622cat confdefs.h >>conftest.$ac_ext
27623cat >>conftest.$ac_ext <<_ACEOF
27624/* end confdefs.h. */
27625$ac_includes_default
27626#include <GL/gl.h>
27627_ACEOF
27628rm -f conftest.$ac_objext
27629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27630 (eval $ac_compile) 2>conftest.er1
a848cd7e 27631 ac_status=$?
ac1cb8d3
VS
27632 grep -v '^ *+' conftest.er1 >conftest.err
27633 rm -f conftest.er1
27634 cat conftest.err >&5
a848cd7e
SC
27635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27636 (exit $ac_status); } &&
5294a27e 27637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27639 (eval $ac_try) 2>&5
27640 ac_status=$?
27641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27642 (exit $ac_status); }; } &&
27643 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27645 (eval $ac_try) 2>&5
27646 ac_status=$?
27647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27648 (exit $ac_status); }; }; then
27649 ac_header_compiler=yes
27650else
27651 echo "$as_me: failed program was:" >&5
27652sed 's/^/| /' conftest.$ac_ext >&5
27653
27654ac_header_compiler=no
27655fi
ac1cb8d3 27656rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27657echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27658echo "${ECHO_T}$ac_header_compiler" >&6
27659
27660# Is the header present?
27661echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
27662echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
27663cat >conftest.$ac_ext <<_ACEOF
27664/* confdefs.h. */
27665_ACEOF
27666cat confdefs.h >>conftest.$ac_ext
27667cat >>conftest.$ac_ext <<_ACEOF
27668/* end confdefs.h. */
27669#include <GL/gl.h>
27670_ACEOF
27671if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27672 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27673 ac_status=$?
27674 grep -v '^ *+' conftest.er1 >conftest.err
27675 rm -f conftest.er1
27676 cat conftest.err >&5
27677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27678 (exit $ac_status); } >/dev/null; then
27679 if test -s conftest.err; then
27680 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27681 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
27682 else
27683 ac_cpp_err=
27684 fi
27685else
27686 ac_cpp_err=yes
27687fi
27688if test -z "$ac_cpp_err"; then
27689 ac_header_preproc=yes
27690else
27691 echo "$as_me: failed program was:" >&5
27692sed 's/^/| /' conftest.$ac_ext >&5
27693
27694 ac_header_preproc=no
27695fi
27696rm -f conftest.err conftest.$ac_ext
27697echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27698echo "${ECHO_T}$ac_header_preproc" >&6
27699
27700# So? What about this header?
ac1cb8d3
VS
27701case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27702 yes:no: )
a848cd7e
SC
27703 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27704echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27705 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
27706echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
27707 ac_header_preproc=yes
a848cd7e 27708 ;;
ac1cb8d3 27709 no:yes:* )
a848cd7e
SC
27710 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
27711echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27712 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
27713echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
27714 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
27715echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
27716 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
27717echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27718 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
27719echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27720 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
27721echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27722 (
27723 cat <<\_ASBOX
ac1cb8d3
VS
27724## ----------------------------------------- ##
27725## Report this to wx-dev@lists.wxwidgets.org ##
27726## ----------------------------------------- ##
a848cd7e
SC
27727_ASBOX
27728 ) |
27729 sed "s/^/$as_me: WARNING: /" >&2
27730 ;;
27731esac
27732echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27733echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27734if test "${ac_cv_header_GL_gl_h+set}" = set; then
27735 echo $ECHO_N "(cached) $ECHO_C" >&6
27736else
27737 ac_cv_header_GL_gl_h=$ac_header_preproc
27738fi
27739echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27740echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27741
27742fi
27743if test $ac_cv_header_GL_gl_h = yes; then
27744
27745 found_gl=0
27746
27747 echo "$as_me:$LINENO: checking for -lGL" >&5
27748echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
27749
27750ac_find_libraries=
27751for ac_dir in $SEARCH_LIB /usr/lib;
27752 do
27753 for ac_extension in a so sl dylib; do
27754 if test -f "$ac_dir/libGL.$ac_extension"; then
27755 ac_find_libraries=$ac_dir
27756 break 2
27757 fi
27758 done
27759 done
27760
27761 if test "$ac_find_libraries" != "" ; then
27762
27763 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27764 result=$?
27765 if test $result = 0; then
27766 ac_path_to_link=""
27767 else
27768 ac_path_to_link=" -L$ac_find_libraries"
27769 fi
27770
27771 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27772 LDFLAGS_GL="$ac_path_to_link"
27773 fi
27774
27775
27776ac_find_libraries=
27777for ac_dir in $SEARCH_LIB /usr/lib;
27778 do
27779 for ac_extension in a so sl dylib; do
27780 if test -f "$ac_dir/libGLU.$ac_extension"; then
27781 ac_find_libraries=$ac_dir
27782 break 2
27783 fi
27784 done
27785 done
27786
27787 if test "$ac_find_libraries" != "" ; then
27788
27789 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27790 result=$?
27791 if test $result = 0; then
27792 ac_path_to_link=""
27793 else
27794 ac_path_to_link=" -L$ac_find_libraries"
27795 fi
27796
27797 if test "$ac_path_to_link" != " -L/usr/lib" -a \
27798 "$ac_path_to_link" != "$LDFLAGS_GL"; then
27799 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
27800 fi
27801
27802 found_gl=1
27803 OPENGL_LIBS="-lGL -lGLU"
27804 echo "$as_me:$LINENO: result: yes" >&5
27805echo "${ECHO_T}yes" >&6
27806 fi
27807 fi
27808
27809 if test "$found_gl" != 1; then
27810 echo "$as_me:$LINENO: result: no" >&5
27811echo "${ECHO_T}no" >&6
27812 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
27813echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
27814
27815ac_find_libraries=
27816for ac_dir in $SEARCH_LIB /usr/lib;
27817 do
27818 for ac_extension in a so sl dylib; do
27819 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
27820 ac_find_libraries=$ac_dir
27821 break 2
27822 fi
27823 done
27824 done
27825
27826 if test "$ac_find_libraries" != "" ; then
27827
27828 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27829 result=$?
27830 if test $result = 0; then
27831 ac_path_to_link=""
27832 else
27833 ac_path_to_link=" -L$ac_find_libraries"
27834 fi
27835
27836 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
27837 OPENGL_LIBS="-lMesaGL -lMesaGLU"
27838 echo "$as_me:$LINENO: result: yes" >&5
27839echo "${ECHO_T}yes" >&6
27840 else
27841 echo "$as_me:$LINENO: result: no" >&5
27842echo "${ECHO_T}no" >&6
27843 fi
27844 fi
27845
27846fi
27847
27848
27849
27850 if test "x$OPENGL_LIBS" = "x"; then
27851 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
27852echo "$as_me: error: OpenGL libraries not available" >&2;}
27853 { (exit 1); exit 1; }; }
27854 fi
27855 fi
27856
27857 if test "$wxUSE_OPENGL" = "yes"; then
27858 USE_OPENGL=1
27859 cat >>confdefs.h <<\_ACEOF
27860#define wxUSE_OPENGL 1
27861_ACEOF
27862
27863 cat >>confdefs.h <<\_ACEOF
27864#define wxUSE_GLCANVAS 1
27865_ACEOF
27866
27867 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
27868 fi
27869fi
27870
a848cd7e
SC
27871
27872if test -n "$TOOLKIT" ; then
27873 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
27874fi
27875
a848cd7e
SC
27876
27877
27878if test "$wxUSE_SHARED" = "yes"; then
27879 case "${host}" in
27880 *-pc-msdosdjgpp )
27881 wxUSE_SHARED=no
27882 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
27883echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
27884 ;;
27885 esac
27886fi
27887
a848cd7e 27888if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
27889
27890
27891 found_versioning=no
27892
27893
27894 if test $found_versioning = no ; then
27895 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
27896echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
27897if test "${wx_cv_version_script+set}" = set; then
27898 echo $ECHO_N "(cached) $ECHO_C" >&6
27899else
27900
27901 echo "VER_1 { *; };" >conftest.sym
27902 echo "int main() { return 0; }" >conftest.cpp
27903
27904 if { ac_try='
27905 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
27906 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
27907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27908 (eval $ac_try) 2>&5
27909 ac_status=$?
27910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27911 (exit $ac_status); }; } ; then
27912 if test -s conftest.stderr ; then
27913 wx_cv_version_script=no
27914 else
27915 wx_cv_version_script=yes
27916 fi
27917 else
27918 wx_cv_version_script=no
27919 fi
27920 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
27921
27922fi
27923echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
27924echo "${ECHO_T}$wx_cv_version_script" >&6
27925 if test $wx_cv_version_script = yes ; then
27926 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
27927 fi
27928 fi
27929
27930
27931 case "${host}" in
27932 *-*-linux* | *-*-gnu* )
27933 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 27934 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
27935 ;;
27936
27937 *-*-solaris2* )
27938 if test "$GCC" = yes ; then
27939 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
27940
27941 saveLdflags="$LDFLAGS"
27942 LDFLAGS="$saveLdflags -Wl,-rpath,/"
27943 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
27944echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
27945 cat >conftest.$ac_ext <<_ACEOF
27946/* confdefs.h. */
27947_ACEOF
27948cat confdefs.h >>conftest.$ac_ext
27949cat >>conftest.$ac_ext <<_ACEOF
27950/* end confdefs.h. */
27951
27952int
27953main ()
27954{
27955
27956 ;
27957 return 0;
27958}
27959_ACEOF
27960rm -f conftest.$ac_objext conftest$ac_exeext
27961if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27962 (eval $ac_link) 2>conftest.er1
a848cd7e 27963 ac_status=$?
ac1cb8d3
VS
27964 grep -v '^ *+' conftest.er1 >conftest.err
27965 rm -f conftest.er1
27966 cat conftest.err >&5
a848cd7e
SC
27967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27968 (exit $ac_status); } &&
5294a27e 27969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27971 (eval $ac_try) 2>&5
27972 ac_status=$?
27973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27974 (exit $ac_status); }; } &&
27975 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27977 (eval $ac_try) 2>&5
27978 ac_status=$?
27979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27980 (exit $ac_status); }; }; then
27981
27982 echo "$as_me:$LINENO: result: yes" >&5
27983echo "${ECHO_T}yes" >&6
27984 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 27985 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
27986
27987else
27988 echo "$as_me: failed program was:" >&5
27989sed 's/^/| /' conftest.$ac_ext >&5
27990
27991
27992 echo "$as_me:$LINENO: result: no" >&5
27993echo "${ECHO_T}no" >&6
27994 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
27995echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
27996 LDFLAGS="$saveLdflags -Wl,-R,/"
27997 cat >conftest.$ac_ext <<_ACEOF
27998/* confdefs.h. */
27999_ACEOF
28000cat confdefs.h >>conftest.$ac_ext
28001cat >>conftest.$ac_ext <<_ACEOF
28002/* end confdefs.h. */
28003
28004int
28005main ()
28006{
28007
28008 ;
28009 return 0;
28010}
28011_ACEOF
28012rm -f conftest.$ac_objext conftest$ac_exeext
28013if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28014 (eval $ac_link) 2>conftest.er1
a848cd7e 28015 ac_status=$?
ac1cb8d3
VS
28016 grep -v '^ *+' conftest.er1 >conftest.err
28017 rm -f conftest.er1
28018 cat conftest.err >&5
a848cd7e
SC
28019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28020 (exit $ac_status); } &&
5294a27e 28021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28023 (eval $ac_try) 2>&5
28024 ac_status=$?
28025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28026 (exit $ac_status); }; } &&
28027 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28029 (eval $ac_try) 2>&5
28030 ac_status=$?
28031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28032 (exit $ac_status); }; }; then
28033
ffa0583f 28034 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 28035echo "${ECHO_T}yes" >&6
ffa0583f
RL
28036 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
28037 WXCONFIG_RPATH="-Wl,-R,\$libdir"
28038
a848cd7e
SC
28039else
28040 echo "$as_me: failed program was:" >&5
28041sed 's/^/| /' conftest.$ac_ext >&5
28042
28043
28044 echo "$as_me:$LINENO: result: no" >&5
28045echo "${ECHO_T}no" >&6
28046
28047fi
ac1cb8d3
VS
28048rm -f conftest.err conftest.$ac_objext \
28049 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28050
28051fi
ac1cb8d3
VS
28052rm -f conftest.err conftest.$ac_objext \
28053 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28054 LDFLAGS="$saveLdflags"
28055 else
a848cd7e 28056 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 28057 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
28058 fi
28059 ;;
28060
28061 powerpc-*-darwin* )
28062 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
28063 cat <<EOF >change-install-names
28064#!/bin/sh
28065libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
28066inst_cmd="install_name_tool "
28067for i in \${libnames} ; do
28068 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
28069done
28070\${inst_cmd} \${3}
28071EOF
28072 chmod +x change-install-names
28073 ;;
28074
28075 *-*-cygwin* | *-*-mingw32* )
28076 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
28077 ;;
28078
28079 esac
ceec2216 28080
ffa0583f
RL
28081 if test $wxUSE_RPATH = "no"; then
28082 SAMPLES_RPATH_FLAG=''
28083 SAMPLES_RPATH_POSTLINK=''
28084 WXCONFIG_RPATH=''
28085 fi
28086
28087 SHARED=1
28088
28089else
28090
ceec2216
RL
28091 config_linkage_component="-static"
28092 SHARED=0
ffa0583f 28093
ceec2216 28094fi
a848cd7e 28095
a848cd7e 28096
ceec2216
RL
28097UNICODE=0
28098lib_unicode_suffix=
28099WX_CHARTYPE="ansi"
28100if test "$wxUSE_UNICODE" = "yes"; then
28101 lib_unicode_suffix=u
28102 WX_CHARTYPE="unicode"
28103 UNICODE=1
a848cd7e
SC
28104fi
28105
ceec2216
RL
28106lib_debug_suffix=
28107WX_DEBUGTYPE="release"
28108DEBUG_FLAG=0
28109if test "$wxUSE_DEBUG_FLAG" = "yes"; then
28110 lib_debug_suffix=d
28111 WX_DEBUGTYPE="debug"
28112 DEBUG_FLAG=1
28113fi
a848cd7e 28114
ceec2216
RL
28115WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
28116WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 28117
ceec2216
RL
28118DEBUG_INFO=0
28119if test "$wxUSE_DEBUG_INFO" = "yes"; then
28120 DEBUG_INFO=1
28121fi
a848cd7e 28122
ceec2216 28123WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 28124
ceec2216 28125TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 28126
ceec2216 28127TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 28128
ceec2216
RL
28129if test "$cross_compiling" = "yes"; then
28130 HOST_SUFFIX="-$host_alias"
28131 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
28132 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
28133fi
28134
dd21ced8 28135WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
ceec2216
RL
28136WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
28137
28138
28139
a848cd7e 28140if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
28141 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
28142 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 28143
a848cd7e 28144 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
28145
28146 # Extract the first word of "Rez", so it can be a program name with args.
28147set dummy Rez; ac_word=$2
28148echo "$as_me:$LINENO: checking for $ac_word" >&5
28149echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28150if test "${ac_cv_prog_RESCOMP+set}" = set; then
28151 echo $ECHO_N "(cached) $ECHO_C" >&6
28152else
28153 if test -n "$RESCOMP"; then
28154 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
28155else
28156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28157for as_dir in $PATH
28158do
28159 IFS=$as_save_IFS
28160 test -z "$as_dir" && as_dir=.
28161 for ac_exec_ext in '' $ac_executable_extensions; do
28162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28163 ac_cv_prog_RESCOMP="Rez"
28164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28165 break 2
28166 fi
28167done
28168done
28169
28170 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
28171fi
28172fi
28173RESCOMP=$ac_cv_prog_RESCOMP
28174if test -n "$RESCOMP"; then
28175 echo "$as_me:$LINENO: result: $RESCOMP" >&5
28176echo "${ECHO_T}$RESCOMP" >&6
28177else
28178 echo "$as_me:$LINENO: result: no" >&5
28179echo "${ECHO_T}no" >&6
28180fi
28181
28182 # Extract the first word of "DeRez", so it can be a program name with args.
28183set dummy DeRez; ac_word=$2
28184echo "$as_me:$LINENO: checking for $ac_word" >&5
28185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28186if test "${ac_cv_prog_DEREZ+set}" = set; then
28187 echo $ECHO_N "(cached) $ECHO_C" >&6
28188else
28189 if test -n "$DEREZ"; then
28190 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
28191else
28192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28193for as_dir in $PATH
28194do
28195 IFS=$as_save_IFS
28196 test -z "$as_dir" && as_dir=.
28197 for ac_exec_ext in '' $ac_executable_extensions; do
28198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28199 ac_cv_prog_DEREZ="DeRez"
28200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28201 break 2
28202 fi
28203done
28204done
28205
28206 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
28207fi
28208fi
28209DEREZ=$ac_cv_prog_DEREZ
28210if test -n "$DEREZ"; then
28211 echo "$as_me:$LINENO: result: $DEREZ" >&5
28212echo "${ECHO_T}$DEREZ" >&6
28213else
28214 echo "$as_me:$LINENO: result: no" >&5
28215echo "${ECHO_T}no" >&6
28216fi
28217
28218 # Extract the first word of "SetFile", so it can be a program name with args.
28219set dummy SetFile; ac_word=$2
28220echo "$as_me:$LINENO: checking for $ac_word" >&5
28221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28222if test "${ac_cv_prog_SETFILE+set}" = set; then
28223 echo $ECHO_N "(cached) $ECHO_C" >&6
28224else
28225 if test -n "$SETFILE"; then
28226 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
28227else
28228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28229for as_dir in $PATH
28230do
28231 IFS=$as_save_IFS
28232 test -z "$as_dir" && as_dir=.
28233 for ac_exec_ext in '' $ac_executable_extensions; do
28234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28235 ac_cv_prog_SETFILE="SetFile"
28236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28237 break 2
28238 fi
28239done
28240done
28241
28242 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
28243fi
28244fi
28245SETFILE=$ac_cv_prog_SETFILE
28246if test -n "$SETFILE"; then
28247 echo "$as_me:$LINENO: result: $SETFILE" >&5
28248echo "${ECHO_T}$SETFILE" >&6
28249else
28250 echo "$as_me:$LINENO: result: no" >&5
28251echo "${ECHO_T}no" >&6
28252fi
28253
28254
28255 MACSETFILE="\$(SETFILE)"
28256
28257 if test "$wxUSE_MAC" = 1; then
28258 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
28259
28260 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
28261 else
28262 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
28263 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
28264 fi
28265else
ffa0583f
RL
28266 MACSETFILE="@true"
28267 MACRESWXCONFIG="@true"
a848cd7e
SC
28268
28269 if test "$wxUSE_PM" = 1; then
28270 MACRESCOMP="emxbind -ep"
28271 else
ffa0583f 28272 MACRESCOMP="@true"
a848cd7e
SC
28273 fi
28274fi
28275
28276
28277
28278echo "$as_me:$LINENO: checking for mode_t" >&5
28279echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
28280if test "${ac_cv_type_mode_t+set}" = set; then
28281 echo $ECHO_N "(cached) $ECHO_C" >&6
28282else
28283 cat >conftest.$ac_ext <<_ACEOF
28284/* confdefs.h. */
28285_ACEOF
28286cat confdefs.h >>conftest.$ac_ext
28287cat >>conftest.$ac_ext <<_ACEOF
28288/* end confdefs.h. */
28289$ac_includes_default
28290int
28291main ()
28292{
28293if ((mode_t *) 0)
28294 return 0;
28295if (sizeof (mode_t))
28296 return 0;
28297 ;
28298 return 0;
28299}
28300_ACEOF
28301rm -f conftest.$ac_objext
28302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28303 (eval $ac_compile) 2>conftest.er1
a848cd7e 28304 ac_status=$?
ac1cb8d3
VS
28305 grep -v '^ *+' conftest.er1 >conftest.err
28306 rm -f conftest.er1
28307 cat conftest.err >&5
a848cd7e
SC
28308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28309 (exit $ac_status); } &&
5294a27e 28310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28312 (eval $ac_try) 2>&5
28313 ac_status=$?
28314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28315 (exit $ac_status); }; } &&
28316 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28318 (eval $ac_try) 2>&5
28319 ac_status=$?
28320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28321 (exit $ac_status); }; }; then
28322 ac_cv_type_mode_t=yes
28323else
28324 echo "$as_me: failed program was:" >&5
28325sed 's/^/| /' conftest.$ac_ext >&5
28326
28327ac_cv_type_mode_t=no
28328fi
ac1cb8d3 28329rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28330fi
28331echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
28332echo "${ECHO_T}$ac_cv_type_mode_t" >&6
28333if test $ac_cv_type_mode_t = yes; then
28334 :
28335else
28336
28337cat >>confdefs.h <<_ACEOF
28338#define mode_t int
28339_ACEOF
28340
28341fi
28342
28343echo "$as_me:$LINENO: checking for off_t" >&5
28344echo $ECHO_N "checking for off_t... $ECHO_C" >&6
28345if test "${ac_cv_type_off_t+set}" = set; then
28346 echo $ECHO_N "(cached) $ECHO_C" >&6
28347else
28348 cat >conftest.$ac_ext <<_ACEOF
28349/* confdefs.h. */
28350_ACEOF
28351cat confdefs.h >>conftest.$ac_ext
28352cat >>conftest.$ac_ext <<_ACEOF
28353/* end confdefs.h. */
28354$ac_includes_default
28355int
28356main ()
28357{
28358if ((off_t *) 0)
28359 return 0;
28360if (sizeof (off_t))
28361 return 0;
28362 ;
28363 return 0;
28364}
28365_ACEOF
28366rm -f conftest.$ac_objext
28367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28368 (eval $ac_compile) 2>conftest.er1
a848cd7e 28369 ac_status=$?
ac1cb8d3
VS
28370 grep -v '^ *+' conftest.er1 >conftest.err
28371 rm -f conftest.er1
28372 cat conftest.err >&5
a848cd7e
SC
28373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28374 (exit $ac_status); } &&
5294a27e 28375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28377 (eval $ac_try) 2>&5
28378 ac_status=$?
28379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28380 (exit $ac_status); }; } &&
28381 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28383 (eval $ac_try) 2>&5
28384 ac_status=$?
28385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28386 (exit $ac_status); }; }; then
28387 ac_cv_type_off_t=yes
28388else
28389 echo "$as_me: failed program was:" >&5
28390sed 's/^/| /' conftest.$ac_ext >&5
28391
28392ac_cv_type_off_t=no
28393fi
ac1cb8d3 28394rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28395fi
28396echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
28397echo "${ECHO_T}$ac_cv_type_off_t" >&6
28398if test $ac_cv_type_off_t = yes; then
28399 :
28400else
28401
28402cat >>confdefs.h <<_ACEOF
28403#define off_t long
28404_ACEOF
28405
28406fi
28407
28408echo "$as_me:$LINENO: checking for pid_t" >&5
28409echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
28410if test "${ac_cv_type_pid_t+set}" = set; then
28411 echo $ECHO_N "(cached) $ECHO_C" >&6
28412else
28413 cat >conftest.$ac_ext <<_ACEOF
28414/* confdefs.h. */
28415_ACEOF
28416cat confdefs.h >>conftest.$ac_ext
28417cat >>conftest.$ac_ext <<_ACEOF
28418/* end confdefs.h. */
28419$ac_includes_default
28420int
28421main ()
28422{
28423if ((pid_t *) 0)
28424 return 0;
28425if (sizeof (pid_t))
28426 return 0;
28427 ;
28428 return 0;
28429}
28430_ACEOF
28431rm -f conftest.$ac_objext
28432if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28433 (eval $ac_compile) 2>conftest.er1
a848cd7e 28434 ac_status=$?
ac1cb8d3
VS
28435 grep -v '^ *+' conftest.er1 >conftest.err
28436 rm -f conftest.er1
28437 cat conftest.err >&5
a848cd7e
SC
28438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28439 (exit $ac_status); } &&
5294a27e 28440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28442 (eval $ac_try) 2>&5
28443 ac_status=$?
28444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28445 (exit $ac_status); }; } &&
28446 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28448 (eval $ac_try) 2>&5
28449 ac_status=$?
28450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28451 (exit $ac_status); }; }; then
28452 ac_cv_type_pid_t=yes
28453else
28454 echo "$as_me: failed program was:" >&5
28455sed 's/^/| /' conftest.$ac_ext >&5
28456
28457ac_cv_type_pid_t=no
28458fi
ac1cb8d3 28459rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28460fi
28461echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28462echo "${ECHO_T}$ac_cv_type_pid_t" >&6
28463if test $ac_cv_type_pid_t = yes; then
28464 :
28465else
28466
28467cat >>confdefs.h <<_ACEOF
28468#define pid_t int
28469_ACEOF
28470
28471fi
28472
28473echo "$as_me:$LINENO: checking for size_t" >&5
28474echo $ECHO_N "checking for size_t... $ECHO_C" >&6
28475if test "${ac_cv_type_size_t+set}" = set; then
28476 echo $ECHO_N "(cached) $ECHO_C" >&6
28477else
28478 cat >conftest.$ac_ext <<_ACEOF
28479/* confdefs.h. */
28480_ACEOF
28481cat confdefs.h >>conftest.$ac_ext
28482cat >>conftest.$ac_ext <<_ACEOF
28483/* end confdefs.h. */
28484$ac_includes_default
28485int
28486main ()
28487{
28488if ((size_t *) 0)
28489 return 0;
28490if (sizeof (size_t))
28491 return 0;
28492 ;
28493 return 0;
28494}
28495_ACEOF
28496rm -f conftest.$ac_objext
28497if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28498 (eval $ac_compile) 2>conftest.er1
a848cd7e 28499 ac_status=$?
ac1cb8d3
VS
28500 grep -v '^ *+' conftest.er1 >conftest.err
28501 rm -f conftest.er1
28502 cat conftest.err >&5
a848cd7e
SC
28503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28504 (exit $ac_status); } &&
5294a27e 28505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28507 (eval $ac_try) 2>&5
28508 ac_status=$?
28509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28510 (exit $ac_status); }; } &&
28511 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28513 (eval $ac_try) 2>&5
28514 ac_status=$?
28515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28516 (exit $ac_status); }; }; then
28517 ac_cv_type_size_t=yes
28518else
28519 echo "$as_me: failed program was:" >&5
28520sed 's/^/| /' conftest.$ac_ext >&5
28521
28522ac_cv_type_size_t=no
28523fi
ac1cb8d3 28524rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28525fi
28526echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28527echo "${ECHO_T}$ac_cv_type_size_t" >&6
28528if test $ac_cv_type_size_t = yes; then
28529 :
28530else
28531
28532cat >>confdefs.h <<_ACEOF
28533#define size_t unsigned
28534_ACEOF
28535
28536fi
28537
28538echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
28539echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
28540if test "${ac_cv_type_uid_t+set}" = set; then
28541 echo $ECHO_N "(cached) $ECHO_C" >&6
28542else
28543 cat >conftest.$ac_ext <<_ACEOF
28544/* confdefs.h. */
28545_ACEOF
28546cat confdefs.h >>conftest.$ac_ext
28547cat >>conftest.$ac_ext <<_ACEOF
28548/* end confdefs.h. */
28549#include <sys/types.h>
28550
28551_ACEOF
28552if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28553 $EGREP "uid_t" >/dev/null 2>&1; then
28554 ac_cv_type_uid_t=yes
28555else
28556 ac_cv_type_uid_t=no
28557fi
28558rm -f conftest*
28559
28560fi
28561echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
28562echo "${ECHO_T}$ac_cv_type_uid_t" >&6
28563if test $ac_cv_type_uid_t = no; then
28564
28565cat >>confdefs.h <<\_ACEOF
28566#define uid_t int
28567_ACEOF
28568
28569
28570cat >>confdefs.h <<\_ACEOF
28571#define gid_t int
28572_ACEOF
28573
28574fi
28575
28576
d51253e8
RL
28577echo "$as_me:$LINENO: checking for ssize_t" >&5
28578echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
28579if test "${ac_cv_type_ssize_t+set}" = set; then
28580 echo $ECHO_N "(cached) $ECHO_C" >&6
28581else
28582 cat >conftest.$ac_ext <<_ACEOF
28583/* confdefs.h. */
28584_ACEOF
28585cat confdefs.h >>conftest.$ac_ext
28586cat >>conftest.$ac_ext <<_ACEOF
28587/* end confdefs.h. */
28588$ac_includes_default
28589int
28590main ()
28591{
28592if ((ssize_t *) 0)
28593 return 0;
28594if (sizeof (ssize_t))
28595 return 0;
28596 ;
28597 return 0;
28598}
28599_ACEOF
28600rm -f conftest.$ac_objext
28601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28602 (eval $ac_compile) 2>conftest.er1
28603 ac_status=$?
28604 grep -v '^ *+' conftest.er1 >conftest.err
28605 rm -f conftest.er1
28606 cat conftest.err >&5
28607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28608 (exit $ac_status); } &&
5294a27e 28609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d51253e8
RL
28610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28611 (eval $ac_try) 2>&5
28612 ac_status=$?
28613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28614 (exit $ac_status); }; } &&
28615 { ac_try='test -s conftest.$ac_objext'
28616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28617 (eval $ac_try) 2>&5
28618 ac_status=$?
28619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28620 (exit $ac_status); }; }; then
28621 ac_cv_type_ssize_t=yes
28622else
28623 echo "$as_me: failed program was:" >&5
28624sed 's/^/| /' conftest.$ac_ext >&5
28625
28626ac_cv_type_ssize_t=no
28627fi
28628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28629fi
28630echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
28631echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
28632if test $ac_cv_type_ssize_t = yes; then
28633
28634cat >>confdefs.h <<_ACEOF
28635#define HAVE_SSIZE_T 1
28636_ACEOF
28637
28638
28639fi
28640
28641
a848cd7e
SC
28642
28643
28644ac_ext=cc
28645ac_cpp='$CXXCPP $CPPFLAGS'
28646ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28647ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28648ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28649
28650echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
28651echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
28652if test "${wx_cv_size_t_is_uint+set}" = set; then
28653 echo $ECHO_N "(cached) $ECHO_C" >&6
28654else
28655
28656 cat >conftest.$ac_ext <<_ACEOF
28657/* confdefs.h. */
28658_ACEOF
28659cat confdefs.h >>conftest.$ac_ext
28660cat >>conftest.$ac_ext <<_ACEOF
28661/* end confdefs.h. */
28662#include <stddef.h>
28663int
28664main ()
28665{
28666
28667 return 0; }
28668
28669 struct Foo { void foo(size_t); void foo(unsigned int); };
28670
28671 int bar() {
28672
28673 ;
28674 return 0;
28675}
28676_ACEOF
28677rm -f conftest.$ac_objext
28678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28679 (eval $ac_compile) 2>conftest.er1
a848cd7e 28680 ac_status=$?
ac1cb8d3
VS
28681 grep -v '^ *+' conftest.er1 >conftest.err
28682 rm -f conftest.er1
28683 cat conftest.err >&5
a848cd7e
SC
28684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28685 (exit $ac_status); } &&
5294a27e 28686 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28688 (eval $ac_try) 2>&5
28689 ac_status=$?
28690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28691 (exit $ac_status); }; } &&
28692 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28694 (eval $ac_try) 2>&5
28695 ac_status=$?
28696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28697 (exit $ac_status); }; }; then
28698 wx_cv_size_t_is_uint=no
28699else
28700 echo "$as_me: failed program was:" >&5
28701sed 's/^/| /' conftest.$ac_ext >&5
28702
28703wx_cv_size_t_is_uint=yes
28704
28705fi
ac1cb8d3 28706rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28707
28708
28709fi
28710echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
28711echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
28712
28713if test "$wx_cv_size_t_is_uint" = "yes"; then
28714 cat >>confdefs.h <<\_ACEOF
28715#define wxSIZE_T_IS_UINT 1
28716_ACEOF
28717
28718else
28719 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
28720echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
28721if test "${wx_cv_size_t_is_ulong+set}" = set; then
28722 echo $ECHO_N "(cached) $ECHO_C" >&6
28723else
28724 cat >conftest.$ac_ext <<_ACEOF
28725/* confdefs.h. */
28726_ACEOF
28727cat confdefs.h >>conftest.$ac_ext
28728cat >>conftest.$ac_ext <<_ACEOF
28729/* end confdefs.h. */
28730#include <stddef.h>
28731int
28732main ()
28733{
28734
28735 return 0; }
28736
28737 struct Foo { void foo(size_t); void foo(unsigned long); };
28738
28739 int bar() {
28740
28741 ;
28742 return 0;
28743}
28744_ACEOF
28745rm -f conftest.$ac_objext
28746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28747 (eval $ac_compile) 2>conftest.er1
a848cd7e 28748 ac_status=$?
ac1cb8d3
VS
28749 grep -v '^ *+' conftest.er1 >conftest.err
28750 rm -f conftest.er1
28751 cat conftest.err >&5
a848cd7e
SC
28752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28753 (exit $ac_status); } &&
5294a27e 28754 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28756 (eval $ac_try) 2>&5
28757 ac_status=$?
28758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28759 (exit $ac_status); }; } &&
28760 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28762 (eval $ac_try) 2>&5
28763 ac_status=$?
28764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28765 (exit $ac_status); }; }; then
28766 wx_cv_size_t_is_ulong=no
28767else
28768 echo "$as_me: failed program was:" >&5
28769sed 's/^/| /' conftest.$ac_ext >&5
28770
28771wx_cv_size_t_is_ulong=yes
28772
28773fi
ac1cb8d3 28774rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28775
28776fi
28777echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
28778echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
28779
28780 if test "$wx_cv_size_t_is_ulong" = "yes"; then
28781 cat >>confdefs.h <<\_ACEOF
28782#define wxSIZE_T_IS_ULONG 1
28783_ACEOF
28784
28785 fi
28786fi
28787
28788ac_ext=c
28789ac_cpp='$CPP $CPPFLAGS'
28790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28792ac_compiler_gnu=$ac_cv_c_compiler_gnu
28793
28794
28795
28796echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
28797echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
28798if test "${wx_cv_struct_pw_gecos+set}" = set; then
28799 echo $ECHO_N "(cached) $ECHO_C" >&6
28800else
28801
28802 cat >conftest.$ac_ext <<_ACEOF
28803/* confdefs.h. */
28804_ACEOF
28805cat confdefs.h >>conftest.$ac_ext
28806cat >>conftest.$ac_ext <<_ACEOF
28807/* end confdefs.h. */
28808#include <pwd.h>
28809int
28810main ()
28811{
28812
28813 char *p;
28814 struct passwd *pw;
28815 p = pw->pw_gecos;
28816
28817 ;
28818 return 0;
28819}
28820_ACEOF
28821rm -f conftest.$ac_objext
28822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28823 (eval $ac_compile) 2>conftest.er1
a848cd7e 28824 ac_status=$?
ac1cb8d3
VS
28825 grep -v '^ *+' conftest.er1 >conftest.err
28826 rm -f conftest.er1
28827 cat conftest.err >&5
a848cd7e
SC
28828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28829 (exit $ac_status); } &&
5294a27e 28830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28832 (eval $ac_try) 2>&5
28833 ac_status=$?
28834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28835 (exit $ac_status); }; } &&
28836 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28838 (eval $ac_try) 2>&5
28839 ac_status=$?
28840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28841 (exit $ac_status); }; }; then
28842
28843 wx_cv_struct_pw_gecos=yes
28844
28845else
28846 echo "$as_me: failed program was:" >&5
28847sed 's/^/| /' conftest.$ac_ext >&5
28848
28849
28850 wx_cv_struct_pw_gecos=no
28851
28852
28853fi
ac1cb8d3 28854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28855
28856
28857fi
28858echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
28859echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
28860
28861if test "$wx_cv_struct_pw_gecos" = "yes"; then
28862 cat >>confdefs.h <<\_ACEOF
28863#define HAVE_PW_GECOS 1
28864_ACEOF
28865
28866fi
28867
28868
28869if test "$wx_cv_sizeof_wchar_t" != "0"; then
28870 cat >>confdefs.h <<\_ACEOF
28871#define wxUSE_WCHAR_T 1
28872_ACEOF
28873
28874
28875 WCSLEN_FOUND=0
28876 WCHAR_LINK=
28877
28878for ac_func in wcslen
28879do
28880as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28881echo "$as_me:$LINENO: checking for $ac_func" >&5
28882echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28883if eval "test \"\${$as_ac_var+set}\" = set"; then
28884 echo $ECHO_N "(cached) $ECHO_C" >&6
28885else
28886 cat >conftest.$ac_ext <<_ACEOF
28887/* confdefs.h. */
28888_ACEOF
28889cat confdefs.h >>conftest.$ac_ext
28890cat >>conftest.$ac_ext <<_ACEOF
28891/* end confdefs.h. */
ac1cb8d3
VS
28892/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28894#define $ac_func innocuous_$ac_func
28895
a848cd7e
SC
28896/* System header to define __stub macros and hopefully few prototypes,
28897 which can conflict with char $ac_func (); below.
28898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28899 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28900
a848cd7e
SC
28901#ifdef __STDC__
28902# include <limits.h>
28903#else
28904# include <assert.h>
28905#endif
ac1cb8d3
VS
28906
28907#undef $ac_func
28908
a848cd7e
SC
28909/* Override any gcc2 internal prototype to avoid an error. */
28910#ifdef __cplusplus
28911extern "C"
28912{
28913#endif
28914/* We use char because int might match the return type of a gcc2
28915 builtin and then its argument prototype would still apply. */
28916char $ac_func ();
28917/* The GNU C library defines this for functions which it implements
28918 to always fail with ENOSYS. Some functions are actually named
28919 something starting with __ and the normal name is an alias. */
28920#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28921choke me
28922#else
28923char (*f) () = $ac_func;
28924#endif
28925#ifdef __cplusplus
28926}
28927#endif
28928
28929int
28930main ()
28931{
28932return f != $ac_func;
28933 ;
28934 return 0;
28935}
28936_ACEOF
28937rm -f conftest.$ac_objext conftest$ac_exeext
28938if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28939 (eval $ac_link) 2>conftest.er1
a848cd7e 28940 ac_status=$?
ac1cb8d3
VS
28941 grep -v '^ *+' conftest.er1 >conftest.err
28942 rm -f conftest.er1
28943 cat conftest.err >&5
a848cd7e
SC
28944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28945 (exit $ac_status); } &&
5294a27e 28946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28948 (eval $ac_try) 2>&5
28949 ac_status=$?
28950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28951 (exit $ac_status); }; } &&
28952 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28954 (eval $ac_try) 2>&5
28955 ac_status=$?
28956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28957 (exit $ac_status); }; }; then
28958 eval "$as_ac_var=yes"
28959else
28960 echo "$as_me: failed program was:" >&5
28961sed 's/^/| /' conftest.$ac_ext >&5
28962
28963eval "$as_ac_var=no"
28964fi
ac1cb8d3
VS
28965rm -f conftest.err conftest.$ac_objext \
28966 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28967fi
28968echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28969echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28970if test `eval echo '${'$as_ac_var'}'` = yes; then
28971 cat >>confdefs.h <<_ACEOF
28972#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28973_ACEOF
28974 WCSLEN_FOUND=1
28975fi
28976done
28977
28978
28979 if test "$WCSLEN_FOUND" = 0; then
28980 if test "$TOOLKIT" = "MSW"; then
28981 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
28982echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
28983if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
28984 echo $ECHO_N "(cached) $ECHO_C" >&6
28985else
28986 ac_check_lib_save_LIBS=$LIBS
28987LIBS="-lmsvcrt $LIBS"
28988cat >conftest.$ac_ext <<_ACEOF
28989/* confdefs.h. */
28990_ACEOF
28991cat confdefs.h >>conftest.$ac_ext
28992cat >>conftest.$ac_ext <<_ACEOF
28993/* end confdefs.h. */
28994
28995/* Override any gcc2 internal prototype to avoid an error. */
28996#ifdef __cplusplus
28997extern "C"
28998#endif
28999/* We use char because int might match the return type of a gcc2
29000 builtin and then its argument prototype would still apply. */
29001char wcslen ();
29002int
29003main ()
29004{
29005wcslen ();
29006 ;
29007 return 0;
29008}
29009_ACEOF
29010rm -f conftest.$ac_objext conftest$ac_exeext
29011if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29012 (eval $ac_link) 2>conftest.er1
a848cd7e 29013 ac_status=$?
ac1cb8d3
VS
29014 grep -v '^ *+' conftest.er1 >conftest.err
29015 rm -f conftest.er1
29016 cat conftest.err >&5
a848cd7e
SC
29017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29018 (exit $ac_status); } &&
5294a27e 29019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29021 (eval $ac_try) 2>&5
29022 ac_status=$?
29023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29024 (exit $ac_status); }; } &&
29025 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29027 (eval $ac_try) 2>&5
29028 ac_status=$?
29029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29030 (exit $ac_status); }; }; then
29031 ac_cv_lib_msvcrt_wcslen=yes
29032else
29033 echo "$as_me: failed program was:" >&5
29034sed 's/^/| /' conftest.$ac_ext >&5
29035
29036ac_cv_lib_msvcrt_wcslen=no
29037fi
ac1cb8d3
VS
29038rm -f conftest.err conftest.$ac_objext \
29039 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29040LIBS=$ac_check_lib_save_LIBS
29041fi
29042echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
29043echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
29044if test $ac_cv_lib_msvcrt_wcslen = yes; then
29045 WCHAR_OK=1
29046fi
29047
29048 else
29049 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
29050echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
29051if test "${ac_cv_lib_w_wcslen+set}" = set; then
29052 echo $ECHO_N "(cached) $ECHO_C" >&6
29053else
29054 ac_check_lib_save_LIBS=$LIBS
29055LIBS="-lw $LIBS"
29056cat >conftest.$ac_ext <<_ACEOF
29057/* confdefs.h. */
29058_ACEOF
29059cat confdefs.h >>conftest.$ac_ext
29060cat >>conftest.$ac_ext <<_ACEOF
29061/* end confdefs.h. */
29062
29063/* Override any gcc2 internal prototype to avoid an error. */
29064#ifdef __cplusplus
29065extern "C"
29066#endif
29067/* We use char because int might match the return type of a gcc2
29068 builtin and then its argument prototype would still apply. */
29069char wcslen ();
29070int
29071main ()
29072{
29073wcslen ();
29074 ;
29075 return 0;
29076}
29077_ACEOF
29078rm -f conftest.$ac_objext conftest$ac_exeext
29079if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29080 (eval $ac_link) 2>conftest.er1
a848cd7e 29081 ac_status=$?
ac1cb8d3
VS
29082 grep -v '^ *+' conftest.er1 >conftest.err
29083 rm -f conftest.er1
29084 cat conftest.err >&5
a848cd7e
SC
29085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29086 (exit $ac_status); } &&
5294a27e 29087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29089 (eval $ac_try) 2>&5
29090 ac_status=$?
29091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29092 (exit $ac_status); }; } &&
29093 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29095 (eval $ac_try) 2>&5
29096 ac_status=$?
29097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29098 (exit $ac_status); }; }; then
29099 ac_cv_lib_w_wcslen=yes
29100else
29101 echo "$as_me: failed program was:" >&5
29102sed 's/^/| /' conftest.$ac_ext >&5
29103
29104ac_cv_lib_w_wcslen=no
29105fi
ac1cb8d3
VS
29106rm -f conftest.err conftest.$ac_objext \
29107 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29108LIBS=$ac_check_lib_save_LIBS
29109fi
29110echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
29111echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
29112if test $ac_cv_lib_w_wcslen = yes; then
29113
29114 WCHAR_LINK=" -lw"
29115 WCSLEN_FOUND=1
29116
29117fi
29118
29119 fi
29120 fi
29121
29122 if test "$WCSLEN_FOUND" = 1; then
29123 cat >>confdefs.h <<\_ACEOF
29124#define HAVE_WCSLEN 1
29125_ACEOF
29126
29127 fi
29128
473276a9
VS
29129 if test "$USE_HPUX" = 1 -a "x$GCC" != "xyes"; then
29130 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
29131 fi
29132
a848cd7e
SC
29133
29134for ac_func in wcsrtombs
29135do
29136as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29137echo "$as_me:$LINENO: checking for $ac_func" >&5
29138echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29139if eval "test \"\${$as_ac_var+set}\" = set"; then
29140 echo $ECHO_N "(cached) $ECHO_C" >&6
29141else
29142 cat >conftest.$ac_ext <<_ACEOF
29143/* confdefs.h. */
29144_ACEOF
29145cat confdefs.h >>conftest.$ac_ext
29146cat >>conftest.$ac_ext <<_ACEOF
29147/* end confdefs.h. */
ac1cb8d3
VS
29148/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29149 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29150#define $ac_func innocuous_$ac_func
29151
a848cd7e
SC
29152/* System header to define __stub macros and hopefully few prototypes,
29153 which can conflict with char $ac_func (); below.
29154 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29155 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29156
a848cd7e
SC
29157#ifdef __STDC__
29158# include <limits.h>
29159#else
29160# include <assert.h>
29161#endif
ac1cb8d3
VS
29162
29163#undef $ac_func
29164
a848cd7e
SC
29165/* Override any gcc2 internal prototype to avoid an error. */
29166#ifdef __cplusplus
29167extern "C"
29168{
29169#endif
29170/* We use char because int might match the return type of a gcc2
29171 builtin and then its argument prototype would still apply. */
29172char $ac_func ();
29173/* The GNU C library defines this for functions which it implements
29174 to always fail with ENOSYS. Some functions are actually named
29175 something starting with __ and the normal name is an alias. */
29176#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29177choke me
29178#else
29179char (*f) () = $ac_func;
29180#endif
29181#ifdef __cplusplus
29182}
29183#endif
29184
29185int
29186main ()
29187{
29188return f != $ac_func;
29189 ;
29190 return 0;
29191}
29192_ACEOF
29193rm -f conftest.$ac_objext conftest$ac_exeext
29194if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29195 (eval $ac_link) 2>conftest.er1
a848cd7e 29196 ac_status=$?
ac1cb8d3
VS
29197 grep -v '^ *+' conftest.er1 >conftest.err
29198 rm -f conftest.er1
29199 cat conftest.err >&5
a848cd7e
SC
29200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29201 (exit $ac_status); } &&
5294a27e 29202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29204 (eval $ac_try) 2>&5
29205 ac_status=$?
29206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29207 (exit $ac_status); }; } &&
29208 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29210 (eval $ac_try) 2>&5
29211 ac_status=$?
29212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29213 (exit $ac_status); }; }; then
29214 eval "$as_ac_var=yes"
29215else
29216 echo "$as_me: failed program was:" >&5
29217sed 's/^/| /' conftest.$ac_ext >&5
29218
29219eval "$as_ac_var=no"
29220fi
ac1cb8d3
VS
29221rm -f conftest.err conftest.$ac_objext \
29222 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29223fi
29224echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29225echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29226if test `eval echo '${'$as_ac_var'}'` = yes; then
29227 cat >>confdefs.h <<_ACEOF
29228#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29229_ACEOF
29230
29231fi
29232done
29233
29234else
29235 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
29236echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
29237fi
29238
29239
29240
29241ac_ext=cc
29242ac_cpp='$CXXCPP $CPPFLAGS'
29243ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29244ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29245ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29246
29247
29248
29249for ac_func in vsnprintf
29250do
29251as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29252echo "$as_me:$LINENO: checking for $ac_func" >&5
29253echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29254if eval "test \"\${$as_ac_var+set}\" = set"; then
29255 echo $ECHO_N "(cached) $ECHO_C" >&6
29256else
29257 cat >conftest.$ac_ext <<_ACEOF
29258/* confdefs.h. */
29259_ACEOF
29260cat confdefs.h >>conftest.$ac_ext
29261cat >>conftest.$ac_ext <<_ACEOF
29262/* end confdefs.h. */
ac1cb8d3
VS
29263/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29264 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29265#define $ac_func innocuous_$ac_func
29266
a848cd7e
SC
29267/* System header to define __stub macros and hopefully few prototypes,
29268 which can conflict with char $ac_func (); below.
29269 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29270 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29271
a848cd7e
SC
29272#ifdef __STDC__
29273# include <limits.h>
29274#else
29275# include <assert.h>
29276#endif
ac1cb8d3
VS
29277
29278#undef $ac_func
29279
a848cd7e
SC
29280/* Override any gcc2 internal prototype to avoid an error. */
29281#ifdef __cplusplus
29282extern "C"
29283{
29284#endif
29285/* We use char because int might match the return type of a gcc2
29286 builtin and then its argument prototype would still apply. */
29287char $ac_func ();
29288/* The GNU C library defines this for functions which it implements
29289 to always fail with ENOSYS. Some functions are actually named
29290 something starting with __ and the normal name is an alias. */
29291#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29292choke me
29293#else
29294char (*f) () = $ac_func;
29295#endif
29296#ifdef __cplusplus
29297}
29298#endif
29299
29300int
29301main ()
29302{
29303return f != $ac_func;
29304 ;
29305 return 0;
29306}
29307_ACEOF
29308rm -f conftest.$ac_objext conftest$ac_exeext
29309if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29310 (eval $ac_link) 2>conftest.er1
a848cd7e 29311 ac_status=$?
ac1cb8d3
VS
29312 grep -v '^ *+' conftest.er1 >conftest.err
29313 rm -f conftest.er1
29314 cat conftest.err >&5
a848cd7e
SC
29315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29316 (exit $ac_status); } &&
5294a27e 29317 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29319 (eval $ac_try) 2>&5
29320 ac_status=$?
29321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29322 (exit $ac_status); }; } &&
29323 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29325 (eval $ac_try) 2>&5
29326 ac_status=$?
29327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29328 (exit $ac_status); }; }; then
29329 eval "$as_ac_var=yes"
29330else
29331 echo "$as_me: failed program was:" >&5
29332sed 's/^/| /' conftest.$ac_ext >&5
29333
29334eval "$as_ac_var=no"
29335fi
ac1cb8d3
VS
29336rm -f conftest.err conftest.$ac_objext \
29337 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29338fi
29339echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29340echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29341if test `eval echo '${'$as_ac_var'}'` = yes; then
29342 cat >>confdefs.h <<_ACEOF
29343#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29344_ACEOF
29345
29346fi
29347done
29348
29349
29350if test "$ac_cv_func_vsnprintf" = "yes"; then
29351 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
29352echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
29353if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
29354 echo $ECHO_N "(cached) $ECHO_C" >&6
29355else
29356
29357 cat >conftest.$ac_ext <<_ACEOF
29358/* confdefs.h. */
29359_ACEOF
29360cat confdefs.h >>conftest.$ac_ext
29361cat >>conftest.$ac_ext <<_ACEOF
29362/* end confdefs.h. */
29363
29364 #include <stdio.h>
29365 #include <stdarg.h>
29366
29367int
29368main ()
29369{
29370
29371 char *buf;
29372 va_list ap;
29373 vsnprintf(buf, 10u, "%s", ap);
29374
29375 ;
29376 return 0;
29377}
29378_ACEOF
29379rm -f conftest.$ac_objext
29380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29381 (eval $ac_compile) 2>conftest.er1
a848cd7e 29382 ac_status=$?
ac1cb8d3
VS
29383 grep -v '^ *+' conftest.er1 >conftest.err
29384 rm -f conftest.er1
29385 cat conftest.err >&5
a848cd7e
SC
29386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29387 (exit $ac_status); } &&
5294a27e 29388 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29390 (eval $ac_try) 2>&5
29391 ac_status=$?
29392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29393 (exit $ac_status); }; } &&
29394 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29396 (eval $ac_try) 2>&5
29397 ac_status=$?
29398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29399 (exit $ac_status); }; }; then
29400 wx_cv_func_vsnprintf_decl=yes
29401else
29402 echo "$as_me: failed program was:" >&5
29403sed 's/^/| /' conftest.$ac_ext >&5
29404
29405wx_cv_func_vsnprintf_decl=no
29406
29407fi
ac1cb8d3 29408rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29409
29410
29411fi
29412echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
29413echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
29414
29415 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
29416 cat >>confdefs.h <<\_ACEOF
29417#define HAVE_VSNPRINTF_DECL 1
29418_ACEOF
29419
29420 fi
29421fi
29422
29423if test "$wxUSE_UNICODE" = yes; then
29424
29425
29426
fbe47c7b
VS
29427
29428
29429
29430for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
29431do
29432as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29433echo "$as_me:$LINENO: checking for $ac_func" >&5
29434echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29435if eval "test \"\${$as_ac_var+set}\" = set"; then
29436 echo $ECHO_N "(cached) $ECHO_C" >&6
29437else
29438 cat >conftest.$ac_ext <<_ACEOF
29439/* confdefs.h. */
29440_ACEOF
29441cat confdefs.h >>conftest.$ac_ext
29442cat >>conftest.$ac_ext <<_ACEOF
29443/* end confdefs.h. */
ac1cb8d3
VS
29444/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29445 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29446#define $ac_func innocuous_$ac_func
29447
a848cd7e
SC
29448/* System header to define __stub macros and hopefully few prototypes,
29449 which can conflict with char $ac_func (); below.
29450 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29451 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29452
a848cd7e
SC
29453#ifdef __STDC__
29454# include <limits.h>
29455#else
29456# include <assert.h>
29457#endif
ac1cb8d3
VS
29458
29459#undef $ac_func
29460
a848cd7e
SC
29461/* Override any gcc2 internal prototype to avoid an error. */
29462#ifdef __cplusplus
29463extern "C"
29464{
29465#endif
29466/* We use char because int might match the return type of a gcc2
29467 builtin and then its argument prototype would still apply. */
29468char $ac_func ();
29469/* The GNU C library defines this for functions which it implements
29470 to always fail with ENOSYS. Some functions are actually named
29471 something starting with __ and the normal name is an alias. */
29472#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29473choke me
29474#else
29475char (*f) () = $ac_func;
29476#endif
29477#ifdef __cplusplus
29478}
29479#endif
29480
29481int
29482main ()
29483{
29484return f != $ac_func;
29485 ;
29486 return 0;
29487}
29488_ACEOF
29489rm -f conftest.$ac_objext conftest$ac_exeext
29490if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29491 (eval $ac_link) 2>conftest.er1
a848cd7e 29492 ac_status=$?
ac1cb8d3
VS
29493 grep -v '^ *+' conftest.er1 >conftest.err
29494 rm -f conftest.er1
29495 cat conftest.err >&5
a848cd7e
SC
29496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29497 (exit $ac_status); } &&
5294a27e 29498 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
29504 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29506 (eval $ac_try) 2>&5
29507 ac_status=$?
29508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29509 (exit $ac_status); }; }; then
29510 eval "$as_ac_var=yes"
29511else
29512 echo "$as_me: failed program was:" >&5
29513sed 's/^/| /' conftest.$ac_ext >&5
29514
29515eval "$as_ac_var=no"
29516fi
ac1cb8d3
VS
29517rm -f conftest.err conftest.$ac_objext \
29518 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29519fi
29520echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29521echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29522if test `eval echo '${'$as_ac_var'}'` = yes; then
29523 cat >>confdefs.h <<_ACEOF
29524#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29525_ACEOF
29526
29527fi
29528done
29529
29530
29531 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
29532echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
29533 cat >conftest.$ac_ext <<_ACEOF
29534/* confdefs.h. */
29535_ACEOF
29536cat confdefs.h >>conftest.$ac_ext
29537cat >>conftest.$ac_ext <<_ACEOF
29538/* end confdefs.h. */
29539#include <wchar.h>
29540int
29541main ()
29542{
29543&_vsnwprintf;
29544 ;
29545 return 0;
29546}
29547_ACEOF
29548rm -f conftest.$ac_objext
29549if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29550 (eval $ac_compile) 2>conftest.er1
a848cd7e 29551 ac_status=$?
ac1cb8d3
VS
29552 grep -v '^ *+' conftest.er1 >conftest.err
29553 rm -f conftest.er1
29554 cat conftest.err >&5
a848cd7e
SC
29555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29556 (exit $ac_status); } &&
5294a27e 29557 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29559 (eval $ac_try) 2>&5
29560 ac_status=$?
29561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29562 (exit $ac_status); }; } &&
29563 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29565 (eval $ac_try) 2>&5
29566 ac_status=$?
29567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29568 (exit $ac_status); }; }; then
29569 echo "$as_me:$LINENO: result: yes" >&5
29570echo "${ECHO_T}yes" >&6
29571 cat >>confdefs.h <<\_ACEOF
29572#define HAVE__VSNWPRINTF 1
29573_ACEOF
29574
29575else
29576 echo "$as_me: failed program was:" >&5
29577sed 's/^/| /' conftest.$ac_ext >&5
29578
29579echo "$as_me:$LINENO: result: no" >&5
29580echo "${ECHO_T}no" >&6
29581fi
ac1cb8d3 29582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
29583fi
29584
29585ac_ext=c
29586ac_cpp='$CPP $CPPFLAGS'
29587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29589ac_compiler_gnu=$ac_cv_c_compiler_gnu
29590
29591
29592
29593
29594if test "$TOOLKIT" != "MSW"; then
29595
29596
29597
29598
29599ac_ext=cc
29600ac_cpp='$CXXCPP $CPPFLAGS'
29601ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29602ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29603ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29604
29605
29606
29607
29608# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
29609if test "${with_libiconv_prefix+set}" = set; then
29610 withval="$with_libiconv_prefix"
29611
29612 for dir in `echo "$withval" | tr : ' '`; do
29613 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
29614 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
29615 done
29616
29617fi;
29618
29619 echo "$as_me:$LINENO: checking for iconv" >&5
29620echo $ECHO_N "checking for iconv... $ECHO_C" >&6
29621if test "${am_cv_func_iconv+set}" = set; then
29622 echo $ECHO_N "(cached) $ECHO_C" >&6
29623else
29624
29625 am_cv_func_iconv="no, consider installing GNU libiconv"
29626 am_cv_lib_iconv=no
29627 cat >conftest.$ac_ext <<_ACEOF
29628/* confdefs.h. */
29629_ACEOF
29630cat confdefs.h >>conftest.$ac_ext
29631cat >>conftest.$ac_ext <<_ACEOF
29632/* end confdefs.h. */
29633#include <stdlib.h>
29634#include <iconv.h>
29635int
29636main ()
29637{
29638iconv_t cd = iconv_open("","");
29639 iconv(cd,NULL,NULL,NULL,NULL);
29640 iconv_close(cd);
29641 ;
29642 return 0;
29643}
29644_ACEOF
29645rm -f conftest.$ac_objext conftest$ac_exeext
29646if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29647 (eval $ac_link) 2>conftest.er1
a848cd7e 29648 ac_status=$?
ac1cb8d3
VS
29649 grep -v '^ *+' conftest.er1 >conftest.err
29650 rm -f conftest.er1
29651 cat conftest.err >&5
a848cd7e
SC
29652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29653 (exit $ac_status); } &&
5294a27e 29654 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29656 (eval $ac_try) 2>&5
29657 ac_status=$?
29658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29659 (exit $ac_status); }; } &&
29660 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29662 (eval $ac_try) 2>&5
29663 ac_status=$?
29664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29665 (exit $ac_status); }; }; then
29666 am_cv_func_iconv=yes
29667else
29668 echo "$as_me: failed program was:" >&5
29669sed 's/^/| /' conftest.$ac_ext >&5
29670
29671fi
ac1cb8d3
VS
29672rm -f conftest.err conftest.$ac_objext \
29673 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29674 if test "$am_cv_func_iconv" != yes; then
29675 am_save_LIBS="$LIBS"
29676 LIBS="$LIBS -liconv"
29677 cat >conftest.$ac_ext <<_ACEOF
29678/* confdefs.h. */
29679_ACEOF
29680cat confdefs.h >>conftest.$ac_ext
29681cat >>conftest.$ac_ext <<_ACEOF
29682/* end confdefs.h. */
29683#include <stdlib.h>
29684#include <iconv.h>
29685int
29686main ()
29687{
29688iconv_t cd = iconv_open("","");
29689 iconv(cd,NULL,NULL,NULL,NULL);
29690 iconv_close(cd);
29691 ;
29692 return 0;
29693}
29694_ACEOF
29695rm -f conftest.$ac_objext conftest$ac_exeext
29696if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29697 (eval $ac_link) 2>conftest.er1
a848cd7e 29698 ac_status=$?
ac1cb8d3
VS
29699 grep -v '^ *+' conftest.er1 >conftest.err
29700 rm -f conftest.er1
29701 cat conftest.err >&5
a848cd7e
SC
29702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29703 (exit $ac_status); } &&
5294a27e 29704 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29706 (eval $ac_try) 2>&5
29707 ac_status=$?
29708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29709 (exit $ac_status); }; } &&
29710 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29712 (eval $ac_try) 2>&5
29713 ac_status=$?
29714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29715 (exit $ac_status); }; }; then
29716 am_cv_lib_iconv=yes
29717 am_cv_func_iconv=yes
29718else
29719 echo "$as_me: failed program was:" >&5
29720sed 's/^/| /' conftest.$ac_ext >&5
29721
29722fi
ac1cb8d3
VS
29723rm -f conftest.err conftest.$ac_objext \
29724 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29725 LIBS="$am_save_LIBS"
29726 fi
29727
29728fi
29729echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
29730echo "${ECHO_T}$am_cv_func_iconv" >&6
29731 if test "$am_cv_func_iconv" = yes; then
29732
29733cat >>confdefs.h <<\_ACEOF
29734#define HAVE_ICONV 1
29735_ACEOF
29736
29737 echo "$as_me:$LINENO: checking if iconv needs const" >&5
29738echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
29739if test "${wx_cv_func_iconv_const+set}" = set; then
29740 echo $ECHO_N "(cached) $ECHO_C" >&6
29741else
29742 cat >conftest.$ac_ext <<_ACEOF
29743/* confdefs.h. */
29744_ACEOF
29745cat confdefs.h >>conftest.$ac_ext
29746cat >>conftest.$ac_ext <<_ACEOF
29747/* end confdefs.h. */
29748
29749#include <stdlib.h>
29750#include <iconv.h>
29751extern
29752#ifdef __cplusplus
29753"C"
29754#endif
29755#if defined(__STDC__) || defined(__cplusplus)
29756size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
29757#else
29758size_t iconv();
29759#endif
29760
29761int
29762main ()
29763{
29764
29765 ;
29766 return 0;
29767}
29768_ACEOF
29769rm -f conftest.$ac_objext
29770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29771 (eval $ac_compile) 2>conftest.er1
a848cd7e 29772 ac_status=$?
ac1cb8d3
VS
29773 grep -v '^ *+' conftest.er1 >conftest.err
29774 rm -f conftest.er1
29775 cat conftest.err >&5
a848cd7e
SC
29776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29777 (exit $ac_status); } &&
5294a27e 29778 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29780 (eval $ac_try) 2>&5
29781 ac_status=$?
29782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29783 (exit $ac_status); }; } &&
29784 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29786 (eval $ac_try) 2>&5
29787 ac_status=$?
29788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29789 (exit $ac_status); }; }; then
29790 wx_cv_func_iconv_const="no"
29791else
29792 echo "$as_me: failed program was:" >&5
29793sed 's/^/| /' conftest.$ac_ext >&5
29794
29795wx_cv_func_iconv_const="yes"
29796
29797fi
ac1cb8d3 29798rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29799
29800fi
29801echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
29802echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
29803
29804 iconv_const=
29805 if test "x$wx_cv_func_iconv_const" = "xyes"; then
29806 iconv_const="const"
29807 fi
29808
29809
29810cat >>confdefs.h <<_ACEOF
29811#define ICONV_CONST $iconv_const
29812_ACEOF
29813
29814 fi
29815 LIBICONV=
29816 if test "$am_cv_lib_iconv" = yes; then
29817 LIBICONV="-liconv"
29818 fi
29819
29820
29821LIBS="$LIBICONV $LIBS"
29822ac_ext=c
29823ac_cpp='$CPP $CPPFLAGS'
29824ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29825ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29826ac_compiler_gnu=$ac_cv_c_compiler_gnu
29827
29828
29829if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
29830
29831for ac_func in sigaction
29832do
29833as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29834echo "$as_me:$LINENO: checking for $ac_func" >&5
29835echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29836if eval "test \"\${$as_ac_var+set}\" = set"; then
29837 echo $ECHO_N "(cached) $ECHO_C" >&6
29838else
29839 cat >conftest.$ac_ext <<_ACEOF
29840/* confdefs.h. */
29841_ACEOF
29842cat confdefs.h >>conftest.$ac_ext
29843cat >>conftest.$ac_ext <<_ACEOF
29844/* end confdefs.h. */
ac1cb8d3
VS
29845/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29847#define $ac_func innocuous_$ac_func
29848
a848cd7e
SC
29849/* System header to define __stub macros and hopefully few prototypes,
29850 which can conflict with char $ac_func (); below.
29851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29852 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29853
a848cd7e
SC
29854#ifdef __STDC__
29855# include <limits.h>
29856#else
29857# include <assert.h>
29858#endif
ac1cb8d3
VS
29859
29860#undef $ac_func
29861
a848cd7e
SC
29862/* Override any gcc2 internal prototype to avoid an error. */
29863#ifdef __cplusplus
29864extern "C"
29865{
29866#endif
29867/* We use char because int might match the return type of a gcc2
29868 builtin and then its argument prototype would still apply. */
29869char $ac_func ();
29870/* The GNU C library defines this for functions which it implements
29871 to always fail with ENOSYS. Some functions are actually named
29872 something starting with __ and the normal name is an alias. */
29873#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29874choke me
29875#else
29876char (*f) () = $ac_func;
29877#endif
29878#ifdef __cplusplus
29879}
29880#endif
29881
29882int
29883main ()
29884{
29885return f != $ac_func;
29886 ;
29887 return 0;
29888}
29889_ACEOF
29890rm -f conftest.$ac_objext conftest$ac_exeext
29891if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29892 (eval $ac_link) 2>conftest.er1
a848cd7e 29893 ac_status=$?
ac1cb8d3
VS
29894 grep -v '^ *+' conftest.er1 >conftest.err
29895 rm -f conftest.er1
29896 cat conftest.err >&5
a848cd7e
SC
29897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29898 (exit $ac_status); } &&
5294a27e 29899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
29905 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29907 (eval $ac_try) 2>&5
29908 ac_status=$?
29909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29910 (exit $ac_status); }; }; then
29911 eval "$as_ac_var=yes"
29912else
29913 echo "$as_me: failed program was:" >&5
29914sed 's/^/| /' conftest.$ac_ext >&5
29915
29916eval "$as_ac_var=no"
29917fi
ac1cb8d3
VS
29918rm -f conftest.err conftest.$ac_objext \
29919 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29920fi
29921echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29922echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29923if test `eval echo '${'$as_ac_var'}'` = yes; then
29924 cat >>confdefs.h <<_ACEOF
29925#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29926_ACEOF
29927
29928fi
29929done
29930
29931
29932 if test "$ac_cv_func_sigaction" = "no"; then
29933 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
29934echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
29935 wxUSE_ON_FATAL_EXCEPTION=no
29936 fi
29937
29938 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
29939
29940
29941 ac_ext=cc
29942ac_cpp='$CXXCPP $CPPFLAGS'
29943ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29944ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29945ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29946
29947
29948 echo "$as_me:$LINENO: checking for sa_handler type" >&5
29949echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
29950if test "${wx_cv_type_sa_handler+set}" = set; then
29951 echo $ECHO_N "(cached) $ECHO_C" >&6
29952else
29953
29954 cat >conftest.$ac_ext <<_ACEOF
29955/* confdefs.h. */
29956_ACEOF
29957cat confdefs.h >>conftest.$ac_ext
29958cat >>conftest.$ac_ext <<_ACEOF
29959/* end confdefs.h. */
29960#include <signal.h>
29961int
29962main ()
29963{
29964
29965 extern void testSigHandler(int);
29966
29967 struct sigaction sa;
29968 sa.sa_handler = testSigHandler;
29969
29970 ;
29971 return 0;
29972}
29973_ACEOF
29974rm -f conftest.$ac_objext
29975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29976 (eval $ac_compile) 2>conftest.er1
a848cd7e 29977 ac_status=$?
ac1cb8d3
VS
29978 grep -v '^ *+' conftest.er1 >conftest.err
29979 rm -f conftest.er1
29980 cat conftest.err >&5
a848cd7e
SC
29981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29982 (exit $ac_status); } &&
5294a27e 29983 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29985 (eval $ac_try) 2>&5
29986 ac_status=$?
29987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29988 (exit $ac_status); }; } &&
29989 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29991 (eval $ac_try) 2>&5
29992 ac_status=$?
29993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29994 (exit $ac_status); }; }; then
29995
29996 wx_cv_type_sa_handler=int
29997
29998else
29999 echo "$as_me: failed program was:" >&5
30000sed 's/^/| /' conftest.$ac_ext >&5
30001
30002
30003 wx_cv_type_sa_handler=void
30004
30005fi
ac1cb8d3 30006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30007
30008fi
30009echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
30010echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
30011
30012 ac_ext=c
30013ac_cpp='$CPP $CPPFLAGS'
30014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30016ac_compiler_gnu=$ac_cv_c_compiler_gnu
30017
30018
30019 cat >>confdefs.h <<_ACEOF
30020#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
30021_ACEOF
30022
30023 fi
30024fi
30025
30026
30027
30028for ac_func in mkstemp mktemp
30029do
30030as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30031echo "$as_me:$LINENO: checking for $ac_func" >&5
30032echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30033if eval "test \"\${$as_ac_var+set}\" = set"; then
30034 echo $ECHO_N "(cached) $ECHO_C" >&6
30035else
30036 cat >conftest.$ac_ext <<_ACEOF
30037/* confdefs.h. */
30038_ACEOF
30039cat confdefs.h >>conftest.$ac_ext
30040cat >>conftest.$ac_ext <<_ACEOF
30041/* end confdefs.h. */
ac1cb8d3
VS
30042/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30043 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30044#define $ac_func innocuous_$ac_func
30045
a848cd7e
SC
30046/* System header to define __stub macros and hopefully few prototypes,
30047 which can conflict with char $ac_func (); below.
30048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30049 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30050
a848cd7e
SC
30051#ifdef __STDC__
30052# include <limits.h>
30053#else
30054# include <assert.h>
30055#endif
ac1cb8d3
VS
30056
30057#undef $ac_func
30058
a848cd7e
SC
30059/* Override any gcc2 internal prototype to avoid an error. */
30060#ifdef __cplusplus
30061extern "C"
30062{
30063#endif
30064/* We use char because int might match the return type of a gcc2
30065 builtin and then its argument prototype would still apply. */
30066char $ac_func ();
30067/* The GNU C library defines this for functions which it implements
30068 to always fail with ENOSYS. Some functions are actually named
30069 something starting with __ and the normal name is an alias. */
30070#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30071choke me
30072#else
30073char (*f) () = $ac_func;
30074#endif
30075#ifdef __cplusplus
30076}
30077#endif
30078
30079int
30080main ()
30081{
30082return f != $ac_func;
30083 ;
30084 return 0;
30085}
30086_ACEOF
30087rm -f conftest.$ac_objext conftest$ac_exeext
30088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30089 (eval $ac_link) 2>conftest.er1
a848cd7e 30090 ac_status=$?
ac1cb8d3
VS
30091 grep -v '^ *+' conftest.er1 >conftest.err
30092 rm -f conftest.er1
30093 cat conftest.err >&5
a848cd7e
SC
30094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30095 (exit $ac_status); } &&
5294a27e 30096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30098 (eval $ac_try) 2>&5
30099 ac_status=$?
30100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30101 (exit $ac_status); }; } &&
30102 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30104 (eval $ac_try) 2>&5
30105 ac_status=$?
30106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30107 (exit $ac_status); }; }; then
30108 eval "$as_ac_var=yes"
30109else
30110 echo "$as_me: failed program was:" >&5
30111sed 's/^/| /' conftest.$ac_ext >&5
30112
30113eval "$as_ac_var=no"
30114fi
ac1cb8d3
VS
30115rm -f conftest.err conftest.$ac_objext \
30116 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30117fi
30118echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30119echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30120if test `eval echo '${'$as_ac_var'}'` = yes; then
30121 cat >>confdefs.h <<_ACEOF
30122#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30123_ACEOF
30124 break
30125fi
30126done
30127
30128
30129echo "$as_me:$LINENO: checking for statfs" >&5
30130echo $ECHO_N "checking for statfs... $ECHO_C" >&6
30131if test "${wx_cv_func_statfs+set}" = set; then
30132 echo $ECHO_N "(cached) $ECHO_C" >&6
30133else
30134 cat >conftest.$ac_ext <<_ACEOF
30135/* confdefs.h. */
30136_ACEOF
30137cat confdefs.h >>conftest.$ac_ext
30138cat >>conftest.$ac_ext <<_ACEOF
30139/* end confdefs.h. */
30140
30141 #if defined(__BSD__)
30142 #include <sys/param.h>
30143 #include <sys/mount.h>
30144 #else
30145 #include <sys/vfs.h>
30146 #endif
30147
30148int
30149main ()
30150{
30151
30152 long l;
30153 struct statfs fs;
30154 statfs("/", &fs);
30155 l = fs.f_bsize;
30156 l += fs.f_blocks;
30157 l += fs.f_bavail;
30158
30159 ;
30160 return 0;
30161}
30162_ACEOF
30163rm -f conftest.$ac_objext
30164if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30165 (eval $ac_compile) 2>conftest.er1
a848cd7e 30166 ac_status=$?
ac1cb8d3
VS
30167 grep -v '^ *+' conftest.er1 >conftest.err
30168 rm -f conftest.er1
30169 cat conftest.err >&5
a848cd7e
SC
30170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30171 (exit $ac_status); } &&
5294a27e 30172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30174 (eval $ac_try) 2>&5
30175 ac_status=$?
30176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30177 (exit $ac_status); }; } &&
30178 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30180 (eval $ac_try) 2>&5
30181 ac_status=$?
30182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30183 (exit $ac_status); }; }; then
30184
30185 wx_cv_func_statfs=yes
30186
30187else
30188 echo "$as_me: failed program was:" >&5
30189sed 's/^/| /' conftest.$ac_ext >&5
30190
30191
30192 wx_cv_func_statfs=no
30193
30194
30195fi
ac1cb8d3 30196rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30197
30198fi
30199echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
30200echo "${ECHO_T}$wx_cv_func_statfs" >&6
30201
30202if test "$wx_cv_func_statfs" = "yes"; then
30203 wx_cv_type_statvfs_t="struct statfs"
30204 cat >>confdefs.h <<\_ACEOF
30205#define HAVE_STATFS 1
30206_ACEOF
30207
30208else
30209 echo "$as_me:$LINENO: checking for statvfs" >&5
30210echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
30211if test "${wx_cv_func_statvfs+set}" = set; then
30212 echo $ECHO_N "(cached) $ECHO_C" >&6
30213else
30214 cat >conftest.$ac_ext <<_ACEOF
30215/* confdefs.h. */
30216_ACEOF
30217cat confdefs.h >>conftest.$ac_ext
30218cat >>conftest.$ac_ext <<_ACEOF
30219/* end confdefs.h. */
30220
30221 #include <stddef.h>
30222 #include <sys/statvfs.h>
30223
30224int
30225main ()
30226{
30227
30228 statvfs("/", NULL);
30229
30230 ;
30231 return 0;
30232}
30233_ACEOF
30234rm -f conftest.$ac_objext
30235if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30236 (eval $ac_compile) 2>conftest.er1
a848cd7e 30237 ac_status=$?
ac1cb8d3
VS
30238 grep -v '^ *+' conftest.er1 >conftest.err
30239 rm -f conftest.er1
30240 cat conftest.err >&5
a848cd7e
SC
30241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30242 (exit $ac_status); } &&
5294a27e 30243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30245 (eval $ac_try) 2>&5
30246 ac_status=$?
30247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30248 (exit $ac_status); }; } &&
30249 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30251 (eval $ac_try) 2>&5
30252 ac_status=$?
30253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30254 (exit $ac_status); }; }; then
30255 wx_cv_func_statvfs=yes
30256else
30257 echo "$as_me: failed program was:" >&5
30258sed 's/^/| /' conftest.$ac_ext >&5
30259
30260wx_cv_func_statvfs=no
30261
30262fi
ac1cb8d3 30263rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30264
30265fi
30266echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
30267echo "${ECHO_T}$wx_cv_func_statvfs" >&6
30268
30269 if test "$wx_cv_func_statvfs" = "yes"; then
30270
30271
30272 ac_ext=cc
30273ac_cpp='$CXXCPP $CPPFLAGS'
30274ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30275ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30276ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30277
30278
30279 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
30280echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
30281if test "${wx_cv_type_statvfs_t+set}" = set; then
30282 echo $ECHO_N "(cached) $ECHO_C" >&6
30283else
30284 cat >conftest.$ac_ext <<_ACEOF
30285/* confdefs.h. */
30286_ACEOF
30287cat confdefs.h >>conftest.$ac_ext
30288cat >>conftest.$ac_ext <<_ACEOF
30289/* end confdefs.h. */
30290
30291 #include <sys/statvfs.h>
30292
30293int
30294main ()
30295{
30296
30297 long l;
30298 statvfs_t fs;
30299 statvfs("/", &fs);
30300 l = fs.f_bsize;
30301 l += fs.f_blocks;
30302 l += fs.f_bavail;
30303
30304 ;
30305 return 0;
30306}
30307_ACEOF
30308rm -f conftest.$ac_objext
30309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30310 (eval $ac_compile) 2>conftest.er1
a848cd7e 30311 ac_status=$?
ac1cb8d3
VS
30312 grep -v '^ *+' conftest.er1 >conftest.err
30313 rm -f conftest.er1
30314 cat conftest.err >&5
a848cd7e
SC
30315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30316 (exit $ac_status); } &&
5294a27e 30317 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30319 (eval $ac_try) 2>&5
30320 ac_status=$?
30321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30322 (exit $ac_status); }; } &&
30323 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30325 (eval $ac_try) 2>&5
30326 ac_status=$?
30327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30328 (exit $ac_status); }; }; then
30329 wx_cv_type_statvfs_t=statvfs_t
30330else
30331 echo "$as_me: failed program was:" >&5
30332sed 's/^/| /' conftest.$ac_ext >&5
30333
30334
30335 cat >conftest.$ac_ext <<_ACEOF
30336/* confdefs.h. */
30337_ACEOF
30338cat confdefs.h >>conftest.$ac_ext
30339cat >>conftest.$ac_ext <<_ACEOF
30340/* end confdefs.h. */
30341
30342 #include <sys/statvfs.h>
30343
30344int
30345main ()
30346{
30347
30348 long l;
30349 struct statvfs fs;
30350 statvfs("/", &fs);
30351 l = fs.f_bsize;
30352 l += fs.f_blocks;
30353 l += fs.f_bavail;
30354
30355 ;
30356 return 0;
30357}
30358_ACEOF
30359rm -f conftest.$ac_objext
30360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30361 (eval $ac_compile) 2>conftest.er1
a848cd7e 30362 ac_status=$?
ac1cb8d3
VS
30363 grep -v '^ *+' conftest.er1 >conftest.err
30364 rm -f conftest.er1
30365 cat conftest.err >&5
a848cd7e
SC
30366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30367 (exit $ac_status); } &&
5294a27e 30368 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30370 (eval $ac_try) 2>&5
30371 ac_status=$?
30372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30373 (exit $ac_status); }; } &&
30374 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30376 (eval $ac_try) 2>&5
30377 ac_status=$?
30378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30379 (exit $ac_status); }; }; then
30380 wx_cv_type_statvfs_t="struct statvfs"
30381else
30382 echo "$as_me: failed program was:" >&5
30383sed 's/^/| /' conftest.$ac_ext >&5
30384
30385wx_cv_type_statvfs_t="unknown"
30386
30387fi
ac1cb8d3 30388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30389
30390
30391fi
ac1cb8d3 30392rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30393
30394fi
30395echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
30396echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
30397
30398 ac_ext=c
30399ac_cpp='$CPP $CPPFLAGS'
30400ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30401ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30402ac_compiler_gnu=$ac_cv_c_compiler_gnu
30403
30404
30405 if test "$wx_cv_type_statvfs_t" != "unknown"; then
30406 cat >>confdefs.h <<\_ACEOF
30407#define HAVE_STATVFS 1
30408_ACEOF
30409
30410 fi
30411 else
30412 wx_cv_type_statvfs_t="unknown"
30413 fi
30414fi
30415
30416if test "$wx_cv_type_statvfs_t" != "unknown"; then
30417 cat >>confdefs.h <<_ACEOF
30418#define WX_STATFS_T $wx_cv_type_statvfs_t
30419_ACEOF
30420
30421else
30422 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
30423echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
30424fi
30425
30426if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
30427
30428
30429for ac_func in fcntl flock
30430do
30431as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30432echo "$as_me:$LINENO: checking for $ac_func" >&5
30433echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30434if eval "test \"\${$as_ac_var+set}\" = set"; then
30435 echo $ECHO_N "(cached) $ECHO_C" >&6
30436else
30437 cat >conftest.$ac_ext <<_ACEOF
30438/* confdefs.h. */
30439_ACEOF
30440cat confdefs.h >>conftest.$ac_ext
30441cat >>conftest.$ac_ext <<_ACEOF
30442/* end confdefs.h. */
ac1cb8d3
VS
30443/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30444 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30445#define $ac_func innocuous_$ac_func
30446
a848cd7e
SC
30447/* System header to define __stub macros and hopefully few prototypes,
30448 which can conflict with char $ac_func (); below.
30449 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30450 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30451
a848cd7e
SC
30452#ifdef __STDC__
30453# include <limits.h>
30454#else
30455# include <assert.h>
30456#endif
ac1cb8d3
VS
30457
30458#undef $ac_func
30459
a848cd7e
SC
30460/* Override any gcc2 internal prototype to avoid an error. */
30461#ifdef __cplusplus
30462extern "C"
30463{
30464#endif
30465/* We use char because int might match the return type of a gcc2
30466 builtin and then its argument prototype would still apply. */
30467char $ac_func ();
30468/* The GNU C library defines this for functions which it implements
30469 to always fail with ENOSYS. Some functions are actually named
30470 something starting with __ and the normal name is an alias. */
30471#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30472choke me
30473#else
30474char (*f) () = $ac_func;
30475#endif
30476#ifdef __cplusplus
30477}
30478#endif
30479
30480int
30481main ()
30482{
30483return f != $ac_func;
30484 ;
30485 return 0;
30486}
30487_ACEOF
30488rm -f conftest.$ac_objext conftest$ac_exeext
30489if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30490 (eval $ac_link) 2>conftest.er1
a848cd7e 30491 ac_status=$?
ac1cb8d3
VS
30492 grep -v '^ *+' conftest.er1 >conftest.err
30493 rm -f conftest.er1
30494 cat conftest.err >&5
a848cd7e
SC
30495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30496 (exit $ac_status); } &&
5294a27e 30497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30499 (eval $ac_try) 2>&5
30500 ac_status=$?
30501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30502 (exit $ac_status); }; } &&
30503 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30505 (eval $ac_try) 2>&5
30506 ac_status=$?
30507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30508 (exit $ac_status); }; }; then
30509 eval "$as_ac_var=yes"
30510else
30511 echo "$as_me: failed program was:" >&5
30512sed 's/^/| /' conftest.$ac_ext >&5
30513
30514eval "$as_ac_var=no"
30515fi
ac1cb8d3
VS
30516rm -f conftest.err conftest.$ac_objext \
30517 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30518fi
30519echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30520echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30521if test `eval echo '${'$as_ac_var'}'` = yes; then
30522 cat >>confdefs.h <<_ACEOF
30523#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30524_ACEOF
30525 break
30526fi
30527done
30528
30529
30530 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
30531 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
30532echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
30533 wxUSE_SNGLINST_CHECKER=no
30534 fi
30535fi
30536
30537
30538for ac_func in timegm
30539do
30540as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30541echo "$as_me:$LINENO: checking for $ac_func" >&5
30542echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30543if eval "test \"\${$as_ac_var+set}\" = set"; then
30544 echo $ECHO_N "(cached) $ECHO_C" >&6
30545else
30546 cat >conftest.$ac_ext <<_ACEOF
30547/* confdefs.h. */
30548_ACEOF
30549cat confdefs.h >>conftest.$ac_ext
30550cat >>conftest.$ac_ext <<_ACEOF
30551/* end confdefs.h. */
ac1cb8d3
VS
30552/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30553 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30554#define $ac_func innocuous_$ac_func
30555
a848cd7e
SC
30556/* System header to define __stub macros and hopefully few prototypes,
30557 which can conflict with char $ac_func (); below.
30558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30559 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30560
a848cd7e
SC
30561#ifdef __STDC__
30562# include <limits.h>
30563#else
30564# include <assert.h>
30565#endif
ac1cb8d3
VS
30566
30567#undef $ac_func
30568
a848cd7e
SC
30569/* Override any gcc2 internal prototype to avoid an error. */
30570#ifdef __cplusplus
30571extern "C"
30572{
30573#endif
30574/* We use char because int might match the return type of a gcc2
30575 builtin and then its argument prototype would still apply. */
30576char $ac_func ();
30577/* The GNU C library defines this for functions which it implements
30578 to always fail with ENOSYS. Some functions are actually named
30579 something starting with __ and the normal name is an alias. */
30580#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30581choke me
30582#else
30583char (*f) () = $ac_func;
30584#endif
30585#ifdef __cplusplus
30586}
30587#endif
30588
30589int
30590main ()
30591{
30592return f != $ac_func;
30593 ;
30594 return 0;
30595}
30596_ACEOF
30597rm -f conftest.$ac_objext conftest$ac_exeext
30598if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30599 (eval $ac_link) 2>conftest.er1
a848cd7e 30600 ac_status=$?
ac1cb8d3
VS
30601 grep -v '^ *+' conftest.er1 >conftest.err
30602 rm -f conftest.er1
30603 cat conftest.err >&5
a848cd7e
SC
30604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30605 (exit $ac_status); } &&
5294a27e 30606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30608 (eval $ac_try) 2>&5
30609 ac_status=$?
30610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30611 (exit $ac_status); }; } &&
30612 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30614 (eval $ac_try) 2>&5
30615 ac_status=$?
30616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30617 (exit $ac_status); }; }; then
30618 eval "$as_ac_var=yes"
30619else
30620 echo "$as_me: failed program was:" >&5
30621sed 's/^/| /' conftest.$ac_ext >&5
30622
30623eval "$as_ac_var=no"
30624fi
ac1cb8d3
VS
30625rm -f conftest.err conftest.$ac_objext \
30626 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30627fi
30628echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30629echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30630if test `eval echo '${'$as_ac_var'}'` = yes; then
30631 cat >>confdefs.h <<_ACEOF
30632#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30633_ACEOF
30634
30635fi
30636done
30637
30638
30639
30640
30641for ac_func in putenv setenv
30642do
30643as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30644echo "$as_me:$LINENO: checking for $ac_func" >&5
30645echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30646if eval "test \"\${$as_ac_var+set}\" = set"; then
30647 echo $ECHO_N "(cached) $ECHO_C" >&6
30648else
30649 cat >conftest.$ac_ext <<_ACEOF
30650/* confdefs.h. */
30651_ACEOF
30652cat confdefs.h >>conftest.$ac_ext
30653cat >>conftest.$ac_ext <<_ACEOF
30654/* end confdefs.h. */
ac1cb8d3
VS
30655/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30657#define $ac_func innocuous_$ac_func
30658
a848cd7e
SC
30659/* System header to define __stub macros and hopefully few prototypes,
30660 which can conflict with char $ac_func (); below.
30661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30662 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30663
a848cd7e
SC
30664#ifdef __STDC__
30665# include <limits.h>
30666#else
30667# include <assert.h>
30668#endif
ac1cb8d3
VS
30669
30670#undef $ac_func
30671
a848cd7e
SC
30672/* Override any gcc2 internal prototype to avoid an error. */
30673#ifdef __cplusplus
30674extern "C"
30675{
30676#endif
30677/* We use char because int might match the return type of a gcc2
30678 builtin and then its argument prototype would still apply. */
30679char $ac_func ();
30680/* The GNU C library defines this for functions which it implements
30681 to always fail with ENOSYS. Some functions are actually named
30682 something starting with __ and the normal name is an alias. */
30683#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30684choke me
30685#else
30686char (*f) () = $ac_func;
30687#endif
30688#ifdef __cplusplus
30689}
30690#endif
30691
30692int
30693main ()
30694{
30695return f != $ac_func;
30696 ;
30697 return 0;
30698}
30699_ACEOF
30700rm -f conftest.$ac_objext conftest$ac_exeext
30701if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30702 (eval $ac_link) 2>conftest.er1
a848cd7e 30703 ac_status=$?
ac1cb8d3
VS
30704 grep -v '^ *+' conftest.er1 >conftest.err
30705 rm -f conftest.er1
30706 cat conftest.err >&5
a848cd7e
SC
30707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30708 (exit $ac_status); } &&
5294a27e 30709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30711 (eval $ac_try) 2>&5
30712 ac_status=$?
30713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30714 (exit $ac_status); }; } &&
30715 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30717 (eval $ac_try) 2>&5
30718 ac_status=$?
30719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30720 (exit $ac_status); }; }; then
30721 eval "$as_ac_var=yes"
30722else
30723 echo "$as_me: failed program was:" >&5
30724sed 's/^/| /' conftest.$ac_ext >&5
30725
30726eval "$as_ac_var=no"
30727fi
ac1cb8d3
VS
30728rm -f conftest.err conftest.$ac_objext \
30729 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30730fi
30731echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30732echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30733if test `eval echo '${'$as_ac_var'}'` = yes; then
30734 cat >>confdefs.h <<_ACEOF
30735#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30736_ACEOF
30737 break
30738fi
30739done
30740
30741
30742HAVE_SOME_SLEEP_FUNC=0
30743if test "$USE_BEOS" = 1; then
30744 cat >>confdefs.h <<\_ACEOF
30745#define HAVE_SLEEP 1
30746_ACEOF
30747
30748 HAVE_SOME_SLEEP_FUNC=1
30749fi
30750
30751if test "$USE_DARWIN" = 1; then
30752 cat >>confdefs.h <<\_ACEOF
30753#define HAVE_USLEEP 1
30754_ACEOF
30755
30756 HAVE_SOME_SLEEP_FUNC=1
30757fi
30758
30759if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
30760 POSIX4_LINK=
30761
30762for ac_func in nanosleep
30763do
30764as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30765echo "$as_me:$LINENO: checking for $ac_func" >&5
30766echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30767if eval "test \"\${$as_ac_var+set}\" = set"; then
30768 echo $ECHO_N "(cached) $ECHO_C" >&6
30769else
30770 cat >conftest.$ac_ext <<_ACEOF
30771/* confdefs.h. */
30772_ACEOF
30773cat confdefs.h >>conftest.$ac_ext
30774cat >>conftest.$ac_ext <<_ACEOF
30775/* end confdefs.h. */
ac1cb8d3
VS
30776/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30778#define $ac_func innocuous_$ac_func
30779
a848cd7e
SC
30780/* System header to define __stub macros and hopefully few prototypes,
30781 which can conflict with char $ac_func (); below.
30782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30783 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30784
a848cd7e
SC
30785#ifdef __STDC__
30786# include <limits.h>
30787#else
30788# include <assert.h>
30789#endif
ac1cb8d3
VS
30790
30791#undef $ac_func
30792
a848cd7e
SC
30793/* Override any gcc2 internal prototype to avoid an error. */
30794#ifdef __cplusplus
30795extern "C"
30796{
30797#endif
30798/* We use char because int might match the return type of a gcc2
30799 builtin and then its argument prototype would still apply. */
30800char $ac_func ();
30801/* The GNU C library defines this for functions which it implements
30802 to always fail with ENOSYS. Some functions are actually named
30803 something starting with __ and the normal name is an alias. */
30804#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30805choke me
30806#else
30807char (*f) () = $ac_func;
30808#endif
30809#ifdef __cplusplus
30810}
30811#endif
30812
30813int
30814main ()
30815{
30816return f != $ac_func;
30817 ;
30818 return 0;
30819}
30820_ACEOF
30821rm -f conftest.$ac_objext conftest$ac_exeext
30822if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30823 (eval $ac_link) 2>conftest.er1
a848cd7e 30824 ac_status=$?
ac1cb8d3
VS
30825 grep -v '^ *+' conftest.er1 >conftest.err
30826 rm -f conftest.er1
30827 cat conftest.err >&5
a848cd7e
SC
30828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30829 (exit $ac_status); } &&
5294a27e 30830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30832 (eval $ac_try) 2>&5
30833 ac_status=$?
30834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30835 (exit $ac_status); }; } &&
30836 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30838 (eval $ac_try) 2>&5
30839 ac_status=$?
30840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30841 (exit $ac_status); }; }; then
30842 eval "$as_ac_var=yes"
30843else
30844 echo "$as_me: failed program was:" >&5
30845sed 's/^/| /' conftest.$ac_ext >&5
30846
30847eval "$as_ac_var=no"
30848fi
ac1cb8d3
VS
30849rm -f conftest.err conftest.$ac_objext \
30850 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30851fi
30852echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30853echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30854if test `eval echo '${'$as_ac_var'}'` = yes; then
30855 cat >>confdefs.h <<_ACEOF
30856#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30857_ACEOF
30858 cat >>confdefs.h <<\_ACEOF
30859#define HAVE_NANOSLEEP 1
30860_ACEOF
30861
30862else
30863
30864 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
30865echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
30866if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
30867 echo $ECHO_N "(cached) $ECHO_C" >&6
30868else
30869 ac_check_lib_save_LIBS=$LIBS
30870LIBS="-lposix4 $LIBS"
30871cat >conftest.$ac_ext <<_ACEOF
30872/* confdefs.h. */
30873_ACEOF
30874cat confdefs.h >>conftest.$ac_ext
30875cat >>conftest.$ac_ext <<_ACEOF
30876/* end confdefs.h. */
30877
30878/* Override any gcc2 internal prototype to avoid an error. */
30879#ifdef __cplusplus
30880extern "C"
30881#endif
30882/* We use char because int might match the return type of a gcc2
30883 builtin and then its argument prototype would still apply. */
30884char nanosleep ();
30885int
30886main ()
30887{
30888nanosleep ();
30889 ;
30890 return 0;
30891}
30892_ACEOF
30893rm -f conftest.$ac_objext conftest$ac_exeext
30894if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30895 (eval $ac_link) 2>conftest.er1
a848cd7e 30896 ac_status=$?
ac1cb8d3
VS
30897 grep -v '^ *+' conftest.er1 >conftest.err
30898 rm -f conftest.er1
30899 cat conftest.err >&5
a848cd7e
SC
30900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30901 (exit $ac_status); } &&
5294a27e 30902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30904 (eval $ac_try) 2>&5
30905 ac_status=$?
30906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30907 (exit $ac_status); }; } &&
30908 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30910 (eval $ac_try) 2>&5
30911 ac_status=$?
30912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30913 (exit $ac_status); }; }; then
30914 ac_cv_lib_posix4_nanosleep=yes
30915else
30916 echo "$as_me: failed program was:" >&5
30917sed 's/^/| /' conftest.$ac_ext >&5
30918
30919ac_cv_lib_posix4_nanosleep=no
30920fi
ac1cb8d3
VS
30921rm -f conftest.err conftest.$ac_objext \
30922 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30923LIBS=$ac_check_lib_save_LIBS
30924fi
30925echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
30926echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
30927if test $ac_cv_lib_posix4_nanosleep = yes; then
30928
30929 cat >>confdefs.h <<\_ACEOF
30930#define HAVE_NANOSLEEP 1
30931_ACEOF
30932
30933 POSIX4_LINK=" -lposix4"
30934
30935else
30936
30937
30938for ac_func in usleep
30939do
30940as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30941echo "$as_me:$LINENO: checking for $ac_func" >&5
30942echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30943if eval "test \"\${$as_ac_var+set}\" = set"; then
30944 echo $ECHO_N "(cached) $ECHO_C" >&6
30945else
30946 cat >conftest.$ac_ext <<_ACEOF
30947/* confdefs.h. */
30948_ACEOF
30949cat confdefs.h >>conftest.$ac_ext
30950cat >>conftest.$ac_ext <<_ACEOF
30951/* end confdefs.h. */
ac1cb8d3
VS
30952/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30954#define $ac_func innocuous_$ac_func
30955
a848cd7e
SC
30956/* System header to define __stub macros and hopefully few prototypes,
30957 which can conflict with char $ac_func (); below.
30958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30959 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30960
a848cd7e
SC
30961#ifdef __STDC__
30962# include <limits.h>
30963#else
30964# include <assert.h>
30965#endif
ac1cb8d3
VS
30966
30967#undef $ac_func
30968
a848cd7e
SC
30969/* Override any gcc2 internal prototype to avoid an error. */
30970#ifdef __cplusplus
30971extern "C"
30972{
30973#endif
30974/* We use char because int might match the return type of a gcc2
30975 builtin and then its argument prototype would still apply. */
30976char $ac_func ();
30977/* The GNU C library defines this for functions which it implements
30978 to always fail with ENOSYS. Some functions are actually named
30979 something starting with __ and the normal name is an alias. */
30980#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30981choke me
30982#else
30983char (*f) () = $ac_func;
30984#endif
30985#ifdef __cplusplus
30986}
30987#endif
30988
30989int
30990main ()
30991{
30992return f != $ac_func;
30993 ;
30994 return 0;
30995}
30996_ACEOF
30997rm -f conftest.$ac_objext conftest$ac_exeext
30998if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30999 (eval $ac_link) 2>conftest.er1
a848cd7e 31000 ac_status=$?
ac1cb8d3
VS
31001 grep -v '^ *+' conftest.er1 >conftest.err
31002 rm -f conftest.er1
31003 cat conftest.err >&5
a848cd7e
SC
31004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31005 (exit $ac_status); } &&
5294a27e 31006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31008 (eval $ac_try) 2>&5
31009 ac_status=$?
31010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31011 (exit $ac_status); }; } &&
31012 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31014 (eval $ac_try) 2>&5
31015 ac_status=$?
31016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31017 (exit $ac_status); }; }; then
31018 eval "$as_ac_var=yes"
31019else
31020 echo "$as_me: failed program was:" >&5
31021sed 's/^/| /' conftest.$ac_ext >&5
31022
31023eval "$as_ac_var=no"
31024fi
ac1cb8d3
VS
31025rm -f conftest.err conftest.$ac_objext \
31026 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31027fi
31028echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31029echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31030if test `eval echo '${'$as_ac_var'}'` = yes; then
31031 cat >>confdefs.h <<_ACEOF
31032#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31033_ACEOF
31034 cat >>confdefs.h <<\_ACEOF
31035#define HAVE_USLEEP 1
31036_ACEOF
31037
31038else
31039 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
31040echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
31041
31042fi
31043done
31044
31045
31046
31047fi
31048
31049
31050
31051fi
31052done
31053
31054fi
31055
31056
31057
31058for ac_func in uname gethostname
31059do
31060as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31061echo "$as_me:$LINENO: checking for $ac_func" >&5
31062echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31063if eval "test \"\${$as_ac_var+set}\" = set"; then
31064 echo $ECHO_N "(cached) $ECHO_C" >&6
31065else
31066 cat >conftest.$ac_ext <<_ACEOF
31067/* confdefs.h. */
31068_ACEOF
31069cat confdefs.h >>conftest.$ac_ext
31070cat >>conftest.$ac_ext <<_ACEOF
31071/* end confdefs.h. */
ac1cb8d3
VS
31072/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31073 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31074#define $ac_func innocuous_$ac_func
31075
a848cd7e
SC
31076/* System header to define __stub macros and hopefully few prototypes,
31077 which can conflict with char $ac_func (); below.
31078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31079 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31080
a848cd7e
SC
31081#ifdef __STDC__
31082# include <limits.h>
31083#else
31084# include <assert.h>
31085#endif
ac1cb8d3
VS
31086
31087#undef $ac_func
31088
a848cd7e
SC
31089/* Override any gcc2 internal prototype to avoid an error. */
31090#ifdef __cplusplus
31091extern "C"
31092{
31093#endif
31094/* We use char because int might match the return type of a gcc2
31095 builtin and then its argument prototype would still apply. */
31096char $ac_func ();
31097/* The GNU C library defines this for functions which it implements
31098 to always fail with ENOSYS. Some functions are actually named
31099 something starting with __ and the normal name is an alias. */
31100#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31101choke me
31102#else
31103char (*f) () = $ac_func;
31104#endif
31105#ifdef __cplusplus
31106}
31107#endif
31108
31109int
31110main ()
31111{
31112return f != $ac_func;
31113 ;
31114 return 0;
31115}
31116_ACEOF
31117rm -f conftest.$ac_objext conftest$ac_exeext
31118if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31119 (eval $ac_link) 2>conftest.er1
a848cd7e 31120 ac_status=$?
ac1cb8d3
VS
31121 grep -v '^ *+' conftest.er1 >conftest.err
31122 rm -f conftest.er1
31123 cat conftest.err >&5
a848cd7e
SC
31124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31125 (exit $ac_status); } &&
5294a27e 31126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31128 (eval $ac_try) 2>&5
31129 ac_status=$?
31130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31131 (exit $ac_status); }; } &&
31132 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31134 (eval $ac_try) 2>&5
31135 ac_status=$?
31136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31137 (exit $ac_status); }; }; then
31138 eval "$as_ac_var=yes"
31139else
31140 echo "$as_me: failed program was:" >&5
31141sed 's/^/| /' conftest.$ac_ext >&5
31142
31143eval "$as_ac_var=no"
31144fi
ac1cb8d3
VS
31145rm -f conftest.err conftest.$ac_objext \
31146 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31147fi
31148echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31149echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31150if test `eval echo '${'$as_ac_var'}'` = yes; then
31151 cat >>confdefs.h <<_ACEOF
31152#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31153_ACEOF
31154 break
31155fi
31156done
31157
31158
31159
31160
31161ac_ext=cc
31162ac_cpp='$CXXCPP $CPPFLAGS'
31163ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31164ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31165ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31166
31167
31168
31169for ac_func in strtok_r
31170do
31171as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31172echo "$as_me:$LINENO: checking for $ac_func" >&5
31173echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31174if eval "test \"\${$as_ac_var+set}\" = set"; then
31175 echo $ECHO_N "(cached) $ECHO_C" >&6
31176else
31177 cat >conftest.$ac_ext <<_ACEOF
31178/* confdefs.h. */
31179_ACEOF
31180cat confdefs.h >>conftest.$ac_ext
31181cat >>conftest.$ac_ext <<_ACEOF
31182/* end confdefs.h. */
ac1cb8d3
VS
31183/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31185#define $ac_func innocuous_$ac_func
31186
a848cd7e
SC
31187/* System header to define __stub macros and hopefully few prototypes,
31188 which can conflict with char $ac_func (); below.
31189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31190 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31191
a848cd7e
SC
31192#ifdef __STDC__
31193# include <limits.h>
31194#else
31195# include <assert.h>
31196#endif
ac1cb8d3
VS
31197
31198#undef $ac_func
31199
a848cd7e
SC
31200/* Override any gcc2 internal prototype to avoid an error. */
31201#ifdef __cplusplus
31202extern "C"
31203{
31204#endif
31205/* We use char because int might match the return type of a gcc2
31206 builtin and then its argument prototype would still apply. */
31207char $ac_func ();
31208/* The GNU C library defines this for functions which it implements
31209 to always fail with ENOSYS. Some functions are actually named
31210 something starting with __ and the normal name is an alias. */
31211#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31212choke me
31213#else
31214char (*f) () = $ac_func;
31215#endif
31216#ifdef __cplusplus
31217}
31218#endif
31219
31220int
31221main ()
31222{
31223return f != $ac_func;
31224 ;
31225 return 0;
31226}
31227_ACEOF
31228rm -f conftest.$ac_objext conftest$ac_exeext
31229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31230 (eval $ac_link) 2>conftest.er1
a848cd7e 31231 ac_status=$?
ac1cb8d3
VS
31232 grep -v '^ *+' conftest.er1 >conftest.err
31233 rm -f conftest.er1
31234 cat conftest.err >&5
a848cd7e
SC
31235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31236 (exit $ac_status); } &&
5294a27e 31237 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31239 (eval $ac_try) 2>&5
31240 ac_status=$?
31241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31242 (exit $ac_status); }; } &&
31243 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31245 (eval $ac_try) 2>&5
31246 ac_status=$?
31247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31248 (exit $ac_status); }; }; then
31249 eval "$as_ac_var=yes"
31250else
31251 echo "$as_me: failed program was:" >&5
31252sed 's/^/| /' conftest.$ac_ext >&5
31253
31254eval "$as_ac_var=no"
31255fi
ac1cb8d3
VS
31256rm -f conftest.err conftest.$ac_objext \
31257 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31258fi
31259echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31260echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31261if test `eval echo '${'$as_ac_var'}'` = yes; then
31262 cat >>confdefs.h <<_ACEOF
31263#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31264_ACEOF
31265
31266fi
31267done
31268
31269
31270ac_ext=c
31271ac_cpp='$CPP $CPPFLAGS'
31272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31274ac_compiler_gnu=$ac_cv_c_compiler_gnu
31275
31276
31277INET_LINK=
31278
31279for ac_func in inet_addr
31280do
31281as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31282echo "$as_me:$LINENO: checking for $ac_func" >&5
31283echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31284if eval "test \"\${$as_ac_var+set}\" = set"; then
31285 echo $ECHO_N "(cached) $ECHO_C" >&6
31286else
31287 cat >conftest.$ac_ext <<_ACEOF
31288/* confdefs.h. */
31289_ACEOF
31290cat confdefs.h >>conftest.$ac_ext
31291cat >>conftest.$ac_ext <<_ACEOF
31292/* end confdefs.h. */
ac1cb8d3
VS
31293/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31294 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31295#define $ac_func innocuous_$ac_func
31296
a848cd7e
SC
31297/* System header to define __stub macros and hopefully few prototypes,
31298 which can conflict with char $ac_func (); below.
31299 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31300 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31301
a848cd7e
SC
31302#ifdef __STDC__
31303# include <limits.h>
31304#else
31305# include <assert.h>
31306#endif
ac1cb8d3
VS
31307
31308#undef $ac_func
31309
a848cd7e
SC
31310/* Override any gcc2 internal prototype to avoid an error. */
31311#ifdef __cplusplus
31312extern "C"
31313{
31314#endif
31315/* We use char because int might match the return type of a gcc2
31316 builtin and then its argument prototype would still apply. */
31317char $ac_func ();
31318/* The GNU C library defines this for functions which it implements
31319 to always fail with ENOSYS. Some functions are actually named
31320 something starting with __ and the normal name is an alias. */
31321#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31322choke me
31323#else
31324char (*f) () = $ac_func;
31325#endif
31326#ifdef __cplusplus
31327}
31328#endif
31329
31330int
31331main ()
31332{
31333return f != $ac_func;
31334 ;
31335 return 0;
31336}
31337_ACEOF
31338rm -f conftest.$ac_objext conftest$ac_exeext
31339if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31340 (eval $ac_link) 2>conftest.er1
a848cd7e 31341 ac_status=$?
ac1cb8d3
VS
31342 grep -v '^ *+' conftest.er1 >conftest.err
31343 rm -f conftest.er1
31344 cat conftest.err >&5
a848cd7e
SC
31345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31346 (exit $ac_status); } &&
5294a27e 31347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31349 (eval $ac_try) 2>&5
31350 ac_status=$?
31351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31352 (exit $ac_status); }; } &&
31353 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31355 (eval $ac_try) 2>&5
31356 ac_status=$?
31357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31358 (exit $ac_status); }; }; then
31359 eval "$as_ac_var=yes"
31360else
31361 echo "$as_me: failed program was:" >&5
31362sed 's/^/| /' conftest.$ac_ext >&5
31363
31364eval "$as_ac_var=no"
31365fi
ac1cb8d3
VS
31366rm -f conftest.err conftest.$ac_objext \
31367 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31368fi
31369echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31370echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31371if test `eval echo '${'$as_ac_var'}'` = yes; then
31372 cat >>confdefs.h <<_ACEOF
31373#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31374_ACEOF
31375 cat >>confdefs.h <<\_ACEOF
31376#define HAVE_INET_ADDR 1
31377_ACEOF
31378
31379else
31380
31381 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
31382echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
31383if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
31384 echo $ECHO_N "(cached) $ECHO_C" >&6
31385else
31386 ac_check_lib_save_LIBS=$LIBS
31387LIBS="-lnsl $LIBS"
31388cat >conftest.$ac_ext <<_ACEOF
31389/* confdefs.h. */
31390_ACEOF
31391cat confdefs.h >>conftest.$ac_ext
31392cat >>conftest.$ac_ext <<_ACEOF
31393/* end confdefs.h. */
31394
31395/* Override any gcc2 internal prototype to avoid an error. */
31396#ifdef __cplusplus
31397extern "C"
31398#endif
31399/* We use char because int might match the return type of a gcc2
31400 builtin and then its argument prototype would still apply. */
31401char inet_addr ();
31402int
31403main ()
31404{
31405inet_addr ();
31406 ;
31407 return 0;
31408}
31409_ACEOF
31410rm -f conftest.$ac_objext conftest$ac_exeext
31411if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31412 (eval $ac_link) 2>conftest.er1
a848cd7e 31413 ac_status=$?
ac1cb8d3
VS
31414 grep -v '^ *+' conftest.er1 >conftest.err
31415 rm -f conftest.er1
31416 cat conftest.err >&5
a848cd7e
SC
31417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31418 (exit $ac_status); } &&
5294a27e 31419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31421 (eval $ac_try) 2>&5
31422 ac_status=$?
31423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31424 (exit $ac_status); }; } &&
31425 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31427 (eval $ac_try) 2>&5
31428 ac_status=$?
31429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31430 (exit $ac_status); }; }; then
31431 ac_cv_lib_nsl_inet_addr=yes
31432else
31433 echo "$as_me: failed program was:" >&5
31434sed 's/^/| /' conftest.$ac_ext >&5
31435
31436ac_cv_lib_nsl_inet_addr=no
31437fi
ac1cb8d3
VS
31438rm -f conftest.err conftest.$ac_objext \
31439 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31440LIBS=$ac_check_lib_save_LIBS
31441fi
31442echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
31443echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
31444if test $ac_cv_lib_nsl_inet_addr = yes; then
31445 INET_LINK="nsl"
31446else
31447
31448 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
31449echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
31450if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
31451 echo $ECHO_N "(cached) $ECHO_C" >&6
31452else
31453 ac_check_lib_save_LIBS=$LIBS
31454LIBS="-lresolv $LIBS"
31455cat >conftest.$ac_ext <<_ACEOF
31456/* confdefs.h. */
31457_ACEOF
31458cat confdefs.h >>conftest.$ac_ext
31459cat >>conftest.$ac_ext <<_ACEOF
31460/* end confdefs.h. */
31461
31462/* Override any gcc2 internal prototype to avoid an error. */
31463#ifdef __cplusplus
31464extern "C"
31465#endif
31466/* We use char because int might match the return type of a gcc2
31467 builtin and then its argument prototype would still apply. */
31468char inet_addr ();
31469int
31470main ()
31471{
31472inet_addr ();
31473 ;
31474 return 0;
31475}
31476_ACEOF
31477rm -f conftest.$ac_objext conftest$ac_exeext
31478if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31479 (eval $ac_link) 2>conftest.er1
a848cd7e 31480 ac_status=$?
ac1cb8d3
VS
31481 grep -v '^ *+' conftest.er1 >conftest.err
31482 rm -f conftest.er1
31483 cat conftest.err >&5
a848cd7e
SC
31484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31485 (exit $ac_status); } &&
5294a27e 31486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31488 (eval $ac_try) 2>&5
31489 ac_status=$?
31490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31491 (exit $ac_status); }; } &&
31492 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31494 (eval $ac_try) 2>&5
31495 ac_status=$?
31496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31497 (exit $ac_status); }; }; then
31498 ac_cv_lib_resolv_inet_addr=yes
31499else
31500 echo "$as_me: failed program was:" >&5
31501sed 's/^/| /' conftest.$ac_ext >&5
31502
31503ac_cv_lib_resolv_inet_addr=no
31504fi
ac1cb8d3
VS
31505rm -f conftest.err conftest.$ac_objext \
31506 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31507LIBS=$ac_check_lib_save_LIBS
31508fi
31509echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
31510echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
31511if test $ac_cv_lib_resolv_inet_addr = yes; then
31512 INET_LINK="resolv"
31513else
31514
31515 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
31516echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
31517if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
31518 echo $ECHO_N "(cached) $ECHO_C" >&6
31519else
31520 ac_check_lib_save_LIBS=$LIBS
31521LIBS="-lsocket $LIBS"
31522cat >conftest.$ac_ext <<_ACEOF
31523/* confdefs.h. */
31524_ACEOF
31525cat confdefs.h >>conftest.$ac_ext
31526cat >>conftest.$ac_ext <<_ACEOF
31527/* end confdefs.h. */
31528
31529/* Override any gcc2 internal prototype to avoid an error. */
31530#ifdef __cplusplus
31531extern "C"
31532#endif
31533/* We use char because int might match the return type of a gcc2
31534 builtin and then its argument prototype would still apply. */
31535char inet_addr ();
31536int
31537main ()
31538{
31539inet_addr ();
31540 ;
31541 return 0;
31542}
31543_ACEOF
31544rm -f conftest.$ac_objext conftest$ac_exeext
31545if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31546 (eval $ac_link) 2>conftest.er1
a848cd7e 31547 ac_status=$?
ac1cb8d3
VS
31548 grep -v '^ *+' conftest.er1 >conftest.err
31549 rm -f conftest.er1
31550 cat conftest.err >&5
a848cd7e
SC
31551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31552 (exit $ac_status); } &&
5294a27e 31553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31555 (eval $ac_try) 2>&5
31556 ac_status=$?
31557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31558 (exit $ac_status); }; } &&
31559 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31561 (eval $ac_try) 2>&5
31562 ac_status=$?
31563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31564 (exit $ac_status); }; }; then
31565 ac_cv_lib_socket_inet_addr=yes
31566else
31567 echo "$as_me: failed program was:" >&5
31568sed 's/^/| /' conftest.$ac_ext >&5
31569
31570ac_cv_lib_socket_inet_addr=no
31571fi
ac1cb8d3
VS
31572rm -f conftest.err conftest.$ac_objext \
31573 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31574LIBS=$ac_check_lib_save_LIBS
31575fi
31576echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
31577echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
31578if test $ac_cv_lib_socket_inet_addr = yes; then
31579 INET_LINK="socket"
31580
31581fi
31582
31583
31584
31585fi
31586
31587
31588
31589fi
31590
31591
31592
31593fi
31594done
31595
31596
31597
31598for ac_func in inet_aton
31599do
31600as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31601echo "$as_me:$LINENO: checking for $ac_func" >&5
31602echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31603if eval "test \"\${$as_ac_var+set}\" = set"; then
31604 echo $ECHO_N "(cached) $ECHO_C" >&6
31605else
31606 cat >conftest.$ac_ext <<_ACEOF
31607/* confdefs.h. */
31608_ACEOF
31609cat confdefs.h >>conftest.$ac_ext
31610cat >>conftest.$ac_ext <<_ACEOF
31611/* end confdefs.h. */
ac1cb8d3
VS
31612/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31614#define $ac_func innocuous_$ac_func
31615
a848cd7e
SC
31616/* System header to define __stub macros and hopefully few prototypes,
31617 which can conflict with char $ac_func (); below.
31618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31619 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31620
a848cd7e
SC
31621#ifdef __STDC__
31622# include <limits.h>
31623#else
31624# include <assert.h>
31625#endif
ac1cb8d3
VS
31626
31627#undef $ac_func
31628
a848cd7e
SC
31629/* Override any gcc2 internal prototype to avoid an error. */
31630#ifdef __cplusplus
31631extern "C"
31632{
31633#endif
31634/* We use char because int might match the return type of a gcc2
31635 builtin and then its argument prototype would still apply. */
31636char $ac_func ();
31637/* The GNU C library defines this for functions which it implements
31638 to always fail with ENOSYS. Some functions are actually named
31639 something starting with __ and the normal name is an alias. */
31640#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31641choke me
31642#else
31643char (*f) () = $ac_func;
31644#endif
31645#ifdef __cplusplus
31646}
31647#endif
31648
31649int
31650main ()
31651{
31652return f != $ac_func;
31653 ;
31654 return 0;
31655}
31656_ACEOF
31657rm -f conftest.$ac_objext conftest$ac_exeext
31658if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31659 (eval $ac_link) 2>conftest.er1
a848cd7e 31660 ac_status=$?
ac1cb8d3
VS
31661 grep -v '^ *+' conftest.er1 >conftest.err
31662 rm -f conftest.er1
31663 cat conftest.err >&5
a848cd7e
SC
31664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31665 (exit $ac_status); } &&
5294a27e 31666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31668 (eval $ac_try) 2>&5
31669 ac_status=$?
31670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31671 (exit $ac_status); }; } &&
31672 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31674 (eval $ac_try) 2>&5
31675 ac_status=$?
31676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31677 (exit $ac_status); }; }; then
31678 eval "$as_ac_var=yes"
31679else
31680 echo "$as_me: failed program was:" >&5
31681sed 's/^/| /' conftest.$ac_ext >&5
31682
31683eval "$as_ac_var=no"
31684fi
ac1cb8d3
VS
31685rm -f conftest.err conftest.$ac_objext \
31686 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31687fi
31688echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31689echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31690if test `eval echo '${'$as_ac_var'}'` = yes; then
31691 cat >>confdefs.h <<_ACEOF
31692#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31693_ACEOF
31694 cat >>confdefs.h <<\_ACEOF
31695#define HAVE_INET_ATON 1
31696_ACEOF
31697
31698else
31699
31700 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
31701echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
31702echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
31703if eval "test \"\${$as_ac_Lib+set}\" = set"; then
31704 echo $ECHO_N "(cached) $ECHO_C" >&6
31705else
31706 ac_check_lib_save_LIBS=$LIBS
31707LIBS="-l$INET_LINK $LIBS"
31708cat >conftest.$ac_ext <<_ACEOF
31709/* confdefs.h. */
31710_ACEOF
31711cat confdefs.h >>conftest.$ac_ext
31712cat >>conftest.$ac_ext <<_ACEOF
31713/* end confdefs.h. */
31714
31715/* Override any gcc2 internal prototype to avoid an error. */
31716#ifdef __cplusplus
31717extern "C"
31718#endif
31719/* We use char because int might match the return type of a gcc2
31720 builtin and then its argument prototype would still apply. */
31721char inet_aton ();
31722int
31723main ()
31724{
31725inet_aton ();
31726 ;
31727 return 0;
31728}
31729_ACEOF
31730rm -f conftest.$ac_objext conftest$ac_exeext
31731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31732 (eval $ac_link) 2>conftest.er1
a848cd7e 31733 ac_status=$?
ac1cb8d3
VS
31734 grep -v '^ *+' conftest.er1 >conftest.err
31735 rm -f conftest.er1
31736 cat conftest.err >&5
a848cd7e
SC
31737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31738 (exit $ac_status); } &&
5294a27e 31739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31741 (eval $ac_try) 2>&5
31742 ac_status=$?
31743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31744 (exit $ac_status); }; } &&
31745 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31747 (eval $ac_try) 2>&5
31748 ac_status=$?
31749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31750 (exit $ac_status); }; }; then
31751 eval "$as_ac_Lib=yes"
31752else
31753 echo "$as_me: failed program was:" >&5
31754sed 's/^/| /' conftest.$ac_ext >&5
31755
31756eval "$as_ac_Lib=no"
31757fi
ac1cb8d3
VS
31758rm -f conftest.err conftest.$ac_objext \
31759 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31760LIBS=$ac_check_lib_save_LIBS
31761fi
31762echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
31763echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
31764if test `eval echo '${'$as_ac_Lib'}'` = yes; then
31765 cat >>confdefs.h <<\_ACEOF
31766#define HAVE_INET_ATON 1
31767_ACEOF
31768
31769fi
31770
31771
31772fi
31773done
31774
31775
31776if test "x$INET_LINK" != "x"; then
31777 cat >>confdefs.h <<\_ACEOF
31778#define HAVE_INET_ADDR 1
31779_ACEOF
31780
31781 INET_LINK=" -l$INET_LINK"
31782fi
31783
31784fi
31785
31786
31787
31788EXTRALIBS_ESD=
31789echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
31790echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
31791if test "${ac_cv_lib_esd_esd_close+set}" = set; then
31792 echo $ECHO_N "(cached) $ECHO_C" >&6
31793else
31794 ac_check_lib_save_LIBS=$LIBS
31795LIBS="-lesd $LIBS"
31796cat >conftest.$ac_ext <<_ACEOF
31797/* confdefs.h. */
31798_ACEOF
31799cat confdefs.h >>conftest.$ac_ext
31800cat >>conftest.$ac_ext <<_ACEOF
31801/* end confdefs.h. */
31802
31803/* Override any gcc2 internal prototype to avoid an error. */
31804#ifdef __cplusplus
31805extern "C"
31806#endif
31807/* We use char because int might match the return type of a gcc2
31808 builtin and then its argument prototype would still apply. */
31809char esd_close ();
31810int
31811main ()
31812{
31813esd_close ();
31814 ;
31815 return 0;
31816}
31817_ACEOF
31818rm -f conftest.$ac_objext conftest$ac_exeext
31819if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31820 (eval $ac_link) 2>conftest.er1
a848cd7e 31821 ac_status=$?
ac1cb8d3
VS
31822 grep -v '^ *+' conftest.er1 >conftest.err
31823 rm -f conftest.er1
31824 cat conftest.err >&5
a848cd7e
SC
31825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31826 (exit $ac_status); } &&
5294a27e 31827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31829 (eval $ac_try) 2>&5
31830 ac_status=$?
31831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31832 (exit $ac_status); }; } &&
31833 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31835 (eval $ac_try) 2>&5
31836 ac_status=$?
31837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31838 (exit $ac_status); }; }; then
31839 ac_cv_lib_esd_esd_close=yes
31840else
31841 echo "$as_me: failed program was:" >&5
31842sed 's/^/| /' conftest.$ac_ext >&5
31843
31844ac_cv_lib_esd_esd_close=no
31845fi
ac1cb8d3
VS
31846rm -f conftest.err conftest.$ac_objext \
31847 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31848LIBS=$ac_check_lib_save_LIBS
31849fi
31850echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
31851echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
31852if test $ac_cv_lib_esd_esd_close = yes; then
31853
31854
31855for ac_header in esd.h
31856do
31857as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31858if eval "test \"\${$as_ac_Header+set}\" = set"; then
31859 echo "$as_me:$LINENO: checking for $ac_header" >&5
31860echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31861if eval "test \"\${$as_ac_Header+set}\" = set"; then
31862 echo $ECHO_N "(cached) $ECHO_C" >&6
31863fi
31864echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31865echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31866else
31867 # Is the header compilable?
31868echo "$as_me:$LINENO: checking $ac_header usability" >&5
31869echo $ECHO_N "checking $ac_header usability... $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$ac_includes_default
31877#include <$ac_header>
31878_ACEOF
31879rm -f conftest.$ac_objext
31880if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31881 (eval $ac_compile) 2>conftest.er1
a848cd7e 31882 ac_status=$?
ac1cb8d3
VS
31883 grep -v '^ *+' conftest.er1 >conftest.err
31884 rm -f conftest.er1
31885 cat conftest.err >&5
a848cd7e
SC
31886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31887 (exit $ac_status); } &&
5294a27e 31888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31890 (eval $ac_try) 2>&5
31891 ac_status=$?
31892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31893 (exit $ac_status); }; } &&
31894 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31896 (eval $ac_try) 2>&5
31897 ac_status=$?
31898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31899 (exit $ac_status); }; }; then
31900 ac_header_compiler=yes
31901else
31902 echo "$as_me: failed program was:" >&5
31903sed 's/^/| /' conftest.$ac_ext >&5
31904
31905ac_header_compiler=no
31906fi
ac1cb8d3 31907rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31908echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31909echo "${ECHO_T}$ac_header_compiler" >&6
31910
31911# Is the header present?
31912echo "$as_me:$LINENO: checking $ac_header presence" >&5
31913echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31914cat >conftest.$ac_ext <<_ACEOF
31915/* confdefs.h. */
31916_ACEOF
31917cat confdefs.h >>conftest.$ac_ext
31918cat >>conftest.$ac_ext <<_ACEOF
31919/* end confdefs.h. */
31920#include <$ac_header>
31921_ACEOF
31922if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31923 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31924 ac_status=$?
31925 grep -v '^ *+' conftest.er1 >conftest.err
31926 rm -f conftest.er1
31927 cat conftest.err >&5
31928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31929 (exit $ac_status); } >/dev/null; then
31930 if test -s conftest.err; then
31931 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 31932 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
31933 else
31934 ac_cpp_err=
31935 fi
31936else
31937 ac_cpp_err=yes
31938fi
31939if test -z "$ac_cpp_err"; then
31940 ac_header_preproc=yes
31941else
31942 echo "$as_me: failed program was:" >&5
31943sed 's/^/| /' conftest.$ac_ext >&5
31944
31945 ac_header_preproc=no
31946fi
31947rm -f conftest.err conftest.$ac_ext
31948echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31949echo "${ECHO_T}$ac_header_preproc" >&6
31950
31951# So? What about this header?
ac1cb8d3
VS
31952case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31953 yes:no: )
a848cd7e
SC
31954 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31955echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
31956 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31957echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31958 ac_header_preproc=yes
a848cd7e 31959 ;;
ac1cb8d3 31960 no:yes:* )
a848cd7e
SC
31961 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31962echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
31963 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31964echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31965 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31966echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31967 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31968echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
31969 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31970echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
31971 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31972echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
31973 (
31974 cat <<\_ASBOX
ac1cb8d3
VS
31975## ----------------------------------------- ##
31976## Report this to wx-dev@lists.wxwidgets.org ##
31977## ----------------------------------------- ##
a848cd7e
SC
31978_ASBOX
31979 ) |
31980 sed "s/^/$as_me: WARNING: /" >&2
31981 ;;
31982esac
31983echo "$as_me:$LINENO: checking for $ac_header" >&5
31984echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31985if eval "test \"\${$as_ac_Header+set}\" = set"; then
31986 echo $ECHO_N "(cached) $ECHO_C" >&6
31987else
ac1cb8d3 31988 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
31989fi
31990echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31991echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31992
31993fi
31994if test `eval echo '${'$as_ac_Header'}'` = yes; then
31995 cat >>confdefs.h <<_ACEOF
31996#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31997_ACEOF
31998
31999 EXTRALIBS_ESD="-lesd"
32000
32001fi
32002
32003done
32004
32005
32006fi
32007
32008
32009
32010echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
32011echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
32012cat >conftest.$ac_ext <<_ACEOF
32013/* confdefs.h. */
32014_ACEOF
32015cat confdefs.h >>conftest.$ac_ext
32016cat >>conftest.$ac_ext <<_ACEOF
32017/* end confdefs.h. */
32018#ifdef __linux__
32019 #include <linux/cdrom.h>
32020 #else
32021 /* For Solaris */
32022 #include <sys/cdio.h>
32023 #endif
32024
32025int
32026main ()
32027{
32028struct cdrom_tocentry entry, old_entry;
32029 ;
32030 return 0;
32031}
32032_ACEOF
32033rm -f conftest.$ac_objext
32034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32035 (eval $ac_compile) 2>conftest.er1
a848cd7e 32036 ac_status=$?
ac1cb8d3
VS
32037 grep -v '^ *+' conftest.er1 >conftest.err
32038 rm -f conftest.er1
32039 cat conftest.err >&5
a848cd7e
SC
32040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32041 (exit $ac_status); } &&
5294a27e 32042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32044 (eval $ac_try) 2>&5
32045 ac_status=$?
32046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32047 (exit $ac_status); }; } &&
32048 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32050 (eval $ac_try) 2>&5
32051 ac_status=$?
32052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32053 (exit $ac_status); }; }; then
32054 echo "$as_me:$LINENO: result: yes" >&5
32055echo "${ECHO_T}yes" >&6
32056 cat >>confdefs.h <<\_ACEOF
32057#define HAVE_KNOWN_CDROM_INTERFACE 1
32058_ACEOF
32059
32060else
32061 echo "$as_me: failed program was:" >&5
32062sed 's/^/| /' conftest.$ac_ext >&5
32063
32064echo "$as_me:$LINENO: result: no" >&5
32065echo "${ECHO_T}no" >&6
32066fi
ac1cb8d3 32067rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32068
32069
32070cat >confcache <<\_ACEOF
32071# This file is a shell script that caches the results of configure
32072# tests run on this system so they can be shared between configure
32073# scripts and configure runs, see configure's option --config-cache.
32074# It is not useful on other systems. If it contains results you don't
32075# want to keep, you may remove or edit it.
32076#
32077# config.status only pays attention to the cache file if you give it
32078# the --recheck option to rerun configure.
32079#
32080# `ac_cv_env_foo' variables (set or unset) will be overridden when
32081# loading this file, other *unset* `ac_cv_foo' will be assigned the
32082# following values.
32083
32084_ACEOF
32085
32086# The following way of writing the cache mishandles newlines in values,
32087# but we know of no workaround that is simple, portable, and efficient.
32088# So, don't put newlines in cache variables' values.
32089# Ultrix sh set writes to stderr and can't be redirected directly,
32090# and sets the high bit in the cache file unless we assign to the vars.
32091{
32092 (set) 2>&1 |
32093 case `(ac_space=' '; set | grep ac_space) 2>&1` in
32094 *ac_space=\ *)
32095 # `set' does not quote correctly, so add quotes (double-quote
32096 # substitution turns \\\\ into \\, and sed turns \\ into \).
32097 sed -n \
ac1cb8d3
VS
32098 "s/'/'\\\\''/g;
32099 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
32100 ;;
32101 *)
32102 # `set' quotes correctly as required by POSIX, so do not add quotes.
32103 sed -n \
ac1cb8d3 32104 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
32105 ;;
32106 esac;
32107} |
32108 sed '
32109 t clear
32110 : clear
32111 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32112 t end
32113 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32114 : end' >>confcache
32115if diff $cache_file confcache >/dev/null 2>&1; then :; else
32116 if test -w $cache_file; then
32117 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
32118 cat confcache >$cache_file
32119 else
32120 echo "not updating unwritable cache $cache_file"
32121 fi
32122fi
32123rm -f confcache
32124
32125
32126CPP_MT_FLAG=
32127if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
32128
32129
32130 THREADS_LINK=
32131 THREADS_CFLAGS=
32132
32133 if test "$wxUSE_THREADS" = "yes" ; then
32134 if test "$USE_BEOS" = 1; then
32135 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
32136echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
32137 wxUSE_THREADS="no"
32138 fi
32139 fi
32140
32141 if test "$wxUSE_THREADS" = "yes" ; then
32142
32143
32144 THREAD_OPTS="-pthread"
32145 case "${host}" in
32146 *-*-solaris2* | *-*-sunos4* )
32147 if test "x$GCC" = "xyes"; then
32148 THREAD_OPTS="-pthreads $THREAD_OPTS"
32149 else
32150 THREAD_OPTS="-mt $THREAD_OPTS"
32151 fi
32152 ;;
32153 *-*-freebsd*)
32154 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
32155 ;;
32156 *-*-darwin* | *-*-cygwin* )
32157 THREAD_OPTS=""
32158 ;;
32159 *-*-aix*)
32160 THREAD_OPTS="pthreads"
32161 ;;
32162 *-hp-hpux* )
32163 if test "x$GCC" != "xyes"; then
32164 THREAD_OPTS=""
32165 fi
32166 ;;
32167
32168 *-*-irix* )
32169 if test "x$GCC" = "xyes"; then
32170 THREAD_OPTS=""
32171 fi
32172 ;;
32173
32174 *-*-*UnixWare*)
32175 if test "x$GCC" != "xyes"; then
32176 THREAD_OPTS="-Ethread"
32177 fi
32178 ;;
32179 esac
32180
32181 THREAD_OPTS="$THREAD_OPTS pthread none"
32182
32183 THREADS_OK=no
32184 for flag in $THREAD_OPTS; do
32185 case $flag in
32186 none)
32187 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
32188echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
32189 ;;
32190
32191 -*)
32192 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
32193echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
32194 THREADS_CFLAGS="$flag"
32195 ;;
32196
32197 *)
32198 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
32199echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
32200 THREADS_LINK="-l$flag"
32201 ;;
32202 esac
32203
32204 save_LIBS="$LIBS"
32205 save_CFLAGS="$CFLAGS"
32206 LIBS="$THREADS_LINK $LIBS"
32207 CFLAGS="$THREADS_CFLAGS $CFLAGS"
32208
32209 cat >conftest.$ac_ext <<_ACEOF
32210/* confdefs.h. */
32211_ACEOF
32212cat confdefs.h >>conftest.$ac_ext
32213cat >>conftest.$ac_ext <<_ACEOF
32214/* end confdefs.h. */
32215#include <pthread.h>
32216int
32217main ()
32218{
32219pthread_create(0,0,0,0);
32220 ;
32221 return 0;
32222}
32223_ACEOF
32224rm -f conftest.$ac_objext conftest$ac_exeext
32225if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32226 (eval $ac_link) 2>conftest.er1
a848cd7e 32227 ac_status=$?
ac1cb8d3
VS
32228 grep -v '^ *+' conftest.er1 >conftest.err
32229 rm -f conftest.er1
32230 cat conftest.err >&5
a848cd7e
SC
32231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32232 (exit $ac_status); } &&
5294a27e 32233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32235 (eval $ac_try) 2>&5
32236 ac_status=$?
32237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32238 (exit $ac_status); }; } &&
32239 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32241 (eval $ac_try) 2>&5
32242 ac_status=$?
32243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32244 (exit $ac_status); }; }; then
32245 THREADS_OK=yes
32246else
32247 echo "$as_me: failed program was:" >&5
32248sed 's/^/| /' conftest.$ac_ext >&5
32249
32250fi
ac1cb8d3
VS
32251rm -f conftest.err conftest.$ac_objext \
32252 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32253
32254 LIBS="$save_LIBS"
32255 CFLAGS="$save_CFLAGS"
32256
32257 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
32258echo "${ECHO_T}$THREADS_OK" >&6
32259 if test "x$THREADS_OK" = "xyes"; then
32260 break;
32261 fi
32262
32263 THREADS_LINK=""
32264 THREADS_CFLAGS=""
32265 done
32266
32267 if test "x$THREADS_OK" != "xyes"; then
32268 wxUSE_THREADS=no
32269 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
32270echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
32271 else
32272 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
32273 LIBS="$THREADS_LINK $LIBS"
32274
32275 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
32276echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
32277 flag=no
32278 case "${host}" in
32279 *-aix*)
32280 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
32281 flag="-D_THREAD_SAFE"
32282 ;;
32283 *-freebsd*)
32284 flag="-D_THREAD_SAFE"
32285 ;;
32286 *-hp-hpux* )
32287 flag="-D_REENTRANT"
32288 if test "x$GCC" != "xyes"; then
32289 flag="$flag -D_RWSTD_MULTI_THREAD"
32290 fi
32291 ;;
32292 *solaris* | alpha*-osf*)
32293 flag="-D_REENTRANT"
32294 ;;
32295 esac
32296 echo "$as_me:$LINENO: result: ${flag}" >&5
32297echo "${ECHO_T}${flag}" >&6
32298 if test "x$flag" != xno; then
32299 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
32300 fi
32301
32302 if test "x$THREADS_CFLAGS" != "x"; then
32303 CFLAGS="$CFLAGS $THREADS_CFLAGS"
32304 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
32305 fi
32306 fi
32307 fi
32308
32309 if test "$wxUSE_THREADS" = "yes" ; then
32310
32311for ac_func in thr_setconcurrency
32312do
32313as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32314echo "$as_me:$LINENO: checking for $ac_func" >&5
32315echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32316if eval "test \"\${$as_ac_var+set}\" = set"; then
32317 echo $ECHO_N "(cached) $ECHO_C" >&6
32318else
32319 cat >conftest.$ac_ext <<_ACEOF
32320/* confdefs.h. */
32321_ACEOF
32322cat confdefs.h >>conftest.$ac_ext
32323cat >>conftest.$ac_ext <<_ACEOF
32324/* end confdefs.h. */
ac1cb8d3
VS
32325/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32326 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32327#define $ac_func innocuous_$ac_func
32328
a848cd7e
SC
32329/* System header to define __stub macros and hopefully few prototypes,
32330 which can conflict with char $ac_func (); below.
32331 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32332 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32333
a848cd7e
SC
32334#ifdef __STDC__
32335# include <limits.h>
32336#else
32337# include <assert.h>
32338#endif
ac1cb8d3
VS
32339
32340#undef $ac_func
32341
a848cd7e
SC
32342/* Override any gcc2 internal prototype to avoid an error. */
32343#ifdef __cplusplus
32344extern "C"
32345{
32346#endif
32347/* We use char because int might match the return type of a gcc2
32348 builtin and then its argument prototype would still apply. */
32349char $ac_func ();
32350/* The GNU C library defines this for functions which it implements
32351 to always fail with ENOSYS. Some functions are actually named
32352 something starting with __ and the normal name is an alias. */
32353#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32354choke me
32355#else
32356char (*f) () = $ac_func;
32357#endif
32358#ifdef __cplusplus
32359}
32360#endif
32361
32362int
32363main ()
32364{
32365return f != $ac_func;
32366 ;
32367 return 0;
32368}
32369_ACEOF
32370rm -f conftest.$ac_objext conftest$ac_exeext
32371if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32372 (eval $ac_link) 2>conftest.er1
a848cd7e 32373 ac_status=$?
ac1cb8d3
VS
32374 grep -v '^ *+' conftest.er1 >conftest.err
32375 rm -f conftest.er1
32376 cat conftest.err >&5
a848cd7e
SC
32377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32378 (exit $ac_status); } &&
5294a27e 32379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32381 (eval $ac_try) 2>&5
32382 ac_status=$?
32383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32384 (exit $ac_status); }; } &&
32385 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32387 (eval $ac_try) 2>&5
32388 ac_status=$?
32389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32390 (exit $ac_status); }; }; then
32391 eval "$as_ac_var=yes"
32392else
32393 echo "$as_me: failed program was:" >&5
32394sed 's/^/| /' conftest.$ac_ext >&5
32395
32396eval "$as_ac_var=no"
32397fi
ac1cb8d3
VS
32398rm -f conftest.err conftest.$ac_objext \
32399 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32400fi
32401echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32402echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32403if test `eval echo '${'$as_ac_var'}'` = yes; then
32404 cat >>confdefs.h <<_ACEOF
32405#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32406_ACEOF
32407
32408fi
32409done
32410
32411
32412
32413for ac_header in sched.h
32414do
32415as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32416if eval "test \"\${$as_ac_Header+set}\" = set"; then
32417 echo "$as_me:$LINENO: checking for $ac_header" >&5
32418echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32419if eval "test \"\${$as_ac_Header+set}\" = set"; then
32420 echo $ECHO_N "(cached) $ECHO_C" >&6
32421fi
32422echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32423echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32424else
32425 # Is the header compilable?
32426echo "$as_me:$LINENO: checking $ac_header usability" >&5
32427echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32428cat >conftest.$ac_ext <<_ACEOF
32429/* confdefs.h. */
32430_ACEOF
32431cat confdefs.h >>conftest.$ac_ext
32432cat >>conftest.$ac_ext <<_ACEOF
32433/* end confdefs.h. */
32434$ac_includes_default
32435#include <$ac_header>
32436_ACEOF
32437rm -f conftest.$ac_objext
32438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32439 (eval $ac_compile) 2>conftest.er1
a848cd7e 32440 ac_status=$?
ac1cb8d3
VS
32441 grep -v '^ *+' conftest.er1 >conftest.err
32442 rm -f conftest.er1
32443 cat conftest.err >&5
a848cd7e
SC
32444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32445 (exit $ac_status); } &&
5294a27e 32446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32448 (eval $ac_try) 2>&5
32449 ac_status=$?
32450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32451 (exit $ac_status); }; } &&
32452 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32454 (eval $ac_try) 2>&5
32455 ac_status=$?
32456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32457 (exit $ac_status); }; }; then
32458 ac_header_compiler=yes
32459else
32460 echo "$as_me: failed program was:" >&5
32461sed 's/^/| /' conftest.$ac_ext >&5
32462
32463ac_header_compiler=no
32464fi
ac1cb8d3 32465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32466echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32467echo "${ECHO_T}$ac_header_compiler" >&6
32468
32469# Is the header present?
32470echo "$as_me:$LINENO: checking $ac_header presence" >&5
32471echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32472cat >conftest.$ac_ext <<_ACEOF
32473/* confdefs.h. */
32474_ACEOF
32475cat confdefs.h >>conftest.$ac_ext
32476cat >>conftest.$ac_ext <<_ACEOF
32477/* end confdefs.h. */
32478#include <$ac_header>
32479_ACEOF
32480if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32481 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32482 ac_status=$?
32483 grep -v '^ *+' conftest.er1 >conftest.err
32484 rm -f conftest.er1
32485 cat conftest.err >&5
32486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32487 (exit $ac_status); } >/dev/null; then
32488 if test -s conftest.err; then
32489 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 32490 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
32491 else
32492 ac_cpp_err=
32493 fi
32494else
32495 ac_cpp_err=yes
32496fi
32497if test -z "$ac_cpp_err"; then
32498 ac_header_preproc=yes
32499else
32500 echo "$as_me: failed program was:" >&5
32501sed 's/^/| /' conftest.$ac_ext >&5
32502
32503 ac_header_preproc=no
32504fi
32505rm -f conftest.err conftest.$ac_ext
32506echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32507echo "${ECHO_T}$ac_header_preproc" >&6
32508
32509# So? What about this header?
ac1cb8d3
VS
32510case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32511 yes:no: )
a848cd7e
SC
32512 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32513echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32514 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32515echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32516 ac_header_preproc=yes
a848cd7e 32517 ;;
ac1cb8d3 32518 no:yes:* )
a848cd7e
SC
32519 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32520echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32521 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32522echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32523 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32524echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32525 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32526echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32528echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32529 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32530echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32531 (
32532 cat <<\_ASBOX
ac1cb8d3
VS
32533## ----------------------------------------- ##
32534## Report this to wx-dev@lists.wxwidgets.org ##
32535## ----------------------------------------- ##
a848cd7e
SC
32536_ASBOX
32537 ) |
32538 sed "s/^/$as_me: WARNING: /" >&2
32539 ;;
32540esac
32541echo "$as_me:$LINENO: checking for $ac_header" >&5
32542echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32543if eval "test \"\${$as_ac_Header+set}\" = set"; then
32544 echo $ECHO_N "(cached) $ECHO_C" >&6
32545else
ac1cb8d3 32546 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
32547fi
32548echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32549echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32550
32551fi
32552if test `eval echo '${'$as_ac_Header'}'` = yes; then
32553 cat >>confdefs.h <<_ACEOF
32554#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32555_ACEOF
32556
32557fi
32558
32559done
32560
32561 if test "$ac_cv_header_sched_h" = "yes"; then
32562 echo "$as_me:$LINENO: checking for sched_yield" >&5
32563echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
32564if test "${ac_cv_func_sched_yield+set}" = set; then
32565 echo $ECHO_N "(cached) $ECHO_C" >&6
32566else
32567 cat >conftest.$ac_ext <<_ACEOF
32568/* confdefs.h. */
32569_ACEOF
32570cat confdefs.h >>conftest.$ac_ext
32571cat >>conftest.$ac_ext <<_ACEOF
32572/* end confdefs.h. */
ac1cb8d3
VS
32573/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
32574 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32575#define sched_yield innocuous_sched_yield
32576
a848cd7e
SC
32577/* System header to define __stub macros and hopefully few prototypes,
32578 which can conflict with char sched_yield (); below.
32579 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32580 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32581
a848cd7e
SC
32582#ifdef __STDC__
32583# include <limits.h>
32584#else
32585# include <assert.h>
32586#endif
ac1cb8d3
VS
32587
32588#undef sched_yield
32589
a848cd7e
SC
32590/* Override any gcc2 internal prototype to avoid an error. */
32591#ifdef __cplusplus
32592extern "C"
32593{
32594#endif
32595/* We use char because int might match the return type of a gcc2
32596 builtin and then its argument prototype would still apply. */
32597char sched_yield ();
32598/* The GNU C library defines this for functions which it implements
32599 to always fail with ENOSYS. Some functions are actually named
32600 something starting with __ and the normal name is an alias. */
32601#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
32602choke me
32603#else
32604char (*f) () = sched_yield;
32605#endif
32606#ifdef __cplusplus
32607}
32608#endif
32609
32610int
32611main ()
32612{
32613return f != sched_yield;
32614 ;
32615 return 0;
32616}
32617_ACEOF
32618rm -f conftest.$ac_objext conftest$ac_exeext
32619if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32620 (eval $ac_link) 2>conftest.er1
a848cd7e 32621 ac_status=$?
ac1cb8d3
VS
32622 grep -v '^ *+' conftest.er1 >conftest.err
32623 rm -f conftest.er1
32624 cat conftest.err >&5
a848cd7e
SC
32625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32626 (exit $ac_status); } &&
5294a27e 32627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32629 (eval $ac_try) 2>&5
32630 ac_status=$?
32631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32632 (exit $ac_status); }; } &&
32633 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32635 (eval $ac_try) 2>&5
32636 ac_status=$?
32637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32638 (exit $ac_status); }; }; then
32639 ac_cv_func_sched_yield=yes
32640else
32641 echo "$as_me: failed program was:" >&5
32642sed 's/^/| /' conftest.$ac_ext >&5
32643
32644ac_cv_func_sched_yield=no
32645fi
ac1cb8d3
VS
32646rm -f conftest.err conftest.$ac_objext \
32647 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32648fi
32649echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
32650echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
32651if test $ac_cv_func_sched_yield = yes; then
32652 cat >>confdefs.h <<\_ACEOF
32653#define HAVE_SCHED_YIELD 1
32654_ACEOF
32655
32656else
32657
32658 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
32659echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
32660if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
32661 echo $ECHO_N "(cached) $ECHO_C" >&6
32662else
32663 ac_check_lib_save_LIBS=$LIBS
32664LIBS="-lposix4 $LIBS"
32665cat >conftest.$ac_ext <<_ACEOF
32666/* confdefs.h. */
32667_ACEOF
32668cat confdefs.h >>conftest.$ac_ext
32669cat >>conftest.$ac_ext <<_ACEOF
32670/* end confdefs.h. */
32671
32672/* Override any gcc2 internal prototype to avoid an error. */
32673#ifdef __cplusplus
32674extern "C"
32675#endif
32676/* We use char because int might match the return type of a gcc2
32677 builtin and then its argument prototype would still apply. */
32678char sched_yield ();
32679int
32680main ()
32681{
32682sched_yield ();
32683 ;
32684 return 0;
32685}
32686_ACEOF
32687rm -f conftest.$ac_objext conftest$ac_exeext
32688if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32689 (eval $ac_link) 2>conftest.er1
a848cd7e 32690 ac_status=$?
ac1cb8d3
VS
32691 grep -v '^ *+' conftest.er1 >conftest.err
32692 rm -f conftest.er1
32693 cat conftest.err >&5
a848cd7e
SC
32694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32695 (exit $ac_status); } &&
5294a27e 32696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32698 (eval $ac_try) 2>&5
32699 ac_status=$?
32700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32701 (exit $ac_status); }; } &&
32702 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
32708 ac_cv_lib_posix4_sched_yield=yes
32709else
32710 echo "$as_me: failed program was:" >&5
32711sed 's/^/| /' conftest.$ac_ext >&5
32712
32713ac_cv_lib_posix4_sched_yield=no
32714fi
ac1cb8d3
VS
32715rm -f conftest.err conftest.$ac_objext \
32716 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32717LIBS=$ac_check_lib_save_LIBS
32718fi
32719echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
32720echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
32721if test $ac_cv_lib_posix4_sched_yield = yes; then
32722 cat >>confdefs.h <<\_ACEOF
32723#define HAVE_SCHED_YIELD 1
32724_ACEOF
32725 POSIX4_LINK=" -lposix4"
32726else
32727 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
32728echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
32729
32730fi
32731
32732
32733
32734fi
32735
32736 fi
32737
32738 HAVE_PRIOR_FUNCS=0
32739 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
32740echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
32741if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
32742 echo $ECHO_N "(cached) $ECHO_C" >&6
32743else
32744 cat >conftest.$ac_ext <<_ACEOF
32745/* confdefs.h. */
32746_ACEOF
32747cat confdefs.h >>conftest.$ac_ext
32748cat >>conftest.$ac_ext <<_ACEOF
32749/* end confdefs.h. */
ac1cb8d3
VS
32750/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
32751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32752#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
32753
a848cd7e
SC
32754/* System header to define __stub macros and hopefully few prototypes,
32755 which can conflict with char pthread_attr_getschedpolicy (); below.
32756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32757 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32758
a848cd7e
SC
32759#ifdef __STDC__
32760# include <limits.h>
32761#else
32762# include <assert.h>
32763#endif
ac1cb8d3
VS
32764
32765#undef pthread_attr_getschedpolicy
32766
a848cd7e
SC
32767/* Override any gcc2 internal prototype to avoid an error. */
32768#ifdef __cplusplus
32769extern "C"
32770{
32771#endif
32772/* We use char because int might match the return type of a gcc2
32773 builtin and then its argument prototype would still apply. */
32774char pthread_attr_getschedpolicy ();
32775/* The GNU C library defines this for functions which it implements
32776 to always fail with ENOSYS. Some functions are actually named
32777 something starting with __ and the normal name is an alias. */
32778#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
32779choke me
32780#else
32781char (*f) () = pthread_attr_getschedpolicy;
32782#endif
32783#ifdef __cplusplus
32784}
32785#endif
32786
32787int
32788main ()
32789{
32790return f != pthread_attr_getschedpolicy;
32791 ;
32792 return 0;
32793}
32794_ACEOF
32795rm -f conftest.$ac_objext conftest$ac_exeext
32796if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32797 (eval $ac_link) 2>conftest.er1
a848cd7e 32798 ac_status=$?
ac1cb8d3
VS
32799 grep -v '^ *+' conftest.er1 >conftest.err
32800 rm -f conftest.er1
32801 cat conftest.err >&5
a848cd7e
SC
32802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32803 (exit $ac_status); } &&
5294a27e 32804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32806 (eval $ac_try) 2>&5
32807 ac_status=$?
32808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32809 (exit $ac_status); }; } &&
32810 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32812 (eval $ac_try) 2>&5
32813 ac_status=$?
32814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32815 (exit $ac_status); }; }; then
32816 ac_cv_func_pthread_attr_getschedpolicy=yes
32817else
32818 echo "$as_me: failed program was:" >&5
32819sed 's/^/| /' conftest.$ac_ext >&5
32820
32821ac_cv_func_pthread_attr_getschedpolicy=no
32822fi
ac1cb8d3
VS
32823rm -f conftest.err conftest.$ac_objext \
32824 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32825fi
32826echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
32827echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
32828if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
32829 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
32830echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
32831if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
32832 echo $ECHO_N "(cached) $ECHO_C" >&6
32833else
32834 cat >conftest.$ac_ext <<_ACEOF
32835/* confdefs.h. */
32836_ACEOF
32837cat confdefs.h >>conftest.$ac_ext
32838cat >>conftest.$ac_ext <<_ACEOF
32839/* end confdefs.h. */
ac1cb8d3
VS
32840/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
32841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32842#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
32843
a848cd7e
SC
32844/* System header to define __stub macros and hopefully few prototypes,
32845 which can conflict with char pthread_attr_setschedparam (); below.
32846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32847 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32848
a848cd7e
SC
32849#ifdef __STDC__
32850# include <limits.h>
32851#else
32852# include <assert.h>
32853#endif
ac1cb8d3
VS
32854
32855#undef pthread_attr_setschedparam
32856
a848cd7e
SC
32857/* Override any gcc2 internal prototype to avoid an error. */
32858#ifdef __cplusplus
32859extern "C"
32860{
32861#endif
32862/* We use char because int might match the return type of a gcc2
32863 builtin and then its argument prototype would still apply. */
32864char pthread_attr_setschedparam ();
32865/* The GNU C library defines this for functions which it implements
32866 to always fail with ENOSYS. Some functions are actually named
32867 something starting with __ and the normal name is an alias. */
32868#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
32869choke me
32870#else
32871char (*f) () = pthread_attr_setschedparam;
32872#endif
32873#ifdef __cplusplus
32874}
32875#endif
32876
32877int
32878main ()
32879{
32880return f != pthread_attr_setschedparam;
32881 ;
32882 return 0;
32883}
32884_ACEOF
32885rm -f conftest.$ac_objext conftest$ac_exeext
32886if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32887 (eval $ac_link) 2>conftest.er1
a848cd7e 32888 ac_status=$?
ac1cb8d3
VS
32889 grep -v '^ *+' conftest.er1 >conftest.err
32890 rm -f conftest.er1
32891 cat conftest.err >&5
a848cd7e
SC
32892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32893 (exit $ac_status); } &&
5294a27e 32894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32896 (eval $ac_try) 2>&5
32897 ac_status=$?
32898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32899 (exit $ac_status); }; } &&
32900 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32902 (eval $ac_try) 2>&5
32903 ac_status=$?
32904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32905 (exit $ac_status); }; }; then
32906 ac_cv_func_pthread_attr_setschedparam=yes
32907else
32908 echo "$as_me: failed program was:" >&5
32909sed 's/^/| /' conftest.$ac_ext >&5
32910
32911ac_cv_func_pthread_attr_setschedparam=no
32912fi
ac1cb8d3
VS
32913rm -f conftest.err conftest.$ac_objext \
32914 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32915fi
32916echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
32917echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
32918if test $ac_cv_func_pthread_attr_setschedparam = yes; then
32919 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
32920echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
32921if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
32922 echo $ECHO_N "(cached) $ECHO_C" >&6
32923else
32924 cat >conftest.$ac_ext <<_ACEOF
32925/* confdefs.h. */
32926_ACEOF
32927cat confdefs.h >>conftest.$ac_ext
32928cat >>conftest.$ac_ext <<_ACEOF
32929/* end confdefs.h. */
ac1cb8d3
VS
32930/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
32931 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32932#define sched_get_priority_max innocuous_sched_get_priority_max
32933
a848cd7e
SC
32934/* System header to define __stub macros and hopefully few prototypes,
32935 which can conflict with char sched_get_priority_max (); below.
32936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32937 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32938
a848cd7e
SC
32939#ifdef __STDC__
32940# include <limits.h>
32941#else
32942# include <assert.h>
32943#endif
ac1cb8d3
VS
32944
32945#undef sched_get_priority_max
32946
a848cd7e
SC
32947/* Override any gcc2 internal prototype to avoid an error. */
32948#ifdef __cplusplus
32949extern "C"
32950{
32951#endif
32952/* We use char because int might match the return type of a gcc2
32953 builtin and then its argument prototype would still apply. */
32954char sched_get_priority_max ();
32955/* The GNU C library defines this for functions which it implements
32956 to always fail with ENOSYS. Some functions are actually named
32957 something starting with __ and the normal name is an alias. */
32958#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
32959choke me
32960#else
32961char (*f) () = sched_get_priority_max;
32962#endif
32963#ifdef __cplusplus
32964}
32965#endif
32966
32967int
32968main ()
32969{
32970return f != sched_get_priority_max;
32971 ;
32972 return 0;
32973}
32974_ACEOF
32975rm -f conftest.$ac_objext conftest$ac_exeext
32976if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32977 (eval $ac_link) 2>conftest.er1
a848cd7e 32978 ac_status=$?
ac1cb8d3
VS
32979 grep -v '^ *+' conftest.er1 >conftest.err
32980 rm -f conftest.er1
32981 cat conftest.err >&5
a848cd7e
SC
32982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32983 (exit $ac_status); } &&
5294a27e 32984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32986 (eval $ac_try) 2>&5
32987 ac_status=$?
32988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32989 (exit $ac_status); }; } &&
32990 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32992 (eval $ac_try) 2>&5
32993 ac_status=$?
32994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32995 (exit $ac_status); }; }; then
32996 ac_cv_func_sched_get_priority_max=yes
32997else
32998 echo "$as_me: failed program was:" >&5
32999sed 's/^/| /' conftest.$ac_ext >&5
33000
33001ac_cv_func_sched_get_priority_max=no
33002fi
ac1cb8d3
VS
33003rm -f conftest.err conftest.$ac_objext \
33004 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33005fi
33006echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
33007echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
33008if test $ac_cv_func_sched_get_priority_max = yes; then
33009 HAVE_PRIOR_FUNCS=1
33010else
33011 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
33012echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
33013if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
33014 echo $ECHO_N "(cached) $ECHO_C" >&6
33015else
33016 ac_check_lib_save_LIBS=$LIBS
33017LIBS="-lposix4 $LIBS"
33018cat >conftest.$ac_ext <<_ACEOF
33019/* confdefs.h. */
33020_ACEOF
33021cat confdefs.h >>conftest.$ac_ext
33022cat >>conftest.$ac_ext <<_ACEOF
33023/* end confdefs.h. */
33024
33025/* Override any gcc2 internal prototype to avoid an error. */
33026#ifdef __cplusplus
33027extern "C"
33028#endif
33029/* We use char because int might match the return type of a gcc2
33030 builtin and then its argument prototype would still apply. */
33031char sched_get_priority_max ();
33032int
33033main ()
33034{
33035sched_get_priority_max ();
33036 ;
33037 return 0;
33038}
33039_ACEOF
33040rm -f conftest.$ac_objext conftest$ac_exeext
33041if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33042 (eval $ac_link) 2>conftest.er1
a848cd7e 33043 ac_status=$?
ac1cb8d3
VS
33044 grep -v '^ *+' conftest.er1 >conftest.err
33045 rm -f conftest.er1
33046 cat conftest.err >&5
a848cd7e
SC
33047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33048 (exit $ac_status); } &&
5294a27e 33049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33051 (eval $ac_try) 2>&5
33052 ac_status=$?
33053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33054 (exit $ac_status); }; } &&
33055 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33057 (eval $ac_try) 2>&5
33058 ac_status=$?
33059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33060 (exit $ac_status); }; }; then
33061 ac_cv_lib_posix4_sched_get_priority_max=yes
33062else
33063 echo "$as_me: failed program was:" >&5
33064sed 's/^/| /' conftest.$ac_ext >&5
33065
33066ac_cv_lib_posix4_sched_get_priority_max=no
33067fi
ac1cb8d3
VS
33068rm -f conftest.err conftest.$ac_objext \
33069 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33070LIBS=$ac_check_lib_save_LIBS
33071fi
33072echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
33073echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
33074if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
33075
33076 HAVE_PRIOR_FUNCS=1
33077 POSIX4_LINK=" -lposix4"
33078
33079fi
33080
33081
33082fi
33083
33084
33085fi
33086
33087
33088fi
33089
33090
33091 if test "$HAVE_PRIOR_FUNCS" = 1; then
33092 cat >>confdefs.h <<\_ACEOF
33093#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
33094_ACEOF
33095
33096 else
33097 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
33098echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
33099 fi
33100
33101 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
33102echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
33103if test "${ac_cv_func_pthread_cancel+set}" = set; then
33104 echo $ECHO_N "(cached) $ECHO_C" >&6
33105else
33106 cat >conftest.$ac_ext <<_ACEOF
33107/* confdefs.h. */
33108_ACEOF
33109cat confdefs.h >>conftest.$ac_ext
33110cat >>conftest.$ac_ext <<_ACEOF
33111/* end confdefs.h. */
ac1cb8d3
VS
33112/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
33113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33114#define pthread_cancel innocuous_pthread_cancel
33115
a848cd7e
SC
33116/* System header to define __stub macros and hopefully few prototypes,
33117 which can conflict with char pthread_cancel (); below.
33118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33119 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33120
a848cd7e
SC
33121#ifdef __STDC__
33122# include <limits.h>
33123#else
33124# include <assert.h>
33125#endif
ac1cb8d3
VS
33126
33127#undef pthread_cancel
33128
a848cd7e
SC
33129/* Override any gcc2 internal prototype to avoid an error. */
33130#ifdef __cplusplus
33131extern "C"
33132{
33133#endif
33134/* We use char because int might match the return type of a gcc2
33135 builtin and then its argument prototype would still apply. */
33136char pthread_cancel ();
33137/* The GNU C library defines this for functions which it implements
33138 to always fail with ENOSYS. Some functions are actually named
33139 something starting with __ and the normal name is an alias. */
33140#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
33141choke me
33142#else
33143char (*f) () = pthread_cancel;
33144#endif
33145#ifdef __cplusplus
33146}
33147#endif
33148
33149int
33150main ()
33151{
33152return f != pthread_cancel;
33153 ;
33154 return 0;
33155}
33156_ACEOF
33157rm -f conftest.$ac_objext conftest$ac_exeext
33158if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33159 (eval $ac_link) 2>conftest.er1
a848cd7e 33160 ac_status=$?
ac1cb8d3
VS
33161 grep -v '^ *+' conftest.er1 >conftest.err
33162 rm -f conftest.er1
33163 cat conftest.err >&5
a848cd7e
SC
33164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33165 (exit $ac_status); } &&
5294a27e 33166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33168 (eval $ac_try) 2>&5
33169 ac_status=$?
33170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33171 (exit $ac_status); }; } &&
33172 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33174 (eval $ac_try) 2>&5
33175 ac_status=$?
33176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33177 (exit $ac_status); }; }; then
33178 ac_cv_func_pthread_cancel=yes
33179else
33180 echo "$as_me: failed program was:" >&5
33181sed 's/^/| /' conftest.$ac_ext >&5
33182
33183ac_cv_func_pthread_cancel=no
33184fi
ac1cb8d3
VS
33185rm -f conftest.err conftest.$ac_objext \
33186 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33187fi
33188echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
33189echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
33190if test $ac_cv_func_pthread_cancel = yes; then
33191 cat >>confdefs.h <<\_ACEOF
33192#define HAVE_PTHREAD_CANCEL 1
33193_ACEOF
33194
33195else
33196 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
33197echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
33198fi
33199
33200
33201
33202
33203 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
33204echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
33205if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
33206 echo $ECHO_N "(cached) $ECHO_C" >&6
33207else
33208
33209 cat >conftest.$ac_ext <<_ACEOF
33210/* confdefs.h. */
33211_ACEOF
33212cat confdefs.h >>conftest.$ac_ext
33213cat >>conftest.$ac_ext <<_ACEOF
33214/* end confdefs.h. */
33215#include <pthread.h>
33216int
33217main ()
33218{
33219
33220 pthread_mutexattr_t attr;
33221 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
33222
33223 ;
33224 return 0;
33225}
33226_ACEOF
33227rm -f conftest.$ac_objext
33228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33229 (eval $ac_compile) 2>conftest.er1
a848cd7e 33230 ac_status=$?
ac1cb8d3
VS
33231 grep -v '^ *+' conftest.er1 >conftest.err
33232 rm -f conftest.er1
33233 cat conftest.err >&5
a848cd7e
SC
33234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33235 (exit $ac_status); } &&
5294a27e 33236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33238 (eval $ac_try) 2>&5
33239 ac_status=$?
33240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33241 (exit $ac_status); }; } &&
33242 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33244 (eval $ac_try) 2>&5
33245 ac_status=$?
33246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33247 (exit $ac_status); }; }; then
33248
33249 wx_cv_type_pthread_mutexattr_t=yes
33250
33251else
33252 echo "$as_me: failed program was:" >&5
33253sed 's/^/| /' conftest.$ac_ext >&5
33254
33255
33256 wx_cv_type_pthread_mutexattr_t=no
33257
33258
33259fi
ac1cb8d3 33260rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33261
33262fi
33263echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
33264echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
33265
33266 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
33267 cat >>confdefs.h <<\_ACEOF
33268#define HAVE_PTHREAD_MUTEXATTR_T 1
33269_ACEOF
33270
33271 else
33272 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
33273echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
33274if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
33275 echo $ECHO_N "(cached) $ECHO_C" >&6
33276else
33277
33278 cat >conftest.$ac_ext <<_ACEOF
33279/* confdefs.h. */
33280_ACEOF
33281cat confdefs.h >>conftest.$ac_ext
33282cat >>conftest.$ac_ext <<_ACEOF
33283/* end confdefs.h. */
33284#include <pthread.h>
33285int
33286main ()
33287{
33288
33289 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
33290
33291 ;
33292 return 0;
33293}
33294_ACEOF
33295rm -f conftest.$ac_objext
33296if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33297 (eval $ac_compile) 2>conftest.er1
a848cd7e 33298 ac_status=$?
ac1cb8d3
VS
33299 grep -v '^ *+' conftest.er1 >conftest.err
33300 rm -f conftest.er1
33301 cat conftest.err >&5
a848cd7e
SC
33302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33303 (exit $ac_status); } &&
5294a27e 33304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33306 (eval $ac_try) 2>&5
33307 ac_status=$?
33308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33309 (exit $ac_status); }; } &&
33310 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33312 (eval $ac_try) 2>&5
33313 ac_status=$?
33314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33315 (exit $ac_status); }; }; then
33316
33317 wx_cv_type_pthread_rec_mutex_init=yes
33318
33319else
33320 echo "$as_me: failed program was:" >&5
33321sed 's/^/| /' conftest.$ac_ext >&5
33322
33323
33324 wx_cv_type_pthread_rec_mutex_init=no
33325
33326
33327fi
ac1cb8d3 33328rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33329
33330fi
33331echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
33332echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
33333 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
33334 cat >>confdefs.h <<\_ACEOF
33335#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
33336_ACEOF
33337
33338 else
33339 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
33340echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
33341 fi
33342 fi
33343 fi
33344
33345else
33346 if test "$wxUSE_THREADS" = "yes" ; then
33347 case "${host}" in
33348 *-*-mingw32* )
33349 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
33350echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
33351if test "${wx_cv_cflags_mthread+set}" = set; then
33352 echo $ECHO_N "(cached) $ECHO_C" >&6
33353else
33354
33355 CFLAGS_OLD="$CFLAGS"
33356 CFLAGS="$CFLAGS -mthreads"
33357 cat >conftest.$ac_ext <<_ACEOF
33358/* confdefs.h. */
33359_ACEOF
33360cat confdefs.h >>conftest.$ac_ext
33361cat >>conftest.$ac_ext <<_ACEOF
33362/* end confdefs.h. */
33363
33364int
33365main ()
33366{
33367
33368 ;
33369 return 0;
33370}
33371_ACEOF
33372rm -f conftest.$ac_objext
33373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33374 (eval $ac_compile) 2>conftest.er1
a848cd7e 33375 ac_status=$?
ac1cb8d3
VS
33376 grep -v '^ *+' conftest.er1 >conftest.err
33377 rm -f conftest.er1
33378 cat conftest.err >&5
a848cd7e
SC
33379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33380 (exit $ac_status); } &&
5294a27e 33381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33383 (eval $ac_try) 2>&5
33384 ac_status=$?
33385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33386 (exit $ac_status); }; } &&
33387 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33389 (eval $ac_try) 2>&5
33390 ac_status=$?
33391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33392 (exit $ac_status); }; }; then
33393 wx_cv_cflags_mthread=yes
33394else
33395 echo "$as_me: failed program was:" >&5
33396sed 's/^/| /' conftest.$ac_ext >&5
33397
33398wx_cv_cflags_mthread=no
33399
33400fi
ac1cb8d3 33401rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33402
33403
33404fi
33405echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
33406echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
33407
33408 if test "$wx_cv_cflags_mthread" = "yes"; then
33409 CXXFLAGS="$CXXFLAGS -mthreads"
33410 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
33411 LDFLAGS="$LDFLAGS -mthreads"
33412 else
33413 CFLAGS="$CFLAGS_OLD"
33414 fi
33415 ;;
33416 *-pc-os2*emx )
33417 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
33418 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
33419 LDFLAGS="$LDFLAGS -Zmt"
33420 ;;
33421 esac
33422 fi
33423fi
33424
33425if test "$wxUSE_THREADS" = "yes"; then
33426 cat >>confdefs.h <<\_ACEOF
33427#define wxUSE_THREADS 1
33428_ACEOF
33429
33430
33431 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
33432else
33433 if test "$ac_cv_func_strtok_r" = "yes"; then
33434 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
33435echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
33436 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
33437 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
33438 echo "$as_me:$LINENO: result: yes" >&5
33439echo "${ECHO_T}yes" >&6
33440 else
33441 echo "$as_me:$LINENO: result: no" >&5
33442echo "${ECHO_T}no" >&6
33443 fi
33444 fi
33445fi
33446
33447if test "$WXGTK20" = 1 ; then
33448 cat >>confdefs.h <<_ACEOF
33449#define __WXGTK20__ $WXGTK20
33450_ACEOF
33451
33452 WXGTK12=1
33453fi
33454
33455if test "$WXGTK12" = 1 ; then
33456 cat >>confdefs.h <<_ACEOF
33457#define __WXGTK12__ $WXGTK12
33458_ACEOF
33459
33460fi
33461
33462if test "$WXGTK127" = 1 ; then
33463 cat >>confdefs.h <<_ACEOF
33464#define __WXGTK127__ $WXGTK127
33465_ACEOF
33466
33467fi
33468
33469if test "$WXGPE" = 1 ; then
33470 cat >>confdefs.h <<_ACEOF
33471#define __WXGPE__ $WXGPE
33472_ACEOF
33473
33474fi
33475
33476WXDEBUG=
33477
33478if test "$wxUSE_DEBUG_INFO" = "yes" ; then
33479 WXDEBUG="-g"
33480 wxUSE_OPTIMISE=no
33481fi
33482
33483if test "$wxUSE_DEBUG_GDB" = "yes" ; then
33484 wxUSE_DEBUG_INFO=yes
33485 WXDEBUG="-ggdb"
33486fi
33487
33488if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
33489 cat >>confdefs.h <<\_ACEOF
33490#define WXDEBUG 1
33491_ACEOF
33492
33493 WXDEBUG_DEFINE="-D__WXDEBUG__"
33494else
33495 if test "$wxUSE_GTK" = 1 ; then
33496 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
33497 fi
33498fi
33499
33500if test "$wxUSE_MEM_TRACING" = "yes" ; then
33501 cat >>confdefs.h <<\_ACEOF
33502#define wxUSE_MEMORY_TRACING 1
33503_ACEOF
33504
33505 cat >>confdefs.h <<\_ACEOF
33506#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
33507_ACEOF
33508
33509 cat >>confdefs.h <<\_ACEOF
33510#define wxUSE_DEBUG_NEW_ALWAYS 1
33511_ACEOF
33512
33513 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
33514fi
33515
33516if test "$wxUSE_DMALLOC" = "yes" ; then
33517 DMALLOC_LIBS="-ldmalloc"
33518fi
33519
33520PROFILE=
33521if test "$wxUSE_PROFILE" = "yes" ; then
33522 PROFILE=" -pg"
33523fi
33524
33525CODE_GEN_FLAGS=
33526CODE_GEN_FLAGS_CXX=
33527if test "$GCC" = "yes" ; then
33528 if test "$wxUSE_NO_RTTI" = "yes" ; then
33529 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
33530 fi
33531 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
33532 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
33533 fi
33534 if test "$wxUSE_PERMISSIVE" = "yes" ; then
33535 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
33536 fi
33537
33538 case "${host}" in
33539 powerpc*-*-aix* )
33540 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
33541 ;;
33542 *-hppa* )
33543 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
33544 ;;
33545 esac
33546fi
33547
33548OPTIMISE=
33549if test "$wxUSE_OPTIMISE" = "no" ; then
33550 if test "$GCC" = yes ; then
33551 OPTIMISE="-O0"
33552 fi
33553else
33554 if test "$GCC" = yes ; then
33555 OPTIMISE="-O2"
33556
33557 case "${host}" in
33558 i586-*-*|i686-*-* )
33559 OPTIMISE="${OPTIMISE} "
33560 ;;
33561 esac
33562 else
33563 OPTIMISE="-O"
33564 fi
33565fi
33566
33567
33568if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
33569 cat >>confdefs.h <<\_ACEOF
33570#define WXWIN_COMPATIBILITY_2_2 1
33571_ACEOF
33572
33573
33574 WXWIN_COMPATIBILITY_2_4="yes"
33575fi
33576
33577if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
33578 cat >>confdefs.h <<\_ACEOF
33579#define WXWIN_COMPATIBILITY_2_4 1
33580_ACEOF
33581
33582fi
33583
33584
33585if test "$wxUSE_GUI" = "yes"; then
881bfcd6 33586 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
33587#define wxUSE_GUI 1
33588_ACEOF
33589
33590
881bfcd6
VZ
33591 else
33592 cat >>confdefs.h <<\_ACEOF
33593#define wxUSE_GUI 0
33594_ACEOF
33595
33596fi
a848cd7e
SC
33597
33598
33599if test "$wxUSE_UNIX" = "yes"; then
33600 cat >>confdefs.h <<\_ACEOF
33601#define wxUSE_UNIX 1
33602_ACEOF
33603
33604fi
33605
33606
33607if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
33608
33609 HAVE_DL_FUNCS=0
33610 HAVE_SHL_FUNCS=0
33611 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
33612 if test "$USE_DARWIN" = 1; then
33613 HAVE_DL_FUNCS=1
33614 else
33615
33616for ac_func in dlopen
33617do
33618as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33619echo "$as_me:$LINENO: checking for $ac_func" >&5
33620echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33621if eval "test \"\${$as_ac_var+set}\" = set"; then
33622 echo $ECHO_N "(cached) $ECHO_C" >&6
33623else
33624 cat >conftest.$ac_ext <<_ACEOF
33625/* confdefs.h. */
33626_ACEOF
33627cat confdefs.h >>conftest.$ac_ext
33628cat >>conftest.$ac_ext <<_ACEOF
33629/* end confdefs.h. */
ac1cb8d3
VS
33630/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33631 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33632#define $ac_func innocuous_$ac_func
33633
a848cd7e
SC
33634/* System header to define __stub macros and hopefully few prototypes,
33635 which can conflict with char $ac_func (); below.
33636 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33637 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33638
a848cd7e
SC
33639#ifdef __STDC__
33640# include <limits.h>
33641#else
33642# include <assert.h>
33643#endif
ac1cb8d3
VS
33644
33645#undef $ac_func
33646
a848cd7e
SC
33647/* Override any gcc2 internal prototype to avoid an error. */
33648#ifdef __cplusplus
33649extern "C"
33650{
33651#endif
33652/* We use char because int might match the return type of a gcc2
33653 builtin and then its argument prototype would still apply. */
33654char $ac_func ();
33655/* The GNU C library defines this for functions which it implements
33656 to always fail with ENOSYS. Some functions are actually named
33657 something starting with __ and the normal name is an alias. */
33658#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33659choke me
33660#else
33661char (*f) () = $ac_func;
33662#endif
33663#ifdef __cplusplus
33664}
33665#endif
33666
33667int
33668main ()
33669{
33670return f != $ac_func;
33671 ;
33672 return 0;
33673}
33674_ACEOF
33675rm -f conftest.$ac_objext conftest$ac_exeext
33676if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33677 (eval $ac_link) 2>conftest.er1
a848cd7e 33678 ac_status=$?
ac1cb8d3
VS
33679 grep -v '^ *+' conftest.er1 >conftest.err
33680 rm -f conftest.er1
33681 cat conftest.err >&5
a848cd7e
SC
33682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33683 (exit $ac_status); } &&
5294a27e 33684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33686 (eval $ac_try) 2>&5
33687 ac_status=$?
33688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33689 (exit $ac_status); }; } &&
33690 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33692 (eval $ac_try) 2>&5
33693 ac_status=$?
33694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33695 (exit $ac_status); }; }; then
33696 eval "$as_ac_var=yes"
33697else
33698 echo "$as_me: failed program was:" >&5
33699sed 's/^/| /' conftest.$ac_ext >&5
33700
33701eval "$as_ac_var=no"
33702fi
ac1cb8d3
VS
33703rm -f conftest.err conftest.$ac_objext \
33704 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33705fi
33706echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33707echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33708if test `eval echo '${'$as_ac_var'}'` = yes; then
33709 cat >>confdefs.h <<_ACEOF
33710#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33711_ACEOF
33712
33713 cat >>confdefs.h <<\_ACEOF
33714#define HAVE_DLOPEN 1
33715_ACEOF
33716
33717 HAVE_DL_FUNCS=1
33718
33719else
33720
33721 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
33722echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
33723if test "${ac_cv_lib_dl_dlopen+set}" = set; then
33724 echo $ECHO_N "(cached) $ECHO_C" >&6
33725else
33726 ac_check_lib_save_LIBS=$LIBS
33727LIBS="-ldl $LIBS"
33728cat >conftest.$ac_ext <<_ACEOF
33729/* confdefs.h. */
33730_ACEOF
33731cat confdefs.h >>conftest.$ac_ext
33732cat >>conftest.$ac_ext <<_ACEOF
33733/* end confdefs.h. */
33734
33735/* Override any gcc2 internal prototype to avoid an error. */
33736#ifdef __cplusplus
33737extern "C"
33738#endif
33739/* We use char because int might match the return type of a gcc2
33740 builtin and then its argument prototype would still apply. */
33741char dlopen ();
33742int
33743main ()
33744{
33745dlopen ();
33746 ;
33747 return 0;
33748}
33749_ACEOF
33750rm -f conftest.$ac_objext conftest$ac_exeext
33751if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33752 (eval $ac_link) 2>conftest.er1
a848cd7e 33753 ac_status=$?
ac1cb8d3
VS
33754 grep -v '^ *+' conftest.er1 >conftest.err
33755 rm -f conftest.er1
33756 cat conftest.err >&5
a848cd7e
SC
33757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33758 (exit $ac_status); } &&
5294a27e 33759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33761 (eval $ac_try) 2>&5
33762 ac_status=$?
33763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33764 (exit $ac_status); }; } &&
33765 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33767 (eval $ac_try) 2>&5
33768 ac_status=$?
33769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33770 (exit $ac_status); }; }; then
33771 ac_cv_lib_dl_dlopen=yes
33772else
33773 echo "$as_me: failed program was:" >&5
33774sed 's/^/| /' conftest.$ac_ext >&5
33775
33776ac_cv_lib_dl_dlopen=no
33777fi
ac1cb8d3
VS
33778rm -f conftest.err conftest.$ac_objext \
33779 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33780LIBS=$ac_check_lib_save_LIBS
33781fi
33782echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
33783echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
33784if test $ac_cv_lib_dl_dlopen = yes; then
33785
33786 cat >>confdefs.h <<\_ACEOF
33787#define HAVE_DLOPEN 1
33788_ACEOF
33789
33790 HAVE_DL_FUNCS=1
33791 DL_LINK=" -ldl$DL_LINK"
33792
33793else
33794
33795
33796for ac_func in shl_load
33797do
33798as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33799echo "$as_me:$LINENO: checking for $ac_func" >&5
33800echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33801if eval "test \"\${$as_ac_var+set}\" = set"; then
33802 echo $ECHO_N "(cached) $ECHO_C" >&6
33803else
33804 cat >conftest.$ac_ext <<_ACEOF
33805/* confdefs.h. */
33806_ACEOF
33807cat confdefs.h >>conftest.$ac_ext
33808cat >>conftest.$ac_ext <<_ACEOF
33809/* end confdefs.h. */
ac1cb8d3
VS
33810/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33812#define $ac_func innocuous_$ac_func
33813
a848cd7e
SC
33814/* System header to define __stub macros and hopefully few prototypes,
33815 which can conflict with char $ac_func (); below.
33816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33817 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33818
a848cd7e
SC
33819#ifdef __STDC__
33820# include <limits.h>
33821#else
33822# include <assert.h>
33823#endif
ac1cb8d3
VS
33824
33825#undef $ac_func
33826
a848cd7e
SC
33827/* Override any gcc2 internal prototype to avoid an error. */
33828#ifdef __cplusplus
33829extern "C"
33830{
33831#endif
33832/* We use char because int might match the return type of a gcc2
33833 builtin and then its argument prototype would still apply. */
33834char $ac_func ();
33835/* The GNU C library defines this for functions which it implements
33836 to always fail with ENOSYS. Some functions are actually named
33837 something starting with __ and the normal name is an alias. */
33838#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33839choke me
33840#else
33841char (*f) () = $ac_func;
33842#endif
33843#ifdef __cplusplus
33844}
33845#endif
33846
33847int
33848main ()
33849{
33850return f != $ac_func;
33851 ;
33852 return 0;
33853}
33854_ACEOF
33855rm -f conftest.$ac_objext conftest$ac_exeext
33856if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33857 (eval $ac_link) 2>conftest.er1
a848cd7e 33858 ac_status=$?
ac1cb8d3
VS
33859 grep -v '^ *+' conftest.er1 >conftest.err
33860 rm -f conftest.er1
33861 cat conftest.err >&5
a848cd7e
SC
33862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33863 (exit $ac_status); } &&
5294a27e 33864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33866 (eval $ac_try) 2>&5
33867 ac_status=$?
33868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33869 (exit $ac_status); }; } &&
33870 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33872 (eval $ac_try) 2>&5
33873 ac_status=$?
33874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33875 (exit $ac_status); }; }; then
33876 eval "$as_ac_var=yes"
33877else
33878 echo "$as_me: failed program was:" >&5
33879sed 's/^/| /' conftest.$ac_ext >&5
33880
33881eval "$as_ac_var=no"
33882fi
ac1cb8d3
VS
33883rm -f conftest.err conftest.$ac_objext \
33884 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33885fi
33886echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33887echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33888if test `eval echo '${'$as_ac_var'}'` = yes; then
33889 cat >>confdefs.h <<_ACEOF
33890#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33891_ACEOF
33892
33893 cat >>confdefs.h <<\_ACEOF
33894#define HAVE_SHL_LOAD 1
33895_ACEOF
33896
33897 HAVE_SHL_FUNCS=1
33898
33899else
33900
33901 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
33902echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
33903if test "${ac_cv_lib_shl_load_dld+set}" = set; then
33904 echo $ECHO_N "(cached) $ECHO_C" >&6
33905else
33906 ac_check_lib_save_LIBS=$LIBS
33907LIBS="-lshl_load $LIBS"
33908cat >conftest.$ac_ext <<_ACEOF
33909/* confdefs.h. */
33910_ACEOF
33911cat confdefs.h >>conftest.$ac_ext
33912cat >>conftest.$ac_ext <<_ACEOF
33913/* end confdefs.h. */
33914
33915/* Override any gcc2 internal prototype to avoid an error. */
33916#ifdef __cplusplus
33917extern "C"
33918#endif
33919/* We use char because int might match the return type of a gcc2
33920 builtin and then its argument prototype would still apply. */
33921char dld ();
33922int
33923main ()
33924{
33925dld ();
33926 ;
33927 return 0;
33928}
33929_ACEOF
33930rm -f conftest.$ac_objext conftest$ac_exeext
33931if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33932 (eval $ac_link) 2>conftest.er1
a848cd7e 33933 ac_status=$?
ac1cb8d3
VS
33934 grep -v '^ *+' conftest.er1 >conftest.err
33935 rm -f conftest.er1
33936 cat conftest.err >&5
a848cd7e
SC
33937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33938 (exit $ac_status); } &&
5294a27e 33939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33941 (eval $ac_try) 2>&5
33942 ac_status=$?
33943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33944 (exit $ac_status); }; } &&
33945 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33947 (eval $ac_try) 2>&5
33948 ac_status=$?
33949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33950 (exit $ac_status); }; }; then
33951 ac_cv_lib_shl_load_dld=yes
33952else
33953 echo "$as_me: failed program was:" >&5
33954sed 's/^/| /' conftest.$ac_ext >&5
33955
33956ac_cv_lib_shl_load_dld=no
33957fi
ac1cb8d3
VS
33958rm -f conftest.err conftest.$ac_objext \
33959 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33960LIBS=$ac_check_lib_save_LIBS
33961fi
33962echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
33963echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
33964if test $ac_cv_lib_shl_load_dld = yes; then
33965
33966 HAVE_SHL_FUNCS=1
33967 DL_LINK=" -ldld$DL_LINK"
33968
33969fi
33970
33971
33972fi
33973done
33974
33975
33976fi
33977
33978
33979fi
33980done
33981
33982
33983 if test "$HAVE_DL_FUNCS" = 1; then
33984
33985for ac_func in dlerror
33986do
33987as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33988echo "$as_me:$LINENO: checking for $ac_func" >&5
33989echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33990if eval "test \"\${$as_ac_var+set}\" = set"; then
33991 echo $ECHO_N "(cached) $ECHO_C" >&6
33992else
33993 cat >conftest.$ac_ext <<_ACEOF
33994/* confdefs.h. */
33995_ACEOF
33996cat confdefs.h >>conftest.$ac_ext
33997cat >>conftest.$ac_ext <<_ACEOF
33998/* end confdefs.h. */
ac1cb8d3
VS
33999/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34000 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34001#define $ac_func innocuous_$ac_func
34002
a848cd7e
SC
34003/* System header to define __stub macros and hopefully few prototypes,
34004 which can conflict with char $ac_func (); below.
34005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34006 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34007
a848cd7e
SC
34008#ifdef __STDC__
34009# include <limits.h>
34010#else
34011# include <assert.h>
34012#endif
ac1cb8d3
VS
34013
34014#undef $ac_func
34015
a848cd7e
SC
34016/* Override any gcc2 internal prototype to avoid an error. */
34017#ifdef __cplusplus
34018extern "C"
34019{
34020#endif
34021/* We use char because int might match the return type of a gcc2
34022 builtin and then its argument prototype would still apply. */
34023char $ac_func ();
34024/* The GNU C library defines this for functions which it implements
34025 to always fail with ENOSYS. Some functions are actually named
34026 something starting with __ and the normal name is an alias. */
34027#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34028choke me
34029#else
34030char (*f) () = $ac_func;
34031#endif
34032#ifdef __cplusplus
34033}
34034#endif
34035
34036int
34037main ()
34038{
34039return f != $ac_func;
34040 ;
34041 return 0;
34042}
34043_ACEOF
34044rm -f conftest.$ac_objext conftest$ac_exeext
34045if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34046 (eval $ac_link) 2>conftest.er1
a848cd7e 34047 ac_status=$?
ac1cb8d3
VS
34048 grep -v '^ *+' conftest.er1 >conftest.err
34049 rm -f conftest.er1
34050 cat conftest.err >&5
a848cd7e
SC
34051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34052 (exit $ac_status); } &&
5294a27e 34053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
34059 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34061 (eval $ac_try) 2>&5
34062 ac_status=$?
34063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34064 (exit $ac_status); }; }; then
34065 eval "$as_ac_var=yes"
34066else
34067 echo "$as_me: failed program was:" >&5
34068sed 's/^/| /' conftest.$ac_ext >&5
34069
34070eval "$as_ac_var=no"
34071fi
ac1cb8d3
VS
34072rm -f conftest.err conftest.$ac_objext \
34073 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34074fi
34075echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34076echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34077if test `eval echo '${'$as_ac_var'}'` = yes; then
34078 cat >>confdefs.h <<_ACEOF
34079#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34080_ACEOF
34081 cat >>confdefs.h <<\_ACEOF
34082#define HAVE_DLERROR 1
34083_ACEOF
34084
34085else
34086
34087 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
34088echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
34089if test "${ac_cv_lib_dl_dlerror+set}" = set; then
34090 echo $ECHO_N "(cached) $ECHO_C" >&6
34091else
34092 ac_check_lib_save_LIBS=$LIBS
34093LIBS="-ldl $LIBS"
34094cat >conftest.$ac_ext <<_ACEOF
34095/* confdefs.h. */
34096_ACEOF
34097cat confdefs.h >>conftest.$ac_ext
34098cat >>conftest.$ac_ext <<_ACEOF
34099/* end confdefs.h. */
34100
34101/* Override any gcc2 internal prototype to avoid an error. */
34102#ifdef __cplusplus
34103extern "C"
34104#endif
34105/* We use char because int might match the return type of a gcc2
34106 builtin and then its argument prototype would still apply. */
34107char dlerror ();
34108int
34109main ()
34110{
34111dlerror ();
34112 ;
34113 return 0;
34114}
34115_ACEOF
34116rm -f conftest.$ac_objext conftest$ac_exeext
34117if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34118 (eval $ac_link) 2>conftest.er1
a848cd7e 34119 ac_status=$?
ac1cb8d3
VS
34120 grep -v '^ *+' conftest.er1 >conftest.err
34121 rm -f conftest.er1
34122 cat conftest.err >&5
a848cd7e
SC
34123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34124 (exit $ac_status); } &&
5294a27e 34125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34127 (eval $ac_try) 2>&5
34128 ac_status=$?
34129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34130 (exit $ac_status); }; } &&
34131 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34133 (eval $ac_try) 2>&5
34134 ac_status=$?
34135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34136 (exit $ac_status); }; }; then
34137 ac_cv_lib_dl_dlerror=yes
34138else
34139 echo "$as_me: failed program was:" >&5
34140sed 's/^/| /' conftest.$ac_ext >&5
34141
34142ac_cv_lib_dl_dlerror=no
34143fi
ac1cb8d3
VS
34144rm -f conftest.err conftest.$ac_objext \
34145 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34146LIBS=$ac_check_lib_save_LIBS
34147fi
34148echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
34149echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
34150if test $ac_cv_lib_dl_dlerror = yes; then
34151 cat >>confdefs.h <<\_ACEOF
34152#define HAVE_DLERROR 1
34153_ACEOF
34154
34155fi
34156
34157
34158
34159fi
34160done
34161
34162 fi
34163 fi
34164
34165 if test "$HAVE_DL_FUNCS" = 0; then
34166 if test "$HAVE_SHL_FUNCS" = 0; then
34167 if test "$USE_UNIX" = 1; then
34168 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
34169echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
34170 wxUSE_DYNAMIC_LOADER=no
34171 wxUSE_DYNLIB_CLASS=no
34172 else
34173 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
34174echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
34175 fi
34176 fi
34177 fi
34178 fi
34179fi
34180
34181if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
34182 cat >>confdefs.h <<\_ACEOF
34183#define wxUSE_DYNAMIC_LOADER 1
34184_ACEOF
34185
34186fi
34187if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
34188 cat >>confdefs.h <<\_ACEOF
34189#define wxUSE_DYNLIB_CLASS 1
34190_ACEOF
34191
34192fi
34193
34194
34195
34196if test "$wxUSE_PLUGINS" = "yes" ; then
34197 if test "$wxUSE_SHARED" = "no" ; then
34198 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
34199echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
34200 wxUSE_PLUGINS=no
34201 fi
34202 if test "$wxUSE_MONOLITHIC" = "yes" ; then
34203 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
34204echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
34205 wxUSE_PLUGINS=no
34206 fi
34207 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
34208 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
34209echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
34210 wxUSE_PLUGINS=no
34211 fi
34212 if test "$wxUSE_PLUGINS" = "yes" ; then
34213 cat >>confdefs.h <<\_ACEOF
34214#define wxUSE_PLUGINS 1
34215_ACEOF
34216
34217 fi
34218fi
34219
34220
34221if test "$wxUSE_STL" = "yes"; then
34222 cat >>confdefs.h <<\_ACEOF
34223#define wxUSE_STL 1
34224_ACEOF
34225
34226fi
34227
34228if test "$wxUSE_APPLE_IEEE" = "yes"; then
34229 cat >>confdefs.h <<\_ACEOF
34230#define wxUSE_APPLE_IEEE 1
34231_ACEOF
34232
34233fi
34234
34235if test "$wxUSE_TIMER" = "yes"; then
34236 cat >>confdefs.h <<\_ACEOF
34237#define wxUSE_TIMER 1
34238_ACEOF
34239
34240fi
34241
34242WITH_PLUGIN_SDL=0
34243if test "$wxUSE_SOUND" = "yes"; then
34244 if test "$USE_UNIX" = "1" ; then
34245
34246for ac_header in sys/soundcard.h
34247do
34248as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34249if eval "test \"\${$as_ac_Header+set}\" = set"; then
34250 echo "$as_me:$LINENO: checking for $ac_header" >&5
34251echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34252if eval "test \"\${$as_ac_Header+set}\" = set"; then
34253 echo $ECHO_N "(cached) $ECHO_C" >&6
34254fi
34255echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34256echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34257else
34258 # Is the header compilable?
34259echo "$as_me:$LINENO: checking $ac_header usability" >&5
34260echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34261cat >conftest.$ac_ext <<_ACEOF
34262/* confdefs.h. */
34263_ACEOF
34264cat confdefs.h >>conftest.$ac_ext
34265cat >>conftest.$ac_ext <<_ACEOF
34266/* end confdefs.h. */
34267$ac_includes_default
34268#include <$ac_header>
34269_ACEOF
34270rm -f conftest.$ac_objext
34271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34272 (eval $ac_compile) 2>conftest.er1
a848cd7e 34273 ac_status=$?
ac1cb8d3
VS
34274 grep -v '^ *+' conftest.er1 >conftest.err
34275 rm -f conftest.er1
34276 cat conftest.err >&5
a848cd7e
SC
34277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34278 (exit $ac_status); } &&
5294a27e 34279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34281 (eval $ac_try) 2>&5
34282 ac_status=$?
34283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34284 (exit $ac_status); }; } &&
34285 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34287 (eval $ac_try) 2>&5
34288 ac_status=$?
34289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34290 (exit $ac_status); }; }; then
34291 ac_header_compiler=yes
34292else
34293 echo "$as_me: failed program was:" >&5
34294sed 's/^/| /' conftest.$ac_ext >&5
34295
34296ac_header_compiler=no
34297fi
ac1cb8d3 34298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34299echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34300echo "${ECHO_T}$ac_header_compiler" >&6
34301
34302# Is the header present?
34303echo "$as_me:$LINENO: checking $ac_header presence" >&5
34304echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34305cat >conftest.$ac_ext <<_ACEOF
34306/* confdefs.h. */
34307_ACEOF
34308cat confdefs.h >>conftest.$ac_ext
34309cat >>conftest.$ac_ext <<_ACEOF
34310/* end confdefs.h. */
34311#include <$ac_header>
34312_ACEOF
34313if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34314 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34315 ac_status=$?
34316 grep -v '^ *+' conftest.er1 >conftest.err
34317 rm -f conftest.er1
34318 cat conftest.err >&5
34319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34320 (exit $ac_status); } >/dev/null; then
34321 if test -s conftest.err; then
34322 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 34323 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
34324 else
34325 ac_cpp_err=
34326 fi
34327else
34328 ac_cpp_err=yes
34329fi
34330if test -z "$ac_cpp_err"; then
34331 ac_header_preproc=yes
34332else
34333 echo "$as_me: failed program was:" >&5
34334sed 's/^/| /' conftest.$ac_ext >&5
34335
34336 ac_header_preproc=no
34337fi
34338rm -f conftest.err conftest.$ac_ext
34339echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34340echo "${ECHO_T}$ac_header_preproc" >&6
34341
34342# So? What about this header?
ac1cb8d3
VS
34343case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34344 yes:no: )
a848cd7e
SC
34345 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34346echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
34347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34348echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34349 ac_header_preproc=yes
a848cd7e 34350 ;;
ac1cb8d3 34351 no:yes:* )
a848cd7e
SC
34352 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34353echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
34354 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34355echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34356 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34357echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34358 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34359echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
34360 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34361echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
34362 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34363echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
34364 (
34365 cat <<\_ASBOX
ac1cb8d3
VS
34366## ----------------------------------------- ##
34367## Report this to wx-dev@lists.wxwidgets.org ##
34368## ----------------------------------------- ##
a848cd7e
SC
34369_ASBOX
34370 ) |
34371 sed "s/^/$as_me: WARNING: /" >&2
34372 ;;
34373esac
34374echo "$as_me:$LINENO: checking for $ac_header" >&5
34375echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34376if eval "test \"\${$as_ac_Header+set}\" = set"; then
34377 echo $ECHO_N "(cached) $ECHO_C" >&6
34378else
ac1cb8d3 34379 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
34380fi
34381echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34382echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34383
34384fi
34385if test `eval echo '${'$as_ac_Header'}'` = yes; then
34386 cat >>confdefs.h <<_ACEOF
34387#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34388_ACEOF
34389
34390fi
34391
34392done
34393
34394
34395 if test "$wxUSE_LIBSDL" != "no"; then
34396
34397# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
34398if test "${with_sdl_prefix+set}" = set; then
34399 withval="$with_sdl_prefix"
34400 sdl_prefix="$withval"
34401else
34402 sdl_prefix=""
34403fi;
34404
34405# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
34406if test "${with_sdl_exec_prefix+set}" = set; then
34407 withval="$with_sdl_exec_prefix"
34408 sdl_exec_prefix="$withval"
34409else
34410 sdl_exec_prefix=""
34411fi;
34412# Check whether --enable-sdltest or --disable-sdltest was given.
34413if test "${enable_sdltest+set}" = set; then
34414 enableval="$enable_sdltest"
34415
34416else
34417 enable_sdltest=yes
34418fi;
34419
34420 if test x$sdl_exec_prefix != x ; then
34421 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
34422 if test x${SDL_CONFIG+set} != xset ; then
34423 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
34424 fi
34425 fi
34426 if test x$sdl_prefix != x ; then
34427 sdl_args="$sdl_args --prefix=$sdl_prefix"
34428 if test x${SDL_CONFIG+set} != xset ; then
34429 SDL_CONFIG=$sdl_prefix/bin/sdl-config
34430 fi
34431 fi
34432
34433
34434 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
34435 # Extract the first word of "sdl-config", so it can be a program name with args.
34436set dummy sdl-config; ac_word=$2
34437echo "$as_me:$LINENO: checking for $ac_word" >&5
34438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34439if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
34440 echo $ECHO_N "(cached) $ECHO_C" >&6
34441else
34442 case $SDL_CONFIG in
34443 [\\/]* | ?:[\\/]*)
34444 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
34445 ;;
34446 *)
34447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34448for as_dir in $PATH
34449do
34450 IFS=$as_save_IFS
34451 test -z "$as_dir" && as_dir=.
34452 for ac_exec_ext in '' $ac_executable_extensions; do
34453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34454 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34456 break 2
34457 fi
34458done
34459done
34460
34461 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
34462 ;;
34463esac
34464fi
34465SDL_CONFIG=$ac_cv_path_SDL_CONFIG
34466
34467if test -n "$SDL_CONFIG"; then
34468 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
34469echo "${ECHO_T}$SDL_CONFIG" >&6
34470else
34471 echo "$as_me:$LINENO: result: no" >&5
34472echo "${ECHO_T}no" >&6
34473fi
34474
34475 min_sdl_version=1.2.0
34476 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
34477echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
34478 no_sdl=""
34479 if test "$SDL_CONFIG" = "no" ; then
34480 no_sdl=yes
34481 else
34482 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
34483 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
34484
34485 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
34486 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
34487 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
34488 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
34489 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
34490 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
34491 if test "x$enable_sdltest" = "xyes" ; then
34492 ac_save_CFLAGS="$CFLAGS"
1e9e8aba 34493 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
34494 ac_save_LIBS="$LIBS"
34495 CFLAGS="$CFLAGS $SDL_CFLAGS"
1e9e8aba 34496 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
34497 LIBS="$LIBS $SDL_LIBS"
34498 rm -f conf.sdltest
34499 if test "$cross_compiling" = yes; then
34500 echo $ac_n "cross compiling; assumed OK... $ac_c"
34501else
34502 cat >conftest.$ac_ext <<_ACEOF
34503/* confdefs.h. */
34504_ACEOF
34505cat confdefs.h >>conftest.$ac_ext
34506cat >>conftest.$ac_ext <<_ACEOF
34507/* end confdefs.h. */
34508
34509#include <stdio.h>
34510#include <stdlib.h>
34511#include <string.h>
34512#include "SDL.h"
34513
34514char*
34515my_strdup (char *str)
34516{
34517 char *new_str;
34518
34519 if (str)
34520 {
34521 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
34522 strcpy (new_str, str);
34523 }
34524 else
34525 new_str = NULL;
34526
34527 return new_str;
34528}
34529
34530int main (int argc, char *argv[])
34531{
34532 int major, minor, micro;
34533 char *tmp_version;
34534
34535 /* This hangs on some systems (?)
34536 system ("touch conf.sdltest");
34537 */
34538 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
34539
34540 /* HP/UX 9 (%@#!) writes to sscanf strings */
34541 tmp_version = my_strdup("$min_sdl_version");
34542 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
34543 printf("%s, bad version string\n", "$min_sdl_version");
34544 exit(1);
34545 }
34546
34547 if (($sdl_major_version > major) ||
34548 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
34549 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
34550 {
34551 return 0;
34552 }
34553 else
34554 {
34555 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
34556 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
34557 printf("*** best to upgrade to the required version.\n");
34558 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
34559 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
34560 printf("*** config.cache before re-running configure\n");
34561 return 1;
34562 }
34563}
34564
34565
34566_ACEOF
34567rm -f conftest$ac_exeext
34568if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34569 (eval $ac_link) 2>&5
34570 ac_status=$?
34571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34572 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34574 (eval $ac_try) 2>&5
34575 ac_status=$?
34576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34577 (exit $ac_status); }; }; then
34578 :
34579else
34580 echo "$as_me: program exited with status $ac_status" >&5
34581echo "$as_me: failed program was:" >&5
34582sed 's/^/| /' conftest.$ac_ext >&5
34583
34584( exit $ac_status )
34585no_sdl=yes
34586fi
ac1cb8d3 34587rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34588fi
34589 CFLAGS="$ac_save_CFLAGS"
1e9e8aba 34590 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
34591 LIBS="$ac_save_LIBS"
34592 fi
34593 fi
34594 if test "x$no_sdl" = x ; then
34595 echo "$as_me:$LINENO: result: yes" >&5
34596echo "${ECHO_T}yes" >&6
34597
34598 EXTRALIBS_SDL="$SDL_LIBS"
34599 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
34600 cat >>confdefs.h <<\_ACEOF
34601#define wxUSE_LIBSDL 1
34602_ACEOF
34603
34604
34605 else
34606 echo "$as_me:$LINENO: result: no" >&5
34607echo "${ECHO_T}no" >&6
34608 if test "$SDL_CONFIG" = "no" ; then
34609 echo "*** The sdl-config script installed by SDL could not be found"
34610 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
34611 echo "*** your path, or set the SDL_CONFIG environment variable to the"
34612 echo "*** full path to sdl-config."
34613 else
34614 if test -f conf.sdltest ; then
34615 :
34616 else
34617 echo "*** Could not run SDL test program, checking why..."
34618 CFLAGS="$CFLAGS $SDL_CFLAGS"
1e9e8aba 34619 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
34620 LIBS="$LIBS $SDL_LIBS"
34621 cat >conftest.$ac_ext <<_ACEOF
34622/* confdefs.h. */
34623_ACEOF
34624cat confdefs.h >>conftest.$ac_ext
34625cat >>conftest.$ac_ext <<_ACEOF
34626/* end confdefs.h. */
34627
34628#include <stdio.h>
34629#include "SDL.h"
34630
34631int main(int argc, char *argv[])
34632{ return 0; }
34633#undef main
34634#define main K_and_R_C_main
34635
34636int
34637main ()
34638{
34639 return 0;
34640 ;
34641 return 0;
34642}
34643_ACEOF
34644rm -f conftest.$ac_objext conftest$ac_exeext
34645if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34646 (eval $ac_link) 2>conftest.er1
a848cd7e 34647 ac_status=$?
ac1cb8d3
VS
34648 grep -v '^ *+' conftest.er1 >conftest.err
34649 rm -f conftest.er1
34650 cat conftest.err >&5
a848cd7e
SC
34651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34652 (exit $ac_status); } &&
5294a27e 34653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34655 (eval $ac_try) 2>&5
34656 ac_status=$?
34657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34658 (exit $ac_status); }; } &&
34659 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34661 (eval $ac_try) 2>&5
34662 ac_status=$?
34663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34664 (exit $ac_status); }; }; then
34665 echo "*** The test program compiled, but did not run. This usually means"
34666 echo "*** that the run-time linker is not finding SDL or finding the wrong"
34667 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
34668 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
34669 echo "*** to the installed location Also, make sure you have run ldconfig if that"
34670 echo "*** is required on your system"
34671 echo "***"
34672 echo "*** If you have an old version installed, it is best to remove it, although"
34673 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
34674else
34675 echo "$as_me: failed program was:" >&5
34676sed 's/^/| /' conftest.$ac_ext >&5
34677
34678 echo "*** The test program failed to compile or link. See the file config.log for the"
34679 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
34680 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
34681 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
34682fi
ac1cb8d3
VS
34683rm -f conftest.err conftest.$ac_objext \
34684 conftest$ac_exeext conftest.$ac_ext
a848cd7e 34685 CFLAGS="$ac_save_CFLAGS"
1e9e8aba 34686 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
34687 LIBS="$ac_save_LIBS"
34688 fi
34689 fi
34690 SDL_CFLAGS=""
34691 SDL_LIBS=""
34692 wxUSE_LIBSDL="no"
34693 fi
34694
34695
34696 rm -f conf.sdltest
34697
34698 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
34699 WITH_PLUGIN_SDL=1
34700 fi
34701 fi
34702 fi
34703
34704 cat >>confdefs.h <<\_ACEOF
34705#define wxUSE_SOUND 1
34706_ACEOF
34707
34708 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
34709fi
34710
d1c38808
VZ
34711if test "$WXGTK20" = 1; then
34712 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
34713 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
34714
34715
34716 succeeded=no
34717
34718 if test -z "$PKG_CONFIG"; then
34719 # Extract the first word of "pkg-config", so it can be a program name with args.
34720set dummy pkg-config; ac_word=$2
34721echo "$as_me:$LINENO: checking for $ac_word" >&5
34722echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34723if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
34724 echo $ECHO_N "(cached) $ECHO_C" >&6
34725else
34726 case $PKG_CONFIG in
34727 [\\/]* | ?:[\\/]*)
34728 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
34729 ;;
34730 *)
34731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34732for as_dir in $PATH
34733do
34734 IFS=$as_save_IFS
34735 test -z "$as_dir" && as_dir=.
34736 for ac_exec_ext in '' $ac_executable_extensions; do
34737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34738 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34740 break 2
34741 fi
34742done
34743done
34744
34745 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
34746 ;;
34747esac
34748fi
34749PKG_CONFIG=$ac_cv_path_PKG_CONFIG
34750
34751if test -n "$PKG_CONFIG"; then
34752 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
34753echo "${ECHO_T}$PKG_CONFIG" >&6
34754else
34755 echo "$as_me:$LINENO: result: no" >&5
34756echo "${ECHO_T}no" >&6
34757fi
34758
34759 fi
34760
34761 if test "$PKG_CONFIG" = "no" ; then
34762 echo "*** The pkg-config script could not be found. Make sure it is"
34763 echo "*** in your path, or set the PKG_CONFIG environment variable"
34764 echo "*** to the full path to pkg-config."
34765 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
34766 else
34767 PKG_CONFIG_MIN_VERSION=0.9.0
34768 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
34769 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
34770echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 34771
ffa762ff 34772 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
34773 echo "$as_me:$LINENO: result: yes" >&5
34774echo "${ECHO_T}yes" >&6
34775 succeeded=yes
34776
34777 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
34778echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 34779 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
34780 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
34781echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
34782
34783 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
34784echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 34785 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
34786 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
34787echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
34788 else
34789 LIBGNOMEPRINTUI_CFLAGS=""
34790 LIBGNOMEPRINTUI_LIBS=""
34791 ## If we have a custom action on failure, don't print errors, but
34792 ## do set a variable so people can do so.
ffa762ff 34793 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
34794
34795 fi
34796
34797
34798
34799 else
34800 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
34801 echo "*** See http://www.freedesktop.org/software/pkgconfig"
34802 fi
34803 fi
34804
34805 if test $succeeded = yes; then
34806
d1c38808
VZ
34807 CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS"
34808 cat >>confdefs.h <<\_ACEOF
34809#define wxUSE_LIBGNOMEPRINT 1
34810_ACEOF
34811
34812
34813 else
34814
34815 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
34816echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
34817 wxUSE_LIBGNOMEPRINT="no"
34818
34819
34820 fi
34821
34822 fi
34823 fi
34824fi
34825
34826
a848cd7e
SC
34827if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
34828 cat >>confdefs.h <<\_ACEOF
34829#define wxUSE_CMDLINE_PARSER 1
34830_ACEOF
34831
34832fi
34833
34834if test "$wxUSE_STOPWATCH" = "yes"; then
34835 cat >>confdefs.h <<\_ACEOF
34836#define wxUSE_STOPWATCH 1
34837_ACEOF
34838
34839fi
34840
34841if test "$wxUSE_DATETIME" = "yes"; then
34842 cat >>confdefs.h <<\_ACEOF
34843#define wxUSE_DATETIME 1
34844_ACEOF
34845
34846fi
34847
34848if test "$wxUSE_FILE" = "yes"; then
34849 cat >>confdefs.h <<\_ACEOF
34850#define wxUSE_FILE 1
34851_ACEOF
34852
34853fi
34854
34855if test "$wxUSE_FFILE" = "yes"; then
34856 cat >>confdefs.h <<\_ACEOF
34857#define wxUSE_FFILE 1
34858_ACEOF
34859
34860fi
34861
34862if test "$wxUSE_FILESYSTEM" = "yes"; then
34863 cat >>confdefs.h <<\_ACEOF
34864#define wxUSE_FILESYSTEM 1
34865_ACEOF
34866
34867fi
34868
34869if test "$wxUSE_FS_ZIP" = "yes"; then
34870 cat >>confdefs.h <<\_ACEOF
34871#define wxUSE_FS_ZIP 1
34872_ACEOF
34873
34874fi
34875
34876if test "$wxUSE_ZIPSTREAM" = "yes"; then
34877 cat >>confdefs.h <<\_ACEOF
34878#define wxUSE_ZIPSTREAM 1
34879_ACEOF
34880
34881fi
34882
a848cd7e
SC
34883if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
34884 cat >>confdefs.h <<\_ACEOF
34885#define wxUSE_ON_FATAL_EXCEPTION 1
34886_ACEOF
34887
34888fi
34889
34890if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
34891 cat >>confdefs.h <<\_ACEOF
34892#define wxUSE_SNGLINST_CHECKER 1
34893_ACEOF
34894
34895fi
34896
34897if test "$wxUSE_BUSYINFO" = "yes"; then
34898 cat >>confdefs.h <<\_ACEOF
34899#define wxUSE_BUSYINFO 1
34900_ACEOF
34901
34902fi
34903
34904if test "$wxUSE_STD_IOSTREAM" = "yes"; then
34905 cat >>confdefs.h <<\_ACEOF
34906#define wxUSE_STD_IOSTREAM 1
34907_ACEOF
34908
34909fi
34910
34911if test "$wxUSE_TEXTBUFFER" = "yes"; then
34912 cat >>confdefs.h <<\_ACEOF
34913#define wxUSE_TEXTBUFFER 1
34914_ACEOF
34915
34916fi
34917
34918if test "$wxUSE_TEXTFILE" = "yes"; then
34919 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
34920 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
34921echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
34922 else
34923 cat >>confdefs.h <<\_ACEOF
34924#define wxUSE_TEXTFILE 1
34925_ACEOF
34926
34927 fi
34928fi
34929
34930if test "$wxUSE_CONFIG" = "yes" ; then
34931 if test "$wxUSE_TEXTFILE" != "yes"; then
34932 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
34933echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
34934 else
34935 cat >>confdefs.h <<\_ACEOF
34936#define wxUSE_CONFIG 1
34937_ACEOF
34938
34939 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
34940 fi
34941fi
34942
34943if test "$wxUSE_INTL" = "yes" ; then
34944 if test "$wxUSE_FILE" != "yes"; then
34945 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
34946echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
34947 else
34948 cat >>confdefs.h <<\_ACEOF
34949#define wxUSE_INTL 1
34950_ACEOF
34951
34952 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
34953 GUIDIST="$GUIDIST INTL_DIST"
34954 fi
34955fi
34956
34957if test "$wxUSE_LOG" = "yes"; then
34958 cat >>confdefs.h <<\_ACEOF
34959#define wxUSE_LOG 1
34960_ACEOF
34961
34962
34963 if test "$wxUSE_LOGGUI" = "yes"; then
34964 cat >>confdefs.h <<\_ACEOF
34965#define wxUSE_LOGGUI 1
34966_ACEOF
34967
34968 fi
34969
34970 if test "$wxUSE_LOGWINDOW" = "yes"; then
34971 cat >>confdefs.h <<\_ACEOF
34972#define wxUSE_LOGWINDOW 1
34973_ACEOF
34974
34975 fi
34976
34977 if test "$wxUSE_LOGDIALOG" = "yes"; then
34978 cat >>confdefs.h <<\_ACEOF
34979#define wxUSE_LOG_DIALOG 1
34980_ACEOF
34981
34982 fi
34983fi
34984
34985if test "$wxUSE_LONGLONG" = "yes"; then
34986 cat >>confdefs.h <<\_ACEOF
34987#define wxUSE_LONGLONG 1
34988_ACEOF
34989
34990fi
34991
34992if test "$wxUSE_GEOMETRY" = "yes"; then
34993 cat >>confdefs.h <<\_ACEOF
34994#define wxUSE_GEOMETRY 1
34995_ACEOF
34996
34997fi
34998
34999if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
35000 cat >>confdefs.h <<\_ACEOF
35001#define wxUSE_DIALUP_MANAGER 1
35002_ACEOF
35003
35004 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
35005fi
35006
35007if test "$wxUSE_STREAMS" = "yes" ; then
35008 cat >>confdefs.h <<\_ACEOF
35009#define wxUSE_STREAMS 1
35010_ACEOF
35011
35012fi
35013
35014
35015if test "$wxUSE_DATETIME" = "yes"; then
35016
35017for ac_func in strptime
35018do
35019as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35020echo "$as_me:$LINENO: checking for $ac_func" >&5
35021echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35022if eval "test \"\${$as_ac_var+set}\" = set"; then
35023 echo $ECHO_N "(cached) $ECHO_C" >&6
35024else
35025 cat >conftest.$ac_ext <<_ACEOF
35026/* confdefs.h. */
35027_ACEOF
35028cat confdefs.h >>conftest.$ac_ext
35029cat >>conftest.$ac_ext <<_ACEOF
35030/* end confdefs.h. */
ac1cb8d3
VS
35031/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35032 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35033#define $ac_func innocuous_$ac_func
35034
a848cd7e
SC
35035/* System header to define __stub macros and hopefully few prototypes,
35036 which can conflict with char $ac_func (); below.
35037 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35038 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35039
a848cd7e
SC
35040#ifdef __STDC__
35041# include <limits.h>
35042#else
35043# include <assert.h>
35044#endif
ac1cb8d3
VS
35045
35046#undef $ac_func
35047
a848cd7e
SC
35048/* Override any gcc2 internal prototype to avoid an error. */
35049#ifdef __cplusplus
35050extern "C"
35051{
35052#endif
35053/* We use char because int might match the return type of a gcc2
35054 builtin and then its argument prototype would still apply. */
35055char $ac_func ();
35056/* The GNU C library defines this for functions which it implements
35057 to always fail with ENOSYS. Some functions are actually named
35058 something starting with __ and the normal name is an alias. */
35059#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35060choke me
35061#else
35062char (*f) () = $ac_func;
35063#endif
35064#ifdef __cplusplus
35065}
35066#endif
35067
35068int
35069main ()
35070{
35071return f != $ac_func;
35072 ;
35073 return 0;
35074}
35075_ACEOF
35076rm -f conftest.$ac_objext conftest$ac_exeext
35077if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35078 (eval $ac_link) 2>conftest.er1
a848cd7e 35079 ac_status=$?
ac1cb8d3
VS
35080 grep -v '^ *+' conftest.er1 >conftest.err
35081 rm -f conftest.er1
35082 cat conftest.err >&5
a848cd7e
SC
35083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35084 (exit $ac_status); } &&
5294a27e 35085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35087 (eval $ac_try) 2>&5
35088 ac_status=$?
35089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35090 (exit $ac_status); }; } &&
35091 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35093 (eval $ac_try) 2>&5
35094 ac_status=$?
35095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35096 (exit $ac_status); }; }; then
35097 eval "$as_ac_var=yes"
35098else
35099 echo "$as_me: failed program was:" >&5
35100sed 's/^/| /' conftest.$ac_ext >&5
35101
35102eval "$as_ac_var=no"
35103fi
ac1cb8d3
VS
35104rm -f conftest.err conftest.$ac_objext \
35105 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35106fi
35107echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35108echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35109if test `eval echo '${'$as_ac_var'}'` = yes; then
35110 cat >>confdefs.h <<_ACEOF
35111#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35112_ACEOF
35113
35114fi
35115done
35116
35117
35118 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
35119echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
35120if test "${wx_cv_var_timezone+set}" = set; then
35121 echo $ECHO_N "(cached) $ECHO_C" >&6
35122else
35123
35124 cat >conftest.$ac_ext <<_ACEOF
35125/* confdefs.h. */
35126_ACEOF
35127cat confdefs.h >>conftest.$ac_ext
35128cat >>conftest.$ac_ext <<_ACEOF
35129/* end confdefs.h. */
35130
35131 #include <time.h>
35132
35133int
35134main ()
35135{
35136
35137 int tz;
35138 tz = timezone;
35139
35140 ;
35141 return 0;
35142}
35143_ACEOF
35144rm -f conftest.$ac_objext
35145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35146 (eval $ac_compile) 2>conftest.er1
a848cd7e 35147 ac_status=$?
ac1cb8d3
VS
35148 grep -v '^ *+' conftest.er1 >conftest.err
35149 rm -f conftest.er1
35150 cat conftest.err >&5
a848cd7e
SC
35151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35152 (exit $ac_status); } &&
5294a27e 35153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35155 (eval $ac_try) 2>&5
35156 ac_status=$?
35157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35158 (exit $ac_status); }; } &&
35159 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35161 (eval $ac_try) 2>&5
35162 ac_status=$?
35163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35164 (exit $ac_status); }; }; then
35165
35166 wx_cv_var_timezone=timezone
35167
35168else
35169 echo "$as_me: failed program was:" >&5
35170sed 's/^/| /' conftest.$ac_ext >&5
35171
35172
35173 cat >conftest.$ac_ext <<_ACEOF
35174/* confdefs.h. */
35175_ACEOF
35176cat confdefs.h >>conftest.$ac_ext
35177cat >>conftest.$ac_ext <<_ACEOF
35178/* end confdefs.h. */
35179
35180 #include <time.h>
35181
35182int
35183main ()
35184{
35185
35186 int tz;
35187 tz = _timezone;
35188
35189 ;
35190 return 0;
35191}
35192_ACEOF
35193rm -f conftest.$ac_objext
35194if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35195 (eval $ac_compile) 2>conftest.er1
a848cd7e 35196 ac_status=$?
ac1cb8d3
VS
35197 grep -v '^ *+' conftest.er1 >conftest.err
35198 rm -f conftest.er1
35199 cat conftest.err >&5
a848cd7e
SC
35200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35201 (exit $ac_status); } &&
5294a27e 35202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35204 (eval $ac_try) 2>&5
35205 ac_status=$?
35206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35207 (exit $ac_status); }; } &&
35208 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35210 (eval $ac_try) 2>&5
35211 ac_status=$?
35212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35213 (exit $ac_status); }; }; then
35214
35215 wx_cv_var_timezone=_timezone
35216
35217else
35218 echo "$as_me: failed program was:" >&5
35219sed 's/^/| /' conftest.$ac_ext >&5
35220
35221
35222 cat >conftest.$ac_ext <<_ACEOF
35223/* confdefs.h. */
35224_ACEOF
35225cat confdefs.h >>conftest.$ac_ext
35226cat >>conftest.$ac_ext <<_ACEOF
35227/* end confdefs.h. */
35228
35229 #include <time.h>
35230
35231int
35232main ()
35233{
35234
35235 int tz;
35236 tz = __timezone;
35237
35238 ;
35239 return 0;
35240}
35241_ACEOF
35242rm -f conftest.$ac_objext
35243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35244 (eval $ac_compile) 2>conftest.er1
a848cd7e 35245 ac_status=$?
ac1cb8d3
VS
35246 grep -v '^ *+' conftest.er1 >conftest.err
35247 rm -f conftest.er1
35248 cat conftest.err >&5
a848cd7e
SC
35249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35250 (exit $ac_status); } &&
5294a27e 35251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35253 (eval $ac_try) 2>&5
35254 ac_status=$?
35255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35256 (exit $ac_status); }; } &&
35257 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35259 (eval $ac_try) 2>&5
35260 ac_status=$?
35261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35262 (exit $ac_status); }; }; then
35263
35264 wx_cv_var_timezone=__timezone
35265
35266else
35267 echo "$as_me: failed program was:" >&5
35268sed 's/^/| /' conftest.$ac_ext >&5
35269
35270
35271 if test "$USE_DOS" = 0 ; then
35272 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
35273echo "$as_me: WARNING: no timezone variable" >&2;}
35274 fi
35275
35276
35277fi
ac1cb8d3 35278rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35279
35280
35281fi
ac1cb8d3 35282rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35283
35284
35285fi
ac1cb8d3 35286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35287
35288
35289fi
35290echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
35291echo "${ECHO_T}$wx_cv_var_timezone" >&6
35292
35293 if test "x$wx_cv_var_timezone" != x ; then
35294 cat >>confdefs.h <<_ACEOF
35295#define WX_TIMEZONE $wx_cv_var_timezone
35296_ACEOF
35297
35298 fi
35299
35300
35301for ac_func in localtime
35302do
35303as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35304echo "$as_me:$LINENO: checking for $ac_func" >&5
35305echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35306if eval "test \"\${$as_ac_var+set}\" = set"; then
35307 echo $ECHO_N "(cached) $ECHO_C" >&6
35308else
35309 cat >conftest.$ac_ext <<_ACEOF
35310/* confdefs.h. */
35311_ACEOF
35312cat confdefs.h >>conftest.$ac_ext
35313cat >>conftest.$ac_ext <<_ACEOF
35314/* end confdefs.h. */
ac1cb8d3
VS
35315/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35316 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35317#define $ac_func innocuous_$ac_func
35318
a848cd7e
SC
35319/* System header to define __stub macros and hopefully few prototypes,
35320 which can conflict with char $ac_func (); below.
35321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35322 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35323
a848cd7e
SC
35324#ifdef __STDC__
35325# include <limits.h>
35326#else
35327# include <assert.h>
35328#endif
ac1cb8d3
VS
35329
35330#undef $ac_func
35331
a848cd7e
SC
35332/* Override any gcc2 internal prototype to avoid an error. */
35333#ifdef __cplusplus
35334extern "C"
35335{
35336#endif
35337/* We use char because int might match the return type of a gcc2
35338 builtin and then its argument prototype would still apply. */
35339char $ac_func ();
35340/* The GNU C library defines this for functions which it implements
35341 to always fail with ENOSYS. Some functions are actually named
35342 something starting with __ and the normal name is an alias. */
35343#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35344choke me
35345#else
35346char (*f) () = $ac_func;
35347#endif
35348#ifdef __cplusplus
35349}
35350#endif
35351
35352int
35353main ()
35354{
35355return f != $ac_func;
35356 ;
35357 return 0;
35358}
35359_ACEOF
35360rm -f conftest.$ac_objext conftest$ac_exeext
35361if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35362 (eval $ac_link) 2>conftest.er1
a848cd7e 35363 ac_status=$?
ac1cb8d3
VS
35364 grep -v '^ *+' conftest.er1 >conftest.err
35365 rm -f conftest.er1
35366 cat conftest.err >&5
a848cd7e
SC
35367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35368 (exit $ac_status); } &&
5294a27e 35369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35371 (eval $ac_try) 2>&5
35372 ac_status=$?
35373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35374 (exit $ac_status); }; } &&
35375 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35377 (eval $ac_try) 2>&5
35378 ac_status=$?
35379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35380 (exit $ac_status); }; }; then
35381 eval "$as_ac_var=yes"
35382else
35383 echo "$as_me: failed program was:" >&5
35384sed 's/^/| /' conftest.$ac_ext >&5
35385
35386eval "$as_ac_var=no"
35387fi
ac1cb8d3
VS
35388rm -f conftest.err conftest.$ac_objext \
35389 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35390fi
35391echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35392echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35393if test `eval echo '${'$as_ac_var'}'` = yes; then
35394 cat >>confdefs.h <<_ACEOF
35395#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35396_ACEOF
35397
35398fi
35399done
35400
35401
35402 if test "$ac_cv_func_localtime" = "yes"; then
35403 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
35404echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
35405if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
35406 echo $ECHO_N "(cached) $ECHO_C" >&6
35407else
35408
35409 cat >conftest.$ac_ext <<_ACEOF
35410/* confdefs.h. */
35411_ACEOF
35412cat confdefs.h >>conftest.$ac_ext
35413cat >>conftest.$ac_ext <<_ACEOF
35414/* end confdefs.h. */
35415
35416 #include <time.h>
35417
35418int
35419main ()
35420{
35421
35422 struct tm tm;
35423 tm.tm_gmtoff++;
35424
35425 ;
35426 return 0;
35427}
35428_ACEOF
35429rm -f conftest.$ac_objext
35430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35431 (eval $ac_compile) 2>conftest.er1
a848cd7e 35432 ac_status=$?
ac1cb8d3
VS
35433 grep -v '^ *+' conftest.er1 >conftest.err
35434 rm -f conftest.er1
35435 cat conftest.err >&5
a848cd7e
SC
35436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35437 (exit $ac_status); } &&
5294a27e 35438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35440 (eval $ac_try) 2>&5
35441 ac_status=$?
35442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35443 (exit $ac_status); }; } &&
35444 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35446 (eval $ac_try) 2>&5
35447 ac_status=$?
35448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35449 (exit $ac_status); }; }; then
35450
35451 wx_cv_struct_tm_has_gmtoff=yes
35452
35453else
35454 echo "$as_me: failed program was:" >&5
35455sed 's/^/| /' conftest.$ac_ext >&5
35456
35457wx_cv_struct_tm_has_gmtoff=no
35458
35459fi
ac1cb8d3 35460rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35461
35462fi
35463echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
35464echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
35465 fi
35466
35467 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
35468 cat >>confdefs.h <<\_ACEOF
35469#define WX_GMTOFF_IN_TM 1
35470_ACEOF
35471
35472 fi
35473
35474
35475
35476for ac_func in gettimeofday ftime
35477do
35478as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35479echo "$as_me:$LINENO: checking for $ac_func" >&5
35480echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35481if eval "test \"\${$as_ac_var+set}\" = set"; then
35482 echo $ECHO_N "(cached) $ECHO_C" >&6
35483else
35484 cat >conftest.$ac_ext <<_ACEOF
35485/* confdefs.h. */
35486_ACEOF
35487cat confdefs.h >>conftest.$ac_ext
35488cat >>conftest.$ac_ext <<_ACEOF
35489/* end confdefs.h. */
ac1cb8d3
VS
35490/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35491 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35492#define $ac_func innocuous_$ac_func
35493
a848cd7e
SC
35494/* System header to define __stub macros and hopefully few prototypes,
35495 which can conflict with char $ac_func (); below.
35496 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35497 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35498
a848cd7e
SC
35499#ifdef __STDC__
35500# include <limits.h>
35501#else
35502# include <assert.h>
35503#endif
ac1cb8d3
VS
35504
35505#undef $ac_func
35506
a848cd7e
SC
35507/* Override any gcc2 internal prototype to avoid an error. */
35508#ifdef __cplusplus
35509extern "C"
35510{
35511#endif
35512/* We use char because int might match the return type of a gcc2
35513 builtin and then its argument prototype would still apply. */
35514char $ac_func ();
35515/* The GNU C library defines this for functions which it implements
35516 to always fail with ENOSYS. Some functions are actually named
35517 something starting with __ and the normal name is an alias. */
35518#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35519choke me
35520#else
35521char (*f) () = $ac_func;
35522#endif
35523#ifdef __cplusplus
35524}
35525#endif
35526
35527int
35528main ()
35529{
35530return f != $ac_func;
35531 ;
35532 return 0;
35533}
35534_ACEOF
35535rm -f conftest.$ac_objext conftest$ac_exeext
35536if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35537 (eval $ac_link) 2>conftest.er1
a848cd7e 35538 ac_status=$?
ac1cb8d3
VS
35539 grep -v '^ *+' conftest.er1 >conftest.err
35540 rm -f conftest.er1
35541 cat conftest.err >&5
a848cd7e
SC
35542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35543 (exit $ac_status); } &&
5294a27e 35544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35546 (eval $ac_try) 2>&5
35547 ac_status=$?
35548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35549 (exit $ac_status); }; } &&
35550 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35552 (eval $ac_try) 2>&5
35553 ac_status=$?
35554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35555 (exit $ac_status); }; }; then
35556 eval "$as_ac_var=yes"
35557else
35558 echo "$as_me: failed program was:" >&5
35559sed 's/^/| /' conftest.$ac_ext >&5
35560
35561eval "$as_ac_var=no"
35562fi
ac1cb8d3
VS
35563rm -f conftest.err conftest.$ac_objext \
35564 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35565fi
35566echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35567echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35568if test `eval echo '${'$as_ac_var'}'` = yes; then
35569 cat >>confdefs.h <<_ACEOF
35570#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35571_ACEOF
35572 break
35573fi
35574done
35575
35576
35577 if test "$ac_cv_func_gettimeofday" = "yes"; then
35578 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
35579echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
35580if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
35581 echo $ECHO_N "(cached) $ECHO_C" >&6
35582else
35583
35584
35585
35586 ac_ext=cc
35587ac_cpp='$CXXCPP $CPPFLAGS'
35588ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35589ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35590ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35591
35592
35593 cat >conftest.$ac_ext <<_ACEOF
35594/* confdefs.h. */
35595_ACEOF
35596cat confdefs.h >>conftest.$ac_ext
35597cat >>conftest.$ac_ext <<_ACEOF
35598/* end confdefs.h. */
35599
35600 #include <sys/time.h>
35601 #include <unistd.h>
35602
35603int
35604main ()
35605{
35606
35607 struct timeval tv;
35608 gettimeofday(&tv, NULL);
35609
35610 ;
35611 return 0;
35612}
35613_ACEOF
35614rm -f conftest.$ac_objext
35615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35616 (eval $ac_compile) 2>conftest.er1
a848cd7e 35617 ac_status=$?
ac1cb8d3
VS
35618 grep -v '^ *+' conftest.er1 >conftest.err
35619 rm -f conftest.er1
35620 cat conftest.err >&5
a848cd7e
SC
35621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35622 (exit $ac_status); } &&
5294a27e 35623 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35625 (eval $ac_try) 2>&5
35626 ac_status=$?
35627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35628 (exit $ac_status); }; } &&
35629 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35631 (eval $ac_try) 2>&5
35632 ac_status=$?
35633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35634 (exit $ac_status); }; }; then
35635 wx_cv_func_gettimeofday_has_2_args=yes
35636else
35637 echo "$as_me: failed program was:" >&5
35638sed 's/^/| /' conftest.$ac_ext >&5
35639
35640cat >conftest.$ac_ext <<_ACEOF
35641/* confdefs.h. */
35642_ACEOF
35643cat confdefs.h >>conftest.$ac_ext
35644cat >>conftest.$ac_ext <<_ACEOF
35645/* end confdefs.h. */
35646
35647 #include <sys/time.h>
35648 #include <unistd.h>
35649
35650int
35651main ()
35652{
35653
35654 struct timeval tv;
35655 gettimeofday(&tv);
35656
35657 ;
35658 return 0;
35659}
35660_ACEOF
35661rm -f conftest.$ac_objext
35662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35663 (eval $ac_compile) 2>conftest.er1
a848cd7e 35664 ac_status=$?
ac1cb8d3
VS
35665 grep -v '^ *+' conftest.er1 >conftest.err
35666 rm -f conftest.er1
35667 cat conftest.err >&5
a848cd7e
SC
35668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35669 (exit $ac_status); } &&
5294a27e 35670 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35672 (eval $ac_try) 2>&5
35673 ac_status=$?
35674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35675 (exit $ac_status); }; } &&
35676 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35678 (eval $ac_try) 2>&5
35679 ac_status=$?
35680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35681 (exit $ac_status); }; }; then
35682 wx_cv_func_gettimeofday_has_2_args=no
35683else
35684 echo "$as_me: failed program was:" >&5
35685sed 's/^/| /' conftest.$ac_ext >&5
35686
35687
35688 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
35689echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
35690 wx_cv_func_gettimeofday_has_2_args=unknown
35691
35692
35693fi
ac1cb8d3 35694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35695
35696fi
ac1cb8d3 35697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35698 ac_ext=c
35699ac_cpp='$CPP $CPPFLAGS'
35700ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35701ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35702ac_compiler_gnu=$ac_cv_c_compiler_gnu
35703
35704
35705fi
35706echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
35707echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
35708
35709 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
35710 cat >>confdefs.h <<\_ACEOF
35711#define WX_GETTIMEOFDAY_NO_TZ 1
35712_ACEOF
35713
35714 fi
35715 fi
35716
35717 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
35718fi
35719
35720
35721if test "$wxUSE_SOCKETS" = "yes"; then
35722 if test "$wxUSE_MGL" = "1"; then
35723 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
35724echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
35725 wxUSE_SOCKETS="no"
35726 fi
35727fi
35728
35729if test "$wxUSE_SOCKETS" = "yes"; then
35730 if test "$TOOLKIT" != "MSW"; then
35731 echo "$as_me:$LINENO: checking for socket" >&5
35732echo $ECHO_N "checking for socket... $ECHO_C" >&6
35733if test "${ac_cv_func_socket+set}" = set; then
35734 echo $ECHO_N "(cached) $ECHO_C" >&6
35735else
35736 cat >conftest.$ac_ext <<_ACEOF
35737/* confdefs.h. */
35738_ACEOF
35739cat confdefs.h >>conftest.$ac_ext
35740cat >>conftest.$ac_ext <<_ACEOF
35741/* end confdefs.h. */
ac1cb8d3
VS
35742/* Define socket to an innocuous variant, in case <limits.h> declares socket.
35743 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35744#define socket innocuous_socket
35745
a848cd7e
SC
35746/* System header to define __stub macros and hopefully few prototypes,
35747 which can conflict with char socket (); below.
35748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35749 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35750
a848cd7e
SC
35751#ifdef __STDC__
35752# include <limits.h>
35753#else
35754# include <assert.h>
35755#endif
ac1cb8d3
VS
35756
35757#undef socket
35758
a848cd7e
SC
35759/* Override any gcc2 internal prototype to avoid an error. */
35760#ifdef __cplusplus
35761extern "C"
35762{
35763#endif
35764/* We use char because int might match the return type of a gcc2
35765 builtin and then its argument prototype would still apply. */
35766char socket ();
35767/* The GNU C library defines this for functions which it implements
35768 to always fail with ENOSYS. Some functions are actually named
35769 something starting with __ and the normal name is an alias. */
35770#if defined (__stub_socket) || defined (__stub___socket)
35771choke me
35772#else
35773char (*f) () = socket;
35774#endif
35775#ifdef __cplusplus
35776}
35777#endif
35778
35779int
35780main ()
35781{
35782return f != socket;
35783 ;
35784 return 0;
35785}
35786_ACEOF
35787rm -f conftest.$ac_objext conftest$ac_exeext
35788if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35789 (eval $ac_link) 2>conftest.er1
a848cd7e 35790 ac_status=$?
ac1cb8d3
VS
35791 grep -v '^ *+' conftest.er1 >conftest.err
35792 rm -f conftest.er1
35793 cat conftest.err >&5
a848cd7e
SC
35794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35795 (exit $ac_status); } &&
5294a27e 35796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35798 (eval $ac_try) 2>&5
35799 ac_status=$?
35800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35801 (exit $ac_status); }; } &&
35802 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35804 (eval $ac_try) 2>&5
35805 ac_status=$?
35806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35807 (exit $ac_status); }; }; then
35808 ac_cv_func_socket=yes
35809else
35810 echo "$as_me: failed program was:" >&5
35811sed 's/^/| /' conftest.$ac_ext >&5
35812
35813ac_cv_func_socket=no
35814fi
ac1cb8d3
VS
35815rm -f conftest.err conftest.$ac_objext \
35816 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35817fi
35818echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
35819echo "${ECHO_T}$ac_cv_func_socket" >&6
35820if test $ac_cv_func_socket = yes; then
35821 :
35822else
35823
35824 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
35825echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
35826if test "${ac_cv_lib_socket_socket+set}" = set; then
35827 echo $ECHO_N "(cached) $ECHO_C" >&6
35828else
35829 ac_check_lib_save_LIBS=$LIBS
35830LIBS="-lsocket $LIBS"
35831cat >conftest.$ac_ext <<_ACEOF
35832/* confdefs.h. */
35833_ACEOF
35834cat confdefs.h >>conftest.$ac_ext
35835cat >>conftest.$ac_ext <<_ACEOF
35836/* end confdefs.h. */
35837
35838/* Override any gcc2 internal prototype to avoid an error. */
35839#ifdef __cplusplus
35840extern "C"
35841#endif
35842/* We use char because int might match the return type of a gcc2
35843 builtin and then its argument prototype would still apply. */
35844char socket ();
35845int
35846main ()
35847{
35848socket ();
35849 ;
35850 return 0;
35851}
35852_ACEOF
35853rm -f conftest.$ac_objext conftest$ac_exeext
35854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35855 (eval $ac_link) 2>conftest.er1
a848cd7e 35856 ac_status=$?
ac1cb8d3
VS
35857 grep -v '^ *+' conftest.er1 >conftest.err
35858 rm -f conftest.er1
35859 cat conftest.err >&5
a848cd7e
SC
35860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35861 (exit $ac_status); } &&
5294a27e 35862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35864 (eval $ac_try) 2>&5
35865 ac_status=$?
35866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35867 (exit $ac_status); }; } &&
35868 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35870 (eval $ac_try) 2>&5
35871 ac_status=$?
35872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35873 (exit $ac_status); }; }; then
35874 ac_cv_lib_socket_socket=yes
35875else
35876 echo "$as_me: failed program was:" >&5
35877sed 's/^/| /' conftest.$ac_ext >&5
35878
35879ac_cv_lib_socket_socket=no
35880fi
ac1cb8d3
VS
35881rm -f conftest.err conftest.$ac_objext \
35882 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35883LIBS=$ac_check_lib_save_LIBS
35884fi
35885echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
35886echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
35887if test $ac_cv_lib_socket_socket = yes; then
35888 if test "$INET_LINK" != " -lsocket"; then
35889 INET_LINK="$INET_LINK -lsocket"
35890 fi
35891else
35892
35893 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
35894echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
35895 wxUSE_SOCKETS=no
35896
35897
35898fi
35899
35900
35901
35902fi
35903
35904 fi
35905fi
35906
35907if test "$wxUSE_SOCKETS" = "yes" ; then
35908 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
35909 ac_ext=cc
35910ac_cpp='$CXXCPP $CPPFLAGS'
35911ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35912ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35913ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35914
35915 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
35916echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
35917if test "${wx_cv_type_getsockname3+set}" = set; then
35918 echo $ECHO_N "(cached) $ECHO_C" >&6
35919else
35920
35921 cat >conftest.$ac_ext <<_ACEOF
35922/* confdefs.h. */
35923_ACEOF
35924cat confdefs.h >>conftest.$ac_ext
35925cat >>conftest.$ac_ext <<_ACEOF
35926/* end confdefs.h. */
35927
35928 #include <sys/types.h>
35929 #include <sys/socket.h>
35930
35931int
35932main ()
35933{
35934
35935 socklen_t len;
35936 getsockname(0, 0, &len);
35937
35938 ;
35939 return 0;
35940}
35941_ACEOF
35942rm -f conftest.$ac_objext
35943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35944 (eval $ac_compile) 2>conftest.er1
a848cd7e 35945 ac_status=$?
ac1cb8d3
VS
35946 grep -v '^ *+' conftest.er1 >conftest.err
35947 rm -f conftest.er1
35948 cat conftest.err >&5
a848cd7e
SC
35949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35950 (exit $ac_status); } &&
5294a27e 35951 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35953 (eval $ac_try) 2>&5
35954 ac_status=$?
35955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35956 (exit $ac_status); }; } &&
35957 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35959 (eval $ac_try) 2>&5
35960 ac_status=$?
35961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35962 (exit $ac_status); }; }; then
35963 wx_cv_type_getsockname3=socklen_t
35964else
35965 echo "$as_me: failed program was:" >&5
35966sed 's/^/| /' conftest.$ac_ext >&5
35967
35968
35969 CFLAGS_OLD="$CFLAGS"
35970 if test "$GCC" = yes ; then
35971 CFLAGS="$CFLAGS -Werror"
35972 fi
35973
35974 cat >conftest.$ac_ext <<_ACEOF
35975/* confdefs.h. */
35976_ACEOF
35977cat confdefs.h >>conftest.$ac_ext
35978cat >>conftest.$ac_ext <<_ACEOF
35979/* end confdefs.h. */
35980
35981 #include <sys/types.h>
35982 #include <sys/socket.h>
35983
35984int
35985main ()
35986{
35987
35988 size_t len;
35989 getsockname(0, 0, &len);
35990
35991 ;
35992 return 0;
35993}
35994_ACEOF
35995rm -f conftest.$ac_objext
35996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35997 (eval $ac_compile) 2>conftest.er1
a848cd7e 35998 ac_status=$?
ac1cb8d3
VS
35999 grep -v '^ *+' conftest.er1 >conftest.err
36000 rm -f conftest.er1
36001 cat conftest.err >&5
a848cd7e
SC
36002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36003 (exit $ac_status); } &&
5294a27e 36004 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36006 (eval $ac_try) 2>&5
36007 ac_status=$?
36008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36009 (exit $ac_status); }; } &&
36010 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36012 (eval $ac_try) 2>&5
36013 ac_status=$?
36014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36015 (exit $ac_status); }; }; then
36016 wx_cv_type_getsockname3=size_t
36017else
36018 echo "$as_me: failed program was:" >&5
36019sed 's/^/| /' conftest.$ac_ext >&5
36020
36021cat >conftest.$ac_ext <<_ACEOF
36022/* confdefs.h. */
36023_ACEOF
36024cat confdefs.h >>conftest.$ac_ext
36025cat >>conftest.$ac_ext <<_ACEOF
36026/* end confdefs.h. */
36027
36028 #include <sys/types.h>
36029 #include <sys/socket.h>
36030
36031int
36032main ()
36033{
36034
36035 int len;
36036 getsockname(0, 0, &len);
36037
36038 ;
36039 return 0;
36040}
36041_ACEOF
36042rm -f conftest.$ac_objext
36043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36044 (eval $ac_compile) 2>conftest.er1
a848cd7e 36045 ac_status=$?
ac1cb8d3
VS
36046 grep -v '^ *+' conftest.er1 >conftest.err
36047 rm -f conftest.er1
36048 cat conftest.err >&5
a848cd7e
SC
36049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36050 (exit $ac_status); } &&
5294a27e 36051 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36053 (eval $ac_try) 2>&5
36054 ac_status=$?
36055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36056 (exit $ac_status); }; } &&
36057 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36059 (eval $ac_try) 2>&5
36060 ac_status=$?
36061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36062 (exit $ac_status); }; }; then
36063 wx_cv_type_getsockname3=int
36064else
36065 echo "$as_me: failed program was:" >&5
36066sed 's/^/| /' conftest.$ac_ext >&5
36067
36068wx_cv_type_getsockname3=unknown
36069
36070fi
ac1cb8d3 36071rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36072
36073fi
ac1cb8d3 36074rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36075
36076 CFLAGS="$CFLAGS_OLD"
36077
36078
36079fi
ac1cb8d3 36080rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36081
36082fi
36083echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
36084echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
36085
36086 if test "$wx_cv_type_getsockname3" = "unknown"; then
36087 wxUSE_SOCKETS=no
36088 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
36089echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
36090 else
36091 cat >>confdefs.h <<_ACEOF
36092#define SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
36093_ACEOF
36094
36095 fi
36096 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
36097echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
36098if test "${wx_cv_type_getsockopt5+set}" = set; then
36099 echo $ECHO_N "(cached) $ECHO_C" >&6
36100else
36101
36102 cat >conftest.$ac_ext <<_ACEOF
36103/* confdefs.h. */
36104_ACEOF
36105cat confdefs.h >>conftest.$ac_ext
36106cat >>conftest.$ac_ext <<_ACEOF
36107/* end confdefs.h. */
36108
36109 #include <sys/types.h>
36110 #include <sys/socket.h>
36111
36112int
36113main ()
36114{
36115
36116 socklen_t len;
36117 getsockopt(0, 0, 0, 0, &len);
36118
36119 ;
36120 return 0;
36121}
36122_ACEOF
36123rm -f conftest.$ac_objext
36124if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36125 (eval $ac_compile) 2>conftest.er1
36126 ac_status=$?
36127 grep -v '^ *+' conftest.er1 >conftest.err
36128 rm -f conftest.er1
36129 cat conftest.err >&5
36130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36131 (exit $ac_status); } &&
36132 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
36133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36134 (eval $ac_try) 2>&5
36135 ac_status=$?
36136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36137 (exit $ac_status); }; } &&
36138 { ac_try='test -s conftest.$ac_objext'
36139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36140 (eval $ac_try) 2>&5
36141 ac_status=$?
36142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36143 (exit $ac_status); }; }; then
36144 wx_cv_type_getsockopt5=socklen_t
36145else
36146 echo "$as_me: failed program was:" >&5
36147sed 's/^/| /' conftest.$ac_ext >&5
36148
36149
36150 CFLAGS_OLD="$CFLAGS"
36151 if test "$GCC" = yes ; then
36152 CFLAGS="$CFLAGS -Werror"
36153 fi
36154
36155 cat >conftest.$ac_ext <<_ACEOF
36156/* confdefs.h. */
36157_ACEOF
36158cat confdefs.h >>conftest.$ac_ext
36159cat >>conftest.$ac_ext <<_ACEOF
36160/* end confdefs.h. */
36161
36162 #include <sys/types.h>
36163 #include <sys/socket.h>
36164
36165int
36166main ()
36167{
36168
36169 size_t len;
36170 getsockopt(0, 0, 0, 0, &len);
36171
36172 ;
36173 return 0;
36174}
36175_ACEOF
36176rm -f conftest.$ac_objext
36177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36178 (eval $ac_compile) 2>conftest.er1
36179 ac_status=$?
36180 grep -v '^ *+' conftest.er1 >conftest.err
36181 rm -f conftest.er1
36182 cat conftest.err >&5
36183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36184 (exit $ac_status); } &&
36185 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
36186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36187 (eval $ac_try) 2>&5
36188 ac_status=$?
36189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36190 (exit $ac_status); }; } &&
36191 { ac_try='test -s conftest.$ac_objext'
36192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36193 (eval $ac_try) 2>&5
36194 ac_status=$?
36195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36196 (exit $ac_status); }; }; then
36197 wx_cv_type_getsockopt5=size_t
36198else
36199 echo "$as_me: failed program was:" >&5
36200sed 's/^/| /' conftest.$ac_ext >&5
36201
36202cat >conftest.$ac_ext <<_ACEOF
36203/* confdefs.h. */
36204_ACEOF
36205cat confdefs.h >>conftest.$ac_ext
36206cat >>conftest.$ac_ext <<_ACEOF
36207/* end confdefs.h. */
36208
36209 #include <sys/types.h>
36210 #include <sys/socket.h>
36211
36212int
36213main ()
36214{
36215
36216 int len;
36217 getsockopt(0, 0, 0, 0, &len);
36218
36219 ;
36220 return 0;
36221}
36222_ACEOF
36223rm -f conftest.$ac_objext
36224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36225 (eval $ac_compile) 2>conftest.er1
36226 ac_status=$?
36227 grep -v '^ *+' conftest.er1 >conftest.err
36228 rm -f conftest.er1
36229 cat conftest.err >&5
36230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36231 (exit $ac_status); } &&
36232 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
36233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36234 (eval $ac_try) 2>&5
36235 ac_status=$?
36236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36237 (exit $ac_status); }; } &&
36238 { ac_try='test -s conftest.$ac_objext'
36239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36240 (eval $ac_try) 2>&5
36241 ac_status=$?
36242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36243 (exit $ac_status); }; }; then
36244 wx_cv_type_getsockopt5=int
36245else
36246 echo "$as_me: failed program was:" >&5
36247sed 's/^/| /' conftest.$ac_ext >&5
36248
36249wx_cv_type_getsockopt5=unknown
36250
36251fi
36252rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36253
36254fi
36255rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36256
36257 CFLAGS="$CFLAGS_OLD"
36258
36259
36260fi
36261rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36262
36263fi
36264echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
36265echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
36266
36267 if test "$wx_cv_type_getsockopt5" = "unknown"; then
36268 wxUSE_SOCKETS=no
36269 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
36270echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
36271 else
36272 cat >>confdefs.h <<_ACEOF
36273#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
36274_ACEOF
36275
36276 fi
4d4ff94c
VZ
36277 ac_ext=c
36278ac_cpp='$CPP $CPPFLAGS'
36279ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36280ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36281ac_compiler_gnu=$ac_cv_c_compiler_gnu
36282
a848cd7e
SC
36283 fi
36284fi
36285
36286if test "$wxUSE_SOCKETS" = "yes" ; then
36287 cat >>confdefs.h <<\_ACEOF
36288#define wxUSE_SOCKETS 1
36289_ACEOF
36290
36291 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
36292fi
36293
36294if test "$wxUSE_PROTOCOL" = "yes"; then
36295 if test "$wxUSE_SOCKETS" != "yes"; then
36296 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
36297echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
36298 wxUSE_PROTOCOL=no
36299 fi
36300fi
36301
36302if test "$wxUSE_PROTOCOL" = "yes"; then
36303 cat >>confdefs.h <<\_ACEOF
36304#define wxUSE_PROTOCOL 1
36305_ACEOF
36306
36307
36308 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
36309 cat >>confdefs.h <<\_ACEOF
36310#define wxUSE_PROTOCOL_HTTP 1
36311_ACEOF
36312
36313 fi
36314 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
36315 cat >>confdefs.h <<\_ACEOF
36316#define wxUSE_PROTOCOL_FTP 1
36317_ACEOF
36318
36319 fi
36320 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
36321 cat >>confdefs.h <<\_ACEOF
36322#define wxUSE_PROTOCOL_FILE 1
36323_ACEOF
36324
36325 fi
36326else
36327 if test "$wxUSE_FS_INET" = "yes"; then
36328 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
36329echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
36330 wxUSE_FS_INET="no"
36331 fi
36332fi
36333
36334if test "$wxUSE_URL" = "yes"; then
36335 if test "$wxUSE_PROTOCOL" != "yes"; then
36336 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
36337echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
36338 wxUSE_URL=no
36339 fi
36340 if test "$wxUSE_URL" = "yes"; then
36341 cat >>confdefs.h <<\_ACEOF
36342#define wxUSE_URL 1
36343_ACEOF
36344
36345 fi
36346fi
36347
36348if test "$wxUSE_FS_INET" = "yes"; then
36349 cat >>confdefs.h <<\_ACEOF
36350#define wxUSE_FS_INET 1
36351_ACEOF
36352
36353fi
36354
36355
36356if test "$wxUSE_GUI" = "yes"; then
36357
36358 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
36359 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
36360echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
36361 wxUSE_JOYSTICK=no
36362 fi
36363
36364 if test "$TOOLKIT" != "MSW"; then
36365 if test "$wxUSE_JOYSTICK" = "yes"; then
36366
36367for ac_header in linux/joystick.h
36368do
36369as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36370if eval "test \"\${$as_ac_Header+set}\" = set"; then
36371 echo "$as_me:$LINENO: checking for $ac_header" >&5
36372echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36373if eval "test \"\${$as_ac_Header+set}\" = set"; then
36374 echo $ECHO_N "(cached) $ECHO_C" >&6
36375fi
36376echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36377echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36378else
36379 # Is the header compilable?
36380echo "$as_me:$LINENO: checking $ac_header usability" >&5
36381echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36382cat >conftest.$ac_ext <<_ACEOF
36383/* confdefs.h. */
36384_ACEOF
36385cat confdefs.h >>conftest.$ac_ext
36386cat >>conftest.$ac_ext <<_ACEOF
36387/* end confdefs.h. */
36388$ac_includes_default
36389#include <$ac_header>
36390_ACEOF
36391rm -f conftest.$ac_objext
36392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36393 (eval $ac_compile) 2>conftest.er1
a848cd7e 36394 ac_status=$?
ac1cb8d3
VS
36395 grep -v '^ *+' conftest.er1 >conftest.err
36396 rm -f conftest.er1
36397 cat conftest.err >&5
a848cd7e
SC
36398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36399 (exit $ac_status); } &&
5294a27e 36400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36402 (eval $ac_try) 2>&5
36403 ac_status=$?
36404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36405 (exit $ac_status); }; } &&
36406 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36408 (eval $ac_try) 2>&5
36409 ac_status=$?
36410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36411 (exit $ac_status); }; }; then
36412 ac_header_compiler=yes
36413else
36414 echo "$as_me: failed program was:" >&5
36415sed 's/^/| /' conftest.$ac_ext >&5
36416
36417ac_header_compiler=no
36418fi
ac1cb8d3 36419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36420echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36421echo "${ECHO_T}$ac_header_compiler" >&6
36422
36423# Is the header present?
36424echo "$as_me:$LINENO: checking $ac_header presence" >&5
36425echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36426cat >conftest.$ac_ext <<_ACEOF
36427/* confdefs.h. */
36428_ACEOF
36429cat confdefs.h >>conftest.$ac_ext
36430cat >>conftest.$ac_ext <<_ACEOF
36431/* end confdefs.h. */
36432#include <$ac_header>
36433_ACEOF
36434if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36435 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36436 ac_status=$?
36437 grep -v '^ *+' conftest.er1 >conftest.err
36438 rm -f conftest.er1
36439 cat conftest.err >&5
36440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36441 (exit $ac_status); } >/dev/null; then
36442 if test -s conftest.err; then
36443 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36444 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36445 else
36446 ac_cpp_err=
36447 fi
36448else
36449 ac_cpp_err=yes
36450fi
36451if test -z "$ac_cpp_err"; then
36452 ac_header_preproc=yes
36453else
36454 echo "$as_me: failed program was:" >&5
36455sed 's/^/| /' conftest.$ac_ext >&5
36456
36457 ac_header_preproc=no
36458fi
36459rm -f conftest.err conftest.$ac_ext
36460echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36461echo "${ECHO_T}$ac_header_preproc" >&6
36462
36463# So? What about this header?
ac1cb8d3
VS
36464case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36465 yes:no: )
a848cd7e
SC
36466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36467echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36469echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36470 ac_header_preproc=yes
a848cd7e 36471 ;;
ac1cb8d3 36472 no:yes:* )
a848cd7e
SC
36473 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36474echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36475 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36476echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36477 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36478echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36479 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36480echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36482echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36483 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36484echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36485 (
36486 cat <<\_ASBOX
ac1cb8d3
VS
36487## ----------------------------------------- ##
36488## Report this to wx-dev@lists.wxwidgets.org ##
36489## ----------------------------------------- ##
a848cd7e
SC
36490_ASBOX
36491 ) |
36492 sed "s/^/$as_me: WARNING: /" >&2
36493 ;;
36494esac
36495echo "$as_me:$LINENO: checking for $ac_header" >&5
36496echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36497if eval "test \"\${$as_ac_Header+set}\" = set"; then
36498 echo $ECHO_N "(cached) $ECHO_C" >&6
36499else
ac1cb8d3 36500 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36501fi
36502echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36503echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36504
36505fi
36506if test `eval echo '${'$as_ac_Header'}'` = yes; then
36507 cat >>confdefs.h <<_ACEOF
36508#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36509_ACEOF
36510
36511fi
36512
36513done
36514
36515 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
36516 wxUSE_JOYSTICK=no
36517 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
36518echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
36519 fi
36520 fi
36521 fi
36522
36523 if test "$wxUSE_JOYSTICK" = "yes"; then
36524 cat >>confdefs.h <<\_ACEOF
36525#define wxUSE_JOYSTICK 1
36526_ACEOF
36527
36528 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
36529 fi
36530fi
36531
36532
36533
36534if test "$wxUSE_FONTMAP" = "yes" ; then
36535 cat >>confdefs.h <<\_ACEOF
36536#define wxUSE_FONTMAP 1
36537_ACEOF
36538
36539fi
36540
36541if test "$wxUSE_UNICODE" = "yes" ; then
36542 cat >>confdefs.h <<\_ACEOF
36543#define wxUSE_UNICODE 1
36544_ACEOF
36545
36546
36547 if test "$USE_WIN32" != 1; then
36548 wxUSE_UNICODE_MSLU=no
36549 fi
36550
36551 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
36552 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
36553echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
36554if test "${ac_cv_lib_unicows_main+set}" = set; then
36555 echo $ECHO_N "(cached) $ECHO_C" >&6
36556else
36557 ac_check_lib_save_LIBS=$LIBS
36558LIBS="-lunicows $LIBS"
36559cat >conftest.$ac_ext <<_ACEOF
36560/* confdefs.h. */
36561_ACEOF
36562cat confdefs.h >>conftest.$ac_ext
36563cat >>conftest.$ac_ext <<_ACEOF
36564/* end confdefs.h. */
36565
36566
36567int
36568main ()
36569{
36570main ();
36571 ;
36572 return 0;
36573}
36574_ACEOF
36575rm -f conftest.$ac_objext conftest$ac_exeext
36576if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36577 (eval $ac_link) 2>conftest.er1
a848cd7e 36578 ac_status=$?
ac1cb8d3
VS
36579 grep -v '^ *+' conftest.er1 >conftest.err
36580 rm -f conftest.er1
36581 cat conftest.err >&5
a848cd7e
SC
36582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36583 (exit $ac_status); } &&
5294a27e 36584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36586 (eval $ac_try) 2>&5
36587 ac_status=$?
36588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36589 (exit $ac_status); }; } &&
36590 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36592 (eval $ac_try) 2>&5
36593 ac_status=$?
36594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36595 (exit $ac_status); }; }; then
36596 ac_cv_lib_unicows_main=yes
36597else
36598 echo "$as_me: failed program was:" >&5
36599sed 's/^/| /' conftest.$ac_ext >&5
36600
36601ac_cv_lib_unicows_main=no
36602fi
ac1cb8d3
VS
36603rm -f conftest.err conftest.$ac_objext \
36604 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36605LIBS=$ac_check_lib_save_LIBS
36606fi
36607echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
36608echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
36609if test $ac_cv_lib_unicows_main = yes; then
36610
36611 cat >>confdefs.h <<\_ACEOF
36612#define wxUSE_UNICODE_MSLU 1
36613_ACEOF
36614
36615
36616else
36617
36618 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
36619 Applications will only run on Windows NT/2000/XP!" >&5
36620echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
36621 Applications will only run on Windows NT/2000/XP!" >&2;}
36622 wxUSE_UNICODE_MSLU=no
36623
36624fi
36625
36626 fi
36627fi
36628
36629if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
36630 cat >>confdefs.h <<\_ACEOF
36631#define wxUSE_EXPERIMENTAL_PRINTF 1
36632_ACEOF
36633
36634fi
36635
36636
36637if test "$wxUSE_POSTSCRIPT" = "yes" ; then
36638 cat >>confdefs.h <<\_ACEOF
36639#define wxUSE_POSTSCRIPT 1
36640_ACEOF
36641
36642fi
36643
36644cat >>confdefs.h <<\_ACEOF
36645#define wxUSE_AFM_FOR_POSTSCRIPT 1
36646_ACEOF
36647
36648
36649cat >>confdefs.h <<\_ACEOF
36650#define wxUSE_NORMALIZED_PS_FONTS 1
36651_ACEOF
36652
36653
36654
36655if test "$wxUSE_CONSTRAINTS" = "yes"; then
36656 cat >>confdefs.h <<\_ACEOF
36657#define wxUSE_CONSTRAINTS 1
36658_ACEOF
36659
36660 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
36661fi
36662
8a7b1113
VZ
36663if test "$wxUSE_MDI" = "yes"; then
36664 cat >>confdefs.h <<\_ACEOF
36665#define wxUSE_MDI 1
36666_ACEOF
36667
36668
36669 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
36670 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
36671#define wxUSE_MDI_ARCHITECTURE 1
36672_ACEOF
36673
8a7b1113
VZ
36674 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
36675 fi
a848cd7e
SC
36676fi
36677
36678if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
36679 cat >>confdefs.h <<\_ACEOF
36680#define wxUSE_DOC_VIEW_ARCHITECTURE 1
36681_ACEOF
36682
36683 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
36684 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
36685 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
36686 fi
36687fi
36688
36689if test "$wxUSE_HELP" = "yes"; then
36690 cat >>confdefs.h <<\_ACEOF
36691#define wxUSE_HELP 1
36692_ACEOF
36693
36694 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
36695
36696 if test "$wxUSE_MSW" = 1; then
36697 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
36698 cat >>confdefs.h <<\_ACEOF
36699#define wxUSE_MS_HTML_HELP 1
36700_ACEOF
36701
36702 fi
36703 fi
36704
36705 if test "$wxUSE_WXHTML_HELP" = "yes"; then
36706 if test "$wxUSE_HTML" = "yes"; then
36707 cat >>confdefs.h <<\_ACEOF
36708#define wxUSE_WXHTML_HELP 1
36709_ACEOF
36710
36711 else
36712 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
36713echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
36714 wxUSE_WXHTML_HELP=no
36715 fi
36716 fi
36717fi
36718
36719if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
36720 if test "$wxUSE_CONSTRAINTS" != "yes"; then
36721 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
36722echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
36723 else
36724 cat >>confdefs.h <<\_ACEOF
36725#define wxUSE_PRINTING_ARCHITECTURE 1
36726_ACEOF
36727
36728 fi
36729 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
36730fi
36731
36732if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
36733 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
36734echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
36735 { (exit 1); exit 1; }; }
36736fi
36737
36738
36739if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
36740 -o "$wxUSE_CLIPBOARD" = "yes" \
36741 -o "$wxUSE_OLE" = "yes" \
36742 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
36743
36744for ac_header in ole2.h
36745do
36746as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36747if eval "test \"\${$as_ac_Header+set}\" = set"; then
36748 echo "$as_me:$LINENO: checking for $ac_header" >&5
36749echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36750if eval "test \"\${$as_ac_Header+set}\" = set"; then
36751 echo $ECHO_N "(cached) $ECHO_C" >&6
36752fi
36753echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36754echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36755else
36756 # Is the header compilable?
36757echo "$as_me:$LINENO: checking $ac_header usability" >&5
36758echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36759cat >conftest.$ac_ext <<_ACEOF
36760/* confdefs.h. */
36761_ACEOF
36762cat confdefs.h >>conftest.$ac_ext
36763cat >>conftest.$ac_ext <<_ACEOF
36764/* end confdefs.h. */
36765$ac_includes_default
36766#include <$ac_header>
36767_ACEOF
36768rm -f conftest.$ac_objext
36769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36770 (eval $ac_compile) 2>conftest.er1
a848cd7e 36771 ac_status=$?
ac1cb8d3
VS
36772 grep -v '^ *+' conftest.er1 >conftest.err
36773 rm -f conftest.er1
36774 cat conftest.err >&5
a848cd7e
SC
36775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36776 (exit $ac_status); } &&
5294a27e 36777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36779 (eval $ac_try) 2>&5
36780 ac_status=$?
36781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36782 (exit $ac_status); }; } &&
36783 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36785 (eval $ac_try) 2>&5
36786 ac_status=$?
36787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36788 (exit $ac_status); }; }; then
36789 ac_header_compiler=yes
36790else
36791 echo "$as_me: failed program was:" >&5
36792sed 's/^/| /' conftest.$ac_ext >&5
36793
36794ac_header_compiler=no
36795fi
ac1cb8d3 36796rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36797echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36798echo "${ECHO_T}$ac_header_compiler" >&6
36799
36800# Is the header present?
36801echo "$as_me:$LINENO: checking $ac_header presence" >&5
36802echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36803cat >conftest.$ac_ext <<_ACEOF
36804/* confdefs.h. */
36805_ACEOF
36806cat confdefs.h >>conftest.$ac_ext
36807cat >>conftest.$ac_ext <<_ACEOF
36808/* end confdefs.h. */
36809#include <$ac_header>
36810_ACEOF
36811if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36812 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36813 ac_status=$?
36814 grep -v '^ *+' conftest.er1 >conftest.err
36815 rm -f conftest.er1
36816 cat conftest.err >&5
36817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36818 (exit $ac_status); } >/dev/null; then
36819 if test -s conftest.err; then
36820 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36821 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36822 else
36823 ac_cpp_err=
36824 fi
36825else
36826 ac_cpp_err=yes
36827fi
36828if test -z "$ac_cpp_err"; then
36829 ac_header_preproc=yes
36830else
36831 echo "$as_me: failed program was:" >&5
36832sed 's/^/| /' conftest.$ac_ext >&5
36833
36834 ac_header_preproc=no
36835fi
36836rm -f conftest.err conftest.$ac_ext
36837echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36838echo "${ECHO_T}$ac_header_preproc" >&6
36839
36840# So? What about this header?
ac1cb8d3
VS
36841case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36842 yes:no: )
a848cd7e
SC
36843 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36844echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36846echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36847 ac_header_preproc=yes
a848cd7e 36848 ;;
ac1cb8d3 36849 no:yes:* )
a848cd7e
SC
36850 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36851echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36852 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36853echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36854 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36855echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36856 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36857echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36859echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36860 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36861echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36862 (
36863 cat <<\_ASBOX
ac1cb8d3
VS
36864## ----------------------------------------- ##
36865## Report this to wx-dev@lists.wxwidgets.org ##
36866## ----------------------------------------- ##
a848cd7e
SC
36867_ASBOX
36868 ) |
36869 sed "s/^/$as_me: WARNING: /" >&2
36870 ;;
36871esac
36872echo "$as_me:$LINENO: checking for $ac_header" >&5
36873echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36874if eval "test \"\${$as_ac_Header+set}\" = set"; then
36875 echo $ECHO_N "(cached) $ECHO_C" >&6
36876else
ac1cb8d3 36877 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36878fi
36879echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36880echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36881
36882fi
36883if test `eval echo '${'$as_ac_Header'}'` = yes; then
36884 cat >>confdefs.h <<_ACEOF
36885#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36886_ACEOF
36887
36888fi
36889
36890done
36891
36892
36893 if test "$ac_cv_header_ole2_h" = "yes" ; then
36894 if test "$GCC" = yes ; then
36895
36896
36897 ac_ext=cc
36898ac_cpp='$CXXCPP $CPPFLAGS'
36899ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36900ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36901ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36902
36903
36904 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
36905echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
36906 cat >conftest.$ac_ext <<_ACEOF
36907/* confdefs.h. */
36908_ACEOF
36909cat confdefs.h >>conftest.$ac_ext
36910cat >>conftest.$ac_ext <<_ACEOF
36911/* end confdefs.h. */
36912#include <windows.h>
36913 #include <ole2.h>
36914int
36915main ()
36916{
36917
36918 ;
36919 return 0;
36920}
36921_ACEOF
36922rm -f conftest.$ac_objext
36923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36924 (eval $ac_compile) 2>conftest.er1
a848cd7e 36925 ac_status=$?
ac1cb8d3
VS
36926 grep -v '^ *+' conftest.er1 >conftest.err
36927 rm -f conftest.er1
36928 cat conftest.err >&5
a848cd7e
SC
36929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36930 (exit $ac_status); } &&
5294a27e 36931 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36933 (eval $ac_try) 2>&5
36934 ac_status=$?
36935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36936 (exit $ac_status); }; } &&
36937 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36939 (eval $ac_try) 2>&5
36940 ac_status=$?
36941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36942 (exit $ac_status); }; }; then
36943 echo "$as_me:$LINENO: result: no" >&5
36944echo "${ECHO_T}no" >&6
36945else
36946 echo "$as_me: failed program was:" >&5
36947sed 's/^/| /' conftest.$ac_ext >&5
36948
36949echo "$as_me:$LINENO: result: yes" >&5
36950echo "${ECHO_T}yes" >&6
36951 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
36952fi
ac1cb8d3 36953rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36954 ac_ext=c
36955ac_cpp='$CPP $CPPFLAGS'
36956ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36957ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36958ac_compiler_gnu=$ac_cv_c_compiler_gnu
36959
a848cd7e
SC
36960 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
36961 if test "$wxUSE_OLE" = "yes" ; then
36962 cat >>confdefs.h <<\_ACEOF
36963#define wxUSE_OLE 1
36964_ACEOF
36965
36966 fi
36967 fi
36968
36969 if test "$wxUSE_DATAOBJ" = "yes" ; then
36970 cat >>confdefs.h <<\_ACEOF
36971#define wxUSE_DATAOBJ 1
36972_ACEOF
36973
36974 fi
36975 else
36976 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
36977echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
36978
36979 wxUSE_CLIPBOARD=no
36980 wxUSE_DRAG_AND_DROP=no
36981 wxUSE_DATAOBJ=no
36982 wxUSE_OLE=no
36983 fi
36984
36985 if test "$wxUSE_METAFILE" = "yes"; then
36986 cat >>confdefs.h <<\_ACEOF
36987#define wxUSE_METAFILE 1
36988_ACEOF
36989
36990
36991 cat >>confdefs.h <<\_ACEOF
36992#define wxUSE_ENH_METAFILE 1
36993_ACEOF
36994
36995 fi
36996fi
36997
36998if test "$wxUSE_IPC" = "yes"; then
36999 if test "$wxUSE_SOCKETS" != "yes"; then
77ffb593
JS
37000 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
37001echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
a848cd7e
SC
37002 fi
37003
37004 cat >>confdefs.h <<\_ACEOF
37005#define wxUSE_IPC 1
37006_ACEOF
37007
37008fi
37009
37010if test "$wxUSE_CLIPBOARD" = "yes"; then
37011 if test "$wxUSE_MGL" = 1; then
37012 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
37013echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
37014 wxUSE_CLIPBOARD=no
37015 fi
37016
37017 if test "$wxUSE_CLIPBOARD" = "yes"; then
37018 cat >>confdefs.h <<\_ACEOF
37019#define wxUSE_CLIPBOARD 1
37020_ACEOF
37021
37022
37023 cat >>confdefs.h <<\_ACEOF
37024#define wxUSE_DATAOBJ 1
37025_ACEOF
37026
37027 fi
37028fi
37029
37030if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
37031 if test "$wxUSE_GTK" = 1; then
37032 if test "$WXGTK12" != 1; then
37033 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
37034echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
37035 wxUSE_DRAG_AND_DROP=no
37036 fi
37037 fi
37038
37039 if test "$wxUSE_MOTIF" = 1; then
37040 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
37041echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
37042 wxUSE_DRAG_AND_DROP=no
37043 fi
37044
37045 if test "$wxUSE_X11" = 1; then
37046 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
37047echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
37048 wxUSE_DRAG_AND_DROP=no
37049 fi
37050
37051 if test "$wxUSE_MGL" = 1; then
37052 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
37053echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
37054 wxUSE_DRAG_AND_DROP=no
37055 fi
37056
37057 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
37058 cat >>confdefs.h <<\_ACEOF
37059#define wxUSE_DRAG_AND_DROP 1
37060_ACEOF
37061
37062 fi
37063
37064fi
37065
37066if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
37067 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
37068fi
37069
37070if test "$wxUSE_SPLINES" = "yes" ; then
37071 cat >>confdefs.h <<\_ACEOF
37072#define wxUSE_SPLINES 1
37073_ACEOF
37074
37075fi
37076
37077
37078USES_CONTROLS=0
37079if test "$wxUSE_CONTROLS" = "yes"; then
37080 USES_CONTROLS=1
37081fi
37082
37083if test "$wxUSE_ACCEL" = "yes"; then
37084 cat >>confdefs.h <<\_ACEOF
37085#define wxUSE_ACCEL 1
37086_ACEOF
37087
37088 USES_CONTROLS=1
37089fi
37090
37091if test "$wxUSE_BUTTON" = "yes"; then
37092 cat >>confdefs.h <<\_ACEOF
37093#define wxUSE_BUTTON 1
37094_ACEOF
37095
37096 USES_CONTROLS=1
37097fi
37098
37099if test "$wxUSE_BMPBUTTON" = "yes"; then
37100 cat >>confdefs.h <<\_ACEOF
37101#define wxUSE_BMPBUTTON 1
37102_ACEOF
37103
37104 USES_CONTROLS=1
37105fi
37106
37107if test "$wxUSE_CALCTRL" = "yes"; then
37108 cat >>confdefs.h <<\_ACEOF
37109#define wxUSE_CALENDARCTRL 1
37110_ACEOF
37111
37112 USES_CONTROLS=1
37113 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
37114fi
37115
37116if test "$wxUSE_CARET" = "yes"; then
37117 cat >>confdefs.h <<\_ACEOF
37118#define wxUSE_CARET 1
37119_ACEOF
37120
37121 USES_CONTROLS=1
37122 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
37123fi
37124
37125if test "$wxUSE_COMBOBOX" = "yes"; then
37126 cat >>confdefs.h <<\_ACEOF
37127#define wxUSE_COMBOBOX 1
37128_ACEOF
37129
37130 USES_CONTROLS=1
37131fi
37132
37133if test "$wxUSE_CHOICE" = "yes"; then
37134 cat >>confdefs.h <<\_ACEOF
37135#define wxUSE_CHOICE 1
37136_ACEOF
37137
37138 USES_CONTROLS=1
37139fi
37140
92bbdbcd
WS
37141if test "$wxUSE_CHOICEBOOK" = "yes"; then
37142 cat >>confdefs.h <<\_ACEOF
37143#define wxUSE_CHOICEBOOK 1
37144_ACEOF
37145
37146 USES_CONTROLS=1
37147fi
37148
a848cd7e
SC
37149if test "$wxUSE_CHECKBOX" = "yes"; then
37150 cat >>confdefs.h <<\_ACEOF
37151#define wxUSE_CHECKBOX 1
37152_ACEOF
37153
37154 USES_CONTROLS=1
37155fi
37156
37157if test "$wxUSE_CHECKLST" = "yes"; then
37158 cat >>confdefs.h <<\_ACEOF
37159#define wxUSE_CHECKLISTBOX 1
37160_ACEOF
37161
37162 USES_CONTROLS=1
37163 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
37164fi
37165
37166if test "$wxUSE_DISPLAY" = "yes"; then
37167 cat >>confdefs.h <<\_ACEOF
37168#define wxUSE_DISPLAY 1
37169_ACEOF
37170
37171 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
37172fi
37173
37174if test "$wxUSE_GAUGE" = "yes"; then
37175 cat >>confdefs.h <<\_ACEOF
37176#define wxUSE_GAUGE 1
37177_ACEOF
37178
37179 USES_CONTROLS=1
37180fi
37181
37182if test "$wxUSE_GRID" = "yes"; then
37183 cat >>confdefs.h <<\_ACEOF
37184#define wxUSE_GRID 1
37185_ACEOF
37186
37187 USES_CONTROLS=1
37188 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
37189fi
37190
37191if test "$wxUSE_IMAGLIST" = "yes"; then
37192 cat >>confdefs.h <<\_ACEOF
37193#define wxUSE_IMAGLIST 1
37194_ACEOF
37195
37196fi
37197
37198if test "$wxUSE_LISTBOOK" = "yes"; then
37199 cat >>confdefs.h <<\_ACEOF
37200#define wxUSE_LISTBOOK 1
37201_ACEOF
37202
37203 USES_CONTROLS=1
37204fi
37205
37206if test "$wxUSE_LISTBOX" = "yes"; then
37207 cat >>confdefs.h <<\_ACEOF
37208#define wxUSE_LISTBOX 1
37209_ACEOF
37210
37211 USES_CONTROLS=1
37212fi
37213
37214if test "$wxUSE_LISTCTRL" = "yes"; then
37215 if test "$wxUSE_IMAGLIST" = "yes"; then
37216 cat >>confdefs.h <<\_ACEOF
37217#define wxUSE_LISTCTRL 1
37218_ACEOF
37219
37220 USES_CONTROLS=1
37221 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
37222 else
37223 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
37224echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
37225 fi
37226fi
37227
37228if test "$wxUSE_NOTEBOOK" = "yes"; then
37229 cat >>confdefs.h <<\_ACEOF
37230#define wxUSE_NOTEBOOK 1
37231_ACEOF
37232
37233 USES_CONTROLS=1
37234 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
37235fi
37236
37237
37238if test "$wxUSE_RADIOBOX" = "yes"; then
37239 cat >>confdefs.h <<\_ACEOF
37240#define wxUSE_RADIOBOX 1
37241_ACEOF
37242
37243 USES_CONTROLS=1
37244fi
37245
37246if test "$wxUSE_RADIOBTN" = "yes"; then
37247 cat >>confdefs.h <<\_ACEOF
37248#define wxUSE_RADIOBTN 1
37249_ACEOF
37250
37251 USES_CONTROLS=1
37252fi
37253
37254if test "$wxUSE_SASH" = "yes"; then
37255 cat >>confdefs.h <<\_ACEOF
37256#define wxUSE_SASH 1
37257_ACEOF
37258
37259 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
37260fi
37261
37262if test "$wxUSE_SCROLLBAR" = "yes"; then
37263 cat >>confdefs.h <<\_ACEOF
37264#define wxUSE_SCROLLBAR 1
37265_ACEOF
37266
37267 USES_CONTROLS=1
37268 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
37269fi
37270
37271if test "$wxUSE_SLIDER" = "yes"; then
37272 cat >>confdefs.h <<\_ACEOF
37273#define wxUSE_SLIDER 1
37274_ACEOF
37275
37276 USES_CONTROLS=1
37277fi
37278
37279if test "$wxUSE_SPINBTN" = "yes"; then
37280 cat >>confdefs.h <<\_ACEOF
37281#define wxUSE_SPINBTN 1
37282_ACEOF
37283
37284 USES_CONTROLS=1
37285fi
37286
37287if test "$wxUSE_SPINCTRL" = "yes"; then
37288 cat >>confdefs.h <<\_ACEOF
37289#define wxUSE_SPINCTRL 1
37290_ACEOF
37291
37292 USES_CONTROLS=1
37293fi
37294
37295if test "$wxUSE_SPLITTER" = "yes"; then
37296 cat >>confdefs.h <<\_ACEOF
37297#define wxUSE_SPLITTER 1
37298_ACEOF
37299
37300 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
37301fi
37302
37303if test "$wxUSE_STATBMP" = "yes"; then
37304 cat >>confdefs.h <<\_ACEOF
37305#define wxUSE_STATBMP 1
37306_ACEOF
37307
37308 USES_CONTROLS=1
37309fi
37310
37311if test "$wxUSE_STATBOX" = "yes"; then
37312 cat >>confdefs.h <<\_ACEOF
37313#define wxUSE_STATBOX 1
37314_ACEOF
37315
37316 USES_CONTROLS=1
37317fi
37318
37319if test "$wxUSE_STATTEXT" = "yes"; then
37320 cat >>confdefs.h <<\_ACEOF
37321#define wxUSE_STATTEXT 1
37322_ACEOF
37323
37324 USES_CONTROLS=1
37325fi
37326
37327if test "$wxUSE_STATLINE" = "yes"; then
37328 cat >>confdefs.h <<\_ACEOF
37329#define wxUSE_STATLINE 1
37330_ACEOF
37331
37332 USES_CONTROLS=1
37333fi
37334
37335if test "$wxUSE_STATUSBAR" = "yes"; then
37336 cat >>confdefs.h <<\_ACEOF
37337#define wxUSE_STATUSBAR 1
37338_ACEOF
37339
37340 USES_CONTROLS=1
37341
37342 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
37343fi
37344
37345if test "$wxUSE_TABDIALOG" = "yes"; then
37346 cat >>confdefs.h <<\_ACEOF
37347#define wxUSE_TAB_DIALOG 1
37348_ACEOF
37349
37350 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
37351fi
37352
37353if test "$wxUSE_TEXTCTRL" = "yes"; then
37354 cat >>confdefs.h <<\_ACEOF
37355#define wxUSE_TEXTCTRL 1
37356_ACEOF
37357
37358 USES_CONTROLS=1
37359 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
37360fi
37361
37362if test "$wxUSE_TOGGLEBTN" = "yes"; then
37363 if test "$wxUSE_COCOA" = 1 ; then
37364 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
37365echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
37366 wxUSE_TOGGLEBTN=no
bdcade0a
MB
37367 else
37368 if test "$wxUSE_PM" = 1; then
37369 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5
37370echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;}
37371 wxUSE_TOGGLEBTN=no
37372 fi
a848cd7e
SC
37373 fi
37374 if test "$wxUSE_UNIVERSAL" = "yes"; then
37375 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
37376echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
37377 wxUSE_TOGGLEBTN=no
37378 fi
37379
37380 if test "$wxUSE_TOGGLEBTN" = "yes"; then
37381 cat >>confdefs.h <<\_ACEOF
37382#define wxUSE_TOGGLEBTN 1
37383_ACEOF
37384
37385 USES_CONTROLS=1
37386 fi
37387fi
37388
37389if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
37390 cat >>confdefs.h <<\_ACEOF
37391#define wxUSE_TOOLBAR_SIMPLE 1
37392_ACEOF
37393
37394 wxUSE_TOOLBAR="yes"
37395 USES_CONTROLS=1
37396fi
37397
37398if test "$wxUSE_TOOLBAR" = "yes"; then
37399 cat >>confdefs.h <<\_ACEOF
37400#define wxUSE_TOOLBAR 1
37401_ACEOF
37402
37403 USES_CONTROLS=1
37404
37405 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
37406 wxUSE_TOOLBAR_NATIVE="yes"
37407 fi
37408
37409 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
37410 cat >>confdefs.h <<\_ACEOF
37411#define wxUSE_TOOLBAR_NATIVE 1
37412_ACEOF
37413
37414 USES_CONTROLS=1
37415 fi
37416
37417 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
37418fi
37419
37420if test "$wxUSE_TOOLTIPS" = "yes"; then
37421 if test "$wxUSE_MOTIF" = 1; then
37422 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
37423echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
37424 else
37425 if test "$wxUSE_UNIVERSAL" = "yes"; then
37426 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
37427echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
37428 else
37429 cat >>confdefs.h <<\_ACEOF
37430#define wxUSE_TOOLTIPS 1
37431_ACEOF
37432
37433 fi
37434 fi
37435fi
37436
37437if test "$wxUSE_TREECTRL" = "yes"; then
37438 if test "$wxUSE_IMAGLIST" = "yes"; then
37439 cat >>confdefs.h <<\_ACEOF
37440#define wxUSE_TREECTRL 1
37441_ACEOF
37442
37443 USES_CONTROLS=1
37444 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
37445 else
37446 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
37447echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
37448 fi
37449fi
37450
37451if test "$wxUSE_POPUPWIN" = "yes"; then
37452 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
37453 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
37454echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
37455 else
37456 if test "$wxUSE_PM" = 1; then
37457 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
37458echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
37459 else
37460 cat >>confdefs.h <<\_ACEOF
37461#define wxUSE_POPUPWIN 1
37462_ACEOF
37463
37464
37465 USES_CONTROLS=1
37466 fi
37467 fi
37468fi
37469
37470if test "$wxUSE_TIPWINDOW" = "yes"; then
37471 if test "$wxUSE_PM" = 1; then
37472 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
37473echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
37474 else
37475 cat >>confdefs.h <<\_ACEOF
37476#define wxUSE_TIPWINDOW 1
37477_ACEOF
37478
37479 fi
37480fi
37481
37482if test "$USES_CONTROLS" = 1; then
37483 cat >>confdefs.h <<\_ACEOF
37484#define wxUSE_CONTROLS 1
37485_ACEOF
37486
37487fi
37488
37489
37490if test "$wxUSE_ACCESSIBILITY" = "yes"; then
37491 cat >>confdefs.h <<\_ACEOF
37492#define wxUSE_ACCESSIBILITY 1
37493_ACEOF
37494
37495 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
37496fi
37497
37498if test "$wxUSE_DRAGIMAGE" = "yes"; then
37499 cat >>confdefs.h <<\_ACEOF
37500#define wxUSE_DRAGIMAGE 1
37501_ACEOF
37502
37503 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
37504fi
37505
37506if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
37507 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
37508 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
37509echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
37510 else
37511 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
37512#define wxUSE_EXCEPTIONS 1
37513_ACEOF
37514
07bea8f0
VS
37515 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
37516 fi
a848cd7e
SC
37517fi
37518
37519USE_HTML=0
37520if test "$wxUSE_HTML" = "yes"; then
37521 cat >>confdefs.h <<\_ACEOF
37522#define wxUSE_HTML 1
37523_ACEOF
37524
37525 USE_HTML=1
37526 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
37527 if test "$wxUSE_MAC" = 1; then
37528 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
37529 fi
a848cd7e 37530fi
646b6ec1 37531if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 37532 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0
VS
37533 old_CPPFLAGS="$CPPFLAGS"
37534 CPPFLAGS="$CPPFLAGS -x objective-c++"
37535 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
37536echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
37537if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
37538 echo $ECHO_N "(cached) $ECHO_C" >&6
37539else
37540 cat >conftest.$ac_ext <<_ACEOF
37541/* confdefs.h. */
37542_ACEOF
37543cat confdefs.h >>conftest.$ac_ext
37544cat >>conftest.$ac_ext <<_ACEOF
37545/* end confdefs.h. */
37546#include <Carbon/Carbon.h>
37547
37548#include <WebKit/HIWebView.h>
37549_ACEOF
37550rm -f conftest.$ac_objext
37551if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37552 (eval $ac_compile) 2>conftest.er1
37553 ac_status=$?
37554 grep -v '^ *+' conftest.er1 >conftest.err
37555 rm -f conftest.er1
37556 cat conftest.err >&5
37557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37558 (exit $ac_status); } &&
5294a27e 37559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
37560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37561 (eval $ac_try) 2>&5
37562 ac_status=$?
37563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37564 (exit $ac_status); }; } &&
37565 { ac_try='test -s conftest.$ac_objext'
37566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37567 (eval $ac_try) 2>&5
37568 ac_status=$?
37569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37570 (exit $ac_status); }; }; then
37571 ac_cv_header_WebKit_HIWebView_h=yes
37572else
37573 echo "$as_me: failed program was:" >&5
37574sed 's/^/| /' conftest.$ac_ext >&5
37575
37576ac_cv_header_WebKit_HIWebView_h=no
37577fi
37578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37579fi
37580echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
37581echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
37582if test $ac_cv_header_WebKit_HIWebView_h = yes; then
37583
37584 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
37585#define wxUSE_WEBKIT 1
37586_ACEOF
37587
07bea8f0
VS
37588 WEBKIT_LINK="-framework WebKit"
37589
37590else
37591
37592 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
37593echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
37594 wxUSE_WEBKIT=no
37595
646b6ec1
VS
37596fi
37597
07bea8f0
VS
37598
37599 CPPFLAGS="$old_CPPFLAGS"
37600 elif test "$wxUSE_COCOA" = 1; then
37601 cat >>confdefs.h <<\_ACEOF
37602#define wxUSE_WEBKIT 1
37603_ACEOF
37604
37605 else
37606 wxUSE_WEBKIT=no
37607 fi
37608fi
37609
9a8f0513
VS
37610USE_XRC=0
37611if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
37612 if test "$wxUSE_XML" != "yes"; then
37613 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
37614echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
37615 wxUSE_XRC=no
37616 else
37617 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
37618#define wxUSE_XRC 1
37619_ACEOF
37620
d2ebf0b7
VS
37621 USE_XRC=1
37622 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
37623 fi
9a8f0513 37624fi
07bea8f0 37625
a848cd7e
SC
37626if test "$wxUSE_MENUS" = "yes"; then
37627 cat >>confdefs.h <<\_ACEOF
37628#define wxUSE_MENUS 1
37629_ACEOF
37630
37631 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
37632fi
37633
37634if test "$wxUSE_METAFILE" = "yes"; then
37635 cat >>confdefs.h <<\_ACEOF
37636#define wxUSE_METAFILE 1
37637_ACEOF
37638
37639fi
37640
37641if test "$wxUSE_MIMETYPE" = "yes"; then
37642 cat >>confdefs.h <<\_ACEOF
37643#define wxUSE_MIMETYPE 1
37644_ACEOF
37645
37646fi
37647
37648if test "$wxUSE_MINIFRAME" = "yes"; then
37649 cat >>confdefs.h <<\_ACEOF
37650#define wxUSE_MINIFRAME 1
37651_ACEOF
37652
37653 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
37654fi
37655
37656if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
37657 cat >>confdefs.h <<\_ACEOF
37658#define wxUSE_SYSTEM_OPTIONS 1
37659_ACEOF
37660
37661 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 37662 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
37663 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
37664 fi
37665fi
37666
37667
37668if test "$wxUSE_VALIDATORS" = "yes"; then
37669 cat >>confdefs.h <<\_ACEOF
37670#define wxUSE_VALIDATORS 1
37671_ACEOF
37672
37673 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
37674fi
37675
37676if test "$wxUSE_PALETTE" = "yes" ; then
37677 cat >>confdefs.h <<\_ACEOF
37678#define wxUSE_PALETTE 1
37679_ACEOF
37680
37681fi
37682
37683if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
37684 LIBS=" -lunicows $LIBS"
37685fi
37686
37687
37688if test "$wxUSE_IMAGE" = "yes" ; then
37689 cat >>confdefs.h <<\_ACEOF
37690#define wxUSE_IMAGE 1
37691_ACEOF
37692
37693
37694 if test "$wxUSE_GIF" = "yes" ; then
37695 cat >>confdefs.h <<\_ACEOF
37696#define wxUSE_GIF 1
37697_ACEOF
37698
37699 fi
37700
37701 if test "$wxUSE_PCX" = "yes" ; then
37702 cat >>confdefs.h <<\_ACEOF
37703#define wxUSE_PCX 1
37704_ACEOF
37705
37706 fi
37707
37708 if test "$wxUSE_IFF" = "yes" ; then
37709 cat >>confdefs.h <<\_ACEOF
37710#define wxUSE_IFF 1
37711_ACEOF
37712
37713 fi
37714
37715 if test "$wxUSE_PNM" = "yes" ; then
37716 cat >>confdefs.h <<\_ACEOF
37717#define wxUSE_PNM 1
37718_ACEOF
37719
37720 fi
37721
37722 if test "$wxUSE_XPM" = "yes" ; then
37723 cat >>confdefs.h <<\_ACEOF
37724#define wxUSE_XPM 1
37725_ACEOF
37726
37727 fi
37728
37729 if test "$wxUSE_ICO_CUR" = "yes" ; then
37730 cat >>confdefs.h <<\_ACEOF
37731#define wxUSE_ICO_CUR 1
37732_ACEOF
37733
37734 fi
37735fi
37736
37737
37738if test "$wxUSE_CHOICEDLG" = "yes"; then
37739 cat >>confdefs.h <<\_ACEOF
37740#define wxUSE_CHOICEDLG 1
37741_ACEOF
37742
37743fi
37744
37745if test "$wxUSE_COLOURDLG" = "yes"; then
37746 cat >>confdefs.h <<\_ACEOF
37747#define wxUSE_COLOURDLG 1
37748_ACEOF
37749
37750fi
37751
37752if test "$wxUSE_FILEDLG" = "yes"; then
37753 cat >>confdefs.h <<\_ACEOF
37754#define wxUSE_FILEDLG 1
37755_ACEOF
37756
37757fi
37758
37759if test "$wxUSE_FINDREPLDLG" = "yes"; then
37760 cat >>confdefs.h <<\_ACEOF
37761#define wxUSE_FINDREPLDLG 1
37762_ACEOF
37763
37764fi
37765
37766if test "$wxUSE_FONTDLG" = "yes"; then
37767 cat >>confdefs.h <<\_ACEOF
37768#define wxUSE_FONTDLG 1
37769_ACEOF
37770
37771fi
37772
37773if test "$wxUSE_DIRDLG" = "yes"; then
37774 if test "$wxUSE_TREECTRL" != "yes"; then
37775 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
37776echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
37777 else
37778 cat >>confdefs.h <<\_ACEOF
37779#define wxUSE_DIRDLG 1
37780_ACEOF
37781
37782 fi
37783fi
37784
37785if test "$wxUSE_MSGDLG" = "yes"; then
37786 cat >>confdefs.h <<\_ACEOF
37787#define wxUSE_MSGDLG 1
37788_ACEOF
37789
37790fi
37791
37792if test "$wxUSE_NUMBERDLG" = "yes"; then
37793 cat >>confdefs.h <<\_ACEOF
37794#define wxUSE_NUMBERDLG 1
37795_ACEOF
37796
37797fi
37798
37799if test "$wxUSE_PROGRESSDLG" = "yes"; then
37800 if test "$wxUSE_CONSTRAINTS" != "yes"; then
37801 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
37802echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
37803 else
37804 cat >>confdefs.h <<\_ACEOF
37805#define wxUSE_PROGRESSDLG 1
37806_ACEOF
37807
37808 fi
37809fi
37810
37811if test "$wxUSE_SPLASH" = "yes"; then
37812 cat >>confdefs.h <<\_ACEOF
37813#define wxUSE_SPLASH 1
37814_ACEOF
37815
2057db16 37816 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
37817fi
37818
37819if test "$wxUSE_STARTUP_TIPS" = "yes"; then
37820 if test "$wxUSE_CONSTRAINTS" != "yes"; then
37821 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
37822echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
37823 else
37824 cat >>confdefs.h <<\_ACEOF
37825#define wxUSE_STARTUP_TIPS 1
37826_ACEOF
37827
37828 fi
37829fi
37830
37831if test "$wxUSE_TEXTDLG" = "yes"; then
37832 cat >>confdefs.h <<\_ACEOF
37833#define wxUSE_TEXTDLG 1
37834_ACEOF
37835
37836fi
37837
37838if test "$wxUSE_WIZARDDLG" = "yes"; then
37839 cat >>confdefs.h <<\_ACEOF
37840#define wxUSE_WIZARDDLG 1
37841_ACEOF
37842
37843 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
37844fi
37845
37846
37847if test "$cross_compiling" = "yes"; then
37848 OSINFO="\"$host\""
37849else
37850 OSINFO=`uname -s -r -m`
37851 OSINFO="\"$OSINFO\""
37852fi
37853
37854cat >>confdefs.h <<_ACEOF
37855#define WXWIN_OS_DESCRIPTION $OSINFO
37856_ACEOF
37857
37858
37859
37860if test "x$prefix" != "xNONE"; then
37861 wxPREFIX=$prefix
37862else
37863 wxPREFIX=$ac_default_prefix
37864fi
37865
37866cat >>confdefs.h <<_ACEOF
37867#define wxINSTALL_PREFIX "$wxPREFIX"
37868_ACEOF
37869
37870
a848cd7e
SC
37871
37872
37873CORE_BASE_LIBS="net base"
37874CORE_GUI_LIBS="adv core"
37875
37876if test "$wxUSE_XML" = "yes" ; then
37877 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
37878fi
37879if test "$wxUSE_ODBC" != "no" ; then
37880 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
37881 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
37882fi
37883if test "$wxUSE_HTML" = "yes" ; then
37884 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
37885fi
9a8f0513
VS
37886if test "$wxUSE_XRC" = "yes" ; then
37887 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
37888fi
a848cd7e
SC
37889
37890if test "$wxUSE_GUI" != "yes"; then
37891 CORE_GUI_LIBS=""
37892fi
37893
37894
37895
37896
37897
37898
37899
37900
37901if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 37902 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
37903 if test "$USE_DARWIN" = 1; then
37904 LDFLAGS="$LDFLAGS -framework QuickTime"
37905 else
37906 LDFLAGS="$LDFLAGS -lQuickTimeLib"
37907 fi
07bea8f0 37908 fi
5dcf30a0 37909 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
37910 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
37911 else
37912 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 37913 fi
a848cd7e
SC
37914fi
37915if test "$wxUSE_COCOA" = 1 ; then
f7e98dee 37916 LDFLAGS="$LDFLAGS -framework Cocoa"
a848cd7e
SC
37917fi
37918
37919
37920LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
37921
37922have_cos=0
37923have_floor=0
37924
37925for ac_func in cos
37926do
37927as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37928echo "$as_me:$LINENO: checking for $ac_func" >&5
37929echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37930if eval "test \"\${$as_ac_var+set}\" = set"; then
37931 echo $ECHO_N "(cached) $ECHO_C" >&6
37932else
37933 cat >conftest.$ac_ext <<_ACEOF
37934/* confdefs.h. */
37935_ACEOF
37936cat confdefs.h >>conftest.$ac_ext
37937cat >>conftest.$ac_ext <<_ACEOF
37938/* end confdefs.h. */
ac1cb8d3
VS
37939/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37940 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37941#define $ac_func innocuous_$ac_func
37942
a848cd7e
SC
37943/* System header to define __stub macros and hopefully few prototypes,
37944 which can conflict with char $ac_func (); below.
37945 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37946 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37947
a848cd7e
SC
37948#ifdef __STDC__
37949# include <limits.h>
37950#else
37951# include <assert.h>
37952#endif
ac1cb8d3
VS
37953
37954#undef $ac_func
37955
a848cd7e
SC
37956/* Override any gcc2 internal prototype to avoid an error. */
37957#ifdef __cplusplus
37958extern "C"
37959{
37960#endif
37961/* We use char because int might match the return type of a gcc2
37962 builtin and then its argument prototype would still apply. */
37963char $ac_func ();
37964/* The GNU C library defines this for functions which it implements
37965 to always fail with ENOSYS. Some functions are actually named
37966 something starting with __ and the normal name is an alias. */
37967#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37968choke me
37969#else
37970char (*f) () = $ac_func;
37971#endif
37972#ifdef __cplusplus
37973}
37974#endif
37975
37976int
37977main ()
37978{
37979return f != $ac_func;
37980 ;
37981 return 0;
37982}
37983_ACEOF
37984rm -f conftest.$ac_objext conftest$ac_exeext
37985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37986 (eval $ac_link) 2>conftest.er1
a848cd7e 37987 ac_status=$?
ac1cb8d3
VS
37988 grep -v '^ *+' conftest.er1 >conftest.err
37989 rm -f conftest.er1
37990 cat conftest.err >&5
a848cd7e
SC
37991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37992 (exit $ac_status); } &&
5294a27e 37993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37995 (eval $ac_try) 2>&5
37996 ac_status=$?
37997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37998 (exit $ac_status); }; } &&
37999 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38001 (eval $ac_try) 2>&5
38002 ac_status=$?
38003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38004 (exit $ac_status); }; }; then
38005 eval "$as_ac_var=yes"
38006else
38007 echo "$as_me: failed program was:" >&5
38008sed 's/^/| /' conftest.$ac_ext >&5
38009
38010eval "$as_ac_var=no"
38011fi
ac1cb8d3
VS
38012rm -f conftest.err conftest.$ac_objext \
38013 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38014fi
38015echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38016echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38017if test `eval echo '${'$as_ac_var'}'` = yes; then
38018 cat >>confdefs.h <<_ACEOF
38019#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38020_ACEOF
38021 have_cos=1
38022fi
38023done
38024
38025
38026for ac_func in floor
38027do
38028as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38029echo "$as_me:$LINENO: checking for $ac_func" >&5
38030echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38031if eval "test \"\${$as_ac_var+set}\" = set"; then
38032 echo $ECHO_N "(cached) $ECHO_C" >&6
38033else
38034 cat >conftest.$ac_ext <<_ACEOF
38035/* confdefs.h. */
38036_ACEOF
38037cat confdefs.h >>conftest.$ac_ext
38038cat >>conftest.$ac_ext <<_ACEOF
38039/* end confdefs.h. */
ac1cb8d3
VS
38040/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38041 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38042#define $ac_func innocuous_$ac_func
38043
a848cd7e
SC
38044/* System header to define __stub macros and hopefully few prototypes,
38045 which can conflict with char $ac_func (); below.
38046 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38047 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38048
a848cd7e
SC
38049#ifdef __STDC__
38050# include <limits.h>
38051#else
38052# include <assert.h>
38053#endif
ac1cb8d3
VS
38054
38055#undef $ac_func
38056
a848cd7e
SC
38057/* Override any gcc2 internal prototype to avoid an error. */
38058#ifdef __cplusplus
38059extern "C"
38060{
38061#endif
38062/* We use char because int might match the return type of a gcc2
38063 builtin and then its argument prototype would still apply. */
38064char $ac_func ();
38065/* The GNU C library defines this for functions which it implements
38066 to always fail with ENOSYS. Some functions are actually named
38067 something starting with __ and the normal name is an alias. */
38068#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38069choke me
38070#else
38071char (*f) () = $ac_func;
38072#endif
38073#ifdef __cplusplus
38074}
38075#endif
38076
38077int
38078main ()
38079{
38080return f != $ac_func;
38081 ;
38082 return 0;
38083}
38084_ACEOF
38085rm -f conftest.$ac_objext conftest$ac_exeext
38086if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38087 (eval $ac_link) 2>conftest.er1
a848cd7e 38088 ac_status=$?
ac1cb8d3
VS
38089 grep -v '^ *+' conftest.er1 >conftest.err
38090 rm -f conftest.er1
38091 cat conftest.err >&5
a848cd7e
SC
38092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38093 (exit $ac_status); } &&
5294a27e 38094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38096 (eval $ac_try) 2>&5
38097 ac_status=$?
38098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38099 (exit $ac_status); }; } &&
38100 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38102 (eval $ac_try) 2>&5
38103 ac_status=$?
38104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38105 (exit $ac_status); }; }; then
38106 eval "$as_ac_var=yes"
38107else
38108 echo "$as_me: failed program was:" >&5
38109sed 's/^/| /' conftest.$ac_ext >&5
38110
38111eval "$as_ac_var=no"
38112fi
ac1cb8d3
VS
38113rm -f conftest.err conftest.$ac_objext \
38114 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38115fi
38116echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38117echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38118if test `eval echo '${'$as_ac_var'}'` = yes; then
38119 cat >>confdefs.h <<_ACEOF
38120#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38121_ACEOF
38122 have_floor=1
38123fi
38124done
38125
38126echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
38127echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
38128if test "$have_cos" = 1 -a "$have_floor" = 1; then
38129 echo "$as_me:$LINENO: result: yes" >&5
38130echo "${ECHO_T}yes" >&6
38131else
38132 echo "$as_me:$LINENO: result: no" >&5
38133echo "${ECHO_T}no" >&6
38134 LIBS="$LIBS -lm"
38135 # use different functions to avoid configure caching
38136 have_sin=0
38137 have_ceil=0
38138
38139for ac_func in sin
38140do
38141as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38142echo "$as_me:$LINENO: checking for $ac_func" >&5
38143echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38144if eval "test \"\${$as_ac_var+set}\" = set"; then
38145 echo $ECHO_N "(cached) $ECHO_C" >&6
38146else
38147 cat >conftest.$ac_ext <<_ACEOF
38148/* confdefs.h. */
38149_ACEOF
38150cat confdefs.h >>conftest.$ac_ext
38151cat >>conftest.$ac_ext <<_ACEOF
38152/* end confdefs.h. */
ac1cb8d3
VS
38153/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38155#define $ac_func innocuous_$ac_func
38156
a848cd7e
SC
38157/* System header to define __stub macros and hopefully few prototypes,
38158 which can conflict with char $ac_func (); below.
38159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38160 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38161
a848cd7e
SC
38162#ifdef __STDC__
38163# include <limits.h>
38164#else
38165# include <assert.h>
38166#endif
ac1cb8d3
VS
38167
38168#undef $ac_func
38169
a848cd7e
SC
38170/* Override any gcc2 internal prototype to avoid an error. */
38171#ifdef __cplusplus
38172extern "C"
38173{
38174#endif
38175/* We use char because int might match the return type of a gcc2
38176 builtin and then its argument prototype would still apply. */
38177char $ac_func ();
38178/* The GNU C library defines this for functions which it implements
38179 to always fail with ENOSYS. Some functions are actually named
38180 something starting with __ and the normal name is an alias. */
38181#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38182choke me
38183#else
38184char (*f) () = $ac_func;
38185#endif
38186#ifdef __cplusplus
38187}
38188#endif
38189
38190int
38191main ()
38192{
38193return f != $ac_func;
38194 ;
38195 return 0;
38196}
38197_ACEOF
38198rm -f conftest.$ac_objext conftest$ac_exeext
38199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38200 (eval $ac_link) 2>conftest.er1
a848cd7e 38201 ac_status=$?
ac1cb8d3
VS
38202 grep -v '^ *+' conftest.er1 >conftest.err
38203 rm -f conftest.er1
38204 cat conftest.err >&5
a848cd7e
SC
38205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38206 (exit $ac_status); } &&
5294a27e 38207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38209 (eval $ac_try) 2>&5
38210 ac_status=$?
38211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38212 (exit $ac_status); }; } &&
38213 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38215 (eval $ac_try) 2>&5
38216 ac_status=$?
38217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38218 (exit $ac_status); }; }; then
38219 eval "$as_ac_var=yes"
38220else
38221 echo "$as_me: failed program was:" >&5
38222sed 's/^/| /' conftest.$ac_ext >&5
38223
38224eval "$as_ac_var=no"
38225fi
ac1cb8d3
VS
38226rm -f conftest.err conftest.$ac_objext \
38227 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38228fi
38229echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38230echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38231if test `eval echo '${'$as_ac_var'}'` = yes; then
38232 cat >>confdefs.h <<_ACEOF
38233#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38234_ACEOF
38235 have_sin=1
38236fi
38237done
38238
38239
38240for ac_func in ceil
38241do
38242as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38243echo "$as_me:$LINENO: checking for $ac_func" >&5
38244echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38245if eval "test \"\${$as_ac_var+set}\" = set"; then
38246 echo $ECHO_N "(cached) $ECHO_C" >&6
38247else
38248 cat >conftest.$ac_ext <<_ACEOF
38249/* confdefs.h. */
38250_ACEOF
38251cat confdefs.h >>conftest.$ac_ext
38252cat >>conftest.$ac_ext <<_ACEOF
38253/* end confdefs.h. */
ac1cb8d3
VS
38254/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38255 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38256#define $ac_func innocuous_$ac_func
38257
a848cd7e
SC
38258/* System header to define __stub macros and hopefully few prototypes,
38259 which can conflict with char $ac_func (); below.
38260 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38261 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38262
a848cd7e
SC
38263#ifdef __STDC__
38264# include <limits.h>
38265#else
38266# include <assert.h>
38267#endif
ac1cb8d3
VS
38268
38269#undef $ac_func
38270
a848cd7e
SC
38271/* Override any gcc2 internal prototype to avoid an error. */
38272#ifdef __cplusplus
38273extern "C"
38274{
38275#endif
38276/* We use char because int might match the return type of a gcc2
38277 builtin and then its argument prototype would still apply. */
38278char $ac_func ();
38279/* The GNU C library defines this for functions which it implements
38280 to always fail with ENOSYS. Some functions are actually named
38281 something starting with __ and the normal name is an alias. */
38282#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38283choke me
38284#else
38285char (*f) () = $ac_func;
38286#endif
38287#ifdef __cplusplus
38288}
38289#endif
38290
38291int
38292main ()
38293{
38294return f != $ac_func;
38295 ;
38296 return 0;
38297}
38298_ACEOF
38299rm -f conftest.$ac_objext conftest$ac_exeext
38300if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38301 (eval $ac_link) 2>conftest.er1
a848cd7e 38302 ac_status=$?
ac1cb8d3
VS
38303 grep -v '^ *+' conftest.er1 >conftest.err
38304 rm -f conftest.er1
38305 cat conftest.err >&5
a848cd7e
SC
38306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38307 (exit $ac_status); } &&
5294a27e 38308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38310 (eval $ac_try) 2>&5
38311 ac_status=$?
38312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38313 (exit $ac_status); }; } &&
38314 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38316 (eval $ac_try) 2>&5
38317 ac_status=$?
38318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38319 (exit $ac_status); }; }; then
38320 eval "$as_ac_var=yes"
38321else
38322 echo "$as_me: failed program was:" >&5
38323sed 's/^/| /' conftest.$ac_ext >&5
38324
38325eval "$as_ac_var=no"
38326fi
ac1cb8d3
VS
38327rm -f conftest.err conftest.$ac_objext \
38328 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38329fi
38330echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38331echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38332if test `eval echo '${'$as_ac_var'}'` = yes; then
38333 cat >>confdefs.h <<_ACEOF
38334#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38335_ACEOF
38336 have_ceil=1
38337fi
38338done
38339
38340 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
38341echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
38342 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
38343 echo "$as_me:$LINENO: result: yes" >&5
38344echo "${ECHO_T}yes" >&6
38345 else
38346 echo "$as_me:$LINENO: result: no" >&5
38347echo "${ECHO_T}no" >&6
38348 # not sure we should warn the user, crash, etc.
38349 fi
38350fi
38351
38352if test "$wxUSE_GUI" = "yes"; then
38353
38354
38355 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
38356 drawing dynamic erase event exec font image \
38357 minimal propsize rotate shaped widgets render"
38358
38359 if test "$wxUSE_MONOLITHIC" != "yes"; then
38360 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
38361 fi
38362else
38363 SAMPLES_SUBDIRS="console"
38364fi
38365
38366
ceec2216 38367INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
a848cd7e
SC
38368-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
38369
38370if test "$GXX" = yes ; then
5294a27e
VZ
38371 CWARNINGS="-Wall"
38372 CXXWARNINGS="$CWARNINGS -Wno-ctor-dtor-privacy"
a848cd7e
SC
38373 fi
38374
38375EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
38376
0c3c69fc 38377CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
5294a27e 38378CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS`
0c3c69fc 38379CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e
SC
38380
38381
0c3c69fc 38382LIBS=`echo $LIBS`
a848cd7e
SC
38383EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
38384EXTRALIBS_XML="$EXPAT_LINK"
38385EXTRALIBS_HTML="$MSPACK_LINK"
38386EXTRALIBS_ODBC="$ODBC_LINK"
38387if test "$wxUSE_GUI" = "yes"; then
0c3c69fc 38388 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK`
a848cd7e
SC
38389fi
38390if test "$wxUSE_OPENGL" = "yes"; then
38391 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
38392fi
38393
38394LDFLAGS="$LDFLAGS $PROFILE"
38395
38396if test "$wxUSE_GTK" = 1; then
38397 WXCONFIG_INCLUDE=
38398else
38399 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
38400fi
38401
38402WXCONFIG_EXTRALIBS="$LIBS"
38403
38404if test "$wxUSE_REGEX" = "builtin" ; then
38405 wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}"
38406fi
38407if test "$wxUSE_EXPAT" = "builtin" ; then
38408 wxconfig_3rdparty="$wxconfig_3rdparty expat"
38409fi
38410if test "$wxUSE_ODBC" = "builtin" ; then
38411 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
38412fi
38413if test "$wxUSE_LIBTIFF" = "builtin" ; then
38414 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
38415fi
38416if test "$wxUSE_LIBJPEG" = "builtin" ; then
38417 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
38418fi
38419if test "$wxUSE_LIBPNG" = "builtin" ; then
38420 wxconfig_3rdparty="$wxconfig_3rdparty png"
38421fi
38422if test "$wxUSE_ZLIB" = "builtin" ; then
38423 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
38424fi
38425if test "$wxUSE_ODBC" = "builtin" ; then
38426 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
38427fi
38428
38429for i in $wxconfig_3rdparty ; do
ceec2216 38430 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
a848cd7e
SC
38431done
38432
38433
38434if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
38435 WXUNIV=1
38436else
38437 WXUNIV=0
38438fi
38439
38440
38441
38442
38443
38444
38445
38446
38447
38448if test $wxUSE_MONOLITHIC = "yes" ; then
38449 MONOLITHIC=1
38450else
38451 MONOLITHIC=0
38452fi
38453
38454if test $wxUSE_PLUGINS = "yes" ; then
38455 USE_PLUGINS=1
38456else
38457 USE_PLUGINS=0
38458fi
38459
38460if test $wxUSE_ODBC != "no" ; then
38461 USE_ODBC=1
38462else
38463 USE_ODBC=0
38464fi
38465
38466if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
38467 OFFICIAL_BUILD=1
38468else
38469 OFFICIAL_BUILD=0
38470fi
38471
38472
38473
38474
38475
38476
38477
38478
38479
38480
38481
38482
38483
38484
38485
38486
38487
38488
38489
ceec2216 38490
d1c38808 38491
a848cd7e
SC
38492
38493
38494TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
38495
38496
38497
38498
38499
38500
38501
38502
4d4ff94c
VZ
38503case "$TOOLKIT" in
38504 GTK)
38505 TOOLKIT_USER="GTK+"
38506 if test "$WXGTK20" = 1; then
38507 TOOLKIT_USER="$TOOLKIT_USER 2"
38508 fi
9a8f0513 38509 ;;
4d4ff94c
VZ
38510
38511 *)
38512 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 38513 ;;
4d4ff94c 38514esac
a848cd7e 38515
9a8f0513 38516
1e9e8aba
DE
38517
38518
a848cd7e
SC
38519 if test "x$BAKEFILE_HOST" = "x"; then
38520 BAKEFILE_HOST="${host}"
38521 fi
38522
38523 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
38524
38525 if test -n "$ac_tool_prefix"; then
38526 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
38527set dummy ${ac_tool_prefix}ranlib; ac_word=$2
38528echo "$as_me:$LINENO: checking for $ac_word" >&5
38529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38530if test "${ac_cv_prog_RANLIB+set}" = set; then
38531 echo $ECHO_N "(cached) $ECHO_C" >&6
38532else
38533 if test -n "$RANLIB"; then
38534 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
38535else
38536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38537for as_dir in $PATH
38538do
38539 IFS=$as_save_IFS
38540 test -z "$as_dir" && as_dir=.
38541 for ac_exec_ext in '' $ac_executable_extensions; do
38542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38543 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
38544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38545 break 2
38546 fi
38547done
38548done
38549
38550fi
38551fi
38552RANLIB=$ac_cv_prog_RANLIB
38553if test -n "$RANLIB"; then
38554 echo "$as_me:$LINENO: result: $RANLIB" >&5
38555echo "${ECHO_T}$RANLIB" >&6
38556else
38557 echo "$as_me:$LINENO: result: no" >&5
38558echo "${ECHO_T}no" >&6
38559fi
38560
38561fi
38562if test -z "$ac_cv_prog_RANLIB"; then
38563 ac_ct_RANLIB=$RANLIB
38564 # Extract the first word of "ranlib", so it can be a program name with args.
38565set dummy ranlib; ac_word=$2
38566echo "$as_me:$LINENO: checking for $ac_word" >&5
38567echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38568if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
38569 echo $ECHO_N "(cached) $ECHO_C" >&6
38570else
38571 if test -n "$ac_ct_RANLIB"; then
38572 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
38573else
38574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38575for as_dir in $PATH
38576do
38577 IFS=$as_save_IFS
38578 test -z "$as_dir" && as_dir=.
38579 for ac_exec_ext in '' $ac_executable_extensions; do
38580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38581 ac_cv_prog_ac_ct_RANLIB="ranlib"
38582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38583 break 2
38584 fi
38585done
38586done
38587
38588 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
38589fi
38590fi
38591ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
38592if test -n "$ac_ct_RANLIB"; then
38593 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
38594echo "${ECHO_T}$ac_ct_RANLIB" >&6
38595else
38596 echo "$as_me:$LINENO: result: no" >&5
38597echo "${ECHO_T}no" >&6
38598fi
38599
38600 RANLIB=$ac_ct_RANLIB
38601else
38602 RANLIB="$ac_cv_prog_RANLIB"
38603fi
38604
38605 # Find a good install program. We prefer a C program (faster),
38606# so one script is as good as another. But avoid the broken or
38607# incompatible versions:
38608# SysV /etc/install, /usr/sbin/install
38609# SunOS /usr/etc/install
38610# IRIX /sbin/install
38611# AIX /bin/install
38612# AmigaOS /C/install, which installs bootblocks on floppy discs
38613# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
38614# AFS /usr/afsws/bin/install, which mishandles nonexistent args
38615# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 38616# OS/2's system install, which has a completely different semantic
a848cd7e
SC
38617# ./install, which can be erroneously created by make from ./install.sh.
38618echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
38619echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
38620if test -z "$INSTALL"; then
38621if test "${ac_cv_path_install+set}" = set; then
38622 echo $ECHO_N "(cached) $ECHO_C" >&6
38623else
38624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38625for as_dir in $PATH
38626do
38627 IFS=$as_save_IFS
38628 test -z "$as_dir" && as_dir=.
38629 # Account for people who put trailing slashes in PATH elements.
38630case $as_dir/ in
38631 ./ | .// | /cC/* | \
38632 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 38633 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
38634 /usr/ucb/* ) ;;
38635 *)
38636 # OSF1 and SCO ODT 3.0 have their own names for install.
38637 # Don't use installbsd from OSF since it installs stuff as root
38638 # by default.
38639 for ac_prog in ginstall scoinst install; do
38640 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
38641 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
38642 if test $ac_prog = install &&
38643 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
38644 # AIX install. It has an incompatible calling convention.
38645 :
38646 elif test $ac_prog = install &&
38647 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
38648 # program-specific install script used by HP pwplus--don't use.
38649 :
38650 else
38651 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
38652 break 3
38653 fi
38654 fi
a848cd7e
SC
38655 done
38656 done
38657 ;;
38658esac
38659done
38660
38661
38662fi
38663 if test "${ac_cv_path_install+set}" = set; then
38664 INSTALL=$ac_cv_path_install
38665 else
38666 # As a last resort, use the slow shell script. We don't cache a
38667 # path for INSTALL within a source directory, because that will
38668 # break other packages using the cache if that directory is
38669 # removed, or if the path is relative.
38670 INSTALL=$ac_install_sh
38671 fi
38672fi
38673echo "$as_me:$LINENO: result: $INSTALL" >&5
38674echo "${ECHO_T}$INSTALL" >&6
38675
38676# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
38677# It thinks the first close brace ends the variable substitution.
38678test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
38679
38680test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
38681
38682test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
38683
38684 echo "$as_me:$LINENO: checking whether ln -s works" >&5
38685echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
38686LN_S=$as_ln_s
38687if test "$LN_S" = "ln -s"; then
38688 echo "$as_me:$LINENO: result: yes" >&5
38689echo "${ECHO_T}yes" >&6
38690else
38691 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
38692echo "${ECHO_T}no, using $LN_S" >&6
38693fi
38694
38695
38696 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
38697echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 38698set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
38699if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
38700 echo $ECHO_N "(cached) $ECHO_C" >&6
38701else
38702 cat >conftest.make <<\_ACEOF
38703all:
38704 @echo 'ac_maketemp="$(MAKE)"'
38705_ACEOF
38706# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
38707eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
38708if test -n "$ac_maketemp"; then
38709 eval ac_cv_prog_make_${ac_make}_set=yes
38710else
38711 eval ac_cv_prog_make_${ac_make}_set=no
38712fi
38713rm -f conftest.make
38714fi
38715if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
38716 echo "$as_me:$LINENO: result: yes" >&5
38717echo "${ECHO_T}yes" >&6
38718 SET_MAKE=
38719else
38720 echo "$as_me:$LINENO: result: no" >&5
38721echo "${ECHO_T}no" >&6
38722 SET_MAKE="MAKE=${MAKE-make}"
38723fi
38724
38725
38726
38727 if test -n "$ac_tool_prefix"; then
38728 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
38729set dummy ${ac_tool_prefix}ar; ac_word=$2
38730echo "$as_me:$LINENO: checking for $ac_word" >&5
38731echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38732if test "${ac_cv_prog_AR+set}" = set; then
38733 echo $ECHO_N "(cached) $ECHO_C" >&6
38734else
38735 if test -n "$AR"; then
38736 ac_cv_prog_AR="$AR" # Let the user override the test.
38737else
38738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38739for as_dir in $PATH
38740do
38741 IFS=$as_save_IFS
38742 test -z "$as_dir" && as_dir=.
38743 for ac_exec_ext in '' $ac_executable_extensions; do
38744 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38745 ac_cv_prog_AR="${ac_tool_prefix}ar"
38746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38747 break 2
38748 fi
38749done
38750done
38751
38752fi
38753fi
38754AR=$ac_cv_prog_AR
38755if test -n "$AR"; then
38756 echo "$as_me:$LINENO: result: $AR" >&5
38757echo "${ECHO_T}$AR" >&6
38758else
38759 echo "$as_me:$LINENO: result: no" >&5
38760echo "${ECHO_T}no" >&6
38761fi
38762
38763fi
38764if test -z "$ac_cv_prog_AR"; then
38765 ac_ct_AR=$AR
38766 # Extract the first word of "ar", so it can be a program name with args.
38767set dummy ar; ac_word=$2
38768echo "$as_me:$LINENO: checking for $ac_word" >&5
38769echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38770if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
38771 echo $ECHO_N "(cached) $ECHO_C" >&6
38772else
38773 if test -n "$ac_ct_AR"; then
38774 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
38775else
38776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38777for as_dir in $PATH
38778do
38779 IFS=$as_save_IFS
38780 test -z "$as_dir" && as_dir=.
38781 for ac_exec_ext in '' $ac_executable_extensions; do
38782 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38783 ac_cv_prog_ac_ct_AR="ar"
38784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38785 break 2
38786 fi
38787done
38788done
38789
38790 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
38791fi
38792fi
38793ac_ct_AR=$ac_cv_prog_ac_ct_AR
38794if test -n "$ac_ct_AR"; then
38795 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
38796echo "${ECHO_T}$ac_ct_AR" >&6
38797else
38798 echo "$as_me:$LINENO: result: no" >&5
38799echo "${ECHO_T}no" >&6
38800fi
38801
38802 AR=$ac_ct_AR
38803else
38804 AR="$ac_cv_prog_AR"
38805fi
38806
38807 if test -n "$ac_tool_prefix"; then
38808 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
38809set dummy ${ac_tool_prefix}strip; ac_word=$2
38810echo "$as_me:$LINENO: checking for $ac_word" >&5
38811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38812if test "${ac_cv_prog_STRIP+set}" = set; then
38813 echo $ECHO_N "(cached) $ECHO_C" >&6
38814else
38815 if test -n "$STRIP"; then
38816 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
38817else
38818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38819for as_dir in $PATH
38820do
38821 IFS=$as_save_IFS
38822 test -z "$as_dir" && as_dir=.
38823 for ac_exec_ext in '' $ac_executable_extensions; do
38824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38825 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
38826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38827 break 2
38828 fi
38829done
38830done
38831
38832fi
38833fi
38834STRIP=$ac_cv_prog_STRIP
38835if test -n "$STRIP"; then
38836 echo "$as_me:$LINENO: result: $STRIP" >&5
38837echo "${ECHO_T}$STRIP" >&6
38838else
38839 echo "$as_me:$LINENO: result: no" >&5
38840echo "${ECHO_T}no" >&6
38841fi
38842
38843fi
38844if test -z "$ac_cv_prog_STRIP"; then
38845 ac_ct_STRIP=$STRIP
38846 # Extract the first word of "strip", so it can be a program name with args.
38847set dummy strip; ac_word=$2
38848echo "$as_me:$LINENO: checking for $ac_word" >&5
38849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38850if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
38851 echo $ECHO_N "(cached) $ECHO_C" >&6
38852else
38853 if test -n "$ac_ct_STRIP"; then
38854 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
38855else
38856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38857for as_dir in $PATH
38858do
38859 IFS=$as_save_IFS
38860 test -z "$as_dir" && as_dir=.
38861 for ac_exec_ext in '' $ac_executable_extensions; do
38862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38863 ac_cv_prog_ac_ct_STRIP="strip"
38864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38865 break 2
38866 fi
38867done
38868done
38869
38870 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
38871fi
38872fi
38873ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
38874if test -n "$ac_ct_STRIP"; then
38875 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
38876echo "${ECHO_T}$ac_ct_STRIP" >&6
38877else
38878 echo "$as_me:$LINENO: result: no" >&5
38879echo "${ECHO_T}no" >&6
38880fi
38881
38882 STRIP=$ac_ct_STRIP
38883else
38884 STRIP="$ac_cv_prog_STRIP"
38885fi
38886
38887 if test -n "$ac_tool_prefix"; then
38888 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
38889set dummy ${ac_tool_prefix}nm; ac_word=$2
38890echo "$as_me:$LINENO: checking for $ac_word" >&5
38891echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38892if test "${ac_cv_prog_NM+set}" = set; then
38893 echo $ECHO_N "(cached) $ECHO_C" >&6
38894else
38895 if test -n "$NM"; then
38896 ac_cv_prog_NM="$NM" # Let the user override the test.
38897else
38898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38899for as_dir in $PATH
38900do
38901 IFS=$as_save_IFS
38902 test -z "$as_dir" && as_dir=.
38903 for ac_exec_ext in '' $ac_executable_extensions; do
38904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38905 ac_cv_prog_NM="${ac_tool_prefix}nm"
38906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38907 break 2
38908 fi
38909done
38910done
38911
38912fi
38913fi
38914NM=$ac_cv_prog_NM
38915if test -n "$NM"; then
38916 echo "$as_me:$LINENO: result: $NM" >&5
38917echo "${ECHO_T}$NM" >&6
38918else
38919 echo "$as_me:$LINENO: result: no" >&5
38920echo "${ECHO_T}no" >&6
38921fi
38922
38923fi
38924if test -z "$ac_cv_prog_NM"; then
38925 ac_ct_NM=$NM
38926 # Extract the first word of "nm", so it can be a program name with args.
38927set dummy nm; ac_word=$2
38928echo "$as_me:$LINENO: checking for $ac_word" >&5
38929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38930if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
38931 echo $ECHO_N "(cached) $ECHO_C" >&6
38932else
38933 if test -n "$ac_ct_NM"; then
38934 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
38935else
38936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38937for as_dir in $PATH
38938do
38939 IFS=$as_save_IFS
38940 test -z "$as_dir" && as_dir=.
38941 for ac_exec_ext in '' $ac_executable_extensions; do
38942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38943 ac_cv_prog_ac_ct_NM="nm"
38944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38945 break 2
38946 fi
38947done
38948done
38949
38950 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
38951fi
38952fi
38953ac_ct_NM=$ac_cv_prog_ac_ct_NM
38954if test -n "$ac_ct_NM"; then
38955 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
38956echo "${ECHO_T}$ac_ct_NM" >&6
38957else
38958 echo "$as_me:$LINENO: result: no" >&5
38959echo "${ECHO_T}no" >&6
38960fi
38961
38962 NM=$ac_ct_NM
38963else
38964 NM="$ac_cv_prog_NM"
38965fi
38966
38967
38968 case ${BAKEFILE_HOST} in
38969 *-hp-hpux* )
1e9e8aba 38970 INSTALL_DIR="mkdir -p"
a848cd7e
SC
38971 ;;
38972 *) INSTALL_DIR="$INSTALL -d"
38973 ;;
38974 esac
38975
38976
38977 LDFLAGS_GUI=
38978 case ${BAKEFILE_HOST} in
38979 *-*-cygwin* | *-*-mingw32* )
38980 LDFLAGS_GUI="-mwindows"
38981 esac
38982
38983
38984 fi
38985
38986 echo "$as_me:$LINENO: checking if make is GNU make" >&5
38987echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
38988if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
38989 echo $ECHO_N "(cached) $ECHO_C" >&6
38990else
38991
38992 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
38993 egrep -s GNU > /dev/null); then
38994 bakefile_cv_prog_makeisgnu="yes"
38995 else
38996 bakefile_cv_prog_makeisgnu="no"
38997 fi
38998
38999fi
39000echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
39001echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
39002
39003 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
39004 IF_GNU_MAKE=""
39005 else
39006 IF_GNU_MAKE="#"
39007 fi
39008
39009
39010
39011 PLATFORM_UNIX=0
39012 PLATFORM_WIN32=0
39013 PLATFORM_MSDOS=0
39014 PLATFORM_MAC=0
1e9e8aba 39015 PLATFORM_MACOS=0
a848cd7e
SC
39016 PLATFORM_MACOSX=0
39017 PLATFORM_OS2=0
1e9e8aba 39018 PLATFORM_BEOS=0
a848cd7e
SC
39019
39020 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
39021 case "${BAKEFILE_HOST}" in
39022 *-*-cygwin* | *-*-mingw32* )
39023 PLATFORM_WIN32=1
39024 ;;
39025 *-pc-msdosdjgpp )
39026 PLATFORM_MSDOS=1
39027 ;;
39028 *-pc-os2_emx | *-pc-os2-emx )
39029 PLATFORM_OS2=1
39030 ;;
39031 powerpc-*-darwin* )
39032 PLATFORM_MAC=1
39033 PLATFORM_MACOSX=1
39034 ;;
1e9e8aba
DE
39035 *-*-beos* )
39036 PLATFORM_BEOS=1
39037 ;;
39038 powerpc-apple-macos* )
39039 PLATFORM_MAC=1
39040 PLATFORM_MACOS=1
39041 ;;
a848cd7e
SC
39042 * )
39043 PLATFORM_UNIX=1
39044 ;;
39045 esac
39046 else
39047 case "$BAKEFILE_FORCE_PLATFORM" in
39048 win32 )
39049 PLATFORM_WIN32=1
39050 ;;
39051 msdos )
39052 PLATFORM_MSDOS=1
39053 ;;
39054 os2 )
39055 PLATFORM_OS2=1
39056 ;;
39057 darwin )
39058 PLATFORM_MAC=1
39059 PLATFORM_MACOSX=1
39060 ;;
39061 unix )
39062 PLATFORM_UNIX=1
39063 ;;
1e9e8aba
DE
39064 beos )
39065 PLATFORM_BEOS=1
39066 ;;
a848cd7e
SC
39067 * )
39068 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
39069echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
39070 { (exit 1); exit 1; }; }
39071 ;;
39072 esac
39073 fi
39074
39075
39076
39077
39078
39079
39080
39081
39082
1e9e8aba
DE
39083
39084
a848cd7e
SC
39085 # Check whether --enable-omf or --disable-omf was given.
39086if test "${enable_omf+set}" = set; then
39087 enableval="$enable_omf"
39088 bk_os2_use_omf="$enableval"
39089fi;
39090
39091 case "${BAKEFILE_HOST}" in
39092 *-*-darwin* )
39093 CFLAGS="$CFLAGS -fno-common"
39094 CXXFLAGS="$CXXFLAGS -fno-common"
39095 ;;
39096
39097 *-pc-os2_emx | *-pc-os2-emx )
39098 if test "x$bk_os2_use_omf" = "xyes" ; then
39099 AR=emxomfar
39100 RANLIB=:
39101 LDFLAGS="-Zomf $LDFLAGS"
39102 CFLAGS="-Zomf $CFLAGS"
39103 CXXFLAGS="-Zomf $CXXFLAGS"
39104 OS2_LIBEXT="lib"
39105 else
39106 OS2_LIBEXT="a"
39107 fi
39108 ;;
1e9e8aba
DE
39109
39110 i*86-*-beos* )
39111 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
39112 ;;
a848cd7e
SC
39113 esac
39114
39115
39116 SO_SUFFIX="so"
39117 SO_SUFFIX_MODULE="so"
39118 EXEEXT=""
39119 LIBPREFIX="lib"
39120 LIBEXT=".a"
39121 DLLPREFIX="lib"
39122 DLLPREFIX_MODULE=""
39123 DLLIMP_SUFFIX=""
39124
39125 case "${BAKEFILE_HOST}" in
39126 *-hp-hpux* )
39127 SO_SUFFIX="sl"
39128 SO_SUFFIX_MODULE="sl"
39129 ;;
39130 *-*-aix* )
39131 SO_SUFFIX="a"
39132 SO_SUFFIX_MODULE="a"
39133 ;;
39134 *-*-cygwin* | *-*-mingw32* )
39135 SO_SUFFIX="dll"
39136 SO_SUFFIX_MODULE="dll"
39137 DLLIMP_SUFFIX="dll.a"
39138 EXEEXT=".exe"
39139 DLLPREFIX=""
39140 ;;
39141 *-pc-msdosdjgpp )
39142 EXEEXT=".exe"
39143 DLLPREFIX=""
39144 ;;
39145 *-pc-os2_emx | *-pc-os2-emx )
39146 SO_SUFFIX="dll"
39147 SO_SUFFIX_MODULE="dll"
39148 DLLIMP_SUFFIX=$OS2_LIBEXT
39149 EXEEXT=".exe"
39150 DLLPREFIX=""
39151 LIBPREFIX=""
39152 LIBEXT=".$OS2_LIBEXT"
39153 ;;
39154 powerpc-*-darwin* )
39155 SO_SUFFIX="dylib"
39156 SO_SUFFIX_MODULE="bundle"
39157 ;;
39158 esac
39159
39160 if test "x$DLLIMP_SUFFIX" = "x" ; then
39161 DLLIMP_SUFFIX="$SO_SUFFIX"
39162 fi
39163
39164
39165
39166
39167
39168
39169
39170
39171
39172
39173
1e9e8aba
DE
39174 PIC_FLAG=""
39175 if test "x$GCC" = "xyes"; then
a848cd7e
SC
39176 PIC_FLAG="-fPIC"
39177 fi
39178
1e9e8aba
DE
39179 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
39180 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
39181
a848cd7e
SC
39182 case "${BAKEFILE_HOST}" in
39183 *-hp-hpux* )
1e9e8aba 39184 if test "x$GCC" != "xyes"; then
a848cd7e
SC
39185 LDFLAGS="$LDFLAGS -L/usr/lib"
39186
39187 SHARED_LD_CC="${CC} -b -o"
39188 SHARED_LD_CXX="${CXX} -b -o"
39189 PIC_FLAG="+Z"
39190 fi
39191 ;;
39192
39193 *-*-linux* )
39194 if test "x$GCC" != "xyes"; then
39195 echo "$as_me:$LINENO: checking for Intel compiler" >&5
39196echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
39197if test "${bakefile_cv_prog_icc+set}" = set; then
39198 echo $ECHO_N "(cached) $ECHO_C" >&6
39199else
39200
39201 cat >conftest.$ac_ext <<_ACEOF
39202/* confdefs.h. */
39203_ACEOF
39204cat confdefs.h >>conftest.$ac_ext
39205cat >>conftest.$ac_ext <<_ACEOF
39206/* end confdefs.h. */
39207
39208int
39209main ()
39210{
39211
39212 #ifndef __INTEL_COMPILER
39213 #error Not icc
39214 #endif
39215
39216 ;
39217 return 0;
39218}
39219_ACEOF
39220rm -f conftest.$ac_objext
39221if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39222 (eval $ac_compile) 2>conftest.er1
a848cd7e 39223 ac_status=$?
ac1cb8d3
VS
39224 grep -v '^ *+' conftest.er1 >conftest.err
39225 rm -f conftest.er1
39226 cat conftest.err >&5
a848cd7e
SC
39227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39228 (exit $ac_status); } &&
5294a27e 39229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39231 (eval $ac_try) 2>&5
39232 ac_status=$?
39233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39234 (exit $ac_status); }; } &&
39235 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39237 (eval $ac_try) 2>&5
39238 ac_status=$?
39239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39240 (exit $ac_status); }; }; then
39241 bakefile_cv_prog_icc=yes
39242else
39243 echo "$as_me: failed program was:" >&5
39244sed 's/^/| /' conftest.$ac_ext >&5
39245
39246bakefile_cv_prog_icc=no
39247
39248fi
ac1cb8d3 39249rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39250
39251fi
39252echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
39253echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
39254 if test "$bakefile_cv_prog_icc" = "yes"; then
39255 PIC_FLAG="-KPIC"
39256 fi
39257 fi
39258 ;;
39259
39260 *-*-solaris2* )
39261 if test "x$GCC" != xyes ; then
39262 SHARED_LD_CC="${CC} -G -o"
39263 SHARED_LD_CXX="${CXX} -G -o"
39264 PIC_FLAG="-KPIC"
39265 fi
39266 ;;
39267
39268 *-*-darwin* )
39269
39270 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
39271echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
39272if test "${wx_cv_gcc31+set}" = set; then
39273 echo $ECHO_N "(cached) $ECHO_C" >&6
39274else
39275
39276 cat >conftest.$ac_ext <<_ACEOF
39277/* confdefs.h. */
39278_ACEOF
39279cat confdefs.h >>conftest.$ac_ext
39280cat >>conftest.$ac_ext <<_ACEOF
39281/* end confdefs.h. */
39282
39283int
39284main ()
39285{
39286
39287 #if (__GNUC__ < 3) || \
39288 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
39289 #error old gcc
39290 #endif
39291
39292 ;
39293 return 0;
39294}
39295_ACEOF
39296rm -f conftest.$ac_objext
39297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39298 (eval $ac_compile) 2>conftest.er1
a848cd7e 39299 ac_status=$?
ac1cb8d3
VS
39300 grep -v '^ *+' conftest.er1 >conftest.err
39301 rm -f conftest.er1
39302 cat conftest.err >&5
a848cd7e
SC
39303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39304 (exit $ac_status); } &&
5294a27e 39305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39307 (eval $ac_try) 2>&5
39308 ac_status=$?
39309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39310 (exit $ac_status); }; } &&
39311 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39313 (eval $ac_try) 2>&5
39314 ac_status=$?
39315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39316 (exit $ac_status); }; }; then
39317
39318 wx_cv_gcc31=yes
39319
39320else
39321 echo "$as_me: failed program was:" >&5
39322sed 's/^/| /' conftest.$ac_ext >&5
39323
39324
39325 wx_cv_gcc31=no
39326
39327
39328fi
ac1cb8d3 39329rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39330
39331fi
39332echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
39333echo "${ECHO_T}$wx_cv_gcc31" >&6
39334 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
39335
39336D='$'
39337cat <<EOF >shared-ld-sh
a848cd7e
SC
39338#!/bin/sh
39339#-----------------------------------------------------------------------------
39340#-- Name: distrib/mac/shared-ld-sh
39341#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
39342#-- Author: Gilles Depeyrot
39343#-- Copyright: (c) 2002 Gilles Depeyrot
39344#-- Licence: any use permitted
39345#-----------------------------------------------------------------------------
39346
39347verbose=0
39348args=""
39349objects=""
39350linking_flag="-dynamiclib"
39351
473276a9
VS
39352while test ${D}# -gt 0; do
39353 case ${D}1 in
a848cd7e
SC
39354
39355 -v)
39356 verbose=1
39357 ;;
39358
39359 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
39360 # collect these options and values
473276a9 39361 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
39362 shift
39363 ;;
39364
39365 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
39366 # collect these options
473276a9 39367 args="${D}{args} ${D}1"
a848cd7e
SC
39368 ;;
39369
39370 -dynamiclib|-bundle)
473276a9 39371 linking_flag="${D}1"
a848cd7e
SC
39372 ;;
39373
39374 -*)
473276a9 39375 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
39376 exit 1
39377 ;;
39378
39379 *.o | *.a | *.dylib)
39380 # collect object files
473276a9 39381 objects="${D}{objects} ${D}1"
a848cd7e
SC
39382 ;;
39383
39384 *)
473276a9 39385 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
39386 exit 1
39387 ;;
39388
39389 esac
39390 shift
39391done
39392
39393#
39394# Link one module containing all the others
39395#
473276a9
VS
39396if test ${D}{verbose} = 1; then
39397 echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
a848cd7e 39398fi
473276a9
VS
39399c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
39400status=${D}?
39401if test ${D}{status} != 0; then
39402 exit ${D}{status}
a848cd7e
SC
39403fi
39404
39405#
39406# Link the shared library from the single module created
39407#
473276a9
VS
39408if test ${D}{verbose} = 1; then
39409 echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
a848cd7e 39410fi
473276a9
VS
39411c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
39412status=${D}?
39413if test ${D}{status} != 0; then
39414 exit ${D}{status}
a848cd7e
SC
39415fi
39416
39417#
39418# Remove intermediate module
39419#
473276a9 39420rm -f master.${D}${D}.o
a848cd7e
SC
39421
39422exit 0
39423EOF
473276a9 39424
a848cd7e
SC
39425 chmod +x shared-ld-sh
39426
39427 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
39428 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
39429 SHARED_LD_CXX="$SHARED_LD_CC"
39430 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
39431 else
39432 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
39433 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
39434 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
39435 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
39436 fi
39437
39438 PIC_FLAG="-dynamic -fPIC"
39439 ;;
39440
39441 *-*-aix* )
39442 if test "x$GCC" != "xyes"; then
39443 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
39444set dummy makeC++SharedLib; ac_word=$2
39445echo "$as_me:$LINENO: checking for $ac_word" >&5
39446echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39447if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
39448 echo $ECHO_N "(cached) $ECHO_C" >&6
39449else
39450 if test -n "$AIX_CXX_LD"; then
39451 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
39452else
39453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39454for as_dir in $PATH
39455do
39456 IFS=$as_save_IFS
39457 test -z "$as_dir" && as_dir=.
39458 for ac_exec_ext in '' $ac_executable_extensions; do
39459 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39460 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
39461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39462 break 2
39463 fi
39464done
39465done
39466
39467 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
39468fi
39469fi
39470AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
39471if test -n "$AIX_CXX_LD"; then
39472 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
39473echo "${ECHO_T}$AIX_CXX_LD" >&6
39474else
39475 echo "$as_me:$LINENO: result: no" >&5
39476echo "${ECHO_T}no" >&6
39477fi
39478
39479 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
39480 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
39481 fi
39482 ;;
39483
39484 *-*-beos* )
1e9e8aba
DE
39485 SHARED_LD_CC="${LD} -nostart -o"
39486 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
39487 ;;
39488
39489 *-*-irix* )
39490 if test "x$GCC" != "xyes"; then
39491 PIC_FLAG="-KPIC"
39492 fi
39493 ;;
39494
39495 *-*-cygwin* | *-*-mingw32* )
39496 PIC_FLAG=""
1e9e8aba
DE
39497 SHARED_LD_CC="\$(CC) -shared -o"
39498 SHARED_LD_CXX="\$(CXX) -shared -o"
a848cd7e
SC
39499 ;;
39500
39501 *-pc-os2_emx | *-pc-os2-emx )
473276a9
VS
39502 SHARED_LD_CC="`pwd`/dllar.sh -o"
39503 SHARED_LD_CXX="`pwd`/dllar.sh -o"
a848cd7e 39504 PIC_FLAG=""
473276a9
VS
39505
39506D='$'
39507cat <<EOF >dllar.sh
39508#!/bin/sh
39509#
39510# dllar - a tool to build both a .dll and an .a file
39511# from a set of object (.o) files for EMX/OS2.
39512#
39513# Written by Andrew Zabolotny, bit@freya.etu.ru
39514# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
39515#
39516# This script will accept a set of files on the command line.
39517# All the public symbols from the .o files will be exported into
39518# a .DEF file, then linker will be run (through gcc) against them to
39519# build a shared library consisting of all given .o files. All libraries
39520# (.a) will be first decompressed into component .o files then act as
39521# described above. You can optionally give a description (-d "description")
39522# which will be put into .DLL. To see the list of accepted options (as well
39523# as command-line format) simply run this program without options. The .DLL
39524# is built to be imported by name (there is no guarantee that new versions
39525# of the library you build will have same ordinals for same symbols).
39526#
39527# dllar is free software; you can redistribute it and/or modify
39528# it under the terms of the GNU General Public License as published by
39529# the Free Software Foundation; either version 2, or (at your option)
39530# any later version.
39531#
39532# dllar is distributed in the hope that it will be useful,
39533# but WITHOUT ANY WARRANTY; without even the implied warranty of
39534# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
39535# GNU General Public License for more details.
39536#
39537# You should have received a copy of the GNU General Public License
39538# along with dllar; see the file COPYING. If not, write to the Free
39539# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
39540# 02111-1307, USA.
39541
39542# To successfuly run this program you will need:
39543# - Current drive should have LFN support (HPFS, ext2, network, etc)
39544# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
39545# - gcc
39546# (used to build the .dll)
39547# - emxexp
39548# (used to create .def file from .o files)
39549# - emximp
39550# (used to create .a file from .def file)
39551# - GNU text utilites (cat, sort, uniq)
39552# used to process emxexp output
39553# - GNU file utilities (mv, rm)
39554# - GNU sed
39555# - lxlite (optional, see flag below)
39556# (used for general .dll cleanup)
39557#
39558
39559flag_USE_LXLITE=1;
39560
39561#
39562# helper functions
39563# basnam, variant of basename, which does _not_ remove the path, _iff_
39564# second argument (suffix to remove) is given
39565basnam(){
39566 case ${D}# in
39567 1)
1e9e8aba 39568 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
39569 ;;
39570 2)
39571 echo ${D}1 | sed 's/'${D}2'${D}//'
39572 ;;
39573 *)
39574 echo "error in basnam ${D}*"
39575 exit 8
39576 ;;
39577 esac
39578}
39579
39580# Cleanup temporary files and output
39581CleanUp() {
39582 cd ${D}curDir
39583 for i in ${D}inputFiles ; do
39584 case ${D}i in
39585 *!)
39586 rm -rf \`basnam ${D}i !\`
39587 ;;
39588 *)
39589 ;;
39590 esac
39591 done
39592
39593 # Kill result in case of failure as there is just to many stupid make/nmake
39594 # things out there which doesn't do this.
1e9e8aba 39595 if [ ${D}# -eq 0 ]; then
473276a9
VS
39596 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
39597 fi
39598}
39599
39600# Print usage and exit script with rc=1.
39601PrintHelp() {
1e9e8aba
DE
39602 echo 'Usage: dllar [-o@<:${utput}:>@ output_file] [-i@<:${mport}:>@ importlib_name]'
39603 echo ' [-d@<:${escription}:>@ "dll descrption"] [-cc "CC"] [-f@<:${lags}:>@ "CFLAGS"]'
39604 echo ' [-ord@<:${inals}:>@] -ex@<:${clude}:>@ "symbol(s)"'
39605 echo ' [-libf@<:${lags}:>@ "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt@<:${dll}:>@] [-nolxl@<:${ite}:>@]'
39606 echo ' [*.o] [*.a]'
473276a9
VS
39607 echo '*> "output_file" should have no extension.'
39608 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
39609 echo ' The import library name is derived from this and is set to "name".a,'
39610 echo ' unless overridden by -import'
39611 echo '*> "importlib_name" should have no extension.'
39612 echo ' If it has the .o, or .a extension, it is automatically removed.'
39613 echo ' This name is used as the import library name and may be longer and'
39614 echo ' more descriptive than the DLL name which has to follow the old '
39615 echo ' 8.3 convention of FAT.'
39616 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
39617 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
39618 echo ' These flags will be put at the start of GCC command line.'
1e9e8aba
DE
39619 echo '*> -ord@<:${inals}:>@ tells dllar to export entries by ordinals. Be careful.'
39620 echo '*> -ex@<:${clude}:>@ defines symbols which will not be exported. You can define'
473276a9
VS
39621 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
39622 echo ' If the last character of a symbol is "*", all symbols beginning'
39623 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
1e9e8aba 39624 echo '*> -libf@<:${lags}:>@ can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 39625 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
1e9e8aba 39626 echo '*> -nocrt@<:${dll}:>@ switch will disable linking the library against emx''s'
473276a9 39627 echo ' C runtime DLLs.'
1e9e8aba 39628 echo '*> -nolxl@<:${ite}:>@ switch will disable running lxlite on the resulting DLL.'
473276a9
VS
39629 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
39630 echo ' unchanged to GCC at the end of command line.'
39631 echo '*> If you create a DLL from a library and you do not specify -o,'
39632 echo ' the basename for DLL and import library will be set to library name,'
39633 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
39634 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
39635 echo ' library will be renamed into gcc_s.a.'
39636 echo '--------'
39637 echo 'Example:'
39638 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
39639 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
39640 CleanUp
39641 exit 1
39642}
39643
39644# Execute a command.
39645# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
39646# @Uses Whatever CleanUp() uses.
39647doCommand() {
39648 echo "${D}*"
39649 eval ${D}*
39650 rcCmd=${D}?
39651
1e9e8aba 39652 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
39653 echo "command failed, exit code="${D}rcCmd
39654 CleanUp
39655 exit ${D}rcCmd
39656 fi
39657}
39658
39659# main routine
39660# setup globals
39661cmdLine=${D}*
39662outFile=""
39663outimpFile=""
39664inputFiles=""
39665description=""
39666CC=gcc.exe
39667CFLAGS="-s -Zcrtdll"
39668EXTRA_CFLAGS=""
39669EXPORT_BY_ORDINALS=0
39670exclude_symbols=""
39671library_flags=""
39672curDir=\`pwd\`
39673curDirS=curDir
39674case ${D}curDirS in
39675*/)
39676 ;;
39677*)
39678 curDirS=${D}{curDirS}"/"
39679 ;;
39680esac
39681# Parse commandline
39682libsToLink=0
1e9e8aba 39683while [ ${D}1 ]; do
473276a9
VS
39684 case ${D}1 in
39685 -ord*)
39686 EXPORT_BY_ORDINALS=1;
39687 ;;
39688 -o*)
39689 shift
39690 outFile=${D}1
39691 ;;
39692 -i*)
39693 shift
39694 outimpFile=${D}1
39695 ;;
39696 -d*)
39697 shift
39698 description=${D}1
39699 ;;
39700 -f*)
39701 shift
39702 CFLAGS=${D}1
39703 ;;
39704 -c*)
39705 shift
39706 CC=${D}1
39707 ;;
39708 -h*)
39709 PrintHelp
39710 ;;
39711 -ex*)
39712 shift
39713 exclude_symbols=${D}{exclude_symbols}${D}1" "
39714 ;;
39715 -libf*)
39716 shift
39717 library_flags=${D}{library_flags}${D}1" "
39718 ;;
39719 -nocrt*)
39720 CFLAGS="-s"
39721 ;;
39722 -nolxl*)
39723 flag_USE_LXLITE=0
39724 ;;
39725 -* | /*)
39726 case ${D}1 in
39727 -L* | -l*)
39728 libsToLink=1
39729 ;;
39730 *)
39731 ;;
39732 esac
39733 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
39734 ;;
39735 *)
39736 found=0;
1e9e8aba 39737 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
39738 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
39739 else
39740 for file in ${D}1 ; do
1e9e8aba 39741 if [ -f ${D}file ]; then
473276a9
VS
39742 inputFiles="${D}{inputFiles} ${D}file"
39743 found=1
39744 fi
39745 done
1e9e8aba 39746 if [ ${D}found -eq 0 ]; then
473276a9
VS
39747 echo "ERROR: No file(s) found: "${D}1
39748 exit 8
39749 fi
39750 fi
39751 ;;
39752 esac
39753 shift
39754done # iterate cmdline words
39755
39756#
1e9e8aba 39757if [ -z "${D}inputFiles" ]; then
473276a9
VS
39758 echo "dllar: no input files"
39759 PrintHelp
39760fi
39761
39762# Now extract all .o files from .a files
39763newInputFiles=""
39764for file in ${D}inputFiles ; do
39765 case ${D}file in
39766 *.a | *.lib)
39767 case ${D}file in
39768 *.a)
39769 suffix=".a"
39770 AR="ar"
39771 ;;
39772 *.lib)
39773 suffix=".lib"
39774 AR="emxomfar"
39775 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
39776 ;;
39777 *)
39778 ;;
39779 esac
39780 dirname=\`basnam ${D}file ${D}suffix\`"_%"
39781 mkdir ${D}dirname
1e9e8aba 39782 if [ ${D}? -ne 0 ]; then
473276a9
VS
39783 echo "Failed to create subdirectory ./${D}dirname"
39784 CleanUp
39785 exit 8;
39786 fi
39787 # Append '!' to indicate archive
39788 newInputFiles="${D}newInputFiles ${D}{dirname}!"
39789 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
39790 cd ${D}curDir
39791 found=0;
39792 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 39793 if [ -f ${D}subfile ]; then
473276a9 39794 found=1
1e9e8aba 39795 if [ -s ${D}subfile ]; then
473276a9
VS
39796 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
39797 newInputFiles="${D}newInputFiles ${D}subfile"
39798 fi
39799 fi
39800 done
1e9e8aba
DE
39801 if [ ${D}found -eq 0 ]; then
39802 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
39803 fi
39804 ;;
39805 *)
39806 newInputFiles="${D}{newInputFiles} ${D}file"
39807 ;;
39808 esac
39809done
39810inputFiles="${D}newInputFiles"
39811
39812# Output filename(s).
39813do_backup=0;
1e9e8aba 39814if [ -z ${D}outFile ]; then
473276a9
VS
39815 do_backup=1;
39816 set outFile ${D}inputFiles; outFile=${D}2
39817fi
39818
39819# If it is an archive, remove the '!' and the '_%' suffixes
39820case ${D}outFile in
39821*_%!)
39822 outFile=\`basnam ${D}outFile _%!\`
39823 ;;
39824*)
39825 ;;
39826esac
39827case ${D}outFile in
39828*.dll)
39829 outFile=\`basnam ${D}outFile .dll\`
39830 ;;
39831*.DLL)
39832 outFile=\`basnam ${D}outFile .DLL\`
39833 ;;
39834*.o)
39835 outFile=\`basnam ${D}outFile .o\`
39836 ;;
39837*.obj)
39838 outFile=\`basnam ${D}outFile .obj\`
39839 ;;
39840*.a)
39841 outFile=\`basnam ${D}outFile .a\`
39842 ;;
39843*.lib)
39844 outFile=\`basnam ${D}outFile .lib\`
39845 ;;
39846*)
39847 ;;
39848esac
39849case ${D}outimpFile in
39850*.a)
39851 outimpFile=\`basnam ${D}outimpFile .a\`
39852 ;;
39853*.lib)
39854 outimpFile=\`basnam ${D}outimpFile .lib\`
39855 ;;
39856*)
39857 ;;
39858esac
1e9e8aba 39859if [ -z ${D}outimpFile ]; then
473276a9
VS
39860 outimpFile=${D}outFile
39861fi
39862defFile="${D}{outFile}.def"
39863arcFile="${D}{outimpFile}.a"
39864arcFile2="${D}{outimpFile}.lib"
39865dllFile="${D}outFile"
39866# Add suffix to dllFile later, first we need a version to use as
39867# name in .def file.
39868
1e9e8aba
DE
39869if [ ${D}do_backup -ne 0 ] ; then
39870 if [ -f ${D}arcFile ] ; then
473276a9
VS
39871 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
39872 fi
1e9e8aba 39873 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
39874 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
39875 fi
39876fi
39877
39878# Extract public symbols from all the object files.
39879tmpdefFile=${D}{defFile}_%
39880rm -f ${D}tmpdefFile
39881for file in ${D}inputFiles ; do
39882 case ${D}file in
39883 *!)
39884 ;;
39885 *)
39886 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
39887 ;;
39888 esac
39889done
39890
39891# Create the def file.
39892rm -f ${D}defFile
39893echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
39894dllFile="${D}dllFile.dll"
1e9e8aba
DE
39895if [ -n ${D}description ]; then
39896 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
39897fi
39898echo "EXPORTS" >> ${D}defFile
39899
39900doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
39901grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
39902
39903# Checks if the export is ok or not.
39904for word in ${D}exclude_symbols; do
39905 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
39906 mv ${D}{tmpdefFile}% ${D}tmpdefFile
39907done
39908
39909
1e9e8aba
DE
39910if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
39911 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
39912 sed '
39913 N
39914 : loop
1e9e8aba 39915 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
39916 t loop
39917 ' > ${D}{tmpdefFile}%
39918 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
39919else
39920 rm -f ${D}{tmpdefFile}%
39921fi
39922cat ${D}tmpdefFile >> ${D}defFile
39923rm -f ${D}tmpdefFile
39924
39925# Do linking, create implib, and apply lxlite.
39926gccCmdl="";
39927for file in ${D}inputFiles ; do
39928 case ${D}file in
39929 *!)
39930 ;;
39931 *)
39932 gccCmdl="${D}gccCmdl ${D}file"
39933 ;;
39934 esac
39935done
39936doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
39937touch "${D}{outFile}.dll"
39938
39939doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 39940if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 39941 add_flags="";
1e9e8aba 39942 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
39943 add_flags="-ynd"
39944 fi
39945 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
39946fi
39947doCommand "emxomf -s -l ${D}arcFile"
39948
39949# Successful exit.
39950CleanUp 1
39951exit 0
39952EOF
39953
39954 chmod +x dllar.sh
a848cd7e
SC
39955 ;;
39956
1e9e8aba 39957 powerpc-apple-macos* | \
a848cd7e
SC
39958 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
39959 *-*-sunos4* | \
39960 *-*-osf* | \
39961 *-*-dgux5* | \
39962 *-*-sysv5* )
39963 ;;
39964
39965 *)
39966 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
39967echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
39968 { (exit 1); exit 1; }; }
39969 esac
39970
2057db16
VS
39971 if test "x$PIC_FLAG" != "x" ; then
39972 PIC_FLAG="$PIC_FLAG -DPIC"
39973 fi
39974
a848cd7e
SC
39975 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
39976 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
39977 fi
39978 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
39979 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
39980 fi
39981
39982
39983
39984
39985
39986
39987
39988
39989 USE_SOVERSION=0
39990 USE_SOVERLINUX=0
39991 USE_SOVERSOLARIS=0
39992 USE_SOSYMLINKS=0
39993 USE_MACVERSION=0
39994 SONAME_FLAG=
39995
39996 case "${BAKEFILE_HOST}" in
39997 *-*-linux* )
39998 SONAME_FLAG="-Wl,-soname,"
39999 USE_SOVERSION=1
40000 USE_SOVERLINUX=1
40001 USE_SOSYMLINKS=1
40002 ;;
40003
5f652d0d
VS
40004 *-*-freebsd* )
40005 SONAME_FLAG="-Wl,-soname,"
40006 USE_SOVERSION=1
40007 USE_SOVERLINUX=1
40008 USE_SOSYMLINKS=1
40009 ;;
40010
a848cd7e
SC
40011 *-*-solaris2* )
40012 SONAME_FLAG="-h "
40013 USE_SOVERSION=1
40014 USE_SOVERSOLARIS=1
40015 USE_SOSYMLINKS=1
40016 ;;
40017
40018 *-*-darwin* )
40019 USE_MACVERSION=1
40020 USE_SOVERSION=1
40021 USE_SOSYMLINKS=1
40022 ;;
40023 esac
40024
40025
40026
40027
40028
40029
40030
40031
40032
40033 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
40034echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
40035 DEPS_TRACKING=0
40036
40037 if test "x$GCC" = "xyes"; then
40038 DEPSMODE=gcc
40039 DEPS_TRACKING=1
40040 case "${BAKEFILE_HOST}" in
40041 powerpc-*-darwin* )
40042 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
40043 ;;
40044 * )
40045 DEPSFLAG_GCC="-MMD"
40046 ;;
40047 esac
40048 echo "$as_me:$LINENO: result: gcc" >&5
40049echo "${ECHO_T}gcc" >&6
40050 else
40051 echo "$as_me:$LINENO: result: none" >&5
40052echo "${ECHO_T}none" >&6
40053 fi
40054
40055 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
40056
40057D='$'
40058cat <<EOF >bk-deps
a848cd7e
SC
40059#!/bin/sh
40060
40061# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
40062# script. It is used to track C/C++ files dependencies in portable way.
40063#
40064# Permission is given to use this file in any way.
40065
473276a9 40066DEPSMODE=${DEPSMODE}
a848cd7e 40067DEPSDIR=.deps
473276a9 40068DEPSFLAG_GCC="${DEPSFLAG_GCC}"
a848cd7e 40069
473276a9 40070mkdir -p ${D}DEPSDIR
a848cd7e 40071
473276a9
VS
40072if test ${D}DEPSMODE = gcc ; then
40073 ${D}* ${D}{DEPSFLAG_GCC}
40074 status=${D}?
40075 if test ${D}{status} != 0 ; then
40076 exit ${D}{status}
a848cd7e
SC
40077 fi
40078 # move created file to the location we want it in:
473276a9
VS
40079 while test ${D}# -gt 0; do
40080 case "${D}1" in
a848cd7e
SC
40081 -o )
40082 shift
473276a9 40083 objfile=${D}1
a848cd7e
SC
40084 ;;
40085 -* )
40086 ;;
40087 * )
473276a9 40088 srcfile=${D}1
a848cd7e
SC
40089 ;;
40090 esac
40091 shift
40092 done
1e9e8aba
DE
40093 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
40094 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
40095 if test -f ${D}depfile ; then
40096 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
40097 rm -f ${D}depfile
a848cd7e 40098 else
1e9e8aba 40099 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
473276a9
VS
40100 if test -f ${D}depfile ; then
40101 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
40102 rm -f ${D}depfile
a848cd7e
SC
40103 fi
40104 fi
40105 exit 0
40106else
473276a9
VS
40107 ${D}*
40108 exit ${D}?
a848cd7e
SC
40109fi
40110EOF
473276a9 40111
a848cd7e
SC
40112 chmod +x bk-deps
40113 fi
40114
40115
40116
40117
40118 RESCOMP=
40119 SETFILE=
40120
40121 case ${BAKEFILE_HOST} in
40122 *-*-cygwin* | *-*-mingw32* )
40123 if test "$build" != "$host" ; then
40124 RESCOMP=$host_alias-windres
40125 else
40126 # Extract the first word of "windres", so it can be a program name with args.
40127set dummy windres; ac_word=$2
40128echo "$as_me:$LINENO: checking for $ac_word" >&5
40129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40130if test "${ac_cv_prog_RESCOMP+set}" = set; then
40131 echo $ECHO_N "(cached) $ECHO_C" >&6
40132else
40133 if test -n "$RESCOMP"; then
40134 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
40135else
40136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40137for as_dir in $PATH
40138do
40139 IFS=$as_save_IFS
40140 test -z "$as_dir" && as_dir=.
40141 for ac_exec_ext in '' $ac_executable_extensions; do
40142 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40143 ac_cv_prog_RESCOMP="windres"
40144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40145 break 2
40146 fi
40147done
40148done
40149
40150 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
40151fi
40152fi
40153RESCOMP=$ac_cv_prog_RESCOMP
40154if test -n "$RESCOMP"; then
40155 echo "$as_me:$LINENO: result: $RESCOMP" >&5
40156echo "${ECHO_T}$RESCOMP" >&6
40157else
40158 echo "$as_me:$LINENO: result: no" >&5
40159echo "${ECHO_T}no" >&6
40160fi
40161
40162 fi
40163 ;;
40164
1e9e8aba 40165 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
40166 # Extract the first word of "Rez", so it can be a program name with args.
40167set dummy Rez; ac_word=$2
40168echo "$as_me:$LINENO: checking for $ac_word" >&5
40169echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40170if test "${ac_cv_prog_RESCOMP+set}" = set; then
40171 echo $ECHO_N "(cached) $ECHO_C" >&6
40172else
40173 if test -n "$RESCOMP"; then
40174 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
40175else
40176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40177for as_dir in $PATH
40178do
40179 IFS=$as_save_IFS
40180 test -z "$as_dir" && as_dir=.
40181 for ac_exec_ext in '' $ac_executable_extensions; do
40182 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40183 ac_cv_prog_RESCOMP="Rez"
40184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40185 break 2
40186 fi
40187done
40188done
40189
40190 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
40191fi
40192fi
40193RESCOMP=$ac_cv_prog_RESCOMP
40194if test -n "$RESCOMP"; then
40195 echo "$as_me:$LINENO: result: $RESCOMP" >&5
40196echo "${ECHO_T}$RESCOMP" >&6
40197else
40198 echo "$as_me:$LINENO: result: no" >&5
40199echo "${ECHO_T}no" >&6
40200fi
40201
40202 # Extract the first word of "SetFile", so it can be a program name with args.
40203set dummy SetFile; ac_word=$2
40204echo "$as_me:$LINENO: checking for $ac_word" >&5
40205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40206if test "${ac_cv_prog_SETFILE+set}" = set; then
40207 echo $ECHO_N "(cached) $ECHO_C" >&6
40208else
40209 if test -n "$SETFILE"; then
40210 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
40211else
40212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40213for as_dir in $PATH
40214do
40215 IFS=$as_save_IFS
40216 test -z "$as_dir" && as_dir=.
40217 for ac_exec_ext in '' $ac_executable_extensions; do
40218 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40219 ac_cv_prog_SETFILE="SetFile"
40220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40221 break 2
40222 fi
40223done
40224done
40225
40226 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
40227fi
40228fi
40229SETFILE=$ac_cv_prog_SETFILE
40230if test -n "$SETFILE"; then
40231 echo "$as_me:$LINENO: result: $SETFILE" >&5
40232echo "${ECHO_T}$SETFILE" >&6
40233else
40234 echo "$as_me:$LINENO: result: no" >&5
40235echo "${ECHO_T}no" >&6
40236fi
40237
40238 ;;
40239 esac
40240
40241
40242
40243
40244
2057db16 40245 BAKEFILE_BAKEFILE_M4_VERSION="0.1.4"
a848cd7e 40246
dcc1b6ad 40247
9f45f08e 40248BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.4"
a848cd7e 40249
646b6ec1 40250
74b84332 40251
a848cd7e
SC
40252 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
40253if test "${enable_precomp_headers+set}" = set; then
40254 enableval="$enable_precomp_headers"
40255 bk_use_pch="$enableval"
40256fi;
40257
40258 GCC_PCH=0
40259
40260 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
40261 if test "x$GCC" = "xyes"; then
40262 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
40263echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
40264 cat >conftest.$ac_ext <<_ACEOF
40265/* confdefs.h. */
40266_ACEOF
40267cat confdefs.h >>conftest.$ac_ext
40268cat >>conftest.$ac_ext <<_ACEOF
40269/* end confdefs.h. */
40270
40271int
40272main ()
40273{
40274
40275 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
40276 #error "no pch support"
40277 #endif
40278 #if (__GNUC__ < 3)
40279 #error "no pch support"
40280 #endif
40281 #if (__GNUC__ == 3) && \
40282 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
40283 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
40284 #error "no pch support"
40285 #endif
40286
40287 ;
40288 return 0;
40289}
40290_ACEOF
40291rm -f conftest.$ac_objext
40292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40293 (eval $ac_compile) 2>conftest.er1
a848cd7e 40294 ac_status=$?
ac1cb8d3
VS
40295 grep -v '^ *+' conftest.er1 >conftest.err
40296 rm -f conftest.er1
40297 cat conftest.err >&5
a848cd7e
SC
40298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40299 (exit $ac_status); } &&
5294a27e 40300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40302 (eval $ac_try) 2>&5
40303 ac_status=$?
40304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40305 (exit $ac_status); }; } &&
40306 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40308 (eval $ac_try) 2>&5
40309 ac_status=$?
40310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40311 (exit $ac_status); }; }; then
40312
40313 echo "$as_me:$LINENO: result: yes" >&5
40314echo "${ECHO_T}yes" >&6
a848cd7e
SC
40315 GCC_PCH=1
40316
40317else
40318 echo "$as_me: failed program was:" >&5
40319sed 's/^/| /' conftest.$ac_ext >&5
40320
40321
40322 echo "$as_me:$LINENO: result: no" >&5
40323echo "${ECHO_T}no" >&6
40324
40325fi
ac1cb8d3 40326rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 40327 if test $GCC_PCH = 1 ; then
1e9e8aba
DE
40328
40329D='$'
40330cat <<EOF >bk-make-pch
a848cd7e
SC
40331#!/bin/sh
40332
40333# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
40334# script. It is used to generated precompiled headers.
40335#
40336# Permission is given to use this file in any way.
40337
1e9e8aba
DE
40338outfile="${D}{1}"
40339header="${D}{2}"
a848cd7e
SC
40340shift
40341shift
40342
40343compiler=
40344headerfile=
1e9e8aba
DE
40345while test ${D}{#} -gt 0; do
40346 case "${D}{1}" in
a848cd7e 40347 -I* )
1e9e8aba
DE
40348 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
40349 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
40350 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
40351 fi
40352 ;;
40353 esac
1e9e8aba 40354 compiler="${D}{compiler} ${D}{1}"
a848cd7e
SC
40355 shift
40356done
40357
1e9e8aba
DE
40358if test "x${D}{headerfile}" = "x" ; then
40359 echo "error: can't find header ${D}{header} in include paths" >2
a848cd7e 40360else
1e9e8aba
DE
40361 if test -f ${D}{outfile} ; then
40362 rm -f ${D}{outfile}
a848cd7e 40363 else
1e9e8aba 40364 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 40365 fi
1e9e8aba 40366 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e
SC
40367 mkdir -p .deps
40368 # can do this because gcc is >= 3.4:
1e9e8aba
DE
40369 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
40370 exit ${D}{?}
a848cd7e
SC
40371fi
40372EOF
1e9e8aba 40373
a848cd7e
SC
40374 chmod +x bk-make-pch
40375 fi
40376 fi
40377 fi
40378
40379
40380
40381
40382
40383 COND_BUILD_DEBUG="#"
40384 if test "x$BUILD" = "xdebug" ; then
40385 COND_BUILD_DEBUG=""
40386 fi
40387
40388 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
40389 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
40390 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
40391 fi
40392
40393 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
40394 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
40395 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
40396 fi
40397
40398 COND_BUILD_DEBUG_UNICODE_0="#"
40399 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
40400 COND_BUILD_DEBUG_UNICODE_0=""
40401 fi
40402
40403 COND_BUILD_DEBUG_UNICODE_1="#"
40404 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
40405 COND_BUILD_DEBUG_UNICODE_1=""
40406 fi
40407
40408 COND_BUILD_RELEASE="#"
40409 if test "x$BUILD" = "xrelease" ; then
40410 COND_BUILD_RELEASE=""
40411 fi
40412
40413 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
40414 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
40415 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
40416 fi
40417
40418 COND_BUILD_RELEASE_UNICODE_0="#"
40419 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
40420 COND_BUILD_RELEASE_UNICODE_0=""
40421 fi
40422
40423 COND_BUILD_RELEASE_UNICODE_1="#"
40424 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
40425 COND_BUILD_RELEASE_UNICODE_1=""
40426 fi
40427
40428 COND_DEBUG_FLAG_1="#"
40429 if test "x$DEBUG_FLAG" = "x1" ; then
40430 COND_DEBUG_FLAG_1=""
40431 fi
40432
40433 COND_DEBUG_INFO_0="#"
40434 if test "x$DEBUG_INFO" = "x0" ; then
40435 COND_DEBUG_INFO_0=""
40436 fi
40437
40438 COND_DEBUG_INFO_1="#"
40439 if test "x$DEBUG_INFO" = "x1" ; then
40440 COND_DEBUG_INFO_1=""
40441 fi
40442
40443 COND_DEPS_TRACKING_0="#"
40444 if test "x$DEPS_TRACKING" = "x0" ; then
40445 COND_DEPS_TRACKING_0=""
40446 fi
40447
40448 COND_DEPS_TRACKING_1="#"
40449 if test "x$DEPS_TRACKING" = "x1" ; then
40450 COND_DEPS_TRACKING_1=""
40451 fi
40452
40453 COND_GCC_PCH_1="#"
40454 if test "x$GCC_PCH" = "x1" ; then
40455 COND_GCC_PCH_1=""
40456 fi
40457
40458 COND_MONOLITHIC_0="#"
40459 if test "x$MONOLITHIC" = "x0" ; then
40460 COND_MONOLITHIC_0=""
40461 fi
40462
40463 COND_MONOLITHIC_0_SHARED_0="#"
40464 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
40465 COND_MONOLITHIC_0_SHARED_0=""
40466 fi
40467
40468 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
40469 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
40470 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
40471 fi
40472
90970d69
DE
40473 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
40474 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
40475 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
40476 fi
40477
a848cd7e
SC
40478 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
40479 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40480 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
40481 fi
40482
a848cd7e
SC
40483 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
40484 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
40485 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
40486 fi
40487
ceec2216
RL
40488 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
40489 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
40490 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
40491 fi
40492
a848cd7e
SC
40493 COND_MONOLITHIC_0_SHARED_1="#"
40494 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
40495 COND_MONOLITHIC_0_SHARED_1=""
40496 fi
40497
40498 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
40499 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
40500 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
40501 fi
40502
90970d69
DE
40503 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
40504 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
40505 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
40506 fi
40507
a848cd7e
SC
40508 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
40509 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40510 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
40511 fi
40512
a848cd7e
SC
40513 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
40514 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
40515 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
40516 fi
40517
ceec2216
RL
40518 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
40519 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
40520 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
40521 fi
40522
a848cd7e
SC
40523 COND_MONOLITHIC_0_USE_ODBC_1="#"
40524 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
40525 COND_MONOLITHIC_0_USE_ODBC_1=""
40526 fi
40527
40528 COND_MONOLITHIC_1="#"
40529 if test "x$MONOLITHIC" = "x1" ; then
40530 COND_MONOLITHIC_1=""
40531 fi
40532
40533 COND_MONOLITHIC_1_SHARED_0="#"
40534 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
40535 COND_MONOLITHIC_1_SHARED_0=""
40536 fi
40537
40538 COND_MONOLITHIC_1_SHARED_1="#"
40539 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
40540 COND_MONOLITHIC_1_SHARED_1=""
40541 fi
40542
40543 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
40544 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
40545 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
40546 fi
40547
40548 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
40549 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
40550 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
40551 fi
40552
40553 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
40554 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
40555 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
40556 fi
40557
40558 COND_PLATFORM_MACOSX_1="#"
40559 if test "x$PLATFORM_MACOSX" = "x1" ; then
40560 COND_PLATFORM_MACOSX_1=""
40561 fi
40562
a30f955f
VS
40563 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
40564 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
40565 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
40566 fi
40567
a848cd7e
SC
40568 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
40569 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
40570 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
40571 fi
40572
40573 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
40574 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
40575 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
40576 fi
40577
40578 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
40579 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
40580 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
40581 fi
40582
fc480dc1
DE
40583 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
40584 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
40585 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
40586 fi
40587
1e9e8aba
DE
40588 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
40589 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40590 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
40591 fi
40592
ebee3cd0
VS
40593 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
40594 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
40595 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
40596 fi
40597
40598 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
40599 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
40600 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
40601 fi
40602
a848cd7e
SC
40603 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
40604 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
40605 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
40606 fi
40607
40608 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
40609 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
40610 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
40611 fi
40612
b48a2016
DE
40613 COND_PLATFORM_MACOS_1="#"
40614 if test "x$PLATFORM_MACOS" = "x1" ; then
40615 COND_PLATFORM_MACOS_1=""
40616 fi
40617
a848cd7e
SC
40618 COND_PLATFORM_MAC_1="#"
40619 if test "x$PLATFORM_MAC" = "x1" ; then
40620 COND_PLATFORM_MAC_1=""
40621 fi
40622
40623 COND_PLATFORM_OS2_1="#"
40624 if test "x$PLATFORM_OS2" = "x1" ; then
40625 COND_PLATFORM_OS2_1=""
40626 fi
40627
40628 COND_PLATFORM_UNIX_0="#"
40629 if test "x$PLATFORM_UNIX" = "x0" ; then
40630 COND_PLATFORM_UNIX_0=""
40631 fi
40632
40633 COND_PLATFORM_UNIX_1="#"
40634 if test "x$PLATFORM_UNIX" = "x1" ; then
40635 COND_PLATFORM_UNIX_1=""
40636 fi
40637
40638 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
40639 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
40640 COND_PLATFORM_UNIX_1_USE_GUI_1=""
40641 fi
40642
40643 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
40644 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
40645 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
40646 fi
40647
40648 COND_PLATFORM_WIN32_0="#"
40649 if test "x$PLATFORM_WIN32" = "x0" ; then
40650 COND_PLATFORM_WIN32_0=""
40651 fi
40652
40653 COND_PLATFORM_WIN32_1="#"
40654 if test "x$PLATFORM_WIN32" = "x1" ; then
40655 COND_PLATFORM_WIN32_1=""
40656 fi
40657
40658 COND_SHARED_0="#"
40659 if test "x$SHARED" = "x0" ; then
40660 COND_SHARED_0=""
40661 fi
40662
ceec2216
RL
40663 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
40664 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
40665 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
40666 fi
40667
40668 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
40669 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
40670 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
40671 fi
40672
40673 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
40674 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
40675 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
40676 fi
40677
a848cd7e
SC
40678 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
40679 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40680 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
40681 fi
40682
40683 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40684 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40685 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40686 fi
40687
40688 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40689 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40690 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40691 fi
40692
40693 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40694 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40695 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40696 fi
40697
40698 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
40699 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
40700 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
40701 fi
40702
40703 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
40704 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
40705 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
40706 fi
40707
40708 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
40709 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
40710 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
40711 fi
40712
40713 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
40714 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
40715 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
40716 fi
40717
40718 COND_SHARED_1="#"
40719 if test "x$SHARED" = "x1" ; then
40720 COND_SHARED_1=""
40721 fi
40722
40723 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
40724 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40725 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
40726 fi
40727
a30f955f
VS
40728 COND_TOOLKIT_="#"
40729 if test "x$TOOLKIT" = "x" ; then
40730 COND_TOOLKIT_=""
40731 fi
40732
a848cd7e
SC
40733 COND_TOOLKIT_COCOA="#"
40734 if test "x$TOOLKIT" = "xCOCOA" ; then
40735 COND_TOOLKIT_COCOA=""
40736 fi
40737
a49baeab
DE
40738 COND_TOOLKIT_COCOA_USE_GUI_1="#"
40739 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
40740 COND_TOOLKIT_COCOA_USE_GUI_1=""
40741 fi
40742
a848cd7e
SC
40743 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
40744 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40745 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
40746 fi
40747
40748 COND_TOOLKIT_GTK="#"
40749 if test "x$TOOLKIT" = "xGTK" ; then
40750 COND_TOOLKIT_GTK=""
40751 fi
40752
40753 COND_TOOLKIT_GTK_USE_GUI_1="#"
40754 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
40755 COND_TOOLKIT_GTK_USE_GUI_1=""
40756 fi
40757
40758 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
40759 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40760 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
40761 fi
40762
40763 COND_TOOLKIT_MAC="#"
40764 if test "x$TOOLKIT" = "xMAC" ; then
40765 COND_TOOLKIT_MAC=""
40766 fi
40767
40768 COND_TOOLKIT_MAC_USE_GUI_1="#"
40769 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
40770 COND_TOOLKIT_MAC_USE_GUI_1=""
40771 fi
40772
40773 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
40774 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40775 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
40776 fi
40777
40778 COND_TOOLKIT_MGL="#"
40779 if test "x$TOOLKIT" = "xMGL" ; then
40780 COND_TOOLKIT_MGL=""
40781 fi
40782
40783 COND_TOOLKIT_MGL_USE_GUI_1="#"
40784 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
40785 COND_TOOLKIT_MGL_USE_GUI_1=""
40786 fi
40787
40788 COND_TOOLKIT_MOTIF="#"
40789 if test "x$TOOLKIT" = "xMOTIF" ; then
40790 COND_TOOLKIT_MOTIF=""
40791 fi
40792
40793 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
40794 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
40795 COND_TOOLKIT_MOTIF_USE_GUI_1=""
40796 fi
40797
40798 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
40799 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40800 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
40801 fi
40802
40803 COND_TOOLKIT_MSW="#"
40804 if test "x$TOOLKIT" = "xMSW" ; then
40805 COND_TOOLKIT_MSW=""
40806 fi
40807
40808 COND_TOOLKIT_MSW_USE_GUI_1="#"
40809 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
40810 COND_TOOLKIT_MSW_USE_GUI_1=""
40811 fi
40812
40813 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
40814 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40815 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
40816 fi
40817
40818 COND_TOOLKIT_PM="#"
40819 if test "x$TOOLKIT" = "xPM" ; then
40820 COND_TOOLKIT_PM=""
40821 fi
40822
40823 COND_TOOLKIT_PM_USE_GUI_1="#"
40824 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
40825 COND_TOOLKIT_PM_USE_GUI_1=""
40826 fi
40827
40828 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
40829 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40830 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
40831 fi
40832
3fd9c298
DE
40833 COND_TOOLKIT_WINCE="#"
40834 if test "x$TOOLKIT" = "xWINCE" ; then
40835 COND_TOOLKIT_WINCE=""
40836 fi
40837
40838 COND_TOOLKIT_WINCE_USE_GUI_1="#"
40839 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
40840 COND_TOOLKIT_WINCE_USE_GUI_1=""
40841 fi
40842
40843 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
40844 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40845 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
40846 fi
40847
a848cd7e
SC
40848 COND_TOOLKIT_X11="#"
40849 if test "x$TOOLKIT" = "xX11" ; then
40850 COND_TOOLKIT_X11=""
40851 fi
40852
40853 COND_TOOLKIT_X11_USE_GUI_1="#"
40854 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
40855 COND_TOOLKIT_X11_USE_GUI_1=""
40856 fi
40857
40858 COND_UNICODE_1="#"
40859 if test "x$UNICODE" = "x1" ; then
40860 COND_UNICODE_1=""
40861 fi
40862
40863 COND_USE_EXCEPTIONS_0="#"
40864 if test "x$USE_EXCEPTIONS" = "x0" ; then
40865 COND_USE_EXCEPTIONS_0=""
40866 fi
40867
40868 COND_USE_EXCEPTIONS_1="#"
40869 if test "x$USE_EXCEPTIONS" = "x1" ; then
40870 COND_USE_EXCEPTIONS_1=""
40871 fi
40872
40873 COND_USE_GUI_0="#"
40874 if test "x$USE_GUI" = "x0" ; then
40875 COND_USE_GUI_0=""
40876 fi
40877
40878 COND_USE_GUI_1="#"
40879 if test "x$USE_GUI" = "x1" ; then
40880 COND_USE_GUI_1=""
40881 fi
40882
40883 COND_USE_GUI_1_WXUNIV_0="#"
40884 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40885 COND_USE_GUI_1_WXUNIV_0=""
40886 fi
40887
40888 COND_USE_GUI_1_WXUNIV_1="#"
40889 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
40890 COND_USE_GUI_1_WXUNIV_1=""
40891 fi
40892
40893 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40894 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40895 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40896 fi
40897
40898 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40899 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40900 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40901 fi
40902
40903 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40904 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40905 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40906 fi
40907
ceec2216
RL
40908 COND_USE_ODBC_1="#"
40909 if test "x$USE_ODBC" = "x1" ; then
40910 COND_USE_ODBC_1=""
40911 fi
40912
ffa0583f
RL
40913 COND_USE_OPENGL_1="#"
40914 if test "x$USE_OPENGL" = "x1" ; then
40915 COND_USE_OPENGL_1=""
40916 fi
40917
a848cd7e
SC
40918 COND_USE_PLUGINS_0="#"
40919 if test "x$USE_PLUGINS" = "x0" ; then
40920 COND_USE_PLUGINS_0=""
40921 fi
40922
40923 COND_USE_SOSYMLINKS_1="#"
40924 if test "x$USE_SOSYMLINKS" = "x1" ; then
40925 COND_USE_SOSYMLINKS_1=""
40926 fi
40927
40928 COND_USE_SOVERLINUX_1="#"
40929 if test "x$USE_SOVERLINUX" = "x1" ; then
40930 COND_USE_SOVERLINUX_1=""
40931 fi
40932
40933 COND_USE_SOVERSION_0="#"
40934 if test "x$USE_SOVERSION" = "x0" ; then
40935 COND_USE_SOVERSION_0=""
40936 fi
40937
40938 COND_USE_SOVERSOLARIS_1="#"
40939 if test "x$USE_SOVERSOLARIS" = "x1" ; then
40940 COND_USE_SOVERSOLARIS_1=""
40941 fi
40942
a13a7f89
RL
40943 COND_USE_XRC_1="#"
40944 if test "x$USE_XRC" = "x1" ; then
40945 COND_USE_XRC_1=""
40946 fi
40947
a848cd7e
SC
40948 COND_WITH_PLUGIN_SDL_1="#"
40949 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
40950 COND_WITH_PLUGIN_SDL_1=""
40951 fi
40952
a848cd7e
SC
40953 COND_WXUNIV_1="#"
40954 if test "x$WXUNIV" = "x1" ; then
40955 COND_WXUNIV_1=""
40956 fi
40957
40958 COND_WXUSE_EXPAT_BUILTIN="#"
40959 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
40960 COND_WXUSE_EXPAT_BUILTIN=""
40961 fi
40962
40963 COND_WXUSE_LIBJPEG_BUILTIN="#"
40964 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40965 COND_WXUSE_LIBJPEG_BUILTIN=""
40966 fi
40967
40968 COND_WXUSE_LIBPNG_BUILTIN="#"
40969 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40970 COND_WXUSE_LIBPNG_BUILTIN=""
40971 fi
40972
40973 COND_WXUSE_LIBTIFF_BUILTIN="#"
40974 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40975 COND_WXUSE_LIBTIFF_BUILTIN=""
40976 fi
40977
40978 COND_WXUSE_ODBC_BUILTIN="#"
40979 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
40980 COND_WXUSE_ODBC_BUILTIN=""
40981 fi
40982
40983 COND_WXUSE_REGEX_BUILTIN="#"
40984 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
40985 COND_WXUSE_REGEX_BUILTIN=""
40986 fi
40987
40988 COND_WXUSE_ZLIB_BUILTIN="#"
40989 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
40990 COND_WXUSE_ZLIB_BUILTIN=""
40991 fi
40992
40993
40994
2057db16
VS
40995 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
40996 { { 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
40997echo "$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;}
40998 { (exit 1); exit 1; }; }
40999 fi
41000
a848cd7e 41001
ceec2216
RL
41002if test "$wxUSE_SHARED" = "yes"; then
41003
41004 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
41005 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
41006
5b674b9d
DE
41007 case "${host}" in
41008 *-pc-os2_emx | *-pc-os2-emx )
41009 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
41010 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
41011 cp -p ${srcdir}/src/os2/dllnames.sh .
41012 cp -p ${srcdir}/src/os2/dllar.sh .
41013 ;;
41014 esac
ceec2216
RL
41015else
41016
41017 EXE_LINKER="$CXX -o"
41018
41019fi
a848cd7e 41020
74b84332 41021GCC_PRAGMA_FLAGS=""
a848cd7e 41022if test $GCC_PCH = 1 ; then
74b84332 41023 GCC_PRAGMA_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA"
a848cd7e
SC
41024else
41025 case "${host}" in
41026 powerpc-*-darwin* )
74b84332 41027 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
a848cd7e 41028 ;;
bea8e651 41029 *-*-mingw32* )
1f344abf
VS
41030 if test "$wxUSE_STL" = "yes" -o \
41031 "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
41032 "$wxUSE_NO_RTTI" != "yes"; then
41033 echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
41034echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
bea8e651
MB
41035 cat >conftest.$ac_ext <<_ACEOF
41036/* confdefs.h. */
41037_ACEOF
41038cat confdefs.h >>conftest.$ac_ext
41039cat >>conftest.$ac_ext <<_ACEOF
41040/* end confdefs.h. */
41041
3314e67b
RR
41042int
41043main ()
41044{
41045#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
41046 #error "Not GCC 3.2 or greater"
41047 #endif
41048
41049 ;
41050 return 0;
41051}
41052_ACEOF
41053rm -f conftest.$ac_objext
41054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41055 (eval $ac_compile) 2>conftest.er1
41056 ac_status=$?
41057 grep -v '^ *+' conftest.er1 >conftest.err
41058 rm -f conftest.er1
41059 cat conftest.err >&5
41060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41061 (exit $ac_status); } &&
5294a27e 41062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3314e67b
RR
41063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41064 (eval $ac_try) 2>&5
41065 ac_status=$?
41066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41067 (exit $ac_status); }; } &&
41068 { ac_try='test -s conftest.$ac_objext'
41069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41070 (eval $ac_try) 2>&5
41071 ac_status=$?
41072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41073 (exit $ac_status); }; }; then
41074 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
41075 echo "$as_me:$LINENO: result: yes" >&5
41076echo "${ECHO_T}yes" >&6
41077else
41078 echo "$as_me: failed program was:" >&5
41079sed 's/^/| /' conftest.$ac_ext >&5
41080
41081echo "$as_me:$LINENO: result: no" >&5
41082echo "${ECHO_T}no" >&6
41083fi
41084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41085 fi
41086 ;;
41087 *-pc-os2_emx | *-pc-os2-emx )
41088 if test "$wxUSE_STL" = "yes"; then
41089 echo "$as_me:$LINENO: checking if this gcc version needs -DNO_GCC_PRAGMA" >&5
41090echo $ECHO_N "checking if this gcc version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
41091 cat >conftest.$ac_ext <<_ACEOF
41092/* confdefs.h. */
41093_ACEOF
41094cat confdefs.h >>conftest.$ac_ext
41095cat >>conftest.$ac_ext <<_ACEOF
41096/* end confdefs.h. */
41097
bea8e651
MB
41098int
41099main ()
41100{
1f344abf 41101#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
bea8e651
MB
41102 #error "Not GCC 3.2 or greater"
41103 #endif
41104
41105 ;
41106 return 0;
41107}
41108_ACEOF
41109rm -f conftest.$ac_objext
41110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41111 (eval $ac_compile) 2>conftest.er1
bea8e651 41112 ac_status=$?
ac1cb8d3
VS
41113 grep -v '^ *+' conftest.er1 >conftest.err
41114 rm -f conftest.er1
41115 cat conftest.err >&5
bea8e651
MB
41116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41117 (exit $ac_status); } &&
5294a27e 41118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41120 (eval $ac_try) 2>&5
41121 ac_status=$?
41122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41123 (exit $ac_status); }; } &&
41124 { ac_try='test -s conftest.$ac_objext'
bea8e651
MB
41125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41126 (eval $ac_try) 2>&5
41127 ac_status=$?
41128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41129 (exit $ac_status); }; }; then
74b84332 41130 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
bea8e651
MB
41131 echo "$as_me:$LINENO: result: yes" >&5
41132echo "${ECHO_T}yes" >&6
41133else
41134 echo "$as_me: failed program was:" >&5
41135sed 's/^/| /' conftest.$ac_ext >&5
41136
41137echo "$as_me:$LINENO: result: no" >&5
41138echo "${ECHO_T}no" >&6
41139fi
ac1cb8d3 41140rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bea8e651
MB
41141 fi
41142 ;;
a848cd7e
SC
41143 esac
41144fi
74b84332 41145CPPFLAGS="$GCC_PRAGMA_FLAGS $CPPFLAGS"
a848cd7e
SC
41146
41147
41148SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
41149
41150
41151
41152
41153
41154
41155
41156
41157
41158
41159
41160
41161
41162
41163
41164
41165
41166
41167
41168
41169
41170
41171
41172
41173
41174
41175
41176
41177
41178
41179
41180
41181
41182
41183
41184
41185
41186
41187
41188
41189
41190
a848cd7e
SC
41191
41192
41193
41194
41195
41196
41197
41198
41199
41200
41201
41202
41203
41204
41205
41206
41207
41208
74b84332 41209
a848cd7e
SC
41210
41211
41212echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
41213echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 41214set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
41215if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
41216 echo $ECHO_N "(cached) $ECHO_C" >&6
41217else
41218 cat >conftest.make <<\_ACEOF
41219all:
41220 @echo 'ac_maketemp="$(MAKE)"'
41221_ACEOF
41222# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
41223eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
41224if test -n "$ac_maketemp"; then
41225 eval ac_cv_prog_make_${ac_make}_set=yes
41226else
41227 eval ac_cv_prog_make_${ac_make}_set=no
41228fi
41229rm -f conftest.make
41230fi
41231if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
41232 echo "$as_me:$LINENO: result: yes" >&5
41233echo "${ECHO_T}yes" >&6
41234 SET_MAKE=
41235else
41236 echo "$as_me:$LINENO: result: no" >&5
41237echo "${ECHO_T}no" >&6
41238 SET_MAKE="MAKE=${MAKE-make}"
41239fi
41240
41241
a848cd7e 41242
ceec2216
RL
41243 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
41244
a848cd7e 41245
ceec2216 41246 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 41247
a848cd7e 41248
ceec2216 41249 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 41250
ceec2216
RL
41251
41252 ac_config_files="$ac_config_files version-script Makefile"
41253
41254
41255 ac_config_commands="$ac_config_commands wx-config
41256 "
a848cd7e
SC
41257
41258
9103d280
RL
41259
41260
a848cd7e
SC
41261if test "$wxUSE_GUI" = "yes"; then
41262 SUBDIRS="samples demos utils contrib"
41263else SUBDIRS="samples utils"
41264fi
41265
41266
41267
41268# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
41269if test "${with_cppunit_prefix+set}" = set; then
41270 withval="$with_cppunit_prefix"
41271 cppunit_config_prefix="$withval"
41272else
41273 cppunit_config_prefix=""
41274fi;
41275
41276# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
41277if test "${with_cppunit_exec_prefix+set}" = set; then
41278 withval="$with_cppunit_exec_prefix"
41279 cppunit_config_exec_prefix="$withval"
41280else
41281 cppunit_config_exec_prefix=""
41282fi;
41283
41284 if test x$cppunit_config_exec_prefix != x ; then
41285 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
41286 if test x${CPPUNIT_CONFIG+set} != xset ; then
41287 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
41288 fi
41289 fi
41290 if test x$cppunit_config_prefix != x ; then
41291 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
41292 if test x${CPPUNIT_CONFIG+set} != xset ; then
41293 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
41294 fi
41295 fi
41296
41297 # Extract the first word of "cppunit-config", so it can be a program name with args.
41298set dummy cppunit-config; ac_word=$2
41299echo "$as_me:$LINENO: checking for $ac_word" >&5
41300echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41301if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
41302 echo $ECHO_N "(cached) $ECHO_C" >&6
41303else
41304 case $CPPUNIT_CONFIG in
41305 [\\/]* | ?:[\\/]*)
41306 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
41307 ;;
41308 *)
41309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41310for as_dir in $PATH
41311do
41312 IFS=$as_save_IFS
41313 test -z "$as_dir" && as_dir=.
41314 for ac_exec_ext in '' $ac_executable_extensions; do
41315 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41316 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41318 break 2
41319 fi
41320done
41321done
41322
41323 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
41324 ;;
41325esac
41326fi
41327CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
41328
41329if test -n "$CPPUNIT_CONFIG"; then
41330 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
41331echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
41332else
41333 echo "$as_me:$LINENO: result: no" >&5
41334echo "${ECHO_T}no" >&6
41335fi
41336
41337 cppunit_version_min=1.8.0
41338
41339 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
41340echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
41341 no_cppunit=""
41342 if test "$CPPUNIT_CONFIG" = "no" ; then
41343 no_cppunit=yes
41344 else
41345 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
41346 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
41347 cppunit_version=`$CPPUNIT_CONFIG --version`
41348
41349 cppunit_major_version=`echo $cppunit_version | \
41350 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41351 cppunit_minor_version=`echo $cppunit_version | \
41352 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41353 cppunit_micro_version=`echo $cppunit_version | \
41354 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41355
41356 cppunit_major_min=`echo $cppunit_version_min | \
41357 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41358 cppunit_minor_min=`echo $cppunit_version_min | \
41359 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41360 cppunit_micro_min=`echo $cppunit_version_min | \
41361 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41362
41363 cppunit_version_proper=`expr \
41364 $cppunit_major_version \> $cppunit_major_min \| \
41365 $cppunit_major_version \= $cppunit_major_min \& \
41366 $cppunit_minor_version \> $cppunit_minor_min \| \
41367 $cppunit_major_version \= $cppunit_major_min \& \
41368 $cppunit_minor_version \= $cppunit_minor_min \& \
41369 $cppunit_micro_version \>= $cppunit_micro_min `
41370
41371 if test "$cppunit_version_proper" = "1" ; then
41372 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
41373echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
41374 else
41375 echo "$as_me:$LINENO: result: no" >&5
41376echo "${ECHO_T}no" >&6
41377 no_cppunit=yes
41378 fi
41379 fi
41380
41381 if test "x$no_cppunit" = x ; then
c2218763 41382 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
41383 else
41384 CPPUNIT_CFLAGS=""
41385 CPPUNIT_LIBS=""
c2218763 41386 :
a848cd7e
SC
41387 fi
41388
41389
41390
41391
41392
41393for subdir in `echo $SUBDIRS`; do
41394 if test -d ${srcdir}/${subdir} ; then
41395 if test "$wxUSE_GUI" = "yes"; then
41396 if test ${subdir} = "samples"; then
41397 makefiles="samples/Makefile.in $makefiles"
41398 for sample in `echo $SAMPLES_SUBDIRS`; do
41399 if test -d $srcdir/samples/$sample; then
41400 makefiles="samples/$sample/Makefile.in $makefiles"
41401 fi
41402 done
41403 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
41404 fi
41405 else if test ${subdir} = "samples"; then
41406 makefiles="samples/Makefile.in samples/console/Makefile.in"
41407 elif test ${subdir} = "utils"; then
6537ccf8
VS
41408 makefiles=""
41409 for util in HelpGen tex2rtf ; do
41410 if test -d $srcdir/utils/$util ; then
41411 makefiles="utils/$util/Makefile.in \
41412 utils/$util/src/Makefile.in \
41413 $makefiles"
41414 fi
41415 done
a848cd7e
SC
41416 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
41417 fi
41418 fi
41419
41420 for mkin in $makefiles ; do
41421 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
41422 ac_config_files="$ac_config_files $mk"
41423
41424 done
41425 fi
41426done
41427
41428
41429cat >confcache <<\_ACEOF
41430# This file is a shell script that caches the results of configure
41431# tests run on this system so they can be shared between configure
41432# scripts and configure runs, see configure's option --config-cache.
41433# It is not useful on other systems. If it contains results you don't
41434# want to keep, you may remove or edit it.
41435#
41436# config.status only pays attention to the cache file if you give it
41437# the --recheck option to rerun configure.
41438#
41439# `ac_cv_env_foo' variables (set or unset) will be overridden when
41440# loading this file, other *unset* `ac_cv_foo' will be assigned the
41441# following values.
41442
41443_ACEOF
41444
41445# The following way of writing the cache mishandles newlines in values,
41446# but we know of no workaround that is simple, portable, and efficient.
41447# So, don't put newlines in cache variables' values.
41448# Ultrix sh set writes to stderr and can't be redirected directly,
41449# and sets the high bit in the cache file unless we assign to the vars.
41450{
41451 (set) 2>&1 |
41452 case `(ac_space=' '; set | grep ac_space) 2>&1` in
41453 *ac_space=\ *)
41454 # `set' does not quote correctly, so add quotes (double-quote
41455 # substitution turns \\\\ into \\, and sed turns \\ into \).
41456 sed -n \
ac1cb8d3
VS
41457 "s/'/'\\\\''/g;
41458 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
41459 ;;
41460 *)
41461 # `set' quotes correctly as required by POSIX, so do not add quotes.
41462 sed -n \
ac1cb8d3 41463 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
41464 ;;
41465 esac;
41466} |
41467 sed '
41468 t clear
41469 : clear
41470 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41471 t end
41472 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41473 : end' >>confcache
41474if diff $cache_file confcache >/dev/null 2>&1; then :; else
41475 if test -w $cache_file; then
41476 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
41477 cat confcache >$cache_file
41478 else
41479 echo "not updating unwritable cache $cache_file"
41480 fi
41481fi
41482rm -f confcache
41483
41484test "x$prefix" = xNONE && prefix=$ac_default_prefix
41485# Let make expand exec_prefix.
41486test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41487
41488# VPATH may cause trouble with some makes, so we remove $(srcdir),
41489# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
41490# trailing colons and then remove the whole line if VPATH becomes empty
41491# (actually we leave an empty line to preserve line numbers).
41492if test "x$srcdir" = x.; then
ac1cb8d3 41493 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
41494s/:*\$(srcdir):*/:/;
41495s/:*\${srcdir}:*/:/;
41496s/:*@srcdir@:*/:/;
ac1cb8d3 41497s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 41498s/:*$//;
ac1cb8d3 41499s/^[^=]*=[ ]*$//;
a848cd7e
SC
41500}'
41501fi
41502
41503DEFS=-DHAVE_CONFIG_H
41504
41505ac_libobjs=
41506ac_ltlibobjs=
41507for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41508 # 1. Remove the extension, and $U if already installed.
41509 ac_i=`echo "$ac_i" |
ac1cb8d3 41510 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
41511 # 2. Add them.
41512 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
41513 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
41514done
41515LIBOBJS=$ac_libobjs
41516
41517LTLIBOBJS=$ac_ltlibobjs
41518
41519
41520
41521: ${CONFIG_STATUS=./config.status}
41522ac_clean_files_save=$ac_clean_files
41523ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41524{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
41525echo "$as_me: creating $CONFIG_STATUS" >&6;}
41526cat >$CONFIG_STATUS <<_ACEOF
41527#! $SHELL
41528# Generated by $as_me.
41529# Run this file to recreate the current configuration.
41530# Compiler output produced by configure, useful for debugging
41531# configure, is in config.log if it exists.
41532
41533debug=false
41534ac_cs_recheck=false
41535ac_cs_silent=false
41536SHELL=\${CONFIG_SHELL-$SHELL}
41537_ACEOF
41538
41539cat >>$CONFIG_STATUS <<\_ACEOF
41540## --------------------- ##
41541## M4sh Initialization. ##
41542## --------------------- ##
41543
41544# Be Bourne compatible
41545if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
41546 emulate sh
41547 NULLCMD=:
41548 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
41549 # is contrary to our usage. Disable this feature.
41550 alias -g '${1+"$@"}'='"$@"'
41551elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
41552 set -o posix
41553fi
ac1cb8d3 41554DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
41555
41556# Support unset when possible.
ac1cb8d3 41557if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
41558 as_unset=unset
41559else
41560 as_unset=false
41561fi
41562
41563
41564# Work around bugs in pre-3.0 UWIN ksh.
41565$as_unset ENV MAIL MAILPATH
41566PS1='$ '
41567PS2='> '
41568PS4='+ '
41569
41570# NLS nuisances.
41571for as_var in \
41572 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41573 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
41574 LC_TELEPHONE LC_TIME
41575do
ac1cb8d3 41576 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
41577 eval $as_var=C; export $as_var
41578 else
41579 $as_unset $as_var
41580 fi
41581done
41582
41583# Required to use basename.
41584if expr a : '\(a\)' >/dev/null 2>&1; then
41585 as_expr=expr
41586else
41587 as_expr=false
41588fi
41589
41590if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
41591 as_basename=basename
41592else
41593 as_basename=false
41594fi
41595
41596
41597# Name of the executable.
41598as_me=`$as_basename "$0" ||
41599$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41600 X"$0" : 'X\(//\)$' \| \
41601 X"$0" : 'X\(/\)$' \| \
41602 . : '\(.\)' 2>/dev/null ||
41603echo X/"$0" |
41604 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
41605 /^X\/\(\/\/\)$/{ s//\1/; q; }
41606 /^X\/\(\/\).*/{ s//\1/; q; }
41607 s/.*/./; q'`
41608
41609
41610# PATH needs CR, and LINENO needs CR and PATH.
41611# Avoid depending upon Character Ranges.
41612as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41613as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41614as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41615as_cr_digits='0123456789'
41616as_cr_alnum=$as_cr_Letters$as_cr_digits
41617
41618# The user is always right.
41619if test "${PATH_SEPARATOR+set}" != set; then
41620 echo "#! /bin/sh" >conf$$.sh
41621 echo "exit 0" >>conf$$.sh
41622 chmod +x conf$$.sh
41623 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
41624 PATH_SEPARATOR=';'
41625 else
41626 PATH_SEPARATOR=:
41627 fi
41628 rm -f conf$$.sh
41629fi
41630
41631
41632 as_lineno_1=$LINENO
41633 as_lineno_2=$LINENO
41634 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41635 test "x$as_lineno_1" != "x$as_lineno_2" &&
41636 test "x$as_lineno_3" = "x$as_lineno_2" || {
41637 # Find who we are. Look in the path if we contain no path at all
41638 # relative or not.
41639 case $0 in
41640 *[\\/]* ) as_myself=$0 ;;
41641 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41642for as_dir in $PATH
41643do
41644 IFS=$as_save_IFS
41645 test -z "$as_dir" && as_dir=.
41646 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41647done
41648
41649 ;;
41650 esac
41651 # We did not find ourselves, most probably we were run as `sh COMMAND'
41652 # in which case we are not to be found in the path.
41653 if test "x$as_myself" = x; then
41654 as_myself=$0
41655 fi
41656 if test ! -f "$as_myself"; then
41657 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
41658echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
41659 { (exit 1); exit 1; }; }
41660 fi
41661 case $CONFIG_SHELL in
41662 '')
41663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41664for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
41665do
41666 IFS=$as_save_IFS
41667 test -z "$as_dir" && as_dir=.
41668 for as_base in sh bash ksh sh5; do
41669 case $as_dir in
41670 /*)
41671 if ("$as_dir/$as_base" -c '
41672 as_lineno_1=$LINENO
41673 as_lineno_2=$LINENO
41674 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41675 test "x$as_lineno_1" != "x$as_lineno_2" &&
41676 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
41677 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
41678 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
41679 CONFIG_SHELL=$as_dir/$as_base
41680 export CONFIG_SHELL
41681 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
41682 fi;;
41683 esac
41684 done
41685done
41686;;
41687 esac
41688
41689 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
41690 # uniformly replaced by the line number. The first 'sed' inserts a
41691 # line-number line before each line; the second 'sed' does the real
41692 # work. The second script uses 'N' to pair each line-number line
41693 # with the numbered line, and appends trailing '-' during
41694 # substitution so that $LINENO is not a special case at line end.
41695 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
41696 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
41697 sed '=' <$as_myself |
41698 sed '
41699 N
41700 s,$,-,
41701 : loop
41702 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
41703 t loop
41704 s,-$,,
41705 s,^['$as_cr_digits']*\n,,
41706 ' >$as_me.lineno &&
41707 chmod +x $as_me.lineno ||
41708 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
41709echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
41710 { (exit 1); exit 1; }; }
41711
41712 # Don't try to exec as it changes $[0], causing all sort of problems
41713 # (the dirname of $[0] is not the place where we might find the
41714 # original and so on. Autoconf is especially sensible to this).
41715 . ./$as_me.lineno
41716 # Exit status is that of the last command.
41717 exit
41718}
41719
41720
41721case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
41722 *c*,-n*) ECHO_N= ECHO_C='
41723' ECHO_T=' ' ;;
41724 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
41725 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
41726esac
41727
41728if expr a : '\(a\)' >/dev/null 2>&1; then
41729 as_expr=expr
41730else
41731 as_expr=false
41732fi
41733
41734rm -f conf$$ conf$$.exe conf$$.file
41735echo >conf$$.file
41736if ln -s conf$$.file conf$$ 2>/dev/null; then
41737 # We could just check for DJGPP; but this test a) works b) is more generic
41738 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
41739 if test -f conf$$.exe; then
41740 # Don't use ln at all; we don't have any links
41741 as_ln_s='cp -p'
41742 else
41743 as_ln_s='ln -s'
41744 fi
41745elif ln conf$$.file conf$$ 2>/dev/null; then
41746 as_ln_s=ln
41747else
41748 as_ln_s='cp -p'
41749fi
41750rm -f conf$$ conf$$.exe conf$$.file
41751
41752if mkdir -p . 2>/dev/null; then
41753 as_mkdir_p=:
41754else
ac1cb8d3 41755 test -d ./-p && rmdir ./-p
a848cd7e
SC
41756 as_mkdir_p=false
41757fi
41758
41759as_executable_p="test -f"
41760
41761# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 41762as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
41763
41764# Sed expression to map a string onto a valid variable name.
ac1cb8d3 41765as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
41766
41767
41768# IFS
41769# We need space, tab and new line, in precisely that order.
41770as_nl='
41771'
41772IFS=" $as_nl"
41773
41774# CDPATH.
41775$as_unset CDPATH
41776
41777exec 6>&1
41778
41779# Open the log real soon, to keep \$[0] and so on meaningful, and to
41780# report actual input values of CONFIG_FILES etc. instead of their
41781# values after options handling. Logging --version etc. is OK.
41782exec 5>>config.log
41783{
41784 echo
41785 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41786## Running $as_me. ##
41787_ASBOX
41788} >&5
41789cat >&5 <<_CSEOF
41790
7714864e 41791This file was extended by wxWidgets $as_me 2.5.3, which was
ac1cb8d3 41792generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
41793
41794 CONFIG_FILES = $CONFIG_FILES
41795 CONFIG_HEADERS = $CONFIG_HEADERS
41796 CONFIG_LINKS = $CONFIG_LINKS
41797 CONFIG_COMMANDS = $CONFIG_COMMANDS
41798 $ $0 $@
41799
41800_CSEOF
41801echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
41802echo >&5
41803_ACEOF
41804
41805# Files that config.status was made for.
41806if test -n "$ac_config_files"; then
41807 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
41808fi
41809
41810if test -n "$ac_config_headers"; then
41811 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
41812fi
41813
41814if test -n "$ac_config_links"; then
41815 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
41816fi
41817
41818if test -n "$ac_config_commands"; then
41819 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
41820fi
41821
41822cat >>$CONFIG_STATUS <<\_ACEOF
41823
41824ac_cs_usage="\
41825\`$as_me' instantiates files from templates according to the
41826current configuration.
41827
41828Usage: $0 [OPTIONS] [FILE]...
41829
41830 -h, --help print this help, then exit
41831 -V, --version print version number, then exit
41832 -q, --quiet do not print progress messages
41833 -d, --debug don't remove temporary files
41834 --recheck update $as_me by reconfiguring in the same conditions
41835 --file=FILE[:TEMPLATE]
ac1cb8d3 41836 instantiate the configuration file FILE
a848cd7e 41837 --header=FILE[:TEMPLATE]
ac1cb8d3 41838 instantiate the configuration header FILE
a848cd7e
SC
41839
41840Configuration files:
41841$config_files
41842
41843Configuration headers:
41844$config_headers
41845
41846Configuration commands:
41847$config_commands
41848
41849Report bugs to <bug-autoconf@gnu.org>."
41850_ACEOF
41851
41852cat >>$CONFIG_STATUS <<_ACEOF
41853ac_cs_version="\\
7714864e 41854wxWidgets config.status 2.5.3
ac1cb8d3 41855configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
41856 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
41857
ac1cb8d3 41858Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
41859This config.status script is free software; the Free Software Foundation
41860gives unlimited permission to copy, distribute and modify it."
41861srcdir=$srcdir
41862INSTALL="$INSTALL"
41863_ACEOF
41864
41865cat >>$CONFIG_STATUS <<\_ACEOF
41866# If no file are specified by the user, then we need to provide default
41867# value. By we need to know if files were specified by the user.
41868ac_need_defaults=:
41869while test $# != 0
41870do
41871 case $1 in
41872 --*=*)
41873 ac_option=`expr "x$1" : 'x\([^=]*\)='`
41874 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
41875 ac_shift=:
41876 ;;
41877 -*)
41878 ac_option=$1
41879 ac_optarg=$2
41880 ac_shift=shift
41881 ;;
41882 *) # This is not an option, so the user has probably given explicit
41883 # arguments.
41884 ac_option=$1
41885 ac_need_defaults=false;;
41886 esac
41887
41888 case $ac_option in
41889 # Handling of the options.
41890_ACEOF
41891cat >>$CONFIG_STATUS <<\_ACEOF
41892 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41893 ac_cs_recheck=: ;;
41894 --version | --vers* | -V )
41895 echo "$ac_cs_version"; exit 0 ;;
41896 --he | --h)
41897 # Conflict between --help and --header
41898 { { echo "$as_me:$LINENO: error: ambiguous option: $1
41899Try \`$0 --help' for more information." >&5
41900echo "$as_me: error: ambiguous option: $1
41901Try \`$0 --help' for more information." >&2;}
41902 { (exit 1); exit 1; }; };;
41903 --help | --hel | -h )
41904 echo "$ac_cs_usage"; exit 0 ;;
41905 --debug | --d* | -d )
41906 debug=: ;;
41907 --file | --fil | --fi | --f )
41908 $ac_shift
41909 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
41910 ac_need_defaults=false;;
41911 --header | --heade | --head | --hea )
41912 $ac_shift
41913 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
41914 ac_need_defaults=false;;
41915 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41916 | -silent | --silent | --silen | --sile | --sil | --si | --s)
41917 ac_cs_silent=: ;;
41918
41919 # This is an error.
41920 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
41921Try \`$0 --help' for more information." >&5
41922echo "$as_me: error: unrecognized option: $1
41923Try \`$0 --help' for more information." >&2;}
41924 { (exit 1); exit 1; }; } ;;
41925
41926 *) ac_config_targets="$ac_config_targets $1" ;;
41927
41928 esac
41929 shift
41930done
41931
41932ac_configure_extra_args=
41933
41934if $ac_cs_silent; then
41935 exec 6>/dev/null
41936 ac_configure_extra_args="$ac_configure_extra_args --silent"
41937fi
41938
41939_ACEOF
41940cat >>$CONFIG_STATUS <<_ACEOF
41941if \$ac_cs_recheck; then
41942 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
41943 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41944fi
41945
41946_ACEOF
41947
41948cat >>$CONFIG_STATUS <<_ACEOF
41949#
41950# INIT-COMMANDS section.
41951#
41952
ceec2216
RL
41953 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
41954 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
41955 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
41956 LN_S="${LN_S}"
a848cd7e
SC
41957
41958
41959_ACEOF
41960
41961
41962
41963cat >>$CONFIG_STATUS <<\_ACEOF
41964for ac_config_target in $ac_config_targets
41965do
41966 case "$ac_config_target" in
41967 # Handling of arguments.
ceec2216
RL
41968 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
41969 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
41970 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
41971 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
41972 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
ceec2216
RL
41973 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
41974 "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
41975 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
41976echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
41977 { (exit 1); exit 1; }; };;
41978 esac
41979done
41980
41981# If the user did not use the arguments to specify the items to instantiate,
41982# then the envvar interface is used. Set only those that are not.
41983# We use the long form for the default assignment because of an extremely
41984# bizarre bug on SunOS 4.1.3.
41985if $ac_need_defaults; then
41986 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
41987 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
41988 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
41989fi
41990
41991# Have a temporary directory for convenience. Make it in the build tree
41992# simply because there is no reason to put it here, and in addition,
41993# creating and moving files from /tmp can sometimes cause problems.
41994# Create a temporary directory, and hook for its removal unless debugging.
41995$debug ||
41996{
41997 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
41998 trap '{ (exit 1); exit 1; }' 1 2 13 15
41999}
42000
42001# Create a (secure) tmp directory for tmp files.
42002
42003{
42004 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
42005 test -n "$tmp" && test -d "$tmp"
42006} ||
42007{
42008 tmp=./confstat$$-$RANDOM
42009 (umask 077 && mkdir $tmp)
42010} ||
42011{
42012 echo "$me: cannot create a temporary directory in ." >&2
42013 { (exit 1); exit 1; }
42014}
42015
42016_ACEOF
42017
42018cat >>$CONFIG_STATUS <<_ACEOF
42019
42020#
42021# CONFIG_FILES section.
42022#
42023
42024# No need to generate the scripts if there are no CONFIG_FILES.
42025# This happens for instance when ./config.status config.h
42026if test -n "\$CONFIG_FILES"; then
42027 # Protect against being on the right side of a sed subst in config.status.
42028 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
42029 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
42030s,@SHELL@,$SHELL,;t t
42031s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
42032s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
42033s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
42034s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
42035s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
42036s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
42037s,@exec_prefix@,$exec_prefix,;t t
42038s,@prefix@,$prefix,;t t
42039s,@program_transform_name@,$program_transform_name,;t t
42040s,@bindir@,$bindir,;t t
42041s,@sbindir@,$sbindir,;t t
42042s,@libexecdir@,$libexecdir,;t t
42043s,@datadir@,$datadir,;t t
42044s,@sysconfdir@,$sysconfdir,;t t
42045s,@sharedstatedir@,$sharedstatedir,;t t
42046s,@localstatedir@,$localstatedir,;t t
42047s,@libdir@,$libdir,;t t
42048s,@includedir@,$includedir,;t t
42049s,@oldincludedir@,$oldincludedir,;t t
42050s,@infodir@,$infodir,;t t
42051s,@mandir@,$mandir,;t t
42052s,@build_alias@,$build_alias,;t t
42053s,@host_alias@,$host_alias,;t t
42054s,@target_alias@,$target_alias,;t t
42055s,@DEFS@,$DEFS,;t t
42056s,@ECHO_C@,$ECHO_C,;t t
42057s,@ECHO_N@,$ECHO_N,;t t
42058s,@ECHO_T@,$ECHO_T,;t t
42059s,@LIBS@,$LIBS,;t t
42060s,@build@,$build,;t t
42061s,@build_cpu@,$build_cpu,;t t
42062s,@build_vendor@,$build_vendor,;t t
42063s,@build_os@,$build_os,;t t
42064s,@host@,$host,;t t
42065s,@host_cpu@,$host_cpu,;t t
42066s,@host_vendor@,$host_vendor,;t t
42067s,@host_os@,$host_os,;t t
42068s,@target@,$target,;t t
42069s,@target_cpu@,$target_cpu,;t t
42070s,@target_vendor@,$target_vendor,;t t
42071s,@target_os@,$target_os,;t t
42072s,@CC@,$CC,;t t
42073s,@CFLAGS@,$CFLAGS,;t t
42074s,@LDFLAGS@,$LDFLAGS,;t t
42075s,@CPPFLAGS@,$CPPFLAGS,;t t
42076s,@ac_ct_CC@,$ac_ct_CC,;t t
42077s,@EXEEXT@,$EXEEXT,;t t
42078s,@OBJEXT@,$OBJEXT,;t t
42079s,@CPP@,$CPP,;t t
42080s,@EGREP@,$EGREP,;t t
42081s,@CXX@,$CXX,;t t
42082s,@CXXFLAGS@,$CXXFLAGS,;t t
42083s,@ac_ct_CXX@,$ac_ct_CXX,;t t
42084s,@RANLIB@,$RANLIB,;t t
42085s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
42086s,@AR@,$AR,;t t
42087s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
42088s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
42089s,@INSTALL_DATA@,$INSTALL_DATA,;t t
42090s,@STRIP@,$STRIP,;t t
42091s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
42092s,@LN_S@,$LN_S,;t t
42093s,@CXXCPP@,$CXXCPP,;t t
42094s,@subdirs@,$subdirs,;t t
42095s,@PKG_CONFIG@,$PKG_CONFIG,;t t
42096s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
42097s,@GTK_LIBS@,$GTK_LIBS,;t t
42098s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
42099s,@X_CFLAGS@,$X_CFLAGS,;t t
42100s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
42101s,@X_LIBS@,$X_LIBS,;t t
42102s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
42103s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
42104s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
42105s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
42106s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
42107s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
42108s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
42109s,@RESCOMP@,$RESCOMP,;t t
42110s,@DEREZ@,$DEREZ,;t t
42111s,@SETFILE@,$SETFILE,;t t
42112s,@LIBICONV@,$LIBICONV,;t t
42113s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
42114s,@SDL_CONFIG@,$SDL_CONFIG,;t t
42115s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
42116s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
42117s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
42118s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
a848cd7e
SC
42119s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
42120s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
42121s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
42122s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
42123s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
42124s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
42125s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
42126s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
42127s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
42128s,@VENDOR@,$VENDOR,;t t
42129s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
42130s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
42131s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
42132s,@WXUNIV@,$WXUNIV,;t t
42133s,@MONOLITHIC@,$MONOLITHIC,;t t
42134s,@USE_PLUGINS@,$USE_PLUGINS,;t t
42135s,@EXTRALIBS@,$EXTRALIBS,;t t
42136s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
42137s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
42138s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
42139s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
42140s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
42141s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
42142s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 42143s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
a848cd7e
SC
42144s,@UNICODE@,$UNICODE,;t t
42145s,@BUILD@,$BUILD,;t t
42146s,@DEBUG_INFO@,$DEBUG_INFO,;t t
42147s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
42148s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
42149s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
42150s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
42151s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
42152s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
42153s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
42154s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
42155s,@SET_MAKE@,$SET_MAKE,;t t
42156s,@MAKE_SET@,$MAKE_SET,;t t
42157s,@ac_ct_AR@,$ac_ct_AR,;t t
42158s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
42159s,@NM@,$NM,;t t
42160s,@ac_ct_NM@,$ac_ct_NM,;t t
42161s,@INSTALL_DIR@,$INSTALL_DIR,;t t
42162s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
42163s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
42164s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
42165s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
42166s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 42167s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
42168s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
42169s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 42170s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
42171s,@SO_SUFFIX@,$SO_SUFFIX,;t t
42172s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
42173s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
42174s,@LIBPREFIX@,$LIBPREFIX,;t t
42175s,@LIBEXT@,$LIBEXT,;t t
42176s,@DLLPREFIX@,$DLLPREFIX,;t t
42177s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
42178s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
42179s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
42180s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
42181s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
42182s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
42183s,@PIC_FLAG@,$PIC_FLAG,;t t
42184s,@USE_SOVERSION@,$USE_SOVERSION,;t t
42185s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
42186s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
42187s,@USE_MACVERSION@,$USE_MACVERSION,;t t
42188s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
42189s,@SONAME_FLAG@,$SONAME_FLAG,;t t
42190s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
42191s,@GCC_PCH@,$GCC_PCH,;t t
42192s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
42193s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
42194s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
42195s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
42196s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
42197s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
42198s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
42199s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
42200s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
42201s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
42202s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
42203s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
42204s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
42205s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
42206s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
42207s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
42208s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
42209s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 42210s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1,;t t
a848cd7e 42211s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1,;t t
a848cd7e 42212s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 42213s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
42214s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
42215s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 42216s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1,;t t
a848cd7e 42217s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1,;t t
a848cd7e 42218s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 42219s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
42220s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
42221s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
42222s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
42223s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
42224s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
42225s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
42226s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
42227s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 42228s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
42229s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
42230s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
42231s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 42232s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 42233s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
ebee3cd0
VS
42234s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
42235s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
42236s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
42237s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 42238s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
a848cd7e
SC
42239s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
42240s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
42241s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
42242s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
42243s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
42244s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
42245s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
42246s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
42247s,@COND_SHARED_0@,$COND_SHARED_0,;t t
ceec2216
RL
42248s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
42249s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
42250s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
42251s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
42252s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
42253s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
42254s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
42255s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
42256s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
42257s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
42258s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
42259s,@COND_SHARED_1@,$COND_SHARED_1,;t t
42260s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
a30f955f 42261s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 42262s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 42263s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
42264s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
42265s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
42266s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
42267s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
42268s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
42269s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
42270s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
42271s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
42272s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
42273s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
42274s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
42275s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
42276s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
42277s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
42278s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
42279s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
42280s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
42281s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
42282s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
42283s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
42284s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
42285s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
42286s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
42287s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
42288s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
42289s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
42290s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
42291s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
42292s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
42293s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
42294s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
42295s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
42296s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
ceec2216 42297s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
ffa0583f 42298s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e
SC
42299s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
42300s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
42301s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
42302s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
42303s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
a13a7f89 42304s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
a848cd7e 42305s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
a848cd7e
SC
42306s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
42307s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
42308s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
42309s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
42310s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
42311s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
42312s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
42313s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 42314s,@SHARED@,$SHARED,;t t
a848cd7e
SC
42315s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
42316s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
42317s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
42318s,@USE_GUI@,$USE_GUI,;t t
42319s,@AFMINSTALL@,$AFMINSTALL,;t t
42320s,@WIN32INSTALL@,$WIN32INSTALL,;t t
42321s,@TOOLKIT@,$TOOLKIT,;t t
42322s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 42323s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 42324s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e
SC
42325s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
42326s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
a848cd7e 42327s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
42328s,@WIDGET_SET@,$WIDGET_SET,;t t
42329s,@WX_RELEASE@,$WX_RELEASE,;t t
42330s,@WX_VERSION@,$WX_VERSION,;t t
42331s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
42332s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
42333s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
a848cd7e 42334s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
a848cd7e
SC
42335s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
42336s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
42337s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
42338s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
74b84332 42339s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
42340s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
42341s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
ceec2216 42342s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 42343s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
42344s,@DISTDIR@,$DISTDIR,;t t
42345s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
42346s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
42347s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
42348s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
42349s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
42350s,@RESFLAGS@,$RESFLAGS,;t t
42351s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
42352s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
42353s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
42354s,@LIBWXMACRES@,$LIBWXMACRES,;t t
42355s,@MACRESCOMP@,$MACRESCOMP,;t t
42356s,@MACSETFILE@,$MACSETFILE,;t t
42357s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
42358s,@GCC@,$GCC,;t t
a848cd7e 42359s,@DLLTOOL@,$DLLTOOL,;t t
a848cd7e
SC
42360s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
42361s,@LIBOBJS@,$LIBOBJS,;t t
42362s,@LTLIBOBJS@,$LTLIBOBJS,;t t
42363CEOF
42364
42365_ACEOF
42366
42367 cat >>$CONFIG_STATUS <<\_ACEOF
42368 # Split the substitutions into bite-sized pieces for seds with
42369 # small command number limits, like on Digital OSF/1 and HP-UX.
42370 ac_max_sed_lines=48
42371 ac_sed_frag=1 # Number of current file.
42372 ac_beg=1 # First line for current file.
42373 ac_end=$ac_max_sed_lines # Line after last line for current file.
42374 ac_more_lines=:
42375 ac_sed_cmds=
42376 while $ac_more_lines; do
42377 if test $ac_beg -gt 1; then
42378 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
42379 else
42380 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
42381 fi
42382 if test ! -s $tmp/subs.frag; then
42383 ac_more_lines=false
42384 else
42385 # The purpose of the label and of the branching condition is to
42386 # speed up the sed processing (if there are no `@' at all, there
42387 # is no need to browse any of the substitutions).
42388 # These are the two extra sed commands mentioned above.
42389 (echo ':t
42390 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
42391 if test -z "$ac_sed_cmds"; then
ac1cb8d3 42392 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 42393 else
ac1cb8d3 42394 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
42395 fi
42396 ac_sed_frag=`expr $ac_sed_frag + 1`
42397 ac_beg=$ac_end
42398 ac_end=`expr $ac_end + $ac_max_sed_lines`
42399 fi
42400 done
42401 if test -z "$ac_sed_cmds"; then
42402 ac_sed_cmds=cat
42403 fi
42404fi # test -n "$CONFIG_FILES"
42405
42406_ACEOF
42407cat >>$CONFIG_STATUS <<\_ACEOF
42408for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
42409 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42410 case $ac_file in
42411 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
42412 cat >$tmp/stdin
42413 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42414 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 42415 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 42416 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
42417 * ) ac_file_in=$ac_file.in ;;
42418 esac
42419
42420 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
42421 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42422$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42423 X"$ac_file" : 'X\(//\)[^/]' \| \
42424 X"$ac_file" : 'X\(//\)$' \| \
42425 X"$ac_file" : 'X\(/\)' \| \
42426 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42427echo X"$ac_file" |
42428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42429 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42430 /^X\(\/\/\)$/{ s//\1/; q; }
42431 /^X\(\/\).*/{ s//\1/; q; }
42432 s/.*/./; q'`
42433 { if $as_mkdir_p; then
42434 mkdir -p "$ac_dir"
42435 else
42436 as_dir="$ac_dir"
42437 as_dirs=
42438 while test ! -d "$as_dir"; do
42439 as_dirs="$as_dir $as_dirs"
42440 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42441$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42442 X"$as_dir" : 'X\(//\)[^/]' \| \
42443 X"$as_dir" : 'X\(//\)$' \| \
42444 X"$as_dir" : 'X\(/\)' \| \
42445 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42446echo X"$as_dir" |
42447 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42448 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42449 /^X\(\/\/\)$/{ s//\1/; q; }
42450 /^X\(\/\).*/{ s//\1/; q; }
42451 s/.*/./; q'`
42452 done
42453 test ! -n "$as_dirs" || mkdir $as_dirs
42454 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42455echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42456 { (exit 1); exit 1; }; }; }
42457
42458 ac_builddir=.
42459
42460if test "$ac_dir" != .; then
42461 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42462 # A "../" for each directory in $ac_dir_suffix.
42463 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42464else
42465 ac_dir_suffix= ac_top_builddir=
42466fi
42467
42468case $srcdir in
42469 .) # No --srcdir option. We are building in place.
42470 ac_srcdir=.
42471 if test -z "$ac_top_builddir"; then
42472 ac_top_srcdir=.
42473 else
42474 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42475 fi ;;
42476 [\\/]* | ?:[\\/]* ) # Absolute path.
42477 ac_srcdir=$srcdir$ac_dir_suffix;
42478 ac_top_srcdir=$srcdir ;;
42479 *) # Relative path.
42480 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42481 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42482esac
ac1cb8d3
VS
42483
42484# Do not use `cd foo && pwd` to compute absolute paths, because
42485# the directories may not exist.
42486case `pwd` in
42487.) ac_abs_builddir="$ac_dir";;
42488*)
42489 case "$ac_dir" in
42490 .) ac_abs_builddir=`pwd`;;
42491 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42492 *) ac_abs_builddir=`pwd`/"$ac_dir";;
42493 esac;;
42494esac
42495case $ac_abs_builddir in
42496.) ac_abs_top_builddir=${ac_top_builddir}.;;
42497*)
42498 case ${ac_top_builddir}. in
42499 .) ac_abs_top_builddir=$ac_abs_builddir;;
42500 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42501 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42502 esac;;
42503esac
42504case $ac_abs_builddir in
42505.) ac_abs_srcdir=$ac_srcdir;;
42506*)
42507 case $ac_srcdir in
42508 .) ac_abs_srcdir=$ac_abs_builddir;;
42509 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42510 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42511 esac;;
42512esac
42513case $ac_abs_builddir in
42514.) ac_abs_top_srcdir=$ac_top_srcdir;;
42515*)
42516 case $ac_top_srcdir in
42517 .) ac_abs_top_srcdir=$ac_abs_builddir;;
42518 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42519 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42520 esac;;
42521esac
a848cd7e
SC
42522
42523
42524 case $INSTALL in
42525 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
42526 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
42527 esac
42528
a848cd7e
SC
42529 # Let's still pretend it is `configure' which instantiates (i.e., don't
42530 # use $as_me), people would be surprised to read:
42531 # /* config.h. Generated by config.status. */
42532 if test x"$ac_file" = x-; then
42533 configure_input=
42534 else
42535 configure_input="$ac_file. "
42536 fi
42537 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 42538 sed 's,.*/,,'` by configure."
a848cd7e
SC
42539
42540 # First look for the input files in the build tree, otherwise in the
42541 # src tree.
42542 ac_file_inputs=`IFS=:
42543 for f in $ac_file_in; do
42544 case $f in
42545 -) echo $tmp/stdin ;;
42546 [\\/$]*)
ac1cb8d3
VS
42547 # Absolute (can't be DOS-style, as IFS=:)
42548 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42549echo "$as_me: error: cannot find input file: $f" >&2;}
42550 { (exit 1); exit 1; }; }
ac1cb8d3 42551 echo "$f";;
a848cd7e 42552 *) # Relative
ac1cb8d3
VS
42553 if test -f "$f"; then
42554 # Build tree
42555 echo "$f"
42556 elif test -f "$srcdir/$f"; then
42557 # Source tree
42558 echo "$srcdir/$f"
42559 else
42560 # /dev/null tree
42561 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42562echo "$as_me: error: cannot find input file: $f" >&2;}
42563 { (exit 1); exit 1; }; }
ac1cb8d3 42564 fi;;
a848cd7e
SC
42565 esac
42566 done` || { (exit 1); exit 1; }
5294a27e
VZ
42567
42568 if test x"$ac_file" != x-; then
42569 { echo "$as_me:$LINENO: creating $ac_file" >&5
42570echo "$as_me: creating $ac_file" >&6;}
42571 rm -f "$ac_file"
42572 fi
a848cd7e
SC
42573_ACEOF
42574cat >>$CONFIG_STATUS <<_ACEOF
42575 sed "$ac_vpsub
42576$extrasub
42577_ACEOF
42578cat >>$CONFIG_STATUS <<\_ACEOF
42579:t
42580/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42581s,@configure_input@,$configure_input,;t t
42582s,@srcdir@,$ac_srcdir,;t t
42583s,@abs_srcdir@,$ac_abs_srcdir,;t t
42584s,@top_srcdir@,$ac_top_srcdir,;t t
42585s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
42586s,@builddir@,$ac_builddir,;t t
42587s,@abs_builddir@,$ac_abs_builddir,;t t
42588s,@top_builddir@,$ac_top_builddir,;t t
42589s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
42590s,@INSTALL@,$ac_INSTALL,;t t
42591" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
42592 rm -f $tmp/stdin
42593 if test x"$ac_file" != x-; then
42594 mv $tmp/out $ac_file
42595 else
42596 cat $tmp/out
42597 rm -f $tmp/out
42598 fi
42599
ceec2216
RL
42600 # Run the commands associated with the file.
42601 case $ac_file in
42602 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
42603 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
42604 esac
a848cd7e
SC
42605done
42606_ACEOF
42607cat >>$CONFIG_STATUS <<\_ACEOF
42608
42609#
42610# CONFIG_HEADER section.
42611#
42612
42613# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
42614# NAME is the cpp macro being defined and VALUE is the value it is being given.
42615#
42616# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
42617ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
42618ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
42619ac_dC=' '
42620ac_dD=',;t'
42621# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 42622ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
42623ac_uB='$,\1#\2define\3'
42624ac_uC=' '
42625ac_uD=',;t'
42626
42627for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
42628 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42629 case $ac_file in
42630 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
42631 cat >$tmp/stdin
42632 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42633 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 42634 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 42635 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
42636 * ) ac_file_in=$ac_file.in ;;
42637 esac
42638
42639 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
42640echo "$as_me: creating $ac_file" >&6;}
42641
42642 # First look for the input files in the build tree, otherwise in the
42643 # src tree.
42644 ac_file_inputs=`IFS=:
42645 for f in $ac_file_in; do
42646 case $f in
42647 -) echo $tmp/stdin ;;
42648 [\\/$]*)
ac1cb8d3
VS
42649 # Absolute (can't be DOS-style, as IFS=:)
42650 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42651echo "$as_me: error: cannot find input file: $f" >&2;}
42652 { (exit 1); exit 1; }; }
ac1cb8d3
VS
42653 # Do quote $f, to prevent DOS paths from being IFS'd.
42654 echo "$f";;
a848cd7e 42655 *) # Relative
ac1cb8d3
VS
42656 if test -f "$f"; then
42657 # Build tree
42658 echo "$f"
42659 elif test -f "$srcdir/$f"; then
42660 # Source tree
42661 echo "$srcdir/$f"
42662 else
42663 # /dev/null tree
42664 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42665echo "$as_me: error: cannot find input file: $f" >&2;}
42666 { (exit 1); exit 1; }; }
ac1cb8d3 42667 fi;;
a848cd7e
SC
42668 esac
42669 done` || { (exit 1); exit 1; }
42670 # Remove the trailing spaces.
ac1cb8d3 42671 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
42672
42673_ACEOF
42674
42675# Transform confdefs.h into two sed scripts, `conftest.defines' and
42676# `conftest.undefs', that substitutes the proper values into
42677# config.h.in to produce config.h. The first handles `#define'
42678# templates, and the second `#undef' templates.
42679# And first: Protect against being on the right side of a sed subst in
42680# config.status. Protect against being in an unquoted here document
42681# in config.status.
42682rm -f conftest.defines conftest.undefs
42683# Using a here document instead of a string reduces the quoting nightmare.
42684# Putting comments in sed scripts is not portable.
42685#
42686# `end' is used to avoid that the second main sed command (meant for
42687# 0-ary CPP macros) applies to n-ary macro definitions.
42688# See the Autoconf documentation for `clear'.
42689cat >confdef2sed.sed <<\_ACEOF
42690s/[\\&,]/\\&/g
42691s,[\\$`],\\&,g
42692t clear
42693: clear
ac1cb8d3 42694s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 42695t end
ac1cb8d3 42696s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
42697: end
42698_ACEOF
42699# If some macros were called several times there might be several times
42700# the same #defines, which is useless. Nevertheless, we may not want to
42701# sort them, since we want the *last* AC-DEFINE to be honored.
42702uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
42703sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
42704rm -f confdef2sed.sed
42705
42706# This sed command replaces #undef with comments. This is necessary, for
42707# example, in the case of _POSIX_SOURCE, which is predefined and required
42708# on some systems where configure will not decide to define it.
42709cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 42710s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
42711_ACEOF
42712
42713# Break up conftest.defines because some shells have a limit on the size
42714# of here documents, and old seds have small limits too (100 cmds).
42715echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 42716echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
42717echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
42718echo ' :' >>$CONFIG_STATUS
42719rm -f conftest.tail
42720while grep . conftest.defines >/dev/null
42721do
42722 # Write a limited-size here document to $tmp/defines.sed.
42723 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
42724 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 42725 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
42726 # Work around the forget-to-reset-the-flag bug.
42727 echo 't clr' >>$CONFIG_STATUS
42728 echo ': clr' >>$CONFIG_STATUS
42729 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
42730 echo 'CEOF
42731 sed -f $tmp/defines.sed $tmp/in >$tmp/out
42732 rm -f $tmp/in
42733 mv $tmp/out $tmp/in
42734' >>$CONFIG_STATUS
42735 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
42736 rm -f conftest.defines
42737 mv conftest.tail conftest.defines
42738done
42739rm -f conftest.defines
42740echo ' fi # grep' >>$CONFIG_STATUS
42741echo >>$CONFIG_STATUS
42742
42743# Break up conftest.undefs because some shells have a limit on the size
42744# of here documents, and old seds have small limits too (100 cmds).
42745echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
42746rm -f conftest.tail
42747while grep . conftest.undefs >/dev/null
42748do
42749 # Write a limited-size here document to $tmp/undefs.sed.
42750 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
42751 # Speed up: don't consider the non `#undef'
ac1cb8d3 42752 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
42753 # Work around the forget-to-reset-the-flag bug.
42754 echo 't clr' >>$CONFIG_STATUS
42755 echo ': clr' >>$CONFIG_STATUS
42756 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
42757 echo 'CEOF
42758 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
42759 rm -f $tmp/in
42760 mv $tmp/out $tmp/in
42761' >>$CONFIG_STATUS
42762 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
42763 rm -f conftest.undefs
42764 mv conftest.tail conftest.undefs
42765done
42766rm -f conftest.undefs
42767
42768cat >>$CONFIG_STATUS <<\_ACEOF
42769 # Let's still pretend it is `configure' which instantiates (i.e., don't
42770 # use $as_me), people would be surprised to read:
42771 # /* config.h. Generated by config.status. */
42772 if test x"$ac_file" = x-; then
42773 echo "/* Generated by configure. */" >$tmp/config.h
42774 else
42775 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
42776 fi
42777 cat $tmp/in >>$tmp/config.h
42778 rm -f $tmp/in
42779 if test x"$ac_file" != x-; then
42780 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
42781 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
42782echo "$as_me: $ac_file is unchanged" >&6;}
42783 else
42784 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42785$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42786 X"$ac_file" : 'X\(//\)[^/]' \| \
42787 X"$ac_file" : 'X\(//\)$' \| \
42788 X"$ac_file" : 'X\(/\)' \| \
42789 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42790echo X"$ac_file" |
42791 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42792 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42793 /^X\(\/\/\)$/{ s//\1/; q; }
42794 /^X\(\/\).*/{ s//\1/; q; }
42795 s/.*/./; q'`
42796 { if $as_mkdir_p; then
42797 mkdir -p "$ac_dir"
42798 else
42799 as_dir="$ac_dir"
42800 as_dirs=
42801 while test ! -d "$as_dir"; do
42802 as_dirs="$as_dir $as_dirs"
42803 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42804$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42805 X"$as_dir" : 'X\(//\)[^/]' \| \
42806 X"$as_dir" : 'X\(//\)$' \| \
42807 X"$as_dir" : 'X\(/\)' \| \
42808 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42809echo X"$as_dir" |
42810 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42811 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42812 /^X\(\/\/\)$/{ s//\1/; q; }
42813 /^X\(\/\).*/{ s//\1/; q; }
42814 s/.*/./; q'`
42815 done
42816 test ! -n "$as_dirs" || mkdir $as_dirs
42817 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42818echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42819 { (exit 1); exit 1; }; }; }
42820
42821 rm -f $ac_file
42822 mv $tmp/config.h $ac_file
42823 fi
42824 else
42825 cat $tmp/config.h
42826 rm -f $tmp/config.h
42827 fi
42828done
42829_ACEOF
42830cat >>$CONFIG_STATUS <<\_ACEOF
42831
42832#
42833# CONFIG_COMMANDS section.
42834#
42835for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
42836 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
42837 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
42838 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
42839$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42840 X"$ac_dest" : 'X\(//\)[^/]' \| \
42841 X"$ac_dest" : 'X\(//\)$' \| \
42842 X"$ac_dest" : 'X\(/\)' \| \
42843 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42844echo X"$ac_dest" |
42845 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42846 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42847 /^X\(\/\/\)$/{ s//\1/; q; }
42848 /^X\(\/\).*/{ s//\1/; q; }
42849 s/.*/./; q'`
ac1cb8d3
VS
42850 { if $as_mkdir_p; then
42851 mkdir -p "$ac_dir"
42852 else
42853 as_dir="$ac_dir"
42854 as_dirs=
42855 while test ! -d "$as_dir"; do
42856 as_dirs="$as_dir $as_dirs"
42857 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42858$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42859 X"$as_dir" : 'X\(//\)[^/]' \| \
42860 X"$as_dir" : 'X\(//\)$' \| \
42861 X"$as_dir" : 'X\(/\)' \| \
42862 . : '\(.\)' 2>/dev/null ||
42863echo X"$as_dir" |
42864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42865 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42866 /^X\(\/\/\)$/{ s//\1/; q; }
42867 /^X\(\/\).*/{ s//\1/; q; }
42868 s/.*/./; q'`
42869 done
42870 test ! -n "$as_dirs" || mkdir $as_dirs
42871 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42872echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42873 { (exit 1); exit 1; }; }; }
42874
a848cd7e
SC
42875 ac_builddir=.
42876
42877if test "$ac_dir" != .; then
42878 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42879 # A "../" for each directory in $ac_dir_suffix.
42880 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42881else
42882 ac_dir_suffix= ac_top_builddir=
42883fi
42884
42885case $srcdir in
42886 .) # No --srcdir option. We are building in place.
42887 ac_srcdir=.
42888 if test -z "$ac_top_builddir"; then
42889 ac_top_srcdir=.
42890 else
42891 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42892 fi ;;
42893 [\\/]* | ?:[\\/]* ) # Absolute path.
42894 ac_srcdir=$srcdir$ac_dir_suffix;
42895 ac_top_srcdir=$srcdir ;;
42896 *) # Relative path.
42897 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42898 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42899esac
ac1cb8d3
VS
42900
42901# Do not use `cd foo && pwd` to compute absolute paths, because
42902# the directories may not exist.
42903case `pwd` in
42904.) ac_abs_builddir="$ac_dir";;
42905*)
42906 case "$ac_dir" in
42907 .) ac_abs_builddir=`pwd`;;
42908 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42909 *) ac_abs_builddir=`pwd`/"$ac_dir";;
42910 esac;;
42911esac
42912case $ac_abs_builddir in
42913.) ac_abs_top_builddir=${ac_top_builddir}.;;
42914*)
42915 case ${ac_top_builddir}. in
42916 .) ac_abs_top_builddir=$ac_abs_builddir;;
42917 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42918 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42919 esac;;
42920esac
42921case $ac_abs_builddir in
42922.) ac_abs_srcdir=$ac_srcdir;;
42923*)
42924 case $ac_srcdir in
42925 .) ac_abs_srcdir=$ac_abs_builddir;;
42926 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42927 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42928 esac;;
42929esac
42930case $ac_abs_builddir in
42931.) ac_abs_top_srcdir=$ac_top_srcdir;;
42932*)
42933 case $ac_top_srcdir in
42934 .) ac_abs_top_srcdir=$ac_abs_builddir;;
42935 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42936 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42937 esac;;
42938esac
a848cd7e
SC
42939
42940
42941 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
42942echo "$as_me: executing $ac_dest commands" >&6;}
42943 case $ac_dest in
ceec2216
RL
42944 wx-config ) rm -f wx-config
42945 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
42946 ;;
a848cd7e
SC
42947 esac
42948done
42949_ACEOF
42950
42951cat >>$CONFIG_STATUS <<\_ACEOF
42952
42953{ (exit 0); exit 0; }
42954_ACEOF
42955chmod +x $CONFIG_STATUS
42956ac_clean_files=$ac_clean_files_save
42957
42958
42959# configure is writing to config.log, and then calls config.status.
42960# config.status does its own redirection, appending to config.log.
42961# Unfortunately, on DOS this fails, as config.log is still kept open
42962# by configure, so config.status won't be able to write to it; its
42963# output is simply discarded. So we exec the FD to /dev/null,
42964# effectively closing config.log, so it can be properly (re)opened and
42965# appended to by config.status. When coming back to configure, we
42966# need to make the FD available again.
42967if test "$no_create" != yes; then
42968 ac_cs_success=:
42969 ac_config_status_args=
42970 test "$silent" = yes &&
42971 ac_config_status_args="$ac_config_status_args --quiet"
42972 exec 5>/dev/null
42973 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
42974 exec 5>>config.log
42975 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
42976 # would make configure fail if this is the last instruction.
42977 $ac_cs_success || { (exit 1); exit 1; }
42978fi
42979
42980#
42981# CONFIG_SUBDIRS section.
42982#
42983if test "$no_recursion" != yes; then
42984
42985 # Remove --cache-file and --srcdir arguments so they do not pile up.
42986 ac_sub_configure_args=
42987 ac_prev=
42988 for ac_arg in $ac_configure_args; do
42989 if test -n "$ac_prev"; then
42990 ac_prev=
42991 continue
42992 fi
42993 case $ac_arg in
42994 -cache-file | --cache-file | --cache-fil | --cache-fi \
42995 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
42996 ac_prev=cache_file ;;
42997 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
42998 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
42999 | --c=*)
43000 ;;
43001 --config-cache | -C)
43002 ;;
43003 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
43004 ac_prev=srcdir ;;
43005 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
43006 ;;
43007 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
43008 ac_prev=prefix ;;
43009 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
43010 ;;
43011 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
43012 esac
43013 done
43014
43015 # Always prepend --prefix to ensure using the same prefix
43016 # in subdir configurations.
43017 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
43018
43019 ac_popdir=`pwd`
43020 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
43021
43022 # Do not complain, so a configure script can configure whichever
43023 # parts of a large source tree are present.
43024 test -d $srcdir/$ac_dir || continue
43025
43026 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
43027echo "$as_me: configuring in $ac_dir" >&6;}
43028 { if $as_mkdir_p; then
43029 mkdir -p "$ac_dir"
43030 else
43031 as_dir="$ac_dir"
43032 as_dirs=
43033 while test ! -d "$as_dir"; do
43034 as_dirs="$as_dir $as_dirs"
43035 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43036$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43037 X"$as_dir" : 'X\(//\)[^/]' \| \
43038 X"$as_dir" : 'X\(//\)$' \| \
43039 X"$as_dir" : 'X\(/\)' \| \
43040 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43041echo X"$as_dir" |
43042 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43043 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43044 /^X\(\/\/\)$/{ s//\1/; q; }
43045 /^X\(\/\).*/{ s//\1/; q; }
43046 s/.*/./; q'`
43047 done
43048 test ! -n "$as_dirs" || mkdir $as_dirs
43049 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43050echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43051 { (exit 1); exit 1; }; }; }
43052
43053 ac_builddir=.
43054
43055if test "$ac_dir" != .; then
43056 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43057 # A "../" for each directory in $ac_dir_suffix.
43058 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
43059else
43060 ac_dir_suffix= ac_top_builddir=
43061fi
43062
43063case $srcdir in
43064 .) # No --srcdir option. We are building in place.
43065 ac_srcdir=.
43066 if test -z "$ac_top_builddir"; then
43067 ac_top_srcdir=.
43068 else
43069 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43070 fi ;;
43071 [\\/]* | ?:[\\/]* ) # Absolute path.
43072 ac_srcdir=$srcdir$ac_dir_suffix;
43073 ac_top_srcdir=$srcdir ;;
43074 *) # Relative path.
43075 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43076 ac_top_srcdir=$ac_top_builddir$srcdir ;;
43077esac
ac1cb8d3
VS
43078
43079# Do not use `cd foo && pwd` to compute absolute paths, because
43080# the directories may not exist.
43081case `pwd` in
43082.) ac_abs_builddir="$ac_dir";;
43083*)
43084 case "$ac_dir" in
43085 .) ac_abs_builddir=`pwd`;;
43086 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43087 *) ac_abs_builddir=`pwd`/"$ac_dir";;
43088 esac;;
43089esac
43090case $ac_abs_builddir in
43091.) ac_abs_top_builddir=${ac_top_builddir}.;;
43092*)
43093 case ${ac_top_builddir}. in
43094 .) ac_abs_top_builddir=$ac_abs_builddir;;
43095 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43096 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43097 esac;;
43098esac
43099case $ac_abs_builddir in
43100.) ac_abs_srcdir=$ac_srcdir;;
43101*)
43102 case $ac_srcdir in
43103 .) ac_abs_srcdir=$ac_abs_builddir;;
43104 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43105 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43106 esac;;
43107esac
43108case $ac_abs_builddir in
43109.) ac_abs_top_srcdir=$ac_top_srcdir;;
43110*)
43111 case $ac_top_srcdir in
43112 .) ac_abs_top_srcdir=$ac_abs_builddir;;
43113 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43114 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43115 esac;;
43116esac
a848cd7e
SC
43117
43118
43119 cd $ac_dir
43120
43121 # Check for guested configure; otherwise get Cygnus style configure.
43122 if test -f $ac_srcdir/configure.gnu; then
43123 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
43124 elif test -f $ac_srcdir/configure; then
43125 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
43126 elif test -f $ac_srcdir/configure.in; then
43127 ac_sub_configure=$ac_configure
43128 else
43129 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
43130echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
43131 ac_sub_configure=
43132 fi
43133
43134 # The recursion is here.
43135 if test -n "$ac_sub_configure"; then
43136 # Make the cache file name correct relative to the subdirectory.
43137 case $cache_file in
43138 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
43139 *) # Relative path.
ac1cb8d3 43140 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
43141 esac
43142
43143 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
43144echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
43145 # The eval makes quoting arguments work.
43146 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
43147 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
43148 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
43149echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
43150 { (exit 1); exit 1; }; }
43151 fi
43152
5294a27e 43153 cd "$ac_popdir"
a848cd7e
SC
43154 done
43155fi
43156
43157
43158echo
77ffb593 43159echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 43160echo ""
4d4ff94c 43161echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 43162echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 43163
77ffb593
JS
43164echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
43165echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
43166echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 43167
77ffb593
JS
43168echo " What level of wxWidgets compatibility should be enabled?"
43169echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
43170echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 43171
77ffb593 43172echo " Which libraries should wxWidgets use?"
a848cd7e
SC
43173echo " jpeg ${wxUSE_LIBJPEG-none}"
43174echo " png ${wxUSE_LIBPNG-none}"
43175echo " regex ${wxUSE_REGEX}"
43176echo " tiff ${wxUSE_LIBTIFF-none}"
43177if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
43178echo " xpm ${wxUSE_LIBXPM-none}"
43179fi
43180echo " zlib ${wxUSE_ZLIB}"
43181echo " odbc ${wxUSE_ODBC}"
43182echo " expat ${wxUSE_EXPAT}"
43183echo " libmspack ${wxUSE_LIBMSPACK}"
43184echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 43185echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
a848cd7e
SC
43186
43187echo ""
43188